| /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/client/ |
| H A D | smb2pdu.c | 531 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() 735 struct TCP_Server_Info *server, unsigned int *total_len) in 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 4847 unsigned int total_len; smb2_async_readv() local 4946 unsigned int total_len; SMB2_read() local 5166 unsigned int total_len, xid = wdata->xid; smb2_async_writev() local 5353 unsigned int total_len; SMB2_write() local 5469 int total_len = 0; posix_info_parse() local 5606 unsigned int total_len; SMB2_query_directory_init() local 5855 unsigned int i, total_len; SMB2_set_info_init() local 6043 unsigned int total_len; SMB2_oplock_break() local 6138 unsigned int total_len; build_qfs_info_req() local 6355 unsigned int total_len; smb2_lockv() local 6457 unsigned int total_len; SMB2_lease_break() local [all...] |
| /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/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 | 453 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 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() 346 size_t total_len = iov_iter_count(to); in anon_pipe_read() local 353 if (unlikely(total_len == 0)) in anon_pipe_read() 376 if (total_len < 8) { in anon_pipe_read() 391 total_len -= sizeof(n); in anon_pipe_read() 402 if (chars > total_len) { in anon_pipe_read() 408 chars = total_len; in anon_pipe_read() 430 total_len = chars; in anon_pipe_read() 438 total_len -= chars; in anon_pipe_read() [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 | 767 size_t total_len) in pppoe_sendmsg() argument 793 if (total_len > (dev->mtu + dev->hard_header_len)) in pppoe_sendmsg() 797 skb = sock_wmalloc(sk, hlen + sizeof(*ph) + total_len + in pppoe_sendmsg() 813 ph = skb_put(skb, total_len + sizeof(struct pppoe_hdr)); in pppoe_sendmsg() 816 error = memcpy_from_msg(start, m, total_len); in pppoe_sendmsg() 822 error = total_len; in pppoe_sendmsg() 824 po->pppoe_pa.remote, NULL, total_len); in pppoe_sendmsg() 829 ph->length = htons(total_len); in pppoe_sendmsg() 925 size_t total_len, int flags) in pppoe_recvmsg() argument 938 total_len = min_t(size_t, total_len, skb->len); in pppoe_recvmsg() [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A D | txtimestamp.c | 495 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 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()
|
| H A D | tun.c | 991 int len, total_len = 0, socket = self->sock; 994 while (total_len < payload_len) { 1003 total_len += len; 1006 return total_len; 1034 int ret, len, total_len = 0; 1038 while (total_len < payload_len) { 1062 if (total_len == 0) 1065 total_len += len; 1068 return total_len; 855 int len, total_len = 0, socket = self->sock; receive_gso_packet_from_tunnel() local 898 int ret, len, total_len = 0; receive_gso_packet_from_tun() local
|
| /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 | 193 (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/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 | 125 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 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 …]
|