| /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/drivers/media/dvb-frontends/ |
| H A D | mxl692.c | 251 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 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() 729 struct TCP_Server_Info *server, unsigned int *total_len) in assemble_neg_contexts() argument [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 | 97 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/drivers/fsi/ |
| H A D | fsi-core.c | 561 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() 573 rc = fsi_slave_read(slave, off, buf + total_len, read_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() 598 write_len = aligned_access_size(off, count - total_len); in fsi_slave_sysfs_raw_write() 600 rc = fsi_slave_write(slave, off, buf + 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() [all …]
|
| /linux/drivers/net/wireless/ath/ath10k/ |
| H A D | wow.c | 89 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 D | splice.c | 454 if (sd->len > sd->total_len) in splice_from_pipe_feed() 455 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() 735 iov_iter_bvec(&from, ITER_SOURCE, array, n, sd.total_len - left); in iter_file_splice_write() 742 WARN_ONCE(ret > sd.total_len - left, in iter_file_splice_write() [all …]
|
| H A D | pipe.c | 271 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/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/lib/crypto/tests/ |
| H A D | hash-test-template.h | 151 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 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/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/tools/testing/selftests/net/ |
| H A D | txtimestamp.c | 497 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()
|
| H A D | psock_snd.c | 364 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 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/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/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/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/lib/crypto/ |
| H A D | chacha20poly1305-selftest.c | 8888 size_t i, j, k, total_len; in chacha20poly1305_selftest() local 9027 for (total_len = POLY1305_DIGEST_SIZE; IS_ENABLED(DEBUG_CHACHA20POLY1305_SLOW_CHUNK_TEST) in chacha20poly1305_selftest() 9028 && total_len <= 1 << 10; ++total_len) { in chacha20poly1305_selftest() 9029 for (i = 0; i <= total_len; ++i) { in chacha20poly1305_selftest() 9030 for (j = i; j <= total_len; ++j) { in chacha20poly1305_selftest() 9037 if (total_len - j) in chacha20poly1305_selftest() 9038 sg_set_buf(&sg_src[k++], input + j, total_len - j); in chacha20poly1305_selftest() 9040 memset(computed_output, 0, total_len); in chacha20poly1305_selftest() 9041 memset(input, 0, total_len); in chacha20poly1305_selftest() [all...] |
| /linux/kernel/bpf/ |
| H A D | stream.c | 14 elem->total_len = len; in bpf_stream_elem_init() 73 int len = elem->total_len; in bpf_stream_release_capacity() 146 int rem = elem->total_len - elem->consumed_len; in bpf_stream_consume_elem() 152 return elem->consumed_len == elem->total_len; in bpf_stream_consume_elem()
|
| /linux/drivers/media/common/siano/ |
| H A D | smscoreapi.c | 1936 u32 total_len; in smscore_gpio_configure() local 1956 total_len = sizeof(struct sms_msg_hdr) + (sizeof(u32) * 6); in smscore_gpio_configure() 1958 buffer = kmalloc(total_len + SMS_DMA_ALIGNMENT, in smscore_gpio_configure() 1968 p_msg->x_msg_header.msg_length = (u16) total_len; in smscore_gpio_configure() 1997 rc = smscore_sendrequest_and_wait(coredev, p_msg, total_len, in smscore_gpio_configure() 2015 u32 total_len; in smscore_gpio_set_level() local 2027 total_len = sizeof(struct sms_msg_hdr) + in smscore_gpio_set_level() 2030 buffer = kmalloc(total_len + SMS_DMA_ALIGNMENT, in smscore_gpio_set_level() 2041 p_msg->x_msg_header.msg_length = (u16) total_len; in smscore_gpio_set_level() 2046 rc = smscore_sendrequest_and_wait(coredev, p_msg, total_len, in smscore_gpio_set_level() [all …]
|
| /linux/drivers/dma/ |
| H A D | at_hdmac.c | 237 size_t total_len; member 684 len = desc->total_len; in atc_get_llis_residue() 768 len = desc->total_len; in atc_get_residue() 956 desc->total_len = len; in atc_prep_dma_interleaved() 1038 desc->total_len = len; in atc_prep_dma_memcpy() 1147 desc->total_len = len; in atc_prep_dma_memset() 1173 size_t total_len = 0; in atc_prep_dma_memset_sg() local 1218 total_len += len; in atc_prep_dma_memset_sg() 1225 desc->total_len = total_len; in atc_prep_dma_memset_sg() 1265 size_t total_len = 0; in atc_prep_slave_sg() local [all …]
|