/drivers/spi/ |
D | spi-dln2.c | 195 unsigned rx_len = sizeof(rx); in dln2_spi_get_cs_num() local 199 &rx, &rx_len); in dln2_spi_get_cs_num() 202 if (rx_len < sizeof(rx)) in dln2_spi_get_cs_num() 221 unsigned rx_len = sizeof(rx); in dln2_spi_get_speed() local 225 ret = dln2_transfer(dln2->pdev, cmd, &tx, sizeof(tx), &rx, &rx_len); in dln2_spi_get_speed() 228 if (rx_len < sizeof(rx)) in dln2_spi_get_speed() 271 int rx_len = sizeof(rx); in dln2_spi_set_speed() local 277 &rx, &rx_len); in dln2_spi_set_speed() 280 if (rx_len < sizeof(rx)) in dln2_spi_set_speed() 330 unsigned rx_len = sizeof(*rx); in dln2_spi_get_supported_frame_sizes() local [all …]
|
D | spi-bcm2835aux.c | 106 int rx_len; member 124 int count = min(bs->rx_len, 3); in bcm2835aux_rd_fifo() 143 bs->rx_len -= count; in bcm2835aux_rd_fifo() 189 for (; bs->rx_len && (stat & BCM2835_AUX_SPI_STAT_RX_LVL); in bcm2835aux_spi_transfer_helper() 216 if (!bs->rx_len) { in bcm2835aux_spi_interrupt() 276 while (bs->rx_len) { in bcm2835aux_spi_transfer_one_poll() 282 if (bs->rx_len && time_after(jiffies, timeout)) { in bcm2835aux_spi_transfer_one_poll() 286 bs->tx_len, bs->rx_len); in bcm2835aux_spi_transfer_one_poll() 349 bs->rx_len = tfr->len; in bcm2835aux_spi_transfer_one()
|
D | spi-efm32.c | 87 unsigned tx_len, rx_len; member 172 ddata->rx_len--; in efm32_spi_rx_u8() 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() 229 while (ddata->rx_len > 0 && in efm32_spi_rxirq() 237 if (!ddata->rx_len) { in efm32_spi_rxirq() 258 __func__, ddata->tx_len, ddata->rx_len, in efm32_spi_txirq() 267 __func__, ddata->tx_len, ddata->rx_len); in efm32_spi_txirq()
|
D | spi-mpc512x-psc.c | 159 size_t rx_len = t->len; in mpc512x_psc_spi_transfer_rxtx() local 166 while (rx_len || tx_len) { in mpc512x_psc_spi_transfer_rxtx() 221 rxcount = min(fifosz, rx_len); in mpc512x_psc_spi_transfer_rxtx() 226 rx_len--; in mpc512x_psc_spi_transfer_rxtx() 237 if (!rx_len) in mpc512x_psc_spi_transfer_rxtx() 268 if (!tx_len && rx_len && !rxtries) { in mpc512x_psc_spi_transfer_rxtx() 276 rx_len, rxcount); in mpc512x_psc_spi_transfer_rxtx() 284 if (!tx_len && !rx_len) { in mpc512x_psc_spi_transfer_rxtx()
|
D | spi-bcm2835.c | 90 int rx_len; member 108 while ((bs->rx_len) && in bcm2835_rd_fifo() 113 bs->rx_len--; in bcm2835_rd_fifo() 158 if (!bs->rx_len) { in bcm2835_spi_interrupt() 500 while (bs->rx_len) { in bcm2835_spi_transfer_one_poll() 510 if (bs->rx_len && time_after(jiffies, timeout)) { in bcm2835_spi_transfer_one_poll() 514 bs->tx_len, bs->rx_len); in bcm2835_spi_transfer_one_poll() 574 bs->rx_len = tfr->len; in bcm2835_spi_transfer_one()
|
D | spi-xlp.c | 103 int rx_len; /* rx xfer length */ member 198 nbytes = min(xspi->rx_len, 4); in xlp_spi_read_rxfifo() 202 xspi->rx_len -= nbytes; in xlp_spi_read_rxfifo() 248 if (xspi->rx_len) in xlp_spi_interrupt() 287 xs->rx_len = (xs->rx_buf == NULL) ? 0 : xfer_len; in xlp_spi_xfer_block()
|
/drivers/misc/ |
D | lattice-ecp3-config.c | 77 int rx_len = 8; in firmware_load() local 99 ret = spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); in firmware_load() 117 ret = spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); in firmware_load() 150 ret = spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); in firmware_load() 173 ret = spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); in firmware_load()
|
/drivers/staging/rtl8192e/rtl8192e/ |
D | rtl_eeprom.c | 53 int rx_len = 16; in _rtl92e_eeprom_xfer() local 66 while (rx_len--) { in _rtl92e_eeprom_xfer() 68 ret |= _rtl92e_gpio_get_bit(dev, EPROM_R_BIT) << rx_len; in _rtl92e_eeprom_xfer()
|
/drivers/net/wireless/mwifiex/ |
D | sdio.c | 1243 u16 rx_len, u8 port) in mwifiex_sdio_card_to_host_mp_aggr() argument 1283 if (MP_RX_AGGR_BUF_HAS_ROOM(card, rx_len)) { in mwifiex_sdio_card_to_host_mp_aggr() 1302 if (MP_RX_AGGR_BUF_HAS_ROOM(card, rx_len)) in mwifiex_sdio_card_to_host_mp_aggr() 1316 mp_rx_aggr_setup(card, rx_len, port); in mwifiex_sdio_card_to_host_mp_aggr() 1410 port, rx_len); in mwifiex_sdio_card_to_host_mp_aggr() 1412 skb = mwifiex_alloc_dma_align_buf(rx_len, GFP_KERNEL | GFP_DMA); in mwifiex_sdio_card_to_host_mp_aggr() 1416 "drop pkt port=%d len=%d\n", port, rx_len); in mwifiex_sdio_card_to_host_mp_aggr() 1418 card->mpa_rx.buf, rx_len, in mwifiex_sdio_card_to_host_mp_aggr() 1424 skb_put(skb, rx_len); in mwifiex_sdio_card_to_host_mp_aggr() 1445 mp_rx_aggr_setup(card, rx_len, port); in mwifiex_sdio_card_to_host_mp_aggr() [all …]
|
D | sdio.h | 146 #define MP_RX_AGGR_BUF_HAS_ROOM(a, rx_len) \ argument 147 ((a->mpa_rx.buf_len+rx_len) <= a->mpa_rx.buf_size) 653 u16 rx_len, u8 port) in mp_rx_aggr_setup() argument 655 card->mpa_rx.buf_len += rx_len; in mp_rx_aggr_setup() 669 card->mpa_rx.len_arr[card->mpa_rx.pkt_cnt] = rx_len; in mp_rx_aggr_setup()
|
/drivers/net/wireless/ath/ath6kl/ |
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()
|
/drivers/net/wireless/ |
D | ray_cs.c | 111 unsigned int pkt_addr, int rx_len); 116 unsigned int pkt_addr, int rx_len); 118 unsigned int pkt_addr, int rx_len); 2056 int rx_len; in ray_rx() local 2065 rx_len = (readb(&prcs->var.rx_packet.rx_data_length[0]) << 8) in ray_rx() 2073 rx_data(dev, prcs, pkt_addr, rx_len); in ray_rx() 2078 rx_data(dev, prcs, pkt_addr, rx_len); in ray_rx() 2080 rx_authenticate(local, prcs, pkt_addr, rx_len); in ray_rx() 2085 rx_data(dev, prcs, pkt_addr, rx_len); in ray_rx() 2087 rx_deauthenticate(local, prcs, pkt_addr, rx_len); in ray_rx() [all …]
|
/drivers/gpu/drm/exynos/ |
D | exynos_drm_dsi.c | 240 u16 rx_len; member 955 xfer, xfer->tx_len, xfer->tx_done, xfer->rx_len, xfer->rx_done); in exynos_dsi_send_to_fifo() 1025 if (xfer->rx_len >= 2) { in exynos_dsi_read_from_fifo() 1034 xfer->rx_len = xfer->rx_done; in exynos_dsi_read_from_fifo() 1045 if (length > xfer->rx_len) { in exynos_dsi_read_from_fifo() 1048 xfer->rx_len, length); in exynos_dsi_read_from_fifo() 1049 length = xfer->rx_len; in exynos_dsi_read_from_fifo() 1050 } else if (length < xfer->rx_len) in exynos_dsi_read_from_fifo() 1051 xfer->rx_len = length; in exynos_dsi_read_from_fifo() 1054 length = xfer->rx_len - xfer->rx_done; in exynos_dsi_read_from_fifo() [all …]
|
/drivers/net/caif/ |
D | caif_hsi.c | 620 int desc_pld_len = 0, rx_len, rx_state; in cfhsi_rx_done() local 645 rx_len = desc_pld_len; in cfhsi_rx_done() 647 rx_len += CFHSI_DESC_SZ; in cfhsi_rx_done() 653 rx_len = CFHSI_DESC_SZ; in cfhsi_rx_done() 669 rx_len = desc_pld_len; in cfhsi_rx_done() 671 rx_len += CFHSI_DESC_SZ; in cfhsi_rx_done() 689 rx_len = CFHSI_DESC_SZ; in cfhsi_rx_done() 698 res = cfhsi->ops->cfhsi_rx(rx_ptr, rx_len, in cfhsi_rx_done() 729 cfhsi->rx_len = rx_len; in cfhsi_rx_done() 854 res = cfhsi->ops->cfhsi_rx(cfhsi->rx_ptr, cfhsi->rx_len, cfhsi->ops); in cfhsi_wake_up() [all …]
|
/drivers/input/touchscreen/ |
D | wdt87xx_i2c.c | 250 size_t rx_len = len + 2; in wdt87xx_get_string() local 253 if (rx_len > sizeof(rx_buf)) in wdt87xx_get_string() 257 rx_buf, rx_len); in wdt87xx_get_string() 269 rx_len = min_t(size_t, len, rx_buf[0]); in wdt87xx_get_string() 270 memcpy(buf, &rx_buf[2], rx_len); in wdt87xx_get_string() 283 size_t rx_len = buf_size + 2; in wdt87xx_get_feature() local 286 if (rx_len > sizeof(rx_buf)) in wdt87xx_get_feature() 303 error = wdt87xx_i2c_xfer(client, tx_buf, tx_len, rx_buf, rx_len); in wdt87xx_get_feature() 309 rx_len = min_t(size_t, buf_size, get_unaligned_le16(rx_buf)); in wdt87xx_get_feature() 310 memcpy(buf, &rx_buf[2], rx_len); in wdt87xx_get_feature()
|
/drivers/firmware/ |
D | arm_scpi.c | 142 unsigned int rx_len; member 283 unsigned int len = min(match->rx_len, CMD_SIZE(cmd)); in scpi_process_cmd() 287 if (match->rx_len > len) in scpi_process_cmd() 288 memset(match->rx_buf + len, 0, match->rx_len - len); in scpi_process_cmd() 346 void *rx_buf, unsigned int rx_len) in scpi_send_message() argument 365 msg->rx_len = rx_len; in scpi_send_message()
|
/drivers/net/ethernet/wiznet/ |
D | w5300.c | 393 u16 rx_len; in w5300_napi_poll() local 400 rx_len = w5300_read(priv, W5300_S0_RX_FIFO); in w5300_napi_poll() 402 skb = netdev_alloc_skb_ip_align(ndev, roundup(rx_len, 2)); in w5300_napi_poll() 411 skb_put(skb, rx_len); in w5300_napi_poll() 412 w5300_read_frame(priv, skb->data, rx_len); in w5300_napi_poll() 417 ndev->stats.rx_bytes += rx_len; in w5300_napi_poll()
|
D | w5100.c | 466 u16 rx_len; in w5100_napi_poll() local 477 rx_len = get_unaligned_be16(header) - 2; in w5100_napi_poll() 479 skb = netdev_alloc_skb_ip_align(ndev, rx_len); in w5100_napi_poll() 488 skb_put(skb, rx_len); in w5100_napi_poll() 489 w5100_readbuf(priv, offset + 2, skb->data, rx_len); in w5100_napi_poll() 490 w5100_write16(priv, W5100_S0_RX_RD, offset + 2 + rx_len); in w5100_napi_poll() 497 ndev->stats.rx_bytes += rx_len; in w5100_napi_poll()
|
/drivers/acpi/ |
D | acpi_ipmi.c | 93 u8 rx_len; member 333 buffer->length = msg->rx_len; in acpi_format_ipmi_response() 334 memcpy(buffer->data, msg->data, msg->rx_len); in acpi_format_ipmi_response() 439 tx_msg->rx_len = msg->msg.data_len; in ipmi_msg_handler() 440 memcpy(tx_msg->data, msg->msg.data, tx_msg->rx_len); in ipmi_msg_handler()
|
/drivers/i2c/busses/ |
D | i2c-dln2.c | 118 unsigned rx_len = sizeof(*rx); in dln2_i2c_read() local 129 rx, &rx_len); in dln2_i2c_read() 132 if (rx_len < sizeof(rx->buf_len) + data_len) in dln2_i2c_read()
|
/drivers/mfd/ |
D | ipaq-micro.c | 104 msg->rx_len = len; in micro_rx_msg() 200 if (msg.rx_len == 4) { in ipaq_micro_get_version() 203 } else if (msg.rx_len == 9) { in ipaq_micro_get_version() 209 "illegal version message %d bytes\n", msg.rx_len); in ipaq_micro_get_version()
|
/drivers/net/hamradio/ |
D | yam.c | 146 int rx_len; member 545 if (yp->dcd && yp->rx_len >= 3 && yp->rx_len < YAM_MAX_FRAME) { in yam_rx_flag() 546 int pkt_len = yp->rx_len - 2 + 1; /* -CRC + kiss */ in yam_rx_flag() 566 yp->rx_len = 0; in yam_rx_flag() 573 if (yp->rx_len < YAM_MAX_FRAME) { in yam_rx_byte() 577 yp->rx_buf[yp->rx_len++] = rxb; in yam_rx_byte()
|
/drivers/net/ethernet/silan/ |
D | sc92031.c | 727 unsigned rx_len; in _sc92031_rx_tasklet() local 743 rx_len = rx_ring_head - priv->rx_ring_tail; in _sc92031_rx_tasklet() 745 rx_len = RX_BUF_LEN - (priv->rx_ring_tail - rx_ring_head); in _sc92031_rx_tasklet() 747 if (!rx_len) in _sc92031_rx_tasklet() 750 if (unlikely(rx_len > RX_BUF_LEN)) { in _sc92031_rx_tasklet() 759 while (rx_len) { in _sc92031_rx_tasklet() 781 if (unlikely(rx_size_align + 4 > rx_len)) { in _sc92031_rx_tasklet() 787 rx_len -= rx_size_align + 4; in _sc92031_rx_tasklet()
|
/drivers/net/wireless/libertas/ |
D | if_sdio.c | 182 u16 rx_len; in if_sdio_read_rx_len() local 187 rx_len = if_sdio_read_scratch(card, &ret); in if_sdio_read_rx_len() 191 rx_len = sdio_readb(card->func, IF_SDIO_RX_LEN, &ret); in if_sdio_read_rx_len() 193 rx_len <<= card->rx_unit; in if_sdio_read_rx_len() 195 rx_len = 0xffff; /* invalid length */ in if_sdio_read_rx_len() 203 return rx_len; in if_sdio_read_rx_len()
|
/drivers/power/ |
D | ipaq_micro_battery.c | 65 if (msg_battery.rx_len < 4) in micro_battery_work() 84 if (msg_battery.rx_len == 9) in micro_battery_work()
|