/drivers/net/dsa/b53/ |
D | b53_spi.c | 45 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 …]
|
/drivers/hid/ |
D | hid-mcp2221.c | 93 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 …]
|
/drivers/misc/ |
D | lattice-ecp3-config.c | 70 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 …]
|
/drivers/rtc/ |
D | rtc-rs5c348.c | 63 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 …]
|
D | rtc-pcf2123.c | 207 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 …]
|
D | rtc-r9701.c | 54 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()
|
/drivers/iio/chemical/ |
D | scd30_serial.c | 55 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 …]
|
/drivers/net/wireless/ath/ath10k/ |
D | htt_tx.c | 229 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 …]
|
/drivers/infiniband/hw/irdma/ |
D | puda.c | 1210 struct irdma_puda_buf *txbuf, in irdma_ieq_copy_to_txbuf() argument 1214 void *mem2 = (u8 *)txbuf->mem.va + txbuf_offset; in irdma_ieq_copy_to_txbuf() 1225 struct irdma_puda_buf *txbuf) in irdma_ieq_setup_tx_buf() argument 1227 txbuf->tcphlen = buf->tcphlen; in irdma_ieq_setup_tx_buf() 1228 txbuf->ipv4 = buf->ipv4; in irdma_ieq_setup_tx_buf() 1231 txbuf->hdrlen = txbuf->tcphlen; in irdma_ieq_setup_tx_buf() 1232 irdma_ieq_copy_to_txbuf(buf, txbuf, IRDMA_TCP_OFFSET, 0, in irdma_ieq_setup_tx_buf() 1233 txbuf->hdrlen); in irdma_ieq_setup_tx_buf() 1235 txbuf->maclen = buf->maclen; in irdma_ieq_setup_tx_buf() 1236 txbuf->hdrlen = buf->hdrlen; in irdma_ieq_setup_tx_buf() [all …]
|
/drivers/media/rc/ |
D | gpio-ir-tx.c | 70 static void gpio_ir_tx_unmodulated(struct gpio_ir *gpio_ir, uint *txbuf, in gpio_ir_tx_unmodulated() argument 83 edge = ktime_add_us(edge, txbuf[i]); in gpio_ir_tx_unmodulated() 90 static void gpio_ir_tx_modulated(struct gpio_ir *gpio_ir, uint *txbuf, in gpio_ir_tx_modulated() argument 115 edge = ktime_add_us(edge, txbuf[i]); in gpio_ir_tx_modulated() 119 ktime_t last = ktime_add_us(edge, txbuf[i]); in gpio_ir_tx_modulated() 141 static int gpio_ir_tx(struct rc_dev *dev, unsigned int *txbuf, in gpio_ir_tx() argument 149 gpio_ir_tx_modulated(gpio_ir, txbuf, count); in gpio_ir_tx() 151 gpio_ir_tx_unmodulated(gpio_ir, txbuf, count); in gpio_ir_tx()
|
D | lirc_dev.c | 230 unsigned int *txbuf; in lirc_transmit() local 296 txbuf = kmalloc_array(count, sizeof(unsigned int), GFP_KERNEL); in lirc_transmit() 297 if (!txbuf) { in lirc_transmit() 303 txbuf[i] = raw[i].duration; in lirc_transmit() 323 txbuf = memdup_user(buf, n); in lirc_transmit() 324 if (IS_ERR(txbuf)) { in lirc_transmit() 325 ret = PTR_ERR(txbuf); in lirc_transmit() 331 if (txbuf[i] > IR_MAX_DURATION - duration || !txbuf[i]) { in lirc_transmit() 336 duration += txbuf[i]; in lirc_transmit() 341 ret = dev->tx_ir(dev, txbuf, count); in lirc_transmit() [all …]
|
D | winbond-cir.c | 209 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 …]
|
/drivers/staging/fbtft/ |
D | fbtft-bus.c | 124 __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()
|
D | fb_watterott.c | 63 __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()
|
D | fbtft-io.c | 88 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()
|
D | fb_uc1611.c | 222 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()
|
D | fb_ra8875.c | 260 tx_array_size = par->txbuf.len / 2; in write_vmem16_bus8() 261 txbuf16 = par->txbuf.buf + 1; in write_vmem16_bus8() 263 *(u8 *)(par->txbuf.buf) = 0x00; in write_vmem16_bus8() 275 ret = par->fbtftops.write(par, par->txbuf.buf, in write_vmem16_bus8()
|
/drivers/iio/accel/ |
D | sca3300.c | 118 u8 txbuf[4] ____cacheline_aligned; member 133 .tx_buf = sca_data->txbuf, in sca3300_transfer() 134 .len = ARRAY_SIZE(sca_data->txbuf), in sca3300_transfer() 146 crc = ~crc8(sca3300_crc_table, &sca_data->txbuf[0], 3, CRC8_INIT_VALUE); in sca3300_transfer() 147 sca_data->txbuf[3] = crc; in sca3300_transfer() 178 sca_data->txbuf[0] = SCA3300_REG_STATUS << 2; in sca3300_error_handler() 202 sca_data->txbuf[0] = reg << 2; in sca3300_read_reg() 218 sca_data->txbuf[0] = BIT(7) | (reg << 2); in sca3300_write_reg() 219 put_unaligned_be16(val, &sca_data->txbuf[1]); in sca3300_write_reg()
|
/drivers/iio/adc/ |
D | ltc2496.c | 31 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()
|
/drivers/spi/ |
D | spi-zynq-qspi.c | 139 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() 578 xqspi->txbuf = tmpbuf; in zynq_qspi_exec_mem_op() [all …]
|
D | spi-coldfire-qspi.c | 154 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()
|
D | spi-zynqmp-gqspi.c | 166 const void *txbuf; member 511 while ((xqspi->bytes_to_transfer > 0) && (count < size) && (xqspi->txbuf)) { in zynqmp_qspi_filltxfifo() 513 memcpy(&intermediate, xqspi->txbuf, 4); in zynqmp_qspi_filltxfifo() 514 xqspi->txbuf += 4; in zynqmp_qspi_filltxfifo() 518 memcpy(&intermediate, xqspi->txbuf, in zynqmp_qspi_filltxfifo() 520 xqspi->txbuf += xqspi->bytes_to_transfer; in zynqmp_qspi_filltxfifo() 567 if (xqspi->txbuf) { in zynqmp_qspi_fillgenfifo() 957 xqspi->txbuf = &opcode; in zynqmp_qspi_exec_op() 976 xqspi->txbuf = &opaddr; in zynqmp_qspi_exec_op() 978 *(((u8 *)xqspi->txbuf) + i) = op->addr.val >> in zynqmp_qspi_exec_op() [all …]
|
D | spi-ti-qspi.c | 249 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()
|
/drivers/gpu/drm/i915/display/ |
D | intel_dp_aux.c | 408 intel_dp_aux_header(u8 txbuf[HEADER_SIZE], in intel_dp_aux_header() 411 txbuf[0] = (msg->request << 4) | ((msg->address >> 16) & 0xf); in intel_dp_aux_header() 412 txbuf[1] = (msg->address >> 8) & 0xff; in intel_dp_aux_header() 413 txbuf[2] = msg->address & 0xff; in intel_dp_aux_header() 414 txbuf[3] = msg->size - 1; in intel_dp_aux_header() 436 u8 txbuf[20], rxbuf[20]; in intel_dp_aux_transfer() local 441 intel_dp_aux_header(txbuf, msg); in intel_dp_aux_transfer() 456 memcpy(txbuf + HEADER_SIZE, msg->buffer, msg->size); in intel_dp_aux_transfer() 458 ret = intel_dp_aux_xfer(intel_dp, txbuf, txsize, in intel_dp_aux_transfer() 481 ret = intel_dp_aux_xfer(intel_dp, txbuf, txsize, in intel_dp_aux_transfer()
|
/drivers/i2c/busses/ |
D | i2c-cpm.c | 111 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()
|