| /linux/drivers/hid/ |
| H A D | hid-goodix-spi.c | 395 int tx_len = 0, args_len = 0; in goodix_hid_get_raw_report() local 421 tx_len += GOODIX_HID_ACK_HEADER_SIZE; in goodix_hid_get_raw_report() 423 put_unaligned_le16(cmd_register, tmp_buf + tx_len); in goodix_hid_get_raw_report() 424 tx_len += sizeof(cmd_register); in goodix_hid_get_raw_report() 426 tmp_buf[tx_len] = (report_type == HID_FEATURE_REPORT ? 0x03 : 0x01) << 4; in goodix_hid_get_raw_report() 427 tmp_buf[tx_len] |= reportnum >= 0x0F ? 0x0F : reportnum; in goodix_hid_get_raw_report() 428 tx_len++; in goodix_hid_get_raw_report() 430 tmp_buf[tx_len++] = GOODIX_HID_GET_REPORT_CMD; in goodix_hid_get_raw_report() 432 memcpy(tmp_buf + tx_len, args, args_len); in goodix_hid_get_raw_report() 433 tx_len += args_len; in goodix_hid_get_raw_report() [all …]
|
| /linux/drivers/net/wireless/ath/ath6kl/ |
| H A D | bmi.c | 177 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 D | wdt87xx_i2c.c | 282 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/spi/ |
| H A D | spi-mt7621.c | 180 int tx_len; in mt7621_spi_read_half_duplex() local 187 tx_len = rs->pending_write; in mt7621_spi_read_half_duplex() 190 while (rx_len || tx_len) { in mt7621_spi_read_half_duplex() 192 u32 val = (min(tx_len, 4) * 8) << 24; in mt7621_spi_read_half_duplex() 195 if (tx_len > 4) in mt7621_spi_read_half_duplex() 196 val |= (tx_len - 4) * 8; in mt7621_spi_read_half_duplex() 200 tx_len = 0; in mt7621_spi_read_half_duplex() 225 int tx_len, const u8 *buf) in mt7621_spi_write_half_duplex() argument 238 while (tx_len > 0) { in mt7621_spi_write_half_duplex() 254 tx_len -= 1; in mt7621_spi_write_half_duplex()
|
| H A D | spi-microchip-core-qspi.c | 122 int tx_len; member 205 while (qspi->tx_len >= 4) { in mchp_coreqspi_write_op() 210 qspi->tx_len -= 4; in mchp_coreqspi_write_op() 217 while (qspi->tx_len--) { in mchp_coreqspi_write_op() 229 qspi->rx_len = qspi->tx_len; in mchp_coreqspi_write_read_op() 235 while (qspi->tx_len >= 4) { in mchp_coreqspi_write_read_op() 242 qspi->tx_len -= 4; in mchp_coreqspi_write_read_op() 284 if (!qspi->tx_len) in mchp_coreqspi_write_read_op() 290 while (qspi->tx_len--) { in mchp_coreqspi_write_read_op() 489 qspi->tx_len = op->cmd.nbytes; in mchp_coreqspi_exec_op() [all …]
|
| H A D | spi-mtk-nor.c | 210 int tx_len, rx_len, prg_len, prg_left; in mtk_nor_match_prg() local 217 tx_len = op->cmd.nbytes + op->addr.nbytes; in mtk_nor_match_prg() 221 tx_len += op->dummy.nbytes; in mtk_nor_match_prg() 224 if (tx_len > MTK_NOR_REG_PRGDATA_MAX) in mtk_nor_match_prg() 230 (tx_len + op->data.nbytes > MTK_NOR_REG_PRGDATA_MAX + 1)) in mtk_nor_match_prg() 233 if (tx_len > MTK_NOR_REG_PRGDATA_MAX + 1) in mtk_nor_match_prg() 237 prg_left = MTK_NOR_PRG_CNT_MAX / 8 - tx_len - op->dummy.nbytes; in mtk_nor_match_prg() 246 prg_len = tx_len + op->dummy.nbytes + rx_len; in mtk_nor_match_prg() 250 prg_len = tx_len + op->dummy.nbytes; in mtk_nor_match_prg() 259 int tx_len, tx_left, prg_left; in mtk_nor_adj_prg_size() local [all …]
|
| H A D | spi-xlp.c | 94 int tx_len; /* tx xfer length */ member 208 while (xspi->tx_len && (txfifo_cnt < XLP_SPI_FIFO_SIZE)) { in xlp_spi_fill_txfifo() 211 nbytes = min(xspi->tx_len, 4); in xlp_spi_fill_txfifo() 216 xspi->tx_len -= nbytes; in xlp_spi_fill_txfifo() 233 if (xspi->tx_len) in xlp_spi_interrupt() 278 xs->tx_len = (xs->tx_buf == NULL) ? 0 : xfer_len; in xlp_spi_xfer_block() 283 if (xs->tx_len) in xlp_spi_xfer_block() 293 if (xs->tx_len) in xlp_spi_xfer_block()
|
| H A D | spi-microchip-core-spi.c | 77 unsigned int tx_len; member 138 spi->tx_len--; in mchp_corespi_write_fifo() 209 spi->rx_len, spi->tx_len); in mchp_corespi_interrupt() 218 spi->rx_len, spi->tx_len); in mchp_corespi_interrupt() 273 spi->tx_len = xfer->len; in mchp_corespi_transfer_one() 276 while (spi->tx_len) { in mchp_corespi_transfer_one() 277 unsigned int fifo_max = min(spi->tx_len, spi->fifo_depth); in mchp_corespi_transfer_one()
|
| H A D | spi-mpc512x-psc.c | 148 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 D | spi-stm32.c | 365 int tx_len; member 614 if ((spi->tx_len > 0) && (readl_relaxed(spi->base + STM32FX_SPI_SR) & in stm32f4_spi_write_tx() 616 u32 offs = spi->cur_xferlen - spi->tx_len; in stm32f4_spi_write_tx() 622 spi->tx_len -= sizeof(u16); in stm32f4_spi_write_tx() 627 spi->tx_len -= sizeof(u8); in stm32f4_spi_write_tx() 631 dev_dbg(spi->dev, "%s: %d bytes left\n", __func__, spi->tx_len); in stm32f4_spi_write_tx() 643 if ((spi->tx_len > 0) && (readl_relaxed(spi->base + STM32FX_SPI_SR) & in stm32f7_spi_write_tx() 645 u32 offs = spi->cur_xferlen - spi->tx_len; in stm32f7_spi_write_tx() 647 if (spi->tx_len >= sizeof(u16)) { in stm32f7_spi_write_tx() 651 spi->tx_len -= sizeof(u16); in stm32f7_spi_write_tx() [all …]
|
| H A D | spi-hisi-kunpeng.c | 133 unsigned int tx_len; member 252 u32 max = min_t(u32, hs->tx_len, hs->fifo_len); in hisi_spi_writer() 272 --hs->tx_len; in hisi_spi_writer() 393 hs->tx_len = transfer->len / hs->n_bytes; in hisi_spi_transfer_one() 395 hs->rx_len = hs->tx_len; in hisi_spi_transfer_one()
|
| H A D | spi-sun4i.c | 212 unsigned int tx_len = 0; in sun4i_spi_transfer_one() local 308 tx_len = tfr->len; in sun4i_spi_transfer_one() 312 sun4i_spi_write(sspi, SUN4I_XMIT_CNT_REG, SUN4I_XMIT_CNT(tx_len)); in sun4i_spi_transfer_one() 325 if (tx_len > SUN4I_FIFO_DEPTH) in sun4i_spi_transfer_one()
|
| H A D | spi-sun6i.c | 284 unsigned int tx_len = 0, rx_len = 0, nbits = 0; in sun6i_spi_transfer_one() local 438 tx_len = tfr->len; in sun6i_spi_transfer_one() 453 reg = FIELD_PREP(SUN6I_BURST_CTL_CNT_STC_MASK, tx_len); in sun6i_spi_transfer_one() 459 sun6i_spi_write(sspi, SUN6I_XMIT_CNT_REG, tx_len); in sun6i_spi_transfer_one() 480 if (tx_len > sspi->cfg->fifo_depth) in sun6i_spi_transfer_one()
|
| /linux/drivers/iio/dac/ |
| H A D | ad5686-spi.c | 20 u8 tx_len, *buf; in ad5686_spi_write() local 27 tx_len = 2; in ad5686_spi_write() 33 tx_len = 3; in ad5686_spi_write() 40 tx_len = 3; in ad5686_spi_write() 46 return spi_write(spi, buf, tx_len); in ad5686_spi_write()
|
| /linux/drivers/bluetooth/ |
| H A D | hci_mrvl.c | 43 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()
|
| /linux/drivers/fpga/ |
| H A D | lattice-sysconfig.h | 30 size_t tx_len, void *rx_buf, size_t rx_len); 33 const char *tx_buf, size_t tx_len);
|
| H A D | lattice-sysconfig-spi.c | 14 const void *tx_buf, size_t tx_len, in sysconfig_spi_cmd_transfer() argument 19 return spi_write_then_read(spi, tx_buf, tx_len, rx_buf, rx_len); in sysconfig_spi_cmd_transfer()
|
| /linux/drivers/staging/media/av7110/ |
| H A D | sp8870.c | 104 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/media/rc/ |
| H A D | ir_toy.c | 71 uint tx_len; member 152 if (irtoy->tx_len == 0) { in irtoy_response() 177 buf_len = min(space, irtoy->tx_len); in irtoy_response() 180 irtoy->tx_len, buf_len); in irtoy_response() 194 irtoy->tx_len -= buf_len; in irtoy_response() 324 irtoy->tx_len = size; in irtoy_tx()
|
| /linux/drivers/leds/ |
| H A D | leds-ipaq-micro.c | 39 .tx_len = 4, in micro_leds_brightness_set() 76 .tx_len = 4, in micro_leds_blink_set()
|
| /linux/drivers/peci/ |
| H A D | request.c | 190 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/gpu/drm/sun4i/ |
| H A D | sun6i_mipi_dsi.c | 856 pkt |= ((msg->tx_len) & 0xffff) << 8; in sun6i_dsi_dcs_build_pkt_hdr() 857 pkt |= (((msg->tx_len) >> 8) & 0xffff) << 16; in sun6i_dsi_dcs_build_pkt_hdr() 860 if (msg->tx_len > 1) in sun6i_dsi_dcs_build_pkt_hdr() 879 return msg->tx_len; in sun6i_dsi_dcs_write_short() 892 bounce = kzalloc(ALIGN(msg->tx_len + sizeof(crc), 4), GFP_KERNEL); in sun6i_dsi_dcs_write_long() 896 memcpy(bounce, msg->tx_buf, msg->tx_len); in sun6i_dsi_dcs_write_long() 897 len += msg->tx_len; in sun6i_dsi_dcs_write_long() 899 crc = sun6i_dsi_crc_compute(bounce, msg->tx_len); in sun6i_dsi_dcs_write_long() 900 memcpy((u8 *)bounce + msg->tx_len, &crc, sizeof(crc)); in sun6i_dsi_dcs_write_long() 920 return msg->tx_len; in sun6i_dsi_dcs_write_long()
|
| /linux/drivers/input/rmi4/ |
| H A D | rmi_spi.c | 114 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/video/backlight/ |
| H A D | ipaq_micro_bl.c | 21 .tx_len = 3, in micro_bl_update_status()
|
| /linux/drivers/net/hamradio/ |
| H A D | yam.c | 123 int tx_len; member 669 yp->tx_len = skb->len - 1; /* strip KISS byte */ in yam_tx_byte() 670 if (yp->tx_len >= YAM_MAX_FRAME || yp->tx_len < 2) { in yam_tx_byte() 676 yp->tx_len); in yam_tx_byte() 690 if (yp->tx_count >= yp->tx_len) { in yam_tx_byte()
|