/openbmc/libmctp/tests/ |
H A D | test_seq.c | 25 size_t rx_len; member 37 assert(ctx->rx_len + len <= sizeof(ctx->rx_data)); in test_rx() 39 memcpy(ctx->rx_data + ctx->rx_len, msg, len); in test_rx() 40 ctx->rx_len += len; in test_rx() 114 ctx->rx_len = 0; in run_one_test() 131 assert(ctx->rx_len == test->exp_rx_len); in run_one_test() 134 for (i = 0; i < (int)ctx->rx_len; i++) in run_one_test()
|
/openbmc/u-boot/drivers/net/ |
H A D | sunxi_emac.c | 169 s16 rx_len; member 412 int rx_len; in _sunxi_emac_eth_recv() local 452 rx_len = rxhdr.rx_len; in _sunxi_emac_eth_recv() 456 if (rx_len < 0x40) { in _sunxi_emac_eth_recv() 472 if (rx_len > EMAC_RX_BUFSIZE) { in _sunxi_emac_eth_recv() 473 printf("Received packet is too big (len=%d)\n", rx_len); in _sunxi_emac_eth_recv() 476 emac_inblk_32bit((void *)®s->rx_io_data, packet, rx_len); in _sunxi_emac_eth_recv() 477 return rx_len; in _sunxi_emac_eth_recv() 543 int rx_len; in sunxi_emac_eth_recv() local 545 rx_len = _sunxi_emac_eth_recv(priv, priv->rx_buf); in sunxi_emac_eth_recv() [all …]
|
/openbmc/linux/drivers/spi/ |
H A D | spi-dln2.c | 197 &rx, &rx_len); in dln2_spi_get_cs_num() 200 if (rx_len < sizeof(rx)) in dln2_spi_get_cs_num() 226 if (rx_len < sizeof(rx)) in dln2_spi_get_speed() 269 int rx_len = sizeof(rx); in dln2_spi_set_speed() local 275 &rx, &rx_len); in dln2_spi_set_speed() 278 if (rx_len < sizeof(rx)) in dln2_spi_set_speed() 337 if (rx_len < sizeof(*rx)) in dln2_spi_get_supported_frame_sizes() 473 rx, &rx_len); in dln2_spi_read_one() 503 unsigned tx_len, rx_len; in dln2_spi_read_write_one() local 526 rx_len = sizeof(*rx); in dln2_spi_read_write_one() [all …]
|
H A D | spi-bcm2835aux.c | 94 int rx_len; member 157 int count = min(bs->rx_len, 3); in bcm2835aux_rd_fifo() 173 bs->rx_len -= count; in bcm2835aux_rd_fifo() 219 for (; bs->rx_len && (stat & BCM2835_AUX_SPI_STAT_RX_LVL); in bcm2835aux_spi_transfer_helper() 252 if (!bs->rx_len) { in bcm2835aux_spi_interrupt() 318 while (bs->rx_len) { in bcm2835aux_spi_transfer_one_poll() 324 if (bs->rx_len && time_after(jiffies, timeout)) { in bcm2835aux_spi_transfer_one_poll() 328 bs->tx_len, bs->rx_len); in bcm2835aux_spi_transfer_one_poll() 380 bs->rx_len = tfr->len; in bcm2835aux_spi_transfer_one()
|
H A D | spi-mpc512x-psc.c | 149 size_t rx_len = t->len; in mpc512x_psc_spi_transfer_rxtx() local 156 while (rx_len || tx_len) { in mpc512x_psc_spi_transfer_rxtx() 211 rxcount = min(fifosz, rx_len); in mpc512x_psc_spi_transfer_rxtx() 216 rx_len--; in mpc512x_psc_spi_transfer_rxtx() 227 if (!rx_len) in mpc512x_psc_spi_transfer_rxtx() 258 if (!tx_len && rx_len && !rxtries) { in mpc512x_psc_spi_transfer_rxtx() 266 rx_len, rxcount); in mpc512x_psc_spi_transfer_rxtx() 274 if (!tx_len && !rx_len) { in mpc512x_psc_spi_transfer_rxtx()
|
H A D | spi-microchip-core-qspi.c | 123 int rx_len; member 165 if (!qspi->rx_len) in mchp_coreqspi_read_op() 177 while (qspi->rx_len >= 4) { in mchp_coreqspi_read_op() 183 qspi->rx_len -= 4; in mchp_coreqspi_read_op() 189 while (qspi->rx_len--) { in mchp_coreqspi_read_op() 416 qspi->rx_len = 0; in mchp_coreqspi_exec_op() 427 qspi->rx_len = 0; in mchp_coreqspi_exec_op() 435 qspi->rx_len = 0; in mchp_coreqspi_exec_op() 441 qspi->rx_len = op->data.nbytes; in mchp_coreqspi_exec_op()
|
H A D | spi-dw-core.c | 122 rxtx_gap = dws->fifo_len - (dws->rx_len - dws->tx_len); in dw_spi_tx_max() 171 --dws->rx_len; in dw_reader() 228 if (!dws->rx_len) { in dw_spi_transfer_handler() 231 } else if (dws->rx_len <= dw_readl(dws, DW_SPI_RXFTLR)) { in dw_spi_transfer_handler() 232 dw_writel(dws, DW_SPI_RXFTLR, dws->rx_len - 1); in dw_spi_transfer_handler() 398 delay.value = nbits * (dws->rx_len - dws->tx_len); in dw_spi_poll_transfer() 406 } while (dws->rx_len); in dw_spi_poll_transfer() 431 dws->rx_len = dws->tx_len; in dw_spi_transfer_one() 537 dws->rx_len = op->data.nbytes; in dw_spi_init_mem_buf() 540 dws->rx_len = 0; in dw_spi_init_mem_buf() [all …]
|
H A D | spi-microchip-core.c | 113 int rx_len; member 141 fifo_max = min(spi->rx_len, FIFO_DEPTH); in mchp_corespi_read_fifo() 150 spi->rx_len -= i; in mchp_corespi_read_fifo() 408 if (spi->rx_len) in mchp_corespi_interrupt() 412 if (!spi->rx_len && !spi->tx_len) in mchp_corespi_interrupt() 420 spi->rx_len, spi->tx_len); in mchp_corespi_interrupt() 428 spi->rx_len, spi->tx_len); in mchp_corespi_interrupt() 492 spi->rx_len = xfer->len; in mchp_corespi_transfer_one()
|
H A D | spi-amd.c | 283 u32 tx_len = 0, rx_len = 0; in amd_spi_fifo_xfer() local 310 rx_len += xfer->len; in amd_spi_fifo_xfer() 320 amd_spi_set_rx_count(amd_spi, rx_len); in amd_spi_fifo_xfer() 327 if (rx_len) { in amd_spi_fifo_xfer() 343 message->actual_length = tx_len + rx_len + 1; in amd_spi_fifo_xfer()
|
H A D | spi-stm32.c | 318 int rx_len; member 570 u32 offs = spi->cur_xferlen - spi->rx_len; in stm32f4_spi_read_rx() 576 spi->rx_len -= sizeof(u16); in stm32f4_spi_read_rx() 581 spi->rx_len -= sizeof(u8); in stm32f4_spi_read_rx() 600 while ((spi->rx_len > 0) && in stm32h7_spi_read_rxfifo() 606 if ((spi->rx_len >= sizeof(u32)) || in stm32h7_spi_read_rxfifo() 611 spi->rx_len -= sizeof(u32); in stm32h7_spi_read_rxfifo() 618 spi->rx_len -= sizeof(u16); in stm32h7_spi_read_rxfifo() 623 spi->rx_len -= sizeof(u8); in stm32h7_spi_read_rxfifo() 631 __func__, spi->rx_len, sr); in stm32h7_spi_read_rxfifo() [all …]
|
/openbmc/linux/drivers/misc/ |
H A D | lattice-ecp3-config.c | 72 int rx_len = 8; in firmware_load() local 94 spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); in firmware_load() 112 spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); in firmware_load() 145 spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); in firmware_load() 168 spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); in firmware_load()
|
/openbmc/u-boot/drivers/spi/ |
H A D | mt7621_spi.c | 141 int rx_len = 0; in mt7621_spi_xfer() local 186 rx_len = chunk_size; in mt7621_spi_xfer() 224 val |= (rx_len * 8) << 12; in mt7621_spi_xfer() 239 for (i = 0; i < rx_len; i += 4) in mt7621_spi_xfer() 242 if (rx_len) { in mt7621_spi_xfer() 244 for (i = 0; i < rx_len; i++) { in mt7621_spi_xfer()
|
H A D | bcmstb_spi.c | 268 uint rx_len = len; in bcmstb_spi_xfer() local 348 while (rx_len > 0) { in bcmstb_spi_xfer() 362 rx_len--; in bcmstb_spi_xfer() 385 while (priv->rx_slot < NUM_CDRAM && rx_len > 0) { in bcmstb_spi_xfer() 386 in_bytes[len - rx_len] = in bcmstb_spi_xfer() 391 priv->rx_slot, in_bytes[len - rx_len]); in bcmstb_spi_xfer() 393 rx_len--; in bcmstb_spi_xfer()
|
/openbmc/linux/drivers/staging/rtl8192e/rtl8192e/ |
H A D | rtl_eeprom.c | 42 int rx_len = 16; in _rtl92e_eeprom_xfer() local 55 while (rx_len--) { in _rtl92e_eeprom_xfer() 57 ret |= _rtl92e_gpio_get_bit(dev, EPROM_R_BIT) << rx_len; in _rtl92e_eeprom_xfer()
|
/openbmc/linux/net/nfc/nci/ |
H A D | spi.c | 181 unsigned short rx_len = 0; in __nci_spi_read() local 207 rx_len = ((resp_hdr[0] & NCI_SPI_MSB_PAYLOAD_MASK) << 8) + in __nci_spi_read() 210 rx_len = (resp_hdr[0] << 8) | resp_hdr[1]; in __nci_spi_read() 212 skb = nci_skb_alloc(nspi->ndev, rx_len, GFP_KERNEL); in __nci_spi_read() 219 rx.rx_buf = skb_put(skb, rx_len); in __nci_spi_read() 220 rx.len = rx_len; in __nci_spi_read()
|
/openbmc/dbus-sensors/include/linux/ |
H A D | peci-ioctl.h | 103 __u8 rx_len; member 242 __u8 rx_len; member 448 __u8 rx_len; member 518 __u8 rx_len; member 583 __u8 rx_len; member 603 __u8 rx_len; member
|
/openbmc/linux/net/mctp/test/ |
H A D | route-test.c | 398 int rx_len; member 428 if (params->rx_len) { in mctp_test_route_input_sk_reasm() 430 KUNIT_EXPECT_EQ(test, skb2->len, params->rx_len); in mctp_test_route_input_sk_reasm() 449 .rx_len = 1, 457 .rx_len = 1, 466 .rx_len = 2, 475 .rx_len = 2, 484 .rx_len = 0, 494 .rx_len = 3, 503 .rx_len = 0, [all …]
|
/openbmc/linux/include/linux/dma/ |
H A D | qcom-gpi-dma.h | 46 u32 rx_len; member 78 u32 rx_len; member
|
/openbmc/linux/drivers/net/wireless/ath/ath6kl/ |
H A D | bmi.c | 119 u32 len_remain, rx_len; in ath6kl_bmi_read() local 141 rx_len = (len_remain < ar->bmi.max_data_size) ? in ath6kl_bmi_read() 148 memcpy(&(ar->bmi.cmd_buf[offset]), &rx_len, sizeof(rx_len)); in ath6kl_bmi_read() 157 ret = ath6kl_hif_bmi_read(ar, ar->bmi.cmd_buf, rx_len); in ath6kl_bmi_read() 163 memcpy(&buf[len - len_remain], ar->bmi.cmd_buf, rx_len); in ath6kl_bmi_read() 164 len_remain -= rx_len; addr += rx_len; in ath6kl_bmi_read()
|
/openbmc/linux/drivers/net/wireless/marvell/mwifiex/ |
H A D | sdio.h | 137 #define MP_RX_AGGR_BUF_HAS_ROOM(a, rx_len) \ argument 138 ((a->mpa_rx.buf_len+rx_len) <= a->mpa_rx.buf_size) 362 u16 rx_len, u8 port) in mp_rx_aggr_setup() argument 364 card->mpa_rx.buf_len += rx_len; in mp_rx_aggr_setup() 378 card->mpa_rx.len_arr[card->mpa_rx.pkt_cnt] = rx_len; in mp_rx_aggr_setup()
|
H A D | sdio.c | 1738 u16 rx_len, u8 port) in mwifiex_sdio_card_to_host_mp_aggr() argument 1811 mp_rx_aggr_setup(card, rx_len, port); in mwifiex_sdio_card_to_host_mp_aggr() 1907 port, rx_len); in mwifiex_sdio_card_to_host_mp_aggr() 1915 card->mpa_rx.buf, rx_len, in mwifiex_sdio_card_to_host_mp_aggr() 1921 skb_put(skb, rx_len); in mwifiex_sdio_card_to_host_mp_aggr() 1942 mp_rx_aggr_setup(card, rx_len, port); in mwifiex_sdio_card_to_host_mp_aggr() 1982 u16 rx_len; in mwifiex_process_int_status() local 2018 skb_put(skb, rx_len); in mwifiex_process_int_status() 2101 port, rx_len); in mwifiex_process_int_status() 2111 rx_len); in mwifiex_process_int_status() [all …]
|
/openbmc/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 143 len = max(total_tx_len, rx_len); in rmi_spi_xfer() 209 for (i = 0; i < rx_len; i++) { in rmi_spi_xfer() 222 xfer->len = rx_len; in rmi_spi_xfer() 234 memcpy(rx_buf, rmi_spi->rx_buf, rx_len); in rmi_spi_xfer() 236 __func__, rx_len, rx_len, rx_buf); in rmi_spi_xfer()
|
/openbmc/linux/drivers/gpu/drm/bridge/ |
H A D | nwl-dsi.c | 63 size_t rx_len; /* in bytes */ member 401 if (xfer->msg->rx_len > 1) { in nwl_dsi_read_packet() 404 ++xfer->rx_len; in nwl_dsi_read_packet() 409 if (xfer->msg->rx_len > 0) { in nwl_dsi_read_packet() 412 ++xfer->rx_len; in nwl_dsi_read_packet() 450 xfer->rx_len += 4; in nwl_dsi_read_packet() 459 ++xfer->rx_len; in nwl_dsi_read_packet() 463 ++xfer->rx_len; in nwl_dsi_read_packet() 467 ++xfer->rx_len; in nwl_dsi_read_packet() 472 xfer->status = xfer->rx_len; in nwl_dsi_read_packet() [all …]
|
/openbmc/qemu/hw/arm/ |
H A D | strongarm.c | 943 uint8_t rx_len; member 959 if (s->rx_len != 0) { in strongarm_uart_update_status() 1052 if (s->rx_len) { in strongarm_uart_rx_to() 1070 if (s->rx_len < 12) { in strongarm_uart_rx_push() 1072 s->rx_len++; in strongarm_uart_rx_push() 1081 if (s->rx_len == 12) { in strongarm_uart_can_receive() 1085 if (s->rx_len < 8) { in strongarm_uart_can_receive() 1086 return 8 - s->rx_len; in strongarm_uart_can_receive() 1165 s->rx_len--; in strongarm_uart_read() 1210 s->rx_len = 0; in strongarm_uart_write() [all …]
|
/openbmc/linux/drivers/net/wireless/legacy/ |
H A D | ray_cs.c | 104 unsigned int pkt_addr, int rx_len); 106 unsigned int pkt_addr, int rx_len); 2047 int rx_len; in ray_rx() local 2064 rx_data(dev, prcs, pkt_addr, rx_len); in ray_rx() 2123 rx_len > in rx_data() 2128 rx_len); in rx_data() 2134 rx_len > in rx_data() 2139 rx_len); in rx_data() 2172 total_len = rx_len; in rx_data() 2186 rx_len); in rx_data() [all …]
|