| /linux/drivers/net/ethernet/netronome/nfp/nfpcore/ |
| H A D | crc32.h | 16 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/fs/smb/server/ |
| H A D | asn1.c | 103 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/net/nfc/nci/ |
| H A D | data.c | 101 int total_len = skb->len; in nci_queue_tx_data_frags() local 109 pr_debug("conn_id 0x%x, total_len %d\n", conn_id, total_len); in nci_queue_tx_data_frags() 119 while (total_len) { in nci_queue_tx_data_frags() 121 min_t(int, total_len, conn_info->max_pkt_payload_len); in nci_queue_tx_data_frags() 137 ((total_len == frag_len) ? in nci_queue_tx_data_frags() 143 total_len -= frag_len; in nci_queue_tx_data_frags() 146 frag_len, total_len); in nci_queue_tx_data_frags()
|
| /linux/net/core/ |
| H A D | tso.c | 95 size_t total_len, size_t *offset) in tso_dma_iova_try() argument 101 if (!dma_iova_try_alloc(dev, &map->iova_state, phys, total_len)) in tso_dma_iova_try() 131 if (dma_iova_sync(dev, &map->iova_state, 0, total_len)) in tso_dma_iova_try() 170 size_t total_len = skb->len - hdr_len; in tso_dma_map_init() local 181 map->total_len = total_len; in tso_dma_map_init() 186 if (!total_len) in tso_dma_map_init() 194 if (tso_dma_iova_try(dev, map, phys, linear_len, total_len, &offset)) { in tso_dma_map_init() 240 dma_iova_destroy(map->dev, &map->iova_state, map->total_len, in tso_dma_map_cleanup()
|
| /linux/fs/smb/client/ |
| H A D | smb2pdu.c | 560 unsigned int *total_len) in __smb2_plain_req_init() 575 *total_len = parmsize + sizeof(struct smb2_hdr); in __smb2_plain_req_init() 585 void **request_buf, unsigned int *total_len) 604 total_len); in smb2_ioctl_req_init() 617 void **request_buf, unsigned int *total_len) in smb2_ioctl_req_init() 626 total_len); in build_preauth_ctxt() 632 void **request_buf, unsigned int *total_len) 641 total_len); in build_compression_ctxt() 646 void **request_buf, unsigned int *total_len) in build_compression_ctxt() 658 request_buf, total_len); in build_signing_ctxt() 531 fill_small_buf(__le16 smb2_command,struct cifs_tcon * tcon,struct TCP_Server_Info * server,void * buf,unsigned int * total_len) fill_small_buf() argument 556 __smb2_plain_req_init(__le16 smb2_command,struct cifs_tcon * tcon,struct TCP_Server_Info * server,void ** request_buf,unsigned int * total_len) __smb2_plain_req_init() argument 588 smb2_plain_req_init(__le16 smb2_command,struct cifs_tcon * tcon,struct TCP_Server_Info * server,void ** request_buf,unsigned int * total_len) smb2_plain_req_init() argument 602 smb2_ioctl_req_init(u32 opcode,struct cifs_tcon * tcon,struct TCP_Server_Info * server,void ** request_buf,unsigned int * total_len) smb2_ioctl_req_init() argument 735 assemble_neg_contexts(struct smb2_negotiate_req * req,struct TCP_Server_Info * server,unsigned int * total_len) assemble_neg_contexts() argument 1117 unsigned int total_len; SMB2_negotiate() local 1556 unsigned int total_len; SMB2_sess_alloc_buffer() local 2063 unsigned int total_len; SMB2_logoff() local 2145 unsigned int total_len; SMB2_tcon() local 2280 unsigned int total_len; SMB2_tdis() local 2965 unsigned int total_len; smb311_posix_mkdir() local 3144 unsigned int total_len; SMB2_open_init() local 3446 unsigned int total_len; SMB2_ioctl_init() local 3719 unsigned int total_len; SMB2_close_init() local 3914 unsigned int total_len; SMB2_query_info_init() local 4109 unsigned int total_len; SMB2_notify_init() local 4417 unsigned int total_len; SMB2_echo() local 4464 unsigned int total_len; SMB2_flush_init() local 4585 smb2_new_read_req(void ** buf,unsigned int * total_len,struct cifs_io_parms * io_parms,struct cifs_io_subrequest * rdata,unsigned int remaining_bytes,int request_type) smb2_new_read_req() argument 4853 unsigned int total_len; smb2_async_readv() local 4952 unsigned int total_len; SMB2_read() local 5172 unsigned int total_len, xid = wdata->xid; smb2_async_writev() local 5359 unsigned int total_len; SMB2_write() local 5475 int total_len = 0; posix_info_parse() local 5612 unsigned int total_len; SMB2_query_directory_init() local 5861 unsigned int i, total_len; SMB2_set_info_init() local 6049 unsigned int total_len; SMB2_oplock_break() local 6144 unsigned int total_len; build_qfs_info_req() local 6361 unsigned int total_len; smb2_lockv() local 6463 unsigned int total_len; SMB2_lease_break() local [all...] |
| /linux/drivers/fsi/ |
| H A D | fsi-core.c | 616 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/media/platform/mediatek/vcodec/common/ |
| H A D | mtk_vcodec_dbgfs.c | 96 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/fs/ |
| H A D | splice.c | 356 * the pipe or if the requested number of bytes (@sd->total_len) in copy_splice_read() 377 if (sd->len > sd->total_len) in copy_splice_read() 378 sd->len = sd->total_len; in copy_splice_read() 397 sd->total_len -= ret; in copy_splice_read() 407 if (!sd->total_len) 558 .total_len = len, 590 .total_len = len, 609 while (sd.total_len) { in __splice_from_pipe() 634 left = sd.total_len; in splice_from_pipe() 657 iov_iter_bvec(&from, ITER_SOURCE, array, n, sd.total_len [all...] |
| H A D | pipe.c | 141 static void anon_pipe_prefill_and_lock(struct pipe_inode_info *pipe, size_t total_len) in anon_pipe_prefill_and_lock() argument 146 want = min_t(unsigned int, DIV_ROUND_UP(total_len, PAGE_SIZE), in anon_pipe_prefill_and_lock() 303 size_t total_len = iov_iter_count(to); 310 if (unlikely(total_len == 0)) in pipe_readable() 333 if (total_len < 8) { in pipe_update_tail() 348 total_len -= sizeof(n); in anon_pipe_read() 359 if (chars > total_len) { in anon_pipe_read() 365 chars = total_len; in anon_pipe_read() 387 total_len = chars; in anon_pipe_read() 395 total_len in anon_pipe_read() 346 size_t total_len = iov_iter_count(to); anon_pipe_read() local 513 size_t total_len = iov_iter_count(from); anon_pipe_write() local [all...] |
| /linux/arch/powerpc/platforms/powernv/ |
| H A D | opal.c | 442 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/kernel/ |
| H A D | kallsyms_selftest.c | 107 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/drivers/net/ppp/ |
| H A D | pppoe.c | 769 size_t total_len) in pppoe_sendmsg() 795 if (total_len > (dev->mtu + dev->hard_header_len)) in pppoe_sendmsg() 799 skb = sock_wmalloc(sk, hlen + sizeof(*ph) + total_len + in pppoe_sendmsg() 815 ph = skb_put(skb, total_len + sizeof(struct pppoe_hdr)); in pppoe_sendmsg() 818 error = memcpy_from_msg(start, m, total_len); in pppoe_sendmsg() 824 error = total_len; in pppoe_sendmsg() 826 po->pppoe_pa.remote, NULL, total_len); in pppoe_sendmsg() 831 ph->length = htons(total_len); in pppoe_sendmsg() 927 size_t total_len, int flags) in pppoe_recvmsg() 940 total_len in pppoe_recvmsg() 767 pppoe_sendmsg(struct socket * sock,struct msghdr * m,size_t total_len) pppoe_sendmsg() argument 925 pppoe_recvmsg(struct socket * sock,struct msghdr * m,size_t total_len,int flags) pppoe_recvmsg() argument [all...] |
| /linux/tools/testing/selftests/net/ |
| H A D | txtimestamp.c | 500 int fd, i, val = 1, total_len, epfd = 0; in do_test() 506 total_len = cfg_payload_len; in do_test() 508 total_len += sizeof(struct udphdr); in do_test() 511 total_len += sizeof(struct iphdr); in do_test() 513 total_len += sizeof(struct ipv6hdr); in do_test() 522 buf = malloc(total_len); in do_test() 590 memset(buf, 'a' + i, total_len); in do_test() 606 iov.iov_len = total_len; in do_test() 662 if (val != total_len) in do_test() 497 int fd, i, val = 1, total_len, epfd = 0; do_test() local
|
| H A D | udpgso_bench_tx.c | 292 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 D | pio.c | 493 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 D | spi-cavium.c | 131 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 D | pm8001_init.c | 194 (pm8001_ha->memoryMap.region[i].total_len + in pm8001_free() 350 pm8001_ha->memoryMap.region[AAP1].total_len = PM8001_EVENT_LOG_SIZE; in pm8001_alloc() 356 pm8001_ha->memoryMap.region[IOP].total_len = PM8001_EVENT_LOG_SIZE; in pm8001_alloc() 365 pm8001_ha->memoryMap.region[ci_offset+i].total_len = 4; in pm8001_alloc() 374 pm8001_ha->memoryMap.region[ib_offset+i].total_len = in pm8001_alloc() 383 pm8001_ha->memoryMap.region[ib_offset+i].total_len = in pm8001_alloc() 395 pm8001_ha->memoryMap.region[pi_offset+i].total_len = 4; in pm8001_alloc() 404 pm8001_ha->memoryMap.region[ob_offset+i].total_len = in pm8001_alloc() 414 pm8001_ha->memoryMap.region[ob_offset+i].total_len = in pm8001_alloc() 423 pm8001_ha->memoryMap.region[NVMD].total_len in pm8001_alloc() [all...] |
| /linux/drivers/net/ethernet/cisco/enic/ |
| H A D | enic_mbox.c | 36 size_t total_len = sizeof(struct enic_mbox_hdr) + payload_len; in enic_mbox_send_msg_id() local 68 buf = kmalloc(total_len, GFP_KERNEL); in enic_mbox_send_msg_id() 88 enic_mbox_fill_hdr(buf, msg_type, dst_vnic_id, total_len, msg_num); in enic_mbox_send_msg_id() 95 dma_addr = dma_map_single(&enic->pdev->dev, buf, total_len, in enic_mbox_send_msg_id() 111 total_len, in enic_mbox_send_msg_id() 117 vnic_wq_post(wq, buf, dma_addr, total_len, in enic_mbox_send_msg_id() 140 dma_unmap_single(&enic->pdev->dev, dma_addr, total_len, in enic_mbox_send_msg_id()
|
| /linux/drivers/nvme/target/ |
| H A D | io-cmd-file.c | 138 size_t len = 0, total_len = 0; in nvmet_file_execute_io() 159 total_len += req->f.bvec[bv_cnt].bv_len; in nvmet_file_execute_io() 180 if (WARN_ON_ONCE(total_len != req->transfer_len)) { in nvmet_file_execute_io() 186 ret = total_len; in nvmet_file_execute_io() 197 ret = nvmet_file_submit_bvec(req, pos, bv_cnt, total_len, ki_flags); in nvmet_file_execute_io() 125 size_t len = 0, total_len = 0; nvmet_file_execute_io() local
|
| /linux/fs/squashfs/ |
| H A D | block.c | 226 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/net/ethernet/amd/pds_core/ |
| H A D | fw.c | 362 u16 length, u16 offset, u16 total_len) in pdsc_devcmd_send_package_data() argument 370 .send_pkg_data.total_len = cpu_to_le16(total_len), in pdsc_devcmd_send_package_data() 769 u32 total_len; in pdsc_flash_component() local 795 total_len = component->component_size; in pdsc_flash_component() 817 component_info->image_size = cpu_to_le32(total_len); in pdsc_flash_component() 827 while (offset < total_len) { in pdsc_flash_component() 832 total_len - offset); in pdsc_flash_component() 863 total_len); in pdsc_flash_component()
|
| /linux/drivers/net/ethernet/fungible/funcore/ |
| H A D | fun_queue.c | 236 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()
|
| /linux/drivers/dma/ioat/ |
| H A D | prep.c | 109 size_t total_len = len; in ioat_dma_prep_memcpy_lock() local 140 desc->len = total_len; in ioat_dma_prep_memcpy_lock() 160 size_t total_len = len; in __ioat_prep_xor_lock() local 224 desc->len = total_len; in __ioat_prep_xor_lock() 349 size_t total_len = len; in __ioat_prep_pq_lock() local 434 desc->len = total_len; in __ioat_prep_pq_lock() 471 size_t total_len = len; in __ioat_prep_pq16_lock() local 548 desc->len = total_len; in __ioat_prep_pq16_lock()
|
| /linux/drivers/net/wireless/ti/wlcore/ |
| H A D | tx.c | 192 u32 total_len = skb->len + sizeof(struct wl1271_tx_hw_descr) + extra; in wl1271_tx_allocate() local 197 if (buf_offset + total_len > wl->aggr_buf_size) in wl1271_tx_allocate() 207 total_blocks = wlcore_hw_calc_tx_blocks(wl, total_len, spare_blocks); in wl1271_tx_allocate() 210 if (skb_headroom(skb) < (total_len - skb->len) && in wl1271_tx_allocate() 211 pskb_expand_head(skb, (total_len - skb->len), 0, GFP_ATOMIC)) { in wl1271_tx_allocate() 215 desc = skb_push(skb, total_len - skb->len); in wl1271_tx_allocate() 244 total_len, total_blocks, id); in wl1271_tx_allocate() 368 u32 total_len; in wl1271_prepare_tx_frame() local 429 total_len = wlcore_calc_packet_alignment(wl, skb->len); in wl1271_prepare_tx_frame() 432 memset(wl->aggr_buf + buf_offset + skb->len, 0, total_len - skb->len); in wl1271_prepare_tx_frame() [all …]
|
| /linux/drivers/net/wireless/morsemicro/mm81x/ |
| H A D | yaps_hw.c | 491 int total_len; in mm81x_yaps_hw_read_pkts() 518 total_len = pkt_size + YAPS_DELIM_GET_PADDING(delim); in mm81x_yaps_hw_read_pkts() 532 if (total_len <= bytes_remaining) { in mm81x_yaps_hw_read_pkts() 534 read_ptr += total_len; in mm81x_yaps_hw_read_pkts() 535 bytes_remaining -= total_len; in mm81x_yaps_hw_read_pkts() 538 total_len - bytes_remaining; in mm81x_yaps_hw_read_pkts() 486 int total_len; mm81x_yaps_hw_read_pkts() local
|