Home
last modified time | relevance | path

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

123

/drivers/hwmon/
Dmax1111.c40 uint8_t *tx_buf; member
50 data->tx_buf[0] = (channel << MAX1111_CTRL_SEL_SH) | in max1111_read()
130 data->tx_buf = kmalloc(MAX1111_TX_BUF_SIZE, GFP_KERNEL); in setup_transfer()
131 if (!data->tx_buf) in setup_transfer()
136 kfree(data->tx_buf); in setup_transfer()
145 x->tx_buf = &data->tx_buf[0]; in setup_transfer()
203 kfree(data->tx_buf); in max1111_probe()
216 kfree(data->tx_buf); in max1111_remove()
Dadcxx.c64 u8 tx_buf[2] = { attr->index << 3 }; /* other bits are don't care */ in adcxx_read() local
72 status = spi_write_then_read(spi, tx_buf, sizeof(tx_buf), in adcxx_read()
/drivers/net/wimax/i2400m/
Dtx.c354 ptr = i2400m->tx_buf + i2400m->tx_in % I2400M_TX_BUF_SIZE; in i2400m_tx_fifo_push()
380 struct i2400m_msg_hdr *msg = i2400m->tx_buf + tx_in; in i2400m_tx_skip_tail()
448 tx_msg, (void *) tx_msg - i2400m->tx_buf); in i2400m_tx_new()
518 aligned_size, i2400m->tx_buf, i2400m->tx_in, in i2400m_tx_close()
628 (void *)tx_msg - i2400m->tx_buf, (size_t)tx_msg->size, in i2400m_tx()
629 num_pls+1, ptr - i2400m->tx_buf, buf_len, padded_len); in i2400m_tx()
687 tx_msg = i2400m->tx_buf + i2400m->tx_out % I2400M_TX_BUF_SIZE; in i2400m_tx_msg_get()
700 (void *) tx_msg - i2400m->tx_buf); in i2400m_tx_msg_get()
706 (void *) tx_msg - i2400m->tx_buf, in i2400m_tx_msg_get()
721 current->pid, (void *) tx_msg - i2400m->tx_buf, in i2400m_tx_msg_get()
[all …]
/drivers/spi/
Dorion_spi.c182 const u8 **tx_buf, u8 **rx_buf) in orion_spi_write_read_8bit() argument
195 if (tx_buf && *tx_buf) in orion_spi_write_read_8bit()
196 writel(*(*tx_buf)++, tx_reg); in orion_spi_write_read_8bit()
213 const u16 **tx_buf, u16 **rx_buf) in orion_spi_write_read_16bit() argument
226 if (tx_buf && *tx_buf) in orion_spi_write_read_16bit()
227 writel(__cpu_to_le16(get_unaligned((*tx_buf)++)), tx_reg); in orion_spi_write_read_16bit()
254 const u8 *tx = xfer->tx_buf; in orion_spi_write_read()
263 const u16 *tx = xfer->tx_buf; in orion_spi_write_read()
409 if (t->tx_buf == NULL && t->rx_buf == NULL && t->len) { in orion_spi_transfer()
Domap2_mcspi.c242 tx = xfer->tx_buf; in omap2_mcspi_txrx_dma()
352 tx = xfer->tx_buf; in omap2_mcspi_txrx_pio()
392 tx = xfer->tx_buf; in omap2_mcspi_txrx_pio()
431 tx = xfer->tx_buf; in omap2_mcspi_txrx_pio()
715 if (t->tx_buf == NULL && t->rx_buf == NULL && t->len) { in omap2_mcspi_work()
735 if (t->tx_buf == NULL) in omap2_mcspi_work()
745 if (t->tx_buf == NULL) in omap2_mcspi_work()
807 const void *tx_buf = t->tx_buf; in omap2_mcspi_transfer() local
812 || (len && !(rx_buf || tx_buf)) in omap2_mcspi_transfer()
819 tx_buf ? "tx" : "", in omap2_mcspi_transfer()
[all …]
Datmel_spi.c198 if (xfer->tx_buf) in atmel_spi_next_xfer_data()
251 xfer, xfer->len, xfer->tx_buf, xfer->tx_dma, in atmel_spi_next_xfer()
290 xfer, xfer->len, xfer->tx_buf, xfer->tx_dma, in atmel_spi_next_xfer()
353 if (xfer->tx_buf) { in atmel_spi_dma_map_xfer()
355 (void *) xfer->tx_buf, xfer->len, in atmel_spi_dma_map_xfer()
365 if (xfer->tx_buf) in atmel_spi_dma_map_xfer()
680 if (!(xfer->tx_buf || xfer->rx_buf) && xfer->len) { in atmel_spi_transfer()
710 xfer->tx_buf, xfer->tx_dma, in atmel_spi_transfer()
Dspi_bitbang.c72 const u8 *tx = t->tx_buf; in bitbang_txrx_8()
98 const u16 *tx = t->tx_buf; in bitbang_txrx_16()
124 const u32 *tx = t->tx_buf; in bitbang_txrx_32()
330 if (!t->tx_buf && !t->rx_buf && t->len) { in bitbang_work()
Dmpc52xx_psc_spi.c141 unsigned char *tx_buf = (unsigned char *)t->tx_buf; in mpc52xx_psc_spi_transfer_rxtx() local
147 if (!t->tx_buf && !t->rx_buf && t->len) in mpc52xx_psc_spi_transfer_rxtx()
168 if (tx_buf) in mpc52xx_psc_spi_transfer_rxtx()
169 out_8(&psc->mpc52xx_psc_buffer_8, tx_buf[sb]); in mpc52xx_psc_spi_transfer_rxtx()
Domap_uwire.c218 if (!t->tx_buf && !t->rx_buf) in uwire_txrx()
222 if (t->tx_buf && t->rx_buf) in uwire_txrx()
228 if (t->tx_buf) { in uwire_txrx()
229 const u8 *buf = t->tx_buf; in uwire_txrx()
Dspidev.c130 .tx_buf = spidev->buffer, in spidev_sync_write()
251 if (u_tmp->tx_buf) { in spidev_message()
252 k_tmp->tx_buf = buf; in spidev_message()
254 (uintptr_t) u_tmp->tx_buf, in spidev_message()
269 u_tmp->tx_buf ? "tx " : "", in spidev_message()
Dau1550_spi.c366 hw->tx = t->tx_buf; in au1550_spi_dma_txrxb()
379 if (t->tx_buf) { in au1550_spi_dma_txrxb()
382 (void *)t->tx_buf, in au1550_spi_dma_txrxb()
413 if (!t->tx_buf) { in au1550_spi_dma_txrxb()
453 if (t->tx_buf && t->tx_dma == 0 ) in au1550_spi_dma_txrxb()
556 hw->tx = t->tx_buf; in au1550_spi_pio_txrxb()
/drivers/usb/serial/
Daircable.c91 struct circ_buf *tx_buf; /* write buffer */ member
217 count = min(serial_buf_data_avail(priv->tx_buf), MAX_HCI_FRAMESIZE); in aircable_send()
232 serial_buf_get(priv->tx_buf, buf + HCI_HEADER_LENGTH, in aircable_send()
345 priv->tx_buf = serial_buf_alloc(); in aircable_attach()
346 if (priv->tx_buf == NULL) { in aircable_attach()
353 kfree(priv->tx_buf); in aircable_attach()
376 serial_buf_free(priv->tx_buf); in aircable_shutdown()
387 return serial_buf_data_avail(priv->tx_buf); in aircable_write_room()
405 temp = serial_buf_put(priv->tx_buf, source, count); in aircable_write()
/drivers/input/touchscreen/
Dads7846.c231 req->xfer[0].tx_buf = &req->ref_on; in ads7846_read12_ser()
245 req->xfer[2].tx_buf = &req->command; in ads7846_read12_ser()
257 req->xfer[4].tx_buf = &req->ref_off; in ads7846_read12_ser()
981 x->tx_buf = &packet->read_y; in ads7846_probe()
998 x->tx_buf = &packet->read_y; in ads7846_probe()
1017 x->tx_buf = &packet->read_x; in ads7846_probe()
1031 x->tx_buf = &packet->read_x; in ads7846_probe()
1051 x->tx_buf = &packet->read_z1; in ads7846_probe()
1065 x->tx_buf = &packet->read_z1; in ads7846_probe()
1083 x->tx_buf = &packet->read_z2; in ads7846_probe()
[all …]
/drivers/mmc/host/
Dmmc_spi.c466 t->tx_buf = t->rx_buf = data->status; in mmc_spi_command_send()
530 t->tx_buf = &scratch->data_token; in mmc_spi_setup_data_message()
541 t->tx_buf = host->ones; in mmc_spi_setup_data_message()
551 t->tx_buf = &scratch->crc_val; in mmc_spi_setup_data_message()
555 t->tx_buf = host->ones; in mmc_spi_setup_data_message()
583 t->tx_buf = host->ones; in mmc_spi_setup_data_message()
615 crc_itu_t(0, t->tx_buf, t->len)); in mmc_spi_writeblock()
664 t->tx_buf += t->len; in mmc_spi_writeblock()
829 t->tx_buf = kmap_addr + sg->offset; in mmc_spi_data_do()
900 host->early_status.tx_buf = host->early_status.rx_buf; in mmc_spi_data_do()
[all …]
/drivers/media/dvb/frontends/
Dsp8870.c103 u8 tx_buf[255]; in sp8870_firmware_upload() local
126 tx_buf[0] = 0xCF; in sp8870_firmware_upload()
127 tx_buf[1] = 0x0A; in sp8870_firmware_upload()
128 memcpy(&tx_buf[2], fw_buf + fw_pos, tx_len); in sp8870_firmware_upload()
131 msg.buf = tx_buf; in sp8870_firmware_upload()
/drivers/mtd/devices/
Dmtd_dataflash.c174 x.tx_buf = command = priv->command; in dataflash_erase()
269 x[0].tx_buf = command; in dataflash_read()
336 x[0].tx_buf = command = priv->command; in dataflash_write()
398 x[1].tx_buf = writebuf; in dataflash_write()
504 t.tx_buf = scratch; in otp_read()
586 t.tx_buf = scratch; in dataflash_write_user_otp()
Dm25p80.c316 t[0].tx_buf = flash->command; in m25p80_read()
387 t[0].tx_buf = flash->command; in m25p80_write()
391 t[1].tx_buf = buf; in m25p80_write()
442 t[1].tx_buf = buf + i; in m25p80_write()
/drivers/net/usb/
Dcatc.c173 u8 tx_buf[2][TX_MAX_BURST * (PKT_SZ + 2)]; member
366 catc->tx_urb->transfer_buffer = catc->tx_buf[catc->tx_idx]; in catc_tx_run()
420 char *tx_buf; in catc_hard_start_xmit() local
425 tx_buf = catc->tx_buf[catc->tx_idx] + catc->tx_ptr; in catc_hard_start_xmit()
427 *(__be16 *)tx_buf = cpu_to_be16(skb->len); in catc_hard_start_xmit()
429 *(__le16 *)tx_buf = cpu_to_le16(skb->len); in catc_hard_start_xmit()
430 skb_copy_from_linear_data(skb, tx_buf + 2, skb->len); in catc_hard_start_xmit()
/drivers/net/
Denc28j60.c92 u8 *tx_buf = priv->spi_transfer_buf; in spi_read_buf() local
94 .tx_buf = tx_buf, in spi_read_buf()
101 tx_buf[0] = ENC28J60_READ_BUF_MEM; in spi_read_buf()
102 tx_buf[1] = tx_buf[2] = tx_buf[3] = 0; /* don't care */ in spi_read_buf()
145 u8 tx_buf[2]; in spi_read_op() local
155 tx_buf[0] = op | (addr & ADDR_MASK); in spi_read_op()
156 ret = spi_write_then_read(priv->spi, tx_buf, 1, rx_buf, slen); in spi_read_op()
Dsunlance.c231 u8 tx_buf [TX_RING_SIZE][TX_BUFF_SIZE]; member
347 leptr = LANCE_ADDR(aib + libbuff_offset(tx_buf, i)); in lance_init_ring_dvma()
403 leptr = libbuff_offset(tx_buf, i); in lance_init_ring_pio()
892 u16 __iomem *packet = (u16 __iomem *) &(ib->tx_buf[entry][0]); in build_fake_packet()
905 u16 *packet = (u16 *) &(ib->tx_buf[entry][0]); in build_fake_packet()
1133 lance_piocopy_from_skb(&ib->tx_buf[entry][0], skb->data, skblen); in lance_start_xmit()
1135 lance_piozero(&ib->tx_buf[entry][skblen], len - skblen); in lance_start_xmit()
1141 skb_copy_from_linear_data(skb, &ib->tx_buf [entry][0], skblen); in lance_start_xmit()
1143 memset((char *) &ib->tx_buf [entry][skblen], 0, len - skblen); in lance_start_xmit()
Da2065.c102 char tx_buf [TX_RING_SIZE][TX_BUFF_SIZE]; member
195 leptr = LANCE_ADDR(&aib->tx_buf[i][0]); in lance_init_ring()
592 skb_copy_from_linear_data(skb, (void *)&ib->tx_buf [entry][0], skblen); in lance_start_xmit()
596 memset ((void *) &ib->tx_buf [entry][skblen], 0, len - skblen); in lance_start_xmit()
/drivers/net/wireless/p54/
Dp54pci.c217 void **tx_buf) in p54p_check_tx_ring() argument
230 if (tx_buf[i]) in p54p_check_tx_ring()
231 if (FREE_AFTER_TX((struct sk_buff *) tx_buf[i])) in p54p_check_tx_ring()
232 p54_free_skb(dev, tx_buf[i]); in p54p_check_tx_ring()
233 tx_buf[i] = NULL; in p54p_check_tx_ring()
/drivers/net/arm/
Dep93xx_eth.c163 void *tx_buf[TX_QUEUE_ENTRIES]; member
333 skb_copy_and_csum_dev(skb, ep->tx_buf[entry]); in ep93xx_xmit()
453 if (ep->tx_buf[i] != NULL) in ep93xx_free_buffers()
454 free_page((unsigned long)ep->tx_buf[i]); in ep93xx_free_buffers()
511 ep->tx_buf[i] = page; in ep93xx_alloc_buffers()
514 ep->tx_buf[i + 1] = page + PKT_BUF_SIZE; in ep93xx_alloc_buffers()
/drivers/video/backlight/
Dltv350qv.c56 index_xfer.tx_buf = lcd->buffer; in ltv350qv_write_reg()
63 value_xfer.tx_buf = lcd->buffer + 4; in ltv350qv_write_reg()
Dili9320.c186 spi->xfer[0].tx_buf = spi->buffer_addr; in ili9320_setup_spi()
187 spi->xfer[1].tx_buf = spi->buffer_data; in ili9320_setup_spi()

123