/linux-6.1.9/drivers/net/wireless/ath/ath9k/ |
D | hif_usb.c | 257 struct tx_buf *tx_buf = (struct tx_buf *) urb->context; in hif_usb_tx_cb() local 261 if (!tx_buf || !tx_buf->hif_dev) in hif_usb_tx_cb() 264 hif_dev = tx_buf->hif_dev; in hif_usb_tx_cb() 282 ath9k_skb_queue_purge(hif_dev, &tx_buf->skb_queue); in hif_usb_tx_cb() 293 ath9k_skb_queue_complete(hif_dev, &tx_buf->skb_queue, txok); in hif_usb_tx_cb() 296 tx_buf->len = tx_buf->offset = 0; in hif_usb_tx_cb() 297 __skb_queue_head_init(&tx_buf->skb_queue); in hif_usb_tx_cb() 301 list_move_tail(&tx_buf->list, &hif_dev->tx.tx_buf); in hif_usb_tx_cb() 312 struct tx_buf *tx_buf = NULL; in __hif_usb_tx() local 323 if (list_empty(&hif_dev->tx.tx_buf)) in __hif_usb_tx() [all …]
|
/linux-6.1.9/drivers/spi/ |
D | spi-loopback-test.c | 85 .tx_buf = TX(0), 99 .tx_buf = TX(PAGE_SIZE - 4), 112 .tx_buf = TX(0), 137 .tx_buf = TX(0), 141 .tx_buf = TX(SPI_TEST_MAX_SIZE_HALF), 154 .tx_buf = TX(64), 158 .tx_buf = TX(0), 172 .tx_buf = TX(0), 175 .tx_buf = TX(64), 188 .tx_buf = TX(0), [all …]
|
D | spi-cavium.c | 39 const u8 *tx_buf; in octeon_spi_do_transfer() local 68 tx_buf = xfer->tx_buf; in octeon_spi_do_transfer() 74 if (tx_buf) in octeon_spi_do_transfer() 75 d = *tx_buf++; in octeon_spi_do_transfer() 83 mpi_tx.s.txnum = tx_buf ? OCTEON_SPI_MAX_BYTES : 0; in octeon_spi_do_transfer() 98 if (tx_buf) in octeon_spi_do_transfer() 99 d = *tx_buf++; in octeon_spi_do_transfer() 111 mpi_tx.s.txnum = tx_buf ? len : 0; in octeon_spi_do_transfer()
|
D | spi-xlp.c | 92 const u8 *tx_buf; /* tx data buffer */ member 213 tx_data |= xspi->tx_buf[i] << (j * 8); in xlp_spi_fill_txfifo() 217 xspi->tx_buf += nbytes; in xlp_spi_fill_txfifo() 259 if (xspi->tx_buf) in xlp_spi_send_cmd() 270 const unsigned char *tx_buf, in xlp_spi_xfer_block() argument 276 xs->tx_buf = tx_buf; in xlp_spi_xfer_block() 278 xs->tx_len = (xs->tx_buf == NULL) ? 0 : xfer_len; in xlp_spi_xfer_block() 323 const unsigned char *tx_buf; in xlp_spi_txrx_bufs() local 325 tx_buf = t->tx_buf; in xlp_spi_txrx_bufs() 330 sz = xlp_spi_xfer_block(xs, tx_buf, rx_buf, in xlp_spi_txrx_bufs() [all …]
|
D | spi-realtek-rtl.c | 98 const void *tx_buf; in transfer_one() local 101 tx_buf = xfer->tx_buf; in transfer_one() 104 if (tx_buf) { in transfer_one() 106 send4(rtspi, tx_buf); in transfer_one() 107 tx_buf += 4; in transfer_one() 111 send1(rtspi, tx_buf); in transfer_one() 112 tx_buf++; in transfer_one()
|
D | spi-clps711x.c | 30 u8 *tx_buf; member 59 hw->tx_buf = (u8 *)xfer->tx_buf; in spi_clps711x_transfer_one() 63 data = hw->tx_buf ? *hw->tx_buf++ : 0; in spi_clps711x_transfer_one() 82 data = hw->tx_buf ? *hw->tx_buf++ : 0; in spi_clps711x_isr()
|
D | spi-sh-msiof.c | 391 const void *tx_buf, void *rx_buf, in sh_msiof_spi_set_mode_regs() argument 396 if (tx_buf || (p->ctlr->flags & SPI_CONTROLLER_MUST_TX)) in sh_msiof_spi_set_mode_regs() 412 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_8() argument 414 const u8 *buf_8 = tx_buf; in sh_msiof_spi_write_fifo_8() 422 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_16() argument 424 const u16 *buf_16 = tx_buf; in sh_msiof_spi_write_fifo_16() 432 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_16u() argument 434 const u16 *buf_16 = tx_buf; in sh_msiof_spi_write_fifo_16u() 442 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_32() argument 444 const u32 *buf_32 = tx_buf; in sh_msiof_spi_write_fifo_32() [all …]
|
/linux-6.1.9/drivers/net/ethernet/intel/ice/ |
D | ice_txrx.c | 36 struct ice_tx_buf *tx_buf, *first; in ice_prgm_fdir_fltr() local 68 first = &tx_ring->tx_buf[i]; in ice_prgm_fdir_fltr() 75 tx_buf = &tx_ring->tx_buf[i]; in ice_prgm_fdir_fltr() 80 memset(tx_buf, 0, sizeof(*tx_buf)); in ice_prgm_fdir_fltr() 81 dma_unmap_len_set(tx_buf, len, ICE_FDIR_MAX_RAW_PKT_SIZE); in ice_prgm_fdir_fltr() 82 dma_unmap_addr_set(tx_buf, dma, dma); in ice_prgm_fdir_fltr() 88 tx_buf->tx_flags = ICE_TX_FLAGS_DUMMY_PKT; in ice_prgm_fdir_fltr() 89 tx_buf->raw_buf = raw_packet; in ice_prgm_fdir_fltr() 113 ice_unmap_and_free_tx_buf(struct ice_tx_ring *ring, struct ice_tx_buf *tx_buf) in ice_unmap_and_free_tx_buf() argument 115 if (tx_buf->skb) { in ice_unmap_and_free_tx_buf() [all …]
|
D | ice_txrx_lib.c | 234 struct ice_tx_buf *tx_buf; in ice_clean_xdp_irq() local 243 tx_buf = &xdp_ring->tx_buf[ntc]; in ice_clean_xdp_irq() 245 total_bytes += tx_buf->bytecount; in ice_clean_xdp_irq() 251 page_frag_free(tx_buf->raw_buf); in ice_clean_xdp_irq() 252 dma_unmap_single(xdp_ring->dev, dma_unmap_addr(tx_buf, dma), in ice_clean_xdp_irq() 253 dma_unmap_len(tx_buf, len), DMA_TO_DEVICE); in ice_clean_xdp_irq() 254 dma_unmap_len_set(tx_buf, len, 0); in ice_clean_xdp_irq() 255 tx_buf->raw_buf = NULL; in ice_clean_xdp_irq() 281 struct ice_tx_buf *tx_buf; in ice_xmit_xdp_ring() local 296 tx_buf = &xdp_ring->tx_buf[i]; in ice_xmit_xdp_ring() [all …]
|
/linux-6.1.9/drivers/hid/intel-ish-hid/ishtp/ |
D | client-buffers.c | 67 struct ishtp_cl_tx_ring *tx_buf; in ishtp_cl_alloc_tx_ring() local 69 tx_buf = kzalloc(sizeof(struct ishtp_cl_tx_ring), GFP_KERNEL); in ishtp_cl_alloc_tx_ring() 70 if (!tx_buf) in ishtp_cl_alloc_tx_ring() 73 tx_buf->send_buf.data = kmalloc(len, GFP_KERNEL); in ishtp_cl_alloc_tx_ring() 74 if (!tx_buf->send_buf.data) { in ishtp_cl_alloc_tx_ring() 75 kfree(tx_buf); in ishtp_cl_alloc_tx_ring() 80 list_add_tail(&tx_buf->list, &cl->tx_free_list.list); in ishtp_cl_alloc_tx_ring() 132 struct ishtp_cl_tx_ring *tx_buf; in ishtp_cl_free_tx_ring() local 138 tx_buf = list_entry(cl->tx_free_list.list.next, in ishtp_cl_free_tx_ring() 140 list_del(&tx_buf->list); in ishtp_cl_free_tx_ring() [all …]
|
/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_xdp.c | 31 struct bnxt_sw_tx_bd *tx_buf; in bnxt_xmit_bd() local 45 tx_buf = &txr->tx_buf_ring[prod]; in bnxt_xmit_bd() 46 tx_buf->nr_frags = num_frags; in bnxt_xmit_bd() 48 tx_buf->page = virt_to_head_page(xdp->data); in bnxt_xmit_bd() 99 return tx_buf; in bnxt_xmit_bd() 106 struct bnxt_sw_tx_bd *tx_buf; in __bnxt_xmit_xdp() local 108 tx_buf = bnxt_xmit_bd(bp, txr, mapping, len, xdp); in __bnxt_xmit_xdp() 109 tx_buf->rx_prod = rx_prod; in __bnxt_xmit_xdp() 110 tx_buf->action = XDP_TX; in __bnxt_xmit_xdp() 119 struct bnxt_sw_tx_bd *tx_buf; in __bnxt_xmit_xdp_redirect() local [all …]
|
/linux-6.1.9/drivers/char/tpm/st33zp24/ |
D | spi.c | 61 u8 tx_buf[ST33ZP24_SPI_BUFFER_SIZE]; member 108 .tx_buf = phy->tx_buf, in st33zp24_spi_send() 113 phy->tx_buf[total_length++] = TPM_WRITE_DIRECTION | LOCALITY0; in st33zp24_spi_send() 114 phy->tx_buf[total_length++] = tpm_register; in st33zp24_spi_send() 117 phy->tx_buf[total_length++] = tpm_size >> 8; in st33zp24_spi_send() 118 phy->tx_buf[total_length++] = tpm_size; in st33zp24_spi_send() 121 memcpy(&phy->tx_buf[total_length], tpm_data, tpm_size); in st33zp24_spi_send() 124 memset(&phy->tx_buf[total_length], TPM_DUMMY_BYTE, phy->latency); in st33zp24_spi_send() 151 .tx_buf = phy->tx_buf, in st33zp24_spi_read8_reg() 156 phy->tx_buf[total_length++] = LOCALITY0; in st33zp24_spi_read8_reg() [all …]
|
/linux-6.1.9/drivers/input/rmi4/ |
D | rmi_spi.c | 44 u8 *tx_buf; member 75 rmi_spi->tx_buf = &rmi_spi->rx_buf[buf_size]; in rmi_spi_manage_pools() 113 const struct rmi_spi_cmd *cmd, const u8 *tx_buf, in rmi_spi_xfer() argument 163 rmi_spi->tx_buf[0] = (addr >> 8); in rmi_spi_xfer() 164 rmi_spi->tx_buf[1] = addr & 0xFF; in rmi_spi_xfer() 167 rmi_spi->tx_buf[0] = (addr >> 8) | 0x80; in rmi_spi_xfer() 168 rmi_spi->tx_buf[1] = addr & 0xFF; in rmi_spi_xfer() 175 rmi_spi->tx_buf[0] = 0x40; in rmi_spi_xfer() 176 rmi_spi->tx_buf[1] = (addr >> 8) & 0xFF; in rmi_spi_xfer() 177 rmi_spi->tx_buf[2] = addr & 0xFF; in rmi_spi_xfer() [all …]
|
D | rmi_i2c.c | 38 u8 *tx_buf; member 90 if (!rmi_i2c->tx_buf || rmi_i2c->tx_buf_size < tx_size) { in rmi_i2c_write_block() 91 if (rmi_i2c->tx_buf) in rmi_i2c_write_block() 92 devm_kfree(&client->dev, rmi_i2c->tx_buf); in rmi_i2c_write_block() 94 rmi_i2c->tx_buf = devm_kzalloc(&client->dev, in rmi_i2c_write_block() 97 if (!rmi_i2c->tx_buf) { in rmi_i2c_write_block() 104 rmi_i2c->tx_buf[0] = addr & 0xff; in rmi_i2c_write_block() 105 memcpy(rmi_i2c->tx_buf + 1, buf, len); in rmi_i2c_write_block() 113 retval = i2c_master_send(client, rmi_i2c->tx_buf, tx_size); in rmi_i2c_write_block()
|
/linux-6.1.9/drivers/gpu/drm/panel/ |
D | panel-tpo-td028ttec1.c | 97 u16 tx_buf = JBT_COMMAND | reg; in jbt_ret_write_0() local 103 ret = spi_write(spi, (u8 *)&tx_buf, sizeof(tx_buf)); in jbt_ret_write_0() 118 u16 tx_buf[2]; in jbt_reg_write_1() local 124 tx_buf[0] = JBT_COMMAND | reg; in jbt_reg_write_1() 125 tx_buf[1] = JBT_DATA | data; in jbt_reg_write_1() 127 ret = spi_write(spi, (u8 *)tx_buf, sizeof(tx_buf)); in jbt_reg_write_1() 142 u16 tx_buf[3]; in jbt_reg_write_2() local 148 tx_buf[0] = JBT_COMMAND | reg; in jbt_reg_write_2() 149 tx_buf[1] = JBT_DATA | (data >> 8); in jbt_reg_write_2() 150 tx_buf[2] = JBT_DATA | (data & 0xff); in jbt_reg_write_2() [all …]
|
/linux-6.1.9/drivers/input/touchscreen/ |
D | wdt87xx_i2c.c | 222 u8 tx_buf[] = { 0x22, 0x00, 0x10, 0x0E, 0x23, 0x00 }; in wdt87xx_get_desc() local 225 tx_buf[2] |= desc_idx & 0xF; in wdt87xx_get_desc() 227 error = wdt87xx_i2c_xfer(client, tx_buf, sizeof(tx_buf), in wdt87xx_get_desc() 248 u8 tx_buf[] = { 0x22, 0x00, 0x13, 0x0E, str_idx, 0x23, 0x00 }; in wdt87xx_get_string() local 256 error = wdt87xx_i2c_xfer(client, tx_buf, sizeof(tx_buf), in wdt87xx_get_string() 280 u8 tx_buf[8]; in wdt87xx_get_feature() local 290 tx_buf[tx_len++] = 0x22; in wdt87xx_get_feature() 291 tx_buf[tx_len++] = 0x00; in wdt87xx_get_feature() 293 tx_buf[tx_len++] = 0x30; in wdt87xx_get_feature() 294 tx_buf[tx_len++] = 0x02; in wdt87xx_get_feature() [all …]
|
/linux-6.1.9/drivers/iio/adc/ |
D | ti-adc108s102.c | 81 __be16 tx_buf[9] __aligned(IIO_DMA_MINALIGN); 125 st->tx_buf[cmds++] = cpu_to_be16(ADC108S102_CMD(bit)); in adc108s102_update_scan_mode() 128 st->tx_buf[cmds++] = 0x00; in adc108s102_update_scan_mode() 131 st->ring_xfer.tx_buf = &st->tx_buf[0]; in adc108s102_update_scan_mode() 133 st->ring_xfer.len = cmds * sizeof(st->tx_buf[0]); in adc108s102_update_scan_mode() 167 st->tx_buf[0] = cpu_to_be16(ADC108S102_CMD(ch)); in adc108s102_scan_direct() 271 st->scan_single_xfer.tx_buf = st->tx_buf; in adc108s102_probe() 273 st->scan_single_xfer.len = 2 * sizeof(st->tx_buf[0]); in adc108s102_probe()
|
D | ad7298.c | 53 __be16 tx_buf[2]; member 120 st->tx_buf[0] = cpu_to_be16(command); in ad7298_update_scan_mode() 123 st->ring_xfer[0].tx_buf = &st->tx_buf[0]; in ad7298_update_scan_mode() 126 st->ring_xfer[1].tx_buf = &st->tx_buf[1]; in ad7298_update_scan_mode() 169 st->tx_buf[0] = cpu_to_be16(AD7298_WRITE | st->ext_ref | in ad7298_scan_direct() 328 st->scan_single_xfer[0].tx_buf = &st->tx_buf[0]; in ad7298_probe() 331 st->scan_single_xfer[1].tx_buf = &st->tx_buf[1]; in ad7298_probe()
|
D | ti-ads8344.c | 31 u8 tx_buf __aligned(IIO_DMA_MINALIGN); 82 adc->tx_buf = ADS8344_START; in ads8344_adc_conversion() 84 adc->tx_buf |= ADS8344_SINGLE_END; in ads8344_adc_conversion() 85 adc->tx_buf |= ADS8344_CHANNEL(channel); in ads8344_adc_conversion() 86 adc->tx_buf |= ADS8344_CLOCK_INTERNAL; in ads8344_adc_conversion() 88 ret = spi_write(spi, &adc->tx_buf, 1); in ads8344_adc_conversion()
|
D | ti-adc0832.c | 39 u8 tx_buf[2] __aligned(IIO_DMA_MINALIGN); 140 .tx_buf = adc->tx_buf, in adc0832_adc_conversion() 150 adc->tx_buf[0] = 1 << (adc->mux_bits + 1); in adc0832_adc_conversion() 152 adc->tx_buf[0] |= differential ? 0 : (1 << adc->mux_bits); in adc0832_adc_conversion() 154 adc->tx_buf[0] |= (channel % 2) << (adc->mux_bits - 1); in adc0832_adc_conversion() 157 adc->tx_buf[0] |= channel / 2; in adc0832_adc_conversion() 160 adc->tx_buf[0] <<= 1; in adc0832_adc_conversion()
|
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/nfd3/ |
D | rings.c | 48 struct nfp_nfd3_tx_buf *tx_buf; in nfp_nfd3_tx_ring_reset() local 53 tx_buf = &tx_ring->txbufs[idx]; in nfp_nfd3_tx_ring_reset() 58 if (tx_buf->fidx == -1) { in nfp_nfd3_tx_ring_reset() 60 dma_unmap_single(dp->dev, tx_buf->dma_addr, in nfp_nfd3_tx_ring_reset() 64 frag = &skb_shinfo(skb)->frags[tx_buf->fidx]; in nfp_nfd3_tx_ring_reset() 65 dma_unmap_page(dp->dev, tx_buf->dma_addr, in nfp_nfd3_tx_ring_reset() 70 if (tx_buf->fidx == nr_frags - 1) in nfp_nfd3_tx_ring_reset() 73 tx_buf->dma_addr = 0; in nfp_nfd3_tx_ring_reset() 74 tx_buf->skb = NULL; in nfp_nfd3_tx_ring_reset() 75 tx_buf->fidx = -2; in nfp_nfd3_tx_ring_reset()
|
/linux-6.1.9/include/trace/events/ |
D | spi.h | 175 (xfer->tx_buf && xfer->tx_buf != msg->spi->controller->dummy_tx) 193 __dynamic_array(u8, tx_buf, 205 memcpy(__get_dynamic_array(tx_buf), 206 xfer->tx_buf, __get_dynamic_array_len(tx_buf)); 216 __get_dynamic_array_len(tx_buf), __get_dynamic_array(tx_buf),
|
/linux-6.1.9/drivers/mux/ |
D | adgs1408.c | 28 u8 tx_buf[2]; in adgs1408_spi_reg_write() local 30 tx_buf[0] = reg_addr; in adgs1408_spi_reg_write() 31 tx_buf[1] = reg_data; in adgs1408_spi_reg_write() 33 return spi_write_then_read(spi, tx_buf, sizeof(tx_buf), NULL, 0); in adgs1408_spi_reg_write()
|
/linux-6.1.9/drivers/video/fbdev/omap2/omapfb/displays/ |
D | panel-tpo-td028ttec1.c | 58 u16 tx_buf = JBT_COMMAND | reg; in jbt_ret_write_0() local 60 rc = spi_write(ddata->spi_dev, (u8 *)&tx_buf, in jbt_ret_write_0() 72 u16 tx_buf[2]; in jbt_reg_write_1() local 74 tx_buf[0] = JBT_COMMAND | reg; in jbt_reg_write_1() 75 tx_buf[1] = JBT_DATA | data; in jbt_reg_write_1() 76 rc = spi_write(ddata->spi_dev, (u8 *)tx_buf, in jbt_reg_write_1() 88 u16 tx_buf[3]; in jbt_reg_write_2() local 90 tx_buf[0] = JBT_COMMAND | reg; in jbt_reg_write_2() 91 tx_buf[1] = JBT_DATA | (data >> 8); in jbt_reg_write_2() 92 tx_buf[2] = JBT_DATA | (data & 0xff); in jbt_reg_write_2() [all …]
|
/linux-6.1.9/drivers/platform/mellanox/ |
D | mlxbf-tmfifo.c | 124 struct circ_buf tx_buf; member 427 seg = CIRC_SPACE_TO_END(cons->tx_buf.head, cons->tx_buf.tail, in mlxbf_tmfifo_console_output_one() 430 memcpy(cons->tx_buf.buf + cons->tx_buf.head, addr, len); in mlxbf_tmfifo_console_output_one() 432 memcpy(cons->tx_buf.buf + cons->tx_buf.head, addr, seg); in mlxbf_tmfifo_console_output_one() 434 memcpy(cons->tx_buf.buf, addr, len - seg); in mlxbf_tmfifo_console_output_one() 436 cons->tx_buf.head = (cons->tx_buf.head + len) % in mlxbf_tmfifo_console_output_one() 457 avail = CIRC_SPACE(cons->tx_buf.head, cons->tx_buf.tail, in mlxbf_tmfifo_console_output() 512 if (!cons || !cons->tx_buf.buf) in mlxbf_tmfifo_console_tx() 516 size = CIRC_CNT(cons->tx_buf.head, cons->tx_buf.tail, in mlxbf_tmfifo_console_tx() 534 addr = cons->tx_buf.buf + cons->tx_buf.tail; in mlxbf_tmfifo_console_tx() [all …]
|