/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 …]
|
/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()
|
/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 …]
|
/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
|
/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()
|
/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 …]
|
/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()
|
/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 …]
|
/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()
|
/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()
|
/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()
|
/drivers/scsi/pm8001/ |
D | pm8001_init.c | 173 (pm8001_ha->memoryMap.region[i].total_len + in pm8001_free() 301 pm8001_ha->memoryMap.region[AAP1].total_len = PM8001_EVENT_LOG_SIZE; in pm8001_alloc() 307 pm8001_ha->memoryMap.region[IOP].total_len = PM8001_EVENT_LOG_SIZE; in pm8001_alloc() 316 pm8001_ha->memoryMap.region[ci_offset+i].total_len = 4; in pm8001_alloc() 325 pm8001_ha->memoryMap.region[ib_offset+i].total_len = in pm8001_alloc() 334 pm8001_ha->memoryMap.region[ib_offset+i].total_len = in pm8001_alloc() 344 pm8001_ha->memoryMap.region[pi_offset+i].total_len = 4; in pm8001_alloc() 353 pm8001_ha->memoryMap.region[ob_offset+i].total_len = in pm8001_alloc() 363 pm8001_ha->memoryMap.region[ob_offset+i].total_len = in pm8001_alloc() 372 pm8001_ha->memoryMap.region[NVMD].total_len = 4096; in pm8001_alloc() [all …]
|
/drivers/usb/core/ |
D | config.c | 985 int length, total_len, num, i, ssac; in usb_get_bos_descriptor() local 1004 total_len = le16_to_cpu(bos->wTotalLength); in usb_get_bos_descriptor() 1007 if (total_len < length) in usb_get_bos_descriptor() 1015 buffer = kzalloc(total_len, GFP_KERNEL); in usb_get_bos_descriptor() 1022 ret = usb_get_descriptor(dev, USB_DT_BOS, 0, buffer, total_len); in usb_get_bos_descriptor() 1023 if (ret < total_len) { in usb_get_bos_descriptor() 1031 total_len -= length; in usb_get_bos_descriptor() 1037 if (total_len < sizeof(*cap) || total_len < cap->bLength) { in usb_get_bos_descriptor() 1084 total_len -= length; in usb_get_bos_descriptor()
|
/drivers/nvme/target/ |
D | io-cmd-file.c | 151 size_t len = 0, total_len = 0; in nvmet_file_execute_io() local 170 total_len += req->f.bvec[bv_cnt].bv_len; in nvmet_file_execute_io() 188 if (WARN_ON_ONCE(total_len != req->transfer_len)) { in nvmet_file_execute_io() 194 ret = total_len; in nvmet_file_execute_io() 205 ret = nvmet_file_submit_bvec(req, pos, bv_cnt, total_len, ki_flags); in nvmet_file_execute_io()
|
/drivers/dma/ioat/ |
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()
|
/drivers/dma/ |
D | at_hdmac.c | 314 return desc->total_len; in atc_get_bytes_left() 317 ret = desc_first->total_len; in atc_get_bytes_left() 743 desc->total_len = desc->len = len; in atc_prep_dma_interleaved() 819 first->total_len = len; in atc_prep_dma_memcpy() 924 desc->total_len = len; in atc_prep_dma_memset() 950 size_t total_len = 0; in atc_prep_dma_memset_sg() local 989 total_len += len; in atc_prep_dma_memset_sg() 1001 first->total_len = total_len; in atc_prep_dma_memset_sg() 1041 size_t total_len = 0; in atc_prep_slave_sg() local 1095 total_len += len; in atc_prep_slave_sg() [all …]
|
D | bcm2835-dma.c | 226 size_t *total_len, in bcm2835_dma_create_cb_set_length() argument 247 if (*total_len + control_block->length < period_len) { in bcm2835_dma_create_cb_set_length() 249 *total_len += control_block->length; in bcm2835_dma_create_cb_set_length() 254 control_block->length = period_len - *total_len; in bcm2835_dma_create_cb_set_length() 257 *total_len = 0; in bcm2835_dma_create_cb_set_length() 307 size_t len = buf_len, total_len; in bcm2835_dma_create_cb_chain() local 329 for (frame = 0, total_len = 0; frame < frames; d->frames++, frame++) { in bcm2835_dma_create_cb_chain() 348 len, period_len, &total_len, in bcm2835_dma_create_cb_chain()
|
/drivers/media/common/siano/ |
D | smscoreapi.c | 1941 u32 total_len; in smscore_gpio_configure() local 1961 total_len = sizeof(struct sms_msg_hdr) + (sizeof(u32) * 6); in smscore_gpio_configure() 1963 buffer = kmalloc(total_len + SMS_DMA_ALIGNMENT, in smscore_gpio_configure() 1973 p_msg->x_msg_header.msg_length = (u16) total_len; in smscore_gpio_configure() 2002 rc = smscore_sendrequest_and_wait(coredev, p_msg, total_len, in smscore_gpio_configure() 2020 u32 total_len; in smscore_gpio_set_level() local 2032 total_len = sizeof(struct sms_msg_hdr) + in smscore_gpio_set_level() 2035 buffer = kmalloc(total_len + SMS_DMA_ALIGNMENT, in smscore_gpio_set_level() 2046 p_msg->x_msg_header.msg_length = (u16) total_len; in smscore_gpio_set_level() 2051 rc = smscore_sendrequest_and_wait(coredev, p_msg, total_len, in smscore_gpio_set_level() [all …]
|
/drivers/scsi/qla4xxx/ |
D | ql4_bsg.c | 207 uint32_t total_len = 0; in qla4xxx_read_nvram() local 229 total_len = offset + len; in qla4xxx_read_nvram() 232 if ((is_qla4010(ha) && total_len > QL4010_NVRAM_SIZE) || in qla4xxx_read_nvram() 234 total_len > QL40X2_NVRAM_SIZE)) { in qla4xxx_read_nvram() 279 uint32_t total_len = 0; in qla4xxx_update_nvram() local 300 total_len = offset + len; in qla4xxx_update_nvram() 303 if ((is_qla4010(ha) && total_len > QL4010_NVRAM_SIZE) || in qla4xxx_update_nvram() 305 total_len > QL40X2_NVRAM_SIZE)) { in qla4xxx_update_nvram()
|
/drivers/net/wireless/intersil/orinoco/ |
D | hermes_dld.c | 257 int total_len = 0; in hermes_blocks_length() local 267 total_len += sizeof(*blk) + len; in hermes_blocks_length() 271 return total_len; in hermes_blocks_length()
|
/drivers/usb/renesas_usbhs/ |
D | fifo.c | 509 int total_len; in usbhsf_pio_try_push() local 536 total_len = len; in usbhsf_pio_try_push() 537 is_short = total_len < maxp; in usbhsf_pio_try_push() 547 buf += total_len - len; in usbhsf_pio_try_push() 562 pkt->actual += total_len; in usbhsf_pio_try_push() 659 int total_len = 0; in usbhsf_pio_try_pop() local 674 total_len = len; in usbhsf_pio_try_pop() 681 pkt->actual += total_len; in usbhsf_pio_try_pop() 684 (total_len < maxp)) { /* short packet */ in usbhsf_pio_try_pop() 718 buf += total_len - len; in usbhsf_pio_try_pop()
|
/drivers/hid/intel-ish-hid/ |
D | ishtp-hid-client.c | 65 size_t payload_len, total_len, cur_pos, raw_len; in process_recv() local 76 total_len = data_len; in process_recv() 80 if (cur_pos + sizeof(struct hostif_msg) > total_len) { in process_recv() 95 total_len) { in process_recv() 312 sizeof(struct hostif_msg) < total_len) in process_recv() 318 } while (cur_pos < total_len); in process_recv()
|
/drivers/vhost/ |
D | net.c | 649 static bool tx_can_batch(struct vhost_virtqueue *vq, size_t total_len) in tx_can_batch() argument 651 return total_len < VHOST_NET_WEIGHT && in tx_can_batch() 783 size_t len, total_len = 0; in handle_tx_copy() local 811 total_len += len; in handle_tx_copy() 834 if (tx_can_batch(vq, total_len)) in handle_tx_copy() 854 } while (likely(!vhost_exceeds_weight(vq, ++sent_pkts, total_len))); in handle_tx_copy() 873 size_t len, total_len = 0; in handle_tx_zerocopy() local 927 total_len += len; in handle_tx_zerocopy() 928 if (tx_can_batch(vq, total_len) && in handle_tx_zerocopy() 956 } while (likely(!vhost_exceeds_weight(vq, ++sent_pkts, total_len))); in handle_tx_zerocopy() [all …]
|
/drivers/net/wireless/ti/wlcore/ |
D | tx.c | 195 u32 total_len = skb->len + sizeof(struct wl1271_tx_hw_descr) + extra; in wl1271_tx_allocate() local 200 if (buf_offset + total_len > wl->aggr_buf_size) in wl1271_tx_allocate() 210 total_blocks = wlcore_hw_calc_tx_blocks(wl, total_len, spare_blocks); in wl1271_tx_allocate() 213 desc = skb_push(skb, total_len - skb->len); in wl1271_tx_allocate() 242 total_len, total_blocks, id); in wl1271_tx_allocate() 366 u32 total_len; in wl1271_prepare_tx_frame() local 427 total_len = wlcore_calc_packet_alignment(wl, skb->len); in wl1271_prepare_tx_frame() 430 memset(wl->aggr_buf + buf_offset + skb->len, 0, total_len - skb->len); in wl1271_prepare_tx_frame() 436 return total_len; in wl1271_prepare_tx_frame()
|