/kernel/linux/linux-5.10/drivers/infiniband/hw/qib/ |
H A D | qib_debugfs.c | 98 u64 n_packets = 0, n_bytes = 0; in _opcode_stats_seq_show() local 106 n_bytes += dd->rcd[j]->opstats->stats[i].n_bytes; in _opcode_stats_seq_show() 108 if (!n_packets && !n_bytes) in _opcode_stats_seq_show() 112 (unsigned long long) n_bytes); in _opcode_stats_seq_show()
|
/kernel/linux/linux-6.6/drivers/infiniband/hw/qib/ |
H A D | qib_debugfs.c | 98 u64 n_packets = 0, n_bytes = 0; in _opcode_stats_seq_show() local 106 n_bytes += dd->rcd[j]->opstats->stats[i].n_bytes; in _opcode_stats_seq_show() 108 if (!n_packets && !n_bytes) in _opcode_stats_seq_show() 112 (unsigned long long) n_bytes); in _opcode_stats_seq_show()
|
/kernel/linux/linux-5.10/drivers/usb/dwc2/ |
H A D | hcd_ddma.c | 110 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[id in dwc2_cmpl_host_isoc_dma_desc() 1067 dwc2_update_non_isoc_urb_state_ddma(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, struct dwc2_qtd *qtd, struct dwc2_dma_desc *dma_desc, enum dwc2_halt_status halt_status, u32 n_bytes, int *xfer_done) dwc2_update_non_isoc_urb_state_ddma() argument 1159 u32 n_bytes; dwc2_process_non_isoc_desc() local [all...] |
/kernel/linux/linux-6.6/drivers/usb/dwc2/ |
H A D | hcd_ddma.c | 80 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() 895 frame_desc->actual_length = qh->n_bytes[idx] - remain; in dwc2_cmpl_host_isoc_dma_desc() 899 frame_desc->actual_length = qh->n_bytes[id in dwc2_cmpl_host_isoc_dma_desc() 1037 dwc2_update_non_isoc_urb_state_ddma(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, struct dwc2_qtd *qtd, struct dwc2_dma_desc *dma_desc, enum dwc2_halt_status halt_status, u32 n_bytes, int *xfer_done) dwc2_update_non_isoc_urb_state_ddma() argument 1129 u32 n_bytes; dwc2_process_non_isoc_desc() local [all...] |
/kernel/linux/linux-6.6/drivers/spi/ |
H A D | spi-rockchip.c | 192 u8 n_bytes; member 305 if (rs->n_bytes == 1) in rockchip_spi_pio_writer() 311 rs->tx += rs->n_bytes; in rockchip_spi_pio_writer() 341 if (rs->n_bytes == 1) in rockchip_spi_pio_reader() 345 rs->rx += rs->n_bytes; in rockchip_spi_pio_reader() 383 rs->tx_left = rs->tx ? xfer->len / rs->n_bytes : 0; in rockchip_spi_prepare_irq() 384 rs->rx_left = xfer->len / rs->n_bytes; in rockchip_spi_prepare_irq() 462 .src_addr_width = rs->n_bytes, in rockchip_spi_prepare_dma() 463 .src_maxburst = rockchip_spi_calc_burst_size(xfer->len / rs->n_bytes), in rockchip_spi_prepare_dma() 484 .dst_addr_width = rs->n_bytes, in rockchip_spi_prepare_dma() [all...] |
H A D | spi-hisi-kunpeng.c | 136 u8 n_bytes; /* current is a 1/2/4 bytes op */ member 235 switch (hs->n_bytes) { in hisi_spi_reader() 246 hs->rx += hs->n_bytes; in hisi_spi_reader() 260 switch (hs->n_bytes) { in hisi_spi_writer() 271 hs->tx += hs->n_bytes; in hisi_spi_writer() 393 hs->n_bytes = hisi_spi_n_bytes(transfer); in hisi_spi_transfer_one() 395 hs->tx_len = transfer->len / hs->n_bytes; in hisi_spi_transfer_one()
|
H A D | spi-dw-core.c | 140 if (dws->n_bytes == 1) in dw_writer() 142 else if (dws->n_bytes == 2) in dw_writer() 147 dws->tx += dws->n_bytes; in dw_writer() 162 if (dws->n_bytes == 1) in dw_reader() 164 else if (dws->n_bytes == 2) in dw_reader() 169 dws->rx += dws->n_bytes; in dw_reader() 393 nbits = dws->n_bytes * BITS_PER_BYTE; in dw_spi_poll_transfer() 424 dws->n_bytes = in dw_spi_transfer_one() 429 dws->tx_len = transfer->len / dws->n_bytes; in dw_spi_transfer_one() 532 dws->n_bytes in dw_spi_init_mem_buf() [all...] |
H A D | spi-dw-dma.c | 231 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 D | spi-pxa2xx.c | 491 u8 n_bytes = drv_data->n_bytes; in null_writer() local 498 drv_data->tx += n_bytes; in null_writer() 505 u8 n_bytes = drv_data->n_bytes; in null_reader() local 509 drv_data->rx += n_bytes; in null_reader() 694 switch (drv_data->n_bytes) { in interrupt_transfer() 995 drv_data->n_bytes = 1; in pxa2xx_spi_transfer_one() 999 drv_data->n_bytes = 2; in pxa2xx_spi_transfer_one() 1003 drv_data->n_bytes in pxa2xx_spi_transfer_one() [all...] |
H A D | spi-imx.c | 413 int n_bytes = spi_imx->target_burst % sizeof(val); in mx53_ecspi_rx_target() local 415 if (!n_bytes) in mx53_ecspi_rx_target() 416 n_bytes = sizeof(val); in mx53_ecspi_rx_target() 419 ((u8 *)&val) + sizeof(val) - n_bytes, n_bytes); in mx53_ecspi_rx_target() 421 spi_imx->rx_buf += n_bytes; in mx53_ecspi_rx_target() 422 spi_imx->target_burst -= n_bytes; in mx53_ecspi_rx_target() 431 int n_bytes = spi_imx->count % sizeof(val); in mx53_ecspi_tx_target() local 433 if (!n_bytes) in mx53_ecspi_tx_target() 434 n_bytes in mx53_ecspi_tx_target() [all...] |
/kernel/linux/linux-5.10/drivers/spi/ |
H A D | spi-rockchip.c | 185 u8 n_bytes; member 281 if (rs->n_bytes == 1) in rockchip_spi_pio_writer() 287 rs->tx += rs->n_bytes; in rockchip_spi_pio_writer() 317 if (rs->n_bytes == 1) in rockchip_spi_pio_reader() 321 rs->rx += rs->n_bytes; in rockchip_spi_pio_reader() 348 rs->tx_left = rs->tx ? xfer->len / rs->n_bytes : 0; in rockchip_spi_prepare_irq() 349 rs->rx_left = xfer->len / rs->n_bytes; in rockchip_spi_prepare_irq() 415 .src_addr_width = rs->n_bytes, in rockchip_spi_prepare_dma() 417 rs->n_bytes), in rockchip_spi_prepare_dma() 438 .dst_addr_width = rs->n_bytes, in rockchip_spi_prepare_dma() [all...] |
H A D | spi-dw-dma.c | 197 static enum dma_slave_buswidth dw_spi_dma_convert_width(u8 n_bytes) in dw_spi_dma_convert_width() argument 199 if (n_bytes == 1) in dw_spi_dma_convert_width() 201 else if (n_bytes == 2) in dw_spi_dma_convert_width() 244 delay.value = nents * dws->n_bytes * BITS_PER_BYTE; in dw_spi_dma_wait_tx_done() 281 txconf.dst_addr_width = dw_spi_dma_convert_width(dws->n_bytes); in dw_spi_dma_config_tx() 382 rxconf.src_addr_width = dw_spi_dma_convert_width(dws->n_bytes); in dw_spi_dma_config_rx()
|
H A D | spi-dw-core.c | 144 if (dws->n_bytes == 1) in dw_writer() 149 dws->tx += dws->n_bytes; in dw_writer() 164 if (dws->n_bytes == 1) in dw_reader() 169 dws->rx += dws->n_bytes; in dw_reader() 385 nbits = dws->n_bytes * BITS_PER_BYTE; in dw_spi_poll_transfer() 415 dws->n_bytes = DIV_ROUND_UP(transfer->bits_per_word, BITS_PER_BYTE); in dw_spi_transfer_one() 417 dws->tx_len = transfer->len / dws->n_bytes; in dw_spi_transfer_one() 520 dws->n_bytes = 1; in dw_spi_init_mem_buf() 614 ns *= dws->n_bytes * BITS_PER_BYTE; in dw_spi_wait_mem_op_done()
|
H A D | spi-pxa2xx.h | 54 u8 n_bytes; member 73 u8 n_bytes; member
|
H A D | spi-pxa2xx.c | 505 u8 n_bytes = drv_data->n_bytes; in null_writer() local 512 drv_data->tx += n_bytes; in null_writer() 519 u8 n_bytes = drv_data->n_bytes; in null_reader() local 524 drv_data->rx += n_bytes; in null_reader() 703 switch (drv_data->n_bytes) { in interrupt_transfer() 997 drv_data->n_bytes = chip->n_bytes; in pxa2xx_spi_transfer_one() 1012 drv_data->n_bytes in pxa2xx_spi_transfer_one() [all...] |
H A D | spi-imx.c | 403 int n_bytes = spi_imx->slave_burst % sizeof(val); in mx53_ecspi_rx_slave() local 405 if (!n_bytes) in mx53_ecspi_rx_slave() 406 n_bytes = sizeof(val); in mx53_ecspi_rx_slave() 409 ((u8 *)&val) + sizeof(val) - n_bytes, n_bytes); in mx53_ecspi_rx_slave() 411 spi_imx->rx_buf += n_bytes; in mx53_ecspi_rx_slave() 412 spi_imx->slave_burst -= n_bytes; in mx53_ecspi_rx_slave() 421 int n_bytes = spi_imx->count % sizeof(val); in mx53_ecspi_tx_slave() local 423 if (!n_bytes) in mx53_ecspi_tx_slave() 424 n_bytes in mx53_ecspi_tx_slave() [all...] |
H A D | spi-pic32.c | 161 static u32 pic32_tx_max(struct pic32_spi *pic32s, int n_bytes) in pic32_tx_max() argument 165 tx_left = (pic32s->tx_end - pic32s->tx) / n_bytes; in pic32_tx_max() 177 (pic32s->tx_end - pic32s->tx)) / n_bytes; in pic32_tx_max() 182 static u32 pic32_rx_max(struct pic32_spi *pic32s, int n_bytes) in pic32_rx_max() argument 184 u32 rx_left = (pic32s->rx_end - pic32s->rx) / n_bytes; in pic32_rx_max()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/ |
H A D | fault.c | 89 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()
|
H A D | debugfs.c | 136 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()
|
/kernel/linux/linux-6.6/drivers/infiniband/hw/hfi1/ |
H A D | fault.c | 47 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 D | debugfs.c | 94 u64 n_packets = 0, n_bytes = 0; in _opcode_stats_seq_show() local 103 n_bytes += rcd->opstats->stats[i].n_bytes; in _opcode_stats_seq_show() 107 return opcode_stats_show(s, i, n_packets, n_bytes); in _opcode_stats_seq_show() 133 u64 n_packets = 0, n_bytes = 0; in _tx_opcode_stats_seq_show() local 141 n_bytes += s->stats[i].n_bytes; in _tx_opcode_stats_seq_show() 143 return opcode_stats_show(s, i, n_packets, n_bytes); in _tx_opcode_stats_seq_show()
|
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
H A D | ucode_loader.h | 51 int brcms_ucode_init_uint(struct brcms_info *wl, size_t *n_bytes,
|
/kernel/linux/linux-6.6/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
H A D | ucode_loader.h | 51 int brcms_ucode_init_uint(struct brcms_info *wl, size_t *n_bytes,
|
/kernel/linux/linux-5.10/drivers/media/rc/ |
H A D | imon.c | 69 size_t n_bytes, loff_t *pos); 73 size_t n_bytes, loff_t *pos); 947 size_t n_bytes, loff_t *pos) in vfd_write() 969 if (n_bytes <= 0 || n_bytes > 32) { in vfd_write() 975 if (copy_from_user(ictx->tx.data_buf, buf, n_bytes)) { in vfd_write() 981 for (i = n_bytes; i < 32; ++i) in vfd_write() 1015 return (!retval) ? n_bytes : retval; in vfd_write() 1032 size_t n_bytes, loff_t *pos) in lcd_write() 1048 if (n_bytes ! in lcd_write() 946 vfd_write(struct file *file, const char __user *buf, size_t n_bytes, loff_t *pos) vfd_write() argument 1031 lcd_write(struct file *file, const char __user *buf, size_t n_bytes, loff_t *pos) lcd_write() argument [all...] |
/kernel/linux/linux-6.6/drivers/media/rc/ |
H A D | imon.c | 69 size_t n_bytes, loff_t *pos); 73 size_t n_bytes, loff_t *pos); 942 size_t n_bytes, loff_t *pos) in vfd_write() 964 if (n_bytes <= 0 || n_bytes > 32) { in vfd_write() 970 if (copy_from_user(ictx->tx.data_buf, buf, n_bytes)) { in vfd_write() 976 for (i = n_bytes; i < 32; ++i) in vfd_write() 1010 return (!retval) ? n_bytes : retval; in vfd_write() 1027 size_t n_bytes, loff_t *pos) in lcd_write() 1043 if (n_bytes ! in lcd_write() 941 vfd_write(struct file *file, const char __user *buf, size_t n_bytes, loff_t *pos) vfd_write() argument 1026 lcd_write(struct file *file, const char __user *buf, size_t n_bytes, loff_t *pos) lcd_write() argument [all...] |