Home
last modified time | relevance | path

Searched refs:tx_len (Results 1 – 25 of 46) sorted by relevance

12

/linux/drivers/net/wireless/ath/ath6kl/
H A Dbmi.c177 u32 len_remain, tx_len; in ath6kl_bmi_write() local
212 tx_len = len_remain; in ath6kl_bmi_write()
214 tx_len = (ar->bmi.max_data_size - header); in ath6kl_bmi_write()
222 memcpy(&(ar->bmi.cmd_buf[offset]), &tx_len, sizeof(tx_len)); in ath6kl_bmi_write()
223 offset += sizeof(tx_len); in ath6kl_bmi_write()
224 memcpy(&(ar->bmi.cmd_buf[offset]), src, tx_len); in ath6kl_bmi_write()
225 offset += tx_len; in ath6kl_bmi_write()
233 len_remain -= tx_len; addr += tx_len; in ath6kl_bmi_write()
410 u32 len_remain, tx_len; in ath6kl_bmi_lz_data() local
431 tx_len = (len_remain < (ar->bmi.max_data_size - header)) ? in ath6kl_bmi_lz_data()
[all …]
/linux/drivers/input/touchscreen/
H A Dwdt87xx_i2c.c282 size_t tx_len = 0; in wdt87xx_get_feature() local
290 tx_buf[tx_len++] = 0x22; in wdt87xx_get_feature()
291 tx_buf[tx_len++] = 0x00; in wdt87xx_get_feature()
293 tx_buf[tx_len++] = 0x30; in wdt87xx_get_feature()
294 tx_buf[tx_len++] = 0x02; in wdt87xx_get_feature()
295 tx_buf[tx_len++] = buf[CMD_REPORT_ID_OFFSET]; in wdt87xx_get_feature()
297 tx_buf[tx_len++] = 0x30 | buf[CMD_REPORT_ID_OFFSET]; in wdt87xx_get_feature()
298 tx_buf[tx_len++] = 0x02; in wdt87xx_get_feature()
300 tx_buf[tx_len++] = 0x23; in wdt87xx_get_feature()
301 tx_buf[tx_len++] = 0x00; in wdt87xx_get_feature()
[all …]
/linux/drivers/bluetooth/
H A Dhci_mrvl.c43 unsigned int tx_len; member
184 mrvl->tx_len = le16_to_cpu(pkt->lhs); in mrvl_recv_fw_req()
321 mrvl->tx_len); in mrvl_load_firmware()
328 if (!mrvl->tx_len) { in mrvl_load_firmware()
337 if (fw_ptr + mrvl->tx_len > fw_max) { in mrvl_load_firmware()
338 mrvl->tx_len = fw_max - fw_ptr; in mrvl_load_firmware()
340 mrvl->tx_len); in mrvl_load_firmware()
343 skb = bt_skb_alloc(mrvl->tx_len, GFP_KERNEL); in mrvl_load_firmware()
351 skb_put_data(skb, fw_ptr, mrvl->tx_len); in mrvl_load_firmware()
352 fw_ptr += mrvl->tx_len; in mrvl_load_firmware()
H A Dbtmrvl_sdio.c469 u32 tx_len; in btmrvl_sdio_download_helper() local
499 tx_len = (FIRMWARE_TRANSFER_NBLOCK * SDIO_BLOCK_SIZE) in btmrvl_sdio_download_helper()
516 if (helperlen - hlprblknow < tx_len) in btmrvl_sdio_download_helper()
517 tx_len = helperlen - hlprblknow; in btmrvl_sdio_download_helper()
520 helperbuf[0] = ((tx_len & 0x000000ff) >> 0); in btmrvl_sdio_download_helper()
521 helperbuf[1] = ((tx_len & 0x0000ff00) >> 8); in btmrvl_sdio_download_helper()
522 helperbuf[2] = ((tx_len & 0x00ff0000) >> 16); in btmrvl_sdio_download_helper()
523 helperbuf[3] = ((tx_len & 0xff000000) >> 24); in btmrvl_sdio_download_helper()
526 tx_len); in btmrvl_sdio_download_helper()
537 hlprblknow += tx_len; in btmrvl_sdio_download_helper()
/linux/drivers/iio/dac/
H A Dad5686-spi.c24 u8 tx_len, *buf; in ad5686_spi_write() local
31 tx_len = 2; in ad5686_spi_write()
37 tx_len = 3; in ad5686_spi_write()
44 tx_len = 3; in ad5686_spi_write()
50 return spi_write(spi, buf, tx_len); in ad5686_spi_write()
/linux/drivers/spi/
H A Dspi-dw-core.c124 rxtx_gap = dws->fifo_len - (dws->rx_len - dws->tx_len); in dw_spi_tx_max()
126 return min3((u32)dws->tx_len, tx_room, rxtx_gap); in dw_spi_tx_max()
152 --dws->tx_len; in dw_writer()
244 if (!dws->tx_len) in dw_spi_transfer_handler()
264 if (!dws->tx_len && dws->rx_len) { in dw_spi_enh_handler()
266 } else if (!dws->rx_len && !dws->tx_len) { in dw_spi_enh_handler()
289 !dws->rx_len && !dws->tx_len) { in dw_spi_irq()
421 level = min_t(unsigned int, dws->fifo_len / 2, dws->tx_len); in dw_spi_irq_setup()
442 level = min_t(unsigned int, dws->fifo_len / 2, dws->tx_len); in dw_spi_enh_irq_setup()
482 delay.value = nbits * (dws->rx_len - dws->tx_len); in dw_spi_poll_transfer()
[all …]
H A Dspi-mpc512x-psc.c148 size_t tx_len = t->len; in mpc512x_psc_spi_transfer_rxtx() local
156 while (rx_len || tx_len) { in mpc512x_psc_spi_transfer_rxtx()
168 txcount = min(fifosz, tx_len); in mpc512x_psc_spi_transfer_rxtx()
177 if (tx_len == EOFBYTE && t->cs_change) in mpc512x_psc_spi_transfer_rxtx()
181 tx_len--; in mpc512x_psc_spi_transfer_rxtx()
225 if (tx_len) in mpc512x_psc_spi_transfer_rxtx()
258 if (!tx_len && rx_len && !rxtries) { in mpc512x_psc_spi_transfer_rxtx()
274 if (!tx_len && !rx_len) { in mpc512x_psc_spi_transfer_rxtx()
H A Dspi-stm32.c371 int tx_len; member
620 if ((spi->tx_len > 0) && (readl_relaxed(spi->base + STM32FX_SPI_SR) & in stm32f4_spi_write_tx()
622 u32 offs = spi->cur_xferlen - spi->tx_len; in stm32f4_spi_write_tx()
628 spi->tx_len -= sizeof(u16); in stm32f4_spi_write_tx()
633 spi->tx_len -= sizeof(u8); in stm32f4_spi_write_tx()
637 dev_dbg(spi->dev, "%s: %d bytes left\n", __func__, spi->tx_len); in stm32f4_spi_write_tx()
649 if ((spi->tx_len > 0) && (readl_relaxed(spi->base + STM32FX_SPI_SR) & in stm32f7_spi_write_tx()
651 u32 offs = spi->cur_xferlen - spi->tx_len; in stm32f7_spi_write_tx()
653 if (spi->tx_len >= sizeof(u16)) { in stm32f7_spi_write_tx()
657 spi->tx_len -= sizeof(u16); in stm32f7_spi_write_tx()
[all …]
H A Dspi-dw-dma.c575 unsigned int tx_len = 0, rx_len = 0; in dw_spi_dma_transfer_one() local
584 if (!tx_len) { in dw_spi_dma_transfer_one()
587 tx_len = sg_dma_len(tx_sg); in dw_spi_dma_transfer_one()
597 len = min(tx_len, rx_len); in dw_spi_dma_transfer_one()
631 tx_len -= len; in dw_spi_dma_transfer_one()
/linux/drivers/fpga/
H A Dlattice-sysconfig.h30 size_t tx_len, void *rx_buf, size_t rx_len);
33 const char *tx_buf, size_t tx_len);
H A Dlattice-sysconfig-spi.c19 const void *tx_buf, size_t tx_len, in sysconfig_spi_cmd_transfer() argument
24 return spi_write_then_read(spi, tx_buf, tx_len, rx_buf, rx_len); in sysconfig_spi_cmd_transfer()
H A Dlattice-sysconfig.c20 size_t tx_len, void *rx_buf, size_t rx_len) in sysconfig_cmd_read() argument
22 return priv->command_transfer(priv, tx_buf, tx_len, rx_buf, rx_len); in sysconfig_cmd_read()
/linux/drivers/mailbox/
H A Driscv-sbi-mpxy-mbox.c238 void *tx, unsigned long tx_len, in mpxy_send_message_with_resp() argument
248 if (!tx && tx_len) in mpxy_send_message_with_resp()
254 if (tx_len) in mpxy_send_message_with_resp()
255 memcpy(mpxy->shmem, tx, tx_len); in mpxy_send_message_with_resp()
258 channel_id, msg_id, tx_len, 0, 0, 0); in mpxy_send_message_with_resp()
276 void *tx, unsigned long tx_len) in mpxy_send_message_without_resp() argument
283 if (!tx && tx_len) in mpxy_send_message_without_resp()
289 if (tx_len) in mpxy_send_message_without_resp()
290 memcpy(mpxy->shmem, tx, tx_len); in mpxy_send_message_without_resp()
293 channel_id, msg_id, tx_len, 0, 0, 0); in mpxy_send_message_without_resp()
H A Dmtk-gpueb-mailbox.c72 const u8 tx_len; member
142 for (i = 0; i < ch->c->tx_len; i += 4) in mtk_gpueb_mbox_send_data()
/linux/drivers/leds/
H A Dleds-ipaq-micro.c39 .tx_len = 4, in micro_leds_brightness_set()
76 .tx_len = 4, in micro_leds_blink_set()
/linux/drivers/staging/media/av7110/
H A Dsp8870.c104 int tx_len; in sp8870_firmware_upload() local
124 tx_len = (fw_pos <= SP8870_FIRMWARE_SIZE + SP8870_FIRMWARE_OFFSET - 252) ? 252 : in sp8870_firmware_upload()
129 memcpy(&tx_buf[2], fw_buf + fw_pos, tx_len); in sp8870_firmware_upload()
133 msg.len = tx_len + 2; in sp8870_firmware_upload()
140 fw_pos += tx_len; in sp8870_firmware_upload()
/linux/drivers/peci/
H A Drequest.c190 struct peci_request *peci_request_alloc(struct peci_device *device, u8 tx_len, u8 rx_len) in peci_request_alloc() argument
199 if (WARN_ON_ONCE(tx_len > PECI_REQUEST_MAX_BUF_SIZE || rx_len > PECI_REQUEST_MAX_BUF_SIZE)) in peci_request_alloc()
211 req->tx.len = tx_len; in peci_request_alloc()
362 u8 bus, u8 dev, u8 func, u64 offset, u8 tx_len, u8 len) in __ep_mmio_read() argument
367 req = peci_request_alloc(device, tx_len, PECI_RDENDPTCFG_RD_LEN_BASE + len); in __ep_mmio_read()
/linux/drivers/firmware/
H A Darm_scpi.c230 unsigned int tx_len; member
434 memcpy_toio(ch->tx_payload, t->tx_buf, t->tx_len); in scpi_tx_prepare()
436 memcpy_toio(mem->payload, t->tx_buf, t->tx_len); in scpi_tx_prepare()
474 static int scpi_send_message(u8 idx, void *tx_buf, unsigned int tx_len, in scpi_send_message() argument
500 msg->cmd = PACK_LEGACY_SCPI_CMD(cmd, tx_len); in scpi_send_message()
504 msg->cmd = PACK_SCPI_CMD(cmd, tx_len); in scpi_send_message()
507 msg->tx_len = tx_len; in scpi_send_message()
/linux/drivers/input/rmi4/
H A Drmi_spi.c114 int tx_len, u8 *rx_buf, int rx_len) in rmi_spi_xfer() argument
142 total_tx_len = cmd_len + tx_len; in rmi_spi_xfer()
178 rmi_spi->tx_buf[3] = tx_len; in rmi_spi_xfer()
183 memcpy(&rmi_spi->tx_buf[cmd_len], tx_buf, tx_len); in rmi_spi_xfer()
/linux/drivers/net/wireless/morsemicro/mm81x/
H A Dyaps_hw.c315 int tx_len; in mm81x_yaps_hw_write_pkts() local
341 tx_len = pkt_size + sizeof(delim); in mm81x_yaps_hw_write_pkts()
347 if ((batch_txn_len + tx_len) > YAPS_HW_WINDOW_SIZE_BYTES) { in mm81x_yaps_hw_write_pkts()
382 write_buf += tx_len; in mm81x_yaps_hw_write_pkts()
383 batch_txn_len += tx_len; in mm81x_yaps_hw_write_pkts()
/linux/drivers/video/backlight/
H A Dipaq_micro_bl.c21 .tx_len = 3, in micro_bl_update_status()
/linux/include/linux/mfd/
H A Dipaq-micro.h85 u8 tx_len; member
/linux/drivers/media/rc/
H A Dene_ir.h217 int tx_len; /* current len of tx buffer */ member
/linux/drivers/net/ethernet/amd/
H A D7990.h82 volatile unsigned short tx_len; /* transmit len and high addr */ member
/linux/drivers/net/ethernet/natsemi/
H A Dsonic.c199 dma_unmap_single(lp->device, lp->tx_laddr[i], lp->tx_len[i], DMA_TO_DEVICE); in sonic_close()
240 dma_unmap_single(lp->device, lp->tx_laddr[i], lp->tx_len[i], DMA_TO_DEVICE); in sonic_tx_timeout()
321 lp->tx_len[entry] = length; in sonic_send_packet()
412 dma_unmap_single(lp->device, lp->tx_laddr[entry], lp->tx_len[entry], DMA_TO_DEVICE); in sonic_interrupt()

12