Home
last modified time | relevance | path

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

123

/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 in wdt87xx_get_feature()
321 int tx_len = 0; wdt87xx_set_feature() local
[all...]
/linux/drivers/net/wireless/st/cw1200/
H A Dbh.c346 size_t tx_len; in cw1200_bh_tx_helper() local
366 ret = wsm_get_tx(priv, &data, &tx_len, tx_burst); in cw1200_bh_tx_helper()
375 BUG_ON(tx_len < sizeof(*wsm)); in cw1200_bh_tx_helper()
376 BUG_ON(__le16_to_cpu(wsm->len) != tx_len); in cw1200_bh_tx_helper()
381 priv->hwbus_priv, tx_len); in cw1200_bh_tx_helper()
384 if (aligned_len > tx_len) in cw1200_bh_tx_helper()
385 memset(data + tx_len, 0, aligned_len - tx_len); in cw1200_bh_tx_helper()
386 tx_len = aligned_len; in cw1200_bh_tx_helper()
389 if (WARN_ON_ONCE(tx_len > EFFECTIVE_BUF_SIZE)) in cw1200_bh_tx_helper()
390 pr_debug("Write aligned len: %zu\n", tx_len); in cw1200_bh_tx_helper()
[all …]
/linux/drivers/bluetooth/
H A Dhci_mrvl.c43 unsigned int tx_len; member
170 mrvl->tx_len = le16_to_cpu(pkt->lhs); in mrvl_recv_fw_req()
306 mrvl->tx_len); in mrvl_load_firmware()
313 if (!mrvl->tx_len) { in mrvl_load_firmware()
322 if (fw_ptr + mrvl->tx_len > fw_max) { in mrvl_load_firmware()
323 mrvl->tx_len = fw_max - fw_ptr; in mrvl_load_firmware()
324 bt_dev_dbg(hdev, "Adjusting tx_len to %d", in mrvl_load_firmware()
325 mrvl->tx_len); in mrvl_load_firmware()
328 skb = bt_skb_alloc(mrvl->tx_len, GFP_KERNEL); in mrvl_load_firmware()
336 skb_put_data(skb, fw_ptr, mrvl->tx_len); in mrvl_load_firmware()
[all...]
H A Dbtmrvl_sdio.c468 u32 tx_len; in btmrvl_sdio_download_helper()
498 tx_len = (FIRMWARE_TRANSFER_NBLOCK * SDIO_BLOCK_SIZE) in btmrvl_sdio_download_helper()
515 if (helperlen - hlprblknow < tx_len) in btmrvl_sdio_download_helper()
516 tx_len = helperlen - hlprblknow; in btmrvl_sdio_download_helper()
519 helperbuf[0] = ((tx_len & 0x000000ff) >> 0); in btmrvl_sdio_download_helper()
520 helperbuf[1] = ((tx_len & 0x0000ff00) >> 8); in btmrvl_sdio_download_helper()
521 helperbuf[2] = ((tx_len & 0x00ff0000) >> 16); in btmrvl_sdio_download_helper()
522 helperbuf[3] = ((tx_len & 0xff000000) >> 24); in btmrvl_sdio_download_helper()
525 tx_len); in btmrvl_sdio_download_helper()
536 hlprblknow += tx_len; in btmrvl_sdio_download_helper()
469 u32 tx_len; btmrvl_sdio_download_helper() local
[all...]
/linux/drivers/spi/
H A Dspi-dw-core.c140 rxtx_gap = dws->fifo_len - (dws->rx_len - dws->tx_len); in dw_writer()
142 return min3((u32)dws->tx_len, tx_room, rxtx_gap); in dw_writer()
169 --dws->tx_len; in dw_reader()
264 if (!dws->tx_len) in dw_spi_enh_handler()
313 if (!dws->tx_len) in dw_spi_prepare_cr0()
318 !dws->rx_len || !dws->tx_len || in dw_spi_prepare_cr0()
340 if (!dws->tx_len && dws->rx_len) { in dw_spi_prepare_cr0()
342 } else if (!dws->rx_len && !dws->tx_len) { in dw_spi_prepare_cr0()
489 level = min_t(unsigned int, dws->fifo_len / 2, dws->tx_len); in dw_spi_poll_transfer()
510 level = min_t(unsigned int, dws->fifo_len / 2, dws->tx_len); in dw_spi_transfer_one()
[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.c333 * @tx_len: number of data to be written in bytes
371 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 > in stm32f7_spi_write_tx()
[all...]
H A Dspi-dw-dma.c621 unsigned int tx_len = 0, rx_len = 0; in dw_spi_dma_transfer_one()
630 if (!tx_len) { in dw_spi_dma_transfer_one()
633 tx_len = sg_dma_len(tx_sg); in dw_spi_dma_transfer_one()
643 len = min(tx_len, rx_len); in dw_spi_dma_transfer()
677 tx_len -= len; in dw_spi_dma_stop()
828 level = min_t(unsigned int, dws->fifo_len / 2, dws->tx_len);
840 unsigned int len = dws->tx_dir ? dws->tx_len : dws->rx_len;
869 ret = dw_spi_dma_wait(dws, dws->tx_len, dws->current_freq);
575 unsigned int tx_len = 0, rx_len = 0; dw_spi_dma_transfer_one() local
/linux/drivers/i3c/master/
H A Damd-i3c-master.c138 u16 tx_len; member
311 cmd->tx_buf, cmd->tx_len); in xi3c_master_write_to_cmdfifo()
468 if (cmd->tx_len > wrfifo_space * XI3C_WORD_LEN) in xi3c_master_wr_to_tx_fifo()
471 len = cmd->tx_len; in xi3c_master_wr_to_tx_fifo()
478 cmd->tx_len -= len; in xi3c_master_wr_to_tx_fifo()
487 if (cmd->tx_len > XI3C_MAXDATA_LENGTH) in xi3c_master_write()
493 if (cmd->tx_len && !cmd->tx_buf) in xi3c_master_write()
496 cmd_len = cmd->tx_len; in xi3c_master_write()
506 while (cmd->tx_len > 0 && !xi3c_is_resp_available(master)) { in xi3c_master_write()
596 daa_cmd->tx_len in xi3c_master_do_daa()
[all...]
/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, in mpxy_send_message_without_resp()
[all...]
H A Dmtk-gpueb-mailbox.c64 * @tx_len: size, in bytes, of the outgoing data on this channel
72 const u8 tx_len; member
142 for (i = 0; i < ch->c->tx_len; i += 4) in mtk_gpueb_mbox_send_data()
/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/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/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/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/input/rmi4/
H A Drmi_spi.c112 int tx_len, u8 *rx_buf, int rx_len) in rmi_spi_xfer()
140 total_tx_len = cmd_len + tx_len; in rmi_spi_xfer()
176 rmi_spi->tx_buf[3] = tx_len; in rmi_spi_xfer()
181 memcpy(&rmi_spi->tx_buf[cmd_len], tx_buf, tx_len); in rmi_spi_xfer()
114 rmi_spi_xfer(struct rmi_spi_xport * rmi_spi,const struct rmi_spi_cmd * cmd,const u8 * tx_buf,int tx_len,u8 * rx_buf,int rx_len) rmi_spi_xfer() argument
/linux/drivers/mfd/
H A Dipaq-micro.c43 checksum = ((msg->id & 0x0f) << 4) | (msg->tx_len & 0x0f); in ipaq_micro_trigger_tx()
46 for (i = 0; i < msg->tx_len; i++) { in ipaq_micro_trigger_tx()
65 dev_dbg(micro->dev, "TX msg: %02x, %d bytes\n", msg->id, msg->tx_len); in ipaq_micro_tx_msg()
216 msg.tx_len = 2; in ipaq_micro_eeprom_read()
/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/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()

123