/linux-6.6.21/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 …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/drivers/hid/ ! |
D | hid-mcp2221.c | 99 u8 txbuf[64]; member 174 memset(mcp->txbuf, 0, 8); in mcp_chk_last_cmd_status() 175 mcp->txbuf[0] = MCP2221_I2C_PARAM_OR_STATUS; in mcp_chk_last_cmd_status() 177 return mcp_send_data_req_status(mcp, mcp->txbuf, 8); in mcp_chk_last_cmd_status() 183 memset(mcp->txbuf, 0, 8); in mcp_cancel_last_cmd() 184 mcp->txbuf[0] = MCP2221_I2C_PARAM_OR_STATUS; in mcp_cancel_last_cmd() 185 mcp->txbuf[2] = MCP2221_I2C_CANCEL; in mcp_cancel_last_cmd() 187 return mcp_send_data_req_status(mcp, mcp->txbuf, 8); in mcp_cancel_last_cmd() 194 memset(mcp->txbuf, 0, 8); in mcp_set_i2c_speed() 195 mcp->txbuf[0] = MCP2221_I2C_PARAM_OR_STATUS; in mcp_set_i2c_speed() [all …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/drivers/iio/potentiometer/ ! |
D | x9250.c | 37 u8 txbuf[3]; in x9250_write8() local 39 txbuf[0] = X9250_ID; in x9250_write8() 40 txbuf[1] = cmd; in x9250_write8() 41 txbuf[2] = val; in x9250_write8() 43 return spi_write_then_read(x9250->spi, txbuf, ARRAY_SIZE(txbuf), NULL, 0); in x9250_write8() 48 u8 txbuf[2]; in x9250_read8() local 50 txbuf[0] = X9250_ID; in x9250_read8() 51 txbuf[1] = cmd; in x9250_read8() 53 return spi_write_then_read(x9250->spi, txbuf, ARRAY_SIZE(txbuf), val, 1); in x9250_read8()
|
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/nfdk/ ! |
D | dp.c | 40 nfp_nfdk_tx_tso(struct nfp_net_r_vector *r_vec, struct nfp_nfdk_tx_buf *txbuf, in nfp_nfdk_tx_tso() argument 67 txbuf->pkt_cnt = segs; in nfp_nfdk_tx_tso() 68 txbuf->real_len = skb->len + hdrlen * (txbuf->pkt_cnt - 1); in nfp_nfdk_tx_tso() 253 struct nfp_nfdk_tx_buf *txbuf, *etxbuf; in nfp_nfdk_tx() local 300 txbuf = &tx_ring->ktxbufs[wr_idx]; in nfp_nfdk_tx() 314 txbuf->skb = skb; in nfp_nfdk_tx() 315 txbuf++; in nfp_nfdk_tx() 317 txbuf->dma_addr = dma_addr; in nfp_nfdk_tx() 318 txbuf++; in nfp_nfdk_tx() 376 txbuf->dma_addr = dma_addr; in nfp_nfdk_tx() [all …]
|
D | rings.c | 19 struct nfp_nfdk_tx_buf *txbuf; in nfp_nfdk_tx_ring_reset() local 24 txbuf = &tx_ring->ktxbufs[rd_idx]; in nfp_nfdk_tx_ring_reset() 26 skb = txbuf->skb; in nfp_nfdk_tx_ring_reset() 33 txbuf++; in nfp_nfdk_tx_ring_reset() 37 dma_unmap_single(dev, txbuf->dma_addr, size, DMA_TO_DEVICE); in nfp_nfdk_tx_ring_reset() 39 txbuf++; in nfp_nfdk_tx_ring_reset() 45 dma_unmap_page(dev, txbuf->dma_addr, in nfp_nfdk_tx_ring_reset() 49 txbuf++; in nfp_nfdk_tx_ring_reset()
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/nfd3/ ! |
D | xsk.c | 22 struct nfp_nfd3_tx_buf *txbuf; in nfp_nfd3_xsk_tx_xdp() local 34 txbuf = &tx_ring->txbufs[wr_idx]; in nfp_nfd3_xsk_tx_xdp() 35 txbuf->xdp = xrxbuf->xdp; in nfp_nfd3_xsk_tx_xdp() 36 txbuf->real_len = pkt_len; in nfp_nfd3_xsk_tx_xdp() 37 txbuf->is_xsk_tx = true; in nfp_nfd3_xsk_tx_xdp() 267 void nfp_nfd3_xsk_tx_free(struct nfp_nfd3_tx_buf *txbuf) in nfp_nfd3_xsk_tx_free() argument 269 xsk_buff_free(txbuf->xdp); in nfp_nfd3_xsk_tx_free() 271 txbuf->dma_addr = 0; in nfp_nfd3_xsk_tx_free() 272 txbuf->xdp = NULL; in nfp_nfd3_xsk_tx_free() 301 struct nfp_nfd3_tx_buf *txbuf; in nfp_nfd3_xsk_complete() local [all …]
|
D | dp.c | 74 nfp_nfd3_tx_tso(struct nfp_net_r_vector *r_vec, struct nfp_nfd3_tx_buf *txbuf, in nfp_nfd3_tx_tso() argument 93 txbuf->pkt_cnt = skb_shinfo(skb)->gso_segs; in nfp_nfd3_tx_tso() 94 txbuf->real_len += hdrlen * (txbuf->pkt_cnt - 1); in nfp_nfd3_tx_tso() 121 struct nfp_nfd3_tx_buf *txbuf, struct nfp_nfd3_tx_desc *txd, in nfp_nfd3_tx_csum() argument 165 r_vec->hw_csum_tx_inner += txbuf->pkt_cnt; in nfp_nfd3_tx_csum() 167 r_vec->hw_csum_tx += txbuf->pkt_cnt; in nfp_nfd3_tx_csum() 258 struct nfp_nfd3_tx_buf *txbuf; in nfp_nfd3_tx() local 307 txbuf = &tx_ring->txbufs[wr_idx]; in nfp_nfd3_tx() 308 txbuf->skb = skb; in nfp_nfd3_tx() 309 txbuf->dma_addr = dma_addr; in nfp_nfd3_tx() [all …]
|
D | rings.c | 13 struct nfp_nfd3_tx_buf *txbuf; in nfp_nfd3_xsk_tx_bufs_free() local 18 txbuf = &tx_ring->txbufs[idx]; in nfp_nfd3_xsk_tx_bufs_free() 20 txbuf->real_len = 0; in nfp_nfd3_xsk_tx_bufs_free() 26 if (txbuf->is_xsk_tx) in nfp_nfd3_xsk_tx_bufs_free() 27 nfp_nfd3_xsk_tx_free(txbuf); in nfp_nfd3_xsk_tx_bufs_free()
|
/linux-6.6.21/drivers/media/rc/ ! |
D | gpio-ir-tx.c | 75 static void gpio_ir_tx_unmodulated(struct gpio_ir *gpio_ir, uint *txbuf, in gpio_ir_tx_unmodulated() argument 88 edge = ktime_add_us(edge, txbuf[i]); in gpio_ir_tx_unmodulated() 95 static void gpio_ir_tx_modulated(struct gpio_ir *gpio_ir, uint *txbuf, in gpio_ir_tx_modulated() argument 120 edge = ktime_add_us(edge, txbuf[i]); in gpio_ir_tx_modulated() 124 ktime_t last = ktime_add_us(edge, txbuf[i]); in gpio_ir_tx_modulated() 146 static int gpio_ir_tx(struct rc_dev *dev, unsigned int *txbuf, in gpio_ir_tx() argument 154 gpio_ir_tx_modulated(gpio_ir, txbuf, count); in gpio_ir_tx() 156 gpio_ir_tx_unmodulated(gpio_ir, txbuf, count); in gpio_ir_tx()
|
D | lirc_dev.c | 219 unsigned int *txbuf; in lirc_transmit() local 285 txbuf = kmalloc_array(count, sizeof(unsigned int), GFP_KERNEL); in lirc_transmit() 286 if (!txbuf) { in lirc_transmit() 292 txbuf[i] = raw[i].duration; in lirc_transmit() 312 txbuf = memdup_user(buf, n); in lirc_transmit() 313 if (IS_ERR(txbuf)) { in lirc_transmit() 314 ret = PTR_ERR(txbuf); in lirc_transmit() 320 if (txbuf[i] > IR_MAX_DURATION - duration || !txbuf[i]) { in lirc_transmit() 325 duration += txbuf[i]; in lirc_transmit() 330 ret = dev->tx_ir(dev, txbuf, count); in lirc_transmit() [all …]
|
/linux-6.6.21/drivers/infiniband/hw/irdma/ ! |
D | puda.c | 1200 struct irdma_puda_buf *txbuf, in irdma_ieq_copy_to_txbuf() argument 1204 void *mem2 = (u8 *)txbuf->mem.va + txbuf_offset; in irdma_ieq_copy_to_txbuf() 1215 struct irdma_puda_buf *txbuf) in irdma_ieq_setup_tx_buf() argument 1217 txbuf->tcphlen = buf->tcphlen; in irdma_ieq_setup_tx_buf() 1218 txbuf->ipv4 = buf->ipv4; in irdma_ieq_setup_tx_buf() 1221 txbuf->hdrlen = txbuf->tcphlen; in irdma_ieq_setup_tx_buf() 1222 irdma_ieq_copy_to_txbuf(buf, txbuf, IRDMA_TCP_OFFSET, 0, in irdma_ieq_setup_tx_buf() 1223 txbuf->hdrlen); in irdma_ieq_setup_tx_buf() 1225 txbuf->maclen = buf->maclen; in irdma_ieq_setup_tx_buf() 1226 txbuf->hdrlen = buf->hdrlen; in irdma_ieq_setup_tx_buf() [all …]
|
/linux-6.6.21/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()
|
/linux-6.6.21/drivers/mfd/ ! |
D | rk8xx-spi.c | 68 char txbuf[3] = { 0 }; in rk806_spi_bus_read() local 75 txbuf[0] = RK806_CMD_WITH_SIZE(READ, val_size); in rk806_spi_bus_read() 76 memcpy(txbuf+1, vreg, reg_size); in rk806_spi_bus_read() 78 return spi_write_then_read(spi, txbuf, sizeof(txbuf), val, val_size); in rk806_spi_bus_read()
|
/linux-6.6.21/drivers/iio/adc/ ! |
D | ltc2496.c | 32 unsigned char txbuf[3]; member 41 .tx_buf = st->txbuf, in ltc2496_result_and_measure() 43 .len = sizeof(st->txbuf), in ltc2496_result_and_measure() 47 st->txbuf[0] = LTC2497_ENABLE | address; in ltc2496_result_and_measure()
|
/linux-6.6.21/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-microchip-core-qspi.c | 119 u8 *txbuf; member 208 data = *(u32 *)qspi->txbuf; in mchp_coreqspi_write_op() 209 qspi->txbuf += 4; in mchp_coreqspi_write_op() 220 data = *qspi->txbuf++; in mchp_coreqspi_write_op() 412 qspi->txbuf = &opcode; in mchp_coreqspi_exec_op() 419 qspi->txbuf = &opaddr[0]; in mchp_coreqspi_exec_op() 422 qspi->txbuf[i] = address >> (8 * (op->addr.nbytes - i - 1)); in mchp_coreqspi_exec_op() 432 qspi->txbuf = (u8 *)op->data.buf.out; in mchp_coreqspi_exec_op() 438 qspi->txbuf = NULL; in mchp_coreqspi_exec_op()
|
/linux-6.6.21/sound/soc/codecs/ ! |
D | rt5514-spi.c | 397 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()
|
D | zl38060.c | 483 u8 txbuf[4]; in zl38_bus_read() local 492 txbuf[len++] = 0xFE; in zl38_bus_read() 493 txbuf[len++] = page == HBI_FIRMWARE_PAGE ? 0xFF : page - 1; in zl38_bus_read() 494 txbuf[len++] = offs; in zl38_bus_read() 495 txbuf[len++] = val_size / 2 - 1; in zl38_bus_read() 497 txbuf[len++] = offs | 0x80; in zl38_bus_read() 498 txbuf[len++] = val_size / 2 - 1; in zl38_bus_read() 501 return spi_write_then_read(spi, txbuf, len, val_buf, val_size); in zl38_bus_read()
|
/linux-6.6.21/drivers/net/mctp/ ! |
D | mctp-serial.c | 67 unsigned char txbuf[BUFSIZE], member 87 if (needs_escape(dev->txbuf[dev->txpos])) in next_chunk_len() 95 if (needs_escape(dev->txbuf[dev->txpos + i + 1])) in next_chunk_len() 143 buf[0] = dev->txbuf[dev->txpos] & ~0x20; in mctp_serial_tx_work() 160 c = dev->txbuf[dev->txpos]; in mctp_serial_tx_work() 174 dev->txbuf + dev->txpos, in mctp_serial_tx_work() 180 dev->txbuf + in mctp_serial_tx_work() 246 skb_copy_bits(skb, 0, dev->txbuf, skb->len); in mctp_serial_tx()
|