/Linux-v4.19/drivers/staging/rtl8188eu/os_dep/ |
D | rtw_android.c | 52 int total_len; member 77 int total_len) in rtw_android_get_rssi() argument 85 bytes_written += snprintf(&command[bytes_written], total_len, in rtw_android_get_rssi() 94 int total_len) in rtw_android_get_link_speed() argument 100 return snprintf(command, total_len, "LinkSpeed %d", in rtw_android_get_link_speed() 105 int total_len) in rtw_android_get_macaddr() argument 107 return snprintf(command, total_len, "Macaddr = %pM", in rtw_android_get_macaddr() 112 int total_len) in android_set_cntry() argument 123 int total_len) in android_get_p2p_addr() argument 131 int total_len) in rtw_android_set_block() argument [all …]
|
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | crc32.h | 47 static inline u32 crc32_posix_end(u32 crc, size_t total_len) in crc32_posix_end() argument 50 while (total_len != 0) { in crc32_posix_end() 51 u8 c = total_len & 0xff; in crc32_posix_end() 54 total_len >>= 8; in crc32_posix_end()
|
/Linux-v4.19/fs/cifs/ |
D | smb2pdu.c | 315 unsigned int *total_len) in fill_small_buf() argument 330 *total_len = parmsize + sizeof(struct smb2_sync_hdr); in fill_small_buf() 340 void **request_buf, unsigned int *total_len) in smb2_plain_req_init() argument 360 total_len); in smb2_plain_req_init() 410 unsigned int *total_len) in assemble_neg_contexts() argument 415 *total_len += 2; /* Add 2 due to round to 8 byte boundary for 1st ctxt */ in assemble_neg_contexts() 418 *total_len += ctxt_len; in assemble_neg_contexts() 423 *total_len += ctxt_len; in assemble_neg_contexts() 427 *total_len += sizeof(struct smb2_posix_neg_context); in assemble_neg_contexts() 616 unsigned int total_len; in SMB2_negotiate() local [all …]
|
/Linux-v4.19/drivers/net/wireless/ath/ath10k/ |
D | wow.c | 100 int total_len = old->pkt_offset + old->pattern_len; in ath10k_wow_convert_8023_to_80211() local 150 if (total_len > ETH_HLEN) in ath10k_wow_convert_8023_to_80211() 152 else if (total_len > offsetof(struct ethhdr, h_proto)) in ath10k_wow_convert_8023_to_80211() 153 hdr_80211_end_offset = hdr_len + rfc_len + total_len - ETH_HLEN; in ath10k_wow_convert_8023_to_80211() 154 else if (total_len > ETH_ALEN) in ath10k_wow_convert_8023_to_80211() 155 hdr_80211_end_offset = total_len - ETH_ALEN + in ath10k_wow_convert_8023_to_80211() 158 hdr_80211_end_offset = total_len + in ath10k_wow_convert_8023_to_80211() 170 if (total_len > ETH_HLEN) { in ath10k_wow_convert_8023_to_80211() 174 total_len - ETH_HLEN); in ath10k_wow_convert_8023_to_80211() 177 total_len - ETH_HLEN); in ath10k_wow_convert_8023_to_80211() [all …]
|
/Linux-v4.19/net/nfc/nci/ |
D | data.c | 109 int total_len = skb->len; in nci_queue_tx_data_frags() local 117 pr_debug("conn_id 0x%x, total_len %d\n", conn_id, total_len); in nci_queue_tx_data_frags() 127 while (total_len) { in nci_queue_tx_data_frags() 129 min_t(int, total_len, conn_info->max_pkt_payload_len); in nci_queue_tx_data_frags() 145 ((total_len == frag_len) ? in nci_queue_tx_data_frags() 151 total_len -= frag_len; in nci_queue_tx_data_frags() 154 frag_len, total_len); in nci_queue_tx_data_frags()
|
/Linux-v4.19/drivers/net/wireless/ath/ath6kl/ |
D | trace.h | 121 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-v4.19/tools/testing/selftests/net/ |
D | tls.c | 217 int total_len = 0; in TEST_F() local 229 total_len += vec[i].iov_len; in TEST_F() 234 EXPECT_EQ(sendmsg(self->cfd, &msg, 0), total_len); in TEST_F() 235 buf = malloc(total_len); in TEST_F() 236 EXPECT_NE(recv(self->fd, buf, total_len, 0), -1); in TEST_F() 254 int total_len = 0; in TEST_F() local 266 total_len += vec[i].iov_len; in TEST_F() 271 EXPECT_EQ(sendmsg(self->fd, &msg, 0), total_len); in TEST_F() 272 EXPECT_NE(recv(self->cfd, buf, total_len, 0), -1); in TEST_F() 416 unsigned int total_len = TLS_PAYLOAD_MAX_LEN * 2; in TEST_F() local [all …]
|
D | udpgso_bench_tx.c | 147 int ret, total_len, len, count = 0; in send_udp() local 149 total_len = cfg_payload_len; in send_udp() 151 while (total_len) { in send_udp() 152 len = total_len < cfg_mss ? total_len : cfg_mss; in send_udp() 162 total_len -= len; in send_udp()
|
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()
|
/Linux-v4.19/tools/testing/selftests/networking/timestamping/ |
D | txtimestamp.c | 275 int fd, i, val = 1, total_len; in do_test() local 283 total_len = cfg_payload_len; in do_test() 285 total_len += sizeof(struct udphdr); in do_test() 287 total_len += sizeof(struct iphdr); in do_test() 290 buf = malloc(total_len); in do_test() 336 memset(buf, 'a' + i, total_len); in do_test() 366 val = sendto(fd, buf, total_len, 0, (void *) &daddr, sizeof(daddr)); in do_test() 368 val = sendto(fd, buf, total_len, 0, (void *) &daddr6, sizeof(daddr6)); in do_test() 372 if (val != total_len) in do_test()
|
/Linux-v4.19/drivers/gpu/drm/udl/ |
D | udl_main.c | 37 u8 total_len = 0; in udl_parse_vendor_descriptor() local 44 total_len = usb_get_descriptor(usbdev, 0x5f, /* vendor specific */ in udl_parse_vendor_descriptor() 46 if (total_len > 5) { in udl_parse_vendor_descriptor() 48 total_len, desc); in udl_parse_vendor_descriptor() 50 if ((desc[0] != total_len) || /* descriptor length */ in udl_parse_vendor_descriptor() 54 (desc[4] != total_len - 2)) /* length after type */ in udl_parse_vendor_descriptor() 57 desc_end = desc + total_len; in udl_parse_vendor_descriptor()
|
/Linux-v4.19/drivers/fsi/ |
D | fsi-core.c | 560 size_t total_len, read_len; in fsi_slave_sysfs_raw_read() local 569 for (total_len = 0; total_len < count; total_len += read_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() 601 rc = fsi_slave_write(slave, off, buf + total_len, write_len); in fsi_slave_sysfs_raw_write() 677 size_t total_len, read_len; in cfam_read() local 687 for (total_len = 0; total_len < count; total_len += read_len) { in cfam_read() 696 rc = copy_to_user(buf + total_len, &data, read_len); in cfam_read() 713 size_t total_len, write_len; in cfam_write() local [all …]
|
/Linux-v4.19/drivers/staging/gdm724x/ |
D | gdm_mux.c | 147 int total_len; in up_to_host() local 165 total_len = ALIGN(MUX_HEADER_SIZE + payload_size, 4); in up_to_host() 168 total_len) { in up_to_host() 191 packet_size_sum += total_len; in up_to_host() 351 int total_len; in gdm_mux_send() local 363 total_len = ALIGN(MUX_HEADER_SIZE + len, 4); in gdm_mux_send() 365 t = alloc_mux_tx(total_len); in gdm_mux_send() 379 memset(t->buf + MUX_HEADER_SIZE + len, 0, total_len - MUX_HEADER_SIZE - in gdm_mux_send() 382 t->len = total_len; in gdm_mux_send() 390 total_len, in gdm_mux_send()
|
/Linux-v4.19/arch/powerpc/platforms/powernv/ |
D | opal.c | 347 static int __opal_put_chars(uint32_t vtermno, const char *data, int total_len, bool atomic) in __opal_put_chars() argument 360 if (rc || be64_to_cpu(olen) < total_len) { in __opal_put_chars() 363 written = total_len; in __opal_put_chars() 370 olen = cpu_to_be64(total_len); in __opal_put_chars() 386 if (written < total_len) { in __opal_put_chars() 390 "len=%d written=%d\n", total_len, written); in __opal_put_chars() 403 int opal_put_chars(uint32_t vtermno, const char *data, int total_len) in opal_put_chars() argument 405 return __opal_put_chars(vtermno, data, total_len, false); in opal_put_chars() 414 int opal_put_chars_atomic(uint32_t vtermno, const char *data, int total_len) in opal_put_chars_atomic() argument 416 return __opal_put_chars(vtermno, data, total_len, true); in opal_put_chars_atomic()
|
/Linux-v4.19/fs/pstore/ |
D | platform.c | 322 size_t total_len; in copy_kmsg_to_buffer() local 325 total_len = hsize + len; in copy_kmsg_to_buffer() 327 if (total_len > psinfo->bufsize) { in copy_kmsg_to_buffer() 328 diff = total_len - psinfo->bufsize + hsize; in copy_kmsg_to_buffer() 332 total_len = psinfo->bufsize; in copy_kmsg_to_buffer() 334 memcpy(psinfo->buf, big_oops_buf, total_len); in copy_kmsg_to_buffer() 336 return total_len; in copy_kmsg_to_buffer()
|
/Linux-v4.19/drivers/net/ppp/ |
D | pppoe.c | 840 size_t total_len) in pppoe_sendmsg() argument 866 if (total_len > (dev->mtu + dev->hard_header_len)) in pppoe_sendmsg() 870 skb = sock_wmalloc(sk, hlen + sizeof(*ph) + total_len + in pppoe_sendmsg() 886 ph = skb_put(skb, total_len + sizeof(struct pppoe_hdr)); in pppoe_sendmsg() 889 error = memcpy_from_msg(start, m, total_len); in pppoe_sendmsg() 895 error = total_len; in pppoe_sendmsg() 897 po->pppoe_pa.remote, NULL, total_len); in pppoe_sendmsg() 901 ph->length = htons(total_len); in pppoe_sendmsg() 983 size_t total_len, int flags) in pppoe_recvmsg() argument 1000 total_len = min_t(size_t, total_len, skb->len); in pppoe_recvmsg() [all …]
|
/Linux-v4.19/fs/ |
D | splice.c | 449 if (sd->len < sd->total_len && pipe->nrbufs > 1) in pipe_to_sendpage() 493 if (sd->len > sd->total_len) in splice_from_pipe_feed() 494 sd->len = sd->total_len; in splice_from_pipe_feed() 513 sd->total_len -= ret; in splice_from_pipe_feed() 523 if (!sd->total_len) in splice_from_pipe_feed() 655 .total_len = len, in splice_from_pipe() 687 .total_len = len, in iter_file_splice_write() 703 while (sd.total_len) { in iter_file_splice_write() 724 left = sd.total_len; in iter_file_splice_write() 749 sd.total_len - left); in iter_file_splice_write() [all …]
|
D | pipe.c | 248 size_t total_len = iov_iter_count(to); in pipe_read() local 255 if (unlikely(total_len == 0)) in pipe_read() 270 if (chars > total_len) in pipe_read() 271 chars = total_len; in pipe_read() 292 total_len = chars; in pipe_read() 303 total_len -= chars; in pipe_read() 304 if (!total_len) in pipe_read() 359 size_t total_len = iov_iter_count(from); in pipe_write() local 363 if (unlikely(total_len == 0)) in pipe_write() 375 chars = total_len & (PAGE_SIZE-1); /* size of the last buffer */ in pipe_write()
|
/Linux-v4.19/drivers/spi/ |
D | spi-bcm63xx.c | 340 unsigned int n_transfers = 0, total_len = 0; in bcm63xx_spi_transfer_one() local 354 total_len += t->len; in bcm63xx_spi_transfer_one() 364 total_len > (bs->fifo_size + BCM63XX_SPI_MAX_PREPEND)) || in bcm63xx_spi_transfer_one() 365 (!can_use_prepend && total_len > bs->fifo_size)) { in bcm63xx_spi_transfer_one() 367 total_len, bs->fifo_size); in bcm63xx_spi_transfer_one() 396 m->actual_length += total_len; in bcm63xx_spi_transfer_one() 400 total_len = 0; in bcm63xx_spi_transfer_one()
|
D | spi-cavium.c | 132 unsigned int total_len = 0; in octeon_spi_transfer_one_message() local 144 total_len += r; in octeon_spi_transfer_one_message() 148 msg->actual_length = total_len; in octeon_spi_transfer_one_message()
|
/Linux-v4.19/drivers/net/wireless/broadcom/b43/ |
D | pio.c | 506 unsigned int hdrlen, total_len; in b43_pio_tx() local 524 total_len = roundup(skb->len + hdrlen, 4); in b43_pio_tx() 526 if (unlikely(total_len > q->buffer_size)) { in b43_pio_tx() 538 if (total_len > (q->buffer_size - q->buffer_used)) { in b43_pio_tx() 581 unsigned int total_len; in b43_pio_handle_txstatus() local 593 total_len = pack->skb->len + b43_txhdr_size(dev); in b43_pio_handle_txstatus() 594 total_len = roundup(total_len, 4); in b43_pio_handle_txstatus() 595 q->buffer_used -= total_len; in b43_pio_handle_txstatus()
|
/Linux-v4.19/drivers/scsi/pm8001/ |
D | pm8001_init.c | 156 (pm8001_ha->memoryMap.region[i].total_len + in pm8001_free() 267 pm8001_ha->memoryMap.region[AAP1].total_len = PM8001_EVENT_LOG_SIZE; in pm8001_alloc() 273 pm8001_ha->memoryMap.region[IOP].total_len = PM8001_EVENT_LOG_SIZE; in pm8001_alloc() 280 pm8001_ha->memoryMap.region[CI+i].total_len = 4; in pm8001_alloc() 288 pm8001_ha->memoryMap.region[IB+i].total_len = in pm8001_alloc() 295 pm8001_ha->memoryMap.region[IB+i].total_len = in pm8001_alloc() 305 pm8001_ha->memoryMap.region[PI+i].total_len = 4; in pm8001_alloc() 313 pm8001_ha->memoryMap.region[OB+i].total_len = in pm8001_alloc() 321 pm8001_ha->memoryMap.region[OB+i].total_len = in pm8001_alloc() 330 pm8001_ha->memoryMap.region[NVMD].total_len = 4096; in pm8001_alloc() [all …]
|
/Linux-v4.19/drivers/infiniband/hw/mlx4/ |
D | mr.c | 271 u64 total_len = 0; in mlx4_ib_umem_calc_optimal_mtt_size() local 329 total_len += current_block_len; in mlx4_ib_umem_calc_optimal_mtt_size() 345 total_len += current_block_len; in mlx4_ib_umem_calc_optimal_mtt_size() 347 total_len += (first_block_start & ((1ULL << block_shift) - 1ULL)); in mlx4_ib_umem_calc_optimal_mtt_size() 350 total_len += (last_block_aligned_end - last_block_end); in mlx4_ib_umem_calc_optimal_mtt_size() 352 if (total_len & ((1ULL << block_shift) - 1ULL)) in mlx4_ib_umem_calc_optimal_mtt_size() 354 total_len, block_shift); in mlx4_ib_umem_calc_optimal_mtt_size() 356 *num_of_mtts = total_len >> block_shift; in mlx4_ib_umem_calc_optimal_mtt_size()
|
/Linux-v4.19/drivers/nvme/target/ |
D | io-cmd-file.c | 139 size_t len = 0, total_len = 0; in nvmet_file_execute_rw() local 173 total_len += req->f.bvec[bv_cnt].bv_len; in nvmet_file_execute_rw() 190 if (WARN_ON_ONCE(total_len != req->data_len)) in nvmet_file_execute_rw() 194 nvmet_file_io_done(&req->f.iocb, ret < 0 ? ret : total_len, 0); in nvmet_file_execute_rw() 198 nvmet_file_submit_bvec(req, pos, bv_cnt, total_len); in nvmet_file_execute_rw()
|
/Linux-v4.19/drivers/usb/core/ |
D | config.c | 929 int length, total_len, num, i, ssac; in usb_get_bos_descriptor() local 948 total_len = le16_to_cpu(bos->wTotalLength); in usb_get_bos_descriptor() 951 if (total_len < length) in usb_get_bos_descriptor() 959 buffer = kzalloc(total_len, GFP_KERNEL); in usb_get_bos_descriptor() 966 ret = usb_get_descriptor(dev, USB_DT_BOS, 0, buffer, total_len); in usb_get_bos_descriptor() 967 if (ret < total_len) { in usb_get_bos_descriptor() 973 total_len -= length; in usb_get_bos_descriptor() 979 if (total_len < sizeof(*cap) || total_len < cap->bLength) { in usb_get_bos_descriptor() 990 total_len -= length; in usb_get_bos_descriptor()
|