Home
last modified time | relevance | path

Searched refs:total_len (Results 1 – 25 of 85) sorted by relevance

1234

/drivers/staging/rtl8188eu/os_dep/
Drtw_android.c65 int total_len; member
89 int total_len) in rtw_android_get_rssi() argument
97 bytes_written += snprintf(&command[bytes_written], total_len, in rtw_android_get_rssi()
106 int total_len) in rtw_android_get_link_speed() argument
112 return snprintf(command, total_len, "LinkSpeed %d", in rtw_android_get_link_speed()
117 int total_len) in rtw_android_get_macaddr() argument
119 return snprintf(command, total_len, "Macaddr = %pM", in rtw_android_get_macaddr()
124 int total_len) in android_set_cntry() argument
135 int total_len) in android_get_p2p_addr() argument
143 int total_len) in rtw_android_set_block() argument
[all …]
/drivers/net/wireless/ath/ath6kl/
Dtrace.h120 TP_PROTO(unsigned int addr, int flags, unsigned int total_len,
123 TP_ARGS(addr, flags, total_len, entries, list),
130 __field(size_t, total_len)
132 __dynamic_array(u8, data, total_len)
143 __entry->total_len = total_len;
169 __entry->total_len
/drivers/gpu/drm/udl/
Dudl_main.c34 u8 total_len = 0; in udl_parse_vendor_descriptor() local
41 total_len = usb_get_descriptor(usbdev, 0x5f, /* vendor specific */ in udl_parse_vendor_descriptor()
43 if (total_len > 5) { in udl_parse_vendor_descriptor()
45 total_len, desc); in udl_parse_vendor_descriptor()
47 if ((desc[0] != total_len) || /* descriptor length */ in udl_parse_vendor_descriptor()
51 (desc[4] != total_len - 2)) /* length after type */ in udl_parse_vendor_descriptor()
54 desc_end = desc + total_len; in udl_parse_vendor_descriptor()
/drivers/staging/gdm724x/
Dgdm_mux.c159 int total_len; in up_to_host() local
177 total_len = ALIGN(MUX_HEADER_SIZE + payload_size, 4); in up_to_host()
180 total_len) { in up_to_host()
203 packet_size_sum += total_len; in up_to_host()
362 int total_len; in gdm_mux_send() local
374 total_len = ALIGN(MUX_HEADER_SIZE + len, 4); in gdm_mux_send()
376 t = alloc_mux_tx(total_len); in gdm_mux_send()
390 memset(t->buf + MUX_HEADER_SIZE + len, 0, total_len - MUX_HEADER_SIZE - in gdm_mux_send()
393 t->len = total_len; in gdm_mux_send()
401 total_len, in gdm_mux_send()
/drivers/net/ppp/
Dpppoe.c861 size_t total_len) in pppoe_sendmsg() argument
887 if (total_len > (dev->mtu + dev->hard_header_len)) in pppoe_sendmsg()
891 skb = sock_wmalloc(sk, hlen + sizeof(*ph) + total_len + in pppoe_sendmsg()
907 ph = (struct pppoe_hdr *)skb_put(skb, total_len + sizeof(struct pppoe_hdr)); in pppoe_sendmsg()
910 error = memcpy_from_msg(start, m, total_len); in pppoe_sendmsg()
916 error = total_len; in pppoe_sendmsg()
918 po->pppoe_pa.remote, NULL, total_len); in pppoe_sendmsg()
922 ph->length = htons(total_len); in pppoe_sendmsg()
1004 size_t total_len, int flags) in pppoe_recvmsg() argument
1021 total_len = min_t(size_t, total_len, skb->len); in pppoe_recvmsg()
[all …]
/drivers/spi/
Dspi-bcm63xx.c340 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()
Dspi-octeon.c154 unsigned int total_len = 0; in octeon_spi_transfer_one_message() local
166 total_len += r; in octeon_spi_transfer_one_message()
170 msg->actual_length = total_len; in octeon_spi_transfer_one_message()
/drivers/scsi/pm8001/
Dpm8001_init.c156 (pm8001_ha->memoryMap.region[i].total_len + in pm8001_free()
269 pm8001_ha->memoryMap.region[AAP1].total_len = PM8001_EVENT_LOG_SIZE; in pm8001_alloc()
275 pm8001_ha->memoryMap.region[IOP].total_len = PM8001_EVENT_LOG_SIZE; in pm8001_alloc()
282 pm8001_ha->memoryMap.region[CI+i].total_len = 4; in pm8001_alloc()
290 pm8001_ha->memoryMap.region[IB+i].total_len = in pm8001_alloc()
297 pm8001_ha->memoryMap.region[IB+i].total_len = in pm8001_alloc()
307 pm8001_ha->memoryMap.region[PI+i].total_len = 4; in pm8001_alloc()
315 pm8001_ha->memoryMap.region[OB+i].total_len = in pm8001_alloc()
323 pm8001_ha->memoryMap.region[OB+i].total_len = in pm8001_alloc()
332 pm8001_ha->memoryMap.region[NVMD].total_len = 4096; in pm8001_alloc()
[all …]
/drivers/net/wireless/b43/
Dpio.c506 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()
/drivers/dma/
Dat_hdmac.c327 return desc->total_len; in atc_get_bytes_left()
330 ret = desc_first->total_len; in atc_get_bytes_left()
796 desc->total_len = desc->len = len; in atc_prep_dma_interleaved()
872 first->total_len = len; in atc_prep_dma_memcpy()
977 desc->total_len = len; in atc_prep_dma_memset()
1003 size_t total_len = 0; in atc_prep_dma_memset_sg() local
1042 total_len += len; in atc_prep_dma_memset_sg()
1054 first->total_len = total_len; in atc_prep_dma_memset_sg()
1094 size_t total_len = 0; in atc_prep_slave_sg() local
1148 total_len += len; in atc_prep_slave_sg()
[all …]
/drivers/usb/core/
Dconfig.c961 int length, total_len, num, i, ssac; in usb_get_bos_descriptor() local
980 total_len = le16_to_cpu(bos->wTotalLength); in usb_get_bos_descriptor()
983 if (total_len < length) in usb_get_bos_descriptor()
991 buffer = kzalloc(total_len, GFP_KERNEL); in usb_get_bos_descriptor()
998 ret = usb_get_descriptor(dev, USB_DT_BOS, 0, buffer, total_len); in usb_get_bos_descriptor()
999 if (ret < total_len) { in usb_get_bos_descriptor()
1007 total_len -= length; in usb_get_bos_descriptor()
1013 if (total_len < sizeof(*cap) || total_len < cap->bLength) { in usb_get_bos_descriptor()
1059 total_len -= length; in usb_get_bos_descriptor()
/drivers/dma/ioat/
Dprep.c121 size_t total_len = len; in ioat_dma_prep_memcpy_lock() local
152 desc->len = total_len; in ioat_dma_prep_memcpy_lock()
172 size_t total_len = len; in __ioat_prep_xor_lock() local
236 desc->len = total_len; in __ioat_prep_xor_lock()
361 size_t total_len = len; in __ioat_prep_pq_lock() local
446 desc->len = total_len; in __ioat_prep_pq_lock()
483 size_t total_len = len; in __ioat_prep_pq16_lock() local
560 desc->len = total_len; in __ioat_prep_pq16_lock()
/drivers/media/common/siano/
Dsmscoreapi.c1947 u32 total_len; in smscore_gpio_configure() local
1967 total_len = sizeof(struct sms_msg_hdr) + (sizeof(u32) * 6); in smscore_gpio_configure()
1969 buffer = kmalloc(total_len + SMS_DMA_ALIGNMENT, in smscore_gpio_configure()
1979 p_msg->x_msg_header.msg_length = (u16) total_len; in smscore_gpio_configure()
2008 rc = smscore_sendrequest_and_wait(coredev, p_msg, total_len, in smscore_gpio_configure()
2026 u32 total_len; in smscore_gpio_set_level() local
2038 total_len = sizeof(struct sms_msg_hdr) + in smscore_gpio_set_level()
2041 buffer = kmalloc(total_len + SMS_DMA_ALIGNMENT, in smscore_gpio_set_level()
2052 p_msg->x_msg_header.msg_length = (u16) total_len; in smscore_gpio_set_level()
2057 rc = smscore_sendrequest_and_wait(coredev, p_msg, total_len, in smscore_gpio_set_level()
[all …]
/drivers/scsi/qla4xxx/
Dql4_bsg.c208 uint32_t total_len = 0; in qla4xxx_read_nvram() local
230 total_len = offset + len; in qla4xxx_read_nvram()
233 if ((is_qla4010(ha) && total_len > QL4010_NVRAM_SIZE) || in qla4xxx_read_nvram()
235 total_len > QL40X2_NVRAM_SIZE)) { in qla4xxx_read_nvram()
280 uint32_t total_len = 0; in qla4xxx_update_nvram() local
301 total_len = offset + len; in qla4xxx_update_nvram()
304 if ((is_qla4010(ha) && total_len > QL4010_NVRAM_SIZE) || in qla4xxx_update_nvram()
306 total_len > QL40X2_NVRAM_SIZE)) { in qla4xxx_update_nvram()
/drivers/net/wireless/orinoco/
Dhermes_dld.c257 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/
Dfifo.c532 int total_len; in usbhsf_pio_try_push() local
559 total_len = len; in usbhsf_pio_try_push()
560 is_short = total_len < maxp; in usbhsf_pio_try_push()
570 buf += total_len - len; in usbhsf_pio_try_push()
580 pkt->actual += total_len; in usbhsf_pio_try_push()
677 int total_len = 0; in usbhsf_pio_try_pop() local
692 total_len = len; in usbhsf_pio_try_pop()
699 pkt->actual += total_len; in usbhsf_pio_try_pop()
702 (total_len < maxp)) { /* short packet */ in usbhsf_pio_try_pop()
736 buf += total_len - len; in usbhsf_pio_try_pop()
/drivers/usb/musb/
Dmusb_cppi41.c37 u32 total_len; member
158 remain_bytes = cppi41_channel->total_len; in cppi41_trans_done()
245 cppi41_channel->total_len); in cppi41_dma_callback()
249 if (cppi41_channel->transferred == cppi41_channel->total_len || in cppi41_dma_callback()
317 unsigned long usecs = cppi41_channel->total_len / 10; in cppi41_dma_callback()
403 cppi41_channel->total_len = len; in cppi41_configure_channel()
/drivers/crypto/nx/
Dnx-842-powernv.c109 int i, ret, total_len = len; in setup_ddl() local
147 total_len, in ? "input" : "output", len); in setup_ddl()
150 total_len -= len; in setup_ddl()
152 setup_indirect_dde(dde, ddl, i, total_len); in setup_ddl()
/drivers/staging/rdma/hfi1/
Ddiag.c114 u32 total_len; member
378 u32 pkt_len, total_len; in diagpkt_send() local
455 total_len = pkt_len + 2; /* PBC + packet */ in diagpkt_send()
462 dp->pbc = create_pbc(ppd, 0, 0, 0, total_len); in diagpkt_send()
496 pbuf = sc_buffer_alloc(sc, total_len, credit_cb, credit_arg); in diagpkt_send()
947 if (pkt_len >= packet->total_len) { in hfi1_snoop_read()
949 packet->total_len)) in hfi1_snoop_read()
952 ret = packet->total_len; in hfi1_snoop_read()
1583 s_packet->total_len = tlen + md_len; in snoop_recv_handler()
1674 s_packet->total_len = tlen + md_len; in snoop_send_pio_handler()
[all …]
/drivers/net/wireless/ti/wlcore/
Dtx.c208 u32 total_len = skb->len + sizeof(struct wl1271_tx_hw_descr) + extra; in wl1271_tx_allocate() local
213 if (buf_offset + total_len > wl->aggr_buf_size) in wl1271_tx_allocate()
223 total_blocks = wlcore_hw_calc_tx_blocks(wl, total_len, spare_blocks); in wl1271_tx_allocate()
227 skb, total_len - skb->len); in wl1271_tx_allocate()
256 total_len, total_blocks, id); in wl1271_tx_allocate()
382 u32 total_len; in wl1271_prepare_tx_frame() local
443 total_len = wlcore_calc_packet_alignment(wl, skb->len); in wl1271_prepare_tx_frame()
446 memset(wl->aggr_buf + buf_offset + skb->len, 0, total_len - skb->len); in wl1271_prepare_tx_frame()
452 return total_len; in wl1271_prepare_tx_frame()
/drivers/vhost/
Dtest.c49 size_t len, total_len = 0; in handle_vq() local
89 total_len += len; in handle_vq()
90 if (unlikely(vhost_exceeds_weight(vq, 0, total_len))) in handle_vq()
/drivers/mtd/
Dmtdconcat.c164 size_t total_len = 0; in concat_writev() local
170 total_len += vecs[i].iov_len; in concat_writev()
175 if (do_div(__to, mtd->writesize) || (total_len % mtd->writesize)) in concat_writev()
194 size = min_t(uint64_t, total_len, subdev->size - to); in concat_writev()
219 total_len -= wsize; in concat_writev()
221 if (total_len == 0) in concat_writev()
/drivers/ata/
Dsata_sx4.c318 unsigned int total_len) in pdc20621_ata_sg() argument
329 buf32[dw + 1] = cpu_to_le32(total_len | ATA_PRD_EOT); in pdc20621_ata_sg()
339 unsigned int total_len) in pdc20621_host_sg() argument
350 buf32[dw + 1] = cpu_to_le32(total_len | ATA_PRD_EOT); in pdc20621_host_sg()
461 unsigned int i, si, idx, total_len = 0, sgt_len; in pdc20621_dma_prep() local
478 total_len += sg_dma_len(sg); in pdc20621_dma_prep()
486 pdc20621_host_sg(&pp->dimm_buf[0], portno, total_len); in pdc20621_dma_prep()
489 pdc20621_ata_sg(&pp->dimm_buf[0], portno, total_len); in pdc20621_dma_prep()
/drivers/video/fbdev/
Dudlfb.c1518 int total_len; in dlfb_parse_vendor_descriptor() local
1525 total_len = usb_get_descriptor(interface_to_usbdev(interface), in dlfb_parse_vendor_descriptor()
1530 if (total_len < 0) { in dlfb_parse_vendor_descriptor()
1533 total_len = (int) desc[0]; in dlfb_parse_vendor_descriptor()
1536 if (total_len > 5) { in dlfb_parse_vendor_descriptor()
1537 pr_info("vendor descriptor length:%x data:%11ph\n", total_len, in dlfb_parse_vendor_descriptor()
1540 if ((desc[0] != total_len) || /* descriptor length */ in dlfb_parse_vendor_descriptor()
1544 (desc[4] != total_len - 2)) /* length after type */ in dlfb_parse_vendor_descriptor()
1547 desc_end = desc + total_len; in dlfb_parse_vendor_descriptor()
1574 pr_info("vendor descriptor not available (%d)\n", total_len); in dlfb_parse_vendor_descriptor()
/drivers/net/
Dmacvtap.c716 unsigned long total_len = iov_iter_count(from); in macvtap_get_user() local
717 unsigned long len = total_len; in macvtap_get_user()
833 return total_len; in macvtap_get_user()
1232 size_t total_len) in macvtap_sendmsg() argument
1239 size_t total_len, int flags) in macvtap_recvmsg() argument
1246 if (ret > total_len) { in macvtap_recvmsg()
1248 ret = flags & MSG_TRUNC ? ret : total_len; in macvtap_recvmsg()

1234