Home
last modified time | relevance | path

Searched refs:tx_buf (Results 1 – 25 of 372) sorted by relevance

12345678910>>...15

/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/
Dhif_usb.c257 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 …]
/kernel/linux/linux-5.10/drivers/spi/
Dspi-loopback-test.c85 .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 …]
Dspi-cavium.c39 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()
Dspi-xlp.c93 const u8 *tx_buf; /* tx data buffer */ member
214 tx_data |= xspi->tx_buf[i] << (j * 8); in xlp_spi_fill_txfifo()
218 xspi->tx_buf += nbytes; in xlp_spi_fill_txfifo()
260 if (xspi->tx_buf) in xlp_spi_send_cmd()
271 const unsigned char *tx_buf, in xlp_spi_xfer_block() argument
277 xs->tx_buf = tx_buf; in xlp_spi_xfer_block()
279 xs->tx_len = (xs->tx_buf == NULL) ? 0 : xfer_len; in xlp_spi_xfer_block()
324 const unsigned char *tx_buf; in xlp_spi_txrx_bufs() local
326 tx_buf = t->tx_buf; in xlp_spi_txrx_bufs()
331 sz = xlp_spi_xfer_block(xs, tx_buf, rx_buf, in xlp_spi_txrx_bufs()
[all …]
Dspi-clps711x.c29 u8 *tx_buf; member
58 hw->tx_buf = (u8 *)xfer->tx_buf; in spi_clps711x_transfer_one()
62 data = hw->tx_buf ? *hw->tx_buf++ : 0; in spi_clps711x_transfer_one()
81 data = hw->tx_buf ? *hw->tx_buf++ : 0; in spi_clps711x_isr()
Dspi-sh-msiof.c387 const void *tx_buf, void *rx_buf, in sh_msiof_spi_set_mode_regs() argument
392 if (tx_buf || (p->ctlr->flags & SPI_CONTROLLER_MUST_TX)) in sh_msiof_spi_set_mode_regs()
408 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_8() argument
410 const u8 *buf_8 = tx_buf; in sh_msiof_spi_write_fifo_8()
418 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_16() argument
420 const u16 *buf_16 = tx_buf; in sh_msiof_spi_write_fifo_16()
428 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_16u() argument
430 const u16 *buf_16 = tx_buf; in sh_msiof_spi_write_fifo_16u()
438 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_32() argument
440 const u32 *buf_32 = tx_buf; in sh_msiof_spi_write_fifo_32()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_xdp.c27 struct bnxt_sw_tx_bd *tx_buf; in bnxt_xmit_bd() local
33 tx_buf = &txr->tx_buf_ring[prod]; in bnxt_xmit_bd()
44 return tx_buf; in bnxt_xmit_bd()
50 struct bnxt_sw_tx_bd *tx_buf; in __bnxt_xmit_xdp() local
52 tx_buf = bnxt_xmit_bd(bp, txr, mapping, len); in __bnxt_xmit_xdp()
53 tx_buf->rx_prod = rx_prod; in __bnxt_xmit_xdp()
54 tx_buf->action = XDP_TX; in __bnxt_xmit_xdp()
62 struct bnxt_sw_tx_bd *tx_buf; in __bnxt_xmit_xdp_redirect() local
64 tx_buf = bnxt_xmit_bd(bp, txr, mapping, len); in __bnxt_xmit_xdp_redirect()
65 tx_buf->action = XDP_REDIRECT; in __bnxt_xmit_xdp_redirect()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_txrx.c31 struct ice_tx_buf *tx_buf, *first; in ice_prgm_fdir_fltr() local
63 first = &tx_ring->tx_buf[i]; in ice_prgm_fdir_fltr()
70 tx_buf = &tx_ring->tx_buf[i]; in ice_prgm_fdir_fltr()
75 memset(tx_buf, 0, sizeof(*tx_buf)); in ice_prgm_fdir_fltr()
76 dma_unmap_len_set(tx_buf, len, ICE_FDIR_MAX_RAW_PKT_SIZE); in ice_prgm_fdir_fltr()
77 dma_unmap_addr_set(tx_buf, dma, dma); in ice_prgm_fdir_fltr()
83 tx_buf->tx_flags = ICE_TX_FLAGS_DUMMY_PKT; in ice_prgm_fdir_fltr()
84 tx_buf->raw_buf = raw_packet; in ice_prgm_fdir_fltr()
108 ice_unmap_and_free_tx_buf(struct ice_ring *ring, struct ice_tx_buf *tx_buf) in ice_unmap_and_free_tx_buf() argument
110 if (tx_buf->skb) { in ice_unmap_and_free_tx_buf()
[all …]
Dice_xsk.c686 struct ice_tx_buf *tx_buf; in ice_xmit_zc() local
694 tx_buf = &xdp_ring->tx_buf[xdp_ring->next_to_use]; in ice_xmit_zc()
703 tx_buf->bytecount = desc.len; in ice_xmit_zc()
729 ice_clean_xdp_tx_buf(struct ice_ring *xdp_ring, struct ice_tx_buf *tx_buf) in ice_clean_xdp_tx_buf() argument
731 xdp_return_frame((struct xdp_frame *)tx_buf->raw_buf); in ice_clean_xdp_tx_buf()
732 dma_unmap_single(xdp_ring->dev, dma_unmap_addr(tx_buf, dma), in ice_clean_xdp_tx_buf()
733 dma_unmap_len(tx_buf, len), DMA_TO_DEVICE); in ice_clean_xdp_tx_buf()
734 dma_unmap_len_set(tx_buf, len, 0); in ice_clean_xdp_tx_buf()
749 struct ice_tx_buf *tx_buf; in ice_clean_tx_irq_zc() local
754 tx_buf = &xdp_ring->tx_buf[ntc]; in ice_clean_tx_irq_zc()
[all …]
Dice_txrx_lib.c212 struct ice_tx_buf *tx_buf; in ice_xmit_xdp_ring() local
224 tx_buf = &xdp_ring->tx_buf[i]; in ice_xmit_xdp_ring()
225 tx_buf->bytecount = size; in ice_xmit_xdp_ring()
226 tx_buf->gso_segs = 1; in ice_xmit_xdp_ring()
227 tx_buf->raw_buf = data; in ice_xmit_xdp_ring()
230 dma_unmap_len_set(tx_buf, len, size); in ice_xmit_xdp_ring()
231 dma_unmap_addr_set(tx_buf, dma, dma); in ice_xmit_xdp_ring()
247 tx_buf->next_to_watch = tx_desc; in ice_xmit_xdp_ring()
/kernel/linux/linux-5.10/drivers/hid/intel-ish-hid/ishtp/
Dclient-buffers.c67 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 …]
/kernel/linux/linux-5.10/drivers/input/rmi4/
Drmi_spi.c44 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 …]
Drmi_i2c.c34 u8 *tx_buf; member
86 if (!rmi_i2c->tx_buf || rmi_i2c->tx_buf_size < tx_size) { in rmi_i2c_write_block()
87 if (rmi_i2c->tx_buf) in rmi_i2c_write_block()
88 devm_kfree(&client->dev, rmi_i2c->tx_buf); in rmi_i2c_write_block()
90 rmi_i2c->tx_buf = devm_kzalloc(&client->dev, in rmi_i2c_write_block()
93 if (!rmi_i2c->tx_buf) { in rmi_i2c_write_block()
100 rmi_i2c->tx_buf[0] = addr & 0xff; in rmi_i2c_write_block()
101 memcpy(rmi_i2c->tx_buf + 1, buf, len); in rmi_i2c_write_block()
109 retval = i2c_master_send(client, rmi_i2c->tx_buf, tx_size); in rmi_i2c_write_block()
/kernel/linux/linux-5.10/drivers/net/wimax/i2400m/
Dtx.c474 ptr = i2400m->tx_buf + i2400m->tx_in % I2400M_TX_BUF_SIZE; in i2400m_tx_fifo_push()
510 struct i2400m_msg_hdr *msg = i2400m->tx_buf + tx_in; in i2400m_tx_skip_tail()
591 tx_msg, (void *) tx_msg - i2400m->tx_buf); in i2400m_tx_new()
667 aligned_size, i2400m->tx_buf, i2400m->tx_in, in i2400m_tx_close()
734 if (i2400m->tx_buf == NULL) { in i2400m_tx()
792 (void *)tx_msg - i2400m->tx_buf, (size_t)tx_msg->size, in i2400m_tx()
793 num_pls+1, ptr - i2400m->tx_buf, buf_len, padded_len); in i2400m_tx()
847 if (i2400m->tx_buf == NULL) in i2400m_tx_msg_get()
857 tx_msg = i2400m->tx_buf + i2400m->tx_out % I2400M_TX_BUF_SIZE; in i2400m_tx_msg_get()
870 (void *) tx_msg - i2400m->tx_buf); in i2400m_tx_msg_get()
[all …]
/kernel/linux/linux-5.10/drivers/char/tpm/st33zp24/
Dspi.c61 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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/panel/
Dpanel-tpo-td028ttec1.c97 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 …]
/kernel/linux/linux-5.10/drivers/input/touchscreen/
Dwdt87xx_i2c.c222 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 …]
/kernel/linux/linux-5.10/drivers/iio/adc/
Dti-adc108s102.c81 __be16 tx_buf[9] ____cacheline_aligned; member
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()
166 st->tx_buf[0] = cpu_to_be16(ADC108S102_CMD(ch)); in adc108s102_scan_direct()
262 st->scan_single_xfer.tx_buf = st->tx_buf; in adc108s102_probe()
264 st->scan_single_xfer.len = 2 * sizeof(st->tx_buf[0]); in adc108s102_probe()
Dad7298.c54 __be16 tx_buf[2]; member
121 st->tx_buf[0] = cpu_to_be16(command); in ad7298_update_scan_mode()
124 st->ring_xfer[0].tx_buf = &st->tx_buf[0]; in ad7298_update_scan_mode()
127 st->ring_xfer[1].tx_buf = &st->tx_buf[1]; in ad7298_update_scan_mode()
176 st->tx_buf[0] = cpu_to_be16(AD7298_WRITE | st->ext_ref | in ad7298_scan_direct()
322 st->scan_single_xfer[0].tx_buf = &st->tx_buf[0]; in ad7298_probe()
325 st->scan_single_xfer[1].tx_buf = &st->tx_buf[1]; in ad7298_probe()
Dti-ads8344.c31 u8 tx_buf ____cacheline_aligned;
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()
Dti-adc0832.c39 u8 tx_buf[2] ____cacheline_aligned; member
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()
/kernel/linux/linux-5.10/include/trace/events/
Dspi.h118 (xfer->tx_buf && xfer->tx_buf != msg->spi->controller->dummy_tx)
136 __dynamic_array(u8, tx_buf,
148 memcpy(__get_dynamic_array(tx_buf),
149 xfer->tx_buf, __get_dynamic_array_len(tx_buf));
159 __get_dynamic_array_len(tx_buf), __get_dynamic_array(tx_buf),
/kernel/linux/linux-5.10/drivers/mux/
Dadgs1408.c28 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()
/kernel/linux/linux-5.10/drivers/video/fbdev/omap2/omapfb/displays/
Dpanel-tpo-td028ttec1.c58 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 …]
/kernel/linux/linux-5.10/drivers/platform/mellanox/
Dmlxbf-tmfifo.c124 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 …]

12345678910>>...15