Home
last modified time | relevance | path

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

/linux/drivers/spi/
H A Dspi-rockchip.c191 u8 n_bytes; member
310 if (rs->n_bytes == 1) in rockchip_spi_pio_writer()
316 rs->tx += rs->n_bytes; in rockchip_spi_pio_writer()
346 if (rs->n_bytes == 1) in rockchip_spi_pio_reader()
350 rs->rx += rs->n_bytes; in rockchip_spi_pio_reader()
388 rs->tx_left = rs->tx ? xfer->len / rs->n_bytes : 0; in rockchip_spi_prepare_irq()
389 rs->rx_left = xfer->len / rs->n_bytes; in rockchip_spi_prepare_irq()
467 .src_addr_width = rs->n_bytes, in rockchip_spi_prepare_dma()
468 .src_maxburst = rockchip_spi_calc_burst_size(xfer->len / rs->n_bytes), in rockchip_spi_prepare_dma()
489 .dst_addr_width = rs->n_bytes, in rockchip_spi_prepare_dma()
[all …]
H A Dspi-hisi-kunpeng.c136 u8 n_bytes; /* current is a 1/2/4 bytes op */ member
233 switch (hs->n_bytes) { in hisi_spi_reader()
244 hs->rx += hs->n_bytes; in hisi_spi_reader()
258 switch (hs->n_bytes) { in hisi_spi_writer()
269 hs->tx += hs->n_bytes; in hisi_spi_writer()
391 hs->n_bytes = hisi_spi_n_bytes(transfer); in hisi_spi_transfer_one()
393 hs->tx_len = transfer->len / hs->n_bytes; in hisi_spi_transfer_one()
H A Dspi-imx.c438 int n_bytes = spi_imx->target_burst % sizeof(val); in mx53_ecspi_rx_target() local
440 if (!n_bytes) in mx53_ecspi_rx_target()
441 n_bytes = sizeof(val); in mx53_ecspi_rx_target()
444 ((u8 *)&val) + sizeof(val) - n_bytes, n_bytes); in mx53_ecspi_rx_target()
446 spi_imx->rx_buf += n_bytes; in mx53_ecspi_rx_target()
447 spi_imx->target_burst -= n_bytes; in mx53_ecspi_rx_target()
456 int n_bytes = spi_imx->count % sizeof(val); in mx53_ecspi_tx_target() local
461 if (!n_bytes) in mx53_ecspi_tx_target()
462 n_bytes = sizeof(val); in mx53_ecspi_tx_target()
465 memcpy(((u8 *)&val) + sizeof(val) - n_bytes, in mx53_ecspi_tx_target()
[all …]
H A Dspi-pxa2xx.h68 u8 n_bytes; member
H A Dspi-pxa2xx-dma.c77 switch (drv_data->n_bytes) { in pxa2xx_spi_dma_prepare_one()
/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.c1418 ssize_t n_bytes; in vsock_do_ioctl() local
1431 n_bytes = vsock_stream_has_data(vsk); in vsock_do_ioctl()
1432 if (n_bytes < 0) { in vsock_do_ioctl()
1433 ret = n_bytes; in vsock_do_ioctl()
1436 ret = put_user(n_bytes, arg); in vsock_do_ioctl()
1440 ssize_t n_bytes; in vsock_do_ioctl() local
1452 n_bytes = vsk->transport->unsent_bytes(vsk); in vsock_do_ioctl()
1453 if (n_bytes < 0) { in vsock_do_ioctl()
1454 ret = n_bytes; in vsock_do_ioctl()
1458 ret = put_user(n_bytes, arg); in vsock_do_ioctl()
/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()
/linux/include/uapi/linux/
H A Dopenvswitch.h341 __u64 n_bytes; /* Number of matched bytes. */ member
/linux/drivers/md/
H A Ddm-integrity.c893 size_t n_bytes = (size_t)(n_sections * ic->journal_section_sectors) << SECTOR_SHIFT; in xor_journal() local
907 atomic_add(roundup(pl_offset + n_bytes, PAGE_SIZE) >> PAGE_SHIFT, &comp->in_flight); in xor_journal()
930 this_step = min(n_bytes, (size_t)PAGE_SIZE - pl_offset); in xor_journal()
939 n_bytes -= this_step; in xor_journal()
940 } while (n_bytes); in xor_journal()