/linux-4.1.27/drivers/staging/iio/meter/ |
H A D | ade7758_ring.c | 142 st->tx_buf[0] = ADE7758_READ_REG(ADE7758_RSTATUS); ade7758_configure_ring() 143 st->tx_buf[1] = 0; ade7758_configure_ring() 144 st->tx_buf[2] = 0; ade7758_configure_ring() 145 st->tx_buf[3] = 0; ade7758_configure_ring() 146 st->tx_buf[4] = ADE7758_READ_REG(ADE7758_WFORM); ade7758_configure_ring() 147 st->tx_buf[5] = 0; ade7758_configure_ring() 148 st->tx_buf[6] = 0; ade7758_configure_ring() 149 st->tx_buf[7] = 0; ade7758_configure_ring() 152 st->ring_xfer[0].tx_buf = &st->tx_buf[0]; ade7758_configure_ring() 161 st->ring_xfer[2].tx_buf = &st->tx_buf[4]; ade7758_configure_ring()
|
H A D | ade7854-spi.c | 26 .tx_buf = st->tx, ade7854_spi_write_reg_8() 51 .tx_buf = st->tx, ade7854_spi_write_reg_16() 77 .tx_buf = st->tx, ade7854_spi_write_reg_24() 104 .tx_buf = st->tx, ade7854_spi_write_reg_32() 133 .tx_buf = st->tx, ade7854_spi_read_reg_8() 171 .tx_buf = st->tx, ade7854_spi_read_reg_16() 208 .tx_buf = st->tx, ade7854_spi_read_reg_24() 246 .tx_buf = st->tx, ade7854_spi_read_reg_32()
|
H A D | ade7758_core.c | 54 .tx_buf = st->tx, ade7758_spi_write_reg_16() 80 .tx_buf = st->tx, ade7758_spi_write_reg_24() 107 .tx_buf = st->tx, ade7758_spi_read_reg_8() 113 .tx_buf = &st->tx[1], ade7758_spi_read_reg_8() 146 .tx_buf = st->tx, ade7758_spi_read_reg_16() 152 .tx_buf = &st->tx[1], ade7758_spi_read_reg_16() 188 .tx_buf = st->tx, ade7758_spi_read_reg_24() 194 .tx_buf = &st->tx[1], ade7758_spi_read_reg_24()
|
H A D | ade7758.h | 129 unsigned char tx_buf[8]; member in struct:ade7758_state
|
/linux-4.1.27/drivers/iio/common/st_sensors/ |
H A D | st_sensors_spi.c | 36 .tx_buf = tb->tx_buf, st_sensors_spi_read() 49 tb->tx_buf[0] = reg_addr | ST_SENSORS_SPI_MULTIREAD; st_sensors_spi_read() 51 tb->tx_buf[0] = reg_addr | ST_SENSORS_SPI_READ; st_sensors_spi_read() 85 .tx_buf = tb->tx_buf, st_sensors_spi_write_byte() 91 tb->tx_buf[0] = reg_addr; st_sensors_spi_write_byte() 92 tb->tx_buf[1] = data; st_sensors_spi_write_byte()
|
/linux-4.1.27/drivers/net/wireless/ath/ath9k/ |
H A D | hif_usb.c | 256 struct tx_buf *tx_buf = (struct tx_buf *) urb->context; hif_usb_tx_cb() local 260 if (!tx_buf || !tx_buf->hif_dev) hif_usb_tx_cb() 263 hif_dev = tx_buf->hif_dev; hif_usb_tx_cb() 281 ath9k_skb_queue_purge(hif_dev, &tx_buf->skb_queue); hif_usb_tx_cb() 292 ath9k_skb_queue_complete(hif_dev, &tx_buf->skb_queue, txok); hif_usb_tx_cb() 295 tx_buf->len = tx_buf->offset = 0; hif_usb_tx_cb() 296 __skb_queue_head_init(&tx_buf->skb_queue); hif_usb_tx_cb() 300 list_move_tail(&tx_buf->list, &hif_dev->tx.tx_buf); hif_usb_tx_cb() 311 struct tx_buf *tx_buf = NULL; __hif_usb_tx() local 322 if (list_empty(&hif_dev->tx.tx_buf)) __hif_usb_tx() 325 tx_buf = list_first_entry(&hif_dev->tx.tx_buf, struct tx_buf, list); __hif_usb_tx() 326 list_move_tail(&tx_buf->list, &hif_dev->tx.tx_pending); __hif_usb_tx() 339 buf = tx_buf->buf; __hif_usb_tx() 340 buf += tx_buf->offset; __hif_usb_tx() 346 tx_buf->len = nskb->len + 4; __hif_usb_tx() 349 tx_buf->offset += (((tx_buf->len - 1) / 4) + 1) * 4; __hif_usb_tx() 352 tx_buf->len += tx_buf->offset; __hif_usb_tx() 354 __skb_queue_tail(&tx_buf->skb_queue, nskb); __hif_usb_tx() 358 usb_fill_bulk_urb(tx_buf->urb, hif_dev->udev, __hif_usb_tx() 360 tx_buf->buf, tx_buf->len, __hif_usb_tx() 361 hif_usb_tx_cb, tx_buf); __hif_usb_tx() 363 ret = usb_submit_urb(tx_buf->urb, GFP_ATOMIC); __hif_usb_tx() 365 tx_buf->len = tx_buf->offset = 0; __hif_usb_tx() 366 ath9k_skb_queue_complete(hif_dev, &tx_buf->skb_queue, false); __hif_usb_tx() 367 __skb_queue_head_init(&tx_buf->skb_queue); __hif_usb_tx() 368 list_move_tail(&tx_buf->list, &hif_dev->tx.tx_buf); __hif_usb_tx() 441 struct tx_buf *tx_buf = NULL, *tx_buf_tmp = NULL; hif_usb_stop() local 451 list_for_each_entry_safe(tx_buf, tx_buf_tmp, hif_usb_stop() 453 usb_kill_urb(tx_buf->urb); hif_usb_stop() 752 struct tx_buf *tx_buf = NULL, *tx_buf_tmp = NULL; ath9k_hif_usb_dealloc_tx_urbs() local 755 list_for_each_entry_safe(tx_buf, tx_buf_tmp, ath9k_hif_usb_dealloc_tx_urbs() 756 &hif_dev->tx.tx_buf, list) { ath9k_hif_usb_dealloc_tx_urbs() 757 usb_kill_urb(tx_buf->urb); ath9k_hif_usb_dealloc_tx_urbs() 758 list_del(&tx_buf->list); ath9k_hif_usb_dealloc_tx_urbs() 759 usb_free_urb(tx_buf->urb); ath9k_hif_usb_dealloc_tx_urbs() 760 kfree(tx_buf->buf); ath9k_hif_usb_dealloc_tx_urbs() 761 kfree(tx_buf); ath9k_hif_usb_dealloc_tx_urbs() 768 list_for_each_entry_safe(tx_buf, tx_buf_tmp, ath9k_hif_usb_dealloc_tx_urbs() 770 usb_kill_urb(tx_buf->urb); ath9k_hif_usb_dealloc_tx_urbs() 771 list_del(&tx_buf->list); ath9k_hif_usb_dealloc_tx_urbs() 772 usb_free_urb(tx_buf->urb); ath9k_hif_usb_dealloc_tx_urbs() 773 kfree(tx_buf->buf); ath9k_hif_usb_dealloc_tx_urbs() 774 kfree(tx_buf); ath9k_hif_usb_dealloc_tx_urbs() 782 struct tx_buf *tx_buf; ath9k_hif_usb_alloc_tx_urbs() local 785 INIT_LIST_HEAD(&hif_dev->tx.tx_buf); ath9k_hif_usb_alloc_tx_urbs() 792 tx_buf = kzalloc(sizeof(struct tx_buf), GFP_KERNEL); ath9k_hif_usb_alloc_tx_urbs() 793 if (!tx_buf) ath9k_hif_usb_alloc_tx_urbs() 796 tx_buf->buf = kzalloc(MAX_TX_BUF_SIZE, GFP_KERNEL); ath9k_hif_usb_alloc_tx_urbs() 797 if (!tx_buf->buf) ath9k_hif_usb_alloc_tx_urbs() 800 tx_buf->urb = usb_alloc_urb(0, GFP_KERNEL); ath9k_hif_usb_alloc_tx_urbs() 801 if (!tx_buf->urb) ath9k_hif_usb_alloc_tx_urbs() 804 tx_buf->hif_dev = hif_dev; ath9k_hif_usb_alloc_tx_urbs() 805 __skb_queue_head_init(&tx_buf->skb_queue); ath9k_hif_usb_alloc_tx_urbs() 807 list_add_tail(&tx_buf->list, &hif_dev->tx.tx_buf); ath9k_hif_usb_alloc_tx_urbs() 814 if (tx_buf) { ath9k_hif_usb_alloc_tx_urbs() 815 kfree(tx_buf->buf); ath9k_hif_usb_alloc_tx_urbs() 816 kfree(tx_buf); ath9k_hif_usb_alloc_tx_urbs()
|
H A D | hif_usb.h | 59 struct tx_buf { struct 77 struct list_head tx_buf; member in struct:hif_usb_tx
|
/linux-4.1.27/drivers/mfd/ |
H A D | tps65912-spi.c | 35 u32 tx_buf; tps65912_spi_write() local 37 tx_buf = spi_data; tps65912_spi_write() 39 xfer.tx_buf = &tx_buf; tps65912_spi_write() 61 u32 tx_buf, rx_buf; tps65912_spi_read() local 63 tx_buf = spi_data; tps65912_spi_read() 66 xfer.tx_buf = &tx_buf; tps65912_spi_read()
|
H A D | mc13xxx-spi.c | 72 .tx_buf = w, mc13xxx_spi_read()
|
/linux-4.1.27/drivers/net/ethernet/qualcomm/ |
H A D | qca_7k.c | 59 transfer->tx_buf = &tx_data; qcaspi_read_register() 66 transfer->tx_buf = &tx_data; qcaspi_read_register() 71 transfer->tx_buf = NULL; qcaspi_read_register() 101 transfer->tx_buf = &tx_data[0]; qcaspi_write_register() 108 transfer->tx_buf = &tx_data[0]; qcaspi_write_register() 113 transfer->tx_buf = &tx_data[1]; qcaspi_write_register() 137 transfer->tx_buf = &tx_data; qcaspi_tx_cmd()
|
H A D | qca_spi.c | 108 transfer->tx_buf = &cmd; qcaspi_write_burst() 112 transfer->tx_buf = src; qcaspi_write_burst() 133 transfer->tx_buf = src; qcaspi_write_legacy() 156 transfer->tx_buf = &cmd; qcaspi_read_burst() 160 transfer->tx_buf = NULL; qcaspi_read_burst() 181 transfer->tx_buf = NULL; qcaspi_read_legacy()
|
/linux-4.1.27/drivers/input/touchscreen/ |
H A D | ad7879-spi.c | 31 u16 cmd, u8 count, u16 *tx_buf, u16 *rx_buf) ad7879_spi_xfer() 51 command[1] = *tx_buf; ad7879_spi_xfer() 52 tx_buf = &command[1]; ad7879_spi_xfer() 58 xfers[0].tx_buf = command; ad7879_spi_xfer() 66 if (tx_buf) ad7879_spi_xfer() 67 xfers[idx].tx_buf = &tx_buf[idx]; ad7879_spi_xfer() 30 ad7879_spi_xfer(struct spi_device *spi, u16 cmd, u8 count, u16 *tx_buf, u16 *rx_buf) ad7879_spi_xfer() argument
|
H A D | ads7846.c | 328 req->xfer[0].tx_buf = &req->ref_on; ads7846_read12_ser() 348 req->xfer[2].tx_buf = &req->command; ads7846_read12_ser() 360 req->xfer[4].tx_buf = &req->ref_off; ads7846_read12_ser() 400 req->xfer[0].tx_buf = req->command; ads7845_read12_ser() 1000 x->tx_buf = &packet->read_y_cmd[0]; ads7846_setup_spi_msg() 1007 x->tx_buf = &packet->read_y; ads7846_setup_spi_msg() 1026 x->tx_buf = &packet->read_y; ads7846_setup_spi_msg() 1046 x->tx_buf = &packet->read_x_cmd[0]; ads7846_setup_spi_msg() 1054 x->tx_buf = &packet->read_x; ads7846_setup_spi_msg() 1069 x->tx_buf = &packet->read_x; ads7846_setup_spi_msg() 1088 x->tx_buf = &packet->read_z1; ads7846_setup_spi_msg() 1102 x->tx_buf = &packet->read_z1; ads7846_setup_spi_msg() 1119 x->tx_buf = &packet->read_z2; ads7846_setup_spi_msg() 1133 x->tx_buf = &packet->read_z2; ads7846_setup_spi_msg() 1155 x->tx_buf = &packet->pwrdown_cmd[0]; ads7846_setup_spi_msg() 1160 x->tx_buf = &packet->pwrdown; ads7846_setup_spi_msg()
|
H A D | ad7877.c | 226 req->xfer[0].tx_buf = &req->command; ad7877_read() 256 req->xfer[0].tx_buf = &req->command; ad7877_write() 292 req->xfer[0].tx_buf = &req->reset; ad7877_read_adc() 296 req->xfer[1].tx_buf = &req->ref_on; ad7877_read_adc() 301 req->xfer[2].tx_buf = &req->command; ad7877_read_adc() 310 req->xfer[4].tx_buf = &ts->cmd_crtl2; /*REF OFF*/ ad7877_read_adc() 314 req->xfer[5].tx_buf = &ts->cmd_crtl1; /*DEFAULT*/ ad7877_read_adc() 658 ts->xfer[0].tx_buf = &ts->cmd_crtl1; ad7877_setup_ts_def_msg() 664 ts->xfer[1].tx_buf = &ts->cmd_dummy; /* Send ZERO */ ad7877_setup_ts_def_msg()
|
H A D | cyttsp4_spi.c | 80 xfer[0].tx_buf = wr_buf; cyttsp_spi_xfer()
|
H A D | cyttsp_spi.c | 77 xfer[0].tx_buf = wr_buf; cyttsp_spi_xfer()
|
H A D | tsc2005.c | 165 .tx_buf = &tx, tsc2005_cmd() 189 .tx_buf = &tx, tsc2005_write() 215 rd->spi_xfer.tx_buf = &rd->spi_tx; tsc2005_setup_read()
|
/linux-4.1.27/drivers/spi/ |
H A D | spi-octeon.c | 59 const u8 *tx_buf; octeon_spi_do_transfer() local 90 tx_buf = xfer->tx_buf; octeon_spi_do_transfer() 96 if (tx_buf) octeon_spi_do_transfer() 97 d = *tx_buf++; octeon_spi_do_transfer() 105 mpi_tx.s.txnum = tx_buf ? OCTEON_SPI_MAX_BYTES : 0; octeon_spi_do_transfer() 120 if (tx_buf) octeon_spi_do_transfer() 121 d = *tx_buf++; octeon_spi_do_transfer() 133 mpi_tx.s.txnum = tx_buf ? len : 0; octeon_spi_do_transfer()
|
H A D | spi-clps711x.c | 35 u8 *tx_buf; member in struct:spi_clps711x_data 72 hw->tx_buf = (u8 *)xfer->tx_buf; spi_clps711x_transfer_one() 76 data = hw->tx_buf ? *hw->tx_buf++ : 0; spi_clps711x_transfer_one() 95 data = hw->tx_buf ? *hw->tx_buf++ : 0; spi_clps711x_isr()
|
H A D | spi-sh-msiof.c | 358 const void *tx_buf, void *rx_buf, sh_msiof_spi_set_mode_regs() 363 if (tx_buf || (p->chipdata->master_flags & SPI_MASTER_MUST_TX)) sh_msiof_spi_set_mode_regs() 378 const void *tx_buf, int words, int fs) sh_msiof_spi_write_fifo_8() 380 const u8 *buf_8 = tx_buf; sh_msiof_spi_write_fifo_8() 388 const void *tx_buf, int words, int fs) sh_msiof_spi_write_fifo_16() 390 const u16 *buf_16 = tx_buf; sh_msiof_spi_write_fifo_16() 398 const void *tx_buf, int words, int fs) sh_msiof_spi_write_fifo_16u() 400 const u16 *buf_16 = tx_buf; sh_msiof_spi_write_fifo_16u() 408 const void *tx_buf, int words, int fs) sh_msiof_spi_write_fifo_32() 410 const u32 *buf_32 = tx_buf; sh_msiof_spi_write_fifo_32() 418 const void *tx_buf, int words, int fs) sh_msiof_spi_write_fifo_32u() 420 const u32 *buf_32 = tx_buf; sh_msiof_spi_write_fifo_32u() 428 const void *tx_buf, int words, int fs) sh_msiof_spi_write_fifo_s32() 430 const u32 *buf_32 = tx_buf; sh_msiof_spi_write_fifo_s32() 438 const void *tx_buf, int words, int fs) sh_msiof_spi_write_fifo_s32u() 440 const u32 *buf_32 = tx_buf; sh_msiof_spi_write_fifo_s32u() 602 const void *tx_buf, void *rx_buf, sh_msiof_spi_txrx_once() 609 if (tx_buf) sh_msiof_spi_txrx_once() 621 sh_msiof_spi_set_mode_regs(p, tx_buf, rx_buf, bits, words); sh_msiof_spi_txrx_once() 625 if (tx_buf) sh_msiof_spi_txrx_once() 626 tx_fifo(p, tx_buf, words, fifo_shift); sh_msiof_spi_txrx_once() 833 const void *tx_buf = t->tx_buf; sh_msiof_transfer_one() local 853 if (tx_buf) sh_msiof_transfer_one() 870 if (tx_buf) sh_msiof_transfer_one() 871 copy32(p->tx_dma_page, tx_buf, l / 4); sh_msiof_transfer_one() 873 ret = sh_msiof_dma_once(p, tx_buf, rx_buf, l); sh_msiof_transfer_one() 887 if (tx_buf) sh_msiof_transfer_one() 888 tx_buf += l; sh_msiof_transfer_one() 909 if ((unsigned long)tx_buf & 0x01) sh_msiof_transfer_one() 920 if ((unsigned long)tx_buf & 0x03) sh_msiof_transfer_one() 931 if ((unsigned long)tx_buf & 0x03) sh_msiof_transfer_one() 946 n = sh_msiof_spi_txrx_once(p, tx_fifo, rx_fifo, tx_buf, rx_buf, sh_msiof_transfer_one() 951 if (tx_buf) sh_msiof_transfer_one() 952 tx_buf += n * bytes_per_word; sh_msiof_transfer_one() 357 sh_msiof_spi_set_mode_regs(struct sh_msiof_spi_priv *p, const void *tx_buf, void *rx_buf, u32 bits, u32 words) sh_msiof_spi_set_mode_regs() argument 377 sh_msiof_spi_write_fifo_8(struct sh_msiof_spi_priv *p, const void *tx_buf, int words, int fs) sh_msiof_spi_write_fifo_8() argument 387 sh_msiof_spi_write_fifo_16(struct sh_msiof_spi_priv *p, const void *tx_buf, int words, int fs) sh_msiof_spi_write_fifo_16() argument 397 sh_msiof_spi_write_fifo_16u(struct sh_msiof_spi_priv *p, const void *tx_buf, int words, int fs) sh_msiof_spi_write_fifo_16u() argument 407 sh_msiof_spi_write_fifo_32(struct sh_msiof_spi_priv *p, const void *tx_buf, int words, int fs) sh_msiof_spi_write_fifo_32() argument 417 sh_msiof_spi_write_fifo_32u(struct sh_msiof_spi_priv *p, const void *tx_buf, int words, int fs) sh_msiof_spi_write_fifo_32u() argument 427 sh_msiof_spi_write_fifo_s32(struct sh_msiof_spi_priv *p, const void *tx_buf, int words, int fs) sh_msiof_spi_write_fifo_s32() argument 437 sh_msiof_spi_write_fifo_s32u(struct sh_msiof_spi_priv *p, const void *tx_buf, int words, int fs) sh_msiof_spi_write_fifo_s32u() argument 597 sh_msiof_spi_txrx_once(struct sh_msiof_spi_priv *p, void (*tx_fifo)(struct sh_msiof_spi_priv *, const void *, int, int), void (*rx_fifo)(struct sh_msiof_spi_priv *, void *, int, int), const void *tx_buf, void *rx_buf, int words, int bits) sh_msiof_spi_txrx_once() argument
|
H A D | spi-efm32.c | 85 const u8 *tx_buf; member in struct:efm32_spi_ddata 152 if (ddata->tx_buf) { efm32_spi_tx_u8() 153 val = *ddata->tx_buf; efm32_spi_tx_u8() 154 ddata->tx_buf++; efm32_spi_tx_u8() 191 if (ddata->tx_buf || ddata->rx_buf) efm32_spi_txrx_bufs() 194 ddata->tx_buf = t->tx_buf; efm32_spi_txrx_bufs() 214 ddata->tx_buf = ddata->rx_buf = NULL; efm32_spi_txrx_bufs()
|
H A D | spi-orion.c | 266 const u8 **tx_buf, u8 **rx_buf) orion_spi_write_read_8bit() 279 if (tx_buf && *tx_buf) orion_spi_write_read_8bit() 280 writel(*(*tx_buf)++, tx_reg); orion_spi_write_read_8bit() 297 const u16 **tx_buf, u16 **rx_buf) orion_spi_write_read_16bit() 310 if (tx_buf && *tx_buf) orion_spi_write_read_16bit() 311 writel(__cpu_to_le16(get_unaligned((*tx_buf)++)), tx_reg); orion_spi_write_read_16bit() 336 const u8 *tx = xfer->tx_buf; orion_spi_write_read() 345 const u16 *tx = xfer->tx_buf; orion_spi_write_read() 265 orion_spi_write_read_8bit(struct spi_device *spi, const u8 **tx_buf, u8 **rx_buf) orion_spi_write_read_8bit() argument 296 orion_spi_write_read_16bit(struct spi_device *spi, const u16 **tx_buf, u16 **rx_buf) orion_spi_write_read_16bit() argument
|
H A D | spi-omap-100k.c | 203 tx = xfer->tx_buf; omap1_spi100k_txrx_pio() 206 if (xfer->tx_buf != NULL) omap1_spi100k_txrx_pio() 216 tx = xfer->tx_buf; omap1_spi100k_txrx_pio() 219 if (xfer->tx_buf != NULL) omap1_spi100k_txrx_pio() 229 tx = xfer->tx_buf; omap1_spi100k_txrx_pio() 232 if (xfer->tx_buf != NULL) omap1_spi100k_txrx_pio() 309 if (t->tx_buf == NULL && t->rx_buf == NULL && t->len) { omap1_spi100k_transfer_one_message()
|
H A D | spi-mpc52xx.c | 87 const u8 *tx_buf; member in struct:mpc52xx_spi 115 ms->tx_buf = ms->transfer->tx_buf; mpc52xx_spi_start_transfer() 125 if (ms->tx_buf) mpc52xx_spi_start_transfer() 126 out_8(ms->regs + SPI_DATA, *ms->tx_buf++); mpc52xx_spi_start_transfer() 228 if (ms->tx_buf) mpc52xx_spi_fsmstate_transfer() 229 data = *(ms->tx_buf - 1); mpc52xx_spi_fsmstate_transfer() 259 if (ms->tx_buf) mpc52xx_spi_fsmstate_transfer() 260 out_8(ms->regs + SPI_DATA, *ms->tx_buf++); mpc52xx_spi_fsmstate_transfer()
|
H A D | spi-fsl-espi.c | 41 const void *tx_buf; member in struct:fsl_espi_transfer 227 mpc8xxx_spi->tx = t->tx_buf; fsl_espi_bufs() 300 trans.tx_buf = espi_trans->tx_buf; fsl_espi_do_trans() 344 if (t->tx_buf) { fsl_espi_cmd_trans() 345 memcpy(local_buf + i, t->tx_buf, t->len); fsl_espi_cmd_trans() 350 espi_trans->tx_buf = local_buf; fsl_espi_cmd_trans() 385 if (t->tx_buf) { fsl_espi_rw_trans() 386 memcpy(local_buf + i, t->tx_buf, t->len); fsl_espi_rw_trans() 408 espi_trans->tx_buf = local_buf; fsl_espi_rw_trans() 439 if (t->tx_buf) fsl_espi_do_one_msg() 445 if ((t->tx_buf) || (t->rx_buf)) fsl_espi_do_one_msg()
|
H A D | spi-xcomm.c | 116 if (t->tx_buf) { spi_xcomm_txrx_bufs() 118 memcpy(spi_xcomm->buf + 1, t->tx_buf, t->len); spi_xcomm_txrx_bufs() 152 if (!t->tx_buf && !t->rx_buf && t->len) { spi_xcomm_transfer_one()
|
H A D | spidev.c | 136 .tx_buf = spidev->tx_buffer, spidev_sync_write() 227 u8 *tx_buf, *rx_buf; spidev_message() local 239 tx_buf = spidev->tx_buffer; spidev_message() 274 if (u_tmp->tx_buf) { spidev_message() 281 k_tmp->tx_buf = tx_buf; spidev_message() 282 if (copy_from_user(tx_buf, (const u8 __user *) spidev_message() 283 (uintptr_t) u_tmp->tx_buf, spidev_message() 286 tx_buf += k_tmp->len; spidev_message() 302 u_tmp->tx_buf ? "tx " : "", spidev_message() 568 ioc[n].tx_buf = (uintptr_t) compat_ptr(ioc[n].tx_buf); spidev_compat_ioc_message()
|
H A D | spi-bcm63xx.c | 135 t->tx_buf, t->rx_buf, t->len); bcm63xx_txrx_bufs() 137 if (num_transfers > 1 && t->tx_buf && t->len <= BCM63XX_SPI_MAX_PREPEND) bcm63xx_txrx_bufs() 142 if (t->tx_buf) { bcm63xx_txrx_bufs() 144 memcpy_toio(bs->tx_io + len, t->tx_buf, t->len); bcm63xx_txrx_bufs() 241 if (n_transfers == 2 && !first->rx_buf && !t->tx_buf && bcm63xx_spi_transfer_one() 244 else if (can_use_prepend && t->tx_buf) bcm63xx_spi_transfer_one()
|
H A D | spi-sun4i.c | 84 const u8 *tx_buf; member in struct:sun4i_spi 127 byte = sspi->tx_buf ? *sspi->tx_buf++ : 0; sun4i_spi_fill_fifo() 182 sspi->tx_buf = tfr->tx_buf; sun4i_spi_transfer_one() 265 if (sspi->tx_buf) sun4i_spi_transfer_one()
|
H A D | spi-sun6i.c | 90 const u8 *tx_buf; member in struct:sun6i_spi 133 byte = sspi->tx_buf ? *sspi->tx_buf++ : 0; sun6i_spi_fill_fifo() 172 sspi->tx_buf = tfr->tx_buf; sun6i_spi_transfer_one() 253 if (sspi->tx_buf) sun6i_spi_transfer_one()
|
H A D | spi-omap2-mcspi.c | 294 if (t->rx_buf != NULL && t->tx_buf != NULL) omap2_mcspi_set_fifo() 312 if (t->tx_buf != NULL) { omap2_mcspi_set_fifo() 328 if (t->tx_buf != NULL) omap2_mcspi_set_fifo() 590 tx = xfer->tx_buf; omap2_mcspi_txrx_dma() 671 tx = xfer->tx_buf; omap2_mcspi_txrx_pio() 719 tx = xfer->tx_buf; omap2_mcspi_txrx_pio() 766 tx = xfer->tx_buf; omap2_mcspi_txrx_pio() 1094 if (t->tx_buf == NULL && t->rx_buf == NULL && t->len) { omap2_mcspi_work() 1127 if (t->tx_buf == NULL) omap2_mcspi_work() 1132 if (cd && cd->turbo_mode && t->tx_buf == NULL) { omap2_mcspi_work() 1150 if (t->tx_buf == NULL) omap2_mcspi_work() 1222 const void *tx_buf = t->tx_buf; omap2_mcspi_transfer_one_message() local 1226 if ((len && !(rx_buf || tx_buf))) { omap2_mcspi_transfer_one_message() 1230 tx_buf ? "tx" : "", omap2_mcspi_transfer_one_message() 1240 if (mcspi_dma->dma_tx && tx_buf != NULL) { omap2_mcspi_transfer_one_message() 1241 t->tx_dma = dma_map_single(mcspi->dev, (void *) tx_buf, omap2_mcspi_transfer_one_message() 1256 if (tx_buf != NULL) omap2_mcspi_transfer_one_message()
|
H A D | spi-qup.c | 249 const u8 *tx_buf = xfer->tx_buf; spi_qup_fifo_write() local 264 if (!tx_buf) { spi_qup_fifo_write() 269 data = tx_buf[controller->tx_bytes]; spi_qup_fifo_write() 321 if (xfer->tx_buf) spi_qup_dma_terminate() 334 else if (xfer->tx_buf) spi_qup_do_dma() 345 if (xfer->tx_buf) { spi_qup_do_dma() 524 if (xfer->tx_buf) spi_qup_io_config() 585 if (!xfer->tx_buf) spi_qup_io_config() 680 if (xfer->tx_buf && (xfer->len % qup->out_blk_sz || spi_qup_can_dma() 682 !IS_ALIGNED((size_t)xfer->tx_buf, dma_align))) spi_qup_can_dma()
|
H A D | spi-img-spfi.c | 238 const void *tx_buf = xfer->tx_buf; img_spfi_start_pio() local 243 if (tx_buf) img_spfi_start_pio() 257 tx_count = spfi_pio_write32(spfi, tx_buf, tx_bytes); img_spfi_start_pio() 259 tx_count = spfi_pio_write8(spfi, tx_buf, tx_bytes); img_spfi_start_pio() 266 tx_buf += tx_count; img_spfi_start_pio() 349 if (xfer->tx_buf) { img_spfi_start_dma() 381 if (xfer->tx_buf) { img_spfi_start_dma() 517 if (xfer->tx_buf) img_spfi_config()
|
H A D | spi-adi-v3.c | 397 if (t->tx_buf) { adi_spi_setup_transfer() 398 drv->tx = (void *)t->tx_buf; adi_spi_setup_transfer() 446 void *tx_buf, *rx_buf; adi_spi_dma_xfer() local 467 tx_buf = drv_data->tx; adi_spi_dma_xfer() 475 tx_buf = &drv_data->dummy_buffer; adi_spi_dma_xfer() 482 tx_buf = drv_data->tx; adi_spi_dma_xfer() 491 (void *)tx_buf, adi_spi_dma_xfer() 593 if ((t->len == 0) || (t->tx_buf == NULL && t->rx_buf == NULL)) { adi_spi_pump_transfers()
|
H A D | spi-bcm53xx.c | 179 if (t->tx_buf) { bcm53xxspi_transfer_one() 180 buf = (u8 *)t->tx_buf; bcm53xxspi_transfer_one()
|
H A D | spi-atmel.c | 522 if (xfer->tx_buf) { atmel_spi_next_xfer_pio() 524 spi_writel(as, TDR, *(u16 *)(xfer->tx_buf + xfer_pos)); atmel_spi_next_xfer_pio() 526 spi_writel(as, TDR, *(u8 *)(xfer->tx_buf + xfer_pos)); atmel_spi_next_xfer_pio() 533 xfer, xfer->len, xfer->tx_buf, xfer->rx_buf, atmel_spi_next_xfer_pio() 577 if (xfer->tx_buf) { atmel_spi_next_xfer_dma_submit() 609 xfer, xfer->len, xfer->tx_buf, (unsigned long long)xfer->tx_dma, atmel_spi_next_xfer_dma_submit() 659 if (xfer->tx_buf) atmel_spi_next_xfer_data() 749 xfer, xfer->len, xfer->tx_buf, atmel_spi_pdc_next_xfer() 768 xfer, xfer->len, xfer->tx_buf, atmel_spi_pdc_next_xfer() 788 * For DMA, tx_buf/tx_dma have the same relationship as rx_buf/rx_dma: 800 if (xfer->tx_buf) { atmel_spi_dma_map_xfer() 801 /* tx_buf is a const void* where we need a void * for the dma atmel_spi_dma_map_xfer() 803 void *nonconst_tx = (void *)xfer->tx_buf; atmel_spi_dma_map_xfer() 816 if (xfer->tx_buf) atmel_spi_dma_map_xfer() 1059 if (!(xfer->tx_buf || xfer->rx_buf) && xfer->len) { atmel_spi_one_transfer() 1224 xfer->tx_buf, &xfer->tx_dma, atmel_spi_transfer_one_message()
|
H A D | spi-sh.c | 174 data = (unsigned char *)t->tx_buf; spi_sh_send() 300 pr_debug("tx_buf = %p, rx_buf = %p\n", spi_sh_work() 301 t->tx_buf, t->rx_buf); spi_sh_work() 305 if (t->tx_buf) { spi_sh_work()
|
H A D | spi-bcm2835.c | 82 const u8 *tx_buf; member in struct:bcm2835_spi 117 byte = bs->tx_buf ? *bs->tx_buf++ : 0; bcm2835_wr_fifo() 274 bs->tx_buf = tfr->tx_buf; bcm2835_spi_transfer_one()
|
H A D | spi-mpc512x-psc.c | 135 u8 *tx_buf = (u8 *)t->tx_buf; mpc512x_psc_spi_transfer_rxtx() local 138 if (!tx_buf && !rx_buf && t->len) mpc512x_psc_spi_transfer_rxtx() 161 data = tx_buf ? *tx_buf++ : 0; mpc512x_psc_spi_transfer_rxtx()
|
H A D | spi-mpc52xx-psc.c | 140 unsigned char *tx_buf = (unsigned char *)t->tx_buf; mpc52xx_psc_spi_transfer_rxtx() local 146 if (!t->tx_buf && !t->rx_buf && t->len) mpc52xx_psc_spi_transfer_rxtx() 167 if (tx_buf) mpc52xx_psc_spi_transfer_rxtx() 168 out_8(&psc->mpc52xx_psc_buffer_8, tx_buf[sb]); mpc52xx_psc_spi_transfer_rxtx()
|
H A D | spi-topcliff-pch.c | 474 if (!transfer->tx_buf && !transfer->rx_buf) { pch_spi_transfer() 559 const u8 *tx_buf; pch_spi_set_tx() local 612 if (data->cur_trans->tx_buf != NULL) { pch_spi_set_tx() 614 tx_buf = data->cur_trans->tx_buf; pch_spi_set_tx() 616 data->pkt_tx_buff[j] = *tx_buf++; pch_spi_set_tx() 618 tx_sbuf = data->cur_trans->tx_buf; pch_spi_set_tx() 927 const u8 *tx_buf; pch_spi_handle_dma() local 973 if (data->cur_trans->tx_buf != NULL) { pch_spi_handle_dma() 975 tx_buf = data->cur_trans->tx_buf; pch_spi_handle_dma() 978 *tx_dma_buf++ = *tx_buf++; pch_spi_handle_dma() 980 tx_sbuf = data->cur_trans->tx_buf; pch_spi_handle_dma()
|
H A D | spi-sirf.c | 134 #define IS_DMA_VALID(x) (x && ALIGNED(x->tx_buf) && ALIGNED(x->rx_buf) && \ 366 (t->tx_buf != t->rx_buf) ? spi_sirfsoc_dma_transfer() 375 (t->tx_buf != t->rx_buf) ? spi_sirfsoc_dma_transfer() 466 sspi->tx = t->tx_buf ? t->tx_buf : sspi->dummypage; spi_sirfsoc_transfer() 599 if (t && t->tx_buf && !t->rx_buf && (t->len <= SIRFSOC_MAX_CMD_BYTES)) { spi_sirfsoc_setup_transfer()
|
H A D | spi-bitbang.c | 69 const u8 *tx = t->tx_buf; bitbang_txrx_8() 95 const u16 *tx = t->tx_buf; bitbang_txrx_16() 121 const u32 *tx = t->tx_buf; bitbang_txrx_32() 319 if (!t->tx_buf && !t->rx_buf && t->len) { spi_bitbang_transfer_one()
|
H A D | spi-mxs.c | 408 if (t->tx_buf) mxs_spi_transfer_one() 410 (void *)t->tx_buf, mxs_spi_transfer_one() 421 if (t->tx_buf) mxs_spi_transfer_one() 423 (void *)t->tx_buf, t->len, mxs_spi_transfer_one()
|
H A D | spi-tegra114.c | 293 u8 *tx_buf = (u8 *)t->tx_buf + tspi->cur_tx_pos; tegra_spi_fill_tx_fifo_from_client_txbuf() local 307 x |= (u32)(*tx_buf++) << (i * 8); tegra_spi_fill_tx_fifo_from_client_txbuf() 319 x |= (u32)(*tx_buf++) << (i * 8); tegra_spi_fill_tx_fifo_from_client_txbuf() 374 memcpy(tspi->tx_dma_buf, t->tx_buf + tspi->cur_pos, len); tegra_spi_copy_client_txbuf_to_spi_txbuf() 378 u8 *tx_buf = (u8 *)t->tx_buf + tspi->cur_tx_pos; tegra_spi_copy_client_txbuf_to_spi_txbuf() local 386 x |= (u32)(*tx_buf++) << (i * 8); tegra_spi_copy_client_txbuf_to_spi_txbuf() 740 if (t->tx_buf) { tegra_spi_start_transfer_one()
|
H A D | spi-tegra20-sflash.c | 189 u8 *tx_buf = (u8 *)t->tx_buf + tsd->cur_tx_pos; tegra_sflash_fill_tx_fifo_from_client_txbuf() local 202 x |= (u32)(*tx_buf++) << (i * 8); tegra_sflash_fill_tx_fifo_from_client_txbuf() 307 if (t->tx_buf) { tegra_sflash_start_transfer_one()
|
H A D | spi-tegra20-slink.c | 310 u8 *tx_buf = (u8 *)t->tx_buf + tspi->cur_tx_pos; tegra_slink_fill_tx_fifo_from_client_txbuf() local 323 x |= (u32)(*tx_buf++) << (i * 8); tegra_slink_fill_tx_fifo_from_client_txbuf() 334 x |= (u32)(*tx_buf++) << (i * 8); tegra_slink_fill_tx_fifo_from_client_txbuf() 384 memcpy(tspi->tx_dma_buf, t->tx_buf + tspi->cur_pos, len); tegra_slink_copy_client_txbuf_to_spi_txbuf() 388 u8 *tx_buf = (u8 *)t->tx_buf + tspi->cur_tx_pos; tegra_slink_copy_client_txbuf_to_spi_txbuf() local 395 x |= (u32)(*tx_buf++) << (i * 8); tegra_slink_copy_client_txbuf_to_spi_txbuf() 728 if (t->tx_buf) { tegra_slink_start_transfer_one()
|
H A D | spi-dw-mid.c | 155 if (!xfer->tx_buf) dw_spi_dma_prepare_tx() 234 if (xfer->tx_buf) mid_spi_dma_setup()
|
H A D | spi-oc-tiny.c | 126 const u8 *txp = t->tx_buf; tiny_spi_txrx_bufs() 133 hw->txp = t->tx_buf; tiny_spi_txrx_bufs()
|
H A D | spi-sc18is602.c | 87 if (t->tx_buf) { sc18is602_txrx() 88 memcpy(&hw->buffer[hw->tlen], t->tx_buf, len); sc18is602_txrx()
|
H A D | spi-sh-hspi.c | 183 if (t->tx_buf) hspi_transfer_one_message() 184 tx = (u32)((u8 *)t->tx_buf)[i]; hspi_transfer_one_message()
|
H A D | spi-bfin-sport.c | 398 if (transfer->tx_buf != NULL) { bfin_sport_spi_pump_transfers() 399 drv_data->tx = (void *)transfer->tx_buf; bfin_sport_spi_pump_transfers() 401 dev_dbg(drv_data->dev, "tx_buf is %p, tx_end is %p\n", bfin_sport_spi_pump_transfers() 402 transfer->tx_buf, drv_data->tx_end); bfin_sport_spi_pump_transfers() 407 full_duplex = transfer->tx_buf != NULL; bfin_sport_spi_pump_transfers()
|
H A D | spi-omap-uwire.c | 213 if (!t->tx_buf && !t->rx_buf) uwire_txrx() 219 if (t->tx_buf) { uwire_txrx() 220 const u8 *buf = t->tx_buf; uwire_txrx()
|
H A D | spi-coldfire-qspi.c | 324 mcfqspi_transfer_msg8(mcfqspi, t->len, t->tx_buf, t->rx_buf); mcfqspi_transfer_one() 326 mcfqspi_transfer_msg16(mcfqspi, t->len / 2, t->tx_buf, mcfqspi_transfer_one()
|
H A D | spi-fsl-cpm.c | 118 if (!t->tx_buf) { fsl_spi_cpm_bufs() 137 } else if (t->tx_buf) { fsl_spi_cpm_bufs()
|
H A D | spi-meson-spifc.c | 208 if (xfer->tx_buf) meson_spifc_txrx() 209 meson_spifc_fill_buffer(spifc, xfer->tx_buf + offset, len); meson_spifc_txrx()
|
H A D | spi-txx9.c | 179 const void *txbuf = t->tx_buf; txx9spi_work_one() 312 if (!t->tx_buf && !t->rx_buf && t->len) txx9spi_transfer()
|
H A D | spi-au1550.c | 326 hw->tx = t->tx_buf; au1550_spi_dma_txrxb() 339 if (t->tx_buf) { au1550_spi_dma_txrxb() 342 (void *)t->tx_buf, au1550_spi_dma_txrxb() 373 if (!t->tx_buf) { au1550_spi_dma_txrxb() 415 if (t->tx_buf && t->tx_dma == 0 ) au1550_spi_dma_txrxb() 518 hw->tx = t->tx_buf; au1550_spi_pio_txrxb()
|
H A D | spi-imx.c | 100 const void *tx_buf; member in struct:spi_imx_data 148 if (spi_imx->tx_buf) { \ 149 val = *(type *)spi_imx->tx_buf; \ 150 spi_imx->tx_buf += sizeof(type); \ 991 spi_imx->tx_buf = transfer->tx_buf; spi_imx_pio_transfer()
|
H A D | spi-s3c64xx.c | 401 if (xfer->tx_buf != NULL) { enable_datapath() 411 xfer->tx_buf, xfer->len / 4); enable_datapath() 415 xfer->tx_buf, xfer->len / 2); enable_datapath() 419 xfer->tx_buf, xfer->len); enable_datapath() 725 xfer->rx_buf ? 1 : 0, xfer->tx_buf ? 1 : 0, s3c64xx_spi_transfer_one() 731 if (xfer->tx_buf != NULL s3c64xx_spi_transfer_one()
|
H A D | spi.c | 549 if (xfer->tx_buf != NULL) { __spi_map_msg() 551 (void *)xfer->tx_buf, xfer->len, __spi_map_msg() 587 * Restore the original value of tx_buf or rx_buf if they are spi_unmap_msg() 590 if (xfer->tx_buf == master->dummy_tx) spi_unmap_msg() 591 xfer->tx_buf = NULL; spi_unmap_msg() 630 !xfer->tx_buf) spi_map_msg() 657 if (!xfer->tx_buf) spi_map_msg() 658 xfer->tx_buf = master->dummy_tx; spi_map_msg() 688 if (xfer->tx_buf || xfer->rx_buf) { spi_transfer_one_message() 1830 if (xfer->rx_buf && xfer->tx_buf) __spi_validate() 1832 if ((flags & SPI_MASTER_NO_TX) && xfer->tx_buf) __spi_validate() 1885 if (xfer->tx_buf && !xfer->tx_nbits) __spi_validate() 1893 if (xfer->tx_buf) { __spi_validate() 2268 x[0].tx_buf = local_buf; spi_write_then_read() 2276 if (x[0].tx_buf == buf) spi_write_then_read()
|
H A D | spi-ep93xx.c | 343 if (t->tx_buf) ep93xx_do_write() 344 tx_val = ((u16 *)t->tx_buf)[espi->tx]; ep93xx_do_write() 350 if (t->tx_buf) ep93xx_do_write() 351 tx_val = ((u8 *)t->tx_buf)[espi->tx]; ep93xx_do_write() 462 buf = t->tx_buf; ep93xx_spi_dma_prepare()
|
H A D | spi-ppc4xx.c | 151 t->tx_buf, t->rx_buf, t->len); spi_ppc4xx_txrx() 155 hw->tx = t->tx_buf; spi_ppc4xx_txrx()
|
H A D | spi-ti-qspi.c | 224 txbuf = t->tx_buf; qspi_write_msg() 319 if (t->tx_buf) { qspi_transfer_msg()
|
H A D | spi-altera.c | 123 hw->tx = t->tx_buf; altera_spi_txrx()
|
H A D | spi-falcon.c | 104 const u8 *txp = t->tx_buf; falcon_sflash_xfer()
|
H A D | spi-rspi.c | 688 ret = rspi_pio_transfer(rspi, xfer->tx_buf, xfer->rx_buf, xfer->len); rspi_common_transfer() 774 ret = qspi_trigger_transfer_out_int(rspi, xfer->tx_buf, qspi_transfer_out_in() 792 ret = rspi_pio_transfer(rspi, xfer->tx_buf, NULL, xfer->len); qspi_transfer_out() 856 if (xfer->tx_buf) qspi_transfer_mode()
|
H A D | spi-tle62x0.c | 64 .tx_buf = txbuff, tle62x0_read()
|
H A D | spi-bfin5xx.c | 617 if (transfer->tx_buf != NULL) { bfin_spi_pump_transfers() 618 drv_data->tx = (void *)transfer->tx_buf; bfin_spi_pump_transfers() 620 dev_dbg(&drv_data->pdev->dev, "tx_buf is %p, tx_end is %p\n", bfin_spi_pump_transfers() 621 transfer->tx_buf, drv_data->tx_end); bfin_spi_pump_transfers() 627 full_duplex = transfer->tx_buf != NULL; bfin_spi_pump_transfers()
|
H A D | spi-rockchip.c | 573 if (!xfer->tx_buf && !xfer->rx_buf) { rockchip_spi_transfer_one() 582 rs->tx = xfer->tx_buf; rockchip_spi_transfer_one()
|
/linux-4.1.27/drivers/char/tpm/st33zp24/ |
H A D | spi.c | 70 u8 tx_buf[ST33ZP24_SPI_BUFFER_SIZE]; member in struct:st33zp24_spi_phy 117 u8 *tx_buf = (u8 *)phy->spi_xfer.tx_buf; st33zp24_spi_send() local 122 memcpy(tx_buf + total_length, &data, sizeof(data)); st33zp24_spi_send() 125 memcpy(tx_buf + total_length, &data, sizeof(data)); st33zp24_spi_send() 129 tx_buf[total_length++] = tpm_size >> 8; st33zp24_spi_send() 130 tx_buf[total_length++] = tpm_size; st33zp24_spi_send() 133 memcpy(&tx_buf[total_length], tpm_data, tpm_size); st33zp24_spi_send() 137 memset(&tx_buf[total_length], TPM_DUMMY_BYTE, nbr_dummy_bytes); st33zp24_spi_send() 163 u8 *tx_buf = (u8 *)phy->spi_xfer.tx_buf; read8_reg() local 168 memcpy(tx_buf + total_length, &data, sizeof(data)); read8_reg() 171 memcpy(tx_buf + total_length, &data, sizeof(data)); read8_reg() 175 memset(&tx_buf[total_length], TPM_DUMMY_BYTE, read8_reg() 342 phy->spi_xfer.tx_buf = phy->tx_buf; tpm_st33_spi_probe()
|
/linux-4.1.27/drivers/staging/gdm72xx/ |
H A D | sdio_boot.c | 40 static u8 *tx_buf; variable 61 u8 *buf = tx_buf; download_image() 141 tx_buf = kmalloc(YMEM0_SIZE, GFP_KERNEL); sdio_boot() 142 if (tx_buf == NULL) sdio_boot() 156 kfree(tx_buf); sdio_boot()
|
H A D | usb_boot.c | 75 static u8 *tx_buf; variable 131 memcpy(tx_buf, firm->data + pos, size); download_image() 132 ret = gdm_wibro_send(usbdev, tx_buf, size); download_image() 161 tx_buf = kmalloc(DOWNLOAD_SIZE, GFP_KERNEL); usb_boot() 162 if (tx_buf == NULL) usb_boot() 235 kfree(tx_buf); usb_boot()
|
/linux-4.1.27/drivers/iio/adc/ |
H A D | ad7298.c | 55 __be16 tx_buf[2]; member in struct:ad7298_state 122 st->tx_buf[0] = cpu_to_be16(command); ad7298_update_scan_mode() 125 st->ring_xfer[0].tx_buf = &st->tx_buf[0]; ad7298_update_scan_mode() 128 st->ring_xfer[1].tx_buf = &st->tx_buf[1]; ad7298_update_scan_mode() 177 st->tx_buf[0] = cpu_to_be16(AD7298_WRITE | st->ext_ref | ad7298_scan_direct() 325 st->scan_single_xfer[0].tx_buf = &st->tx_buf[0]; ad7298_probe() 328 st->scan_single_xfer[1].tx_buf = &st->tx_buf[1]; ad7298_probe()
|
H A D | ad7923.c | 70 __be16 tx_buf[4]; member in struct:ad7923_state 144 st->tx_buf[len++] = cpu_to_be16(cmd); for_each_set_bit() 147 st->ring_xfer[0].tx_buf = &st->tx_buf[0]; 200 st->tx_buf[0] = cpu_to_be16(cmd); ad7923_scan_direct() 299 st->scan_single_xfer[0].tx_buf = &st->tx_buf[0]; ad7923_probe()
|
H A D | max1363.c | 342 u8 tx_buf[2] = { st->setupbyte, st->configbyte }; max1363_write_basic_config() local 344 return st->send(st->client, tx_buf, 2); max1363_write_basic_config() 826 u8 *tx_buf; max1363_monitor_mode_update() local 858 tx_buf = kmalloc(len, GFP_KERNEL); max1363_monitor_mode_update() 859 if (!tx_buf) { max1363_monitor_mode_update() 863 tx_buf[0] = st->configbyte; max1363_monitor_mode_update() 864 tx_buf[1] = st->setupbyte; max1363_monitor_mode_update() 865 tx_buf[2] = (st->monitor_speed << 1); max1363_monitor_mode_update() 875 tx_buf[i] = (st->thresh_low[j] >> 4) & 0xFF; max1363_monitor_mode_update() 876 tx_buf[i + 1] = (st->thresh_low[j] << 4) & 0xF0; max1363_monitor_mode_update() 878 tx_buf[i] = 0; max1363_monitor_mode_update() 879 tx_buf[i + 1] = 0; max1363_monitor_mode_update() 881 tx_buf[i] = 0x80; max1363_monitor_mode_update() 882 tx_buf[i + 1] = 0; max1363_monitor_mode_update() 885 tx_buf[i + 1] |= max1363_monitor_mode_update() 887 tx_buf[i + 2] = st->thresh_high[j] & 0xFF; max1363_monitor_mode_update() 889 tx_buf[i + 1] |= 0x0F; max1363_monitor_mode_update() 890 tx_buf[i + 2] = 0xFF; max1363_monitor_mode_update() 892 tx_buf[i + 1] |= 0x07; max1363_monitor_mode_update() 893 tx_buf[i + 2] = 0xFF; max1363_monitor_mode_update() 899 ret = st->send(st->client, tx_buf, len); max1363_monitor_mode_update() 914 tx_buf[0] = st->setupbyte; max1363_monitor_mode_update() 915 tx_buf[1] = MAX1363_MON_INT_ENABLE | (st->monitor_speed << 1) | 0xF0; max1363_monitor_mode_update() 916 ret = st->send(st->client, tx_buf, 2); max1363_monitor_mode_update() 927 kfree(tx_buf); max1363_monitor_mode_update()
|
H A D | mcp320x.c | 67 u8 tx_buf ____cacheline_aligned; 102 adc->tx_buf = mcp320x_channel_to_tx_data(device_index, mcp320x_adc_conversion() 302 adc->transfer[0].tx_buf = &adc->tx_buf; mcp320x_probe() 303 adc->transfer[0].len = sizeof(adc->tx_buf); mcp320x_probe()
|
H A D | ad7887.c | 283 st->xfer[0].tx_buf = &st->tx_cmd_buf[0]; ad7887_probe() 293 st->xfer[1].tx_buf = &st->tx_cmd_buf[2]; ad7887_probe() 297 st->xfer[2].tx_buf = &st->tx_cmd_buf[0]; ad7887_probe() 305 st->xfer[3].tx_buf = &st->tx_cmd_buf[2]; ad7887_probe()
|
H A D | ad_sigma_delta.c | 63 .tx_buf = data, ad_sd_write_reg() 109 .tx_buf = data, ad_sd_read_reg_raw()
|
H A D | ad7266.c | 456 st->single_xfer[2].tx_buf = &st->data.sample[0]; ad7266_probe()
|
/linux-4.1.27/drivers/base/regmap/ |
H A D | regmap-spi.c | 47 struct spi_transfer t[2] = { { .tx_buf = reg, .len = reg_len, }, regmap_spi_gather_write() 48 { .tx_buf = val, .len = val_len, }, }; regmap_spi_gather_write() 68 async->t[0].tx_buf = reg; regmap_spi_async_write() 70 async->t[1].tx_buf = val; regmap_spi_async_write()
|
/linux-4.1.27/drivers/video/fbdev/omap2/displays-new/ |
H A D | panel-tpo-td028ttec1.c | 70 u16 tx_buf = JBT_COMMAND | reg; jbt_ret_write_0() local 72 rc = spi_write(ddata->spi_dev, (u8 *)&tx_buf, jbt_ret_write_0() 84 u16 tx_buf[2]; jbt_reg_write_1() local 86 tx_buf[0] = JBT_COMMAND | reg; jbt_reg_write_1() 87 tx_buf[1] = JBT_DATA | data; jbt_reg_write_1() 88 rc = spi_write(ddata->spi_dev, (u8 *)tx_buf, jbt_reg_write_1() 100 u16 tx_buf[3]; jbt_reg_write_2() local 102 tx_buf[0] = JBT_COMMAND | reg; jbt_reg_write_2() 103 tx_buf[1] = JBT_DATA | (data >> 8); jbt_reg_write_2() 104 tx_buf[2] = JBT_DATA | (data & 0xff); jbt_reg_write_2() 106 rc = spi_write(ddata->spi_dev, (u8 *)tx_buf, jbt_reg_write_2()
|
H A D | panel-lgphilips-lb035q02.c | 79 index_xfer.tx_buf = buffer; lb035q02_write_reg() 86 value_xfer.tx_buf = buffer + 4; lb035q02_write_reg()
|
H A D | panel-sony-acx565akm.c | 131 x->tx_buf = &cmd; acx565akm_transfer() 148 x->tx_buf = wbuf; acx565akm_transfer()
|
/linux-4.1.27/drivers/staging/iio/frequency/ |
H A D | ad9832.c | 240 st->xfer.tx_buf = &st->data; ad9832_probe() 246 st->freq_xfer[0].tx_buf = &st->freq_data[0]; ad9832_probe() 249 st->freq_xfer[1].tx_buf = &st->freq_data[1]; ad9832_probe() 252 st->freq_xfer[2].tx_buf = &st->freq_data[2]; ad9832_probe() 255 st->freq_xfer[3].tx_buf = &st->freq_data[3]; ad9832_probe() 264 st->phase_xfer[0].tx_buf = &st->phase_data[0]; ad9832_probe() 267 st->phase_xfer[1].tx_buf = &st->phase_data[1]; ad9832_probe()
|
H A D | ad9834.c | 365 st->xfer.tx_buf = &st->data; ad9834_probe() 371 st->freq_xfer[0].tx_buf = &st->freq_data[0]; ad9834_probe() 374 st->freq_xfer[1].tx_buf = &st->freq_data[1]; ad9834_probe()
|
/linux-4.1.27/drivers/net/usb/ |
H A D | ipheth.c | 146 unsigned char *tx_buf; member in struct:ipheth_device 160 u8 *tx_buf = NULL; ipheth_alloc_urbs() local 171 tx_buf = usb_alloc_coherent(iphone->udev, IPHETH_BUF_SIZE, ipheth_alloc_urbs() 173 if (tx_buf == NULL) ipheth_alloc_urbs() 184 iphone->tx_buf = tx_buf; ipheth_alloc_urbs() 189 usb_free_coherent(iphone->udev, IPHETH_BUF_SIZE, tx_buf, ipheth_alloc_urbs() 203 usb_free_coherent(iphone->udev, IPHETH_BUF_SIZE, iphone->tx_buf, ipheth_free_urbs() 417 memcpy(dev->tx_buf, skb->data, skb->len); ipheth_tx() 419 memset(dev->tx_buf + skb->len, 0, IPHETH_BUF_SIZE - skb->len); ipheth_tx() 423 dev->tx_buf, IPHETH_BUF_SIZE, ipheth_tx()
|
H A D | catc.c | 170 u8 tx_buf[2][TX_MAX_BURST * (PKT_SZ + 2)]; member in struct:catc 369 catc->tx_urb->transfer_buffer = catc->tx_buf[catc->tx_idx]; catc_tx_run() 426 char *tx_buf; catc_start_xmit() local 431 tx_buf = catc->tx_buf[catc->tx_idx] + catc->tx_ptr; catc_start_xmit() 433 *(__be16 *)tx_buf = cpu_to_be16(skb->len); catc_start_xmit() 435 *(__le16 *)tx_buf = cpu_to_le16(skb->len); catc_start_xmit() 436 skb_copy_from_linear_data(skb, tx_buf + 2, skb->len); catc_start_xmit()
|
/linux-4.1.27/drivers/iio/imu/ |
H A D | adis.c | 38 .tx_buf = adis->tx, adis_write_reg() 44 .tx_buf = adis->tx + 2, adis_write_reg() 50 .tx_buf = adis->tx + 4, adis_write_reg() 56 .tx_buf = adis->tx + 6, adis_write_reg() 61 .tx_buf = adis->tx + 8, adis_write_reg() 130 .tx_buf = adis->tx, adis_read_reg() 136 .tx_buf = adis->tx + 2, adis_read_reg() 142 .tx_buf = adis->tx + 4, adis_read_reg()
|
H A D | adis16400_buffer.c | 47 adis->xfer[0].tx_buf = tx; adis16400_update_scan_mode()
|
H A D | adis_buffer.c | 57 adis->xfer[j].tx_buf = &tx[j]; adis_update_scan_mode()
|
/linux-4.1.27/drivers/gpu/drm/radeon/ |
H A D | atombios_dp.c | 166 u8 tx_buf[20]; radeon_dp_aux_transfer_atom() local 173 tx_buf[0] = msg->address & 0xff; radeon_dp_aux_transfer_atom() 174 tx_buf[1] = (msg->address >> 8) & 0xff; radeon_dp_aux_transfer_atom() 175 tx_buf[2] = (msg->request << 4) | radeon_dp_aux_transfer_atom() 177 tx_buf[3] = msg->size ? (msg->size - 1) : 0; radeon_dp_aux_transfer_atom() 190 * table needs the info in tx_buf[3]. radeon_dp_aux_transfer_atom() 194 tx_buf[3] |= BARE_ADDRESS_SIZE << 4; radeon_dp_aux_transfer_atom() 196 tx_buf[3] |= tx_size << 4; radeon_dp_aux_transfer_atom() 197 memcpy(tx_buf + HEADER_SIZE, msg->buffer, msg->size); radeon_dp_aux_transfer_atom() 199 tx_buf, tx_size, NULL, 0, delay, &ack); radeon_dp_aux_transfer_atom() 207 * table needs the info in tx_buf[3]. radeon_dp_aux_transfer_atom() 211 tx_buf[3] |= BARE_ADDRESS_SIZE << 4; radeon_dp_aux_transfer_atom() 213 tx_buf[3] |= tx_size << 4; radeon_dp_aux_transfer_atom() 215 tx_buf, tx_size, msg->buffer, msg->size, delay, &ack); radeon_dp_aux_transfer_atom()
|
/linux-4.1.27/drivers/misc/eeprom/ |
H A D | eeprom_93xx46.c | 74 t[0].tx_buf = (char *)&cmd_addr; eeprom_93xx46_bin_read() 125 t.tx_buf = &cmd_addr; eeprom_93xx46_ew() 175 t[0].tx_buf = (char *)&cmd_addr; eeprom_93xx46_write_word() 180 t[1].tx_buf = buf; eeprom_93xx46_write_word() 265 t.tx_buf = &cmd_addr; eeprom_93xx46_eral()
|
/linux-4.1.27/drivers/net/wireless/ti/wl1251/ |
H A D | spi.c | 74 t.tx_buf = cmd; wl1251_spi_reset() 126 t.tx_buf = cmd; wl1251_spi_wake() 162 t[0].tx_buf = cmd; wl1251_spi_read() 200 t[0].tx_buf = cmd; wl1251_spi_write() 204 t[1].tx_buf = buf; wl1251_spi_write()
|
/linux-4.1.27/drivers/net/wireless/ti/wlcore/ |
H A D | spi.c | 105 t.tx_buf = cmd; wl12xx_spi_reset() 158 t.tx_buf = cmd; wl12xx_spi_init() 232 t[0].tx_buf = cmd; wl12xx_spi_raw_read() 301 t[i].tx_buf = cmd; wl12xx_spi_raw_write() 305 t[i].tx_buf = buf; wl12xx_spi_raw_write()
|
/linux-4.1.27/drivers/staging/comedi/drivers/ |
H A D | vmk80xx.c | 405 unsigned char *tx_buf = devpriv->usb_tx_buf; vmk80xx_do_insn_bits() local 420 tx_buf[reg] = s->state; vmk80xx_do_insn_bits() 427 tx_buf[0] = VMK8061_CMD_RD_DO; vmk80xx_do_insn_bits() 573 unsigned char *tx_buf; vmk80xx_pwm_insn_read() local 580 tx_buf = devpriv->usb_tx_buf; vmk80xx_pwm_insn_read() 586 tx_buf[0] = VMK8061_CMD_RD_PWM; vmk80xx_pwm_insn_read() 606 unsigned char *tx_buf; vmk80xx_pwm_insn_write() local 613 tx_buf = devpriv->usb_tx_buf; vmk80xx_pwm_insn_write() 627 * mov lo, al ; lo is the low part (tx_buf[reg[0]]) vmk80xx_pwm_insn_write() 630 * mov hi, al ; hi is the high part (tx_buf[reg[1]]) vmk80xx_pwm_insn_write() 634 tx_buf[reg[0]] = (unsigned char)(data[n] & 0x03); vmk80xx_pwm_insn_write() 635 tx_buf[reg[1]] = (unsigned char)(data[n] >> 2) & 0xff; vmk80xx_pwm_insn_write()
|
/linux-4.1.27/drivers/video/fbdev/mmp/hw/ |
H A D | mmp_spi.c | 129 lcd_spi_write(spi, ((u8 *)t->tx_buf)[i]); lcd_spi_one_transfer() 133 lcd_spi_write(spi, ((u16 *)t->tx_buf)[i]); lcd_spi_one_transfer() 137 lcd_spi_write(spi, ((u32 *)t->tx_buf)[i]); lcd_spi_one_transfer()
|
/linux-4.1.27/drivers/net/wireless/cw1200/ |
H A D | cw1200_spi.c | 69 .tx_buf = ®addr, cw1200_spi_memcpy_fromio() 104 printk("%02x ", ((u8 *)t_addr.tx_buf)[i]); cw1200_spi_memcpy_fromio() 133 .tx_buf = ®addr, cw1200_spi_memcpy_toio() 137 .tx_buf = src, cw1200_spi_memcpy_toio() 169 printk("%02x ", ((u8 *)t_addr.tx_buf)[i]); cw1200_spi_memcpy_toio() 172 printk("%02x ", ((u8 *)t_msg.tx_buf)[i]); cw1200_spi_memcpy_toio()
|
/linux-4.1.27/drivers/net/ethernet/ |
H A D | ec_bhf.c | 152 struct bhf_dma tx_buf; member in struct:ec_bhf_priv 182 u32 addr = (u8 *)desc - priv->tx_buf.buf; ec_bhf_send_packet() 370 priv->tx_dcount = priv->tx_buf.len / sizeof(struct tx_desc); ec_bhf_setup_tx_descs() 371 priv->tx_descs = (struct tx_desc *)priv->tx_buf.buf; ec_bhf_setup_tx_descs() 417 err = ec_bhf_alloc_dma_mem(priv, &priv->tx_buf, priv->tx_dma_chan, ec_bhf_open() 453 dma_free_coherent(dev, priv->tx_buf.alloc_len, ec_bhf_stop() 454 priv->tx_buf.alloc, priv->tx_buf.alloc_phys); ec_bhf_stop()
|
/linux-4.1.27/include/linux/ |
H A D | n_r3964.h | 114 * Header of received block in rx_buf/tx_buf: 153 unsigned char *tx_buf; member in struct:r3964_info
|
H A D | mISDNhw.h | 44 #define FLG_TX_BUSY 0 /* tx_buf in use */
|
/linux-4.1.27/drivers/net/wimax/i2400m/ |
H A D | tx.c | 474 ptr = i2400m->tx_buf + i2400m->tx_in % I2400M_TX_BUF_SIZE; i2400m_tx_fifo_push() 510 struct i2400m_msg_hdr *msg = i2400m->tx_buf + tx_in; i2400m_tx_skip_tail() 591 tx_msg, (void *) tx_msg - i2400m->tx_buf); i2400m_tx_new() 666 "size %lu aligned_size %zu tx_buf %p in " i2400m_tx_close() 669 aligned_size, i2400m->tx_buf, i2400m->tx_in, i2400m_tx_close() 735 /* If tx_buf is NULL, device is shutdown */ i2400m_tx() 736 if (i2400m->tx_buf == NULL) { i2400m_tx() 794 (void *)tx_msg - i2400m->tx_buf, (size_t)tx_msg->size, i2400m_tx() 795 num_pls+1, ptr - i2400m->tx_buf, buf_len, padded_len); i2400m_tx() 849 if (i2400m->tx_buf == NULL) i2400m_tx_msg_get() 859 tx_msg = i2400m->tx_buf + i2400m->tx_out % I2400M_TX_BUF_SIZE; i2400m_tx_msg_get() 872 (void *) tx_msg - i2400m->tx_buf); i2400m_tx_msg_get() 878 (void *) tx_msg - i2400m->tx_buf, i2400m_tx_msg_get() 893 current->pid, (void *) tx_msg - i2400m->tx_buf, i2400m_tx_msg_get() 940 if (i2400m->tx_buf == NULL) i2400m_tx_msg_sent() 968 void *tx_buf; i2400m_tx_setup() local 976 tx_buf = kmalloc(I2400M_TX_BUF_SIZE, GFP_ATOMIC); i2400m_tx_setup() 977 if (tx_buf == NULL) { i2400m_tx_setup() 993 i2400m->tx_buf = tx_buf; i2400m_tx_setup() 1010 kfree(i2400m->tx_buf); i2400m_tx_release() 1011 i2400m->tx_buf = NULL; i2400m_tx_release()
|
H A D | usb-tx.c | 156 (void *) tx_msg - i2400m->tx_buf, i2400mu_tx()
|
/linux-4.1.27/drivers/hwmon/ |
H A D | max1111.c | 44 uint8_t tx_buf[MAX1111_TX_BUF_SIZE]; member in struct:max1111_data 61 data->tx_buf[0] = (channel << data->sel_sh) | max1111_read() 170 x->tx_buf = &data->tx_buf[0]; setup_transfer()
|
H A D | adcxx.c | 66 u8 tx_buf[2]; adcxx_read() local 77 tx_buf[0] = attr->index << 3; /* other bits are don't care */ adcxx_read() 78 status = spi_write_then_read(spi, tx_buf, sizeof(tx_buf), adcxx_read()
|
/linux-4.1.27/net/nfc/nci/ |
H A D | spi.c | 50 t.tx_buf = skb->data; __nci_spi_send() 53 /* still set tx_buf non NULL to make the driver happy */ __nci_spi_send() 54 t.tx_buf = &t; __nci_spi_send() 195 tx.tx_buf = req; __nci_spi_read()
|
/linux-4.1.27/drivers/staging/media/lirc/ |
H A D | lirc_sir.c | 245 int *tx_buf; lirc_write() local 250 tx_buf = memdup_user(buf, n); lirc_write() 251 if (IS_ERR(tx_buf)) lirc_write() 252 return PTR_ERR(tx_buf); lirc_write() 258 if (tx_buf[i]) lirc_write() 259 send_pulse(tx_buf[i]); lirc_write() 263 if (tx_buf[i]) lirc_write() 264 send_space(tx_buf[i]); lirc_write() 268 kfree(tx_buf); lirc_write()
|
/linux-4.1.27/drivers/video/backlight/ |
H A D | ili922x.c | 161 xfer.tx_buf = tbuf; ili922x_read_status() 205 xfer_regindex.tx_buf = tbuf; ili922x_read() 227 xfer_regvalue.tx_buf = &tbuf[send_bytes]; ili922x_read() 260 xfer_regindex.tx_buf = tbuf; ili922x_write() 284 xfer_regvalue.tx_buf = tbuf; ili922x_write() 331 xfer.tx_buf = tbuf; set_write_to_gram_reg()
|
H A D | ili9320.c | 185 spi->xfer[0].tx_buf = spi->buffer_addr; ili9320_setup_spi() 186 spi->xfer[1].tx_buf = spi->buffer_data; ili9320_setup_spi()
|
H A D | ltv350qv.c | 57 index_xfer.tx_buf = lcd->buffer; ltv350qv_write_reg() 64 value_xfer.tx_buf = lcd->buffer + 4; ltv350qv_write_reg()
|
H A D | tosa_lcd.c | 53 .tx_buf = buf, tosa_tg_send()
|
/linux-4.1.27/drivers/net/caif/ |
H A D | caif_hsi.c | 333 struct cfhsi_desc *desc = (struct cfhsi_desc *)cfhsi->tx_buf; cfhsi_start_tx() 360 res = cfhsi->ops->cfhsi_tx(cfhsi->tx_buf, len, cfhsi->ops); cfhsi_start_tx() 881 len = cfhsi_tx_frm((struct cfhsi_desc *)cfhsi->tx_buf, cfhsi); cfhsi_wake_up() 885 res = cfhsi->ops->cfhsi_tx(cfhsi->tx_buf, len, cfhsi->ops); cfhsi_wake_up() 1089 struct cfhsi_desc *desc = (struct cfhsi_desc *)cfhsi->tx_buf; cfhsi_xmit() 1098 res = cfhsi->ops->cfhsi_tx(cfhsi->tx_buf, len, cfhsi->ops); cfhsi_xmit() 1154 cfhsi->tx_buf = kzalloc(CFHSI_BUF_SZ_TX, GFP_KERNEL); cfhsi_open() 1155 if (!cfhsi->tx_buf) { cfhsi_open() 1257 kfree(cfhsi->tx_buf); cfhsi_open() 1265 u8 *tx_buf, *rx_buf, *flip_buf; cfhsi_close() local 1285 tx_buf = cfhsi->tx_buf; cfhsi_close() 1295 kfree(tx_buf); cfhsi_close()
|
/linux-4.1.27/drivers/i2c/busses/ |
H A D | i2c-designware-core.h | 47 * @tx_buf: the current tx buffer 85 u8 *tx_buf; member in struct:dw_i2c_dev
|
H A D | i2c-designware-core.c | 459 u8 *buf = dev->tx_buf; i2c_dw_xfer_msg() 533 dev->tx_buf = buf; i2c_dw_xfer_msg()
|
/linux-4.1.27/drivers/net/ieee802154/ |
H A D | mrf24j40.c | 106 .tx_buf = devrec->buf, write_short_reg() 132 .tx_buf = devrec->buf, read_short_reg() 161 .tx_buf = devrec->buf, read_long_reg() 192 .tx_buf = devrec->buf, write_long_reg() 226 .tx_buf = devrec->buf, write_tx_buf() 230 .tx_buf = &lengths, /* TODO: Is DMA really required for SPI? */ write_tx_buf() 234 .tx_buf = data, write_tx_buf() 274 .tx_buf = &addr, mrf24j40_read_rx_buf()
|
H A D | cc2520.c | 214 .tx_buf = priv->buf, cc2520_cmd_strobe() 244 .tx_buf = priv->buf, cc2520_get_status() 273 .tx_buf = priv->buf, cc2520_write_register() 306 .tx_buf = priv->buf, cc2520_write_ram() 312 .tx_buf = data, cc2520_write_ram() 340 .tx_buf = priv->buf, cc2520_read_register() 382 .tx_buf = priv->buf, cc2520_write_txfifo() 387 .tx_buf = &len_byte, cc2520_write_txfifo() 391 .tx_buf = data, cc2520_write_txfifo() 423 .tx_buf = priv->buf, cc2520_read_rxfifo()
|
H A D | at86rf230.c | 496 u8 *tx_buf = ctx->buf; at86rf230_async_read_reg() local 498 tx_buf[0] = (reg & CMD_REG_MASK) | CMD_REG; at86rf230_async_read_reg() 1619 lp->state.trx.tx_buf = lp->state.buf; at86rf230_setup_spi_messages() 1630 lp->irq.trx.tx_buf = lp->irq.buf; at86rf230_setup_spi_messages() 1641 lp->tx.trx.tx_buf = lp->tx.buf; at86rf230_setup_spi_messages()
|
/linux-4.1.27/drivers/staging/fbtft/ |
H A D | fbtft-io.c | 10 .tx_buf = buf, fbtft_write_spi() 113 t.tx_buf = txbuf; fbtft_read_spi()
|
/linux-4.1.27/include/uapi/linux/spi/ |
H A D | spidev.h | 58 * @tx_buf: Holds pointer to userspace buffer with transmit data, or null. 90 __u64 tx_buf; member in struct:spi_ioc_transfer
|
/linux-4.1.27/drivers/staging/mt29f_spinand/ |
H A D | mt29f_spinand.h | 99 u8 *tx_buf; /* Tx buf */ member in struct:spinand_cmd
|
H A D | mt29f_spinand.c | 83 x[0].tx_buf = &cmd->cmd; spinand_cmd() 88 x[1].tx_buf = cmd->addr; spinand_cmd() 94 x[2].tx_buf = &dummy; spinand_cmd() 100 x[3].tx_buf = cmd->tx_buf; spinand_cmd() 229 cmd.tx_buf = otp, spinand_set_otp() 434 cmd.tx_buf = wbuf; spinand_program_data_to_cache() 834 cmd.tx_buf = &lock; spinand_lock_block()
|
/linux-4.1.27/drivers/gpio/ |
H A D | gpio-max7301.c | 44 * This relies on the fact, that a transfer with NULL tx_buf shifts out max7301_spi_read()
|
H A D | gpio-74x164.c | 57 msg_buf[i].tx_buf = chip->buffer + i; __gen_74x164_write_config()
|
/linux-4.1.27/drivers/input/misc/ |
H A D | ad714x-spi.c | 45 xfer[0].tx_buf = &chip->xfer_buf[0]; ad714x_spi_read()
|
/linux-4.1.27/Documentation/spi/ |
H A D | spidev_fdx.c | 61 xfer[0].tx_buf = (unsigned long)buf; do_msg()
|
H A D | spidev_test.c | 108 .tx_buf = (unsigned long)tx, transfer() 128 tr.tx_buf = 0; transfer()
|
/linux-4.1.27/sound/soc/blackfin/ |
H A D | bf6xx-sport.h | 45 unsigned char *tx_buf; member in struct:sport_device
|
H A D | bf5xx-ac97.c | 109 nextwrite = (struct ac97_frame *)(sport->tx_buf + enqueue_cmd() 111 pr_debug("sport->tx_buf:%p, nextfrag:0x%x nextwrite:%p, cmd_count:%d\n", enqueue_cmd() 112 sport->tx_buf, nextfrag, nextwrite, cmd_count[nextfrag]); enqueue_cmd()
|
H A D | bf5xx-sport.h | 51 unsigned char *tx_buf; member in struct:sport_device
|
H A D | bf6xx-sport.c | 163 sport->tx_buf = buf; sport_config_tx_dma() 211 return (unsigned char *)curr - sport->tx_buf; sport_curr_offset_tx()
|
H A D | bf5xx-i2s-pcm.c | 201 sport_handle->tx_buf = buf->area; bf5xx_pcm_open()
|
/linux-4.1.27/drivers/mtd/devices/ |
H A D | sst25l.c | 83 t.tx_buf = cmd_resp; sst25l_status() 230 transfer[0].tx_buf = command; sst25l_read() 333 t.tx_buf = cmd_resp; sst25l_match_device()
|
H A D | mtd_dataflash.c | 171 x.tx_buf = command = priv->command; dataflash_erase() 258 x[0].tx_buf = command; dataflash_read() 317 x[0].tx_buf = command = priv->command; dataflash_write() 379 x[1].tx_buf = writebuf; dataflash_write() 484 t.tx_buf = scratch; otp_read() 570 t.tx_buf = scratch; dataflash_write_user_otp()
|
H A D | m25p80.c | 95 t[0].tx_buf = flash->command; m25p80_write() 99 t[1].tx_buf = buf; m25p80_write() 142 t[0].tx_buf = flash->command; m25p80_read()
|
/linux-4.1.27/drivers/net/phy/ |
H A D | spi_ks8995.c | 126 t[0].tx_buf = cmd; ks8995_read() 157 t[0].tx_buf = cmd; ks8995_write() 161 t[1].tx_buf = buf; ks8995_write()
|
/linux-4.1.27/drivers/char/ |
H A D | msm_smd_pkt.c | 54 unsigned char tx_buf[MAX_BUF_SIZE]; member in struct:smd_pkt_dev 199 r = copy_from_user(smd_pkt_devp->tx_buf, buf, count); smd_pkt_write() 206 r = smd_write(smd_pkt_devp->ch, smd_pkt_devp->tx_buf, count); smd_pkt_write()
|
/linux-4.1.27/include/drm/ |
H A D | drm_mipi_dsi.h | 30 * @tx_len: length of @tx_buf 31 * @tx_buf: data to be written 41 const void *tx_buf; member in struct:mipi_dsi_msg
|
/linux-4.1.27/drivers/staging/iio/accel/ |
H A D | lis3l02dq_core.c | 58 .tx_buf = st->tx, lis3l02dq_spi_read_reg_8() 111 .tx_buf = st->tx, lis3l02dq_spi_write_reg_s16() 116 .tx_buf = st->tx + 2, lis3l02dq_spi_write_reg_s16() 142 .tx_buf = st->tx, lis3l02dq_read_reg_s16() 148 .tx_buf = st->tx + 2, lis3l02dq_read_reg_s16()
|
H A D | lis3l02dq_ring.c | 75 xfers[j].tx_buf = st->tx + 2*j; lis3l02dq_read_all() 86 xfers[j].tx_buf = st->tx + 2*j; lis3l02dq_read_all()
|
H A D | adis16220_core.c | 106 .tx_buf = st->tx, adis16220_capture_buffer_read() 112 .tx_buf = st->tx, adis16220_capture_buffer_read()
|
H A D | sca3000_core.c | 97 .tx_buf = st->tx, sca3000_read_data_short() 137 .tx_buf = st->tx, __sca3000_unlock_reg_lock() 141 .tx_buf = st->tx + 2, __sca3000_unlock_reg_lock() 144 .tx_buf = st->tx + 4, __sca3000_unlock_reg_lock()
|
H A D | sca3000_ring.c | 45 .tx_buf = st->tx, sca3000_read_data()
|
/linux-4.1.27/drivers/media/dvb-frontends/ |
H A D | sp8870.c | 103 u8 tx_buf[255]; sp8870_firmware_upload() local 126 tx_buf[0] = 0xCF; sp8870_firmware_upload() 127 tx_buf[1] = 0x0A; sp8870_firmware_upload() 128 memcpy(&tx_buf[2], fw_buf + fw_pos, tx_len); sp8870_firmware_upload() 131 msg.buf = tx_buf; sp8870_firmware_upload()
|
/linux-4.1.27/drivers/gpu/drm/ |
H A D | drm_mipi_dsi.c | 354 packet->payload = msg->tx_buf; mipi_dsi_create_packet() 356 const u8 *tx = msg->tx_buf; mipi_dsi_create_packet() 385 .tx_buf = tx, mipi_dsi_set_maximum_return_packet_size() 409 .tx_buf = payload, mipi_dsi_generic_write() 455 .tx_buf = params, mipi_dsi_generic_read() 498 .tx_buf = data, mipi_dsi_dcs_write_buffer() 582 .tx_buf = &cmd, mipi_dsi_dcs_read()
|
/linux-4.1.27/drivers/net/ethernet/intel/i40evf/ |
H A D | i40e_txrx.c | 214 struct i40e_tx_buffer *tx_buf; i40e_clean_tx_irq() local 220 tx_buf = &tx_ring->tx_bi[i]; i40e_clean_tx_irq() 227 struct i40e_tx_desc *eop_desc = tx_buf->next_to_watch; i40e_clean_tx_irq() 241 tx_buf->next_to_watch = NULL; i40e_clean_tx_irq() 244 total_bytes += tx_buf->bytecount; i40e_clean_tx_irq() 245 total_packets += tx_buf->gso_segs; i40e_clean_tx_irq() 248 dev_kfree_skb_any(tx_buf->skb); i40e_clean_tx_irq() 252 dma_unmap_addr(tx_buf, dma), i40e_clean_tx_irq() 253 dma_unmap_len(tx_buf, len), i40e_clean_tx_irq() 257 tx_buf->skb = NULL; i40e_clean_tx_irq() 258 dma_unmap_len_set(tx_buf, len, 0); i40e_clean_tx_irq() 263 tx_buf++; i40e_clean_tx_irq() 268 tx_buf = tx_ring->tx_bi; i40e_clean_tx_irq() 273 if (dma_unmap_len(tx_buf, len)) { i40e_clean_tx_irq() 275 dma_unmap_addr(tx_buf, dma), i40e_clean_tx_irq() 276 dma_unmap_len(tx_buf, len), i40e_clean_tx_irq() 278 dma_unmap_len_set(tx_buf, len, 0); i40e_clean_tx_irq() 283 tx_buf++; i40e_clean_tx_irq() 288 tx_buf = tx_ring->tx_bi; i40e_clean_tx_irq()
|
/linux-4.1.27/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_txrx.c | 55 struct i40e_tx_buffer *tx_buf, *first; i40e_program_fdir_filter() local 149 tx_buf = &tx_ring->tx_bi[i]; i40e_program_fdir_filter() 153 memset(tx_buf, 0, sizeof(struct i40e_tx_buffer)); i40e_program_fdir_filter() 156 dma_unmap_len_set(tx_buf, len, I40E_FDIR_MAX_RAW_PACKET_SIZE); i40e_program_fdir_filter() 157 dma_unmap_addr_set(tx_buf, dma, dma); i40e_program_fdir_filter() 162 tx_buf->tx_flags = I40E_TX_FLAGS_FD_SB; i40e_program_fdir_filter() 163 tx_buf->raw_buf = (void *)raw_packet; i40e_program_fdir_filter() 169 tx_buf->time_stamp = jiffies; i40e_program_fdir_filter() 695 struct i40e_tx_buffer *tx_buf; i40e_clean_tx_irq() local 701 tx_buf = &tx_ring->tx_bi[i]; i40e_clean_tx_irq() 708 struct i40e_tx_desc *eop_desc = tx_buf->next_to_watch; i40e_clean_tx_irq() 722 tx_buf->next_to_watch = NULL; i40e_clean_tx_irq() 725 total_bytes += tx_buf->bytecount; i40e_clean_tx_irq() 726 total_packets += tx_buf->gso_segs; i40e_clean_tx_irq() 729 dev_consume_skb_any(tx_buf->skb); i40e_clean_tx_irq() 733 dma_unmap_addr(tx_buf, dma), i40e_clean_tx_irq() 734 dma_unmap_len(tx_buf, len), i40e_clean_tx_irq() 738 tx_buf->skb = NULL; i40e_clean_tx_irq() 739 dma_unmap_len_set(tx_buf, len, 0); i40e_clean_tx_irq() 744 tx_buf++; i40e_clean_tx_irq() 749 tx_buf = tx_ring->tx_bi; i40e_clean_tx_irq() 754 if (dma_unmap_len(tx_buf, len)) { i40e_clean_tx_irq() 756 dma_unmap_addr(tx_buf, dma), i40e_clean_tx_irq() 757 dma_unmap_len(tx_buf, len), i40e_clean_tx_irq() 759 dma_unmap_len_set(tx_buf, len, 0); i40e_clean_tx_irq() 764 tx_buf++; i40e_clean_tx_irq() 769 tx_buf = tx_ring->tx_bi; i40e_clean_tx_irq()
|
/linux-4.1.27/drivers/net/wireless/mwifiex/ |
H A D | 11n.c | 218 struct host_cmd_ds_txbuf_cfg *tx_buf = &cmd->params.tx_buf; mwifiex_cmd_recfg_tx_buf() local 224 tx_buf->action = cpu_to_le16(action); mwifiex_cmd_recfg_tx_buf() 227 dev_dbg(priv->adapter->dev, "cmd: set tx_buf=%d\n", *buf_size); mwifiex_cmd_recfg_tx_buf() 228 tx_buf->buff_size = cpu_to_le16(*buf_size); mwifiex_cmd_recfg_tx_buf() 232 tx_buf->buff_size = 0; mwifiex_cmd_recfg_tx_buf()
|
/linux-4.1.27/drivers/iio/gyro/ |
H A D | adxrs450.c | 98 .tx_buf = &st->tx, adxrs450_spi_read_reg_16() 172 .tx_buf = &st->tx, adxrs450_spi_sensor_data() 211 .tx_buf = &st->tx, adxrs450_spi_initial()
|
H A D | adis16130.c | 51 .tx_buf = st->buf, adis16130_spi_read()
|
H A D | adis16080.c | 57 .tx_buf = &st->buf, adis16080_read_sample()
|
/linux-4.1.27/drivers/media/i2c/s5c73m3/ |
H A D | s5c73m3-spi.c | 50 xfer.tx_buf = addr; spi_xmit()
|
/linux-4.1.27/drivers/net/wireless/p54/ |
H A D | p54spi.c | 71 t[0].tx_buf = &addr; p54spi_spi_read() 96 t[0].tx_buf = &addr; p54spi_spi_write() 100 t[1].tx_buf = buf; p54spi_spi_write() 108 t[2].tx_buf = &last_word; p54spi_spi_write()
|
H A D | p54pci.c | 246 struct sk_buff **tx_buf) p54p_check_tx_ring() 261 skb = tx_buf[i]; p54p_check_tx_ring() 262 tx_buf[i] = NULL; p54p_check_tx_ring() 244 p54p_check_tx_ring(struct ieee80211_hw *dev, u32 *index, int ring_index, struct p54p_desc *ring, u32 ring_limit, struct sk_buff **tx_buf) p54p_check_tx_ring() argument
|
/linux-4.1.27/drivers/net/wireless/rtl818x/rtl8180/ |
H A D | rtl8180.h | 44 __le32 tx_buf; member in struct:rtl8180_tx_desc
|
/linux-4.1.27/drivers/staging/ft1000/ft1000-usb/ |
H A D | ft1000_usb.h | 73 u8 tx_buf[MAX_BUF_SIZE]; member in struct:ft1000_usb
|
H A D | ft1000_download.c | 535 memcpy(ft1000dev->tx_buf, *pUcFile, byte_length); write_blk_fifo() 540 ft1000dev->tx_buf, byte_length, usb_dnld_complete, write_blk_fifo()
|
/linux-4.1.27/drivers/tty/serial/cpm_uart/ |
H A D | cpm_uart.h | 74 unsigned char *tx_buf; member in struct:uart_cpm_port
|
H A D | cpm_uart_cpm1.c | 118 pinfo->tx_buf = pinfo->rx_buf + L1_CACHE_ALIGN(pinfo->rx_nrfifos cpm_uart_allocbuf()
|
H A D | cpm_uart_cpm2.c | 153 pinfo->tx_buf = pinfo->rx_buf + L1_CACHE_ALIGN(pinfo->rx_nrfifos cpm_uart_allocbuf()
|
/linux-4.1.27/drivers/usb/musb/ |
H A D | cppi_dma.h | 26 u32 tx_buf; member in struct:cppi_tx_stateram
|
/linux-4.1.27/drivers/mmc/host/ |
H A D | mmc_spi.c | 531 t->tx_buf = t->rx_buf = data->status; mmc_spi_command_send() 595 t->tx_buf = &scratch->data_token; mmc_spi_setup_data_message() 606 t->tx_buf = host->ones; mmc_spi_setup_data_message() 616 t->tx_buf = &scratch->crc_val; mmc_spi_setup_data_message() 620 t->tx_buf = host->ones; mmc_spi_setup_data_message() 648 t->tx_buf = host->ones; mmc_spi_setup_data_message() 681 crc_itu_t(0, t->tx_buf, t->len)); mmc_spi_writeblock() 746 t->tx_buf += t->len; mmc_spi_writeblock() 937 t->tx_buf = kmap_addr + sg->offset; mmc_spi_data_do() 1008 host->early_status.tx_buf = host->early_status.rx_buf; mmc_spi_data_do() 1411 host->status.tx_buf = host->ones; mmc_spi_probe()
|
/linux-4.1.27/drivers/iio/dac/ |
H A D | ad5449.c | 106 .tx_buf = &st->data[0], ad5449_read() 110 .tx_buf = &st->data[1], ad5449_read()
|
H A D | ad5686.c | 111 .tx_buf = &st->data[0].d8[1], ad5686_spi_read() 115 .tx_buf = &st->data[1].d8[1], ad5686_spi_read()
|
H A D | ad5791.c | 125 .tx_buf = &st->data[0].d8[1], ad5791_spi_read() 130 .tx_buf = &st->data[1].d8[1], ad5791_spi_read()
|
H A D | ad5755.c | 159 .tx_buf = &st->data[0].d8[1], ad5755_read() 163 .tx_buf = &st->data[1].d8[1], ad5755_read()
|
H A D | ad5504.c | 82 .tx_buf = &st->data[0], ad5504_spi_read()
|
H A D | ad5764.c | 146 .tx_buf = &st->data[0].d8[1], ad5764_read()
|
H A D | ad5360.c | 224 .tx_buf = &st->data[0].d8[1], ad5360_read()
|
H A D | ad5421.c | 161 .tx_buf = &st->data[0].d8[1], ad5421_read()
|
/linux-4.1.27/include/linux/iio/common/ |
H A D | st_sensors.h | 139 * @tx_buf: Buffer used by SPI transfer function to send data to the sensors. 147 u8 tx_buf[ST_SENSORS_TX_MAX_LENGTH] ____cacheline_aligned;
|
/linux-4.1.27/sound/soc/codecs/ |
H A D | wm0010.c | 126 u8 *tx_buf; member in struct:wm0010_spi_msg 435 xfer->t.tx_buf = img; wm0010_firmware_load() 490 kfree(xfer->t.tx_buf); wm0010_firmware_load() 539 t.tx_buf = img; wm0010_stage2_load() 684 t.tx_buf = img_swap; wm0010_boot()
|
/linux-4.1.27/drivers/net/ethernet/microchip/ |
H A D | enc28j60.c | 91 u8 *tx_buf = priv->spi_transfer_buf; spi_read_buf() local 93 .tx_buf = tx_buf, spi_read_buf() 100 tx_buf[0] = ENC28J60_READ_BUF_MEM; spi_read_buf() 101 tx_buf[1] = tx_buf[2] = tx_buf[3] = 0; /* don't care */ spi_read_buf() 144 u8 tx_buf[2]; spi_read_op() local 154 tx_buf[0] = op | (addr & ADDR_MASK); spi_read_op() 155 ret = spi_write_then_read(priv->spi, tx_buf, 1, rx_buf, slen); spi_read_op()
|
/linux-4.1.27/drivers/tty/ |
H A D | n_r3964.c | 968 pInfo->tx_buf = kmalloc(TX_BUF_SIZE, GFP_KERNEL); r3964_open() 969 TRACE_M("r3964_open - tx_buf kmalloc %p", pInfo->tx_buf); r3964_open() 971 if (!pInfo->tx_buf) { r3964_open() 1051 kfree(pInfo->tx_buf); r3964_close() 1052 TRACE_M("r3964_close - tx_buf kfree %p", pInfo->tx_buf); r3964_close()
|
H A D | synclinkmp.c | 167 unsigned char *tx_buf; member in struct:_synclinkmp_info 936 if (!info->tx_buf) write() 949 tx_load_dma_buffer(info, info->tx_buf, info->tx_count); write() 964 memcpy(info->tx_buf + info->tx_put, buf, c); write() 983 tx_load_dma_buffer(info, info->tx_buf, info->tx_count); write() 1016 if (!info->tx_buf) put_char() 1025 info->tx_buf[info->tx_put++] = ch; put_char() 1167 !info->tx_buf) flush_chars() 1180 /* copy data from circular tx_buf to */ flush_chars() 1183 info->tx_buf,info->tx_count); flush_chars() 2653 if (!info->tx_buf) { startup() 2654 info->tx_buf = kmalloc(info->max_frame_size, GFP_KERNEL); startup() 2655 if (!info->tx_buf) { startup() 2702 kfree(info->tx_buf); shutdown() 2703 info->tx_buf = NULL; shutdown() 4315 TwoBytes[0] = info->tx_buf[info->tx_get++]; tx_load_fifo() 4318 TwoBytes[1] = info->tx_buf[info->tx_get++]; tx_load_fifo() 4334 write_reg(info, TRB, info->tx_buf[info->tx_get++]); tx_load_fifo()
|
H A D | synclink_gt.c | 317 unsigned char *tx_buf; member in struct:slgt_info 839 if (!info->tx_buf || (count > info->max_frame_size)) write() 849 if (!tx_load(info, info->tx_buf, info->tx_count)) write() 872 if (!info->tx_buf) put_char() 876 info->tx_buf[info->tx_count++] = ch; put_char() 964 tty->hw_stopped || !info->tx_buf) flush_chars() 970 if (info->tx_count && tx_load(info, info->tx_buf, info->tx_count)) flush_chars() 1020 if (info->tx_count && tx_load(info, info->tx_buf, info->tx_count)) tx_release() 2437 if (!info->tx_buf) { startup() 2438 info->tx_buf = kmalloc(info->max_frame_size, GFP_KERNEL); startup() 2439 if (!info->tx_buf) { startup() 2480 kfree(info->tx_buf); shutdown() 2481 info->tx_buf = NULL; shutdown()
|
/linux-4.1.27/drivers/net/ethernet/amd/ |
H A D | sunlance.c | 229 u8 tx_buf [TX_RING_SIZE][TX_BUFF_SIZE]; member in struct:lance_init_block 345 leptr = LANCE_ADDR(aib + libbuff_offset(tx_buf, i)); lance_init_ring_dvma() 401 leptr = libbuff_offset(tx_buf, i); lance_init_ring_pio() 886 u16 __iomem *packet = (u16 __iomem *) &(ib->tx_buf[entry][0]); build_fake_packet() 899 u16 *packet = (u16 *) &(ib->tx_buf[entry][0]); build_fake_packet() 1127 lance_piocopy_from_skb(&ib->tx_buf[entry][0], skb->data, skblen); lance_start_xmit() 1129 lance_piozero(&ib->tx_buf[entry][skblen], len - skblen); lance_start_xmit() 1135 skb_copy_from_linear_data(skb, &ib->tx_buf [entry][0], skblen); lance_start_xmit() 1137 memset((char *) &ib->tx_buf [entry][skblen], 0, len - skblen); lance_start_xmit()
|
H A D | 7990.c | 179 leptr = LANCE_ADDR(&aib->tx_buf[i][0]); lance_init_ring() 571 memset((void *)&ib->tx_buf[entry][0], 0, ETH_ZLEN); lance_start_xmit() 572 skb_copy_from_linear_data(skb, (void *)&ib->tx_buf[entry][0], skblen); lance_start_xmit()
|
H A D | a2065.c | 100 char tx_buf[TX_RING_SIZE][TX_BUFF_SIZE]; member in struct:lance_init_block 178 leptr = LANCE_ADDR(&aib->tx_buf[i][0]); lance_init_ring() 564 skb_copy_from_linear_data(skb, (void *)&ib->tx_buf[entry][0], skblen); lance_start_xmit()
|
H A D | 7990.h | 89 volatile char tx_buf[TX_RING_SIZE][TX_BUFF_SIZE]; member in struct:lance_init_block
|
/linux-4.1.27/drivers/net/ethernet/micrel/ |
H A D | ks8851.c | 177 xfer->tx_buf = txb; ks8851_wrreg16() 207 xfer->tx_buf = txb; ks8851_wrreg8() 260 xfer->tx_buf = txb; ks8851_rdreg() 267 xfer->tx_buf = txb; ks8851_rdreg() 272 xfer->tx_buf = NULL; ks8851_rdreg() 475 xfer->tx_buf = txb; ks8851_rdfifo() 481 xfer->tx_buf = NULL; ks8851_rdfifo() 729 xfer->tx_buf = &ks->txh.txb[1]; ks8851_wrpkt() 734 xfer->tx_buf = txp->data; ks8851_wrpkt()
|
/linux-4.1.27/drivers/regulator/ |
H A D | tps6524x-regulator.c | 154 t[0].tx_buf = &cmd; __read_reg() 207 t[0].tx_buf = &cmd; __write_reg() 212 t[1].tx_buf = &out; __write_reg()
|
/linux-4.1.27/drivers/iio/accel/ |
H A D | kxsd9.c | 104 .tx_buf = st->tx, kxsd9_read()
|
/linux-4.1.27/drivers/net/ethernet/cirrus/ |
H A D | ep93xx_eth.c | 166 void *tx_buf[TX_QUEUE_ENTRIES]; member in struct:ep93xx_priv 372 skb_copy_and_csum_dev(skb, ep->tx_buf[entry]); ep93xx_xmit() 488 kfree(ep->tx_buf[i]); ep93xx_free_buffers() 538 ep->tx_buf[i] = buf; ep93xx_alloc_buffers()
|
/linux-4.1.27/include/net/caif/ |
H A D | caif_hsi.h | 156 u8 *tx_buf; member in struct:cfhsi
|
/linux-4.1.27/drivers/net/ethernet/broadcom/ |
H A D | bnx2.c | 2843 struct bnx2_sw_tx_bd *tx_buf; bnx2_tx_int() local 2849 tx_buf = &txr->tx_buf_ring[sw_ring_cons]; bnx2_tx_int() 2850 skb = tx_buf->skb; bnx2_tx_int() 2856 if (tx_buf->is_gso) { bnx2_tx_int() 2859 last_idx = sw_cons + tx_buf->nr_frags + 1; bnx2_tx_int() 2860 last_ring_idx = sw_ring_cons + tx_buf->nr_frags + 1; bnx2_tx_int() 2869 dma_unmap_single(&bp->pdev->dev, dma_unmap_addr(tx_buf, mapping), bnx2_tx_int() 2872 tx_buf->skb = NULL; bnx2_tx_int() 2873 last = tx_buf->nr_frags; bnx2_tx_int() 2876 struct bnx2_sw_tx_bd *tx_buf; bnx2_tx_int() local 2880 tx_buf = &txr->tx_buf_ring[BNX2_TX_RING_IDX(sw_cons)]; bnx2_tx_int() 2882 dma_unmap_addr(tx_buf, mapping), bnx2_tx_int() 5414 struct bnx2_sw_tx_bd *tx_buf = &txr->tx_buf_ring[j]; bnx2_free_tx_skbs() local 5415 struct sk_buff *skb = tx_buf->skb; bnx2_free_tx_skbs() 5424 dma_unmap_addr(tx_buf, mapping), bnx2_free_tx_skbs() 5428 tx_buf->skb = NULL; bnx2_free_tx_skbs() 5430 last = tx_buf->nr_frags; bnx2_free_tx_skbs() 5433 tx_buf = &txr->tx_buf_ring[BNX2_TX_RING_IDX(j)]; bnx2_free_tx_skbs() 5435 dma_unmap_addr(tx_buf, mapping), bnx2_free_tx_skbs() 6568 struct bnx2_sw_tx_bd *tx_buf; bnx2_start_xmit() local 6643 tx_buf = &txr->tx_buf_ring[ring_prod]; bnx2_start_xmit() 6644 tx_buf->skb = skb; bnx2_start_xmit() 6645 dma_unmap_addr_set(tx_buf, mapping, mapping); bnx2_start_xmit() 6655 tx_buf->nr_frags = last_frag; bnx2_start_xmit() 6656 tx_buf->is_gso = skb_is_gso(skb); bnx2_start_xmit() 6717 tx_buf = &txr->tx_buf_ring[ring_prod]; bnx2_start_xmit() 6718 tx_buf->skb = NULL; bnx2_start_xmit() 6719 dma_unmap_single(&bp->pdev->dev, dma_unmap_addr(tx_buf, mapping), bnx2_start_xmit() 6726 tx_buf = &txr->tx_buf_ring[ring_prod]; bnx2_start_xmit() 6727 dma_unmap_page(&bp->pdev->dev, dma_unmap_addr(tx_buf, mapping), bnx2_start_xmit()
|
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_cmn.c | 199 struct sw_tx_bd *tx_buf = &txdata->tx_buf_ring[idx]; bnx2x_free_tx_pkt() local 202 struct sk_buff *skb = tx_buf->skb; bnx2x_free_tx_pkt() 203 u16 bd_idx = TX_BD(tx_buf->first_bd), new_cons; bnx2x_free_tx_pkt() 211 txdata->txq_index, idx, tx_buf, skb); bnx2x_free_tx_pkt() 222 new_cons = nbd + tx_buf->first_bd; bnx2x_free_tx_pkt() 231 if (tx_buf->flags & BNX2X_HAS_SECOND_PBD) { bnx2x_free_tx_pkt() 238 if (tx_buf->flags & BNX2X_TSO_SPLIT_BD) { bnx2x_free_tx_pkt() 268 tx_buf->first_bd = 0; bnx2x_free_tx_pkt() 269 tx_buf->skb = NULL; bnx2x_free_tx_pkt() 3273 struct sw_tx_bd *tx_buf, bnx2x_tx_split() 3301 tx_buf->flags |= BNX2X_TSO_SPLIT_BD; bnx2x_tx_split() 3723 struct sw_tx_bd *tx_buf; bnx2x_start_xmit() local 3835 /* get a tx_buf and first BD bnx2x_start_xmit() 3839 tx_buf = &txdata->tx_buf_ring[TX_BD(pkt_prod)]; bnx2x_start_xmit() 3863 tx_buf->first_bd = txdata->tx_bd_prod; bnx2x_start_xmit() 3864 tx_buf->skb = skb; bnx2x_start_xmit() 3865 tx_buf->flags = 0; bnx2x_start_xmit() 3869 pkt_prod, tx_buf, txdata->tx_pkt_prod, bd_prod, tx_start_bd); bnx2x_start_xmit() 3937 tx_buf->flags |= BNX2X_HAS_SECOND_PBD; bnx2x_start_xmit() 4019 bd_prod = bnx2x_tx_split(bp, txdata, tx_buf, bnx2x_start_xmit() 4310 /* fastpath tx rings: tx_buf tx_desc */ for_each_cos_in_tx_queue() 4475 /* fastpath tx rings: tx_buf tx_desc */ for_each_cos_in_tx_queue() 3271 bnx2x_tx_split(struct bnx2x *bp, struct bnx2x_fp_txdata *txdata, struct sw_tx_bd *tx_buf, struct eth_tx_start_bd **tx_bd, u16 hlen, u16 bd_prod) bnx2x_tx_split() argument
|
/linux-4.1.27/drivers/iio/frequency/ |
H A D | ad9523.c | 299 .tx_buf = &st->data[0].d8[2], ad9523_read() 327 .tx_buf = &st->data[0].d8[2], ad9523_write() 330 .tx_buf = &st->data[1].d8[4 - AD9523_TRANSF_LEN(addr)], ad9523_write()
|
/linux-4.1.27/drivers/net/wireless/hostap/ |
H A D | hostap_ap.c | 141 skb_queue_purge(&sta->tx_buf); ap_free_sta() 242 !skb_queue_empty(&sta->tx_buf)) { ap_handle_timer() 1083 sta->tx_bytes, skb_queue_len(&sta->tx_buf), prism2_sta_proc_show() 1168 skb_queue_head_init(&sta->tx_buf); ap_add_sta() 1917 if (!skb_queue_empty(&sta->tx_buf)) { pspoll_send_buffered() 1982 while ((skb = skb_dequeue(&sta->tx_buf)) != NULL) { handle_pspoll() 1985 " (buffer_count=%d)\n", skb_queue_len(&sta->tx_buf)); handle_pspoll() 1998 if (skb_queue_empty(&sta->tx_buf)) { handle_pspoll() 2357 if (skb_queue_empty(&sta->tx_buf)) schedule_packet_send() 2823 if (skb_queue_len(&sta->tx_buf) >= STA_MAX_TX_BUFFER) { hostap_handle_sta_tx() 2838 set_tim = skb_queue_empty(&sta->tx_buf); hostap_handle_sta_tx() 2839 skb_queue_tail(&sta->tx_buf, skb); hostap_handle_sta_tx()
|
H A D | hostap_ap.h | 58 struct sk_buff_head tx_buf; member in struct:sta_info
|
/linux-4.1.27/include/linux/spi/ |
H A D | spi.h | 528 * @tx_buf: data to be written (dma-safe memory), or NULL 530 * @tx_dma: DMA address of tx_buf, if @spi_message.is_dma_mapped 550 * Protocol drivers should always provide @rx_buf and/or @tx_buf. 604 /* it's ok if tx_buf == rx_buf (right?) 609 const void *tx_buf; member in struct:spi_transfer 789 .tx_buf = buf, spi_write()
|
/linux-4.1.27/drivers/video/fbdev/omap/ |
H A D | lcd_mipid.c | 84 x->tx_buf = &cmd; mipid_transfer() 91 x->tx_buf = wbuf; mipid_transfer()
|
/linux-4.1.27/include/linux/mfd/abx500/ |
H A D | ab8500.h | 338 * @tx_buf: tx buf for SPI 359 unsigned long tx_buf[4]; member in struct:ab8500
|
/linux-4.1.27/drivers/media/usb/msi2500/ |
H A D | msi2500.c | 1151 dev_dbg(s->dev, "msg=%*ph\n", t->len, t->tx_buf); msi2500_transfer_one_message() 1153 data |= ((u8 *)t->tx_buf)[0] << 8; msi2500_transfer_one_message() 1154 data |= ((u8 *)t->tx_buf)[1] << 16; msi2500_transfer_one_message() 1155 data |= ((u8 *)t->tx_buf)[2] << 24; msi2500_transfer_one_message()
|
/linux-4.1.27/drivers/atm/ |
H A D | iphase.c | 1977 iadev->tx_buf = kmalloc(iadev->num_tx_desc*sizeof(struct cpcs_trailer_desc), GFP_KERNEL); tx_init() 1978 if (!iadev->tx_buf) { tx_init() 1991 iadev->tx_buf[i].cpcs = cpcs; tx_init() 1992 iadev->tx_buf[i].dma_addr = dma_map_single(&iadev->pci->dev, tx_init() 2201 struct cpcs_trailer_desc *desc = iadev->tx_buf + i; tx_init() 2207 kfree(iadev->tx_buf); tx_init() 2479 struct cpcs_trailer_desc *desc = iadev->tx_buf + i; ia_free_tx() 2485 kfree(iadev->tx_buf); ia_free_tx() 2985 trailer = iadev->tx_buf[desc-1].cpcs; ia_pkt_tx() 3033 wr_ptr->sys_pkt_addr = iadev->tx_buf[desc-1].dma_addr; ia_pkt_tx()
|
/linux-4.1.27/drivers/net/hamradio/ |
H A D | dmascc.c | 210 char tx_buf[NUM_TX_BUF][BUF_SIZE]; member in struct:scc_priv 931 skb_copy_from_linear_data_offset(skb, 1, priv->tx_buf[i], skb->len - 1); scc_send_packet() 984 (int) priv->tx_buf[priv->tx_tail] + n); tx_on() 1003 priv->tx_buf[priv->tx_tail][i], 1); tx_on() 1304 write_scc_data(priv, priv->tx_buf[i][p++], 0); tx_isr()
|
/linux-4.1.27/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_dsi.c | 1267 const char *tx_buf = msg->tx_buf; exynos_dsi_host_transfer() local 1272 xfer.data[0] = tx_buf[0]; exynos_dsi_host_transfer() 1273 xfer.data[1] = (msg->tx_len == 2) ? tx_buf[1] : 0; exynos_dsi_host_transfer() 1278 xfer.tx_payload = msg->tx_buf; exynos_dsi_host_transfer()
|
/linux-4.1.27/drivers/usb/host/ |
H A D | max3421-hcd.c | 364 transfer.tx_buf = max3421_hcd->tx->data; spi_rd8() 391 transfer.tx_buf = max3421_hcd->tx->data; spi_wr8() 413 transfer[0].tx_buf = max3421_hcd->tx->data; spi_rd_buf() 440 transfer[0].tx_buf = max3421_hcd->tx->data; spi_wr_buf() 443 transfer[1].tx_buf = buf; spi_wr_buf()
|
/linux-4.1.27/drivers/char/pcmcia/ |
H A D | synclink_cs.c | 150 unsigned char *tx_buf; member in struct:_mgslpc_info 1025 write_reg(info, CHA + TXFIFO, *(info->tx_buf + info->tx_get)); tx_ready() 1028 *((unsigned short*)(info->tx_buf + info->tx_get))); tx_ready() 1278 if (!info->tx_buf) { startup() 1280 info->tx_buf = (unsigned char *)get_zeroed_page(GFP_KERNEL); startup() 1281 if (!info->tx_buf) { startup() 1339 if (info->tx_buf) { shutdown() 1340 free_page((unsigned long) info->tx_buf); shutdown() 1341 info->tx_buf = NULL; shutdown() 1505 if (!info->tx_buf) mgslpc_put_char() 1512 info->tx_buf[info->tx_put++] = ch; mgslpc_put_char() 1538 tty->hw_stopped || !info->tx_buf) mgslpc_flush_chars() 1573 !info->tx_buf) mgslpc_write() 1594 memcpy(info->tx_buf + info->tx_put, buf, c); mgslpc_write() 3974 skb_copy_from_linear_data(skb, info->tx_buf, skb->len); hdlcdev_xmit()
|
/linux-4.1.27/drivers/rtc/ |
H A D | rtc-ds1305.c | 516 x->tx_buf = addr; msg_init() 522 x->tx_buf = tx; msg_init()
|
/linux-4.1.27/drivers/net/ethernet/moxa/ |
H A D | moxart_ether.h | 313 unsigned char *tx_buf[RX_DESC_NUM]; member in struct:moxart_mac_priv_t
|