Home
last modified time | relevance | path

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

/linux/drivers/spi/
H A Dspi-cadence.c128 u8 n_bytes; member
331 if (xspi->rxbuf && !IS_ALIGNED((uintptr_t)xspi->rxbuf, xspi->n_bytes)) { in cdns_spi_reader()
333 __func__, xspi->n_bytes); in cdns_spi_reader()
339 switch (xspi->n_bytes) { in cdns_spi_reader()
351 xspi->n_bytes); in cdns_spi_reader()
354 xspi->rxbuf = (u8 *)xspi->rxbuf + xspi->n_bytes; in cdns_spi_reader()
362 if (xspi->txbuf && !IS_ALIGNED((uintptr_t)xspi->txbuf, xspi->n_bytes)) { in cdns_spi_writer()
364 __func__, xspi->n_bytes); in cdns_spi_writer()
369 switch (xspi->n_bytes) { in cdns_spi_writer()
381 xspi->n_bytes); in cdns_spi_writer()
[all …]
H A Dspi-rockchip.c188 u8 n_bytes; member
307 if (rs->n_bytes == 1) in rockchip_spi_pio_writer()
313 rs->tx += rs->n_bytes; in rockchip_spi_pio_writer()
343 if (rs->n_bytes == 1) in rockchip_spi_pio_reader()
347 rs->rx += rs->n_bytes; in rockchip_spi_pio_reader()
386 rs->tx_left = rs->tx ? xfer->len / rs->n_bytes : 0; in rockchip_spi_prepare_irq()
387 rs->rx_left = xfer->len / rs->n_bytes; in rockchip_spi_prepare_irq()
465 .src_addr_width = rs->n_bytes, in rockchip_spi_prepare_dma()
466 .src_maxburst = rockchip_spi_calc_burst_size(xfer->len / rs->n_bytes), in rockchip_spi_prepare_dma()
487 .dst_addr_width = rs->n_bytes, in rockchip_spi_prepare_dma()
[all …]
H A Dspi-dw-core.c142 if (dws->n_bytes == 1) in dw_writer()
144 else if (dws->n_bytes == 2) in dw_writer()
149 dws->tx += dws->n_bytes; in dw_writer()
164 if (dws->n_bytes == 1) in dw_reader()
166 else if (dws->n_bytes == 2) in dw_reader()
171 dws->rx += dws->n_bytes; in dw_reader()
398 nbits = dws->n_bytes * BITS_PER_BYTE; in dw_spi_poll_transfer()
429 dws->n_bytes = spi_bpw_to_bytes(transfer->bits_per_word); in dw_spi_transfer_one()
431 dws->tx_len = transfer->len / dws->n_bytes; in dw_spi_transfer_one()
545 dws->n_bytes = 1; in dw_spi_init_mem_buf()
[all …]
H A Dspi-dw-dma.c231 static enum dma_slave_buswidth dw_spi_dma_convert_width(u8 n_bytes) in dw_spi_dma_convert_width() argument
233 switch (n_bytes) { in dw_spi_dma_convert_width()
254 dma_bus_width = dw_spi_dma_convert_width(dws->n_bytes); in dw_spi_can_dma()
296 delay.value = nents * dws->n_bytes * BITS_PER_BYTE; in dw_spi_dma_wait_tx_done()
333 txconf.dst_addr_width = dw_spi_dma_convert_width(dws->n_bytes); in dw_spi_dma_config_tx()
434 rxconf.src_addr_width = dw_spi_dma_convert_width(dws->n_bytes); in dw_spi_dma_config_rx()
H A Dspi-imx.c469 int n_bytes = spi_imx->target_burst % sizeof(val); in mx53_ecspi_rx_target() local
471 if (!n_bytes) in mx53_ecspi_rx_target()
472 n_bytes = sizeof(val); in mx53_ecspi_rx_target()
475 ((u8 *)&val) + sizeof(val) - n_bytes, n_bytes); in mx53_ecspi_rx_target()
477 spi_imx->rx_buf += n_bytes; in mx53_ecspi_rx_target()
478 spi_imx->target_burst -= n_bytes; in mx53_ecspi_rx_target()
487 int n_bytes = spi_imx->count % sizeof(val); in mx53_ecspi_tx_target() local
492 if (!n_bytes) in mx53_ecspi_tx_target()
493 n_bytes = sizeof(val); in mx53_ecspi_tx_target()
496 memcpy(((u8 *)&val) + sizeof(val) - n_bytes, in mx53_ecspi_tx_target()
[all …]
H A Dspi-pxa2xx.h68 u8 n_bytes; member
/linux/drivers/usb/dwc2/
H A Dhcd_ddma.c80 qh->n_bytes = kcalloc(dwc2_max_desc_num(qh), sizeof(u32), flags); in dwc2_desc_list_alloc()
81 if (!qh->n_bytes) { in dwc2_desc_list_alloc()
110 kfree(qh->n_bytes); in dwc2_desc_list_free()
111 qh->n_bytes = NULL; in dwc2_desc_list_free()
523 qh->n_bytes[idx] = max_xfer_size; in dwc2_fill_host_isoc_dma_desc()
525 qh->n_bytes[idx] = frame_desc->length; in dwc2_fill_host_isoc_dma_desc()
528 dma_desc->status = qh->n_bytes[idx] << HOST_DMA_ISOC_NBYTES_SHIFT & in dwc2_fill_host_isoc_dma_desc()
685 qh->n_bytes[n_desc] = len; in dwc2_fill_host_dma_desc()
902 frame_desc->actual_length = qh->n_bytes[idx] - remain; in dwc2_cmpl_host_isoc_dma_desc()
906 frame_desc->actual_length = qh->n_bytes[idx] - remain; in dwc2_cmpl_host_isoc_dma_desc()
[all …]
H A Dhcd.h341 u32 *n_bytes; member
/linux/drivers/infiniband/hw/hfi1/
H A Dfault.c47 u64 n_packets = 0, n_bytes = 0; in _fault_stats_seq_show() local
56 n_bytes += rcd->opstats->stats[i].n_bytes; in _fault_stats_seq_show()
65 n_bytes += sp->stats[i].n_bytes; in _fault_stats_seq_show()
67 if (!n_packets && !n_bytes) in _fault_stats_seq_show()
73 (unsigned long long)n_bytes, in _fault_stats_seq_show()
H A Ddebugfs.c66 u64 n_packets = 0, n_bytes = 0; in _opcode_stats_seq_show() local
75 n_bytes += rcd->opstats->stats[i].n_bytes; in _opcode_stats_seq_show()
79 return opcode_stats_show(s, i, n_packets, n_bytes); in _opcode_stats_seq_show()
105 u64 n_packets = 0, n_bytes = 0; in _tx_opcode_stats_seq_show() local
113 n_bytes += s->stats[i].n_bytes; in _tx_opcode_stats_seq_show()
115 return opcode_stats_show(s, i, n_packets, n_bytes); in _tx_opcode_stats_seq_show()
H A Dverbs.h209 u64 n_bytes; /* total number of bytes */ member
221 stats->n_bytes += tlen; in inc_opstats()
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
H A Ducode_loader.h51 int brcms_ucode_init_uint(struct brcms_info *wl, size_t *n_bytes,
H A Dmac80211_if.c1633 int brcms_ucode_init_uint(struct brcms_info *wl, size_t *n_bytes, u32 idx) in brcms_ucode_init_uint() argument
1650 *n_bytes = le32_to_cpu(*((__le32 *) pdata)); in brcms_ucode_init_uint()
/linux/net/vmw_vsock/
H A Daf_vsock.c1552 ssize_t n_bytes; in vsock_do_ioctl() local
1565 n_bytes = vsock_stream_has_data(vsk); in vsock_do_ioctl()
1566 if (n_bytes < 0) { in vsock_do_ioctl()
1567 ret = n_bytes; in vsock_do_ioctl()
1570 ret = put_user(n_bytes, arg); in vsock_do_ioctl()
1574 ssize_t n_bytes; in vsock_do_ioctl() local
1586 n_bytes = vsk->transport->unsent_bytes(vsk); in vsock_do_ioctl()
1587 if (n_bytes < 0) { in vsock_do_ioctl()
1588 ret = n_bytes; in vsock_do_ioctl()
1592 ret = put_user(n_bytes, arg); in vsock_do_ioctl()
/linux/drivers/usb/gadget/udc/
H A Dbcm63xx_udc.c610 unsigned int n_bytes; in iudma_write() local
620 n_bytes = min_t(int, bytes_left, max_bd_bytes); in iudma_write()
621 if (n_bytes) in iudma_write()
622 dmaflags |= n_bytes << DMADESC_LENGTH_SHIFT; in iudma_write()
641 (n_bytes == bytes_left && !extra_zero_pkt)) { in iudma_write()
650 breq->offset += n_bytes; in iudma_write()
651 breq->bd_bytes += n_bytes; in iudma_write()
652 bytes_left -= n_bytes; in iudma_write()
/linux/drivers/media/test-drivers/vimc/
H A Dvimc-debayer.c392 const unsigned int n_bytes) in vimc_debayer_get_val() argument
397 for (i = 0; i < n_bytes; i++) in vimc_debayer_get_val()
/linux/net/openvswitch/
H A Dmeter.c632 meter->stats.n_bytes += skb->len; in ovs_meter_execute()
669 band->stats.n_bytes += skb->len; in ovs_meter_execute()