/drivers/net/wireless/ath/ath6kl/ |
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; in ath6kl_bmi_lz_data() local 429 tx_len = (len_remain < (ar->bmi.max_data_size - header)) ? in ath6kl_bmi_lz_data() [all …]
|
/drivers/input/touchscreen/ |
D | wdt87xx_i2c.c | 283 size_t tx_len = 0; in wdt87xx_get_feature() local 291 tx_buf[tx_len++] = 0x22; in wdt87xx_get_feature() 292 tx_buf[tx_len++] = 0x00; in wdt87xx_get_feature() 294 tx_buf[tx_len++] = 0x30; in wdt87xx_get_feature() 295 tx_buf[tx_len++] = 0x02; in wdt87xx_get_feature() 296 tx_buf[tx_len++] = buf[CMD_REPORT_ID_OFFSET]; in wdt87xx_get_feature() 298 tx_buf[tx_len++] = 0x30 | buf[CMD_REPORT_ID_OFFSET]; in wdt87xx_get_feature() 299 tx_buf[tx_len++] = 0x02; in wdt87xx_get_feature() 301 tx_buf[tx_len++] = 0x23; in wdt87xx_get_feature() 302 tx_buf[tx_len++] = 0x00; in wdt87xx_get_feature() [all …]
|
/drivers/bluetooth/ |
D | hci_mrvl.c | 53 unsigned int tx_len; member 175 mrvl->tx_len = le16_to_cpu(pkt->lhs); in mrvl_recv_fw_req() 304 mrvl->tx_len); in mrvl_load_firmware() 311 if (!mrvl->tx_len) { in mrvl_load_firmware() 320 if (fw_ptr + mrvl->tx_len > fw_max) { in mrvl_load_firmware() 321 mrvl->tx_len = fw_max - fw_ptr; in mrvl_load_firmware() 323 mrvl->tx_len); in mrvl_load_firmware() 326 skb = bt_skb_alloc(mrvl->tx_len, GFP_KERNEL); in mrvl_load_firmware() 334 skb_put_data(skb, fw_ptr, mrvl->tx_len); in mrvl_load_firmware() 335 fw_ptr += mrvl->tx_len; in mrvl_load_firmware()
|
D | btmrvl_sdio.c | 453 u32 tx_len; in btmrvl_sdio_download_helper() local 483 tx_len = (FIRMWARE_TRANSFER_NBLOCK * SDIO_BLOCK_SIZE) in btmrvl_sdio_download_helper() 500 if (helperlen - hlprblknow < tx_len) in btmrvl_sdio_download_helper() 501 tx_len = helperlen - hlprblknow; in btmrvl_sdio_download_helper() 504 helperbuf[0] = ((tx_len & 0x000000ff) >> 0); in btmrvl_sdio_download_helper() 505 helperbuf[1] = ((tx_len & 0x0000ff00) >> 8); in btmrvl_sdio_download_helper() 506 helperbuf[2] = ((tx_len & 0x00ff0000) >> 16); in btmrvl_sdio_download_helper() 507 helperbuf[3] = ((tx_len & 0xff000000) >> 24); in btmrvl_sdio_download_helper() 510 tx_len); in btmrvl_sdio_download_helper() 521 hlprblknow += tx_len; in btmrvl_sdio_download_helper()
|
/drivers/spi/ |
D | spi-bcm2835aux.c | 102 int tx_len; member 152 count = min(bs->tx_len, 3); in bcm2835aux_wr_fifo() 163 bs->tx_len -= count; in bcm2835aux_wr_fifo() 167 if (bs->tx_len) in bcm2835aux_wr_fifo() 191 while (bs->tx_len && in bcm2835aux_spi_transfer_helper() 212 if (!bs->tx_len) { in bcm2835aux_spi_interrupt() 253 while ((bs->tx_len) && in bcm2835aux_spi_transfer_one_irq() 289 bs->tx_len, bs->rx_len); in bcm2835aux_spi_transfer_one_poll() 340 bs->tx_len = tfr->len; in bcm2835aux_spi_transfer_one()
|
D | spi-efm32.c | 87 unsigned tx_len, rx_len; member 157 ddata->tx_len--; in efm32_spi_tx_u8() 177 while (ddata->tx_len && in efm32_spi_filltx() 178 ddata->tx_len + 2 > ddata->rx_len && in efm32_spi_filltx() 196 ddata->tx_len = ddata->rx_len = in efm32_spi_txrx_bufs() 211 ret = t->len - max(ddata->tx_len, ddata->rx_len); in efm32_spi_txrx_bufs() 258 __func__, ddata->tx_len, ddata->rx_len, in efm32_spi_txirq() 267 __func__, ddata->tx_len, ddata->rx_len); in efm32_spi_txirq() 269 if (!ddata->tx_len) { in efm32_spi_txirq()
|
D | spi-xlp.c | 103 int tx_len; /* tx xfer length */ member 217 while (xspi->tx_len && (txfifo_cnt < XLP_SPI_FIFO_SIZE)) { in xlp_spi_fill_txfifo() 220 nbytes = min(xspi->tx_len, 4); in xlp_spi_fill_txfifo() 225 xspi->tx_len -= nbytes; in xlp_spi_fill_txfifo() 242 if (xspi->tx_len) in xlp_spi_interrupt() 287 xs->tx_len = (xs->tx_buf == NULL) ? 0 : xfer_len; in xlp_spi_xfer_block() 292 if (xs->tx_len) in xlp_spi_xfer_block() 302 if (xs->tx_len) in xlp_spi_xfer_block()
|
D | spi-mpc512x-psc.c | 158 size_t tx_len = t->len; in mpc512x_psc_spi_transfer_rxtx() local 166 while (rx_len || tx_len) { in mpc512x_psc_spi_transfer_rxtx() 178 txcount = min(fifosz, tx_len); in mpc512x_psc_spi_transfer_rxtx() 187 if (tx_len == EOFBYTE && t->cs_change) in mpc512x_psc_spi_transfer_rxtx() 191 tx_len--; in mpc512x_psc_spi_transfer_rxtx() 235 if (tx_len) in mpc512x_psc_spi_transfer_rxtx() 268 if (!tx_len && rx_len && !rxtries) { in mpc512x_psc_spi_transfer_rxtx() 284 if (!tx_len && !rx_len) { in mpc512x_psc_spi_transfer_rxtx()
|
D | spi-stm32.c | 172 int tx_len; member 317 while ((spi->tx_len > 0) && in stm32_spi_write_txfifo() 319 u32 offs = spi->cur_xferlen - spi->tx_len; in stm32_spi_write_txfifo() 321 if (spi->tx_len >= sizeof(u32)) { in stm32_spi_write_txfifo() 325 spi->tx_len -= sizeof(u32); in stm32_spi_write_txfifo() 326 } else if (spi->tx_len >= sizeof(u16)) { in stm32_spi_write_txfifo() 330 spi->tx_len -= sizeof(u16); in stm32_spi_write_txfifo() 335 spi->tx_len -= sizeof(u8); in stm32_spi_write_txfifo() 339 dev_dbg(spi->dev, "%s: %d bytes left\n", __func__, spi->tx_len); in stm32_spi_write_txfifo() 549 if (!spi->cur_usedma && (spi->tx_buf && (spi->tx_len > 0))) in stm32_spi_irq() [all …]
|
D | spi-sun6i.c | 208 unsigned int tx_len = 0; in sun6i_spi_transfer_one() local 309 tx_len = tfr->len; in sun6i_spi_transfer_one() 313 sun6i_spi_write(sspi, SUN6I_XMIT_CNT_REG, SUN6I_XMIT_CNT(tx_len)); in sun6i_spi_transfer_one() 315 SUN6I_BURST_CTL_CNT_STC(tx_len)); in sun6i_spi_transfer_one() 324 if (tx_len > sspi->fifo_depth) in sun6i_spi_transfer_one()
|
D | spi-dln2.c | 430 unsigned tx_len; in dln2_spi_write_one() local 443 tx_len = sizeof(*tx) + data_len - DLN2_SPI_MAX_XFER_SIZE; in dln2_spi_write_one() 444 return dln2_transfer_tx(dln2->pdev, DLN2_SPI_WRITE, tx, tx_len); in dln2_spi_write_one() 505 unsigned tx_len, rx_len; in dln2_spi_read_write_one() local 527 tx_len = sizeof(*tx) + data_len - DLN2_SPI_MAX_XFER_SIZE; in dln2_spi_read_write_one() 530 ret = dln2_transfer(dln2->pdev, DLN2_SPI_READ_WRITE, tx, tx_len, in dln2_spi_read_write_one()
|
D | spi-bcm2835.c | 89 int tx_len; member 121 while ((bs->tx_len) && in bcm2835_wr_fifo() 125 bs->tx_len--; in bcm2835_wr_fifo() 514 bs->tx_len, bs->rx_len); in bcm2835_spi_transfer_one_poll() 573 bs->tx_len = tfr->len; in bcm2835_spi_transfer_one()
|
D | spi-sun4i.c | 215 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()
|
/drivers/net/wireless/st/cw1200/ |
D | bh.c | 357 size_t tx_len; in cw1200_bh_tx_helper() local 376 ret = wsm_get_tx(priv, &data, &tx_len, tx_burst); in cw1200_bh_tx_helper() 385 BUG_ON(tx_len < sizeof(*wsm)); in cw1200_bh_tx_helper() 386 BUG_ON(__le16_to_cpu(wsm->len) != tx_len); in cw1200_bh_tx_helper() 390 tx_len = priv->hwbus_ops->align_size( in cw1200_bh_tx_helper() 391 priv->hwbus_priv, tx_len); in cw1200_bh_tx_helper() 394 if (WARN_ON_ONCE(tx_len > EFFECTIVE_BUF_SIZE)) in cw1200_bh_tx_helper() 395 pr_debug("Write aligned len: %zu\n", tx_len); in cw1200_bh_tx_helper() 400 if (WARN_ON(cw1200_data_write(priv, data, tx_len))) { in cw1200_bh_tx_helper() 401 pr_err("tx blew up, len %zu\n", tx_len); in cw1200_bh_tx_helper()
|
/drivers/gpu/drm/ |
D | drm_mipi_dsi.c | 469 packet->header[1] = (msg->tx_len >> 0) & 0xff; in mipi_dsi_create_packet() 470 packet->header[2] = (msg->tx_len >> 8) & 0xff; in mipi_dsi_create_packet() 472 packet->payload_length = msg->tx_len; in mipi_dsi_create_packet() 477 packet->header[1] = (msg->tx_len > 0) ? tx[0] : 0; in mipi_dsi_create_packet() 478 packet->header[2] = (msg->tx_len > 1) ? tx[1] : 0; in mipi_dsi_create_packet() 499 .tx_len = 2, in mipi_dsi_shutdown_peripheral() 518 .tx_len = 2, in mipi_dsi_turn_on_peripheral() 541 .tx_len = sizeof(tx), in mipi_dsi_set_maximum_return_packet_size() 567 .tx_len = size in mipi_dsi_generic_write() 611 .tx_len = num_params, in mipi_dsi_generic_read() [all …]
|
/drivers/staging/rtl8192e/rtl8192e/ |
D | rtl_eeprom.c | 50 static u16 _rtl92e_eeprom_xfer(struct net_device *dev, u16 data, int tx_len) in _rtl92e_eeprom_xfer() argument 58 while (tx_len--) { in _rtl92e_eeprom_xfer() 60 (data >> tx_len) & 0x1); in _rtl92e_eeprom_xfer()
|
/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-i2c.c | 226 while (tx_slots && state->tx_len) { in xgbe_i2c_write() 232 if (state->tx_len == 1) in xgbe_i2c_write() 238 state->tx_len--; in xgbe_i2c_write() 242 if (!state->tx_len) in xgbe_i2c_write() 396 state->tx_len = op->len; in xgbe_i2c_xfer()
|
/drivers/net/can/spi/ |
D | hi311x.c | 166 int tx_len; member 188 if (priv->tx_skb || priv->tx_len) in hi3110_clean() 192 if (priv->tx_len) in hi3110_clean() 195 priv->tx_len = 0; in hi3110_clean() 389 if (priv->tx_skb || priv->tx_len) { in hi3110_hard_start_xmit() 606 priv->tx_len = 1 + frame->can_dlc; in hi3110_tx_work_handler() 741 if (priv->tx_len && statf & HI3110_STAT_TXMTY) { in hi3110_can_ist() 743 net->stats.tx_bytes += priv->tx_len - 1; in hi3110_can_ist() 745 if (priv->tx_len) { in hi3110_can_ist() 747 priv->tx_len = 0; in hi3110_can_ist() [all …]
|
D | mcp251x.c | 258 int tx_len; member 289 if (priv->tx_skb || priv->tx_len) in mcp251x_clean() 293 if (priv->tx_len) in mcp251x_clean() 296 priv->tx_len = 0; in mcp251x_clean() 521 if (priv->tx_skb || priv->tx_len) { in mcp251x_hard_start_xmit() 769 priv->tx_len = 1 + frame->can_dlc; in mcp251x_tx_work_handler() 929 net->stats.tx_bytes += priv->tx_len - 1; in mcp251x_can_ist() 931 if (priv->tx_len) { in mcp251x_can_ist() 933 priv->tx_len = 0; in mcp251x_can_ist() 961 priv->tx_len = 0; in mcp251x_open()
|
/drivers/media/dvb-frontends/ |
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 : SP8870_FIRMWARE_S… in sp8870_firmware_upload() 128 memcpy(&tx_buf[2], fw_buf + fw_pos, tx_len); in sp8870_firmware_upload() 132 msg.len = tx_len + 2; in sp8870_firmware_upload() 138 fw_pos += tx_len; in sp8870_firmware_upload()
|
/drivers/gpu/drm/bridge/synopsys/ |
D | dw-mipi-dsi.c | 352 if (msg->tx_len > 0) in dw_mipi_dsi_dcs_short_write() 354 if (msg->tx_len > 1) in dw_mipi_dsi_dcs_short_write() 357 if (msg->tx_len > 2) { in dw_mipi_dsi_dcs_short_write() 359 msg->tx_len); in dw_mipi_dsi_dcs_short_write() 371 int len = msg->tx_len, pld_data_bytes = sizeof(u32), ret; in dw_mipi_dsi_dcs_long_write() 372 u32 hdr_val = GEN_HDATA(msg->tx_len) | GEN_HTYPE(msg->type); in dw_mipi_dsi_dcs_long_write() 376 if (msg->tx_len < 3) { in dw_mipi_dsi_dcs_long_write() 378 msg->tx_len); in dw_mipi_dsi_dcs_long_write()
|
/drivers/leds/ |
D | leds-ipaq-micro.c | 41 .tx_len = 4, in micro_leds_brightness_set() 78 .tx_len = 4, in micro_leds_blink_set()
|
/drivers/firmware/ |
D | arm_scpi.c | 252 unsigned int tx_len; member 466 memcpy_toio(ch->tx_payload, t->tx_buf, t->tx_len); in scpi_tx_prepare() 468 memcpy_toio(mem->payload, t->tx_buf, t->tx_len); in scpi_tx_prepare() 506 static int scpi_send_message(u8 idx, void *tx_buf, unsigned int tx_len, in scpi_send_message() argument 532 msg->cmd = PACK_LEGACY_SCPI_CMD(cmd, tx_len); in scpi_send_message() 536 msg->cmd = PACK_SCPI_CMD(cmd, tx_len); in scpi_send_message() 539 msg->tx_len = tx_len; in scpi_send_message()
|
/drivers/i2c/busses/ |
D | i2c-tegra-bpmp.c | 188 size_t tx_len = 0, rx_len = 0; in tegra_bpmp_i2c_msg_len_check() local 193 tx_len += SERIALI2C_HDR_SIZE + msgs[i].len; in tegra_bpmp_i2c_msg_len_check() 195 if (tx_len > TEGRA_I2C_IPC_MAX_IN_BUF_SIZE) in tegra_bpmp_i2c_msg_len_check()
|
/drivers/input/rmi4/ |
D | rmi_spi.c | 116 int tx_len, u8 *rx_buf, int rx_len) in rmi_spi_xfer() argument 144 total_tx_len = cmd_len + tx_len; in rmi_spi_xfer() 180 rmi_spi->tx_buf[3] = tx_len; in rmi_spi_xfer() 185 memcpy(&rmi_spi->tx_buf[cmd_len], tx_buf, tx_len); in rmi_spi_xfer()
|