Home
last modified time | relevance | path

Searched refs:rxbuf (Results 1 – 25 of 78) sorted by relevance

1234

/linux/drivers/net/can/
H A Dcan327.c74 u8 rxbuf[CAN327_SIZE_RXBUF]; member
367 elm->rxbuf[3], elm->rxbuf[4]); in can327_parse_error()
412 elm->rxbuf[hexlen] != ' ') { in can327_parse_frame()
421 !isupper(elm->rxbuf[hexlen]) && '<' != elm->rxbuf[hexlen] && in can327_parse_frame()
422 ' ' != elm->rxbuf[hexlen]) { in can327_parse_frame()
434 if (elm->rxbuf[2] == ' ' && elm->rxbuf[5] == ' ' && in can327_parse_frame()
435 elm->rxbuf[8] == ' ' && elm->rxbuf[11] == ' ' && in can327_parse_frame()
436 elm->rxbuf[13] == ' ') { in can327_parse_frame()
439 } else if (elm->rxbuf[3] == ' ' && elm->rxbuf[5] == ' ') { in can327_parse_frame()
662 memmove(&elm->rxbuf[0], &elm->rxbuf[i], CAN327_SIZE_RXBUF - i); in can327_drop_bytes()
[all …]
/linux/drivers/rtc/
H A Drtc-rs5c348.c110 u8 txbuf[5], rxbuf[7]; in rs5c348_rtc_read_time() local
132 rxbuf, sizeof(rxbuf)); in rs5c348_rtc_read_time()
137 tm->tm_sec = bcd2bin(rxbuf[RS5C348_REG_SECS] & RS5C348_SECS_MASK); in rs5c348_rtc_read_time()
138 tm->tm_min = bcd2bin(rxbuf[RS5C348_REG_MINS] & RS5C348_MINS_MASK); in rs5c348_rtc_read_time()
139 tm->tm_hour = bcd2bin(rxbuf[RS5C348_REG_HOURS] & RS5C348_HOURS_MASK); in rs5c348_rtc_read_time()
141 if (rxbuf[RS5C348_REG_HOURS] & RS5C348_BIT_PM) { in rs5c348_rtc_read_time()
148 tm->tm_wday = bcd2bin(rxbuf[RS5C348_REG_WDAY] & RS5C348_WDAY_MASK); in rs5c348_rtc_read_time()
149 tm->tm_mday = bcd2bin(rxbuf[RS5C348_REG_DAY] & RS5C348_DAY_MASK); in rs5c348_rtc_read_time()
151 bcd2bin(rxbuf[RS5C348_REG_MONTH] & RS5C348_MONTH_MASK) - 1; in rs5c348_rtc_read_time()
153 tm->tm_year = bcd2bin(rxbuf[RS5C348_REG_YEAR]) + in rs5c348_rtc_read_time()
[all …]
H A Drtc-pcf2123.c178 u8 rxbuf[7]; in pcf2123_rtc_read_time() local
182 sizeof(rxbuf)); in pcf2123_rtc_read_time()
186 if (rxbuf[0] & OSC_HAS_STOPPED) { in pcf2123_rtc_read_time()
191 tm->tm_sec = bcd2bin(rxbuf[0] & 0x7F); in pcf2123_rtc_read_time()
192 tm->tm_min = bcd2bin(rxbuf[1] & 0x7F); in pcf2123_rtc_read_time()
194 tm->tm_mday = bcd2bin(rxbuf[3] & 0x3F); in pcf2123_rtc_read_time()
195 tm->tm_wday = rxbuf[4] & 0x07; in pcf2123_rtc_read_time()
197 tm->tm_year = bcd2bin(rxbuf[6]) + 100; in pcf2123_rtc_read_time()
250 u8 rxbuf[4]; in pcf2123_rtc_read_alarm() local
255 sizeof(rxbuf)); in pcf2123_rtc_read_alarm()
[all …]
/linux/drivers/iio/pressure/
H A Dsdp500.c46 u8 rxbuf[SDP500_READ_SIZE]; in sdp500_read_raw() local
53 ret = i2c_master_recv(client, rxbuf, SDP500_READ_SIZE); in sdp500_read_raw()
63 received_crc = rxbuf[2]; in sdp500_read_raw()
64 calculated_crc = crc8(sdp500_crc8_table, rxbuf, in sdp500_read_raw()
65 sizeof(rxbuf) - 1, 0x00); in sdp500_read_raw()
73 *val = get_unaligned_be16(rxbuf); in sdp500_read_raw()
95 u8 rxbuf[SDP500_READ_SIZE]; in sdp500_probe() local
123 i2c_master_recv(client, rxbuf, SDP500_READ_SIZE); in sdp500_probe()
/linux/sound/soc/codecs/
H A Drt5514-spi.c365 write_buf[0] = rxbuf[i + 0]; in rt5514_spi_burst_read()
366 write_buf[1] = rxbuf[i + 1]; in rt5514_spi_burst_read()
367 write_buf[2] = rxbuf[i + 2]; in rt5514_spi_burst_read()
368 write_buf[3] = rxbuf[i + 3]; in rt5514_spi_burst_read()
369 write_buf[4] = rxbuf[i + 4]; in rt5514_spi_burst_read()
370 write_buf[5] = rxbuf[i + 5]; in rt5514_spi_burst_read()
371 write_buf[6] = rxbuf[i + 6]; in rt5514_spi_burst_read()
372 write_buf[7] = rxbuf[i + 7]; in rt5514_spi_burst_read()
374 rxbuf[i + 0] = write_buf[7]; in rt5514_spi_burst_read()
375 rxbuf[i + 1] = write_buf[6]; in rt5514_spi_burst_read()
[all …]
H A Drt5677-spi.h13 int rt5677_spi_read(u32 addr, void *rxbuf, size_t len);
18 static inline int rt5677_spi_read(u32 addr, void *rxbuf, size_t len) in rt5677_spi_read() argument
/linux/drivers/misc/
H A Dlattice-ecp3-config.c71 u8 rxbuf[8]; in firmware_load() local
94 spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); in firmware_load()
95 jedec_id = get_unaligned_be32(&rxbuf[4]); in firmware_load()
112 spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); in firmware_load()
113 status = get_unaligned_be32(&rxbuf[4]); in firmware_load()
145 spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); in firmware_load()
146 status = get_unaligned_be32(&rxbuf[4]); in firmware_load()
168 spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); in firmware_load()
169 status = get_unaligned_be32(&rxbuf[4]); in firmware_load()
/linux/drivers/net/ethernet/netronome/nfp/nfd3/
H A Ddp.c820 if (skb && rxbuf) in nfp_nfd3_rx_drop()
827 if (skb && rxbuf && skb->head == rxbuf->frag) in nfp_nfd3_rx_drop()
829 if (rxbuf) in nfp_nfd3_rx_drop()
830 nfp_nfd3_rx_give_one(dp, rx_ring, rxbuf->frag, rxbuf->dma_addr); in nfp_nfd3_rx_drop()
870 txbuf->frag = rxbuf->frag; in nfp_nfd3_tx_xdp_buf()
926 struct nfp_net_rx_buf *rxbuf; in nfp_nfd3_rx() local
998 rxbuf->frag + pkt_off, in nfp_nfd3_rx()
1030 rxbuf, in nfp_nfd3_rx()
1045 rxbuf->dma_addr); in nfp_nfd3_rx()
1058 rxbuf->dma_addr); in nfp_nfd3_rx()
[all …]
/linux/drivers/iio/chemical/
H A Dscd30_serial.c56 char *rxbuf, int rxsize) in scd30_serdev_xfer() argument
62 priv->buf = rxbuf; in scd30_serdev_xfer()
109 rxbuf[SCD30_SERDEV_MAX_BUF_SIZE]; in scd30_serdev_command() local
142 ret = scd30_serdev_xfer(state, txbuf, txsize, rxbuf, rxsize); in scd30_serdev_command()
148 if (memcmp(txbuf, rxbuf, txsize)) { in scd30_serdev_command()
154 if (rxbuf[2] != (rxsize - SCD30_SERDEV_RX_HEADER_SIZE - SCD30_SERDEV_CRC_SIZE)) { in scd30_serdev_command()
160 crc = get_unaligned_le16(rxbuf + rxsize); in scd30_serdev_command()
161 if (crc != scd30_serdev_calc_crc(rxbuf, rxsize)) { in scd30_serdev_command()
167 memcpy(rsp, rxbuf + SCD30_SERDEV_RX_HEADER_SIZE, rxsize); in scd30_serdev_command()
H A Dscd30_i2c.c39 char *rxbuf, int rxsize) in scd30_i2c_xfer() argument
54 if (!rxbuf) in scd30_i2c_xfer()
57 ret = i2c_master_recv(client, rxbuf, rxsize); in scd30_i2c_xfer()
/linux/drivers/net/ethernet/netronome/nfp/nfdk/
H A Ddp.c820 if (skb && rxbuf) in nfp_nfdk_rx_drop()
827 if (skb && rxbuf && skb->head == rxbuf->frag) in nfp_nfdk_rx_drop()
829 if (rxbuf) in nfp_nfdk_rx_drop()
830 nfp_nfdk_rx_give_one(dp, rx_ring, rxbuf->frag, rxbuf->dma_addr); in nfp_nfdk_rx_drop()
1048 struct nfp_net_rx_buf *rxbuf; in nfp_nfdk_rx() local
1116 rxbuf->frag + meta_off, in nfp_nfdk_rx()
1117 rxbuf->frag + pkt_off, in nfp_nfdk_rx()
1149 rxbuf, in nfp_nfdk_rx()
1164 rxbuf->dma_addr); in nfp_nfdk_rx()
1177 rxbuf->dma_addr); in nfp_nfdk_rx()
[all …]
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_xsk.c32 void nfp_net_xsk_rx_unstash(struct nfp_net_xsk_rx_buf *rxbuf) in nfp_net_xsk_rx_unstash() argument
34 rxbuf->dma_addr = 0; in nfp_net_xsk_rx_unstash()
35 rxbuf->xdp = NULL; in nfp_net_xsk_rx_unstash()
38 void nfp_net_xsk_rx_free(struct nfp_net_xsk_rx_buf *rxbuf) in nfp_net_xsk_rx_free() argument
40 if (rxbuf->xdp) in nfp_net_xsk_rx_free()
41 xsk_buff_free(rxbuf->xdp); in nfp_net_xsk_rx_free()
43 nfp_net_xsk_rx_unstash(rxbuf); in nfp_net_xsk_rx_free()
H A Dnfp_net_xsk.h28 void nfp_net_xsk_rx_unstash(struct nfp_net_xsk_rx_buf *rxbuf);
29 void nfp_net_xsk_rx_free(struct nfp_net_xsk_rx_buf *rxbuf);
/linux/drivers/net/wireless/ath/ath9k/
H A Dhtc_drv_txrx.c1093 rxbuf = tmp_buf; in ath9k_rx_tasklet()
1103 if (!rxbuf->skb) in ath9k_rx_tasklet()
1113 skb = rxbuf->skb; in ath9k_rx_tasklet()
1127 list_move_tail(&rxbuf->list, &priv->rx.rxbuf); in ath9k_rx_tasklet()
1128 rxbuf = NULL; in ath9k_rx_tasklet()
1150 rxbuf = tmp_buf; in ath9k_htc_rxep()
1162 rxbuf->skb = skb; in ath9k_htc_rxep()
1178 list_for_each_entry_safe(rxbuf, tbuf, &priv->rx.rxbuf, list) { in ath9k_rx_cleanup()
1180 if (rxbuf->skb) in ath9k_rx_cleanup()
1182 kfree(rxbuf); in ath9k_rx_cleanup()
[all …]
H A Drecv.c144 if (list_empty(&sc->rx.rxbuf)) { in ath_rx_addbuffer_edma()
167 list_add_tail(&bf->list, &sc->rx.rxbuf); in ath_rx_remove_buffer()
180 list_for_each_entry(bf, &sc->rx.rxbuf, list) { in ath_rx_edma_cleanup()
220 INIT_LIST_HEAD(&sc->rx.rxbuf); in ath_rx_edma_init()
246 list_add_tail(&bf->list, &sc->rx.rxbuf); in ath_rx_edma_init()
451 if (list_empty(&sc->rx.rxbuf)) in ath_startrecv()
461 if (list_empty(&sc->rx.rxbuf)) in ath_startrecv()
660 list_add_tail(&bf->list, &sc->rx.rxbuf); in ath_edma_get_buffers()
669 list_add_tail(&bf->list, &sc->rx.rxbuf); in ath_edma_get_buffers()
704 if (list_empty(&sc->rx.rxbuf)) { in ath_get_next_rx_buf()
[all …]
/linux/drivers/hwmon/
H A Dlm70.c52 u8 rxbuf[2]; in temp1_input_show() local
62 status = spi_write_then_read(spi, NULL, 0, &rxbuf[0], 2); in temp1_input_show()
68 raw = (rxbuf[0] << 8) + rxbuf[1]; in temp1_input_show()
70 rxbuf[0], rxbuf[1], raw); in temp1_input_show()
/linux/drivers/iio/adc/
H A Dltc2496.c31 unsigned char rxbuf[3] __aligned(IIO_DMA_MINALIGN);
42 .rx_buf = st->rxbuf, in ltc2496_result_and_measure()
57 *val = ((st->rxbuf[0] & 0x3f) << 12 | in ltc2496_result_and_measure()
58 st->rxbuf[1] << 4 | st->rxbuf[2] >> 4) - in ltc2496_result_and_measure()
/linux/drivers/spi/
H A Dspi-coldfire-qspi.c154 const u8 *txbuf, u8 *rxbuf) in mcfqspi_transfer_msg8() argument
182 if (rxbuf) { in mcfqspi_transfer_msg8()
202 if (rxbuf) { in mcfqspi_transfer_msg8()
205 *rxbuf++ = mcfqspi_rd_qdr(mcfqspi); in mcfqspi_transfer_msg8()
213 if (rxbuf) { in mcfqspi_transfer_msg8()
216 *rxbuf++ = mcfqspi_rd_qdr(mcfqspi); in mcfqspi_transfer_msg8()
221 const u16 *txbuf, u16 *rxbuf) in mcfqspi_transfer_msg16() argument
249 if (rxbuf) { in mcfqspi_transfer_msg16()
269 if (rxbuf) { in mcfqspi_transfer_msg16()
280 if (rxbuf) { in mcfqspi_transfer_msg16()
[all …]
H A Dspi-zynq-qspi.c140 u8 *rxbuf; member
251 if (xqspi->rxbuf) { in zynq_qspi_rxfifo_op()
253 xqspi->rxbuf += size; in zynq_qspi_rxfifo_op()
447 if (xqspi->rxbuf) { in zynq_qspi_read_op()
449 xqspi->rxbuf, count); in zynq_qspi_read_op()
450 xqspi->rxbuf += count * 4; in zynq_qspi_read_op()
542 xqspi->rxbuf = NULL; in zynq_qspi_exec_mem_op()
560 xqspi->rxbuf = NULL; in zynq_qspi_exec_mem_op()
579 xqspi->rxbuf = NULL; in zynq_qspi_exec_mem_op()
597 xqspi->rxbuf = NULL; in zynq_qspi_exec_mem_op()
[all …]
H A Dspi-zynqmp-gqspi.c199 void *rxbuf; member
450 memcpy(xqspi->rxbuf, &data, size); in zynqmp_qspi_copy_read_data()
451 xqspi->rxbuf += size; in zynqmp_qspi_copy_read_data()
649 (*(u32 *)xqspi->rxbuf) = in zynqmp_qspi_readrxfifo()
651 xqspi->rxbuf += 4; in zynqmp_qspi_readrxfifo()
680 } else if (xqspi->rxbuf) { in zynqmp_qspi_fillgenfifo()
751 xqspi->rxbuf += xqspi->dma_rx_bytes; in zynqmp_process_dma_irq()
1083 xqspi->rxbuf = NULL; in zynqmp_qspi_exec_op()
1110 xqspi->rxbuf = NULL; in zynqmp_qspi_exec_op()
1133 xqspi->rxbuf = NULL; in zynqmp_qspi_exec_op()
[all …]
H A Dspi-microchip-core-qspi.c120 u8 *rxbuf; member
181 *(u32 *)qspi->rxbuf = data; in mchp_coreqspi_read_op()
182 qspi->rxbuf += 4; in mchp_coreqspi_read_op()
193 *qspi->rxbuf++ = (data & 0xFF); in mchp_coreqspi_read_op()
414 qspi->rxbuf = NULL; in mchp_coreqspi_exec_op()
425 qspi->rxbuf = NULL; in mchp_coreqspi_exec_op()
434 qspi->rxbuf = NULL; in mchp_coreqspi_exec_op()
440 qspi->rxbuf = (u8 *)op->data.buf.in; in mchp_coreqspi_exec_op()
/linux/drivers/net/wireless/intel/iwlwifi/
H A Diwl-devtrace-data.h39 void *rxbuf, size_t len, size_t start),
40 TP_ARGS(dev, rxbuf, len, start),
49 ((u8 *)rxbuf) + start, len - start);
/linux/drivers/net/dsa/b53/
H A Db53_spi.c56 u8 rxbuf; in b53_spi_clear_status() local
60 ret = b53_spi_read_reg(spi, B53_SPI_STATUS, &rxbuf, 1); in b53_spi_clear_status()
64 if (!(rxbuf & B53_SPI_CMD_SPIF)) in b53_spi_clear_status()
99 u8 rxbuf; in b53_spi_prepare_reg_read() local
103 ret = b53_spi_read_reg(spi, reg, &rxbuf, 1); in b53_spi_prepare_reg_read()
108 ret = b53_spi_read_reg(spi, B53_SPI_STATUS, &rxbuf, 1); in b53_spi_prepare_reg_read()
112 if (rxbuf & B53_SPI_CMD_RACK) in b53_spi_prepare_reg_read()
/linux/drivers/staging/fbtft/
H A Dfb_ili9320.c24 u8 rxbuf[8] = {0, }; in read_devicecode() local
27 par->fbtftops.read(par, rxbuf, 4); in read_devicecode()
28 return (rxbuf[2] << 8) | rxbuf[3]; in read_devicecode()
/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_packet.c68 u32 *rxbuf; in sparx5_xtr_grp() local
95 rxbuf = (u32 *)skb->data; in sparx5_xtr_grp()
131 *rxbuf = spx5_rd(sparx5, QS_XTR_RD(grp)); in sparx5_xtr_grp()
133 rxbuf++; in sparx5_xtr_grp()
136 *rxbuf = val; in sparx5_xtr_grp()
138 rxbuf++; in sparx5_xtr_grp()

1234