Home
last modified time | relevance | path

Searched refs:txbuf (Results 1 – 25 of 79) sorted by relevance

1234

/kernel/linux/linux-5.10/drivers/net/dsa/b53/
Db53_spi.c45 u8 txbuf[2]; in b53_spi_read_reg() local
47 txbuf[0] = B53_SPI_CMD_NORMAL | B53_SPI_CMD_READ; in b53_spi_read_reg()
48 txbuf[1] = reg; in b53_spi_read_reg()
50 return spi_write_then_read(spi, txbuf, 2, val, len); in b53_spi_read_reg()
78 u8 txbuf[3]; in b53_spi_set_page() local
80 txbuf[0] = B53_SPI_CMD_NORMAL | B53_SPI_CMD_WRITE; in b53_spi_set_page()
81 txbuf[1] = B53_SPI_PAGE_SELECT; in b53_spi_set_page()
82 txbuf[2] = page; in b53_spi_set_page()
84 return spi_write(spi, txbuf, sizeof(txbuf)); in b53_spi_set_page()
202 u8 txbuf[3]; in b53_spi_write8() local
[all …]
/kernel/linux/linux-5.10/drivers/misc/
Dlattice-ecp3-config.c70 u8 txbuf[8]; in firmware_load() local
88 txbuf[1] = 0x00; in firmware_load()
89 txbuf[2] = 0x00; in firmware_load()
90 txbuf[3] = 0x00; in firmware_load()
93 txbuf[0] = FPGA_CMD_READ_ID; in firmware_load()
94 spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); in firmware_load()
111 txbuf[0] = FPGA_CMD_READ_STATUS; in firmware_load()
112 spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); in firmware_load()
131 txbuf[0] = FPGA_CMD_REFRESH; in firmware_load()
132 spi_write(spi, txbuf, 4); in firmware_load()
[all …]
/kernel/linux/linux-5.10/drivers/rtc/
Drtc-rs5c348.c63 u8 txbuf[5+7], *txp; in rs5c348_rtc_set_time() local
70 txbuf[0] = RS5C348_CMD_W(RS5C348_REG_CTL2); in rs5c348_rtc_set_time()
71 txbuf[1] = 0; in rs5c348_rtc_set_time()
72 ret = spi_write_then_read(spi, txbuf, 2, NULL, 0); in rs5c348_rtc_set_time()
78 txp = txbuf; in rs5c348_rtc_set_time()
79 txbuf[0] = RS5C348_CMD_R(RS5C348_REG_CTL2); /* cmd, ctl2 */ in rs5c348_rtc_set_time()
80 txbuf[1] = 0; /* dummy */ in rs5c348_rtc_set_time()
81 txbuf[2] = RS5C348_CMD_R(RS5C348_REG_CTL2); /* cmd, ctl2 */ in rs5c348_rtc_set_time()
82 txbuf[3] = 0; /* dummy */ in rs5c348_rtc_set_time()
83 txbuf[4] = RS5C348_CMD_MW(RS5C348_REG_SECS); /* cmd, sec, ... */ in rs5c348_rtc_set_time()
[all …]
Drtc-pcf2123.c207 u8 txbuf[7]; in pcf2123_rtc_set_time() local
218 txbuf[0] = bin2bcd(tm->tm_sec & 0x7F); in pcf2123_rtc_set_time()
219 txbuf[1] = bin2bcd(tm->tm_min & 0x7F); in pcf2123_rtc_set_time()
220 txbuf[2] = bin2bcd(tm->tm_hour & 0x3F); in pcf2123_rtc_set_time()
221 txbuf[3] = bin2bcd(tm->tm_mday & 0x3F); in pcf2123_rtc_set_time()
222 txbuf[4] = tm->tm_wday & 0x07; in pcf2123_rtc_set_time()
223 txbuf[5] = bin2bcd((tm->tm_mon + 1) & 0x1F); /* rtc mn 1-12 */ in pcf2123_rtc_set_time()
224 txbuf[6] = bin2bcd(tm->tm_year - 100); in pcf2123_rtc_set_time()
226 ret = regmap_bulk_write(pcf2123->map, PCF2123_REG_SC, txbuf, in pcf2123_rtc_set_time()
227 sizeof(txbuf)); in pcf2123_rtc_set_time()
[all …]
Drtc-r9701.c54 u8 txbuf[1], rxbuf[1]; in read_regs() local
60 txbuf[0] = 0x80 | regs[k]; in read_regs()
61 ret = spi_write_then_read(spi, txbuf, 1, rxbuf, 1); in read_regs()
/kernel/linux/linux-5.10/drivers/hid/
Dhid-mcp2221.c93 u8 txbuf[64]; member
156 memset(mcp->txbuf, 0, 8); in mcp_chk_last_cmd_status()
157 mcp->txbuf[0] = MCP2221_I2C_PARAM_OR_STATUS; in mcp_chk_last_cmd_status()
159 return mcp_send_data_req_status(mcp, mcp->txbuf, 8); in mcp_chk_last_cmd_status()
165 memset(mcp->txbuf, 0, 8); in mcp_cancel_last_cmd()
166 mcp->txbuf[0] = MCP2221_I2C_PARAM_OR_STATUS; in mcp_cancel_last_cmd()
167 mcp->txbuf[2] = MCP2221_I2C_CANCEL; in mcp_cancel_last_cmd()
169 return mcp_send_data_req_status(mcp, mcp->txbuf, 8); in mcp_cancel_last_cmd()
176 memset(mcp->txbuf, 0, 8); in mcp_set_i2c_speed()
177 mcp->txbuf[0] = MCP2221_I2C_PARAM_OR_STATUS; in mcp_set_i2c_speed()
[all …]
/kernel/linux/linux-5.10/drivers/iio/chemical/
Dscd30_serial.c55 static int scd30_serdev_xfer(struct scd30_state *state, char *txbuf, int txsize, in scd30_serdev_xfer() argument
66 ret = serdev_device_write(serdev, txbuf, txsize, SCD30_SERDEV_TIMEOUT); in scd30_serdev_xfer()
108 char txbuf[SCD30_SERDEV_MAX_BUF_SIZE] = { SCD30_SERDEV_ADDR }, in scd30_serdev_command() local
114 put_unaligned_be16(scd30_serdev_cmd_lookup_tbl[cmd], txbuf + txsize); in scd30_serdev_command()
118 txbuf[1] = SCD30_SERDEV_READ; in scd30_serdev_command()
121 put_unaligned_be16(size / 2, txbuf + txsize); in scd30_serdev_command()
123 put_unaligned_be16(0x0001, txbuf + txsize); in scd30_serdev_command()
125 crc = scd30_serdev_calc_crc(txbuf, txsize); in scd30_serdev_command()
126 put_unaligned_le16(crc, txbuf + txsize); in scd30_serdev_command()
133 txbuf[1] = SCD30_SERDEV_WRITE; in scd30_serdev_command()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath10k/
Dhtt_tx.c229 if (!htt->txbuf.vaddr_txbuff_32) in ath10k_htt_tx_free_cont_txbuf_32()
232 size = htt->txbuf.size; in ath10k_htt_tx_free_cont_txbuf_32()
233 dma_free_coherent(ar->dev, size, htt->txbuf.vaddr_txbuff_32, in ath10k_htt_tx_free_cont_txbuf_32()
234 htt->txbuf.paddr); in ath10k_htt_tx_free_cont_txbuf_32()
235 htt->txbuf.vaddr_txbuff_32 = NULL; in ath10k_htt_tx_free_cont_txbuf_32()
246 htt->txbuf.vaddr_txbuff_32 = dma_alloc_coherent(ar->dev, size, in ath10k_htt_tx_alloc_cont_txbuf_32()
247 &htt->txbuf.paddr, in ath10k_htt_tx_alloc_cont_txbuf_32()
249 if (!htt->txbuf.vaddr_txbuff_32) in ath10k_htt_tx_alloc_cont_txbuf_32()
252 htt->txbuf.size = size; in ath10k_htt_tx_alloc_cont_txbuf_32()
262 if (!htt->txbuf.vaddr_txbuff_64) in ath10k_htt_tx_free_cont_txbuf_64()
[all …]
/kernel/linux/linux-5.10/drivers/media/rc/
Dgpio-ir-tx.c51 static void gpio_ir_tx_unmodulated(struct gpio_ir *gpio_ir, uint *txbuf, in gpio_ir_tx_unmodulated() argument
65 edge = ktime_add_us(edge, txbuf[i]); in gpio_ir_tx_unmodulated()
74 static void gpio_ir_tx_modulated(struct gpio_ir *gpio_ir, uint *txbuf, in gpio_ir_tx_modulated() argument
99 edge = ktime_add_us(edge, txbuf[i]); in gpio_ir_tx_modulated()
105 ktime_t last = ktime_add_us(edge, txbuf[i]); in gpio_ir_tx_modulated()
127 static int gpio_ir_tx(struct rc_dev *dev, unsigned int *txbuf, in gpio_ir_tx() argument
135 gpio_ir_tx_modulated(gpio_ir, txbuf, count); in gpio_ir_tx()
137 gpio_ir_tx_unmodulated(gpio_ir, txbuf, count); in gpio_ir_tx()
Dlirc_dev.c230 unsigned int *txbuf; in lirc_transmit() local
291 txbuf = kmalloc_array(count, sizeof(unsigned int), GFP_KERNEL); in lirc_transmit()
292 if (!txbuf) { in lirc_transmit()
298 txbuf[i] = raw[i].duration; in lirc_transmit()
318 txbuf = memdup_user(buf, n); in lirc_transmit()
319 if (IS_ERR(txbuf)) { in lirc_transmit()
320 ret = PTR_ERR(txbuf); in lirc_transmit()
326 if (txbuf[i] > IR_MAX_DURATION - duration || !txbuf[i]) { in lirc_transmit()
331 duration += txbuf[i]; in lirc_transmit()
336 ret = dev->tx_ir(dev, txbuf, count); in lirc_transmit()
[all …]
Dwinbond-cir.c209 u32 *txbuf; member
385 if (!data->txbuf) in wbcir_irq_tx()
410 if (data->txbuf[data->txoff] == 0) { in wbcir_irq_tx()
414 byte = min((u32)0x80, data->txbuf[data->txoff]); in wbcir_irq_tx()
415 data->txbuf[data->txoff] -= byte; in wbcir_irq_tx()
421 while (data->txoff != data->txlen && data->txbuf[data->txoff] == 0) in wbcir_irq_tx()
430 kfree(data->txbuf); in wbcir_irq_tx()
431 data->txbuf = NULL; in wbcir_irq_tx()
649 data->txbuf = buf; in wbcir_tx()
985 kfree(data->txbuf); in wbcir_init_hw()
[all …]
/kernel/linux/linux-5.10/drivers/staging/fbtft/
Dfbtft-bus.c124 __be16 *txbuf16 = par->txbuf.buf; in fbtft_write_vmem16_bus8()
141 if (!par->txbuf.buf) in fbtft_write_vmem16_bus8()
145 tx_array_size = par->txbuf.len / 2; in fbtft_write_vmem16_bus8()
148 txbuf16 = par->txbuf.buf + 1; in fbtft_write_vmem16_bus8()
150 *(u8 *)(par->txbuf.buf) = par->startbyte | 0x2; in fbtft_write_vmem16_bus8()
163 ret = par->fbtftops.write(par, par->txbuf.buf, in fbtft_write_vmem16_bus8()
178 u16 *txbuf16 = par->txbuf.buf; in fbtft_write_vmem16_bus9()
188 if (!par->txbuf.buf) { in fbtft_write_vmem16_bus9()
196 tx_array_size = par->txbuf.len / 2; in fbtft_write_vmem16_bus9()
213 ret = par->fbtftops.write(par, par->txbuf.buf, to_copy * 2); in fbtft_write_vmem16_bus9()
Dfb_watterott.c63 __be16 *pos = par->txbuf.buf + 1; in write_vmem()
64 __be16 *buf16 = par->txbuf.buf + 10; in write_vmem()
72 ((u8 *)par->txbuf.buf)[0] = CMD_LCD_DRAWIMAGE; in write_vmem()
76 ((u8 *)par->txbuf.buf)[9] = COLOR_RGB565; in write_vmem()
83 par->txbuf.buf, 10 + par->info->fix.line_length); in write_vmem()
101 __be16 *pos = par->txbuf.buf + 1; in write_vmem_8bit()
102 u8 *buf8 = par->txbuf.buf + 10; in write_vmem_8bit()
110 ((u8 *)par->txbuf.buf)[0] = CMD_LCD_DRAWIMAGE; in write_vmem_8bit()
114 ((u8 *)par->txbuf.buf)[9] = COLOR_RGB332; in write_vmem_8bit()
123 par->txbuf.buf, 10 + par->info->var.xres); in write_vmem_8bit()
Dfbtft-io.c88 u8 txbuf[32] = { 0, }; in fbtft_read_spi() local
109 txbuf[0] = par->startbyte | 0x3; in fbtft_read_spi()
110 t.tx_buf = txbuf; in fbtft_read_spi()
112 txbuf, len, "%s(len=%zu) txbuf => ", in fbtft_read_spi()
Dfb_uc1611.c222 u8 *buf8 = par->txbuf.buf; in write_vmem()
223 u16 *buf16 = par->txbuf.buf; in write_vmem()
263 ret = par->fbtftops.write(par, par->txbuf.buf, len / 2); in write_vmem()
298 ret = par->fbtftops.write(par, par->txbuf.buf, len); in write_vmem()
/kernel/linux/linux-5.10/drivers/infiniband/hw/i40iw/
Di40iw_puda.c1022 struct i40iw_puda_buf *txbuf, in i40iw_ieq_copy_to_txbuf() argument
1027 void *mem2 = (u8 *)txbuf->mem.va + txbuf_offset; in i40iw_ieq_copy_to_txbuf()
1038 struct i40iw_puda_buf *txbuf) in i40iw_ieq_setup_tx_buf() argument
1040 txbuf->maclen = buf->maclen; in i40iw_ieq_setup_tx_buf()
1041 txbuf->tcphlen = buf->tcphlen; in i40iw_ieq_setup_tx_buf()
1042 txbuf->ipv4 = buf->ipv4; in i40iw_ieq_setup_tx_buf()
1043 txbuf->hdrlen = buf->hdrlen; in i40iw_ieq_setup_tx_buf()
1044 i40iw_ieq_copy_to_txbuf(buf, txbuf, 0, 0, buf->hdrlen); in i40iw_ieq_setup_tx_buf()
1077 struct i40iw_puda_buf *txbuf, in i40iw_ieq_compl_pfpdu() argument
1088 txbuf->totallen = buf->hdrlen + fpdu_len; in i40iw_ieq_compl_pfpdu()
[all …]
/kernel/linux/linux-5.10/drivers/iio/adc/
Dltc2496.c31 unsigned char txbuf[3]; member
40 .tx_buf = st->txbuf, in ltc2496_result_and_measure()
42 .len = sizeof(st->txbuf), in ltc2496_result_and_measure()
46 st->txbuf[0] = LTC2497_ENABLE | address; in ltc2496_result_and_measure()
/kernel/linux/linux-5.10/drivers/spi/
Dspi-zynq-qspi.c139 u8 *txbuf; member
273 if (xqspi->txbuf) { in zynq_qspi_txfifo_op()
275 memcpy(&data, xqspi->txbuf, size); in zynq_qspi_txfifo_op()
276 xqspi->txbuf += size; in zynq_qspi_txfifo_op()
421 if (xqspi->txbuf) { in zynq_qspi_write_op()
423 xqspi->txbuf, count); in zynq_qspi_write_op()
424 xqspi->txbuf += count * 4; in zynq_qspi_write_op()
541 xqspi->txbuf = (u8 *)&op->cmd.opcode; in zynq_qspi_exec_mem_op()
555 xqspi->txbuf[i] = op->addr.val >> in zynq_qspi_exec_mem_op()
575 xqspi->txbuf = tmpbuf; in zynq_qspi_exec_mem_op()
[all …]
Dspi-coldfire-qspi.c154 const u8 *txbuf, u8 *rxbuf) in mcfqspi_transfer_msg8() argument
165 if (txbuf) in mcfqspi_transfer_msg8()
167 mcfqspi_wr_qdr(mcfqspi, *txbuf++); in mcfqspi_transfer_msg8()
189 if (txbuf) { in mcfqspi_transfer_msg8()
193 mcfqspi_wr_qdr(mcfqspi, *txbuf++); in mcfqspi_transfer_msg8()
221 const u16 *txbuf, u16 *rxbuf) in mcfqspi_transfer_msg16() argument
232 if (txbuf) in mcfqspi_transfer_msg16()
234 mcfqspi_wr_qdr(mcfqspi, *txbuf++); in mcfqspi_transfer_msg16()
256 if (txbuf) { in mcfqspi_transfer_msg16()
260 mcfqspi_wr_qdr(mcfqspi, *txbuf++); in mcfqspi_transfer_msg16()
Dspi-zynqmp-gqspi.c166 const void *txbuf; member
511 while ((xqspi->bytes_to_transfer > 0) && (count < size) && (xqspi->txbuf)) { in zynqmp_qspi_filltxfifo()
512 memcpy(&intermediate, xqspi->txbuf, 4); in zynqmp_qspi_filltxfifo()
516 xqspi->txbuf += 4; in zynqmp_qspi_filltxfifo()
519 xqspi->txbuf += xqspi->bytes_to_transfer; in zynqmp_qspi_filltxfifo()
565 if (xqspi->txbuf) { in zynqmp_qspi_fillgenfifo()
955 xqspi->txbuf = &opcode; in zynqmp_qspi_exec_op()
974 xqspi->txbuf = &opaddr; in zynqmp_qspi_exec_op()
976 *(((u8 *)xqspi->txbuf) + i) = op->addr.val >> in zynqmp_qspi_exec_op()
1001 xqspi->txbuf = NULL; in zynqmp_qspi_exec_op()
[all …]
Dspi-ti-qspi.c249 const u8 *txbuf; in qspi_write_msg() local
252 txbuf = t->tx_buf; in qspi_write_msg()
264 cmd, qspi->dc, *txbuf); in qspi_write_msg()
266 u32 *txp = (u32 *)txbuf; in qspi_write_msg()
283 writeb(*txbuf, qspi->base + QSPI_SPI_DATA_REG); in qspi_write_msg()
291 cmd, qspi->dc, *txbuf); in qspi_write_msg()
292 writew(*((u16 *)txbuf), qspi->base + QSPI_SPI_DATA_REG); in qspi_write_msg()
296 cmd, qspi->dc, *txbuf); in qspi_write_msg()
297 writel(*((u32 *)txbuf), qspi->base + QSPI_SPI_DATA_REG); in qspi_write_msg()
306 txbuf += xfer_len; in qspi_write_msg()
/kernel/linux/linux-5.10/sound/soc/codecs/
Drt5514-spi.c397 int rt5514_spi_burst_write(u32 addr, const u8 *txbuf, size_t len) in rt5514_spi_burst_write() argument
421 write_buf[i + 12] = txbuf[offset + i + 0]; in rt5514_spi_burst_write()
422 write_buf[i + 11] = txbuf[offset + i + 1]; in rt5514_spi_burst_write()
423 write_buf[i + 10] = txbuf[offset + i + 2]; in rt5514_spi_burst_write()
424 write_buf[i + 9] = txbuf[offset + i + 3]; in rt5514_spi_burst_write()
425 write_buf[i + 8] = txbuf[offset + i + 4]; in rt5514_spi_burst_write()
426 write_buf[i + 7] = txbuf[offset + i + 5]; in rt5514_spi_burst_write()
427 write_buf[i + 6] = txbuf[offset + i + 6]; in rt5514_spi_burst_write()
428 write_buf[i + 5] = txbuf[offset + i + 7]; in rt5514_spi_burst_write()
Dzl38060.c484 u8 txbuf[4]; in zl38_bus_read() local
493 txbuf[len++] = 0xFE; in zl38_bus_read()
494 txbuf[len++] = page == HBI_FIRMWARE_PAGE ? 0xFF : page - 1; in zl38_bus_read()
495 txbuf[len++] = offs; in zl38_bus_read()
496 txbuf[len++] = val_size / 2 - 1; in zl38_bus_read()
498 txbuf[len++] = offs | 0x80; in zl38_bus_read()
499 txbuf[len++] = val_size / 2 - 1; in zl38_bus_read()
502 return spi_write_then_read(spi, txbuf, len, val_buf, val_size); in zl38_bus_read()
Drt5677-spi.h14 int rt5677_spi_write(u32 addr, const void *txbuf, size_t len);
22 static inline int rt5677_spi_write(u32 addr, const void *txbuf, size_t len) in rt5677_spi_write() argument
/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-cpm.c111 u_char *txbuf[CPM_MAXBD]; member
196 tb = cpm->txbuf[tx]; in cpm_i2c_parse_message()
252 tb = cpm->txbuf[tx]; in cpm_i2c_check_message()
537 cpm->txbuf[i] = dma_alloc_coherent(&cpm->ofdev->dev, in cpm_i2c_setup()
540 if (!cpm->txbuf[i]) { in cpm_i2c_setup()
586 if (cpm->txbuf[i]) in cpm_i2c_setup()
588 cpm->txbuf[i], cpm->txdma[i]); in cpm_i2c_setup()
621 cpm->txbuf[i], cpm->txdma[i]); in cpm_i2c_shutdown()

1234