Home
last modified time | relevance | path

Searched refs:xfer_buf (Results 1 – 15 of 15) sorted by relevance

/drivers/input/misc/
Dad714x-i2c.c36 chip->xfer_buf[0] = cpu_to_be16(reg); in ad714x_i2c_write()
37 chip->xfer_buf[1] = cpu_to_be16(data); in ad714x_i2c_write()
39 error = i2c_master_send(client, (u8 *)chip->xfer_buf, in ad714x_i2c_write()
40 2 * sizeof(*chip->xfer_buf)); in ad714x_i2c_write()
56 chip->xfer_buf[0] = cpu_to_be16(reg); in ad714x_i2c_read()
58 error = i2c_master_send(client, (u8 *)chip->xfer_buf, in ad714x_i2c_read()
59 sizeof(*chip->xfer_buf)); in ad714x_i2c_read()
61 error = i2c_master_recv(client, (u8 *)chip->xfer_buf, in ad714x_i2c_read()
62 len * sizeof(*chip->xfer_buf)); in ad714x_i2c_read()
70 data[i] = be16_to_cpu(chip->xfer_buf[i]); in ad714x_i2c_read()
Dad714x-spi.c45 chip->xfer_buf[0] = cpu_to_be16(AD714x_SPI_CMD_PREFIX | in ad714x_spi_read()
47 xfer[0].tx_buf = &chip->xfer_buf[0]; in ad714x_spi_read()
48 xfer[0].len = sizeof(chip->xfer_buf[0]); in ad714x_spi_read()
51 xfer[1].rx_buf = &chip->xfer_buf[1]; in ad714x_spi_read()
52 xfer[1].len = sizeof(chip->xfer_buf[1]) * len; in ad714x_spi_read()
62 data[i] = be16_to_cpu(chip->xfer_buf[i + 1]); in ad714x_spi_read()
73 chip->xfer_buf[0] = cpu_to_be16(AD714x_SPI_CMD_PREFIX | reg); in ad714x_spi_write()
74 chip->xfer_buf[1] = cpu_to_be16(data); in ad714x_spi_write()
76 error = spi_write(spi, (u8 *)chip->xfer_buf, in ad714x_spi_write()
77 2 * sizeof(*chip->xfer_buf)); in ad714x_spi_write()
Dad714x.h45 __be16 xfer_buf[16] ____cacheline_aligned; member
/drivers/input/touchscreen/
Dcyttsp_spi.c43 static int cyttsp_spi_xfer(struct device *dev, u8 *xfer_buf, in cyttsp_spi_xfer() argument
49 u8 *wr_buf = &xfer_buf[0]; in cyttsp_spi_xfer()
50 u8 *rd_buf = &xfer_buf[CY_SPI_DATA_BUF_SIZE]; in cyttsp_spi_xfer()
128 static int cyttsp_spi_read_block_data(struct device *dev, u8 *xfer_buf, in cyttsp_spi_read_block_data() argument
131 return cyttsp_spi_xfer(dev, xfer_buf, CY_SPI_RD_OP, addr, data, in cyttsp_spi_read_block_data()
135 static int cyttsp_spi_write_block_data(struct device *dev, u8 *xfer_buf, in cyttsp_spi_write_block_data() argument
138 return cyttsp_spi_xfer(dev, xfer_buf, CY_SPI_WR_OP, addr, (void *)data, in cyttsp_spi_write_block_data()
Dcyttsp4_spi.c46 static int cyttsp_spi_xfer(struct device *dev, u8 *xfer_buf, in cyttsp_spi_xfer() argument
52 u8 *wr_buf = &xfer_buf[0]; in cyttsp_spi_xfer()
130 static int cyttsp_spi_read_block_data(struct device *dev, u8 *xfer_buf, in cyttsp_spi_read_block_data() argument
135 rc = cyttsp_spi_xfer(dev, xfer_buf, CY_SPI_WR_OP, addr, NULL, 0); in cyttsp_spi_read_block_data()
139 return cyttsp_spi_xfer(dev, xfer_buf, CY_SPI_RD_OP, addr, data, in cyttsp_spi_read_block_data()
143 static int cyttsp_spi_write_block_data(struct device *dev, u8 *xfer_buf, in cyttsp_spi_write_block_data() argument
146 return cyttsp_spi_xfer(dev, xfer_buf, CY_SPI_WR_OP, addr, (void *)data, in cyttsp_spi_write_block_data()
Dcyttsp_i2c_common.c36 int cyttsp_i2c_read_block_data(struct device *dev, u8 *xfer_buf, in cyttsp_i2c_read_block_data() argument
66 int cyttsp_i2c_write_block_data(struct device *dev, u8 *xfer_buf, in cyttsp_i2c_write_block_data() argument
77 .buf = xfer_buf, in cyttsp_i2c_write_block_data()
82 xfer_buf[0] = addr_lo; in cyttsp_i2c_write_block_data()
83 memcpy(&xfer_buf[1], values, length); in cyttsp_i2c_write_block_data()
Dcyttsp_core.h115 int (*write)(struct device *dev, u8 *xfer_buf, u16 addr, u8 length,
117 int (*read)(struct device *dev, u8 *xfer_buf, u16 addr, u8 length,
141 u8 xfer_buf[] ____cacheline_aligned; member
148 int cyttsp_i2c_write_block_data(struct device *dev, u8 *xfer_buf, u16 addr,
150 int cyttsp_i2c_read_block_data(struct device *dev, u8 *xfer_buf, u16 addr,
Dcyttsp4_core.h364 u8 *xfer_buf; member
372 int (*write)(struct device *dev, u8 *xfer_buf, u16 addr, u8 length,
374 int (*read)(struct device *dev, u8 *xfer_buf, u16 addr, u8 length,
454 return ts->bus_ops->read(ts->dev, ts->xfer_buf, addr, size, buf); in cyttsp4_adap_read()
460 return ts->bus_ops->write(ts->dev, ts->xfer_buf, addr, size, buf); in cyttsp4_adap_write()
466 int cyttsp_i2c_write_block_data(struct device *dev, u8 *xfer_buf, u16 addr,
468 int cyttsp_i2c_read_block_data(struct device *dev, u8 *xfer_buf, u16 addr,
Dcyttsp_core.c87 error = ts->bus_ops->read(ts->dev, ts->xfer_buf, command, in ttsp_read_block_data()
105 error = ts->bus_ops->write(ts->dev, ts->xfer_buf, command, in ttsp_write_block_data()
Dcyttsp4_core.c2020 cd->xfer_buf = kzalloc(xfer_buf_size, GFP_KERNEL); in cyttsp4_probe()
2021 if (!cd->xfer_buf) { in cyttsp4_probe()
2116 kfree(cd->xfer_buf); in cyttsp4_probe()
/drivers/net/ieee802154/
Dcc2520.c311 struct spi_transfer xfer_buf = { in cc2520_write_ram() local
323 spi_message_add_tail(&xfer_buf, &msg); in cc2520_write_ram()
390 struct spi_transfer xfer_buf = { in cc2520_write_txfifo() local
398 spi_message_add_tail(&xfer_buf, &msg); in cc2520_write_txfifo()
427 struct spi_transfer xfer_buf = { in cc2520_read_rxfifo() local
434 spi_message_add_tail(&xfer_buf, &msg); in cc2520_read_rxfifo()
/drivers/usb/dwc2/
Dhcd.c100 dev_dbg(hsotg->dev, " xfer_buf: %p\n", chan->xfer_buf); in dwc2_dump_channel_info()
617 chan->xfer_buf = urb->setup_packet; in dwc2_hc_init_xfer()
645 chan->xfer_buf = hsotg->status_buf; in dwc2_hc_init_xfer()
672 chan->xfer_buf = urb->buf; in dwc2_hc_init_xfer()
673 chan->xfer_buf += frame_desc->offset + in dwc2_hc_init_xfer()
829 chan->xfer_buf = (u8 *)urb->buf + urb->actual_length; in dwc2_assign_and_init_hc()
1898 dev_dbg(hsotg->dev, " xfer_buf: %p\n", chan->xfer_buf); in dwc2_hcd_dump_state()
Dhcd.h133 u8 *xfer_buf; member
Dhcd_intr.c192 dwc2_read_packet(hsotg, chan->xfer_buf, bcnt); in dwc2_rx_fifo_level_intr()
196 chan->xfer_buf += bcnt; in dwc2_rx_fifo_level_intr()
Dcore.c1279 u32 *data_buf = (u32 *)chan->xfer_buf; in dwc2_hc_write_packet()
1308 chan->xfer_buf += byte_count; in dwc2_hc_write_packet()