Home
last modified time | relevance | path

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

123

/Linux-v4.19/drivers/net/wireless/ath/ath6kl/
Dbmi.c175 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 …]
/Linux-v4.19/drivers/input/touchscreen/
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-v4.19/drivers/bluetooth/
Dhci_mrvl.c53 unsigned int tx_len; member
172 mrvl->tx_len = le16_to_cpu(pkt->lhs); in mrvl_recv_fw_req()
301 mrvl->tx_len); in mrvl_load_firmware()
308 if (!mrvl->tx_len) { in mrvl_load_firmware()
317 if (fw_ptr + mrvl->tx_len > fw_max) { in mrvl_load_firmware()
318 mrvl->tx_len = fw_max - fw_ptr; in mrvl_load_firmware()
320 mrvl->tx_len); in mrvl_load_firmware()
323 skb = bt_skb_alloc(mrvl->tx_len, GFP_KERNEL); in mrvl_load_firmware()
331 skb_put_data(skb, fw_ptr, mrvl->tx_len); in mrvl_load_firmware()
332 fw_ptr += mrvl->tx_len; in mrvl_load_firmware()
/Linux-v4.19/drivers/spi/
Dspi-bcm2835aux.c102 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()
201 while (bs->tx_len && in bcm2835aux_spi_interrupt()
217 if (!bs->tx_len) { in bcm2835aux_spi_interrupt()
259 while ((bs->tx_len) && in bcm2835aux_spi_transfer_one_irq()
291 if ((bs->tx_len) && (!(stat & BCM2835_AUX_SPI_STAT_TX_FULL))) { in bcm2835aux_spi_transfer_one_poll()
311 bs->tx_len, bs->rx_len); in bcm2835aux_spi_transfer_one_poll()
361 bs->tx_len = tfr->len; in bcm2835aux_spi_transfer_one()
Dspi-efm32.c87 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()
Dspi-xlp.c103 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()
Dspi-mpc512x-psc.c158 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()
Dspi-stm32.c172 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 …]
Dspi-sun6i.c208 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()
Dspi-sun4i.c215 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()
/Linux-v4.19/drivers/iio/dac/
Dad5686-spi.c19 u8 tx_len, *buf; in ad5686_spi_write() local
26 tx_len = 3; in ad5686_spi_write()
33 tx_len = 3; in ad5686_spi_write()
39 return spi_write(spi, buf, tx_len); in ad5686_spi_write()
/Linux-v4.19/drivers/net/wireless/st/cw1200/
Dbh.c357 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()
/Linux-v4.19/drivers/staging/mt7621-spi/
Dspi-mt7621.c185 int tx_len = rs->pending_write; in mt7621_spi_read_half_duplex() local
189 while (rx_len || tx_len) { in mt7621_spi_read_half_duplex()
191 u32 val = (min(tx_len, 4) * 8) << 24; in mt7621_spi_read_half_duplex()
194 if (tx_len > 4) in mt7621_spi_read_half_duplex()
195 val |= (tx_len - 4) * 8; in mt7621_spi_read_half_duplex()
199 tx_len = 0; in mt7621_spi_read_half_duplex()
223 int tx_len, const u8 *buf) in mt7621_spi_write_half_duplex() argument
236 while (tx_len > 0) { in mt7621_spi_write_half_duplex()
252 tx_len -= 1; in mt7621_spi_write_half_duplex()
/Linux-v4.19/drivers/staging/rtl8192e/rtl8192e/
Drtl_eeprom.c50 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()
/Linux-v4.19/drivers/gpu/drm/
Ddrm_mipi_dsi.c471 packet->header[1] = (msg->tx_len >> 0) & 0xff; in mipi_dsi_create_packet()
472 packet->header[2] = (msg->tx_len >> 8) & 0xff; in mipi_dsi_create_packet()
474 packet->payload_length = msg->tx_len; in mipi_dsi_create_packet()
479 packet->header[1] = (msg->tx_len > 0) ? tx[0] : 0; in mipi_dsi_create_packet()
480 packet->header[2] = (msg->tx_len > 1) ? tx[1] : 0; in mipi_dsi_create_packet()
501 .tx_len = 2, in mipi_dsi_shutdown_peripheral()
521 .tx_len = 2, in mipi_dsi_turn_on_peripheral()
545 .tx_len = sizeof(tx), in mipi_dsi_set_maximum_return_packet_size()
572 .tx_len = size in mipi_dsi_generic_write()
616 .tx_len = num_params, in mipi_dsi_generic_read()
[all …]
/Linux-v4.19/drivers/net/ethernet/amd/xgbe/
Dxgbe-i2c.c226 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()
/Linux-v4.19/drivers/net/can/spi/
Dhi311x.c166 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 …]
Dmcp251x.c257 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()
759 priv->tx_len = 1 + frame->can_dlc; in mcp251x_tx_work_handler()
920 net->stats.tx_bytes += priv->tx_len - 1; in mcp251x_can_ist()
922 if (priv->tx_len) { in mcp251x_can_ist()
924 priv->tx_len = 0; in mcp251x_can_ist()
952 priv->tx_len = 0; in mcp251x_open()
/Linux-v4.19/drivers/leds/
Dleds-ipaq-micro.c41 .tx_len = 4, in micro_leds_brightness_set()
78 .tx_len = 4, in micro_leds_blink_set()
/Linux-v4.19/drivers/media/dvb-frontends/
Dsp8870.c104 int tx_len; in sp8870_firmware_upload() local
124tx_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()
/Linux-v4.19/drivers/gpu/drm/sun4i/
Dsun6i_mipi_dsi.c723 pkt |= ((msg->tx_len + 1) & 0xffff) << 8; in sun6i_dsi_dcs_build_pkt_hdr()
724 pkt |= (((msg->tx_len + 1) >> 8) & 0xffff) << 16; in sun6i_dsi_dcs_build_pkt_hdr()
727 if (msg->tx_len > 1) in sun6i_dsi_dcs_build_pkt_hdr()
746 return msg->tx_len; in sun6i_dsi_dcs_write_short()
759 bounce = kzalloc(msg->tx_len + sizeof(crc), GFP_KERNEL); in sun6i_dsi_dcs_write_long()
763 memcpy(bounce, msg->tx_buf, msg->tx_len); in sun6i_dsi_dcs_write_long()
764 len += msg->tx_len; in sun6i_dsi_dcs_write_long()
766 crc = sun6i_dsi_crc_compute(bounce, msg->tx_len); in sun6i_dsi_dcs_write_long()
767 memcpy((u8 *)bounce + msg->tx_len, &crc, sizeof(crc)); in sun6i_dsi_dcs_write_long()
787 return msg->tx_len; in sun6i_dsi_dcs_write_long()
/Linux-v4.19/drivers/firmware/
Darm_scpi.c237 unsigned int tx_len; member
441 memcpy_toio(ch->tx_payload, t->tx_buf, t->tx_len); in scpi_tx_prepare()
443 memcpy_toio(mem->payload, t->tx_buf, t->tx_len); in scpi_tx_prepare()
481 static int scpi_send_message(u8 idx, void *tx_buf, unsigned int tx_len, in scpi_send_message() argument
507 msg->cmd = PACK_LEGACY_SCPI_CMD(cmd, tx_len); in scpi_send_message()
511 msg->cmd = PACK_SCPI_CMD(cmd, tx_len); in scpi_send_message()
514 msg->tx_len = tx_len; in scpi_send_message()
/Linux-v4.19/drivers/i2c/busses/
Di2c-tegra-bpmp.c188 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()
/Linux-v4.19/drivers/input/rmi4/
Drmi_spi.c117 int tx_len, u8 *rx_buf, int rx_len) in rmi_spi_xfer() argument
145 total_tx_len = cmd_len + tx_len; in rmi_spi_xfer()
181 rmi_spi->tx_buf[3] = tx_len; in rmi_spi_xfer()
186 memcpy(&rmi_spi->tx_buf[cmd_len], tx_buf, tx_len); in rmi_spi_xfer()
/Linux-v4.19/drivers/mfd/
Dipaq-micro.c45 checksum = ((msg->id & 0x0f) << 4) | (msg->tx_len & 0x0f); in ipaq_micro_trigger_tx()
48 for (i = 0; i < msg->tx_len; i++) { in ipaq_micro_trigger_tx()
67 dev_dbg(micro->dev, "TX msg: %02x, %d bytes\n", msg->id, msg->tx_len); in ipaq_micro_tx_msg()
222 msg.tx_len = 2; in ipaq_micro_eeprom_read()

123