/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 …]
|
/drivers/staging/iio/meter/ |
D | ade7758_ring.c | 144 st->tx_buf[0] = ADE7758_READ_REG(ADE7758_RSTATUS); in ade7758_configure_ring() 145 st->tx_buf[1] = 0; in ade7758_configure_ring() 146 st->tx_buf[2] = 0; in ade7758_configure_ring() 147 st->tx_buf[3] = 0; in ade7758_configure_ring() 148 st->tx_buf[4] = ADE7758_READ_REG(ADE7758_WFORM); in ade7758_configure_ring() 149 st->tx_buf[5] = 0; in ade7758_configure_ring() 150 st->tx_buf[6] = 0; in ade7758_configure_ring() 151 st->tx_buf[7] = 0; in ade7758_configure_ring() 154 st->ring_xfer[0].tx_buf = &st->tx_buf[0]; in ade7758_configure_ring() 163 st->ring_xfer[2].tx_buf = &st->tx_buf[4]; in ade7758_configure_ring()
|
D | ade7854-spi.c | 26 .tx_buf = st->tx, in ade7854_spi_write_reg_8() 51 .tx_buf = st->tx, in ade7854_spi_write_reg_16() 77 .tx_buf = st->tx, in ade7854_spi_write_reg_24() 104 .tx_buf = st->tx, in ade7854_spi_write_reg_32() 133 .tx_buf = st->tx, in ade7854_spi_read_reg_8() 171 .tx_buf = st->tx, in ade7854_spi_read_reg_16() 208 .tx_buf = st->tx, in ade7854_spi_read_reg_24() 246 .tx_buf = st->tx, in ade7854_spi_read_reg_32()
|
/drivers/net/wimax/i2400m/ |
D | tx.c | 474 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() 669 aligned_size, i2400m->tx_buf, i2400m->tx_in, in i2400m_tx_close() 736 if (i2400m->tx_buf == NULL) { in i2400m_tx() 794 (void *)tx_msg - i2400m->tx_buf, (size_t)tx_msg->size, in i2400m_tx() 795 num_pls+1, ptr - i2400m->tx_buf, buf_len, padded_len); in i2400m_tx() 849 if (i2400m->tx_buf == NULL) in i2400m_tx_msg_get() 859 tx_msg = i2400m->tx_buf + i2400m->tx_out % I2400M_TX_BUF_SIZE; in i2400m_tx_msg_get() 872 (void *) tx_msg - i2400m->tx_buf); in i2400m_tx_msg_get() [all …]
|
/drivers/iio/common/st_sensors/ |
D | st_sensors_spi.c | 36 .tx_buf = tb->tx_buf, in st_sensors_spi_read() 49 tb->tx_buf[0] = reg_addr | ST_SENSORS_SPI_MULTIREAD; in st_sensors_spi_read() 51 tb->tx_buf[0] = reg_addr | ST_SENSORS_SPI_READ; in st_sensors_spi_read() 85 .tx_buf = tb->tx_buf, in st_sensors_spi_write_byte() 91 tb->tx_buf[0] = reg_addr; in st_sensors_spi_write_byte() 92 tb->tx_buf[1] = data; in st_sensors_spi_write_byte()
|
/drivers/mfd/ |
D | tps65912-spi.c | 35 u32 tx_buf; in tps65912_spi_write() local 37 tx_buf = spi_data; in tps65912_spi_write() 39 xfer.tx_buf = &tx_buf; in tps65912_spi_write() 61 u32 tx_buf, rx_buf; in tps65912_spi_read() local 63 tx_buf = spi_data; in tps65912_spi_read() 66 xfer.tx_buf = &tx_buf; in tps65912_spi_read()
|
/drivers/spi/ |
D | spi-sh-msiof.c | 319 const void *tx_buf, void *rx_buf, in sh_msiof_spi_set_mode_regs() argument 324 if (tx_buf || (p->chipdata->master_flags & SPI_MASTER_MUST_TX)) in sh_msiof_spi_set_mode_regs() 339 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_8() argument 341 const u8 *buf_8 = tx_buf; in sh_msiof_spi_write_fifo_8() 349 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_16() argument 351 const u16 *buf_16 = tx_buf; in sh_msiof_spi_write_fifo_16() 359 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_16u() argument 361 const u16 *buf_16 = tx_buf; in sh_msiof_spi_write_fifo_16u() 369 const void *tx_buf, int words, int fs) in sh_msiof_spi_write_fifo_32() argument 371 const u32 *buf_32 = tx_buf; in sh_msiof_spi_write_fifo_32() [all …]
|
D | spi-octeon.c | 59 const u8 *tx_buf; in octeon_spi_do_transfer() local 90 tx_buf = xfer->tx_buf; in octeon_spi_do_transfer() 96 if (tx_buf) in octeon_spi_do_transfer() 97 d = *tx_buf++; in octeon_spi_do_transfer() 105 mpi_tx.s.txnum = tx_buf ? OCTEON_SPI_MAX_BYTES : 0; in octeon_spi_do_transfer() 120 if (tx_buf) in octeon_spi_do_transfer() 121 d = *tx_buf++; in octeon_spi_do_transfer() 133 mpi_tx.s.txnum = tx_buf ? len : 0; in octeon_spi_do_transfer()
|
D | spi-clps711x.c | 35 u8 *tx_buf; member 72 hw->tx_buf = (u8 *)xfer->tx_buf; in spi_clps711x_transfer_one() 76 data = hw->tx_buf ? *hw->tx_buf++ : 0; in spi_clps711x_transfer_one() 95 data = hw->tx_buf ? *hw->tx_buf++ : 0; in spi_clps711x_isr()
|
D | spi-orion.c | 248 const u8 **tx_buf, u8 **rx_buf) in orion_spi_write_read_8bit() argument 261 if (tx_buf && *tx_buf) in orion_spi_write_read_8bit() 262 writel(*(*tx_buf)++, tx_reg); in orion_spi_write_read_8bit() 279 const u16 **tx_buf, u16 **rx_buf) in orion_spi_write_read_16bit() argument 292 if (tx_buf && *tx_buf) in orion_spi_write_read_16bit() 293 writel(__cpu_to_le16(get_unaligned((*tx_buf)++)), tx_reg); in orion_spi_write_read_16bit() 318 const u8 *tx = xfer->tx_buf; in orion_spi_write_read() 327 const u16 *tx = xfer->tx_buf; in orion_spi_write_read()
|
D | spi-mpc52xx.c | 87 const u8 *tx_buf; member 115 ms->tx_buf = ms->transfer->tx_buf; in mpc52xx_spi_start_transfer() 125 if (ms->tx_buf) in mpc52xx_spi_start_transfer() 126 out_8(ms->regs + SPI_DATA, *ms->tx_buf++); in mpc52xx_spi_start_transfer() 228 if (ms->tx_buf) in mpc52xx_spi_fsmstate_transfer() 229 data = *(ms->tx_buf - 1); in mpc52xx_spi_fsmstate_transfer() 259 if (ms->tx_buf) in mpc52xx_spi_fsmstate_transfer() 260 out_8(ms->regs + SPI_DATA, *ms->tx_buf++); in mpc52xx_spi_fsmstate_transfer()
|
D | spi-omap-100k.c | 207 tx = xfer->tx_buf; in omap1_spi100k_txrx_pio() 210 if (xfer->tx_buf != NULL) in omap1_spi100k_txrx_pio() 220 tx = xfer->tx_buf; in omap1_spi100k_txrx_pio() 223 if (xfer->tx_buf != NULL) in omap1_spi100k_txrx_pio() 233 tx = xfer->tx_buf; in omap1_spi100k_txrx_pio() 236 if (xfer->tx_buf != NULL) in omap1_spi100k_txrx_pio() 323 if (t->tx_buf == NULL && t->rx_buf == NULL && t->len) { in omap1_spi100k_transfer_one_message()
|
D | spidev.c | 139 .tx_buf = spidev->tx_buffer, in spidev_sync_write() 228 u8 *tx_buf, *rx_buf; in spidev_message() local 240 tx_buf = spidev->tx_buffer; in spidev_message() 264 if (u_tmp->tx_buf) { in spidev_message() 265 k_tmp->tx_buf = tx_buf; in spidev_message() 266 if (copy_from_user(tx_buf, (const u8 __user *) in spidev_message() 267 (uintptr_t) u_tmp->tx_buf, in spidev_message() 271 tx_buf += k_tmp->len; in spidev_message() 285 u_tmp->tx_buf ? "tx " : "", in spidev_message()
|
/drivers/net/ethernet/qualcomm/ |
D | qca_7k.c | 59 transfer->tx_buf = &tx_data; in qcaspi_read_register() 66 transfer->tx_buf = &tx_data; in qcaspi_read_register() 71 transfer->tx_buf = NULL; in qcaspi_read_register() 101 transfer->tx_buf = &tx_data[0]; in qcaspi_write_register() 108 transfer->tx_buf = &tx_data[0]; in qcaspi_write_register() 113 transfer->tx_buf = &tx_data[1]; in qcaspi_write_register() 137 transfer->tx_buf = &tx_data; in qcaspi_tx_cmd()
|
/drivers/input/touchscreen/ |
D | ad7879-spi.c | 31 u16 cmd, u8 count, u16 *tx_buf, u16 *rx_buf) in ad7879_spi_xfer() argument 51 command[1] = *tx_buf; in ad7879_spi_xfer() 52 tx_buf = &command[1]; in ad7879_spi_xfer() 58 xfers[0].tx_buf = command; in ad7879_spi_xfer() 66 if (tx_buf) in ad7879_spi_xfer() 67 xfers[idx].tx_buf = &tx_buf[idx]; in ad7879_spi_xfer()
|
/drivers/iio/adc/ |
D | ad7298.c | 55 __be16 tx_buf[2]; member 122 st->tx_buf[0] = cpu_to_be16(command); in ad7298_update_scan_mode() 125 st->ring_xfer[0].tx_buf = &st->tx_buf[0]; in ad7298_update_scan_mode() 128 st->ring_xfer[1].tx_buf = &st->tx_buf[1]; in ad7298_update_scan_mode() 177 st->tx_buf[0] = cpu_to_be16(AD7298_WRITE | st->ext_ref | in ad7298_scan_direct() 325 st->scan_single_xfer[0].tx_buf = &st->tx_buf[0]; in ad7298_probe() 328 st->scan_single_xfer[1].tx_buf = &st->tx_buf[1]; in ad7298_probe()
|
D | ad7923.c | 70 __be16 tx_buf[4]; member 144 st->tx_buf[len++] = cpu_to_be16(cmd); in ad7923_update_scan_mode() 147 st->ring_xfer[0].tx_buf = &st->tx_buf[0]; in ad7923_update_scan_mode() 200 st->tx_buf[0] = cpu_to_be16(cmd); in ad7923_scan_direct() 299 st->scan_single_xfer[0].tx_buf = &st->tx_buf[0]; in ad7923_probe()
|
D | max1363.c | 342 u8 tx_buf[2] = { st->setupbyte, st->configbyte }; in max1363_write_basic_config() local 344 return st->send(st->client, tx_buf, 2); in max1363_write_basic_config() 826 u8 *tx_buf; in max1363_monitor_mode_update() local 858 tx_buf = kmalloc(len, GFP_KERNEL); in max1363_monitor_mode_update() 859 if (!tx_buf) { in max1363_monitor_mode_update() 863 tx_buf[0] = st->configbyte; in max1363_monitor_mode_update() 864 tx_buf[1] = st->setupbyte; in max1363_monitor_mode_update() 865 tx_buf[2] = (st->monitor_speed << 1); in max1363_monitor_mode_update() 875 tx_buf[i] = (st->thresh_low[j] >> 4) & 0xFF; in max1363_monitor_mode_update() 876 tx_buf[i + 1] = (st->thresh_low[j] << 4) & 0xF0; in max1363_monitor_mode_update() [all …]
|
D | mcp320x.c | 32 u8 tx_buf; member 43 adc->tx_buf = msg; in mcp320x_adc_conversion() 189 adc->transfer[0].tx_buf = &adc->tx_buf; in mcp320x_probe() 190 adc->transfer[0].len = sizeof(adc->tx_buf); in mcp320x_probe()
|
/drivers/staging/gdm72xx/ |
D | sdio_boot.c | 40 static u8 *tx_buf; variable 61 u8 *buf = tx_buf; in download_image() 141 tx_buf = kmalloc(YMEM0_SIZE, GFP_KERNEL); in sdio_boot() 142 if (tx_buf == NULL) in sdio_boot() 156 kfree(tx_buf); in sdio_boot()
|
/drivers/video/fbdev/omap2/displays-new/ |
D | panel-tpo-td028ttec1.c | 70 u16 tx_buf = JBT_COMMAND | reg; in jbt_ret_write_0() local 72 rc = spi_write(ddata->spi_dev, (u8 *)&tx_buf, in jbt_ret_write_0() 84 u16 tx_buf[2]; in jbt_reg_write_1() local 86 tx_buf[0] = JBT_COMMAND | reg; in jbt_reg_write_1() 87 tx_buf[1] = JBT_DATA | data; in jbt_reg_write_1() 88 rc = spi_write(ddata->spi_dev, (u8 *)tx_buf, in jbt_reg_write_1() 100 u16 tx_buf[3]; in jbt_reg_write_2() local 102 tx_buf[0] = JBT_COMMAND | reg; in jbt_reg_write_2() 103 tx_buf[1] = JBT_DATA | (data >> 8); in jbt_reg_write_2() 104 tx_buf[2] = JBT_DATA | (data & 0xff); in jbt_reg_write_2() [all …]
|
/drivers/iio/imu/ |
D | adis.c | 38 .tx_buf = adis->tx, in adis_write_reg() 44 .tx_buf = adis->tx + 2, in adis_write_reg() 50 .tx_buf = adis->tx + 4, in adis_write_reg() 56 .tx_buf = adis->tx + 6, in adis_write_reg() 61 .tx_buf = adis->tx + 8, in adis_write_reg() 130 .tx_buf = adis->tx, in adis_read_reg() 136 .tx_buf = adis->tx + 2, in adis_read_reg() 142 .tx_buf = adis->tx + 4, in adis_read_reg()
|
/drivers/net/usb/ |
D | ipheth.c | 146 unsigned char *tx_buf; member 160 u8 *tx_buf = NULL; in ipheth_alloc_urbs() local 171 tx_buf = usb_alloc_coherent(iphone->udev, IPHETH_BUF_SIZE, in ipheth_alloc_urbs() 173 if (tx_buf == NULL) in ipheth_alloc_urbs() 184 iphone->tx_buf = tx_buf; in ipheth_alloc_urbs() 189 usb_free_coherent(iphone->udev, IPHETH_BUF_SIZE, tx_buf, in ipheth_alloc_urbs() 203 usb_free_coherent(iphone->udev, IPHETH_BUF_SIZE, iphone->tx_buf, in ipheth_free_urbs() 417 memcpy(dev->tx_buf, skb->data, skb->len); in ipheth_tx() 419 memset(dev->tx_buf + skb->len, 0, IPHETH_BUF_SIZE - skb->len); in ipheth_tx() 423 dev->tx_buf, IPHETH_BUF_SIZE, in ipheth_tx()
|
/drivers/base/regmap/ |
D | regmap-spi.c | 47 struct spi_transfer t[2] = { { .tx_buf = reg, .len = reg_len, }, in regmap_spi_gather_write() 48 { .tx_buf = val, .len = val_len, }, }; in regmap_spi_gather_write() 68 async->t[0].tx_buf = reg; in regmap_spi_async_write() 70 async->t[1].tx_buf = val; in regmap_spi_async_write()
|
/drivers/staging/iio/frequency/ |
D | ad9832.c | 240 st->xfer.tx_buf = &st->data; in ad9832_probe() 246 st->freq_xfer[0].tx_buf = &st->freq_data[0]; in ad9832_probe() 249 st->freq_xfer[1].tx_buf = &st->freq_data[1]; in ad9832_probe() 252 st->freq_xfer[2].tx_buf = &st->freq_data[2]; in ad9832_probe() 255 st->freq_xfer[3].tx_buf = &st->freq_data[3]; in ad9832_probe() 264 st->phase_xfer[0].tx_buf = &st->phase_data[0]; in ad9832_probe() 267 st->phase_xfer[1].tx_buf = &st->phase_data[1]; in ad9832_probe()
|