Searched refs:n_bytes (Results 1 - 25 of 29) sorted by relevance

12

/linux-master/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
H A Ducode_loader.h51 int brcms_ucode_init_uint(struct brcms_info *wl, size_t *n_bytes,
/linux-master/drivers/infiniband/hw/hfi1/
H A Dfault.c47 u64 n_packets = 0, n_bytes = 0; local
56 n_bytes += rcd->opstats->stats[i].n_bytes;
65 n_bytes += sp->stats[i].n_bytes;
67 if (!n_packets && !n_bytes)
73 (unsigned long long)n_bytes,
H A Ddebugfs.c94 u64 n_packets = 0, n_bytes = 0; local
103 n_bytes += rcd->opstats->stats[i].n_bytes;
107 return opcode_stats_show(s, i, n_packets, n_bytes);
133 u64 n_packets = 0, n_bytes = 0; local
141 n_bytes += s->stats[i].n_bytes;
143 return opcode_stats_show(s, i, n_packets, n_bytes);
H A Dverbs.h209 u64 n_bytes; /* total number of bytes */ member in struct:hfi1_opcode_stats
221 stats->n_bytes += tlen;
/linux-master/drivers/infiniband/hw/qib/
H A Dqib_debugfs.c98 u64 n_packets = 0, n_bytes = 0; local
106 n_bytes += dd->rcd[j]->opstats->stats[i].n_bytes;
108 if (!n_packets && !n_bytes)
112 (unsigned long long) n_bytes);
H A Dqib_verbs.h130 u64 n_bytes; /* total number of bytes */ member in struct:qib_opcode_stats
/linux-master/drivers/usb/dwc2/
H A Dhcd_ddma.c80 qh->n_bytes = kcalloc(dwc2_max_desc_num(qh), sizeof(u32), flags);
81 if (!qh->n_bytes) {
110 kfree(qh->n_bytes);
111 qh->n_bytes = NULL;
523 qh->n_bytes[idx] = max_xfer_size;
525 qh->n_bytes[idx] = frame_desc->length;
528 dma_desc->status = qh->n_bytes[idx] << HOST_DMA_ISOC_NBYTES_SHIFT &
685 qh->n_bytes[n_desc] = len;
902 frame_desc->actual_length = qh->n_bytes[idx] - remain;
906 frame_desc->actual_length = qh->n_bytes[id
1044 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) argument
1136 u32 n_bytes; local
[all...]
H A Dhcd.h291 * @n_bytes: Xfer Bytes array. Each element corresponds to a transfer
341 u32 *n_bytes; member in struct:dwc2_qh
/linux-master/drivers/spi/
H A Dspi-rockchip.c191 u8 n_bytes; member in struct:rockchip_spi
296 if (rs->n_bytes == 1)
302 rs->tx += rs->n_bytes;
332 if (rs->n_bytes == 1)
336 rs->rx += rs->n_bytes;
374 rs->tx_left = rs->tx ? xfer->len / rs->n_bytes : 0;
375 rs->rx_left = xfer->len / rs->n_bytes;
453 .src_addr_width = rs->n_bytes,
454 .src_maxburst = rockchip_spi_calc_burst_size(xfer->len / rs->n_bytes),
475 .dst_addr_width = rs->n_bytes,
[all...]
H A Dspi-hisi-kunpeng.c136 u8 n_bytes; /* current is a 1/2/4 bytes op */ member in struct:hisi_spi
235 switch (hs->n_bytes) {
246 hs->rx += hs->n_bytes;
260 switch (hs->n_bytes) {
271 hs->tx += hs->n_bytes;
393 hs->n_bytes = hisi_spi_n_bytes(transfer);
395 hs->tx_len = transfer->len / hs->n_bytes;
H A Dspi-dw-core.c140 if (dws->n_bytes == 1)
142 else if (dws->n_bytes == 2)
147 dws->tx += dws->n_bytes;
162 if (dws->n_bytes == 1)
164 else if (dws->n_bytes == 2)
169 dws->rx += dws->n_bytes;
393 nbits = dws->n_bytes * BITS_PER_BYTE;
424 dws->n_bytes =
429 dws->tx_len = transfer->len / dws->n_bytes;
532 dws->n_bytes
[all...]
H A Dspi-dw-dma.c231 static enum dma_slave_buswidth dw_spi_dma_convert_width(u8 n_bytes) argument
233 switch (n_bytes) {
254 dma_bus_width = dw_spi_dma_convert_width(dws->n_bytes);
296 delay.value = nents * dws->n_bytes * BITS_PER_BYTE;
333 txconf.dst_addr_width = dw_spi_dma_convert_width(dws->n_bytes);
434 rxconf.src_addr_width = dw_spi_dma_convert_width(dws->n_bytes);
H A Dspi-pxa2xx.h48 u8 n_bytes; member in struct:driver_data
H A Dspi-imx.c413 int n_bytes = spi_imx->target_burst % sizeof(val); local
415 if (!n_bytes)
416 n_bytes = sizeof(val);
419 ((u8 *)&val) + sizeof(val) - n_bytes, n_bytes);
421 spi_imx->rx_buf += n_bytes;
422 spi_imx->target_burst -= n_bytes;
431 int n_bytes = spi_imx->count % sizeof(val); local
433 if (!n_bytes)
434 n_bytes
[all...]
H A Dspi-pxa2xx.c491 u8 n_bytes = drv_data->n_bytes; local
498 drv_data->tx += n_bytes;
505 u8 n_bytes = drv_data->n_bytes; local
509 drv_data->rx += n_bytes;
694 switch (drv_data->n_bytes) {
995 drv_data->n_bytes = 1;
999 drv_data->n_bytes = 2;
1003 drv_data->n_bytes
[all...]
H A Dspi-pl022.c398 * @n_bytes: how many bytes(power of 2) reqd for a given data width of client
412 u8 n_bytes; member in struct:chip_data
619 pl022->rx += (pl022->cur_chip->n_bytes);
641 pl022->tx += (pl022->cur_chip->n_bytes);
668 pl022->rx += (pl022->cur_chip->n_bytes);
1220 residue = pl022->cur_transfer->len % pl022->cur_chip->n_bytes;
1226 pl022->cur_chip->n_bytes);
1699 chip->n_bytes = 1;
1704 chip->n_bytes = 2;
1709 chip->n_bytes
[all...]
H A Dspi-pic32.c161 static u32 pic32_tx_max(struct pic32_spi *pic32s, int n_bytes) argument
165 tx_left = (pic32s->tx_end - pic32s->tx) / n_bytes;
177 (pic32s->tx_end - pic32s->tx)) / n_bytes;
182 static u32 pic32_rx_max(struct pic32_spi *pic32s, int n_bytes) argument
184 u32 rx_left = (pic32s->rx_end - pic32s->rx) / n_bytes;
H A Dspi-pxa2xx-dma.c74 switch (drv_data->n_bytes) {
H A Dspi-dw.h178 u8 n_bytes; /* current is a 1/2 bytes op */ member in struct:dw_spi
H A Dspi-qcom-qspi.c305 uint32_t n_bytes)
326 virt_cmd_desc->length = n_bytes;
304 qcom_qspi_alloc_desc(struct qcom_qspi *ctrl, dma_addr_t dma_ptr, uint32_t n_bytes) argument
/linux-master/drivers/media/rc/
H A Dimon.c69 size_t n_bytes, loff_t *pos);
73 size_t n_bytes, loff_t *pos);
942 size_t n_bytes, loff_t *pos)
964 if (n_bytes <= 0 || n_bytes > 32) {
970 if (copy_from_user(ictx->tx.data_buf, buf, n_bytes)) {
976 for (i = n_bytes; i < 32; ++i)
1010 return (!retval) ? n_bytes : retval;
1027 size_t n_bytes, loff_t *pos)
1043 if (n_bytes !
941 vfd_write(struct file *file, const char __user *buf, size_t n_bytes, loff_t *pos) argument
1026 lcd_write(struct file *file, const char __user *buf, size_t n_bytes, loff_t *pos) argument
[all...]
/linux-master/drivers/usb/gadget/udc/
H A Dbcm63xx_udc.c610 unsigned int n_bytes; local
620 n_bytes = min_t(int, bytes_left, max_bd_bytes);
621 if (n_bytes)
622 dmaflags |= n_bytes << DMADESC_LENGTH_SHIFT;
641 (n_bytes == bytes_left && !extra_zero_pkt)) {
650 breq->offset += n_bytes;
651 breq->bd_bytes += n_bytes;
652 bytes_left -= n_bytes;
/linux-master/net/openvswitch/
H A Dmeter.c632 meter->stats.n_bytes += skb->len;
669 band->stats.n_bytes += skb->len;
/linux-master/drivers/media/test-drivers/vimc/
H A Dvimc-debayer.c402 const unsigned int n_bytes)
407 for (i = 0; i < n_bytes; i++)
401 vimc_debayer_get_val(const u8 *bytes, const unsigned int n_bytes) argument
/linux-master/include/uapi/linux/
H A Dopenvswitch.h335 __u64 n_bytes; /* Number of matched bytes. */ member in struct:ovs_flow_stats

Completed in 287 milliseconds

12