Home
last modified time | relevance | path

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

123456

/drivers/net/ethernet/netronome/nfp/nfpcore/
A Dcrc32.h16 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()
/drivers/media/dvb-frontends/
A Dmxl692.c259 total_len = (total_len + 3) & ~3; 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()
320 memcpy(plocal_buf, buffer, total_len); in mxl692_memwrite()
382 int status = 0, total_len = 0; in mxl692_opwrite() local
386 total_len = size; in mxl692_opwrite()
387 total_len = (total_len + 3) & ~3; /* 4 byte alignment */ in mxl692_opwrite()
[all …]
/drivers/fsi/
A Dfsi-core.c561 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()
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()
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()
683 rc = copy_to_user(buf + total_len, &data, read_len); in cfam_read()
700 size_t total_len, write_len; in cfam_write() local
711 for (total_len = 0; total_len < count; total_len += write_len) { in cfam_write()
[all …]
/drivers/dax/
A Dkmem.c71 unsigned long total_len = 0, orig_len = 0; in dev_dax_kmem_probe() local
107 total_len += range_len(&range); in dev_dax_kmem_probe()
110 if (!total_len) { in dev_dax_kmem_probe()
113 } else if (total_len != orig_len) { in dev_dax_kmem_probe()
116 string_get_size(orig_len - total_len, 1, STRING_UNITS_2, in dev_dax_kmem_probe()
132 rc = memory_group_register_static(numa_node, PFN_UP(total_len)); in dev_dax_kmem_probe()
/drivers/net/wireless/ath/ath6kl/
A Dtrace.h121 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/media/platform/mediatek/vcodec/common/
A Dmtk_vcodec_dbgfs.c96 int total_len = 200 * (dbgfs->inst_count == 0 ? 1 : dbgfs->inst_count); in mtk_vdec_dbgfs_read() local
99 char *buf = kmalloc(total_len, GFP_KERNEL); in mtk_vdec_dbgfs_read()
105 mtk_vdec_dbgfs_get_help(buf, &used_len, total_len); in mtk_vdec_dbgfs_read()
119 curr_len = snprintf(buf + used_len, total_len - used_len, in mtk_vdec_dbgfs_read()
124 curr_len = snprintf(buf + used_len, total_len - used_len, in mtk_vdec_dbgfs_read()
132 mtk_vdec_dbgfs_get_format_type(ctx, buf, &used_len, total_len); in mtk_vdec_dbgfs_read()
/drivers/mtd/spi-nor/
A Dotp.c309 size_t total_len, size_t *retlen, in spi_nor_mtd_otp_read_write() argument
324 total_len = min_t(size_t, total_len, spi_nor_otp_size(nor) - ofs); in spi_nor_mtd_otp_read_write()
326 if (!total_len) in spi_nor_mtd_otp_read_write()
334 ret = spi_nor_mtd_otp_range_is_locked(nor, ofs, total_len); in spi_nor_mtd_otp_read_write()
343 while (total_len) { in spi_nor_mtd_otp_read_write()
361 len = min_t(size_t, total_len, rlen - rofs); in spi_nor_mtd_otp_read_write()
375 total_len -= ret; in spi_nor_mtd_otp_read_write()
/drivers/net/wireless/ath/ath10k/
A Dwow.c89 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 …]
/drivers/net/ppp/
A Dpppoe.c838 size_t total_len) in pppoe_sendmsg() argument
864 if (total_len > (dev->mtu + dev->hard_header_len)) in pppoe_sendmsg()
868 skb = sock_wmalloc(sk, hlen + sizeof(*ph) + total_len + in pppoe_sendmsg()
887 error = memcpy_from_msg(start, m, total_len); in pppoe_sendmsg()
893 error = total_len; in pppoe_sendmsg()
895 po->pppoe_pa.remote, NULL, total_len); in pppoe_sendmsg()
899 ph->length = htons(total_len); in pppoe_sendmsg()
1005 size_t total_len, int flags) in pppoe_recvmsg() argument
1018 total_len = min_t(size_t, total_len, skb->len); in pppoe_recvmsg()
1019 error = skb_copy_datagram_msg(skb, 0, m, total_len); in pppoe_recvmsg()
[all …]
/drivers/net/wireless/ath/ath11k/
A Dwow.c162 int total_len = old->pkt_offset + old->pattern_len; in ath11k_wow_convert_8023_to_80211() local
218 if (total_len > ETH_HLEN) in ath11k_wow_convert_8023_to_80211()
220 else if (total_len > offsetof(struct ethhdr, h_proto)) in ath11k_wow_convert_8023_to_80211()
221 hdr_80211_end_offset = hdr_len + rfc_len + total_len - ETH_HLEN; in ath11k_wow_convert_8023_to_80211()
222 else if (total_len > ETH_ALEN) in ath11k_wow_convert_8023_to_80211()
223 hdr_80211_end_offset = total_len - ETH_ALEN + in ath11k_wow_convert_8023_to_80211()
226 hdr_80211_end_offset = total_len + in ath11k_wow_convert_8023_to_80211()
238 if (total_len > ETH_HLEN) { in ath11k_wow_convert_8023_to_80211()
242 total_len - ETH_HLEN); in ath11k_wow_convert_8023_to_80211()
245 total_len - ETH_HLEN); in ath11k_wow_convert_8023_to_80211()
[all …]
/drivers/spi/
A Dspi-bcm63xx.c322 unsigned int n_transfers = 0, total_len = 0; in bcm63xx_spi_transfer_one() local
336 total_len += t->len; in bcm63xx_spi_transfer_one()
346 total_len > (bs->fifo_size + BCM63XX_SPI_MAX_PREPEND)) || in bcm63xx_spi_transfer_one()
347 (!can_use_prepend && total_len > bs->fifo_size)) { in bcm63xx_spi_transfer_one()
349 total_len, bs->fifo_size); in bcm63xx_spi_transfer_one()
378 m->actual_length += total_len; in bcm63xx_spi_transfer_one()
382 total_len = 0; in bcm63xx_spi_transfer_one()
A Dspi-sunplus-sp7021.c183 unsigned int tx_cnt, total_len; in sp7021_spi_host_irq() local
192 total_len = FIELD_GET(SP7021_GET_LEN_MASK, fd_status); in sp7021_spi_host_irq()
194 if ((fd_status & SP7021_TX_EMP_FLAG) && (fd_status & SP7021_RX_EMP_FLAG) && total_len == 0) in sp7021_spi_host_irq()
197 if (tx_len == 0 && total_len == 0) in sp7021_spi_host_irq()
215 total_len = FIELD_GET(SP7021_GET_LEN_MASK, fd_status); in sp7021_spi_host_irq()
218 while (total_len != pspim->rx_cur_len) { in sp7021_spi_host_irq()
220 total_len = FIELD_GET(SP7021_GET_LEN_MASK, fd_status); in sp7021_spi_host_irq()
A Dspi-cavium.c131 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/
A Dpio.c493 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/
A Dpm8001_init.c193 (pm8001_ha->memoryMap.region[i].total_len + in pm8001_free()
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()
425 pm8001_ha->memoryMap.region[FW_FLASH].total_len = 4096; in pm8001_alloc()
439 region->total_len, in pm8001_alloc()
[all …]
/drivers/nvme/target/
A Dio-cmd-file.c125 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()
/drivers/usb/core/
A Dconfig.c1039 int length, total_len, num, i, ssac; in usb_get_bos_descriptor() local
1058 total_len = le16_to_cpu(bos->wTotalLength); in usb_get_bos_descriptor()
1061 if (total_len < length) in usb_get_bos_descriptor()
1069 buffer = kzalloc(total_len, GFP_KERNEL); in usb_get_bos_descriptor()
1076 ret = usb_get_descriptor(dev, USB_DT_BOS, 0, buffer, total_len); in usb_get_bos_descriptor()
1077 if (ret < total_len) { in usb_get_bos_descriptor()
1085 total_len -= length; in usb_get_bos_descriptor()
1091 if (total_len < sizeof(*cap) || total_len < cap->bLength) { in usb_get_bos_descriptor()
1136 total_len -= length; in usb_get_bos_descriptor()
/drivers/net/ethernet/fungible/funcore/
A Dfun_queue.c236 u32 bufoff, total_len, remaining, fragsize, dataoff; in fun_data_from_rq() local
244 total_len = be32_to_cpu(dataop->total_len); in fun_data_from_rq()
252 total_len, DMA_FROM_DEVICE); in fun_data_from_rq()
259 data = kmalloc(total_len, GFP_ATOMIC); in fun_data_from_rq()
267 for (remaining = total_len; remaining; remaining -= fragsize) { in fun_data_from_rq()
/drivers/dma/ioat/
A Dprep.c109 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/media/common/siano/
A Dsmscoreapi.c1936 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()
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()
2063 u32 total_len; in smscore_gpio_get_level() local
2078 buffer = kmalloc(total_len + SMS_DMA_ALIGNMENT, in smscore_gpio_get_level()
[all …]
/drivers/dma/
A Dat_hdmac.c237 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()
1218 total_len += len; in atc_prep_dma_memset_sg()
1225 desc->total_len = total_len; in atc_prep_dma_memset_sg()
1329 total_len += len; in atc_prep_slave_sg()
1378 total_len += len; in atc_prep_slave_sg()
[all …]
A Dbcm2835-dma.c226 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/scsi/qla4xxx/
A Dql4_bsg.c207 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/usb/renesas_usbhs/
A Dfifo.c511 int total_len; in usbhsf_pio_try_push() local
538 total_len = len; in usbhsf_pio_try_push()
539 is_short = total_len < maxp; in usbhsf_pio_try_push()
549 buf += total_len - len; in usbhsf_pio_try_push()
564 pkt->actual += total_len; in usbhsf_pio_try_push()
661 int total_len = 0; in usbhsf_pio_try_pop() local
676 total_len = len; in usbhsf_pio_try_pop()
683 pkt->actual += total_len; in usbhsf_pio_try_pop()
686 (total_len < maxp)) { /* short packet */ in usbhsf_pio_try_pop()
720 buf += total_len - len; in usbhsf_pio_try_pop()
/drivers/hid/intel-ish-hid/
A Dishtp-hid-client.c73 size_t payload_len, total_len, cur_pos, raw_len, msg_len; in process_recv() local
84 total_len = data_len; in process_recv()
88 if (cur_pos + sizeof(struct hostif_msg) > total_len) { in process_recv()
103 total_len) { in process_recv()
319 if (!cur_pos && cur_pos + msg_len < total_len) in process_recv()
325 } while (cur_pos < total_len); in process_recv()

Completed in 81 milliseconds

123456