Home
last modified time | relevance | path

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

12345

/openbmc/u-boot/drivers/spi/
H A Dmt7621_spi.c45 int tx_len; member
183 if (rs->tx_len > 4) in mt7621_spi_xfer()
184 chunk_size -= rs->tx_len; in mt7621_spi_xfer()
192 chunk_size + rs->tx_len); in mt7621_spi_xfer()
202 rs->data[rs->tx_len / 4] |= in mt7621_spi_xfer()
203 tx_buf[i] << (8 * (rs->tx_len & 3)); in mt7621_spi_xfer()
209 if (rs->tx_len) { in mt7621_spi_xfer()
211 if (rs->tx_len < 4) in mt7621_spi_xfer()
222 if (rs->tx_len > 4) in mt7621_spi_xfer()
223 val |= (rs->tx_len - 4) * 8; in mt7621_spi_xfer()
[all …]
H A Dbcmstb_spi.c267 uint tx_len = len; in bcmstb_spi_xfer() local
351 while (priv->tx_slot < NUM_CDRAM && tx_len > 0) { in bcmstb_spi_xfer()
354 out_bytes ? out_bytes[len - tx_len] : 0xff); in bcmstb_spi_xfer()
355 writel(out_bytes ? out_bytes[len - tx_len] : 0xff, in bcmstb_spi_xfer()
360 tx_len--; in bcmstb_spi_xfer()
375 bcmstb_spi_submit(priv, tx_len == 0); in bcmstb_spi_xfer()
/openbmc/linux/drivers/net/wireless/ath/ath6kl/
H A Dbmi.c175 u32 len_remain, tx_len; in ath6kl_bmi_write() local
210 tx_len = len_remain; 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()
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
435 memcpy(&(ar->bmi.cmd_buf[offset]), &tx_len, sizeof(tx_len)); in ath6kl_bmi_lz_data()
438 tx_len); in ath6kl_bmi_lz_data()
439 offset += tx_len; in ath6kl_bmi_lz_data()
[all …]
/openbmc/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()
300 tx_buf[tx_len++] = 0x23; in wdt87xx_get_feature()
301 tx_buf[tx_len++] = 0x00; in wdt87xx_get_feature()
321 int tx_len = 0; in wdt87xx_set_feature() local
325 tx_buf[tx_len++] = 0x22; in wdt87xx_set_feature()
326 tx_buf[tx_len++] = 0x00; in wdt87xx_set_feature()
335 tx_buf[tx_len++] = 0x23; in wdt87xx_set_feature()
336 tx_buf[tx_len++] = 0x00; in wdt87xx_set_feature()
[all …]
/openbmc/linux/drivers/spi/
H A Dspi-mt7621.c160 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() argument
218 while (tx_len > 0) { in mt7621_spi_write_half_duplex()
234 tx_len -= 1; in mt7621_spi_write_half_duplex()
H A Dspi-bcm2835aux.c93 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 Dspi-microchip-core.c107 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()
H A Dspi-xlp.c94 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 Dspi-mtk-nor.c210 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()
233 if (tx_len > MTK_NOR_REG_PRGDATA_MAX + 1) 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
261 tx_len = op->cmd.nbytes + op->addr.nbytes; in mtk_nor_adj_prg_size()
263 tx_len += op->dummy.nbytes; in mtk_nor_adj_prg_size()
521 int tx_len, prg_len; in mtk_nor_spi_mem_prg() local
[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-microchip-core-qspi.c122 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()
415 qspi->tx_len = op->cmd.nbytes; in mchp_coreqspi_exec_op()
426 qspi->tx_len = op->addr.nbytes; in mchp_coreqspi_exec_op()
436 qspi->tx_len = op->data.nbytes; in mchp_coreqspi_exec_op()
442 qspi->tx_len = 0; in mchp_coreqspi_exec_op()
H A Dspi-dw-core.c122 rxtx_gap = dws->fifo_len - (dws->rx_len - dws->tx_len); in dw_spi_tx_max()
124 return min3((u32)dws->tx_len, tx_room, rxtx_gap); in dw_spi_tx_max()
150 --dws->tx_len; in dw_writer()
242 if (!dws->tx_len) in dw_spi_transfer_handler()
364 level = min_t(unsigned int, dws->fifo_len / 2, dws->tx_len); in dw_spi_irq_setup()
398 delay.value = nbits * (dws->rx_len - dws->tx_len); in dw_spi_poll_transfer()
429 dws->tx_len = transfer->len / dws->n_bytes; in dw_spi_transfer_one()
431 dws->rx_len = dws->tx_len; in dw_spi_transfer_one()
534 dws->tx_len = len; in dw_spi_init_mem_buf()
563 len = min(dws->fifo_len, dws->tx_len); in dw_spi_write_then_read()
[all …]
/openbmc/google-misc/subprojects/ncsid/src/
H A Dncsi_state_machine.cpp331 void StateMachine::run_test_fsm(size_t* tx_len) in run_test_fsm() argument
341 *tx_len = poll_simple(ncsi_fsm_poll_test); in run_test_fsm()
360 size_t tx_len = 0; in run() local
365 tx_len = poll_l2_config(); in run()
370 run_test_fsm(&tx_len); in run()
377 tx_len = poll_simple(ncsi_fsm_poll_l3l4_config); in run()
381 run_test_fsm(&tx_len); in run()
393 if (tx_len) in run()
397 sock_io_->write(ncsi_buf_.data, tx_len); in run()
/openbmc/linux/drivers/iio/dac/
H A Dad5686-spi.c20 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()
/openbmc/linux/drivers/bluetooth/
H A Dhci_mrvl.c43 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()
/openbmc/qemu/hw/net/
H A Dopencores_eth.c490 unsigned tx_len = len; local
494 tx_len = GET_REGFIELD(s, PACKETLEN, MINFL);
498 tx_len = GET_REGFIELD(s, PACKETLEN, MAXFL);
501 trace_open_eth_start_xmit(tx->buf_ptr, len, tx_len);
503 if (tx_len > sizeof(buffer)) {
504 buf = g_new(uint8_t, tx_len);
508 if (len > tx_len) {
509 len = tx_len;
512 if (tx_len > len) {
513 memset(buf + len, 0, tx_len - len);
[all …]
/openbmc/linux/drivers/net/wireless/st/cw1200/
H A Dbh.c343 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()
/openbmc/linux/drivers/staging/rtl8192e/rtl8192e/
H A Drtl_eeprom.c39 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()
/openbmc/u-boot/drivers/usb/gadget/
H A Daspeed_udc.c319 u16 tx_len; in aspeed_udc_ep0_queue() local
323 tx_len = ep->ep.maxpacket; in aspeed_udc_ep0_queue()
337 req->req.actual += tx_len; in aspeed_udc_ep0_queue()
338 writel(EP0_TX_LEN(tx_len), reg); in aspeed_udc_ep0_queue()
445 packet_len = tx_len; in aspeed_dma_descriptor_setup()
455 "tx_len", tx_len); in aspeed_dma_descriptor_setup()
497 u32 tx_len; in aspeed_udc_ep_dma_desc_mode() local
503 tx_len = max_req_size; in aspeed_udc_ep_dma_desc_mode()
520 tx_len, req); in aspeed_udc_ep_dma_desc_mode()
538 u16 tx_len; in aspeed_udc_ep_dma() local
[all …]
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_mipi_dsi.c564 packet->header[1] = (msg->tx_len >> 0) & 0xff; in mipi_dsi_create_packet()
567 packet->payload_length = msg->tx_len; 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 = sizeof(*pps), in mipi_dsi_picture_parameter_set()
715 .tx_len = size in mipi_dsi_generic_write()
759 .tx_len = num_params, in mipi_dsi_generic_read()
804 .tx_len = len in mipi_dsi_dcs_write_buffer()
[all …]
/openbmc/qemu/hw/sd/
H A Dpxa2xx_mmci.c61 uint32_t tx_len; member
77 && s->tx_len <= ARRAY_SIZE(s->tx_fifo) in pxa2xx_mmci_vmstate_validate()
104 VMSTATE_UINT32(tx_len, PXA2xxMMCIState),
186 while (s->bytesleft && s->tx_len) { in pxa2xx_mmci_fifo_update()
189 s->tx_len --; in pxa2xx_mmci_fifo_update()
224 s->tx_len = 0; in pxa2xx_mmci_wakequeues()
428 s->tx_len = 0; in pxa2xx_mmci_write()
453 while (size-- && s->tx_len < 0x20) in pxa2xx_mmci_write()
454 s->tx_fifo[(s->tx_start + (s->tx_len ++)) & 0x1f] = in pxa2xx_mmci_write()
535 s->tx_len = 0; in pxa2xx_mmci_reset()
/openbmc/dbus-sensors/include/linux/
H A Dpeci-ioctl.h102 __u8 tx_len; member
274 __u8 tx_len; member
322 __u8 tx_len; member
418 __u8 tx_len; member
478 __u8 tx_len; member
555 __u8 tx_len; member
/openbmc/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);
/openbmc/linux/drivers/usb/gadget/udc/
H A Daspeed_udc.c475 u16 tx_len, struct ast_udc_request *req) in ast_dma_descriptor_setup() argument
489 chunk = tx_len; in ast_dma_descriptor_setup()
494 "tx_len", tx_len); in ast_dma_descriptor_setup()
532 u32 tx_len; in ast_udc_epn_kick() local
539 req, tx_len, ep->dir_in); in ast_udc_epn_kick()
553 u32 tx_len; in ast_udc_epn_kick_desc() local
568 tx_len, req)) in ast_udc_epn_kick_desc()
569 req->actual_dma_length += tx_len; in ast_udc_epn_kick_desc()
586 u32 tx_len; in ast_udc_ep0_queue() local
600 "tx_len", tx_len, in ast_udc_ep0_queue()
[all …]
/openbmc/linux/drivers/net/ethernet/amd/xgbe/
H A 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()

12345