/kernel/linux/linux-5.10/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 142 if (priv_cmd.total_len < 1) in rtw_android_priv_cmd() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | crc32.h | 17 static inline u32 crc32_posix_end(u32 crc, size_t total_len) in crc32_posix_end() argument 20 while (total_len != 0) { in crc32_posix_end() 21 u8 c = total_len & 0xff; in crc32_posix_end() 24 total_len >>= 8; in crc32_posix_end()
|
/kernel/linux/linux-5.10/fs/cifs/ |
D | smb2pdu.c | 348 unsigned int *total_len) in fill_small_buf() argument 363 *total_len = parmsize + sizeof(struct smb2_sync_hdr); in fill_small_buf() 373 void **request_buf, unsigned int *total_len) in __smb2_plain_req_init() argument 387 total_len); in __smb2_plain_req_init() 400 void **request_buf, unsigned int *total_len) in smb2_plain_req_init() argument 409 total_len); in smb2_plain_req_init() 414 void **request_buf, unsigned int *total_len) in smb2_ioctl_req_init() argument 419 request_buf, total_len); in smb2_ioctl_req_init() 422 request_buf, total_len); in smb2_ioctl_req_init() 513 struct TCP_Server_Info *server, unsigned int *total_len) in assemble_neg_contexts() argument [all …]
|
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/ |
D | nip_input.c | 41 if (niph->total_len > skb->len) { in _nip_update_recv_skb_len() 43 niph->total_len, skb->len); in _nip_update_recv_skb_len() 50 skb_trim(skb, niph->total_len); in _nip_update_recv_skb_len() 116 niph.total_len = ntohs(niph.total_len); in nip_rcv()
|
D | nip_output.c | 400 head.total_len = head.hdr_buf_pos + skb->len; in tcp_nip_queue_xmit() 401 nip_update_total_len(&head, htons(head.total_len)); in tcp_nip_queue_xmit() 428 head.total_len = skb->len; in tcp_nip_queue_xmit() 431 nip_dbg("failed to send skb, skb->len=%u", head.total_len); in tcp_nip_queue_xmit() 433 nip_dbg("send skb ok, skb->len=%u", head.total_len); in tcp_nip_queue_xmit() 509 head.total_len = head.hdr_buf_pos + buff->len; in tcp_nip_actual_send_reset() 510 nip_update_total_len(&head, htons(head.total_len)); in tcp_nip_actual_send_reset() 531 head.total_len = buff->len; in tcp_nip_actual_send_reset() 534 nip_dbg("failed to send skb, skb->len=%u", head.total_len); in tcp_nip_actual_send_reset() 536 nip_dbg("send skb ok, skb->len=%u", head.total_len); in tcp_nip_actual_send_reset()
|
/kernel/linux/linux-5.10/net/nfc/nci/ |
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()
|
/kernel/linux/linux-5.10/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
|
/kernel/linux/linux-5.10/drivers/fsi/ |
D | fsi-core.c | 583 size_t total_len, read_len; in fsi_slave_sysfs_raw_read() local 592 for (total_len = 0; total_len < count; total_len += read_len) { in fsi_slave_sysfs_raw_read() 593 read_len = aligned_access_size(off, count - total_len); in fsi_slave_sysfs_raw_read() 595 rc = fsi_slave_read(slave, off, buf + total_len, read_len); in fsi_slave_sysfs_raw_read() 610 size_t total_len, write_len; in fsi_slave_sysfs_raw_write() local 619 for (total_len = 0; total_len < count; total_len += write_len) { in fsi_slave_sysfs_raw_write() 620 write_len = aligned_access_size(off, count - total_len); in fsi_slave_sysfs_raw_write() 622 rc = fsi_slave_write(slave, off, buf + total_len, write_len); in fsi_slave_sysfs_raw_write() 698 size_t total_len, read_len; in cfam_read() local 708 for (total_len = 0; total_len < count; total_len += read_len) { in cfam_read() [all …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath10k/ |
D | wow.c | 88 int total_len = old->pkt_offset + old->pattern_len; in ath10k_wow_convert_8023_to_80211() local 138 if (total_len > ETH_HLEN) in ath10k_wow_convert_8023_to_80211() 140 else if (total_len > offsetof(struct ethhdr, h_proto)) in ath10k_wow_convert_8023_to_80211() 141 hdr_80211_end_offset = hdr_len + rfc_len + total_len - ETH_HLEN; in ath10k_wow_convert_8023_to_80211() 142 else if (total_len > ETH_ALEN) in ath10k_wow_convert_8023_to_80211() 143 hdr_80211_end_offset = total_len - ETH_ALEN + in ath10k_wow_convert_8023_to_80211() 146 hdr_80211_end_offset = total_len + in ath10k_wow_convert_8023_to_80211() 158 if (total_len > ETH_HLEN) { in ath10k_wow_convert_8023_to_80211() 162 total_len - ETH_HLEN); in ath10k_wow_convert_8023_to_80211() 165 total_len - ETH_HLEN); in ath10k_wow_convert_8023_to_80211() [all …]
|
/kernel/linux/linux-5.10/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() 167 if (len - packet_size_sum < total_len) { in up_to_host() 190 packet_size_sum += total_len; in up_to_host() 350 int total_len; in gdm_mux_send() local 362 total_len = ALIGN(MUX_HEADER_SIZE + len, 4); in gdm_mux_send() 364 t = alloc_mux_tx(total_len); in gdm_mux_send() 379 total_len - MUX_HEADER_SIZE - len); in gdm_mux_send() 381 t->len = total_len; in gdm_mux_send() 389 total_len, in gdm_mux_send()
|
/kernel/linux/common_modules/newip/src/common/ |
D | nip_hdr.h | 132 unsigned short total_len; /* Packet length (Header + packet), network order.(big end) */ member 157 unsigned short total_len; /* Packet header length + packet data length */ member 208 void nip_update_total_len(struct nip_hdr_encap *head, unsigned short total_len);
|
D | nip_hdr_encap.c | 80 head->hdr_buf_pos += sizeof(head->total_len); in _nip_hdr_total_len_encap() 84 void nip_update_total_len(struct nip_hdr_encap *head, unsigned short total_len) in nip_update_total_len() argument 86 *head->total_len_pos = total_len; in nip_update_total_len()
|
D | nip_hdr_decap.c | 157 if (nbuf->remaining_len < sizeof(niph->total_len)) in _get_nip_total_len() 163 niph->total_len = *((unsigned short *)nbuf->data); in _get_nip_total_len() 165 nip_buff_pull(nbuf, sizeof(niph->total_len)); in _get_nip_total_len()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
D | tls.c | 402 int total_len = 0; in TEST_F() local 414 total_len += vec[i].iov_len; in TEST_F() 419 EXPECT_EQ(sendmsg(self->cfd, &msg, 0), total_len); in TEST_F() 420 buf = malloc(total_len); in TEST_F() 421 EXPECT_NE(recv(self->fd, buf, total_len, 0), -1); in TEST_F() 439 int total_len = 0; in TEST_F() local 451 total_len += vec[i].iov_len; in TEST_F() 456 EXPECT_EQ(sendmsg(self->fd, &msg, 0), total_len); in TEST_F() 457 EXPECT_NE(recv(self->cfd, buf, total_len, 0), -1); in TEST_F() 601 unsigned int total_len = TLS_PAYLOAD_MAX_LEN * 2; in TEST_F() local [all …]
|
D | txtimestamp.c | 489 int fd, i, val = 1, total_len, epfd = 0; in do_test() local 495 total_len = cfg_payload_len; in do_test() 497 total_len += sizeof(struct udphdr); in do_test() 500 total_len += sizeof(struct iphdr); in do_test() 502 total_len += sizeof(struct ipv6hdr); in do_test() 511 buf = malloc(total_len); in do_test() 579 memset(buf, 'a' + i, total_len); in do_test() 597 iov.iov_len = total_len; in do_test() 637 if (val != total_len) in do_test()
|
/kernel/linux/linux-5.10/fs/ |
D | splice.c | 360 if (sd->len < sd->total_len && in pipe_to_sendpage() 408 if (sd->len > sd->total_len) in splice_from_pipe_feed() 409 sd->len = sd->total_len; in splice_from_pipe_feed() 428 sd->total_len -= ret; in splice_from_pipe_feed() 438 if (!sd->total_len) in splice_from_pipe_feed() 590 .total_len = len, in splice_from_pipe() 622 .total_len = len, in iter_file_splice_write() 638 while (sd.total_len) { in iter_file_splice_write() 664 left = sd.total_len; in iter_file_splice_write() 685 iov_iter_bvec(&from, WRITE, array, n, sd.total_len - left); in iter_file_splice_write() [all …]
|
/kernel/linux/linux-5.10/fs/squashfs/ |
D | block.c | 85 int total_len = (block_end - block) << msblk->devblksize_log2; in squashfs_bio_read() local 86 const int page_count = DIV_ROUND_UP(total_len + offset, PAGE_SIZE); in squashfs_bio_read() 104 min_t(unsigned int, PAGE_SIZE - offset, total_len); in squashfs_bio_read() 116 total_len -= len; in squashfs_bio_read()
|
/kernel/linux/linux-5.10/drivers/net/ppp/ |
D | pppoe.c | 837 size_t total_len) in pppoe_sendmsg() argument 863 if (total_len > (dev->mtu + dev->hard_header_len)) in pppoe_sendmsg() 867 skb = sock_wmalloc(sk, hlen + sizeof(*ph) + total_len + in pppoe_sendmsg() 883 ph = skb_put(skb, total_len + sizeof(struct pppoe_hdr)); in pppoe_sendmsg() 886 error = memcpy_from_msg(start, m, total_len); in pppoe_sendmsg() 892 error = total_len; in pppoe_sendmsg() 894 po->pppoe_pa.remote, NULL, total_len); in pppoe_sendmsg() 898 ph->length = htons(total_len); in pppoe_sendmsg() 980 size_t total_len, int flags) in pppoe_recvmsg() argument 997 total_len = min_t(size_t, total_len, skb->len); in pppoe_recvmsg() [all …]
|
/kernel/linux/linux-5.10/mm/ |
D | process_vm_access.c | 165 size_t total_len = iov_iter_count(iter); in process_vm_rw_core() local 221 total_len -= iov_iter_count(iter); in process_vm_rw_core() 226 if (total_len) in process_vm_rw_core() 227 rc = total_len; in process_vm_rw_core()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
D | opal.c | 444 static int __opal_put_chars(uint32_t vtermno, const char *data, int total_len, bool atomic) in __opal_put_chars() argument 457 if (rc || be64_to_cpu(olen) < total_len) { in __opal_put_chars() 460 written = total_len; in __opal_put_chars() 467 olen = cpu_to_be64(total_len); in __opal_put_chars() 483 if (written < total_len) { in __opal_put_chars() 487 "len=%d written=%d\n", total_len, written); in __opal_put_chars() 500 int opal_put_chars(uint32_t vtermno, const char *data, int total_len) in opal_put_chars() argument 502 return __opal_put_chars(vtermno, data, total_len, false); in opal_put_chars() 511 int opal_put_chars_atomic(uint32_t vtermno, const char *data, int total_len) in opal_put_chars_atomic() argument 513 return __opal_put_chars(vtermno, data, total_len, true); in opal_put_chars_atomic()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/ |
D | mr.c | 271 u64 total_len = 0; in mlx4_ib_umem_calc_optimal_mtt_size() local 331 total_len += current_block_len; in mlx4_ib_umem_calc_optimal_mtt_size() 347 total_len += current_block_len; in mlx4_ib_umem_calc_optimal_mtt_size() 349 total_len += (first_block_start & ((1ULL << block_shift) - 1ULL)); in mlx4_ib_umem_calc_optimal_mtt_size() 352 total_len += (last_block_aligned_end - last_block_end); in mlx4_ib_umem_calc_optimal_mtt_size() 354 if (total_len & ((1ULL << block_shift) - 1ULL)) in mlx4_ib_umem_calc_optimal_mtt_size() 356 total_len, block_shift); in mlx4_ib_umem_calc_optimal_mtt_size() 358 *num_of_mtts = total_len >> block_shift; in mlx4_ib_umem_calc_optimal_mtt_size()
|
/kernel/linux/linux-5.10/drivers/spi/ |
D | spi-bcm63xx.c | 332 unsigned int n_transfers = 0, total_len = 0; in bcm63xx_spi_transfer_one() local 346 total_len += t->len; in bcm63xx_spi_transfer_one() 356 total_len > (bs->fifo_size + BCM63XX_SPI_MAX_PREPEND)) || in bcm63xx_spi_transfer_one() 357 (!can_use_prepend && total_len > bs->fifo_size)) { in bcm63xx_spi_transfer_one() 359 total_len, bs->fifo_size); in bcm63xx_spi_transfer_one() 388 m->actual_length += total_len; in bcm63xx_spi_transfer_one() 392 total_len = 0; in bcm63xx_spi_transfer_one()
|
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()
|
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43/ |
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()
|