Searched refs:tx_buf (Results 1 - 25 of 410) sorted by relevance

1234567891011>>

/linux-master/drivers/net/ethernet/intel/ice/
H A Dice_txrx_lib.c269 * @tx_buf: Tx buffer to clean
273 ice_clean_xdp_tx_buf(struct device *dev, struct ice_tx_buf *tx_buf, argument
276 dma_unmap_single(dev, dma_unmap_addr(tx_buf, dma),
277 dma_unmap_len(tx_buf, len), DMA_TO_DEVICE);
278 dma_unmap_len_set(tx_buf, len, 0);
280 switch (tx_buf->type) {
282 page_frag_free(tx_buf->raw_buf);
285 xdp_return_frame_bulk(tx_buf->xdpf, bq);
289 tx_buf->type = ICE_TX_BUF_EMPTY;
309 idx = xdp_ring->tx_buf[nt
327 struct ice_tx_buf *tx_buf = &xdp_ring->tx_buf[ntc]; local
380 struct ice_tx_buf *tx_buf; local
493 struct ice_tx_buf *tx_buf = &xdp_ring->tx_buf[first_idx]; local
[all...]
H A Dice_txrx.c36 struct ice_tx_buf *tx_buf, *first; local
68 first = &tx_ring->tx_buf[i];
75 tx_buf = &tx_ring->tx_buf[i];
80 memset(tx_buf, 0, sizeof(*tx_buf));
81 dma_unmap_len_set(tx_buf, len, ICE_FDIR_MAX_RAW_PKT_SIZE);
82 dma_unmap_addr_set(tx_buf, dma, dma);
88 tx_buf->type = ICE_TX_BUF_DUMMY;
89 tx_buf
113 ice_unmap_and_free_tx_buf(struct ice_tx_ring *ring, struct ice_tx_buf *tx_buf) argument
224 struct ice_tx_buf *tx_buf; local
643 struct ice_tx_buf *tx_buf; local
1647 struct ice_tx_buf *tx_buf; local
2504 struct ice_tx_buf *tx_buf; local
[all...]
/linux-master/drivers/hid/intel-ish-hid/ishtp/
H A Dclient-buffers.c67 struct ishtp_cl_tx_ring *tx_buf; local
69 tx_buf = kzalloc(sizeof(struct ishtp_cl_tx_ring), GFP_KERNEL);
70 if (!tx_buf)
73 tx_buf->send_buf.data = kmalloc(len, GFP_KERNEL);
74 if (!tx_buf->send_buf.data) {
75 kfree(tx_buf);
80 list_add_tail(&tx_buf->list, &cl->tx_free_list.list);
132 struct ishtp_cl_tx_ring *tx_buf; local
138 tx_buf = list_entry(cl->tx_free_list.list.next,
140 list_del(&tx_buf
[all...]
/linux-master/drivers/net/wireless/ath/ath9k/
H A Dhif_usb.c255 struct tx_buf *tx_buf = urb->context; local
259 if (!tx_buf || !tx_buf->hif_dev)
262 hif_dev = tx_buf->hif_dev;
280 ath9k_skb_queue_purge(hif_dev, &tx_buf->skb_queue);
291 ath9k_skb_queue_complete(hif_dev, &tx_buf->skb_queue, txok);
294 tx_buf->len = tx_buf->offset = 0;
295 __skb_queue_head_init(&tx_buf
310 struct tx_buf *tx_buf = NULL; local
439 struct tx_buf *tx_buf = NULL, *tx_buf_tmp = NULL; local
808 struct tx_buf *tx_buf = NULL, *tx_buf_tmp = NULL; local
844 struct tx_buf *tx_buf; local
[all...]
/linux-master/drivers/spi/
H A Dspi-cavium.c39 const u8 *tx_buf; local
68 tx_buf = xfer->tx_buf;
74 if (tx_buf)
75 d = *tx_buf++;
83 mpi_tx.s.txnum = tx_buf ? OCTEON_SPI_MAX_BYTES : 0;
98 if (tx_buf)
99 d = *tx_buf++;
111 mpi_tx.s.txnum = tx_buf ? len : 0;
H A Dspi-realtek-rtl.c98 const void *tx_buf; local
101 tx_buf = xfer->tx_buf;
104 if (tx_buf) {
106 send4(rtspi, tx_buf);
107 tx_buf += 4;
111 send1(rtspi, tx_buf);
112 tx_buf++;
H A Dspi-loopback-test.c42 "is checked to match tx_buf after the spi_message " \
96 .tx_buf = TX(0),
110 .tx_buf = TX(PAGE_SIZE - 4),
123 .tx_buf = TX(0),
148 .tx_buf = TX(0),
152 .tx_buf = TX(SPI_TEST_MAX_SIZE_HALF),
165 .tx_buf = TX(64),
169 .tx_buf = TX(0),
183 .tx_buf = TX(0),
186 .tx_buf
712 u8 *tx_buf; local
[all...]
H A Dspi-clps711x.c30 u8 *tx_buf; member in struct:spi_clps711x_data
59 hw->tx_buf = (u8 *)xfer->tx_buf;
63 data = hw->tx_buf ? *hw->tx_buf++ : 0;
82 data = hw->tx_buf ? *hw->tx_buf++ : 0;
H A Dspi-xlp.c92 const u8 *tx_buf; /* tx data buffer */ member in struct:xlp_spi_priv
213 tx_data |= xspi->tx_buf[i] << (j * 8);
217 xspi->tx_buf += nbytes;
259 if (xspi->tx_buf)
270 const unsigned char *tx_buf,
276 xs->tx_buf = tx_buf;
278 xs->tx_len = (xs->tx_buf == NULL) ? 0 : xfer_len;
323 const unsigned char *tx_buf; local
325 tx_buf
269 xlp_spi_xfer_block(struct xlp_spi_priv *xs, const unsigned char *tx_buf, unsigned char *rx_buf, int xfer_len, int cmd_cont) argument
[all...]
/linux-master/drivers/char/tpm/st33zp24/
H A Dspi.c57 u8 tx_buf[ST33ZP24_SPI_BUFFER_SIZE]; member in struct:st33zp24_spi_phy
103 .tx_buf = phy->tx_buf,
108 phy->tx_buf[total_length++] = TPM_WRITE_DIRECTION | LOCALITY0;
109 phy->tx_buf[total_length++] = tpm_register;
112 phy->tx_buf[total_length++] = tpm_size >> 8;
113 phy->tx_buf[total_length++] = tpm_size;
116 memcpy(&phy->tx_buf[total_length], tpm_data, tpm_size);
119 memset(&phy->tx_buf[total_length], TPM_DUMMY_BYTE, phy->latency);
146 .tx_buf
[all...]
/linux-master/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_xdp.c31 struct bnxt_sw_tx_bd *tx_buf; local
45 tx_buf = &txr->tx_buf_ring[RING_TX(bp, prod)];
46 tx_buf->nr_frags = num_frags;
48 tx_buf->page = virt_to_head_page(xdp->data);
92 return tx_buf;
99 struct bnxt_sw_tx_bd *tx_buf; local
101 tx_buf = bnxt_xmit_bd(bp, txr, mapping, len, xdp);
102 tx_buf->rx_prod = rx_prod;
103 tx_buf->action = XDP_TX;
112 struct bnxt_sw_tx_bd *tx_buf; local
127 struct bnxt_sw_tx_bd *tx_buf; local
[all...]
/linux-master/drivers/mux/
H A Dadgs1408.c28 u8 tx_buf[2]; local
30 tx_buf[0] = reg_addr;
31 tx_buf[1] = reg_data;
33 return spi_write_then_read(spi, tx_buf, sizeof(tx_buf), NULL, 0);
/linux-master/drivers/gpu/drm/panel/
H A Dpanel-tpo-td028ttec1.c90 * noinline_for_stack so we don't get multiple copies of tx_buf
97 u16 tx_buf = JBT_COMMAND | reg; local
103 ret = spi_write(spi, (u8 *)&tx_buf, sizeof(tx_buf));
118 u16 tx_buf[2]; local
124 tx_buf[0] = JBT_COMMAND | reg;
125 tx_buf[1] = JBT_DATA | data;
127 ret = spi_write(spi, (u8 *)tx_buf, sizeof(tx_buf));
142 u16 tx_buf[ local
[all...]
/linux-master/drivers/input/rmi4/
H A Drmi_spi.c44 u8 *tx_buf; member in struct:rmi_spi_xport
75 rmi_spi->tx_buf = &rmi_spi->rx_buf[buf_size];
113 const struct rmi_spi_cmd *cmd, const u8 *tx_buf,
163 rmi_spi->tx_buf[0] = (addr >> 8);
164 rmi_spi->tx_buf[1] = addr & 0xFF;
167 rmi_spi->tx_buf[0] = (addr >> 8) | 0x80;
168 rmi_spi->tx_buf[1] = addr & 0xFF;
175 rmi_spi->tx_buf[0] = 0x40;
176 rmi_spi->tx_buf[1] = (addr >> 8) & 0xFF;
177 rmi_spi->tx_buf[
112 rmi_spi_xfer(struct rmi_spi_xport *rmi_spi, const struct rmi_spi_cmd *cmd, const u8 *tx_buf, int tx_len, u8 *rx_buf, int rx_len) argument
[all...]
/linux-master/drivers/net/ethernet/netronome/nfp/nfd3/
H A Drings.c48 struct nfp_nfd3_tx_buf *tx_buf; local
53 tx_buf = &tx_ring->txbufs[idx];
58 if (tx_buf->fidx == -1) {
60 dma_unmap_single(dp->dev, tx_buf->dma_addr,
64 frag = &skb_shinfo(skb)->frags[tx_buf->fidx];
65 dma_unmap_page(dp->dev, tx_buf->dma_addr,
70 if (tx_buf->fidx == nr_frags - 1)
73 tx_buf->dma_addr = 0;
74 tx_buf->skb = NULL;
75 tx_buf
[all...]
/linux-master/drivers/iio/adc/
H A Dti-adc108s102.c74 * tx_buf: |C0|C1|C2|C3|C4|C5|C6|C7|XX|
77 * tx_buf: 8 channel read commands, plus 1 dummy command
81 __be16 tx_buf[9] __aligned(IIO_DMA_MINALIGN);
120 * Fill in the first x shorts of tx_buf with the number of channels
125 st->tx_buf[cmds++] = cpu_to_be16(ADC108S102_CMD(bit));
128 st->tx_buf[cmds++] = 0x00;
131 st->ring_xfer.tx_buf = &st->tx_buf[0];
133 st->ring_xfer.len = cmds * sizeof(st->tx_buf[0]);
167 st->tx_buf[
[all...]
H A Dti-ads8344.c31 u8 tx_buf __aligned(IIO_DMA_MINALIGN);
82 adc->tx_buf = ADS8344_START;
84 adc->tx_buf |= ADS8344_SINGLE_END;
85 adc->tx_buf |= ADS8344_CHANNEL(channel);
86 adc->tx_buf |= ADS8344_CLOCK_INTERNAL;
88 ret = spi_write(spi, &adc->tx_buf, 1);
H A Dad7298.c53 __be16 tx_buf[2]; member in struct:ad7298_state
120 st->tx_buf[0] = cpu_to_be16(command);
123 st->ring_xfer[0].tx_buf = &st->tx_buf[0];
126 st->ring_xfer[1].tx_buf = &st->tx_buf[1];
169 st->tx_buf[0] = cpu_to_be16(AD7298_WRITE | st->ext_ref |
328 st->scan_single_xfer[0].tx_buf = &st->tx_buf[0];
331 st->scan_single_xfer[1].tx_buf
[all...]
H A Dti-adc0832.c39 u8 tx_buf[2] __aligned(IIO_DMA_MINALIGN);
140 .tx_buf = adc->tx_buf,
150 adc->tx_buf[0] = 1 << (adc->mux_bits + 1);
152 adc->tx_buf[0] |= differential ? 0 : (1 << adc->mux_bits);
154 adc->tx_buf[0] |= (channel % 2) << (adc->mux_bits - 1);
157 adc->tx_buf[0] |= channel / 2;
160 adc->tx_buf[0] <<= 1;
/linux-master/drivers/fpga/
H A Dlattice-sysconfig-spi.c14 const void *tx_buf, size_t tx_len,
19 return spi_write_then_read(spi, tx_buf, tx_len, rx_buf, rx_len);
39 xfer.tx_buf = buf;
64 .tx_buf = buf,
13 sysconfig_spi_cmd_transfer(struct sysconfig_priv *priv, const void *tx_buf, size_t tx_len, void *rx_buf, size_t rx_len) argument
H A Dlattice-sysconfig.h29 int (*command_transfer)(struct sysconfig_priv *priv, const void *tx_buf,
33 const char *tx_buf, size_t tx_len);
/linux-master/drivers/accel/ivpu/
H A Divpu_ipc.c70 struct ivpu_ipc_tx_buf *tx_buf; local
74 tx_buf_vpu_addr = gen_pool_alloc(ipc->mm_tx, sizeof(*tx_buf));
77 sizeof(*tx_buf));
81 tx_buf = ivpu_to_cpu_addr(ipc->mem_tx, tx_buf_vpu_addr);
82 if (drm_WARN_ON(&vdev->drm, !tx_buf)) {
83 gen_pool_free(ipc->mm_tx, tx_buf_vpu_addr, sizeof(*tx_buf));
89 if (tx_buf->ipc.status != IVPU_IPC_HDR_FREE)
93 if (tx_buf->jsm.status != VPU_JSM_MSG_FREE)
97 memset(tx_buf, 0, sizeof(*tx_buf));
[all...]
/linux-master/drivers/input/touchscreen/
H A Dwdt87xx_i2c.c222 u8 tx_buf[] = { 0x22, 0x00, 0x10, 0x0E, 0x23, 0x00 }; local
225 tx_buf[2] |= desc_idx & 0xF;
227 error = wdt87xx_i2c_xfer(client, tx_buf, sizeof(tx_buf),
248 u8 tx_buf[] = { 0x22, 0x00, 0x13, 0x0E, str_idx, 0x23, 0x00 }; local
256 error = wdt87xx_i2c_xfer(client, tx_buf, sizeof(tx_buf),
280 u8 tx_buf[8]; local
290 tx_buf[tx_len++] = 0x22;
291 tx_buf[tx_le
320 u8 tx_buf[PKT_WRITE_SIZE]; local
[all...]
/linux-master/sound/soc/sprd/
H A Dsprd-mcdt.h56 int sprd_mcdt_chan_write(struct sprd_mcdt_chan *chan, char *tx_buf, u32 size);
77 int sprd_mcdt_chan_write(struct sprd_mcdt_chan *chan, char *tx_buf, u32 size) argument
/linux-master/include/trace/events/
H A Dspi.h175 (xfer->tx_buf && xfer->tx_buf != msg->spi->controller->dummy_tx)
193 __dynamic_array(u8, tx_buf,
205 memcpy(__get_dynamic_array(tx_buf),
206 xfer->tx_buf, __get_dynamic_array_len(tx_buf));
216 __get_dynamic_array_len(tx_buf), __get_dynamic_array(tx_buf),

Completed in 389 milliseconds

1234567891011>>