Searched refs:tx_buf (Results 26 - 50 of 410) sorted by relevance

1234567891011>>

/linux-master/drivers/net/ethernet/intel/idpf/
H A Didpf_singleq_txrx.c194 struct idpf_tx_buf *tx_buf = first; local
223 dma_unmap_len_set(tx_buf, len, size);
224 dma_unmap_addr_set(tx_buf, dma, dma);
272 tx_buf = &tx_q->tx_buf[i];
307 memset(&txq->tx_buf[ntu], 0, sizeof(struct idpf_tx_buf));
308 txq->tx_buf[ntu].ctx_entry = true;
393 first = &tx_q->tx_buf[tx_q->next_to_use];
453 struct idpf_tx_buf *tx_buf; local
459 tx_buf
[all...]
H A Didpf_txrx.c61 * @tx_buf: the buffer to free
63 static void idpf_tx_buf_rel(struct idpf_queue *tx_q, struct idpf_tx_buf *tx_buf) argument
65 if (tx_buf->skb) {
66 if (dma_unmap_len(tx_buf, len))
68 dma_unmap_addr(tx_buf, dma),
69 dma_unmap_len(tx_buf, len),
71 dev_kfree_skb_any(tx_buf->skb);
72 } else if (dma_unmap_len(tx_buf, len)) {
74 dma_unmap_addr(tx_buf, dma),
75 dma_unmap_len(tx_buf, le
1477 idpf_tx_splitq_clean_hdr(struct idpf_queue *tx_q, struct idpf_tx_buf *tx_buf, struct idpf_cleaned_stats *cleaned, int napi_budget) argument
1545 idpf_stash_flow_sch_buffers(struct idpf_queue *txq, struct idpf_tx_buf *tx_buf) argument
1618 struct idpf_tx_buf *tx_buf; local
1711 struct idpf_tx_buf *tx_buf = NULL; local
2128 struct idpf_tx_buf *tx_buf; local
2190 struct idpf_tx_buf *tx_buf; local
[all...]
/linux-master/drivers/media/rc/
H A Dir-spi.c25 u16 tx_buf[IR_SPI_MAX_BUFSIZE]; member in struct:ir_spi_data
61 idata->tx_buf[len++] = val;
67 xfer.len = len * sizeof(*idata->tx_buf);
68 xfer.tx_buf = idata->tx_buf;
/linux-master/drivers/iio/accel/
H A Dbma220_spi.c70 u8 tx_buf[2] __aligned(IIO_DMA_MINALIGN);
99 data->tx_buf[0] = BMA220_REG_ACCEL_X | BMA220_READ_MASK;
100 ret = spi_write_then_read(spi, data->tx_buf, 1, &data->scan.chans,
164 data->tx_buf[0] = BMA220_REG_RANGE;
165 data->tx_buf[1] = index;
166 ret = spi_write(data->spi_device, data->tx_buf,
167 sizeof(data->tx_buf));
H A Dadxl367_spi.c69 st->reg_write_xfer[1].tx_buf = val_buf;
106 st->reg_write_xfer[0].tx_buf = st->reg_write_tx_buf;
117 st->reg_read_xfer[0].tx_buf = st->reg_read_tx_buf;
128 st->fifo_xfer[0].tx_buf = st->fifo_tx_buf;
/linux-master/drivers/input/rmi4/
H A Drmi_i2c.c25 * @tx_buf: Buffer used for transmitting data to the sensor over i2c.
38 u8 *tx_buf; member in struct:rmi_i2c_xport
90 if (!rmi_i2c->tx_buf || rmi_i2c->tx_buf_size < tx_size) {
91 if (rmi_i2c->tx_buf)
92 devm_kfree(&client->dev, rmi_i2c->tx_buf);
94 rmi_i2c->tx_buf = devm_kzalloc(&client->dev,
97 if (!rmi_i2c->tx_buf) {
104 rmi_i2c->tx_buf[0] = addr & 0xff;
105 memcpy(rmi_i2c->tx_buf + 1, buf, len);
113 retval = i2c_master_send(client, rmi_i2c->tx_buf, tx_siz
[all...]
/linux-master/drivers/nfc/st95hf/
H A Dspi.c21 .tx_buf = buffertx,
77 {.tx_buf = &readdata_cmd, .len = 1,},
134 {.tx_buf = &readdata_cmd, .len = 1,},
/linux-master/drivers/net/ethernet/qualcomm/
H A Dqca_7k.c44 transfer[0].tx_buf = &tx_data;
84 transfer[0].tx_buf = &tx_data[0];
86 transfer[1].tx_buf = &tx_data[1];
/linux-master/drivers/spi/
H A Dspi-sh-msiof.c393 const void *tx_buf, void *rx_buf,
398 if (tx_buf || (p->ctlr->flags & SPI_CONTROLLER_MUST_TX))
414 const void *tx_buf, int words, int fs)
416 const u8 *buf_8 = tx_buf;
424 const void *tx_buf, int words, int fs)
426 const u16 *buf_16 = tx_buf;
434 const void *tx_buf, int words, int fs)
436 const u16 *buf_16 = tx_buf;
444 const void *tx_buf, int words, int fs)
446 const u32 *buf_32 = tx_buf;
392 sh_msiof_spi_set_mode_regs(struct sh_msiof_spi_priv *p, const void *tx_buf, void *rx_buf, u32 bits, u32 words) argument
413 sh_msiof_spi_write_fifo_8(struct sh_msiof_spi_priv *p, const void *tx_buf, int words, int fs) argument
423 sh_msiof_spi_write_fifo_16(struct sh_msiof_spi_priv *p, const void *tx_buf, int words, int fs) argument
433 sh_msiof_spi_write_fifo_16u(struct sh_msiof_spi_priv *p, const void *tx_buf, int words, int fs) argument
443 sh_msiof_spi_write_fifo_32(struct sh_msiof_spi_priv *p, const void *tx_buf, int words, int fs) argument
453 sh_msiof_spi_write_fifo_32u(struct sh_msiof_spi_priv *p, const void *tx_buf, int words, int fs) argument
463 sh_msiof_spi_write_fifo_s32(struct sh_msiof_spi_priv *p, const void *tx_buf, int words, int fs) argument
473 sh_msiof_spi_write_fifo_s32u(struct sh_msiof_spi_priv *p, const void *tx_buf, int words, int fs) argument
673 sh_msiof_spi_txrx_once(struct sh_msiof_spi_priv *p, void (*tx_fifo)(struct sh_msiof_spi_priv *, const void *, int, int), void (*rx_fifo)(struct sh_msiof_spi_priv *, void *, int, int), const void *tx_buf, void *rx_buf, int words, int bits) argument
917 const void *tx_buf = t->tx_buf; local
[all...]
H A Dspi-armada-3700.c108 const u8 *tx_buf; member in struct:a3700_spi
429 a3700_spi->tx_buf = xfer->tx_buf;
456 if (a3700_spi->tx_buf) {
477 val = (val << 8) | a3700_spi->tx_buf[0];
478 a3700_spi->tx_buf++;
498 val = *(u32 *)a3700_spi->tx_buf;
501 a3700_spi->tx_buf += 4;
606 if (xfer->tx_buf)
633 } else if (xfer->tx_buf) {
[all...]
H A Dspi-ar934x.c89 const u8 *tx_buf; local
121 if (t->tx_buf) {
122 tx_buf = t->tx_buf + trx_done;
123 reg = tx_buf[0];
125 reg = reg << 8 | tx_buf[i];
H A Dspi-npcm-pspi.c29 const u8 *tx_buf; member in struct:npcm_pspi
164 priv->tx_buf = t->tx_buf;
203 if (!priv->tx_buf)
208 val = *priv->tx_buf++;
212 val = *priv->tx_buf++;
213 val = *priv->tx_buf++ | (val << 8);
301 if (!priv->tx_buf && !priv->rx_buf)
304 if (priv->tx_buf) {
333 if (((stat & NPCM_PSPI_STAT_BSY) == 0) && !priv->tx_buf)
[all...]
H A Dspi-orion.c383 const u8 **tx_buf, u8 **rx_buf)
403 if (tx_buf && *tx_buf)
404 writel(*(*tx_buf)++, tx_reg);
432 const u16 **tx_buf, u16 **rx_buf)
450 if (tx_buf && *tx_buf)
451 writel(__cpu_to_le16(get_unaligned((*tx_buf)++)), tx_reg);
487 if (vaddr && xfer->tx_buf && word_len == 8 && (spi->mode & SPI_CS_WORD) == 0) {
495 iowrite32_rep(vaddr, xfer->tx_buf, cn
382 orion_spi_write_read_8bit(struct spi_device *spi, const u8 **tx_buf, u8 **rx_buf) argument
431 orion_spi_write_read_16bit(struct spi_device *spi, const u16 **tx_buf, u16 **rx_buf) argument
[all...]
H A Dspi-mpc52xx.c91 const u8 *tx_buf; member in struct:mpc52xx_spi
120 ms->tx_buf = ms->transfer->tx_buf;
130 if (ms->tx_buf)
131 out_8(ms->regs + SPI_DATA, *ms->tx_buf++);
233 if (ms->tx_buf)
234 data = *(ms->tx_buf - 1);
266 if (ms->tx_buf)
267 out_8(ms->regs + SPI_DATA, *ms->tx_buf++);
H A Dspi-rb4xx.c102 const u8 *tx_buf; local
117 tx_buf = t->tx_buf;
122 do_spi_byte_two(rbspi, spi_ioc, tx_buf[i]);
124 do_spi_byte(rbspi, spi_ioc, tx_buf[i]);
/linux-master/drivers/base/regmap/
H A Dregmap-spi.c43 struct spi_transfer t[2] = { { .tx_buf = reg, .len = reg_len, },
44 { .tx_buf = val, .len = val_len, }, };
64 async->t[0].tx_buf = reg;
66 async->t[1].tx_buf = val;
/linux-master/drivers/video/fbdev/omap2/omapfb/displays/
H A Dpanel-tpo-td028ttec1.c57 u16 tx_buf = JBT_COMMAND | reg; local
59 rc = spi_write(ddata->spi_dev, (u8 *)&tx_buf,
71 u16 tx_buf[2]; local
73 tx_buf[0] = JBT_COMMAND | reg;
74 tx_buf[1] = JBT_DATA | data;
75 rc = spi_write(ddata->spi_dev, (u8 *)tx_buf,
87 u16 tx_buf[3]; local
89 tx_buf[0] = JBT_COMMAND | reg;
90 tx_buf[1] = JBT_DATA | (data >> 8);
91 tx_buf[
[all...]
/linux-master/drivers/iio/pressure/
H A Dmpl115_spi.c42 .tx_buf = buf->tx,
63 .tx_buf = buf->tx,
/linux-master/drivers/net/wireless/ath/ath9k/
H A Dhif_usb.h79 struct tx_buf { struct
102 struct list_head tx_buf; member in struct:hif_usb_tx
/linux-master/drivers/net/ethernet/microchip/
H A Dencx24j600-regmap.c37 struct spi_transfer t[2] = { { .tx_buf = &opcode, .len = 1, },
38 { .tx_buf = buf, .len = len }, };
69 u8 tx_buf[2]; local
102 tx_buf[i++] = cmd;
104 tx_buf[i++] = reg;
106 ret = spi_write_then_read(ctx->spi, tx_buf, i, val, len);
119 struct spi_transfer t[3] = { { .tx_buf = &cmd, .len = sizeof(cmd), },
120 { .tx_buf = &reg, .len = sizeof(reg), },
121 { .tx_buf = val, .len = len }, };
160 t[1].tx_buf
[all...]
/linux-master/drivers/iio/adc/
H A Dad7923.c67 __be16 tx_buf[4]; member in struct:ad7923_state
177 st->tx_buf[len++] = cpu_to_be16(cmd);
180 st->ring_xfer[0].tx_buf = &st->tx_buf[0];
227 st->tx_buf[0] = cpu_to_be16(cmd);
333 st->scan_single_xfer[0].tx_buf = &st->tx_buf[0];
H A Dti-adc084s021.c38 u16 tx_buf[4] __aligned(IIO_DMA_MINALIGN);
109 adc->tx_buf[0] = channel->channel << 3;
173 adc->tx_buf[i++] = channel->channel << 3;
221 adc->spi_trans.tx_buf = adc->tx_buf;
/linux-master/drivers/char/tpm/
H A Dtpm_tis_spi_main.c100 spi_xfer[0].tx_buf = phy->iobuf;
104 spi_xfer[1].tx_buf = phy->iobuf + 1;
109 spi_xfer[2].tx_buf = &phy->iobuf[4];
116 spi_xfer[2].tx_buf = NULL;
160 spi_xfer.tx_buf = phy->iobuf;
172 spi_xfer.tx_buf = NULL;
183 spi_xfer.tx_buf = phy->iobuf;
/linux-master/drivers/fpga/
H A Dmachxo2-spi.c75 tx.tx_buf = cmd;
146 tx[0].tx_buf = &erase;
158 tx[1].tx_buf = &refresh;
210 tx[0].tx_buf = &enable;
216 tx[1].tx_buf = &erase;
235 tx[2].tx_buf = &initaddr;
274 tx.tx_buf = payload;
304 tx[0].tx_buf = &progdone;
324 tx[1].tx_buf = &refresh;
/linux-master/drivers/pinctrl/
H A Dpinctrl-mcp23s08_spi.c31 struct spi_transfer t[2] = { { .tx_buf = &mcp->addr, .len = 1, },
32 { .tx_buf = data, .len = count, }, };
48 struct spi_transfer t[3] = { { .tx_buf = &mcp->addr, .len = 1, },
49 { .tx_buf = reg, .len = reg_size, },
50 { .tx_buf = val, .len = val_size, }, };

Completed in 352 milliseconds

1234567891011>>