/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath6kl/ |
H A D | bmi.c | 175 u32 len_remain, tx_len; in ath6kl_bmi_write() local 210 tx_len = len_remain; in ath6kl_bmi_write() 212 tx_len = (ar->bmi.max_data_size - header); in ath6kl_bmi_write() 220 memcpy(&(ar->bmi.cmd_buf[offset]), &tx_len, sizeof(tx_len)); in ath6kl_bmi_write() 221 offset += sizeof(tx_len); in ath6kl_bmi_write() 222 memcpy(&(ar->bmi.cmd_buf[offset]), src, tx_len); in ath6kl_bmi_write() 223 offset += tx_len; in ath6kl_bmi_write() 231 len_remain -= tx_len; addr += tx_len; in ath6kl_bmi_write() 408 u32 len_remain, tx_len; ath6kl_bmi_lz_data() local [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath6kl/ |
H A D | bmi.c | 175 u32 len_remain, tx_len; in ath6kl_bmi_write() local 210 tx_len = len_remain; in ath6kl_bmi_write() 212 tx_len = (ar->bmi.max_data_size - header); in ath6kl_bmi_write() 220 memcpy(&(ar->bmi.cmd_buf[offset]), &tx_len, sizeof(tx_len)); in ath6kl_bmi_write() 221 offset += sizeof(tx_len); in ath6kl_bmi_write() 222 memcpy(&(ar->bmi.cmd_buf[offset]), src, tx_len); in ath6kl_bmi_write() 223 offset += tx_len; in ath6kl_bmi_write() 231 len_remain -= tx_len; addr += tx_len; in ath6kl_bmi_write() 408 u32 len_remain, tx_len; ath6kl_bmi_lz_data() local [all...] |
/kernel/linux/linux-5.10/drivers/spi/ |
H A D | spi-mt7621.c | 159 int tx_len; in mt7621_spi_read_half_duplex() local 166 tx_len = rs->pending_write; in mt7621_spi_read_half_duplex() 169 while (rx_len || tx_len) { in mt7621_spi_read_half_duplex() 171 u32 val = (min(tx_len, 4) * 8) << 24; in mt7621_spi_read_half_duplex() 174 if (tx_len > 4) in mt7621_spi_read_half_duplex() 175 val |= (tx_len - 4) * 8; in mt7621_spi_read_half_duplex() 179 tx_len = 0; in mt7621_spi_read_half_duplex() 204 int tx_len, const u8 *buf) in mt7621_spi_write_half_duplex() 217 while (tx_len > 0) { in mt7621_spi_write_half_duplex() 233 tx_len in mt7621_spi_write_half_duplex() 203 mt7621_spi_write_half_duplex(struct mt7621_spi *rs, int tx_len, const u8 *buf) mt7621_spi_write_half_duplex() argument [all...] |
H A D | spi-bcm2835aux.c | 96 int tx_len; member 188 count = min(bs->tx_len, 3); in bcm2835aux_wr_fifo() 199 bs->tx_len -= count; in bcm2835aux_wr_fifo() 203 if (bs->tx_len) in bcm2835aux_wr_fifo() 227 while (bs->tx_len && in bcm2835aux_spi_transfer_helper() 248 if (!bs->tx_len) { in bcm2835aux_spi_interrupt() 292 while ((bs->tx_len) && in bcm2835aux_spi_transfer_one_irq() 331 bs->tx_len, bs->rx_len); in bcm2835aux_spi_transfer_one_poll() 382 bs->tx_len = tfr->len; in bcm2835aux_spi_transfer_one()
|
H A D | spi-efm32.c | 83 unsigned tx_len, rx_len; member 142 ddata->tx_len--; in efm32_spi_tx_u8() 162 while (ddata->tx_len && in efm32_spi_filltx() 163 ddata->tx_len + 2 > ddata->rx_len && in efm32_spi_filltx() 181 ddata->tx_len = ddata->rx_len = in efm32_spi_txrx_bufs() 196 ret = t->len - max(ddata->tx_len, ddata->rx_len); in efm32_spi_txrx_bufs() 243 __func__, ddata->tx_len, ddata->rx_len, in efm32_spi_txirq() 252 __func__, ddata->tx_len, ddata->rx_len); in efm32_spi_txirq() 254 if (!ddata->tx_len) { in efm32_spi_txirq()
|
H A D | spi-amd.c | 175 u32 tx_len = 0, rx_len = 0; in amd_spi_fifo_xfer() local 186 tx_len = xfer->len - 1; in amd_spi_fifo_xfer() 192 for (i = 0; i < tx_len; i++) { in amd_spi_fifo_xfer() 198 amd_spi_set_tx_count(master, tx_len); in amd_spi_fifo_xfer() 218 tx_len + i); in amd_spi_fifo_xfer() 223 message->actual_length = tx_len + rx_len + 1; in amd_spi_fifo_xfer()
|
H A D | spi-mtk-nor.c | 183 int tx_len, rx_len, prg_len, prg_left; in mtk_nor_match_prg() local 190 tx_len = op->cmd.nbytes + op->addr.nbytes; in mtk_nor_match_prg() 194 tx_len += op->dummy.nbytes; in mtk_nor_match_prg() 197 if (tx_len > MTK_NOR_REG_PRGDATA_MAX) in mtk_nor_match_prg() 203 (tx_len + op->data.nbytes > MTK_NOR_REG_PRGDATA_MAX + 1)) in mtk_nor_match_prg() 206 if (tx_len > MTK_NOR_REG_PRGDATA_MAX + 1) in mtk_nor_match_prg() 210 prg_left = MTK_NOR_PRG_CNT_MAX / 8 - tx_len - op->dummy.nbytes; in mtk_nor_match_prg() 219 prg_len = tx_len + op->dummy.nbytes + rx_len; in mtk_nor_match_prg() 223 prg_len = tx_len + op->dummy.nbytes; in mtk_nor_match_prg() 232 int tx_len, tx_lef in mtk_nor_adj_prg_size() local 501 int tx_len, prg_len; mtk_nor_spi_mem_prg() local [all...] |
H A D | spi-mpc512x-psc.c | 154 size_t tx_len = t->len; in mpc512x_psc_spi_transfer_rxtx() local 162 while (rx_len || tx_len) { in mpc512x_psc_spi_transfer_rxtx() 174 txcount = min(fifosz, tx_len); in mpc512x_psc_spi_transfer_rxtx() 183 if (tx_len == EOFBYTE && t->cs_change) in mpc512x_psc_spi_transfer_rxtx() 187 tx_len--; in mpc512x_psc_spi_transfer_rxtx() 231 if (tx_len) in mpc512x_psc_spi_transfer_rxtx() 264 if (!tx_len && rx_len && !rxtries) { in mpc512x_psc_spi_transfer_rxtx() 280 if (!tx_len && !rx_len) { in mpc512x_psc_spi_transfer_rxtx()
|
H A D | spi-xlp.c | 95 int tx_len; /* tx xfer length */ member 209 while (xspi->tx_len && (txfifo_cnt < XLP_SPI_FIFO_SIZE)) { in xlp_spi_fill_txfifo() 212 nbytes = min(xspi->tx_len, 4); in xlp_spi_fill_txfifo() 217 xspi->tx_len -= nbytes; in xlp_spi_fill_txfifo() 234 if (xspi->tx_len) in xlp_spi_interrupt() 279 xs->tx_len = (xs->tx_buf == NULL) ? 0 : xfer_len; in xlp_spi_xfer_block() 284 if (xs->tx_len) in xlp_spi_xfer_block() 294 if (xs->tx_len) in xlp_spi_xfer_block()
|
/kernel/linux/linux-6.6/drivers/spi/ |
H A D | spi-mt7621.c | 160 int tx_len; in mt7621_spi_read_half_duplex() local 167 tx_len = rs->pending_write; in mt7621_spi_read_half_duplex() 170 while (rx_len || tx_len) { in mt7621_spi_read_half_duplex() 172 u32 val = (min(tx_len, 4) * 8) << 24; in mt7621_spi_read_half_duplex() 175 if (tx_len > 4) in mt7621_spi_read_half_duplex() 176 val |= (tx_len - 4) * 8; in mt7621_spi_read_half_duplex() 180 tx_len = 0; in mt7621_spi_read_half_duplex() 205 int tx_len, const u8 *buf) in mt7621_spi_write_half_duplex() 218 while (tx_len > 0) { in mt7621_spi_write_half_duplex() 234 tx_len in mt7621_spi_write_half_duplex() 204 mt7621_spi_write_half_duplex(struct mt7621_spi *rs, int tx_len, const u8 *buf) mt7621_spi_write_half_duplex() argument [all...] |
H A D | spi-microchip-core.c | 107 int tx_len; member 214 fifo_max = min(spi->tx_len, FIFO_DEPTH); in mchp_corespi_write_fifo() 223 spi->tx_len -= i; in mchp_corespi_write_fifo() 389 if (spi->tx_len) in mchp_corespi_interrupt() 404 spi->rx_len, spi->tx_len); in mchp_corespi_interrupt() 412 spi->rx_len, spi->tx_len); in mchp_corespi_interrupt() 475 spi->tx_len = xfer->len; in mchp_corespi_transfer_one() 479 mchp_corespi_set_xfer_size(spi, (spi->tx_len > FIFO_DEPTH) in mchp_corespi_transfer_one() 480 ? FIFO_DEPTH : spi->tx_len); in mchp_corespi_transfer_one() 482 if (spi->tx_len) in mchp_corespi_transfer_one() [all...] |
H A D | spi-bcm2835aux.c | 93 int tx_len; member 185 count = min(bs->tx_len, 3); in bcm2835aux_wr_fifo() 196 bs->tx_len -= count; in bcm2835aux_wr_fifo() 200 if (bs->tx_len) in bcm2835aux_wr_fifo() 224 while (bs->tx_len && in bcm2835aux_spi_transfer_helper() 245 if (!bs->tx_len) { in bcm2835aux_spi_interrupt() 289 while ((bs->tx_len) && in bcm2835aux_spi_transfer_one_irq() 328 bs->tx_len, bs->rx_len); in bcm2835aux_spi_transfer_one_poll() 379 bs->tx_len = tfr->len; in bcm2835aux_spi_transfer_one()
|
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_lef in mtk_nor_adj_prg_size() local 521 int tx_len, prg_len; mtk_nor_spi_mem_prg() local [all...] |
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/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 in wdt87xx_get_feature() 321 int tx_len = 0; wdt87xx_set_feature() local [all...] |
/kernel/linux/linux-6.6/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 in wdt87xx_get_feature() 321 int tx_len = 0; wdt87xx_set_feature() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
H A D | drm_mipi_dsi.c | 482 packet->header[1] = (msg->tx_len >> 0) & 0xff; in mipi_dsi_create_packet() 483 packet->header[2] = (msg->tx_len >> 8) & 0xff; in mipi_dsi_create_packet() 485 packet->payload_length = msg->tx_len; in mipi_dsi_create_packet() 490 packet->header[1] = (msg->tx_len > 0) ? tx[0] : 0; in mipi_dsi_create_packet() 491 packet->header[2] = (msg->tx_len > 1) ? tx[1] : 0; in mipi_dsi_create_packet() 512 .tx_len = 2, in mipi_dsi_shutdown_peripheral() 532 .tx_len = 2, in mipi_dsi_turn_on_peripheral() 556 .tx_len = sizeof(tx), in mipi_dsi_set_maximum_return_packet_size() 582 .tx_len = sizeof(tx), in mipi_dsi_compression_mode() 606 .tx_len in mipi_dsi_picture_parameter_set() [all...] |
/kernel/linux/linux-5.10/drivers/bluetooth/ |
H A D | hci_mrvl.c | 41 unsigned int tx_len; member 182 mrvl->tx_len = le16_to_cpu(pkt->lhs); in mrvl_recv_fw_req() 311 mrvl->tx_len); in mrvl_load_firmware() 318 if (!mrvl->tx_len) { in mrvl_load_firmware() 327 if (fw_ptr + mrvl->tx_len > fw_max) { in mrvl_load_firmware() 328 mrvl->tx_len = fw_max - fw_ptr; in mrvl_load_firmware() 329 bt_dev_dbg(hdev, "Adjusting tx_len to %d", in mrvl_load_firmware() 330 mrvl->tx_len); in mrvl_load_firmware() 333 skb = bt_skb_alloc(mrvl->tx_len, GFP_KERNEL); in mrvl_load_firmware() 341 skb_put_data(skb, fw_ptr, mrvl->tx_len); in mrvl_load_firmware() [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/st/cw1200/ |
H A D | bh.c | 354 size_t tx_len; in cw1200_bh_tx_helper() local 373 ret = wsm_get_tx(priv, &data, &tx_len, tx_burst); in cw1200_bh_tx_helper() 382 BUG_ON(tx_len < sizeof(*wsm)); in cw1200_bh_tx_helper() 383 BUG_ON(__le16_to_cpu(wsm->len) != tx_len); in cw1200_bh_tx_helper() 387 tx_len = priv->hwbus_ops->align_size( in cw1200_bh_tx_helper() 388 priv->hwbus_priv, tx_len); in cw1200_bh_tx_helper() 391 if (WARN_ON_ONCE(tx_len > EFFECTIVE_BUF_SIZE)) in cw1200_bh_tx_helper() 392 pr_debug("Write aligned len: %zu\n", tx_len); in cw1200_bh_tx_helper() 397 if (WARN_ON(cw1200_data_write(priv, data, tx_len))) { in cw1200_bh_tx_helper() 398 pr_err("tx blew up, len %zu\n", tx_len); in cw1200_bh_tx_helper() [all...] |
/kernel/linux/linux-6.6/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() 339 bt_dev_dbg(hdev, "Adjusting tx_len to %d", 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() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/st/cw1200/ |
H A D | bh.c | 343 size_t tx_len; in cw1200_bh_tx_helper() local 362 ret = wsm_get_tx(priv, &data, &tx_len, tx_burst); in cw1200_bh_tx_helper() 371 BUG_ON(tx_len < sizeof(*wsm)); in cw1200_bh_tx_helper() 372 BUG_ON(__le16_to_cpu(wsm->len) != tx_len); in cw1200_bh_tx_helper() 376 tx_len = priv->hwbus_ops->align_size( in cw1200_bh_tx_helper() 377 priv->hwbus_priv, tx_len); in cw1200_bh_tx_helper() 380 if (WARN_ON_ONCE(tx_len > EFFECTIVE_BUF_SIZE)) in cw1200_bh_tx_helper() 381 pr_debug("Write aligned len: %zu\n", tx_len); in cw1200_bh_tx_helper() 386 if (WARN_ON(cw1200_data_write(priv, data, tx_len))) { in cw1200_bh_tx_helper() 387 pr_err("tx blew up, len %zu\n", tx_len); in cw1200_bh_tx_helper() [all...] |
/kernel/linux/linux-5.10/drivers/staging/rtl8192e/rtl8192e/ |
H A D | rtl_eeprom.c | 39 static u16 _rtl92e_eeprom_xfer(struct net_device *dev, u16 data, int tx_len) in _rtl92e_eeprom_xfer() argument 47 while (tx_len--) { in _rtl92e_eeprom_xfer() 49 (data >> tx_len) & 0x1); in _rtl92e_eeprom_xfer()
|
/kernel/linux/linux-6.6/drivers/staging/rtl8192e/rtl8192e/ |
H A D | rtl_eeprom.c | 39 static u16 _rtl92e_eeprom_xfer(struct net_device *dev, u16 data, int tx_len) in _rtl92e_eeprom_xfer() argument 47 while (tx_len--) { in _rtl92e_eeprom_xfer() 49 (data >> tx_len) & 0x1); in _rtl92e_eeprom_xfer()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/ |
H A D | drm_mipi_dsi.c | 564 packet->header[1] = (msg->tx_len >> 0) & 0xff; in mipi_dsi_create_packet() 565 packet->header[2] = (msg->tx_len >> 8) & 0xff; in mipi_dsi_create_packet() 567 packet->payload_length = msg->tx_len; in mipi_dsi_create_packet() 572 packet->header[1] = (msg->tx_len > 0) ? tx[0] : 0; in mipi_dsi_create_packet() 573 packet->header[2] = (msg->tx_len > 1) ? tx[1] : 0; in mipi_dsi_create_packet() 594 .tx_len = 2, in mipi_dsi_shutdown_peripheral() 614 .tx_len = 2, in mipi_dsi_turn_on_peripheral() 638 .tx_len = sizeof(tx), in mipi_dsi_set_maximum_return_packet_size() 664 .tx_len = sizeof(tx), in mipi_dsi_compression_mode() 688 .tx_len in mipi_dsi_picture_parameter_set() [all...] |