Home
last modified time | relevance | path

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

12345678910>>...14

/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 …]
/drivers/net/ethernet/intel/ice/
Dice_txrx.c32 struct ice_tx_buf *tx_buf, *first; in ice_prgm_fdir_fltr() local
64 first = &tx_ring->tx_buf[i]; in ice_prgm_fdir_fltr()
71 tx_buf = &tx_ring->tx_buf[i]; in ice_prgm_fdir_fltr()
76 memset(tx_buf, 0, sizeof(*tx_buf)); in ice_prgm_fdir_fltr()
77 dma_unmap_len_set(tx_buf, len, ICE_FDIR_MAX_RAW_PKT_SIZE); in ice_prgm_fdir_fltr()
78 dma_unmap_addr_set(tx_buf, dma, dma); in ice_prgm_fdir_fltr()
84 tx_buf->tx_flags = ICE_TX_FLAGS_DUMMY_PKT; in ice_prgm_fdir_fltr()
85 tx_buf->raw_buf = raw_packet; in ice_prgm_fdir_fltr()
109 ice_unmap_and_free_tx_buf(struct ice_ring *ring, struct ice_tx_buf *tx_buf) in ice_unmap_and_free_tx_buf() argument
111 if (tx_buf->skb) { in ice_unmap_and_free_tx_buf()
[all …]
Dice_xsk.c645 struct ice_tx_buf *tx_buf; in ice_xmit_zc() local
653 tx_buf = &xdp_ring->tx_buf[xdp_ring->next_to_use]; in ice_xmit_zc()
662 tx_buf->bytecount = desc.len; in ice_xmit_zc()
688 ice_clean_xdp_tx_buf(struct ice_ring *xdp_ring, struct ice_tx_buf *tx_buf) in ice_clean_xdp_tx_buf() argument
690 xdp_return_frame((struct xdp_frame *)tx_buf->raw_buf); in ice_clean_xdp_tx_buf()
691 dma_unmap_single(xdp_ring->dev, dma_unmap_addr(tx_buf, dma), in ice_clean_xdp_tx_buf()
692 dma_unmap_len(tx_buf, len), DMA_TO_DEVICE); in ice_clean_xdp_tx_buf()
693 dma_unmap_len_set(tx_buf, len, 0); in ice_clean_xdp_tx_buf()
708 struct ice_tx_buf *tx_buf; in ice_clean_tx_irq_zc() local
713 tx_buf = &xdp_ring->tx_buf[ntc]; in ice_clean_tx_irq_zc()
[all …]
Dice_txrx_lib.c224 struct ice_tx_buf *tx_buf; in ice_xmit_xdp_ring() local
236 tx_buf = &xdp_ring->tx_buf[i]; in ice_xmit_xdp_ring()
237 tx_buf->bytecount = size; in ice_xmit_xdp_ring()
238 tx_buf->gso_segs = 1; in ice_xmit_xdp_ring()
239 tx_buf->raw_buf = data; in ice_xmit_xdp_ring()
242 dma_unmap_len_set(tx_buf, len, size); in ice_xmit_xdp_ring()
243 dma_unmap_addr_set(tx_buf, dma, dma); in ice_xmit_xdp_ring()
259 tx_buf->next_to_watch = tx_desc; in ice_xmit_xdp_ring()
/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-realtek-rtl.c98 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()
Dspi-sh-msiof.c394 const void *tx_buf, void *rx_buf, in sh_msiof_spi_set_mode_regs() argument
399 if (tx_buf || (p->ctlr->flags & SPI_CONTROLLER_MUST_TX)) in sh_msiof_spi_set_mode_regs()
415 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_8() argument
417 const u8 *buf_8 = tx_buf; in sh_msiof_spi_write_fifo_8()
425 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_16() argument
427 const u16 *buf_16 = tx_buf; in sh_msiof_spi_write_fifo_16()
435 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_16u() argument
437 const u16 *buf_16 = tx_buf; in sh_msiof_spi_write_fifo_16u()
445 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_32() argument
447 const u32 *buf_32 = tx_buf; in sh_msiof_spi_write_fifo_32()
[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-armada-3700.c109 const u8 *tx_buf; member
430 a3700_spi->tx_buf = xfer->tx_buf; in a3700_spi_transfer_setup()
457 if (a3700_spi->tx_buf) { in a3700_spi_header_set()
478 val = (val << 8) | a3700_spi->tx_buf[0]; in a3700_spi_header_set()
479 a3700_spi->tx_buf++; in a3700_spi_header_set()
499 val = *(u32 *)a3700_spi->tx_buf; in a3700_spi_fifo_write()
502 a3700_spi->tx_buf += 4; in a3700_spi_fifo_write()
607 if (xfer->tx_buf) in a3700_spi_transfer_one_fifo()
634 } else if (xfer->tx_buf) { in a3700_spi_transfer_one_fifo()
650 if (a3700_spi->tx_buf) { in a3700_spi_transfer_one_fifo()
[all …]
/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_xdp.c29 struct bnxt_sw_tx_bd *tx_buf; in bnxt_xmit_bd() local
35 tx_buf = &txr->tx_buf_ring[prod]; in bnxt_xmit_bd()
46 return tx_buf; in bnxt_xmit_bd()
52 struct bnxt_sw_tx_bd *tx_buf; in __bnxt_xmit_xdp() local
54 tx_buf = bnxt_xmit_bd(bp, txr, mapping, len); in __bnxt_xmit_xdp()
55 tx_buf->rx_prod = rx_prod; in __bnxt_xmit_xdp()
56 tx_buf->action = XDP_TX; in __bnxt_xmit_xdp()
64 struct bnxt_sw_tx_bd *tx_buf; in __bnxt_xmit_xdp_redirect() local
66 tx_buf = bnxt_xmit_bd(bp, txr, mapping, len); in __bnxt_xmit_xdp_redirect()
67 tx_buf->action = XDP_REDIRECT; in __bnxt_xmit_xdp_redirect()
[all …]
/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 …]
/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 …]
/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.c38 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()
/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 …]
/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 …]
/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()
270 st->scan_single_xfer.tx_buf = st->tx_buf; in adc108s102_probe()
272 st->scan_single_xfer.len = 2 * sizeof(st->tx_buf[0]); in adc108s102_probe()
Dad7298.c53 __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()
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()
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()
/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()
/drivers/platform/mellanox/
Dmlxbf-tmfifo.c134 struct circ_buf tx_buf; member
438 seg = CIRC_SPACE_TO_END(cons->tx_buf.head, cons->tx_buf.tail, in mlxbf_tmfifo_console_output_one()
441 memcpy(cons->tx_buf.buf + cons->tx_buf.head, addr, len); in mlxbf_tmfifo_console_output_one()
443 memcpy(cons->tx_buf.buf + cons->tx_buf.head, addr, seg); in mlxbf_tmfifo_console_output_one()
445 memcpy(cons->tx_buf.buf, addr, len - seg); in mlxbf_tmfifo_console_output_one()
447 cons->tx_buf.head = (cons->tx_buf.head + len) % in mlxbf_tmfifo_console_output_one()
468 avail = CIRC_SPACE(cons->tx_buf.head, cons->tx_buf.tail, in mlxbf_tmfifo_console_output()
523 if (!cons || !cons->tx_buf.buf) in mlxbf_tmfifo_console_tx()
527 size = CIRC_CNT(cons->tx_buf.head, cons->tx_buf.tail, in mlxbf_tmfifo_console_tx()
545 addr = cons->tx_buf.buf + cons->tx_buf.tail; in mlxbf_tmfifo_console_tx()
[all …]
/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 …]

12345678910>>...14