/Linux-v6.6/drivers/net/ethernet/intel/ice/ |
D | ice_txrx_lib.c | 230 ice_clean_xdp_tx_buf(struct device *dev, struct ice_tx_buf *tx_buf, in ice_clean_xdp_tx_buf() argument 233 dma_unmap_single(dev, dma_unmap_addr(tx_buf, dma), in ice_clean_xdp_tx_buf() 234 dma_unmap_len(tx_buf, len), DMA_TO_DEVICE); in ice_clean_xdp_tx_buf() 235 dma_unmap_len_set(tx_buf, len, 0); in ice_clean_xdp_tx_buf() 237 switch (tx_buf->type) { in ice_clean_xdp_tx_buf() 239 page_frag_free(tx_buf->raw_buf); in ice_clean_xdp_tx_buf() 242 xdp_return_frame_bulk(tx_buf->xdpf, bq); in ice_clean_xdp_tx_buf() 246 tx_buf->type = ICE_TX_BUF_EMPTY; in ice_clean_xdp_tx_buf() 266 idx = xdp_ring->tx_buf[ntc].rs_idx; in ice_clean_xdp_irq() 284 struct ice_tx_buf *tx_buf = &xdp_ring->tx_buf[ntc]; in ice_clean_xdp_irq() local [all …]
|
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->type = ICE_TX_BUF_DUMMY; 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 (dma_unmap_len(tx_buf, len)) in ice_unmap_and_free_tx_buf() [all …]
|
/Linux-v6.6/drivers/spi/ |
D | spi-loopback-test.c | 96 .tx_buf = TX(0), 110 .tx_buf = TX(PAGE_SIZE - 4), 123 .tx_buf = TX(0), 148 .tx_buf = TX(0), 152 .tx_buf = TX(SPI_TEST_MAX_SIZE_HALF), 165 .tx_buf = TX(64), 169 .tx_buf = TX(0), 183 .tx_buf = TX(0), 186 .tx_buf = TX(64), 199 .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 | 390 const void *tx_buf, void *rx_buf, in sh_msiof_spi_set_mode_regs() argument 395 if (tx_buf || (p->ctlr->flags & SPI_CONTROLLER_MUST_TX)) in sh_msiof_spi_set_mode_regs() 411 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_8() argument 413 const u8 *buf_8 = tx_buf; in sh_msiof_spi_write_fifo_8() 421 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_16() argument 423 const u16 *buf_16 = tx_buf; in sh_msiof_spi_write_fifo_16() 431 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_16u() argument 433 const u16 *buf_16 = tx_buf; in sh_msiof_spi_write_fifo_16u() 441 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_32() argument 443 const u32 *buf_32 = tx_buf; in sh_msiof_spi_write_fifo_32() [all …]
|
/Linux-v6.6/drivers/net/wireless/ath/ath9k/ |
D | hif_usb.c | 255 struct tx_buf *tx_buf = (struct tx_buf *) urb->context; in hif_usb_tx_cb() local 259 if (!tx_buf || !tx_buf->hif_dev) in hif_usb_tx_cb() 262 hif_dev = tx_buf->hif_dev; in hif_usb_tx_cb() 280 ath9k_skb_queue_purge(hif_dev, &tx_buf->skb_queue); in hif_usb_tx_cb() 291 ath9k_skb_queue_complete(hif_dev, &tx_buf->skb_queue, txok); in hif_usb_tx_cb() 294 tx_buf->len = tx_buf->offset = 0; in hif_usb_tx_cb() 295 __skb_queue_head_init(&tx_buf->skb_queue); in hif_usb_tx_cb() 299 list_move_tail(&tx_buf->list, &hif_dev->tx.tx_buf); in hif_usb_tx_cb() 310 struct tx_buf *tx_buf = NULL; in __hif_usb_tx() local 321 if (list_empty(&hif_dev->tx.tx_buf)) in __hif_usb_tx() [all …]
|
/Linux-v6.6/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-v6.6/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-v6.6/drivers/char/tpm/st33zp24/ |
D | spi.c | 57 u8 tx_buf[ST33ZP24_SPI_BUFFER_SIZE]; member 103 .tx_buf = phy->tx_buf, in st33zp24_spi_send() 108 phy->tx_buf[total_length++] = TPM_WRITE_DIRECTION | LOCALITY0; in st33zp24_spi_send() 109 phy->tx_buf[total_length++] = tpm_register; in st33zp24_spi_send() 112 phy->tx_buf[total_length++] = tpm_size >> 8; in st33zp24_spi_send() 113 phy->tx_buf[total_length++] = tpm_size; in st33zp24_spi_send() 116 memcpy(&phy->tx_buf[total_length], tpm_data, tpm_size); in st33zp24_spi_send() 119 memset(&phy->tx_buf[total_length], TPM_DUMMY_BYTE, phy->latency); in st33zp24_spi_send() 146 .tx_buf = phy->tx_buf, in st33zp24_spi_read8_reg() 151 phy->tx_buf[total_length++] = LOCALITY0; in st33zp24_spi_read8_reg() [all …]
|
/Linux-v6.6/drivers/accel/ivpu/ |
D | ivpu_ipc.c | 76 struct ivpu_ipc_tx_buf *tx_buf; in ivpu_ipc_tx_prepare() local 80 tx_buf_vpu_addr = gen_pool_alloc(ipc->mm_tx, sizeof(*tx_buf)); in ivpu_ipc_tx_prepare() 83 sizeof(*tx_buf)); in ivpu_ipc_tx_prepare() 87 tx_buf = ivpu_to_cpu_addr(ipc->mem_tx, tx_buf_vpu_addr); in ivpu_ipc_tx_prepare() 88 if (drm_WARN_ON(&vdev->drm, !tx_buf)) { in ivpu_ipc_tx_prepare() 89 gen_pool_free(ipc->mm_tx, tx_buf_vpu_addr, sizeof(*tx_buf)); in ivpu_ipc_tx_prepare() 95 if (tx_buf->ipc.status != IVPU_IPC_HDR_FREE) in ivpu_ipc_tx_prepare() 99 if (tx_buf->jsm.status != VPU_JSM_MSG_FREE) in ivpu_ipc_tx_prepare() 103 memset(tx_buf, 0, sizeof(*tx_buf)); in ivpu_ipc_tx_prepare() 104 tx_buf->ipc.data_addr = jsm_vpu_addr; in ivpu_ipc_tx_prepare() [all …]
|
/Linux-v6.6/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-v6.6/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-v6.6/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-v6.6/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-v6.6/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-v6.6/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-v6.6/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-v6.6/drivers/video/fbdev/omap2/omapfb/displays/ |
D | panel-tpo-td028ttec1.c | 57 u16 tx_buf = JBT_COMMAND | reg; in jbt_ret_write_0() local 59 rc = spi_write(ddata->spi_dev, (u8 *)&tx_buf, in jbt_ret_write_0() 71 u16 tx_buf[2]; in jbt_reg_write_1() local 73 tx_buf[0] = JBT_COMMAND | reg; in jbt_reg_write_1() 74 tx_buf[1] = JBT_DATA | data; in jbt_reg_write_1() 75 rc = spi_write(ddata->spi_dev, (u8 *)tx_buf, in jbt_reg_write_1() 87 u16 tx_buf[3]; in jbt_reg_write_2() local 89 tx_buf[0] = JBT_COMMAND | reg; in jbt_reg_write_2() 90 tx_buf[1] = JBT_DATA | (data >> 8); in jbt_reg_write_2() 91 tx_buf[2] = JBT_DATA | (data & 0xff); in jbt_reg_write_2() [all …]
|