Home
last modified time | relevance | path

Searched refs:n_bytes (Results 1 – 25 of 27) sorted by relevance

12

/Linux-v4.19/drivers/usb/dwc2/
Dhcd_ddma.c110 qh->n_bytes = kcalloc(dwc2_max_desc_num(qh), sizeof(u32), flags); in dwc2_desc_list_alloc()
111 if (!qh->n_bytes) { in dwc2_desc_list_alloc()
140 kfree(qh->n_bytes); in dwc2_desc_list_free()
141 qh->n_bytes = NULL; in dwc2_desc_list_free()
553 qh->n_bytes[idx] = max_xfer_size; in dwc2_fill_host_isoc_dma_desc()
555 qh->n_bytes[idx] = frame_desc->length; in dwc2_fill_host_isoc_dma_desc()
558 dma_desc->status = qh->n_bytes[idx] << HOST_DMA_ISOC_NBYTES_SHIFT & in dwc2_fill_host_isoc_dma_desc()
715 qh->n_bytes[n_desc] = len; in dwc2_fill_host_dma_desc()
925 frame_desc->actual_length = qh->n_bytes[idx] - remain; in dwc2_cmpl_host_isoc_dma_desc()
929 frame_desc->actual_length = qh->n_bytes[idx] - remain; in dwc2_cmpl_host_isoc_dma_desc()
[all …]
Dhcd.h367 u32 *n_bytes; member
/Linux-v4.19/drivers/infiniband/hw/qib/
Dqib_debugfs.c107 u64 n_packets = 0, n_bytes = 0; in _opcode_stats_seq_show() local
115 n_bytes += dd->rcd[j]->opstats->stats[i].n_bytes; in _opcode_stats_seq_show()
117 if (!n_packets && !n_bytes) in _opcode_stats_seq_show()
121 (unsigned long long) n_bytes); in _opcode_stats_seq_show()
Dqib_verbs.h130 u64 n_bytes; /* total number of bytes */ member
/Linux-v4.19/drivers/spi/
Dspi-dw.c155 tx_left = (dws->tx_end - dws->tx) / dws->n_bytes; in tx_max()
167 / dws->n_bytes; in tx_max()
175 u32 rx_left = (dws->rx_end - dws->rx) / dws->n_bytes; in rx_max()
188 if (dws->n_bytes == 1) in dw_writer()
194 dws->tx += dws->n_bytes; in dw_writer()
207 if (dws->n_bytes == 1) in dw_reader()
212 dws->rx += dws->n_bytes; in dw_reader()
312 dws->n_bytes = 1; in dw_spi_transfer_one()
315 dws->n_bytes = 2; in dw_spi_transfer_one()
362 txlevel = min_t(u16, dws->fifo_len / 2, dws->len / dws->n_bytes); in dw_spi_transfer_one()
Dspi-rockchip.c189 u8 n_bytes; member
260 tx_left = (rs->tx_end - rs->tx) / rs->n_bytes; in tx_max()
268 u32 rx_left = (rs->rx_end - rs->rx) / rs->n_bytes; in rx_max()
355 if (rs->n_bytes == 1) in rockchip_spi_pio_writer()
361 rs->tx += rs->n_bytes; in rockchip_spi_pio_writer()
372 if (rs->n_bytes == 1) in rockchip_spi_pio_reader()
376 rs->rx += rs->n_bytes; in rockchip_spi_pio_reader()
457 rxconf.src_addr_width = rs->n_bytes; in rockchip_spi_prepare_dma()
479 txconf.dst_addr_width = rs->n_bytes; in rockchip_spi_prepare_dma()
530 cr0 |= (rs->n_bytes << CR0_DFS_OFFSET); in rockchip_spi_config()
[all …]
Dspi-pxa2xx.c472 u8 n_bytes = drv_data->n_bytes; in null_writer() local
479 drv_data->tx += n_bytes; in null_writer()
486 u8 n_bytes = drv_data->n_bytes; in null_reader() local
491 drv_data->rx += n_bytes; in null_reader()
666 switch (drv_data->n_bytes) { in interrupt_transfer()
955 drv_data->n_bytes = chip->n_bytes; in pxa2xx_spi_transfer_one()
970 drv_data->n_bytes = 1; in pxa2xx_spi_transfer_one()
976 drv_data->n_bytes = 2; in pxa2xx_spi_transfer_one()
982 drv_data->n_bytes = 4; in pxa2xx_spi_transfer_one()
1299 chip->n_bytes = 1; in setup()
[all …]
Dspi-pxa2xx.h57 u8 n_bytes; member
73 u8 n_bytes; member
Dspi-imx.c386 int n_bytes = spi_imx->slave_burst % sizeof(val); in mx53_ecspi_rx_slave() local
388 if (!n_bytes) in mx53_ecspi_rx_slave()
389 n_bytes = sizeof(val); in mx53_ecspi_rx_slave()
392 ((u8 *)&val) + sizeof(val) - n_bytes, n_bytes); in mx53_ecspi_rx_slave()
394 spi_imx->rx_buf += n_bytes; in mx53_ecspi_rx_slave()
395 spi_imx->slave_burst -= n_bytes; in mx53_ecspi_rx_slave()
404 int n_bytes = spi_imx->count % sizeof(val); in mx53_ecspi_tx_slave() local
406 if (!n_bytes) in mx53_ecspi_tx_slave()
407 n_bytes = sizeof(val); in mx53_ecspi_tx_slave()
410 memcpy(((u8 *)&val) + sizeof(val) - n_bytes, in mx53_ecspi_tx_slave()
[all …]
Dspi-pic32.c169 static u32 pic32_tx_max(struct pic32_spi *pic32s, int n_bytes) in pic32_tx_max() argument
173 tx_left = (pic32s->tx_end - pic32s->tx) / n_bytes; in pic32_tx_max()
185 (pic32s->tx_end - pic32s->tx)) / n_bytes; in pic32_tx_max()
190 static u32 pic32_rx_max(struct pic32_spi *pic32s, int n_bytes) in pic32_rx_max() argument
192 u32 rx_left = (pic32s->rx_end - pic32s->rx) / n_bytes; in pic32_rx_max()
Dspi-pl022.c430 u8 n_bytes; member
715 pl022->rx += (pl022->cur_chip->n_bytes); in readwriter()
737 pl022->tx += (pl022->cur_chip->n_bytes); in readwriter()
764 pl022->rx += (pl022->cur_chip->n_bytes); in readwriter()
1357 residue = pl022->cur_transfer->len % pl022->cur_chip->n_bytes; in set_up_next_transfer()
1363 pl022->cur_chip->n_bytes); in set_up_next_transfer()
1940 chip->n_bytes = 1; in pl022_setup()
1945 chip->n_bytes = 2; in pl022_setup()
1950 chip->n_bytes = 4; in pl022_setup()
Dspi-dw.h124 u8 n_bytes; /* current is a 1/2 bytes op */ member
Dspi-pxa2xx-dma.c84 switch (drv_data->n_bytes) { in pxa2xx_spi_dma_prepare_one()
/Linux-v4.19/drivers/infiniband/hw/hfi1/
Dfault.c89 u64 n_packets = 0, n_bytes = 0; in _fault_stats_seq_show() local
98 n_bytes += rcd->opstats->stats[i].n_bytes; in _fault_stats_seq_show()
107 n_bytes += sp->stats[i].n_bytes; in _fault_stats_seq_show()
109 if (!n_packets && !n_bytes) in _fault_stats_seq_show()
115 (unsigned long long)n_bytes, in _fault_stats_seq_show()
Ddebugfs.c136 u64 n_packets = 0, n_bytes = 0; in _opcode_stats_seq_show() local
145 n_bytes += rcd->opstats->stats[i].n_bytes; in _opcode_stats_seq_show()
149 return opcode_stats_show(s, i, n_packets, n_bytes); in _opcode_stats_seq_show()
175 u64 n_packets = 0, n_bytes = 0; in _tx_opcode_stats_seq_show() local
183 n_bytes += s->stats[i].n_bytes; in _tx_opcode_stats_seq_show()
185 return opcode_stats_show(s, i, n_packets, n_bytes); in _tx_opcode_stats_seq_show()
Dverbs.h187 u64 n_bytes; /* total number of bytes */ member
199 stats->n_bytes += tlen; in inc_opstats()
/Linux-v4.19/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Ducode_loader.h51 int brcms_ucode_init_uint(struct brcms_info *wl, size_t *n_bytes,
Dmac80211_if.c1600 int brcms_ucode_init_uint(struct brcms_info *wl, size_t *n_bytes, u32 idx) in brcms_ucode_init_uint() argument
1617 *n_bytes = le32_to_cpu(*((__le32 *) pdata)); in brcms_ucode_init_uint()
/Linux-v4.19/drivers/media/rc/
Dimon.c78 size_t n_bytes, loff_t *pos);
82 size_t n_bytes, loff_t *pos);
915 size_t n_bytes, loff_t *pos) in vfd_write() argument
939 if (n_bytes <= 0 || n_bytes > 32) { in vfd_write()
945 if (copy_from_user(ictx->tx.data_buf, buf, n_bytes)) { in vfd_write()
951 for (i = n_bytes; i < 32; ++i) in vfd_write()
985 return (!retval) ? n_bytes : retval; in vfd_write()
1002 size_t n_bytes, loff_t *pos) in lcd_write() argument
1021 if (n_bytes != 8) { in lcd_write()
1023 (int)n_bytes); in lcd_write()
[all …]
/Linux-v4.19/drivers/usb/gadget/udc/
Dbcm63xx_udc.c612 unsigned int n_bytes; in iudma_write() local
622 n_bytes = min_t(int, bytes_left, max_bd_bytes); in iudma_write()
623 if (n_bytes) in iudma_write()
624 dmaflags |= n_bytes << DMADESC_LENGTH_SHIFT; in iudma_write()
643 (n_bytes == bytes_left && !extra_zero_pkt)) { in iudma_write()
652 breq->offset += n_bytes; in iudma_write()
653 breq->bd_bytes += n_bytes; in iudma_write()
654 bytes_left -= n_bytes; in iudma_write()
/Linux-v4.19/drivers/usb/class/
Dusbtmc.c839 unsigned long int n_bytes; in usbtmc_write() local
888 n_bytes = roundup(USBTMC_HEADER_SIZE + this_part, 4); in usbtmc_write()
889 memset(buffer + USBTMC_HEADER_SIZE + this_part, 0, n_bytes - (USBTMC_HEADER_SIZE + this_part)); in usbtmc_write()
895 buffer, n_bytes, in usbtmc_write()
899 n_bytes -= actual; in usbtmc_write()
900 } while (n_bytes); in usbtmc_write()
/Linux-v4.19/drivers/media/platform/vimc/
Dvimc-debayer.c387 const unsigned int n_bytes) in vimc_deb_get_val() argument
392 for (i = 0; i < n_bytes; i++) in vimc_deb_get_val()
/Linux-v4.19/net/openvswitch/
Dmeter.c478 meter->stats.n_bytes += skb->len; in ovs_meter_execute()
515 band->stats.n_bytes += skb->len; in ovs_meter_execute()
/Linux-v4.19/include/uapi/linux/
Dopenvswitch.h304 __u64 n_bytes; /* Number of matched bytes. */ member
/Linux-v4.19/drivers/md/
Ddm-integrity.c610 size_t n_bytes = (size_t)(n_sections * ic->journal_section_sectors) << SECTOR_SHIFT; in xor_journal() local
624 atomic_add(roundup(pl_offset + n_bytes, PAGE_SIZE) >> PAGE_SHIFT, &comp->in_flight); in xor_journal()
646 this_step = min(n_bytes, (size_t)PAGE_SIZE - pl_offset); in xor_journal()
655 n_bytes -= this_step; in xor_journal()
656 } while (n_bytes); in xor_journal()

12