Searched refs:tx_buf (Results 51 - 75 of 410) sorted by relevance

1234567891011>>

/linux-master/drivers/iio/adc/
H A Dad7091r8.c123 .tx_buf = &st->tx_buf,
135 st->tx_buf = cpu_to_be16(reg << 11);
155 st->tx_buf = cpu_to_be16(FIELD_PREP(AD7091R8_REG_DATA_MSK, val) |
159 return spi_write(spi, &st->tx_buf, 2);
/linux-master/drivers/platform/mellanox/
H A Dmlxbf-tmfifo.c134 * @tx_buf: tx buffer used to buffer data before writing into the FIFO
145 struct circ_buf tx_buf; member in struct:mlxbf_tmfifo_vdev
466 seg = CIRC_SPACE_TO_END(cons->tx_buf.head, cons->tx_buf.tail,
469 memcpy(cons->tx_buf.buf + cons->tx_buf.head, addr, len);
471 memcpy(cons->tx_buf.buf + cons->tx_buf.head, addr, seg);
473 memcpy(cons->tx_buf.buf, addr, len - seg);
475 cons->tx_buf
[all...]
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Datombios_dp.c133 u8 tx_buf[20]; local
140 tx_buf[0] = msg->address & 0xff;
141 tx_buf[1] = msg->address >> 8;
142 tx_buf[2] = (msg->request << 4) |
144 tx_buf[3] = msg->size ? (msg->size - 1) : 0;
150 * table needs the info in tx_buf[3].
154 tx_buf[3] |= BARE_ADDRESS_SIZE << 4;
156 tx_buf[3] |= tx_size << 4;
157 memcpy(tx_buf + HEADER_SIZE, msg->buffer, msg->size);
159 tx_buf, tx_siz
[all...]
/linux-master/drivers/video/fbdev/mmp/hw/
H A Dmmp_spi.c116 lcd_spi_write(spi, ((u8 *)t->tx_buf)[i]);
120 lcd_spi_write(spi, ((u16 *)t->tx_buf)[i]);
124 lcd_spi_write(spi, ((u32 *)t->tx_buf)[i]);
/linux-master/drivers/spi/
H A Dspi-axi-spi-engine.c90 /** @tx_xfer: Next xfer with tx_buf not yet fully written to TX FIFO. */
92 /** @tx_length: Size of tx_buf in bytes. */
94 /** @tx_buf: Bytes not yet written to TX FIFO. */
95 const uint8_t *tx_buf; member in struct:spi_engine_message_state
98 /** @rx_length: Size of tx_buf in bytes. */
155 if (xfer->tx_buf)
313 } while (xfer && !xfer->tx_buf);
318 st->tx_buf = xfer->tx_buf;
320 st->tx_buf
[all...]
H A Dspi-slave-mt27xx.c174 if (xfer->tx_buf)
179 if (xfer->tx_buf)
181 xfer->tx_buf, cnt);
184 if (xfer->tx_buf && remainder > 0) {
186 memcpy(&reg_val, xfer->tx_buf + cnt * 4, remainder);
209 if (xfer->tx_buf) {
210 /* tx_buf is a const void* where we need a void * for
213 void *nonconst_tx = (void *)xfer->tx_buf;
239 if (xfer->tx_buf)
251 if (xfer->tx_buf)
[all...]
H A Dspi-sun4i.c85 const u8 *tx_buf; member in struct:sun4i_spi
156 byte = sspi->tx_buf ? *sspi->tx_buf++ : 0;
219 if (tfr->tx_buf && tfr->len >= SUN4I_MAX_XFER_SIZE)
223 sspi->tx_buf = tfr->tx_buf;
303 if (sspi->tx_buf)
H A Dspi-loongson-core.c106 static int loongson_spi_write_read_8bit(struct spi_device *spi, const u8 **tx_buf, argument
112 if (tx_buf && *tx_buf)
113 loongson_spi_write_reg(loongson_spi, LOONGSON_SPI_FIFO_REG, *((*tx_buf)++));
134 const u8 *tx = xfer->tx_buf;
H A Dspi-mpc52xx-psc.c113 unsigned char *tx_buf = (unsigned char *)t->tx_buf; local
119 if (!t->tx_buf && !t->rx_buf && t->len)
140 if (tx_buf)
141 out_8(&psc->mpc52xx_psc_buffer_8, tx_buf[sb]);
/linux-master/drivers/iio/dac/
H A Dad5686-spi.c53 .tx_buf = &st->data[0].d8[1],
57 .tx_buf = &st->data[1].d8[1],
/linux-master/drivers/iio/imu/
H A Dadis.c41 .tx_buf = adis->tx,
48 .tx_buf = adis->tx + 2,
55 .tx_buf = adis->tx + 4,
62 .tx_buf = adis->tx + 6,
68 .tx_buf = adis->tx + 8,
135 .tx_buf = adis->tx,
142 .tx_buf = adis->tx + 2,
149 .tx_buf = adis->tx + 4,
/linux-master/drivers/net/ethernet/intel/ice/
H A Dice_xsk.c607 struct ice_tx_buf *tx_buf; local
633 tx_buf = &xdp_ring->tx_buf[ntc];
635 if (tx_buf->type == ICE_TX_BUF_XSK_TX) {
636 tx_buf->type = ICE_TX_BUF_EMPTY;
637 xsk_buff_free(tx_buf->xdp);
677 struct ice_tx_buf *tx_buf; local
698 tx_buf = &xdp_ring->tx_buf[ntu];
707 tx_buf
1170 struct ice_tx_buf *tx_buf = &xdp_ring->tx_buf[ntc]; local
[all...]
/linux-master/drivers/mfd/
H A Drk8xx-spi.c55 xfer[0].tx_buf = &cmd;
57 xfer[1].tx_buf = vdata;
/linux-master/drivers/net/ethernet/micrel/
H A Dks8851_spi.c128 xfer->tx_buf = txb;
163 xfer->tx_buf = txb;
168 xfer->tx_buf = NULL;
175 xfer->tx_buf = txb;
227 xfer->tx_buf = txb;
233 xfer->tx_buf = NULL;
275 xfer->tx_buf = &ks->txh.txb[1];
280 xfer->tx_buf = txp->data;
/linux-master/include/uapi/linux/spi/
H A Dspidev.h36 * @tx_buf: Holds pointer to userspace buffer with transmit data, or null.
71 __u64 tx_buf; member in struct:spi_ioc_transfer
/linux-master/drivers/hwmon/
H A Dadcxx.c53 u8 tx_buf[2]; local
64 tx_buf[0] = attr->index << 3; /* other bits are don't care */
65 status = spi_write_then_read(spi, tx_buf, sizeof(tx_buf),
H A Dmax1111.c41 uint8_t tx_buf[MAX1111_TX_BUF_SIZE]; member in struct:max1111_data
58 data->tx_buf[0] = (channel << data->sel_sh) |
171 x->tx_buf = &data->tx_buf[0];
/linux-master/drivers/mtd/devices/
H A Dmchp23k256.c76 transfer[0].tx_buf = command;
80 transfer[1].tx_buf = buf;
116 transfer[0].tx_buf = command;
154 transfer.tx_buf = command;
/linux-master/drivers/input/touchscreen/
H A Dtsc2005.c28 .tx_buf = &tx,
/linux-master/tools/net/ynl/lib/
H A Dynl.h80 unsigned char *tx_buf; member in struct:ynl_sock
/linux-master/drivers/iio/pressure/
H A Dhsc030pa_spi.c27 .tx_buf = NULL,
/linux-master/drivers/staging/iio/frequency/
H A Dad9832.c361 st->xfer.tx_buf = &st->data;
367 st->freq_xfer[0].tx_buf = &st->freq_data[0];
370 st->freq_xfer[1].tx_buf = &st->freq_data[1];
373 st->freq_xfer[2].tx_buf = &st->freq_data[2];
376 st->freq_xfer[3].tx_buf = &st->freq_data[3];
385 st->phase_xfer[0].tx_buf = &st->phase_data[0];
388 st->phase_xfer[1].tx_buf = &st->phase_data[1];
/linux-master/drivers/misc/mei/
H A Dvsc-tp.c70 void *tx_buf; member in struct:vsc_tp
148 .tx_buf = obuf,
274 struct vsc_tp_packet *pkt = tp->tx_buf;
323 cpu_to_be32_array(tp->tx_buf, obuf, words);
334 ret = vsc_tp_dev_xfer(tp, tp->tx_buf, tp->rx_buf, len);
495 tp->tx_buf = devm_kzalloc(dev, VSC_TP_MAX_XFER_SIZE, GFP_KERNEL);
496 if (!tp->tx_buf)
/linux-master/drivers/net/usb/
H A Dipheth.c99 unsigned char *tx_buf; member in struct:ipheth_device
116 u8 *tx_buf = NULL; local
127 tx_buf = usb_alloc_coherent(iphone->udev, IPHETH_TX_BUF_SIZE,
129 if (tx_buf == NULL)
140 iphone->tx_buf = tx_buf;
145 usb_free_coherent(iphone->udev, IPHETH_TX_BUF_SIZE, tx_buf,
159 usb_free_coherent(iphone->udev, IPHETH_TX_BUF_SIZE, iphone->tx_buf,
497 memcpy(dev->tx_buf, skb->data, skb->len);
501 dev->tx_buf, sk
[all...]
/linux-master/drivers/media/rc/
H A Dmeson-ir-tx.c251 u32 *tx_buf; local
257 tx_buf = kmalloc_array(len, sizeof(u32), GFP_KERNEL);
258 if (!tx_buf)
261 meson_irtx_fill_buf(ir, tx_buf, buf, len);
265 meson_irtx_update_buf(ir, tx_buf, len, 0);

Completed in 335 milliseconds

1234567891011>>