Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/input/misc/
Dad714x-i2c.c21 chip->xfer_buf[0] = cpu_to_be16(reg); in ad714x_i2c_write()
22 chip->xfer_buf[1] = cpu_to_be16(data); in ad714x_i2c_write()
24 error = i2c_master_send(client, (u8 *)chip->xfer_buf, in ad714x_i2c_write()
25 2 * sizeof(*chip->xfer_buf)); in ad714x_i2c_write()
41 chip->xfer_buf[0] = cpu_to_be16(reg); in ad714x_i2c_read()
43 error = i2c_master_send(client, (u8 *)chip->xfer_buf, in ad714x_i2c_read()
44 sizeof(*chip->xfer_buf)); in ad714x_i2c_read()
46 error = i2c_master_recv(client, (u8 *)chip->xfer_buf, in ad714x_i2c_read()
47 len * sizeof(*chip->xfer_buf)); in ad714x_i2c_read()
55 data[i] = be16_to_cpu(chip->xfer_buf[i]); in ad714x_i2c_read()
Dad714x-spi.c30 chip->xfer_buf[0] = cpu_to_be16(AD714x_SPI_CMD_PREFIX | in ad714x_spi_read()
32 xfer[0].tx_buf = &chip->xfer_buf[0]; in ad714x_spi_read()
33 xfer[0].len = sizeof(chip->xfer_buf[0]); in ad714x_spi_read()
36 xfer[1].rx_buf = &chip->xfer_buf[1]; in ad714x_spi_read()
37 xfer[1].len = sizeof(chip->xfer_buf[1]) * len; in ad714x_spi_read()
47 data[i] = be16_to_cpu(chip->xfer_buf[i + 1]); in ad714x_spi_read()
58 chip->xfer_buf[0] = cpu_to_be16(AD714x_SPI_CMD_PREFIX | reg); in ad714x_spi_write()
59 chip->xfer_buf[1] = cpu_to_be16(data); in ad714x_spi_write()
61 error = spi_write(spi, (u8 *)chip->xfer_buf, in ad714x_spi_write()
62 2 * sizeof(*chip->xfer_buf)); in ad714x_spi_write()
Datmel_captouch.c74 u8 xfer_buf[8] ____cacheline_aligned; member
91 if (len > sizeof(capdev->xfer_buf) - 2) in atmel_read()
94 capdev->xfer_buf[0] = reg; in atmel_read()
95 capdev->xfer_buf[1] = len; in atmel_read()
99 msg[0].buf = capdev->xfer_buf; in atmel_read()
104 msg[1].buf = capdev->xfer_buf; in atmel_read()
111 if (capdev->xfer_buf[0] != reg) { in atmel_read()
114 capdev->xfer_buf[0], reg); in atmel_read()
118 memcpy(data, &capdev->xfer_buf[2], len); in atmel_read()
Dad714x.h45 __be16 xfer_buf[16] ____cacheline_aligned; member
/Linux-v6.6/drivers/input/touchscreen/
Dcyttsp_i2c_common.c26 int cyttsp_i2c_read_block_data(struct device *dev, u8 *xfer_buf, in cyttsp_i2c_read_block_data() argument
56 int cyttsp_i2c_write_block_data(struct device *dev, u8 *xfer_buf, in cyttsp_i2c_write_block_data() argument
67 .buf = xfer_buf, in cyttsp_i2c_write_block_data()
72 xfer_buf[0] = addr_lo; in cyttsp_i2c_write_block_data()
73 memcpy(&xfer_buf[1], values, length); in cyttsp_i2c_write_block_data()
Dcyttsp_spi.c35 static int cyttsp_spi_xfer(struct device *dev, u8 *xfer_buf, in cyttsp_spi_xfer() argument
41 u8 *wr_buf = &xfer_buf[0]; in cyttsp_spi_xfer()
42 u8 *rd_buf = &xfer_buf[CY_SPI_DATA_BUF_SIZE]; in cyttsp_spi_xfer()
120 static int cyttsp_spi_read_block_data(struct device *dev, u8 *xfer_buf, in cyttsp_spi_read_block_data() argument
123 return cyttsp_spi_xfer(dev, xfer_buf, CY_SPI_RD_OP, addr, data, in cyttsp_spi_read_block_data()
127 static int cyttsp_spi_write_block_data(struct device *dev, u8 *xfer_buf, in cyttsp_spi_write_block_data() argument
130 return cyttsp_spi_xfer(dev, xfer_buf, CY_SPI_WR_OP, addr, (void *)data, in cyttsp_spi_write_block_data()
Dcyttsp4_spi.c36 static int cyttsp_spi_xfer(struct device *dev, u8 *xfer_buf, in cyttsp_spi_xfer() argument
42 u8 *wr_buf = &xfer_buf[0]; in cyttsp_spi_xfer()
120 static int cyttsp_spi_read_block_data(struct device *dev, u8 *xfer_buf, in cyttsp_spi_read_block_data() argument
125 rc = cyttsp_spi_xfer(dev, xfer_buf, CY_SPI_WR_OP, addr, NULL, 0); in cyttsp_spi_read_block_data()
129 return cyttsp_spi_xfer(dev, xfer_buf, CY_SPI_RD_OP, addr, data, in cyttsp_spi_read_block_data()
133 static int cyttsp_spi_write_block_data(struct device *dev, u8 *xfer_buf, in cyttsp_spi_write_block_data() argument
136 return cyttsp_spi_xfer(dev, xfer_buf, CY_SPI_WR_OP, addr, (void *)data, in cyttsp_spi_write_block_data()
Dcyttsp_core.h101 int (*write)(struct device *dev, u8 *xfer_buf, u16 addr, u8 length,
103 int (*read)(struct device *dev, u8 *xfer_buf, u16 addr, u8 length,
134 u8 xfer_buf[] ____cacheline_aligned; member
140 int cyttsp_i2c_write_block_data(struct device *dev, u8 *xfer_buf, u16 addr,
142 int cyttsp_i2c_read_block_data(struct device *dev, u8 *xfer_buf, u16 addr,
Dcyttsp4_core.h340 u8 *xfer_buf; member
348 int (*write)(struct device *dev, u8 *xfer_buf, u16 addr, u8 length,
350 int (*read)(struct device *dev, u8 *xfer_buf, u16 addr, u8 length,
430 return ts->bus_ops->read(ts->dev, ts->xfer_buf, addr, size, buf); in cyttsp4_adap_read()
436 return ts->bus_ops->write(ts->dev, ts->xfer_buf, addr, size, buf); in cyttsp4_adap_write()
442 int cyttsp_i2c_write_block_data(struct device *dev, u8 *xfer_buf, u16 addr,
444 int cyttsp_i2c_read_block_data(struct device *dev, u8 *xfer_buf, u16 addr,
Dhideep.c168 u8 xfer_buf[HIDEEP_XFER_BUF_SIZE] __aligned(4); member
182 struct pgm_packet *packet = (void *)ts->xfer_buf; in hideep_pgm_w_mem()
209 struct pgm_packet *packet = (void *)ts->xfer_buf; in hideep_pgm_r_mem()
469 struct pgm_packet *packet_r = (void *)ts->xfer_buf; in hideep_program_nvm()
518 struct pgm_packet *packet_r = (void *)ts->xfer_buf; in hideep_verify_nvm()
726 (void *)&ts->xfer_buf[HIDEEP_TOUCH_EVENT_INDEX]; in hideep_parse_and_report()
727 const u8 *keys = &ts->xfer_buf[HIDEEP_KEY_EVENT_INDEX]; in hideep_parse_and_report()
728 int touch_count = ts->xfer_buf[0]; in hideep_parse_and_report()
729 int key_count = ts->xfer_buf[1] & 0x0f; in hideep_parse_and_report()
730 int lpm_count = ts->xfer_buf[1] & 0xf0; in hideep_parse_and_report()
[all …]
Dcyttsp_core.c85 error = ts->bus_ops->read(ts->dev, ts->xfer_buf, command, in ttsp_read_block_data()
103 error = ts->bus_ops->write(ts->dev, ts->xfer_buf, command, in ttsp_write_block_data()
Dcyttsp4_core.c2035 cd->xfer_buf = kzalloc(xfer_buf_size, GFP_KERNEL); in cyttsp4_probe()
2036 if (!cd->xfer_buf) { in cyttsp4_probe()
2130 kfree(cd->xfer_buf); in cyttsp4_probe()
/Linux-v6.6/drivers/firmware/
Dti_sci.c46 u8 *xfer_buf; member
281 memcpy(xfer->xfer_buf, mbox_msg->buf, xfer->rx_len); in ti_sci_rx_callback()
477 rev_info = (struct ti_sci_msg_resp_version *)xfer->xfer_buf; in ti_sci_cmd_get_revision()
544 req = (struct ti_sci_msg_req_set_device_state *)xfer->xfer_buf; in ti_sci_set_device_state()
554 resp = (struct ti_sci_msg_hdr *)xfer->xfer_buf; in ti_sci_set_device_state()
605 req = (struct ti_sci_msg_req_get_device_state *)xfer->xfer_buf; in ti_sci_get_device_state()
614 resp = (struct ti_sci_msg_resp_get_device_state *)xfer->xfer_buf; in ti_sci_get_device_state()
907 req = (struct ti_sci_msg_req_set_device_resets *)xfer->xfer_buf; in ti_sci_cmd_set_device_resets()
917 resp = (struct ti_sci_msg_hdr *)xfer->xfer_buf; in ti_sci_cmd_set_device_resets()
982 req = (struct ti_sci_msg_req_set_clock_state *)xfer->xfer_buf; in ti_sci_set_clock_state()
[all …]
/Linux-v6.6/drivers/media/tuners/
Dmt2060.c87 u8 *xfer_buf; in mt2060_writeregs() local
93 xfer_buf = kmalloc(16, GFP_KERNEL); in mt2060_writeregs()
94 if (!xfer_buf) in mt2060_writeregs()
97 msg.buf = xfer_buf; in mt2060_writeregs()
102 xfer_buf[0] = buf[0] + len - 1 - rem; in mt2060_writeregs()
103 memcpy(&xfer_buf[1], &buf[1 + len - 1 - rem], val_len); in mt2060_writeregs()
112 kfree(xfer_buf); in mt2060_writeregs()
/Linux-v6.6/drivers/input/joystick/
Dpxrc.c127 void *xfer_buf; in pxrc_probe() local
151 xfer_buf = devm_kmalloc(&intf->dev, xfer_size, GFP_KERNEL); in pxrc_probe()
152 if (!xfer_buf) in pxrc_probe()
165 xfer_buf, xfer_size, pxrc_usb_irq, pxrc, 1); in pxrc_probe()
/Linux-v6.6/drivers/input/rmi4/
Drmi_spi.c58 struct spi_transfer *xfer_buf; in rmi_spi_manage_pools() local
96 xfer_buf = devm_kcalloc(&spi->dev, in rmi_spi_manage_pools()
100 if (!xfer_buf) in rmi_spi_manage_pools()
103 rmi_spi->rx_xfers = xfer_buf; in rmi_spi_manage_pools()
104 rmi_spi->tx_xfers = &xfer_buf[rmi_spi->rx_xfer_count]; in rmi_spi_manage_pools()
/Linux-v6.6/drivers/net/ieee802154/
Dadf7242.c370 struct spi_transfer xfer_buf = { in adf7242_write_fbuf() local
377 spi_message_add_tail(&xfer_buf, &msg); in adf7242_write_fbuf()
402 struct spi_transfer xfer_buf = { in adf7242_read_fbuf() local
409 spi_message_add_tail(&xfer_buf, &msg); in adf7242_read_fbuf()
507 struct spi_transfer xfer_buf = { }; in adf7242_upload_firmware() local
521 spi_message_add_tail(&xfer_buf, &msg); in adf7242_upload_firmware()
526 xfer_buf.len = (i >= PRAM_PAGESIZE) ? PRAM_PAGESIZE : i; in adf7242_upload_firmware()
527 xfer_buf.tx_buf = &data[page * PRAM_PAGESIZE]; in adf7242_upload_firmware()
Dcc2520.c317 struct spi_transfer xfer_buf = { in cc2520_write_ram() local
329 spi_message_add_tail(&xfer_buf, &msg); in cc2520_write_ram()
396 struct spi_transfer xfer_buf = { in cc2520_write_txfifo() local
404 spi_message_add_tail(&xfer_buf, &msg); in cc2520_write_txfifo()
433 struct spi_transfer xfer_buf = { in cc2520_read_rxfifo() local
440 spi_message_add_tail(&xfer_buf, &msg); in cc2520_read_rxfifo()
/Linux-v6.6/drivers/spi/
Dspi-qcom-qspi.c569 const void *xfer_buf = ctrl->xfer.tx_buf; in pio_write() local
585 byte_buf = xfer_buf; in pio_write()
602 word_buf = xfer_buf; in pio_write()
/Linux-v6.6/drivers/usb/dwc2/
Dhcd.c434 dev_dbg(hsotg->dev, " xfer_buf: %p\n", chan->xfer_buf); in dwc2_dump_channel_info()
1100 u32 *data_buf = (u32 *)chan->xfer_buf; in dwc2_hc_write_packet()
1127 chan->xfer_buf += byte_count; in dwc2_hc_write_packet()
2339 chan->xfer_buf = urb->setup_packet; in dwc2_hc_init_xfer()
2366 chan->xfer_buf = hsotg->status_buf; in dwc2_hc_init_xfer()
2392 chan->xfer_buf = urb->buf; in dwc2_hc_init_xfer()
2393 chan->xfer_buf += frame_desc->offset + in dwc2_hc_init_xfer()
2613 chan->xfer_buf = (u8 *)urb->buf + urb->actual_length; in dwc2_assign_and_init_hc()
3885 dev_dbg(hsotg->dev, " xfer_buf: %p\n", chan->xfer_buf); in dwc2_hcd_dump_state()
Dhcd.h107 u8 *xfer_buf; member
Dhcd_intr.c189 dwc2_read_packet(hsotg, chan->xfer_buf, bcnt); in dwc2_rx_fifo_level_intr()
193 chan->xfer_buf += bcnt; in dwc2_rx_fifo_level_intr()
/Linux-v6.6/drivers/scsi/aacraid/
Daachba.c1672 struct aac_srb_unit *srbu, void *xfer_buf, int xfer_len) in aac_send_safw_bmic_cmd() argument
1700 addr = dma_map_single(&dev->pdev->dev, xfer_buf, xfer_len, in aac_send_safw_bmic_cmd()