Home
last modified time | relevance | path

Searched refs:length (Results 1 – 25 of 2875) sorted by relevance

12345678910>>...115

/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()
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()
92 target_desc->buffer.length = length; in acpi_ex_store_buffer_to_buffer()
99 target_desc->buffer.length); in acpi_ex_store_buffer_to_buffer()
[all …]
H A Dutids.c40 u32 length; in acpi_ut_execute_HID() local
55 length = ACPI_EISAID_STRING_SIZE; in acpi_ut_execute_HID()
57 length = obj_desc->string.length + 1; in acpi_ut_execute_HID()
64 (acpi_size)length); in acpi_ut_execute_HID()
83 hid->length = length; in acpi_ut_execute_HID()
118 u32 length; in acpi_ut_execute_UID() local
133 length = ACPI_MAX64_DECIMAL_DIGITS + 1; in acpi_ut_execute_UID()
135 length = obj_desc->string.length + 1; in acpi_ut_execute_UID()
142 (acpi_size)length); in acpi_ut_execute_UID()
161 uid->length = length; in acpi_ut_execute_UID()
[all …]
H A Dtbfadt.c37 u16 length; member
278 u32 length; in acpi_tb_parse_fadt() local
295 length = fadt_desc->length; in acpi_tb_parse_fadt()
301 (void)acpi_ut_verify_checksum(table, length); in acpi_tb_parse_fadt()
305 acpi_tb_create_local_fadt(table, length); in acpi_tb_parse_fadt()
350 void acpi_tb_create_local_fadt(struct acpi_table_header *table, u32 length) in acpi_tb_create_local_fadt() argument
357 if (length > sizeof(struct acpi_table_fadt)) { in acpi_tb_create_local_fadt()
362 length, in acpi_tb_create_local_fadt()
373 ACPI_MIN(length, sizeof(struct acpi_table_fadt))); in acpi_tb_create_local_fadt()
440 u8 length; in acpi_tb_convert_fadt() local
[all …]
H A Dutprint.c52 u32 length = 0; in acpi_ut_bound_string_length() local
55 length++; in acpi_ut_bound_string_length()
60 return (length); in acpi_ut_bound_string_length()
331 s32 length; in vsnprintf() local
446 length = (s32)acpi_ut_bound_string_length(s, precision); in vsnprintf()
448 while (length < width--) { in vsnprintf()
456 for (i = 0; i < length; ++i) { in vsnprintf()
461 while (length < width--) { in vsnprintf()
571 int length; in snprintf() local
574 length = vsnprintf(string, size, format, args); in snprintf()
[all …]
/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/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/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/security/selinux/
H A Dselinuxfs.c126 ssize_t length; in sel_read_enforce() local
128 length = scnprintf(tmpbuf, TMPBUFLEN, "%d", in sel_read_enforce()
130 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length); in sel_read_enforce()
139 ssize_t length; in sel_write_enforce() local
154 length = -EINVAL; in sel_write_enforce()
162 length = avc_has_perm(current_sid(), SECINITSID_SECURITY, in sel_write_enforce()
165 if (length) in sel_write_enforce()
183 length = count; in sel_write_enforce()
186 return length; in sel_write_enforce()
202 ssize_t length; in sel_read_handle_unknown() local
[all …]
/linux/include/linux/
H A Drelay.h185 size_t length);
202 size_t length) in relay_write() argument
209 if (unlikely(buf->offset + length > chan->subbuf_size)) in relay_write()
210 length = relay_switch_subbuf(buf, length); in relay_write()
211 memcpy(buf->data + buf->offset, data, length); in relay_write()
212 buf->offset += length; in relay_write()
230 size_t length) in __relay_write() argument
235 if (unlikely(buf->offset + length > buf->chan->subbuf_size)) in __relay_write()
236 length = relay_switch_subbuf(buf, length); in __relay_write()
237 memcpy(buf->data + buf->offset, data, length); in __relay_write()
[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
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()
132 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, in prepare_tx() argument
[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/rust/kernel/
H A Duaccess.rs149 length: usize, field
165 pub fn new(ptr: UserPtr, length: usize) -> Self { in new()
166 UserSlice { ptr, length } in new()
180 length: self.length, in reader()
188 length: self.length, in writer()
199 length: self.length, in reader_writer()
203 length: self.length, in reader_writer()
214 length: usize, field
223 self.length = self.length.checked_sub(num_skip).ok_or(EFAULT)?; in skip()
237 length: self.length, in clone_reader()
[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/rdma/
H A Drdmavt_mr.h21 size_t length; member
35 size_t length; member
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()
120 sge->length -= length; in rvt_update_sge()
[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()
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
285 while (length) { in rxe_mr_copy_dma()
[all …]
/linux/tools/testing/selftests/mm/
H A Dmap_hugetlb.c24 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
54 if (hugepage_size > length) in main()
55 length = hugepage_size; in main()
61 length = atol(argv[1]) << 20; in main()
72 ksft_print_msg("Mapping %lu Mbytes\n", (unsigned long)length >> 20); in main()
74 addr = mmap(NULL, length, PROTECTION, flags, -1, 0); in main()
[all …]
H A Dhugepage-mremap.c111 size_t length = 0; in main() local
124 length = (size_t)atoi(argv[1]); in main()
126 length = DEFAULT_LENGTH_MB; in main()
128 length = MB_TO_BYTES(length); in main()
135 void *haddr = mmap((void *)suggested_addr, length, PROTECTION, in main()
143 void *daddr = mmap((void *)suggested_addr, length, PROTECTION, in main()
151 mmap((void *)suggested_addr, length, PROTECTION, FLAGS, -1, 0); in main()
156 register_region_with_uffd(haddr, length); in main()
158 void *addr = mremap(haddr, length, length, in main()
165 write_bytes(addr, length); in main()
[all …]
/linux/fs/squashfs/
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()
298 int offset, int length) in squashfs_copy_data() argument
300 int remaining = length; in squashfs_copy_data()
302 if (length == 0) in squashfs_copy_data()
305 return min(length, entry->length - offset); in squashfs_copy_data()
307 while (offset < entry->length) { in squashfs_copy_data()
310 int bytes = min_t(int, entry->length - offset, in squashfs_copy_data()
[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 …]
/linux/fs/verity/
H A Dread_metadata.c18 void __user *buf, u64 offset, int length) in fsverity_read_merkle_tree() argument
27 end_offset = min(offset + length, vi->tree_params.tree_size); in fsverity_read_merkle_tree()
82 static int fsverity_read_buffer(void __user *dst, u64 offset, int length, in fsverity_read_buffer() argument
90 length = min_t(size_t, length, src_length); in fsverity_read_buffer()
92 if (copy_to_user(dst, src, length)) in fsverity_read_buffer()
95 return length; in fsverity_read_buffer()
99 void __user *buf, u64 offset, int length) in fsverity_read_descriptor() argument
113 res = fsverity_read_buffer(buf, offset, length, desc, desc_size); in fsverity_read_descriptor()
120 void __user *buf, u64 offset, int length) in fsverity_read_signature() argument
138 res = fsverity_read_buffer(buf, offset, length, desc->signature, in fsverity_read_signature()
[all …]
/linux/drivers/net/ethernet/cisco/enic/
H A Dvnic_vic.c25 vp->length = htonl(sizeof(vp->num_tlvs)); in vic_provinfo_alloc()
35 int vic_provinfo_add_tlv(struct vic_provinfo *vp, u16 type, u16 length, in vic_provinfo_add_tlv() argument
43 if (ntohl(vp->length) + offsetof(struct vic_provinfo_tlv, value) + in vic_provinfo_add_tlv()
44 length > VIC_PROVINFO_MAX_TLV_DATA) in vic_provinfo_add_tlv()
48 ntohl(vp->length) - sizeof(vp->num_tlvs)); in vic_provinfo_add_tlv()
51 tlv->length = htons(length); in vic_provinfo_add_tlv()
52 unsafe_memcpy(tlv->value, value, length, in vic_provinfo_add_tlv()
56 vp->length = htonl(ntohl(vp->length) + in vic_provinfo_add_tlv()
57 offsetof(struct vic_provinfo_tlv, value) + length); in vic_provinfo_add_tlv()
64 return vp ? ntohl(vp->length) + sizeof(*vp) - sizeof(vp->num_tlvs) : 0; in vic_provinfo_size()
/linux/tools/firewire/
H A Dnosy-dump.c33 static void print_packet(uint32_t *data, size_t length);
34 static void decode_link_packet(struct link_packet *packet, size_t length,
134 subaction_create(uint32_t *data, size_t length) in subaction_create() argument
139 sa = malloc(sizeof *sa - sizeof sa->packet + length); in subaction_create()
142 sa->ack = data[length / 4 - 1]; in subaction_create()
143 sa->length = length; in subaction_create()
144 memcpy(&sa->packet, data, length); in subaction_create()
230 decode_link_packet(&t->request->packet, t->request->length, in handle_transaction()
233 decode_link_packet(&t->response->packet, t->request->length, in handle_transaction()
240 print_packet((uint32_t *) &sa->packet, sa->length); in handle_transaction()
[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()
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()
129 val->string.length); in acpi_extract_apple_properties()
[all …]

12345678910>>...115