Home
last modified time | relevance | path

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

12345678910>>...132

/Linux-v6.6/drivers/acpi/acpica/
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 …]
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 …]
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()
354 void acpi_tb_create_local_fadt(struct acpi_table_header *table, u32 length) in acpi_tb_create_local_fadt() argument
361 if (length > sizeof(struct acpi_table_fadt)) { in acpi_tb_create_local_fadt()
366 length, in acpi_tb_create_local_fadt()
377 ACPI_MIN(length, sizeof(struct acpi_table_fadt))); in acpi_tb_create_local_fadt()
444 u8 length; in acpi_tb_convert_fadt() local
[all …]
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
449 length = (s32)acpi_ut_bound_string_length(s, precision); in vsnprintf()
451 while (length < width--) { in vsnprintf()
459 for (i = 0; i < length; ++i) { in vsnprintf()
464 while (length < width--) { in vsnprintf()
574 int length; in snprintf() local
577 length = vsnprintf(string, size, format, args); in snprintf()
[all …]
/Linux-v6.6/sound/usb/line6/
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-v6.6/drivers/net/ethernet/netronome/nfp/
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-v6.6/drivers/video/fbdev/mmp/fb/
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-v6.6/include/linux/
Drelay.h174 size_t length);
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()
219 size_t length) in __relay_write() argument
224 if (unlikely(buf->offset + length > buf->chan->subbuf_size)) in __relay_write()
225 length = relay_switch_subbuf(buf, length); in __relay_write()
226 memcpy(buf->data + buf->offset, data, length); in __relay_write()
[all …]
/Linux-v6.6/drivers/net/arcnet/
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 …]
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 …]
Drfc1051.c41 struct archdr *pkthdr, int length);
44 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length,
122 struct archdr *pkthdr, int length) in rx() argument
129 arc_printk(D_DURING, dev, "it's a raw packet (length=%d)\n", length); in rx()
131 if (length >= MinTU) in rx()
132 ofs = 512 - length; in rx()
134 ofs = 256 - length; in rx()
136 skb = alloc_skb(length + ARC_HDR_SIZE, GFP_ATOMIC); in rx()
141 skb_put(skb, length + ARC_HDR_SIZE); in rx()
148 if (length > sizeof(pkt->soft)) in rx()
[all …]
/Linux-v6.6/security/selinux/
Dselinuxfs.c127 ssize_t length; in sel_read_enforce() local
129 length = scnprintf(tmpbuf, TMPBUFLEN, "%d", in sel_read_enforce()
131 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length); in sel_read_enforce()
140 ssize_t length; in sel_write_enforce() local
155 length = -EINVAL; in sel_write_enforce()
163 length = avc_has_perm(current_sid(), SECINITSID_SECURITY, in sel_write_enforce()
166 if (length) in sel_write_enforce()
184 length = count; in sel_write_enforce()
187 return length; in sel_write_enforce()
203 ssize_t length; in sel_read_handle_unknown() local
[all …]
/Linux-v6.6/fs/ntfs/
Drunlist.c151 if ((dst->vcn + dst->length) != src->vcn) in ntfs_are_rl_mergeable()
155 ((dst->lcn + dst->length) == src->lcn)) in ntfs_are_rl_mergeable()
177 dst->length += src->length; in __ntfs_rl_merge()
238 dst[loc].length = dst[loc + 1].vcn - dst[loc].vcn; in ntfs_rl_append()
242 dst[marker].vcn = dst[marker - 1].vcn + dst[marker - 1].length; in ntfs_rl_append()
292 merged_length = dst[loc - 1].length; in ntfs_rl_insert()
294 merged_length += src->length; in ntfs_rl_insert()
325 dst[marker].vcn = dst[marker - 1].vcn + dst[marker - 1].length; in ntfs_rl_insert()
328 dst[marker].length = dst[marker + 1].vcn - dst[marker].vcn; in ntfs_rl_insert()
333 dst[loc].vcn = dst[loc - 1].vcn + dst[loc - 1].length; in ntfs_rl_insert()
[all …]
/Linux-v6.6/include/rdma/
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-v6.6/drivers/video/fbdev/
D68328fb.c114 u_long length; in get_line_length() local
116 length = xres_virtual * bpp; in get_line_length()
117 length = (length + 31) & ~31; in get_line_length()
118 length >>= 3; in get_line_length()
119 return (length); in get_line_length()
191 var->red.length = 1; in mc68x328fb_check_var()
193 var->green.length = 1; in mc68x328fb_check_var()
195 var->blue.length = 1; in mc68x328fb_check_var()
197 var->transp.length = 0; in mc68x328fb_check_var()
201 var->red.length = 8; in mc68x328fb_check_var()
[all …]
/Linux-v6.6/net/sunrpc/auth_gss/
Dgss_generic_token.c76 der_length_size( int length) in der_length_size() argument
78 if (length < (1<<7)) in der_length_size()
80 else if (length < (1<<8)) in der_length_size()
86 else if (length < (1<<16)) in der_length_size()
88 else if (length < (1<<24)) in der_length_size()
96 der_write_length(unsigned char **buf, int length) in der_write_length() argument
98 if (length < (1<<7)) { in der_write_length()
99 *(*buf)++ = (unsigned char) length; in der_write_length()
101 *(*buf)++ = (unsigned char) (der_length_size(length)+127); in der_write_length()
103 if (length >= (1<<24)) in der_write_length()
[all …]
/Linux-v6.6/drivers/infiniband/sw/rxe/
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 …]
/Linux-v6.6/tools/testing/selftests/mm/
Dhugepage-mremap.c108 size_t length = 0; in main() local
120 length = (size_t)atoi(argv[1]); in main()
122 length = DEFAULT_LENGTH_MB; in main()
124 length = MB_TO_BYTES(length); in main()
133 void *haddr = mmap((void *)suggested_addr, length, PROTECTION, in main()
143 void *daddr = mmap((void *)suggested_addr, length, PROTECTION, in main()
153 mmap((void *)suggested_addr, length, PROTECTION, FLAGS, -1, 0); in main()
160 register_region_with_uffd(haddr, length); in main()
162 void *addr = mremap(haddr, length, length, in main()
171 write_bytes(addr, length); in main()
[all …]
/Linux-v6.6/fs/squashfs/
Dblock.c80 struct address_space *cache_mapping, u64 index, int length, in squashfs_bio_read_cached() argument
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()
263 int squashfs_read_data(struct super_block *sb, u64 index, int length, in squashfs_read_data() argument
272 if (length) { in squashfs_read_data()
276 compressed = SQUASHFS_COMPRESSED_BLOCK(length); in squashfs_read_data()
277 length = SQUASHFS_COMPRESSED_SIZE_BLOCK(length); in squashfs_read_data()
279 index, compressed ? "" : "un", length, output->length); in squashfs_read_data()
[all …]
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()
294 int offset, int length) in squashfs_copy_data() argument
296 int remaining = length; in squashfs_copy_data()
298 if (length == 0) in squashfs_copy_data()
301 return min(length, entry->length - offset); in squashfs_copy_data()
303 while (offset < entry->length) { in squashfs_copy_data()
306 int bytes = min_t(int, entry->length - offset, in squashfs_copy_data()
[all …]
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/hdcp/
Dhdcp_msg.c155 i2c_payloads[1].length = message_info->length; in hdmi_14_process_transaction()
159 buff = kzalloc(message_info->length + 1, GFP_KERNEL); in hdmi_14_process_transaction()
165 memmove(&buff[1], message_info->data, message_info->length); in hdmi_14_process_transaction()
166 i2c_payloads[0].length = message_info->length + 1; in hdmi_14_process_transaction()
225 uint32_t length, in dpcd_access_helper() argument
237 if (length % HDCP14_KSV_SIZE) { in dpcd_access_helper()
240 length, in dpcd_access_helper()
243 if (length > HDCP14_MAX_KSV_FIFO_SIZE) { in dpcd_access_helper()
246 length, in dpcd_access_helper()
252 length / HDCP14_KSV_SIZE); in dpcd_access_helper()
[all …]
/Linux-v6.6/drivers/net/ethernet/cisco/enic/
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 memcpy(tlv->value, value, length); in vic_provinfo_add_tlv()
55 vp->length = htonl(ntohl(vp->length) + in vic_provinfo_add_tlv()
56 offsetof(struct vic_provinfo_tlv, value) + length); in vic_provinfo_add_tlv()
63 return vp ? ntohl(vp->length) + sizeof(*vp) - sizeof(vp->num_tlvs) : 0; in vic_provinfo_size()
/Linux-v6.6/fs/verity/
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-v6.6/drivers/video/
Dhdmi.c64 frame->length = HDMI_AVI_INFOFRAME_SIZE; in hdmi_avi_infoframe_init()
72 frame->length != HDMI_AVI_INFOFRAME_SIZE) in hdmi_avi_infoframe_check_only()
114 size_t length; in hdmi_avi_infoframe_pack_only() local
121 length = HDMI_INFOFRAME_HEADER_SIZE + frame->length; in hdmi_avi_infoframe_pack_only()
123 if (size < length) in hdmi_avi_infoframe_pack_only()
130 ptr[2] = frame->length; in hdmi_avi_infoframe_pack_only()
178 hdmi_infoframe_set_checksum(buffer, length); in hdmi_avi_infoframe_pack_only()
180 return length; in hdmi_avi_infoframe_pack_only()
231 frame->length = HDMI_SPD_INFOFRAME_SIZE; in hdmi_spd_infoframe_init()
246 frame->length != HDMI_SPD_INFOFRAME_SIZE) in hdmi_spd_infoframe_check_only()
[all …]
/Linux-v6.6/arch/arm/mach-omap2/
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>>...132