Home
last modified time | relevance | path

Searched full:length (Results 1 – 25 of 4266) sorted by relevance

12345678910>>...171

/linux/sound/usb/line6/
H A Dmidibuf.c20 static const int length[] = { 3, 3, 3, 3, 2, 2, 3 }; in midibuf_message_length() local
22 message_length = length[(code >> 4) - 8]; in midibuf_message_length()
24 static const int length[] = { -1, 2, 2, 2, -1, -1, 1, 1, 1, -1, in midibuf_message_length() local
27 message_length = length[code & 0x0f]; in midibuf_message_length()
81 int length) in line6_midibuf_write() argument
87 if (midibuf_is_full(this) || (length <= 0)) in line6_midibuf_write()
91 if (data[length - 1] == 0xfe) { in line6_midibuf_write()
92 --length; in line6_midibuf_write()
98 if (length > bytes_free) in line6_midibuf_write()
99 length = bytes_free; in line6_midibuf_write()
[all …]
/linux/drivers/video/fbdev/mmp/fb/
H A Dmmpfb.c25 if (var->bits_per_pixel == 16 && var->red.length == 8 && in var_to_pixfmt()
26 var->green.length == 4 && var->blue.length == 4) { in var_to_pixfmt()
36 if (var->bits_per_pixel == 12 && var->red.length == 8 && in var_to_pixfmt()
37 var->green.length == 2 && var->blue.length == 2) { in var_to_pixfmt()
47 if (var->bits_per_pixel == 16 && var->red.length == 16 && in var_to_pixfmt()
48 var->green.length == 16 && var->blue.length == 16) { in var_to_pixfmt()
60 if (var->bits_per_pixel == 16 && var->red.length <= 5 && in var_to_pixfmt()
61 var->green.length <= 6 && var->blue.length <= 5) { in var_to_pixfmt()
62 if (var->transp.length == 0) { in var_to_pixfmt()
73 if (var->bits_per_pixel <= 32 && var->red.length <= 8 && in var_to_pixfmt()
[all …]
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_ctrl.c23 unsigned int length, unsigned int offset, in nfp_net_tls_parse_crypto_ops() argument
30 if (length < 32) { in nfp_net_tls_parse_crypto_ops()
33 length, offset); in nfp_net_tls_parse_crypto_ops()
58 unsigned int length, offset; in nfp_net_tlv_caps_parse() local
61 length = FIELD_GET(NFP_NET_CFG_TLV_HEADER_LENGTH, hdr); in nfp_net_tlv_caps_parse()
67 if (length % NFP_NET_CFG_TLV_LENGTH_INC) { in nfp_net_tlv_caps_parse()
69 NFP_NET_CFG_TLV_LENGTH_INC, offset, length); in nfp_net_tlv_caps_parse()
72 if (data + length > end) { in nfp_net_tlv_caps_parse()
74 offset, length); in nfp_net_tlv_caps_parse()
85 if (!length) in nfp_net_tlv_caps_parse()
[all …]
/linux/drivers/acpi/acpica/
H A Dexstorob.c33 u32 length; in acpi_ex_store_buffer_to_buffer() local
47 length = source_desc->buffer.length; in acpi_ex_store_buffer_to_buffer()
50 * If target is a buffer of length zero or is a static buffer, in acpi_ex_store_buffer_to_buffer()
51 * allocate a new buffer of the proper length in acpi_ex_store_buffer_to_buffer()
53 if ((target_desc->buffer.length == 0) || in acpi_ex_store_buffer_to_buffer()
55 target_desc->buffer.pointer = ACPI_ALLOCATE(length); in acpi_ex_store_buffer_to_buffer()
60 target_desc->buffer.length = length; in acpi_ex_store_buffer_to_buffer()
65 if (length <= target_desc->buffer.length) { in acpi_ex_store_buffer_to_buffer()
70 target_desc->buffer.length); in acpi_ex_store_buffer_to_buffer()
71 memcpy(target_desc->buffer.pointer, buffer, length); in acpi_ex_store_buffer_to_buffer()
[all …]
H A Dacpredef.h19 * ACPI_PTYPE1_FIXED: Fixed-length length, 1 or 2 object types:
25 * ACPI_PTYPE1_VAR: Variable-length length. Zero-length package is allowed:
32 * 2) PTYPE2 packages contain a Variable-length number of subpackages. Each
35 * ACPI_PTYPE2: Each subpackage contains 1 or 2 object types. Zero-length
44 * Zero-length parent package is allowed:
55 * ACPI_PTYPE2_FIXED: Each subpackage is of Fixed-length. Zero-length
59 * ACPI_PTYPE2_MIN: Each subpackage has a Variable-length but minimum length.
60 * Zero-length parent package is allowed:
63 * ACPI_PTYPE2_REV_FIXED: Revision at start, each subpackage is Fixed-length
66 * ACPI_PTYPE2_FIX_VAR: Each subpackage consists of some fixed-length elements
[all …]
H A Dutresrc.c73 * Resource types, used to validate the resource length field.
74 * The length of fixed-length types must match exactly, variable
75 * lengths must meet the minimum required length, etc.
128 * aml_length - Length of the entire template
149 u32 length; in acpi_ut_walk_aml_resources() local
165 /* Walk the byte list, abort on any invalid descriptor type or length */ in acpi_ut_walk_aml_resources()
169 /* Validate the Resource Type and Resource Length */ in acpi_ut_walk_aml_resources()
176 * length may be bogus also. in acpi_ut_walk_aml_resources()
181 /* Get the length of this descriptor */ in acpi_ut_walk_aml_resources()
183 length = acpi_ut_get_descriptor_length(aml); in acpi_ut_walk_aml_resources()
[all …]
/linux/drivers/net/fjes/
H A Dfjes_trace.h54 __field(int, length)
62 __entry->length = res_buf->info.length;
71 TP_printk("res_buf=[length=%d, code=%d, es_zones=%s, es_status=%s]",
72 __entry->length, __entry->code,
98 __field(int, length)
110 __entry->length = req_buf->share_buffer.length;
119 …TP_printk("req_buf=[length=%d, epid=%d], TX=[phy=0x%016llx, size=%zu], RX=[phy=0x%016llx, size=%zu…
120 __entry->length, __entry->epid, __entry->tx, __entry->tx_size,
128 __field(int, length)
133 __entry->length = res_buf->share_buffer.length;
[all …]
/linux/drivers/infiniband/sw/rxe/
H A Drxe_opcode.c123 .length = RXE_BTH_BYTES,
133 .length = RXE_BTH_BYTES,
143 .length = RXE_BTH_BYTES,
153 .length = RXE_BTH_BYTES + RXE_IMMDT_BYTES,
166 .length = RXE_BTH_BYTES,
177 .length = RXE_BTH_BYTES + RXE_IMMDT_BYTES,
189 .length = RXE_BTH_BYTES + RXE_RETH_BYTES,
201 .length = RXE_BTH_BYTES,
211 .length = RXE_BTH_BYTES,
222 .length = RXE_BTH_BYTES + RXE_IMMDT_BYTES,
[all …]
H A Drxe_mr.c27 int mr_check_range(struct rxe_mr *mr, u64 iova, size_t length) in mr_check_range() argument
36 iova + length > mr->ibmr.iova + mr->ibmr.length) { in mr_check_range()
37 rxe_dbg_mr(mr, "iova/length out of range\n"); in mr_check_range()
129 int rxe_mr_init_user(struct rxe_dev *rxe, u64 start, u64 length, in rxe_mr_init_user() argument
139 umem = ib_umem_get(&rxe->ib_dev, start, length, access); in rxe_mr_init_user()
246 unsigned int length, enum rxe_mr_copy_dir dir) in rxe_mr_copy_xarray() argument
254 while (length) { in rxe_mr_copy_xarray()
259 bytes = min_t(unsigned int, length, in rxe_mr_copy_xarray()
270 length -= bytes; in rxe_mr_copy_xarray()
278 unsigned int length, enum rxe_mr_copy_dir dir) in rxe_mr_copy_dma() argument
[all …]
/linux/fs/squashfs/
H A Dblock.c80 struct address_space *cache_mapping, u64 index, int length, in squashfs_bio_read_cached() argument
104 * Compare these to the original required index and length to in squashfs_bio_read_cached()
111 else if (idx == page_count - 1 && index + length != read_end) in squashfs_bio_read_cached()
189 static int squashfs_bio_read(struct super_block *sb, u64 index, int length, in squashfs_bio_read() argument
196 const u64 read_end = round_up(index + length, msblk->devblksize); in squashfs_bio_read()
236 length, read_start, read_end, in squashfs_bio_read()
255 * Read and decompress a metadata block or datablock. Length is non-zero
257 * filesystem), otherwise the length is obtained from the first two bytes of
258 * the metadata block. A bit in the length field indicates if the block
263 int squashfs_read_data(struct super_block *sb, u64 index, int length, in squashfs_read_data() argument
[all …]
H A Dcache.c53 struct squashfs_cache *cache, u64 block, int length) in squashfs_cache_get() argument
110 entry->length = squashfs_read_data(sb, block, length, in squashfs_cache_get()
115 if (entry->length < 0) in squashfs_cache_get()
116 entry->error = entry->length; in squashfs_cache_get()
293 * Copy up to length bytes from cache entry to buffer starting at offset bytes in squashfs_copy_data()
294 * into the cache entry. If there's not length bytes then copy the number of in squashfs_copy_data() argument
298 int offset, int length) in squashfs_copy_data()
300 int remaining = length; in squashfs_copy_data()
302 if (length in squashfs_copy_data()
332 squashfs_read_metadata(struct super_block * sb,void * buffer,u64 * block,int * offset,int length) squashfs_read_metadata() argument
380 squashfs_get_fragment(struct super_block * sb,u64 start_block,int length) squashfs_get_fragment() argument
395 squashfs_get_datablock(struct super_block * sb,u64 start_block,int length) squashfs_get_datablock() argument
406 squashfs_read_table(struct super_block * sb,u64 block,int length) squashfs_read_table() argument
[all...]
/linux/tools/testing/selftests/mm/
H A Dmap_hugetlb.c16 #define LENGTH (256UL*1024*1024) macro
24 static void write_bytes(char *addr, size_t length) in write_bytes() argument
28 for (i = 0; i < length; i++) in write_bytes()
32 static void read_bytes(char *addr, size_t length) in read_bytes() argument
37 for (i = 0; i < length; i++) in read_bytes()
48 size_t length = LENGTH; in main() local
53 /* munmap with fail if the length is not page aligned */ in main()
54 if (hugepage_size > length) in main()
55 length = hugepage_size; in main()
61 length = atol(argv[1]) << 20; in main()
[all …]
/linux/drivers/video/fbdev/
H A D68328fb.c113 u_long length; in get_line_length() local
115 length = xres_virtual * bpp; in get_line_length()
116 length = (length + 31) & ~31; in get_line_length()
117 length >>= 3; in get_line_length()
118 return (length); in get_line_length()
190 var->red.length = 1; in mc68x328fb_check_var()
192 var->green.length = 1; in mc68x328fb_check_var()
194 var->blue.length = 1; in mc68x328fb_check_var()
196 var->transp.length = 0; in mc68x328fb_check_var()
200 var->red.length = 8; in mc68x328fb_check_var()
[all …]
/linux/include/linux/
H A Dbcm963xx_tag.h7 #define TAGVER_LEN 4 /* Length of Tag Version */
8 #define TAGLAYOUT_LEN 4 /* Length of FlashLayoutVer */
9 #define SIG1_LEN 20 /* Company Signature 1 Length */
10 #define SIG2_LEN 14 /* Company Signature 2 Length */
11 #define BOARDID_LEN 16 /* Length of BoardId */
12 #define ENDIANFLAG_LEN 2 /* Endian Flag Length */
13 #define CHIPID_LEN 6 /* Chip Id Length */
14 #define IMAGE_LEN 10 /* Length of Length Field */
15 #define ADDRESS_LEN 12 /* Length of Address field */
16 #define IMAGE_SEQUENCE_LEN 4 /* Image sequence Length */
[all …]
H A Drelay.h174 size_t length);
180 * @length: number of bytes to write
191 size_t length) in relay_write() argument
198 if (unlikely(buf->offset + length > chan->subbuf_size)) in relay_write()
199 length = relay_switch_subbuf(buf, length); in relay_write()
200 memcpy(buf->data + buf->offset, data, length); in relay_write()
201 buf->offset += length; in relay_write()
209 * @length: number of bytes to write
219 size_t length) in __relay_write() argument
224 if (unlikely(buf->offset + length > buf->chan->subbuf_size)) in __relay_write()
[all …]
/linux/include/rdma/
H A Drdmavt_mr.h21 size_t length; member
35 size_t length; member
70 u32 sge_length; /* length of the SGE */
71 u32 length; /* remaining length of the segment */ member
102 static inline u32 rvt_get_sge_length(struct rvt_sge *sge, u32 length) in rvt_get_sge_length() argument
104 u32 len = sge->length; in rvt_get_sge_length()
106 if (len > length) in rvt_get_sge_length()
107 len = length; in rvt_get_sge_length()
114 static inline void rvt_update_sge(struct rvt_sge_state *ss, u32 length, in rvt_update_sge() argument
119 sge->vaddr += length; in rvt_update_sge()
[all …]
/linux/drivers/net/arcnet/
H A Darc-rawmode.c40 struct archdr *pkthdr, int length) in rx() argument
47 arc_printk(D_DURING, dev, "it's a raw packet (length=%d)\n", length); in rx()
49 if (length > MTU) in rx()
50 ofs = 512 - length; in rx()
52 ofs = 256 - length; in rx()
54 skb = alloc_skb(length + ARC_HDR_SIZE, GFP_ATOMIC); in rx()
59 skb_put(skb, length + ARC_HDR_SIZE); in rx()
69 if (length > sizeof(pkt->soft)) in rx()
72 length - sizeof(pkt->soft)); in rx()
113 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, in prepare_tx() argument
[all …]
H A Dcapmode.c43 struct archdr *pkthdr, int length) in rx() argument
51 arc_printk(D_DURING, dev, "it's a raw(cap) packet (length=%d)\n", in rx()
52 length); in rx()
54 if (length >= MinTU) in rx()
55 ofs = 512 - length; in rx()
57 ofs = 256 - length; in rx()
59 skb = alloc_skb(length + ARC_HDR_SIZE + sizeof(int), GFP_ATOMIC); in rx()
64 skb_put(skb, length + ARC_HDR_SIZE + sizeof(int)); in rx()
82 if (length > sizeof(pkt->soft)) in rx()
86 length - sizeof(pkt->soft)); in rx()
[all …]
H A Drfc1051.c41 struct archdr *pkthdr, int length);
44 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length,
123 struct archdr *pkthdr, int length) in rx() argument
130 arc_printk(D_DURING, dev, "it's a raw packet (length=%d)\n", length); in rx()
132 if (length >= MinTU) in rx()
133 ofs = 512 - length; in rx()
135 ofs = 256 - length; in rx()
137 skb = alloc_skb(length + ARC_HDR_SIZE, GFP_ATOMIC); in rx()
142 skb_put(skb, length + ARC_HDR_SIZE); in rx()
149 if (length > sizeof(pkt->soft)) in rx()
[all …]
/linux/fs/verity/
H A Dread_metadata.c17 void __user *buf, u64 offset, int length) in fsverity_read_merkle_tree() argument
26 end_offset = min(offset + length, vi->tree_params.tree_size); in fsverity_read_merkle_tree()
81 static int fsverity_read_buffer(void __user *dst, u64 offset, int length, in fsverity_read_buffer() argument
89 length = min_t(size_t, length, src_length); in fsverity_read_buffer()
91 if (copy_to_user(dst, src, length)) in fsverity_read_buffer()
94 return length; in fsverity_read_buffer()
98 void __user *buf, u64 offset, int length) in fsverity_read_descriptor() argument
112 res = fsverity_read_buffer(buf, offset, length, desc, desc_size); in fsverity_read_descriptor()
119 void __user *buf, u64 offset, int length) in fsverity_read_signature() argument
137 res = fsverity_read_buffer(buf, offset, length, desc->signature, in fsverity_read_signature()
[all …]
/linux/drivers/net/wireless/ath/ath10k/
H A Dbmi.c72 ath10k_warn(ar, "invalid get_target_info response length (%d)\n", in ath10k_bmi_get_target_info()
119 /* Step 1b: Read the version length */ in ath10k_bmi_get_target_info_sdio()
131 /* Step 2: Check the target info length */ in ath10k_bmi_get_target_info_sdio()
155 u32 address, void *buffer, u32 length) in ath10k_bmi_read_memory() argument
163 ath10k_dbg(ar, ATH10K_DBG_BMI, "bmi read address 0x%x length %d\n", in ath10k_bmi_read_memory()
164 address, length); in ath10k_bmi_read_memory()
171 while (length) { in ath10k_bmi_read_memory()
172 rxlen = min_t(u32, length, BMI_MAX_DATA_SIZE); in ath10k_bmi_read_memory()
189 length -= rxlen; in ath10k_bmi_read_memory()
260 u32 address, const void *buffer, u32 length) in ath10k_bmi_write_memory() argument
[all …]
/linux/drivers/nvdimm/
H A Dbadrange.c27 struct badrange_entry *bre, u64 addr, u64 length) in append_badrange_entry() argument
31 bre->length = length; in append_badrange_entry()
36 u64 addr, u64 length, gfp_t flags) in alloc_and_append_badrange_entry() argument
44 append_badrange_entry(badrange, bre, addr, length); in alloc_and_append_badrange_entry()
48 static int add_badrange(struct badrange *badrange, u64 addr, u64 length) in add_badrange() argument
59 append_badrange_entry(badrange, bre_new, addr, length); in add_badrange()
70 /* If length has changed, update this list entry */ in add_badrange()
71 if (bre->length != length) in add_badrange()
72 bre->length = length; in add_badrange()
78 * If not a duplicate or a simple length update, add the entry as is, in add_badrange()
[all …]
/linux/drivers/nvme/host/
H A Dfc.h110 "Bad CR_ASSOC Length",
111 "Bad CR_ASSOC Rqst Length",
113 "Bad CR_ASSOC Cmd Length",
117 "Bad CR_CONN Length",
118 "Bad CR_CONN Rqst Length",
120 "Bad Association ID Length",
123 "Bad Connection ID Length",
126 "Bad CR_CONN Cmd Length",
127 "Bad DISCONN Length",
128 "Bad DISCONN Rqst Length",
[all …]
/linux/drivers/acpi/x86/
H A Dapple.c43 if (!props->buffer.length) in acpi_extract_apple_properties()
49 props->buffer.length, props->buffer.pointer); in acpi_extract_apple_properties()
67 /* newsize = key length + value length of each tuple */ in acpi_extract_apple_properties()
79 newsize += key->string.length + 1; in acpi_extract_apple_properties()
81 newsize += val->buffer.length; in acpi_extract_apple_properties()
83 newsize += val->string.length + 1; in acpi_extract_apple_properties()
117 newprops[k].string.length = key->string.length; in acpi_extract_apple_properties()
119 memcpy(free_space, key->string.pointer, key->string.length); in acpi_extract_apple_properties()
120 free_space += key->string.length + 1; in acpi_extract_apple_properties()
126 newprops[v].string.length = val->string.length; in acpi_extract_apple_properties()
[all …]
/linux/arch/arm/mach-omap2/
H A Dio.c69 .length = L3_24XX_SIZE,
75 .length = L4_24XX_SIZE,
85 .length = DSP_MEM_2420_SIZE,
91 .length = DSP_IPI_2420_SIZE,
97 .length = DSP_MMU_2420_SIZE,
109 .length = L4_WK_243X_SIZE,
115 .length = OMAP243X_GPMC_SIZE,
121 .length = OMAP243X_SDRC_SIZE,
127 .length = OMAP243X_SMS_SIZE,
139 .length = L3_34XX_SIZE,
[all …]

12345678910>>...171