/Linux-v4.19/drivers/rtc/ |
D | rtc-pcf2123.c | 130 static int pcf2123_read(struct device *dev, u8 reg, u8 *rxbuf, size_t size) in pcf2123_read() argument 136 ret = spi_write_then_read(spi, ®, 1, rxbuf, size); in pcf2123_read() 167 u8 rxbuf[1]; in pcf2123_show() local 177 ret = pcf2123_read(dev, reg, rxbuf, 1); in pcf2123_show() 181 return sprintf(buffer, "0x%x\n", rxbuf[0]); in pcf2123_show() 264 u8 rxbuf[7]; in pcf2123_rtc_read_time() local 267 ret = pcf2123_read(dev, PCF2123_REG_SC, rxbuf, sizeof(rxbuf)); in pcf2123_rtc_read_time() 271 if (rxbuf[0] & OSC_HAS_STOPPED) { in pcf2123_rtc_read_time() 276 tm->tm_sec = bcd2bin(rxbuf[0] & 0x7F); in pcf2123_rtc_read_time() 277 tm->tm_min = bcd2bin(rxbuf[1] & 0x7F); in pcf2123_rtc_read_time() [all …]
|
D | rtc-rs5c348.c | 102 u8 txbuf[5], rxbuf[7]; in rs5c348_rtc_read_time() local 114 rxbuf, sizeof(rxbuf)); in rs5c348_rtc_read_time() 119 tm->tm_sec = bcd2bin(rxbuf[RS5C348_REG_SECS] & RS5C348_SECS_MASK); in rs5c348_rtc_read_time() 120 tm->tm_min = bcd2bin(rxbuf[RS5C348_REG_MINS] & RS5C348_MINS_MASK); in rs5c348_rtc_read_time() 121 tm->tm_hour = bcd2bin(rxbuf[RS5C348_REG_HOURS] & RS5C348_HOURS_MASK); in rs5c348_rtc_read_time() 123 if (rxbuf[RS5C348_REG_HOURS] & RS5C348_BIT_PM) { in rs5c348_rtc_read_time() 130 tm->tm_wday = bcd2bin(rxbuf[RS5C348_REG_WDAY] & RS5C348_WDAY_MASK); in rs5c348_rtc_read_time() 131 tm->tm_mday = bcd2bin(rxbuf[RS5C348_REG_DAY] & RS5C348_DAY_MASK); in rs5c348_rtc_read_time() 133 bcd2bin(rxbuf[RS5C348_REG_MONTH] & RS5C348_MONTH_MASK) - 1; in rs5c348_rtc_read_time() 135 tm->tm_year = bcd2bin(rxbuf[RS5C348_REG_YEAR]) + in rs5c348_rtc_read_time() [all …]
|
D | rtc-r9701.c | 57 u8 txbuf[1], rxbuf[1]; in read_regs() local 64 ret = spi_write_then_read(spi, txbuf, 1, rxbuf, 1); in read_regs() 65 regs[k] = rxbuf[0]; in read_regs()
|
/Linux-v4.19/sound/soc/codecs/ |
D | rt5514-spi.c | 318 int rt5514_spi_burst_read(unsigned int addr, u8 *rxbuf, size_t len) in rt5514_spi_burst_read() argument 352 x[2].rx_buf = rxbuf + offset; in rt5514_spi_burst_read() 364 write_buf[0] = rxbuf[i + 0]; in rt5514_spi_burst_read() 365 write_buf[1] = rxbuf[i + 1]; in rt5514_spi_burst_read() 366 write_buf[2] = rxbuf[i + 2]; in rt5514_spi_burst_read() 367 write_buf[3] = rxbuf[i + 3]; in rt5514_spi_burst_read() 368 write_buf[4] = rxbuf[i + 4]; in rt5514_spi_burst_read() 369 write_buf[5] = rxbuf[i + 5]; in rt5514_spi_burst_read() 370 write_buf[6] = rxbuf[i + 6]; in rt5514_spi_burst_read() 371 write_buf[7] = rxbuf[i + 7]; in rt5514_spi_burst_read() [all …]
|
D | rt5677-spi.h | 15 int rt5677_spi_read(u32 addr, void *rxbuf, size_t len);
|
D | rt5514-spi.h | 37 int rt5514_spi_burst_read(unsigned int addr, u8 *rxbuf, size_t len);
|
/Linux-v4.19/drivers/misc/ |
D | lattice-ecp3-config.c | 76 u8 rxbuf[8]; in firmware_load() local 99 ret = spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); in firmware_load() 100 jedec_id = get_unaligned_be32(&rxbuf[4]); in firmware_load() 117 ret = spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); in firmware_load() 118 status = get_unaligned_be32(&rxbuf[4]); in firmware_load() 150 ret = spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); in firmware_load() 151 status = get_unaligned_be32(&rxbuf[4]); in firmware_load() 173 ret = spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); in firmware_load() 174 status = get_unaligned_be32(&rxbuf[4]); in firmware_load()
|
/Linux-v4.19/drivers/hwmon/ |
D | lm70.c | 64 u8 rxbuf[2]; in temp1_input_show() local 74 status = spi_write_then_read(spi, NULL, 0, &rxbuf[0], 2); in temp1_input_show() 80 raw = (rxbuf[0] << 8) + rxbuf[1]; in temp1_input_show() 82 rxbuf[0], rxbuf[1], raw); in temp1_input_show()
|
/Linux-v4.19/drivers/net/wireless/ath/ath9k/ |
D | htc_drv_txrx.c | 964 struct ath9k_htc_rxbuf *rxbuf, in ath9k_rx_prepare() argument 970 struct sk_buff *skb = rxbuf->skb; in ath9k_rx_prepare() 1052 struct ath9k_htc_rxbuf *rxbuf = NULL, *tmp_buf = NULL; in ath9k_rx_tasklet() local 1060 list_for_each_entry(tmp_buf, &priv->rx.rxbuf, list) { in ath9k_rx_tasklet() 1062 rxbuf = tmp_buf; in ath9k_rx_tasklet() 1067 if (rxbuf == NULL) { in ath9k_rx_tasklet() 1072 if (!rxbuf->skb) in ath9k_rx_tasklet() 1075 if (!ath9k_rx_prepare(priv, rxbuf, &rx_status)) { in ath9k_rx_tasklet() 1076 dev_kfree_skb_any(rxbuf->skb); in ath9k_rx_tasklet() 1080 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-v4.19/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-devtrace-data.h | 75 void *rxbuf, size_t len), 76 TP_ARGS(dev, trans, rxbuf, len), 81 len - iwl_rx_trace_len(trans, rxbuf, len)) 84 size_t offs = iwl_rx_trace_len(trans, rxbuf, len); 88 ((u8 *)rxbuf) + offs, len - offs);
|
D | iwl-devtrace.h | 63 void *rxbuf, size_t len) in iwl_rx_trace_len() argument 65 struct iwl_cmd_header *cmd = (void *)((u8 *)rxbuf + sizeof(__le32)); in iwl_rx_trace_len()
|
/Linux-v4.19/arch/arm/mach-u300/ |
D | dummyspichip.c | 53 u8 rxbuf[14]; in dummy_looptest() local 90 status = spi_write_then_read(spi, &txbuf[0], 8, &rxbuf[0], 8); in dummy_looptest() 99 status = spi_write_then_read(spi, &txbuf[0], 14, &rxbuf[0], 14); in dummy_looptest() 114 status = spi_read(spi, &rxbuf[0], 8); in dummy_looptest() 129 status = spi_read(spi, &rxbuf[0], 14); in dummy_looptest() 175 status = spi_write_then_read(spi, &txbuf[0], 8, &rxbuf[0], 8); in dummy_looptest() 184 status = spi_write_then_read(spi, &txbuf[0], 14, &rxbuf[0], 14); in dummy_looptest()
|
/Linux-v4.19/drivers/spi/ |
D | spi-coldfire-qspi.c | 163 const u8 *txbuf, u8 *rxbuf) in mcfqspi_transfer_msg8() argument 191 if (rxbuf) { in mcfqspi_transfer_msg8() 195 *rxbuf++ = mcfqspi_rd_qdr(mcfqspi); in mcfqspi_transfer_msg8() 211 if (rxbuf) { in mcfqspi_transfer_msg8() 214 *rxbuf++ = mcfqspi_rd_qdr(mcfqspi); in mcfqspi_transfer_msg8() 222 if (rxbuf) { in mcfqspi_transfer_msg8() 225 *rxbuf++ = mcfqspi_rd_qdr(mcfqspi); in mcfqspi_transfer_msg8() 230 const u16 *txbuf, u16 *rxbuf) in mcfqspi_transfer_msg16() argument 258 if (rxbuf) { in mcfqspi_transfer_msg16() 262 *rxbuf++ = mcfqspi_rd_qdr(mcfqspi); in mcfqspi_transfer_msg16() [all …]
|
D | spi-zynqmp-gqspi.c | 167 void *rxbuf; member 344 memcpy(xqspi->rxbuf, &data, size); in zynqmp_qspi_copy_read_data() 345 xqspi->rxbuf += size; in zynqmp_qspi_copy_read_data() 545 (*(u32 *) xqspi->rxbuf) = in zynqmp_qspi_readrxfifo() 547 xqspi->rxbuf += 4; in zynqmp_qspi_readrxfifo() 573 xqspi->rxbuf += xqspi->dma_rx_bytes; in zynqmp_process_dma_irq() 698 u64 dma_align = (u64)(uintptr_t)xqspi->rxbuf; in zynq_qspi_setuprxdma() 714 addr = dma_map_single(xqspi->dev, (void *)xqspi->rxbuf, in zynq_qspi_setuprxdma() 756 if ((xqspi->txbuf != NULL) && (xqspi->rxbuf == NULL)) { in zynqmp_qspi_txrxsetup() 775 } else if ((xqspi->txbuf == NULL) && (xqspi->rxbuf != NULL)) { in zynqmp_qspi_txrxsetup() [all …]
|
D | spi-txx9.c | 179 void *rxbuf = t->rx_buf; in txx9spi_work_one() local 240 if (rxbuf) { in txx9spi_work_one() 242 *(u8 *)rxbuf = data; in txx9spi_work_one() 244 *(u16 *)rxbuf = data; in txx9spi_work_one() 245 rxbuf += wsize; in txx9spi_work_one()
|
D | spi-ti-qspi.c | 325 u8 *rxbuf; in qspi_read_msg() local 327 rxbuf = t->rx_buf; in qspi_read_msg() 354 *rxbuf = readb(qspi->base + QSPI_SPI_DATA_REG); in qspi_read_msg() 357 *((u16 *)rxbuf) = readw(qspi->base + QSPI_SPI_DATA_REG); in qspi_read_msg() 360 *((u32 *)rxbuf) = readl(qspi->base + QSPI_SPI_DATA_REG); in qspi_read_msg() 363 rxbuf += wlen; in qspi_read_msg()
|
/Linux-v4.19/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-v4.19/drivers/staging/fbtft/ |
D | fb_watterott.c | 140 u8 rxbuf[4] = {0, }; in firmware_version() local 143 par->fbtftops.read(par, rxbuf, 4); in firmware_version() 144 if (rxbuf[1] != '.') in firmware_version() 147 return (rxbuf[0] - '0') << 8 | (rxbuf[2] - '0') << 4 | (rxbuf[3] - '0'); in firmware_version()
|
D | fb_ili9320.c | 26 u8 rxbuf[8] = {0, }; in read_devicecode() local 29 ret = par->fbtftops.read(par, rxbuf, 4); in read_devicecode() 30 return (rxbuf[2] << 8) | rxbuf[3]; in read_devicecode()
|
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_common.c | 1542 struct nfp_net_rx_ring *rx_ring, struct nfp_net_rx_buf *rxbuf, in nfp_net_rx_drop() argument 1550 if (skb && rxbuf) in nfp_net_rx_drop() 1557 if (skb && rxbuf && skb->head == rxbuf->frag) in nfp_net_rx_drop() 1558 page_ref_inc(virt_to_head_page(rxbuf->frag)); in nfp_net_rx_drop() 1559 if (rxbuf) in nfp_net_rx_drop() 1560 nfp_net_rx_give_one(dp, rx_ring, rxbuf->frag, rxbuf->dma_addr); in nfp_net_rx_drop() 1568 struct nfp_net_rx_buf *rxbuf, unsigned int dma_off, in nfp_net_tx_xdp_buf() argument 1582 nfp_net_rx_drop(dp, rx_ring->r_vec, rx_ring, rxbuf, in nfp_net_tx_xdp_buf() 1595 txbuf->frag = rxbuf->frag; in nfp_net_tx_xdp_buf() 1596 txbuf->dma_addr = rxbuf->dma_addr; in nfp_net_tx_xdp_buf() [all …]
|
/Linux-v4.19/drivers/i2c/busses/ |
D | i2c-cpm.c | 118 u_char *rxbuf[CPM_MAXBD]; member 203 rb = cpm->rxbuf[rx]; in cpm_i2c_parse_message() 259 rb = cpm->rxbuf[rx]; in cpm_i2c_check_message() 534 cpm->rxbuf[i] = dma_alloc_coherent(&cpm->ofdev->dev, in cpm_i2c_setup() 537 if (!cpm->rxbuf[i]) { in cpm_i2c_setup() 587 if (cpm->rxbuf[i]) in cpm_i2c_setup() 589 cpm->rxbuf[i], cpm->rxdma[i]); in cpm_i2c_setup() 623 cpm->rxbuf[i], cpm->rxdma[i]); in cpm_i2c_shutdown()
|
/Linux-v4.19/drivers/mtd/spi-nor/ |
D | cadence-quadspi.c | 366 u8 *rxbuf, const unsigned n_rx) in cqspi_command_read() argument 376 if (!n_rx || n_rx > CQSPI_STIG_DATA_LEN_MAX || !rxbuf) { in cqspi_command_read() 378 n_rx, rxbuf); in cqspi_command_read() 400 memcpy(rxbuf, ®, read_len); in cqspi_command_read() 401 rxbuf += read_len; in cqspi_command_read() 407 memcpy(rxbuf, ®, read_len); in cqspi_command_read() 502 static int cqspi_indirect_read_execute(struct spi_nor *nor, u8 *rxbuf, in cqspi_indirect_read_execute() argument 512 u8 *rxbuf_end = rxbuf + n_rx; in cqspi_indirect_read_execute() 548 ioread32_rep(ahb_base, rxbuf, in cqspi_indirect_read_execute() 554 memcpy(rxbuf, &temp, min((unsigned int) in cqspi_indirect_read_execute() [all …]
|
/Linux-v4.19/drivers/tty/serial/ |
D | men_z135_uart.c | 123 unsigned char *rxbuf; member 271 memcpy_fromio(uart->rxbuf, port->membase + MEN_Z135_RX_RAM, room); in men_z135_handle_rx() 276 copied = tty_insert_flip_string(tport, uart->rxbuf, room); in men_z135_handle_rx() 824 uart->rxbuf = (unsigned char *)__get_free_page(GFP_KERNEL); in men_z135_probe() 825 if (!uart->rxbuf) in men_z135_probe() 855 free_page((unsigned long) uart->rxbuf); in men_z135_probe() 872 free_page((unsigned long) uart->rxbuf); in men_z135_remove()
|
/Linux-v4.19/drivers/iio/adc/ |
D | max1363.c | 366 u8 rxbuf[2]; in max1363_read_single_chan() local 393 data = st->recv(client, rxbuf, 2); in max1363_read_single_chan() 398 data = (rxbuf[1] | rxbuf[0] << 8) & in max1363_read_single_chan() 402 data = st->recv(client, rxbuf, 1); in max1363_read_single_chan() 407 data = rxbuf[0]; in max1363_read_single_chan() 1478 __u8 *rxbuf; in max1363_trigger_handler() local 1501 rxbuf = kmalloc(d_size, GFP_KERNEL); in max1363_trigger_handler() 1502 if (rxbuf == NULL) in max1363_trigger_handler() 1505 b_sent = st->recv(st->client, rxbuf, numvals * 2); in max1363_trigger_handler() 1507 b_sent = st->recv(st->client, rxbuf, numvals); in max1363_trigger_handler() [all …]
|