/linux-6.1.9/drivers/net/can/ |
D | can327.c | 74 u8 rxbuf[CAN327_SIZE_RXBUF]; member 342 if (can327_rxbuf_cmp(elm->rxbuf, len, "UNABLE TO CONNECT")) { in can327_parse_error() 345 } else if (can327_rxbuf_cmp(elm->rxbuf, len, "BUFFER FULL")) { in can327_parse_error() 352 } else if (can327_rxbuf_cmp(elm->rxbuf, len, "BUS ERROR")) { in can327_parse_error() 354 } else if (can327_rxbuf_cmp(elm->rxbuf, len, "CAN ERROR")) { in can327_parse_error() 356 } else if (can327_rxbuf_cmp(elm->rxbuf, len, "<RX ERROR")) { in can327_parse_error() 358 } else if (can327_rxbuf_cmp(elm->rxbuf, len, "BUS BUSY")) { in can327_parse_error() 361 } else if (can327_rxbuf_cmp(elm->rxbuf, len, "FB ERROR")) { in can327_parse_error() 364 } else if (len == 5 && !memcmp(elm->rxbuf, "ERR", 3)) { in can327_parse_error() 367 elm->rxbuf[3], elm->rxbuf[4]); in can327_parse_error() [all …]
|
/linux-6.1.9/drivers/rtc/ |
D | rtc-rs5c348.c | 110 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 …]
|
D | rtc-pcf2123.c | 178 u8 rxbuf[7]; in pcf2123_rtc_read_time() local 181 ret = regmap_bulk_read(pcf2123->map, PCF2123_REG_SC, rxbuf, in pcf2123_rtc_read_time() 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() 193 tm->tm_hour = bcd2bin(rxbuf[2] & 0x3F); /* rtc hr 0-23 */ 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() 196 tm->tm_mon = bcd2bin(rxbuf[5] & 0x1F) - 1; /* rtc mn 1-12 */ in pcf2123_rtc_read_time() [all …]
|
D | rtc-r9701.c | 54 u8 txbuf[1], rxbuf[1]; in read_regs() local 61 ret = spi_write_then_read(spi, txbuf, 1, rxbuf, 1); in read_regs() 62 regs[k] = rxbuf[0]; in read_regs()
|
/linux-6.1.9/sound/soc/codecs/ |
D | rt5514-spi.c | 320 int rt5514_spi_burst_read(unsigned int addr, u8 *rxbuf, size_t len) in rt5514_spi_burst_read() argument 354 x[2].rx_buf = rxbuf + offset; in rt5514_spi_burst_read() 366 write_buf[0] = rxbuf[i + 0]; in rt5514_spi_burst_read() 367 write_buf[1] = rxbuf[i + 1]; in rt5514_spi_burst_read() 368 write_buf[2] = rxbuf[i + 2]; in rt5514_spi_burst_read() 369 write_buf[3] = rxbuf[i + 3]; in rt5514_spi_burst_read() 370 write_buf[4] = rxbuf[i + 4]; in rt5514_spi_burst_read() 371 write_buf[5] = rxbuf[i + 5]; in rt5514_spi_burst_read() 372 write_buf[6] = rxbuf[i + 6]; in rt5514_spi_burst_read() 373 write_buf[7] = rxbuf[i + 7]; in rt5514_spi_burst_read() [all …]
|
D | rt5677-spi.h | 13 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-6.1.9/drivers/misc/ |
D | lattice-ecp3-config.c | 71 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-6.1.9/drivers/net/ethernet/netronome/nfp/nfd3/ |
D | dp.c | 779 struct nfp_net_rx_ring *rx_ring, struct nfp_net_rx_buf *rxbuf, in nfp_nfd3_rx_drop() argument 787 if (skb && rxbuf) in nfp_nfd3_rx_drop() 794 if (skb && rxbuf && skb->head == rxbuf->frag) in nfp_nfd3_rx_drop() 795 page_ref_inc(virt_to_head_page(rxbuf->frag)); in nfp_nfd3_rx_drop() 796 if (rxbuf) in nfp_nfd3_rx_drop() 797 nfp_nfd3_rx_give_one(dp, rx_ring, rxbuf->frag, rxbuf->dma_addr); in nfp_nfd3_rx_drop() 805 struct nfp_net_rx_buf *rxbuf, unsigned int dma_off, in nfp_nfd3_tx_xdp_buf() argument 824 nfp_nfd3_rx_drop(dp, rx_ring->r_vec, rx_ring, rxbuf, in nfp_nfd3_tx_xdp_buf() 837 txbuf->frag = rxbuf->frag; in nfp_nfd3_tx_xdp_buf() 838 txbuf->dma_addr = rxbuf->dma_addr; in nfp_nfd3_tx_xdp_buf() [all …]
|
/linux-6.1.9/drivers/iio/chemical/ |
D | scd30_serial.c | 56 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()
|
D | scd30_i2c.c | 39 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-6.1.9/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_xsk.c | 32 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()
|
D | nfp_net_xsk.h | 28 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-6.1.9/drivers/net/ethernet/netronome/nfp/nfdk/ |
D | dp.c | 775 struct nfp_net_rx_ring *rx_ring, struct nfp_net_rx_buf *rxbuf, in nfp_nfdk_rx_drop() argument 783 if (skb && rxbuf) in nfp_nfdk_rx_drop() 790 if (skb && rxbuf && skb->head == rxbuf->frag) in nfp_nfdk_rx_drop() 791 page_ref_inc(virt_to_head_page(rxbuf->frag)); in nfp_nfdk_rx_drop() 792 if (rxbuf) in nfp_nfdk_rx_drop() 793 nfp_nfdk_rx_give_one(dp, rx_ring, rxbuf->frag, rxbuf->dma_addr); in nfp_nfdk_rx_drop() 864 struct nfp_net_rx_buf *rxbuf, unsigned int dma_off, in nfp_nfdk_tx_xdp_buf() argument 890 nfp_nfdk_rx_drop(dp, rx_ring->r_vec, rx_ring, rxbuf, in nfp_nfdk_tx_xdp_buf() 918 txbuf[0].val = (unsigned long)rxbuf->frag | NFDK_TX_BUF_INFO_SOP; in nfp_nfdk_tx_xdp_buf() 919 txbuf[1].dma_addr = rxbuf->dma_addr; in nfp_nfdk_tx_xdp_buf() [all …]
|
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-devtrace-data.h | 40 void *rxbuf, size_t len), 41 TP_ARGS(dev, trans, rxbuf, len), 45 len - iwl_rx_trace_len(trans, rxbuf, len, NULL)) 48 size_t offs = iwl_rx_trace_len(trans, rxbuf, len, NULL); 52 ((u8 *)rxbuf) + offs, len - offs);
|
/linux-6.1.9/drivers/net/wireless/ath/ath9k/ |
D | htc_drv_txrx.c | 975 struct ath9k_htc_rxbuf *rxbuf, in ath9k_rx_prepare() argument 981 struct sk_buff *skb = rxbuf->skb; in ath9k_rx_prepare() 1086 struct ath9k_htc_rxbuf *rxbuf = NULL, *tmp_buf = NULL; in ath9k_rx_tasklet() local 1094 list_for_each_entry(tmp_buf, &priv->rx.rxbuf, list) { in ath9k_rx_tasklet() 1096 rxbuf = tmp_buf; in ath9k_rx_tasklet() 1101 if (rxbuf == NULL) { in ath9k_rx_tasklet() 1106 if (!rxbuf->skb) in ath9k_rx_tasklet() 1109 if (!ath9k_rx_prepare(priv, rxbuf, &rx_status)) { in ath9k_rx_tasklet() 1110 dev_kfree_skb_any(rxbuf->skb); in ath9k_rx_tasklet() 1114 memcpy(IEEE80211_SKB_RXCB(rxbuf->skb), &rx_status, in ath9k_rx_tasklet() [all …]
|
D | recv.c | 122 bf = list_first_entry(&sc->rx.rxbuf, struct ath_rxbuf, list); in ath_rx_edma_buf_link() 144 if (list_empty(&sc->rx.rxbuf)) { in ath_rx_addbuffer_edma() 149 list_for_each_entry_safe(bf, tbf, &sc->rx.rxbuf, list) 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() 291 error = ath_descdma_setup(sc, &sc->rx.rxdma, &sc->rx.rxbuf, in ath_rx_init() 300 list_for_each_entry(bf, &sc->rx.rxbuf, list) { in ath_rx_init() 343 list_for_each_entry(bf, &sc->rx.rxbuf, list) { in ath_rx_cleanup() [all …]
|
/linux-6.1.9/drivers/hwmon/ |
D | lm70.c | 52 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-6.1.9/drivers/iio/adc/ |
D | ltc2496.c | 31 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-6.1.9/drivers/spi/ |
D | spi-coldfire-qspi.c | 154 const u8 *txbuf, u8 *rxbuf) in mcfqspi_transfer_msg8() argument 182 if (rxbuf) { in mcfqspi_transfer_msg8() 186 *rxbuf++ = mcfqspi_rd_qdr(mcfqspi); 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() 253 *rxbuf++ = mcfqspi_rd_qdr(mcfqspi); in mcfqspi_transfer_msg16() [all …]
|
D | spi-zynq-qspi.c | 140 u8 *rxbuf; member 251 if (xqspi->rxbuf) { in zynq_qspi_rxfifo_op() 252 memcpy(xqspi->rxbuf, ((u8 *)&data) + 4 - size, size); 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() [all …]
|
D | spi-zynqmp-gqspi.c | 169 void *rxbuf; member 349 memcpy(xqspi->rxbuf, &data, size); in zynqmp_qspi_copy_read_data() 350 xqspi->rxbuf += size; in zynqmp_qspi_copy_read_data() 548 (*(u32 *)xqspi->rxbuf) = in zynqmp_qspi_readrxfifo() 550 xqspi->rxbuf += 4; in zynqmp_qspi_readrxfifo() 579 } else if (xqspi->rxbuf) { in zynqmp_qspi_fillgenfifo() 631 if (xqspi->mode == GQSPI_MODE_IO && xqspi->rxbuf) { in zynqmp_qspi_fillgenfifo() 650 xqspi->rxbuf += xqspi->dma_rx_bytes; in zynqmp_process_dma_irq() 747 u64 dma_align = (u64)(uintptr_t)xqspi->rxbuf; in zynqmp_qspi_setuprxdma() 763 addr = dma_map_single(xqspi->dev, (void *)xqspi->rxbuf, in zynqmp_qspi_setuprxdma() [all …]
|
D | spi-microchip-core-qspi.c | 120 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() 413 qspi->rxbuf = NULL; in mchp_coreqspi_exec_op() 424 qspi->rxbuf = NULL; in mchp_coreqspi_exec_op() 433 qspi->rxbuf = NULL; in mchp_coreqspi_exec_op() 439 qspi->rxbuf = (u8 *)op->data.buf.in; in mchp_coreqspi_exec_op()
|
/linux-6.1.9/drivers/net/dsa/b53/ |
D | b53_spi.c | 56 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-6.1.9/drivers/staging/fbtft/ |
D | fb_ili9320.c | 24 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-6.1.9/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_packet.c | 64 u32 *rxbuf; in sparx5_xtr_grp() local 91 rxbuf = (u32 *)skb->data; in sparx5_xtr_grp() 127 *rxbuf = spx5_rd(sparx5, QS_XTR_RD(grp)); in sparx5_xtr_grp() 129 rxbuf++; in sparx5_xtr_grp() 132 *rxbuf = val; in sparx5_xtr_grp() 134 rxbuf++; in sparx5_xtr_grp()
|