Home
last modified time | relevance | path

Searched refs:total_len (Results 1 – 25 of 213) sorted by relevance

123456789

/linux-6.15/drivers/net/ethernet/netronome/nfp/nfpcore/
H A Dcrc32.h16 static inline u32 crc32_posix_end(u32 crc, size_t total_len) in crc32_posix_end() argument
19 while (total_len != 0) { in crc32_posix_end()
20 u8 c = total_len & 0xff; in crc32_posix_end()
23 total_len >>= 8; in crc32_posix_end()
/linux-6.15/drivers/media/dvb-frontends/
H A Dmxl692.c259 total_len = (total_len + 3) & ~3; in mxl692_write_fw_block()
266 chunk_len = (total_len < payload_max) ? total_len : payload_max; in mxl692_write_fw_block()
286 total_len -= chunk_len; in mxl692_write_fw_block()
303 int status = 0, total_len = 0; in mxl692_memwrite() local
306 total_len = size; in mxl692_memwrite()
307 total_len = (total_len + 3) & ~3; /* 4 byte alignment */ in mxl692_memwrite()
320 memcpy(plocal_buf, buffer, total_len); in mxl692_memwrite()
382 int status = 0, total_len = 0; in mxl692_opwrite() local
386 total_len = size; in mxl692_opwrite()
387 total_len = (total_len + 3) & ~3; /* 4 byte alignment */ in mxl692_opwrite()
[all …]
/linux-6.15/fs/smb/server/
H A Dasn1.c103 int total_len = 4 + compute_asn_hdr_len_bytes(neg_result_len + in build_spnego_ntlmssp_neg_blob() local
107 buf = kmalloc(total_len, KSMBD_DEFAULT_GFP); in build_spnego_ntlmssp_neg_blob()
130 *buflen = total_len; in build_spnego_ntlmssp_neg_blob()
140 int total_len = 4 + compute_asn_hdr_len_bytes(neg_result_len) * 2 + in build_spnego_ntlmssp_auth_blob() local
143 buf = kmalloc(total_len, KSMBD_DEFAULT_GFP); in build_spnego_ntlmssp_auth_blob()
158 *buflen = total_len; in build_spnego_ntlmssp_auth_blob()
/linux-6.15/fs/smb/client/
H A Dsmb2pdu.c534 total_len); in __smb2_plain_req_init()
556 total_len); in smb2_plain_req_init()
698 *total_len = ALIGN(*total_len, 8); in assemble_neg_contexts()
1069 total_len += 6; in SMB2_negotiate()
1077 total_len += 8; in SMB2_negotiate()
1082 total_len += 2; in SMB2_negotiate()
1455 &total_len); in SMB2_sess_alloc_buffer()
2190 &total_len); in SMB2_tdis()
4474 *total_len = ALIGN(*total_len, 8); in smb2_new_read_req()
5236 total_len += 4; in posix_info_parse()
[all …]
/linux-6.15/net/nfc/nci/
H A Ddata.c97 int total_len = skb->len; in nci_queue_tx_data_frags() local
105 pr_debug("conn_id 0x%x, total_len %d\n", conn_id, total_len); in nci_queue_tx_data_frags()
115 while (total_len) { in nci_queue_tx_data_frags()
117 min_t(int, total_len, conn_info->max_pkt_payload_len); in nci_queue_tx_data_frags()
133 ((total_len == frag_len) ? in nci_queue_tx_data_frags()
139 total_len -= frag_len; in nci_queue_tx_data_frags()
142 frag_len, total_len); in nci_queue_tx_data_frags()
/linux-6.15/drivers/net/wireless/ath/ath6kl/
H A Dtrace.h121 TP_PROTO(unsigned int addr, int flags, unsigned int total_len,
124 TP_ARGS(addr, flags, total_len, entries, list),
131 __field(size_t, total_len)
133 __dynamic_array(u8, data, total_len)
144 __entry->total_len = total_len;
170 __entry->total_len
/linux-6.15/drivers/fsi/
H A Dfsi-core.c561 size_t total_len, read_len; in fsi_slave_sysfs_raw_read() local
570 for (total_len = 0; total_len < count; total_len += read_len) { in fsi_slave_sysfs_raw_read()
571 read_len = aligned_access_size(off, count - total_len); in fsi_slave_sysfs_raw_read()
588 size_t total_len, write_len; in fsi_slave_sysfs_raw_write() local
597 for (total_len = 0; total_len < count; total_len += write_len) { in fsi_slave_sysfs_raw_write()
664 size_t total_len, read_len; in cfam_read() local
674 for (total_len = 0; total_len < count; total_len += read_len) { in cfam_read()
683 rc = copy_to_user(buf + total_len, &data, read_len); in cfam_read()
700 size_t total_len, write_len; in cfam_write() local
711 for (total_len = 0; total_len < count; total_len += write_len) { in cfam_write()
[all …]
/linux-6.15/drivers/media/platform/mediatek/vcodec/common/
H A Dmtk_vcodec_dbgfs.c96 int total_len = 200 * (dbgfs->inst_count == 0 ? 1 : dbgfs->inst_count); in mtk_vdec_dbgfs_read() local
99 char *buf = kmalloc(total_len, GFP_KERNEL); in mtk_vdec_dbgfs_read()
105 mtk_vdec_dbgfs_get_help(buf, &used_len, total_len); in mtk_vdec_dbgfs_read()
119 curr_len = snprintf(buf + used_len, total_len - used_len, in mtk_vdec_dbgfs_read()
124 curr_len = snprintf(buf + used_len, total_len - used_len, in mtk_vdec_dbgfs_read()
132 mtk_vdec_dbgfs_get_format_type(ctx, buf, &used_len, total_len); in mtk_vdec_dbgfs_read()
/linux-6.15/drivers/gpu/drm/udl/
H A Dudl_main.c35 u8 total_len = 0; in udl_parse_vendor_descriptor() local
42 total_len = usb_get_descriptor(udev, 0x5f, /* vendor specific */ in udl_parse_vendor_descriptor()
44 if (total_len > 5) { in udl_parse_vendor_descriptor()
46 total_len, desc); in udl_parse_vendor_descriptor()
48 if ((desc[0] != total_len) || /* descriptor length */ in udl_parse_vendor_descriptor()
52 (desc[4] != total_len - 2)) /* length after type */ in udl_parse_vendor_descriptor()
55 desc_end = desc + total_len; in udl_parse_vendor_descriptor()
/linux-6.15/drivers/mtd/spi-nor/
H A Dotp.c309 size_t total_len, size_t *retlen, in spi_nor_mtd_otp_read_write() argument
324 total_len = min_t(size_t, total_len, spi_nor_otp_size(nor) - ofs); in spi_nor_mtd_otp_read_write()
326 if (!total_len) in spi_nor_mtd_otp_read_write()
334 ret = spi_nor_mtd_otp_range_is_locked(nor, ofs, total_len); in spi_nor_mtd_otp_read_write()
343 while (total_len) { in spi_nor_mtd_otp_read_write()
361 len = min_t(size_t, total_len, rlen - rofs); in spi_nor_mtd_otp_read_write()
375 total_len -= ret; in spi_nor_mtd_otp_read_write()
/linux-6.15/drivers/net/wireless/ath/ath10k/
H A Dwow.c89 int total_len = old->pkt_offset + old->pattern_len; in ath10k_wow_convert_8023_to_80211() local
139 if (total_len > ETH_HLEN) in ath10k_wow_convert_8023_to_80211()
141 else if (total_len > offsetof(struct ethhdr, h_proto)) in ath10k_wow_convert_8023_to_80211()
142 hdr_80211_end_offset = hdr_len + rfc_len + total_len - ETH_HLEN; in ath10k_wow_convert_8023_to_80211()
143 else if (total_len > ETH_ALEN) in ath10k_wow_convert_8023_to_80211()
144 hdr_80211_end_offset = total_len - ETH_ALEN + in ath10k_wow_convert_8023_to_80211()
147 hdr_80211_end_offset = total_len + in ath10k_wow_convert_8023_to_80211()
159 if (total_len > ETH_HLEN) { in ath10k_wow_convert_8023_to_80211()
163 total_len - ETH_HLEN); in ath10k_wow_convert_8023_to_80211()
166 total_len - ETH_HLEN); in ath10k_wow_convert_8023_to_80211()
[all …]
/linux-6.15/lib/kunit/
H A Dstring-stream-test.c169 size_t len, total_len; in string_stream_line_add_test() local
176 total_len = 0; in string_stream_line_add_test()
185 total_len += len; in string_stream_line_add_test()
191 KUNIT_EXPECT_EQ(test, strlen(concat_string), total_len); in string_stream_line_add_test()
225 size_t offset, total_len; in string_stream_variable_length_line_test() local
237 total_len = 0; in string_stream_variable_length_line_test()
241 total_len += sizeof(line) - offset; in string_stream_variable_length_line_test()
247 KUNIT_EXPECT_EQ(test, strlen(concat_string), total_len); in string_stream_variable_length_line_test()
/linux-6.15/drivers/net/ppp/
H A Dpppoe.c838 size_t total_len) in pppoe_sendmsg() argument
864 if (total_len > (dev->mtu + dev->hard_header_len)) in pppoe_sendmsg()
868 skb = sock_wmalloc(sk, hlen + sizeof(*ph) + total_len + in pppoe_sendmsg()
887 error = memcpy_from_msg(start, m, total_len); in pppoe_sendmsg()
893 error = total_len; in pppoe_sendmsg()
895 po->pppoe_pa.remote, NULL, total_len); in pppoe_sendmsg()
899 ph->length = htons(total_len); in pppoe_sendmsg()
1005 size_t total_len, int flags) in pppoe_recvmsg() argument
1018 total_len = min_t(size_t, total_len, skb->len); in pppoe_recvmsg()
1019 error = skb_copy_datagram_msg(skb, 0, m, total_len); in pppoe_recvmsg()
[all …]
/linux-6.15/mm/
H A Dprocess_vm_access.c165 size_t total_len = iov_iter_count(iter); in process_vm_rw_core() local
221 total_len -= iov_iter_count(iter); in process_vm_rw_core()
226 if (total_len) in process_vm_rw_core()
227 rc = total_len; in process_vm_rw_core()
/linux-6.15/drivers/dax/
H A Dkmem.c71 unsigned long total_len = 0; in dev_dax_kmem_probe() local
106 total_len += range_len(&range); in dev_dax_kmem_probe()
109 if (!total_len) { in dev_dax_kmem_probe()
125 rc = memory_group_register_static(numa_node, PFN_UP(total_len)); in dev_dax_kmem_probe()
/linux-6.15/drivers/net/wireless/ath/ath11k/
H A Dwow.c162 int total_len = old->pkt_offset + old->pattern_len; in ath11k_wow_convert_8023_to_80211() local
218 if (total_len > ETH_HLEN) in ath11k_wow_convert_8023_to_80211()
220 else if (total_len > offsetof(struct ethhdr, h_proto)) in ath11k_wow_convert_8023_to_80211()
221 hdr_80211_end_offset = hdr_len + rfc_len + total_len - ETH_HLEN; in ath11k_wow_convert_8023_to_80211()
222 else if (total_len > ETH_ALEN) in ath11k_wow_convert_8023_to_80211()
223 hdr_80211_end_offset = total_len - ETH_ALEN + in ath11k_wow_convert_8023_to_80211()
226 hdr_80211_end_offset = total_len + in ath11k_wow_convert_8023_to_80211()
238 if (total_len > ETH_HLEN) { in ath11k_wow_convert_8023_to_80211()
242 total_len - ETH_HLEN); in ath11k_wow_convert_8023_to_80211()
245 total_len - ETH_HLEN); in ath11k_wow_convert_8023_to_80211()
[all …]
/linux-6.15/arch/powerpc/platforms/powernv/
H A Dopal.c442 size_t total_len, bool atomic) in __opal_put_chars() argument
455 if (rc || be64_to_cpu(olen) < total_len) { in __opal_put_chars()
458 written = total_len; in __opal_put_chars()
465 olen = cpu_to_be64(total_len); in __opal_put_chars()
481 if (written < total_len) { in __opal_put_chars()
485 "len=%zu written=%zd\n", total_len, written); in __opal_put_chars()
498 ssize_t opal_put_chars(uint32_t vtermno, const u8 *data, size_t total_len) in opal_put_chars() argument
500 return __opal_put_chars(vtermno, data, total_len, false); in opal_put_chars()
510 size_t total_len) in opal_put_chars_atomic() argument
512 return __opal_put_chars(vtermno, data, total_len, true); in opal_put_chars_atomic()
/linux-6.15/drivers/spi/
H A Dspi-bcm63xx.c322 unsigned int n_transfers = 0, total_len = 0; in bcm63xx_spi_transfer_one() local
336 total_len += t->len; in bcm63xx_spi_transfer_one()
346 total_len > (bs->fifo_size + BCM63XX_SPI_MAX_PREPEND)) || in bcm63xx_spi_transfer_one()
347 (!can_use_prepend && total_len > bs->fifo_size)) { in bcm63xx_spi_transfer_one()
349 total_len, bs->fifo_size); in bcm63xx_spi_transfer_one()
378 m->actual_length += total_len; in bcm63xx_spi_transfer_one()
382 total_len = 0; in bcm63xx_spi_transfer_one()
H A Dspi-cavium.c131 unsigned int total_len = 0; in octeon_spi_transfer_one_message() local
143 total_len += r; in octeon_spi_transfer_one_message()
147 msg->actual_length = total_len; in octeon_spi_transfer_one_message()
H A Dspi-sunplus-sp7021.c183 unsigned int tx_cnt, total_len; in sp7021_spi_host_irq() local
192 total_len = FIELD_GET(SP7021_GET_LEN_MASK, fd_status); in sp7021_spi_host_irq()
194 if ((fd_status & SP7021_TX_EMP_FLAG) && (fd_status & SP7021_RX_EMP_FLAG) && total_len == 0) in sp7021_spi_host_irq()
197 if (tx_len == 0 && total_len == 0) in sp7021_spi_host_irq()
215 total_len = FIELD_GET(SP7021_GET_LEN_MASK, fd_status); in sp7021_spi_host_irq()
218 while (total_len != pspim->rx_cur_len) { in sp7021_spi_host_irq()
220 total_len = FIELD_GET(SP7021_GET_LEN_MASK, fd_status); in sp7021_spi_host_irq()
/linux-6.15/fs/
H A Dsplice.c455 sd->len = sd->total_len; in splice_from_pipe_feed()
474 sd->total_len -= ret; in splice_from_pipe_feed()
484 if (!sd->total_len) in splice_from_pipe_feed()
635 .total_len = len, in splice_from_pipe()
667 .total_len = len, in iter_file_splice_write()
686 while (sd.total_len) { in iter_file_splice_write()
712 left = sd.total_len; in iter_file_splice_write()
744 sd.total_len -= ret; in iter_file_splice_write()
1064 len = sd->total_len; in splice_direct_to_actor()
1186 .total_len = len, in do_splice_direct_actor()
[all …]
/linux-6.15/kernel/
H A Dkallsyms_selftest.c107 u32 ratio, total_size, total_len = 0; in test_kallsyms_compression_ratio() local
109 kallsyms_on_each_symbol(stat_symbol_len, &total_len); in test_kallsyms_compression_ratio()
118 pos = total_len / kallsyms_num_syms; in test_kallsyms_compression_ratio()
150 ratio = (u32)div_u64(10000ULL * total_size, total_len); in test_kallsyms_compression_ratio()
152 kallsyms_num_syms, total_size, total_len, ratio / 100, ratio % 100); in test_kallsyms_compression_ratio()
/linux-6.15/tools/testing/selftests/net/
H A Dtxtimestamp.c497 int fd, i, val = 1, total_len, epfd = 0; in do_test() local
503 total_len = cfg_payload_len; in do_test()
505 total_len += sizeof(struct udphdr); in do_test()
508 total_len += sizeof(struct iphdr); in do_test()
510 total_len += sizeof(struct ipv6hdr); in do_test()
519 buf = malloc(total_len); in do_test()
587 memset(buf, 'a' + i, total_len); in do_test()
605 iov.iov_len = total_len; in do_test()
659 if (val != total_len) in do_test()
/linux-6.15/drivers/net/wireless/broadcom/b43/
H A Dpio.c493 unsigned int hdrlen, total_len; in b43_pio_tx() local
511 total_len = roundup(skb->len + hdrlen, 4); in b43_pio_tx()
513 if (unlikely(total_len > q->buffer_size)) { in b43_pio_tx()
525 if (total_len > (q->buffer_size - q->buffer_used)) { in b43_pio_tx()
568 unsigned int total_len; in b43_pio_handle_txstatus() local
580 total_len = pack->skb->len + b43_txhdr_size(dev); in b43_pio_handle_txstatus()
581 total_len = roundup(total_len, 4); in b43_pio_handle_txstatus()
582 q->buffer_used -= total_len; in b43_pio_handle_txstatus()
/linux-6.15/drivers/scsi/pm8001/
H A Dpm8001_init.c193 (pm8001_ha->memoryMap.region[i].total_len + in pm8001_free()
364 pm8001_ha->memoryMap.region[ci_offset+i].total_len = 4; in pm8001_alloc()
373 pm8001_ha->memoryMap.region[ib_offset+i].total_len = in pm8001_alloc()
382 pm8001_ha->memoryMap.region[ib_offset+i].total_len = in pm8001_alloc()
394 pm8001_ha->memoryMap.region[pi_offset+i].total_len = 4; in pm8001_alloc()
403 pm8001_ha->memoryMap.region[ob_offset+i].total_len = in pm8001_alloc()
413 pm8001_ha->memoryMap.region[ob_offset+i].total_len = in pm8001_alloc()
422 pm8001_ha->memoryMap.region[NVMD].total_len = 4096; in pm8001_alloc()
425 pm8001_ha->memoryMap.region[FW_FLASH].total_len = 4096; in pm8001_alloc()
439 region->total_len, in pm8001_alloc()
[all …]

123456789