Home
last modified time | relevance | path

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

12345678

/linux/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/drivers/media/dvb-frontends/
H A Dmxl692.c251 u32 ix = 0, total_len = 0, addr = 0, chunk_len = 0, prevchunk_len = 0; in mxl692_write_fw_block() local
258 total_len = buffer[ix + 1] << 16 | buffer[ix + 2] << 8 | buffer[ix + 3]; in mxl692_write_fw_block()
259 total_len = (total_len + 3) & ~3; in mxl692_write_fw_block()
264 while ((total_len > 0) && (status == 0)) { 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()
309 if (total_len > (MXL_EAGLE_MAX_I2C_PACKET_SIZE - MXL_EAGLE_I2C_MHEADER_SIZE)) in mxl692_memwrite()
[all …]
/linux/fs/smb/client/
H A Dsmb2pdu.c531 unsigned int *total_len) in fill_small_buf() argument
546 *total_len = parmsize + sizeof(struct smb2_hdr); in fill_small_buf()
556 void **request_buf, unsigned int *total_len) in __smb2_plain_req_init() argument
575 total_len); in __smb2_plain_req_init()
588 void **request_buf, unsigned int *total_len) in smb2_plain_req_init() argument
597 total_len); in smb2_plain_req_init()
602 void **request_buf, unsigned int *total_len) in smb2_ioctl_req_init() argument
614 request_buf, total_len); in smb2_ioctl_req_init()
617 request_buf, total_len); in smb2_ioctl_req_init()
729 struct TCP_Server_Info *server, unsigned int *total_len) in assemble_neg_contexts() argument
[all …]
/linux/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/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/drivers/fsi/
H A Dfsi-core.c616 size_t total_len, read_len; in fsi_slave_sysfs_raw_read() local
625 for (total_len = 0; total_len < count; total_len += read_len) { in fsi_slave_sysfs_raw_read()
626 read_len = aligned_access_size(off, count - total_len); in fsi_slave_sysfs_raw_read()
628 rc = fsi_slave_read(slave, off, buf + total_len, read_len); in fsi_slave_sysfs_raw_read()
643 size_t total_len, write_len; in fsi_slave_sysfs_raw_write() local
652 for (total_len = 0; total_len < count; total_len += write_len) { in fsi_slave_sysfs_raw_write()
653 write_len = aligned_access_size(off, count - total_len); in fsi_slave_sysfs_raw_write()
655 rc = fsi_slave_write(slave, off, buf + total_len, write_len); in fsi_slave_sysfs_raw_write()
719 size_t total_len, read_len; in cfam_read() local
729 for (total_len = 0; total_len < count; total_len += read_len) { in cfam_read()
[all …]
/linux/drivers/dax/
H A Dkmem.c71 unsigned long total_len = 0, orig_len = 0; in dev_dax_kmem_probe() local
107 total_len += range_len(&range); in dev_dax_kmem_probe()
110 if (!total_len) { in dev_dax_kmem_probe()
113 } else if (total_len != orig_len) { in dev_dax_kmem_probe()
116 string_get_size(orig_len - total_len, 1, STRING_UNITS_2, in dev_dax_kmem_probe()
132 rc = memory_group_register_static(numa_node, PFN_UP(total_len)); in dev_dax_kmem_probe()
/linux/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/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/fs/
H A Dsplice.c453 if (sd->len > sd->total_len) in splice_from_pipe_feed()
454 sd->len = sd->total_len; in splice_from_pipe_feed()
473 sd->total_len -= ret; in splice_from_pipe_feed()
483 if (!sd->total_len) in splice_from_pipe_feed()
634 .total_len = len, in splice_from_pipe()
666 .total_len = len, in iter_file_splice_write()
685 while (sd.total_len) { in iter_file_splice_write()
710 left = sd.total_len; in iter_file_splice_write()
733 iov_iter_bvec(&from, ITER_SOURCE, array, n, sd.total_len - left); in iter_file_splice_write()
740 WARN_ONCE(ret > sd.total_len - left, in iter_file_splice_write()
[all …]
H A Dpipe.c271 size_t total_len = iov_iter_count(to); in anon_pipe_read() local
278 if (unlikely(total_len == 0)) in anon_pipe_read()
301 if (total_len < 8) { in anon_pipe_read()
316 total_len -= sizeof(n); in anon_pipe_read()
327 if (chars > total_len) { in anon_pipe_read()
333 chars = total_len; in anon_pipe_read()
355 total_len = chars; in anon_pipe_read()
363 total_len -= chars; in anon_pipe_read()
364 if (!total_len) in anon_pipe_read()
437 size_t total_len = iov_iter_count(from); in anon_pipe_write() local
[all …]
/linux/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/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/lib/crypto/tests/
H A Dhash-test-template.h151 size_t total_len, offset; in test_hash_incremental_updates() local
158 total_len = rand_length(TEST_BUF_LEN); in test_hash_incremental_updates()
159 offset = rand_offset(TEST_BUF_LEN - total_len); in test_hash_incremental_updates()
160 rand_bytes(&test_buf[offset], total_len); in test_hash_incremental_updates()
163 HASH(&test_buf[offset], total_len, hash1); in test_hash_incremental_updates()
170 remaining_len = total_len; in test_hash_incremental_updates()
190 total_len, num_parts, offset); in test_hash_incremental_updates()
/linux/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/tools/testing/selftests/net/
H A Dtxtimestamp.c495 int fd, i, val = 1, total_len, epfd = 0; in do_test()
501 total_len = cfg_payload_len; in do_test()
503 total_len += sizeof(struct udphdr); in do_test()
506 total_len += sizeof(struct iphdr); in do_test()
508 total_len += sizeof(struct ipv6hdr); in do_test()
517 buf = malloc(total_len); in do_test()
585 memset(buf, 'a' + i, total_len); in do_test()
601 iov.iov_len = total_len; in do_test()
657 if (val != total_len) in do_test()
497 int fd, i, val = 1, total_len, epfd = 0; do_test() local
H A Dpsock_snd.c364 int fdr, fds, total_len; in run_test() local
369 total_len = do_tx(); in run_test()
373 do_rx(fds, total_len - sizeof(struct virtio_net_hdr), in run_test()
376 do_rx(fdr, cfg_payload_len, tbuf + total_len - cfg_payload_len); in run_test()
H A Dudpgso_bench_tx.c292 int ret, total_len, len, count = 0; in send_udp() local
294 total_len = cfg_payload_len; in send_udp()
296 while (total_len) { in send_udp()
297 len = total_len < cfg_mss ? total_len : cfg_mss; in send_udp()
307 total_len -= len; in send_udp()
/linux/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/drivers/spi/
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()
/linux/drivers/scsi/pm8001/
H A Dpm8001_init.c193 (pm8001_ha->memoryMap.region[i].total_len + in pm8001_free()
349 pm8001_ha->memoryMap.region[AAP1].total_len = PM8001_EVENT_LOG_SIZE; in pm8001_alloc()
355 pm8001_ha->memoryMap.region[IOP].total_len = PM8001_EVENT_LOG_SIZE; in pm8001_alloc()
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()
[all …]
/linux/drivers/nvme/target/
H A Dio-cmd-file.c125 size_t len = 0, total_len = 0; in nvmet_file_execute_io() local
145 total_len += req->f.bvec[bv_cnt].bv_len; in nvmet_file_execute_io()
163 if (WARN_ON_ONCE(total_len != req->transfer_len)) { in nvmet_file_execute_io()
169 ret = total_len; in nvmet_file_execute_io()
180 ret = nvmet_file_submit_bvec(req, pos, bv_cnt, total_len, ki_flags); in nvmet_file_execute_io()
/linux/fs/squashfs/
H A Dblock.c226 int total_len = (block_end - block) << msblk->devblksize_log2; in squashfs_bio_read() local
227 const int page_count = DIV_ROUND_UP(total_len + offset, PAGE_SIZE); in squashfs_bio_read()
239 min_t(unsigned int, PAGE_SIZE - offset, total_len); in squashfs_bio_read()
258 total_len -= len; in squashfs_bio_read()
/linux/drivers/usb/core/
H A Dconfig.c1039 int length, total_len, num, i, ssac; in usb_get_bos_descriptor() local
1063 total_len = le16_to_cpu(bos->wTotalLength); in usb_get_bos_descriptor()
1066 if (total_len < length) in usb_get_bos_descriptor()
1074 buffer = kzalloc(total_len, GFP_KERNEL); in usb_get_bos_descriptor()
1081 ret = usb_get_descriptor(dev, USB_DT_BOS, 0, buffer, total_len); in usb_get_bos_descriptor()
1082 if (ret < total_len) { in usb_get_bos_descriptor()
1090 total_len -= length; in usb_get_bos_descriptor()
1096 if (total_len < sizeof(*cap) || total_len < cap->bLength) { in usb_get_bos_descriptor()
1141 total_len -= length; in usb_get_bos_descriptor()
/linux/drivers/net/ethernet/fungible/funcore/
H A Dfun_queue.c236 u32 bufoff, total_len, remaining, fragsize, dataoff; in fun_data_from_rq() local
244 total_len = be32_to_cpu(dataop->total_len); in fun_data_from_rq()
252 total_len, DMA_FROM_DEVICE); in fun_data_from_rq()
259 data = kmalloc(total_len, GFP_ATOMIC); in fun_data_from_rq()
267 for (remaining = total_len; remaining; remaining -= fragsize) { in fun_data_from_rq()

12345678