/drivers/rtc/ |
D | rtc-pcf2123.c | 92 u8 txbuf[1], rxbuf[1]; in pcf2123_show() local 103 ret = spi_write_then_read(spi, txbuf, 1, rxbuf, 1); in pcf2123_show() 107 return sprintf(buffer, "0x%x\n", rxbuf[0]); in pcf2123_show() 142 u8 txbuf[1], rxbuf[7]; in pcf2123_rtc_read_time() local 147 rxbuf, sizeof(rxbuf)); in pcf2123_rtc_read_time() 152 tm->tm_sec = bcd2bin(rxbuf[0] & 0x7F); in pcf2123_rtc_read_time() 153 tm->tm_min = bcd2bin(rxbuf[1] & 0x7F); in pcf2123_rtc_read_time() 154 tm->tm_hour = bcd2bin(rxbuf[2] & 0x3F); /* rtc hr 0-23 */ in pcf2123_rtc_read_time() 155 tm->tm_mday = bcd2bin(rxbuf[3] & 0x3F); in pcf2123_rtc_read_time() 156 tm->tm_wday = rxbuf[4] & 0x07; in pcf2123_rtc_read_time() [all …]
|
D | rtc-rs5c348.c | 104 u8 txbuf[5], rxbuf[7]; in rs5c348_rtc_read_time() local 116 rxbuf, sizeof(rxbuf)); in rs5c348_rtc_read_time() 121 tm->tm_sec = bcd2bin(rxbuf[RS5C348_REG_SECS] & RS5C348_SECS_MASK); in rs5c348_rtc_read_time() 122 tm->tm_min = bcd2bin(rxbuf[RS5C348_REG_MINS] & RS5C348_MINS_MASK); in rs5c348_rtc_read_time() 123 tm->tm_hour = bcd2bin(rxbuf[RS5C348_REG_HOURS] & RS5C348_HOURS_MASK); in rs5c348_rtc_read_time() 125 if (rxbuf[RS5C348_REG_HOURS] & RS5C348_BIT_PM) { in rs5c348_rtc_read_time() 132 tm->tm_wday = bcd2bin(rxbuf[RS5C348_REG_WDAY] & RS5C348_WDAY_MASK); in rs5c348_rtc_read_time() 133 tm->tm_mday = bcd2bin(rxbuf[RS5C348_REG_DAY] & RS5C348_DAY_MASK); in rs5c348_rtc_read_time() 135 bcd2bin(rxbuf[RS5C348_REG_MONTH] & RS5C348_MONTH_MASK) - 1; in rs5c348_rtc_read_time() 137 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()
|
/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()
|
/drivers/net/wireless/ath/ath9k/ |
D | htc_drv_txrx.c | 963 struct ath9k_htc_rxbuf *rxbuf, in ath9k_rx_prepare() argument 969 struct sk_buff *skb = rxbuf->skb; in ath9k_rx_prepare() 1066 struct ath9k_htc_rxbuf *rxbuf = NULL, *tmp_buf = NULL; in ath9k_rx_tasklet() local 1074 list_for_each_entry(tmp_buf, &priv->rx.rxbuf, list) { in ath9k_rx_tasklet() 1076 rxbuf = tmp_buf; in ath9k_rx_tasklet() 1081 if (rxbuf == NULL) { in ath9k_rx_tasklet() 1086 if (!rxbuf->skb) in ath9k_rx_tasklet() 1089 if (!ath9k_rx_prepare(priv, rxbuf, &rx_status)) { in ath9k_rx_tasklet() 1090 dev_kfree_skb_any(rxbuf->skb); in ath9k_rx_tasklet() 1094 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 …]
|
/drivers/net/wireless/iwlwifi/ |
D | iwl-devtrace-data.h | 57 void *rxbuf, size_t len), 58 TP_ARGS(dev, trans, rxbuf, len), 63 len - iwl_rx_trace_len(trans, rxbuf, len)) 66 size_t offs = iwl_rx_trace_len(trans, rxbuf, len); 70 ((u8 *)rxbuf) + offs, len - offs);
|
D | iwl-devtrace.h | 44 void *rxbuf, size_t len) in iwl_rx_trace_len() argument 46 struct iwl_cmd_header *cmd = (void *)((u8 *)rxbuf + sizeof(__le32)); in iwl_rx_trace_len()
|
D | iwl-devtrace-iwlwifi.h | 77 __dynamic_array(u8, rxbuf, iwl_rx_trace_len(trans, pkt, len)) 82 memcpy(__get_dynamic_array(rxbuf), pkt,
|
/drivers/hwmon/ |
D | lm70.c | 63 u8 rxbuf[2]; in lm70_sense_temp() local 73 status = spi_write_then_read(spi, NULL, 0, &rxbuf[0], 2); in lm70_sense_temp() 78 raw = (rxbuf[0] << 8) + rxbuf[1]; in lm70_sense_temp() 80 rxbuf[0], rxbuf[1], raw); in lm70_sense_temp()
|
/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 | 165 void *rxbuf; member 342 memcpy(xqspi->rxbuf, &data, size); in zynqmp_qspi_copy_read_data() 343 xqspi->rxbuf += size; in zynqmp_qspi_copy_read_data() 553 (*(u32 *) xqspi->rxbuf) = in zynqmp_qspi_readrxfifo() 555 xqspi->rxbuf += 4; in zynqmp_qspi_readrxfifo() 581 xqspi->rxbuf += xqspi->dma_rx_bytes; in zynqmp_process_dma_irq() 706 u64 dma_align = (u64)(uintptr_t)xqspi->rxbuf; in zynq_qspi_setuprxdma() 722 addr = dma_map_single(xqspi->dev, (void *)xqspi->rxbuf, in zynq_qspi_setuprxdma() 764 if ((xqspi->txbuf != NULL) && (xqspi->rxbuf == NULL)) { in zynqmp_qspi_txrxsetup() 783 } else if ((xqspi->txbuf == NULL) && (xqspi->rxbuf != NULL)) { in zynqmp_qspi_txrxsetup() [all …]
|
D | spi-ti-qspi.c | 303 u8 *rxbuf; in qspi_read_msg() local 305 rxbuf = t->rx_buf; in qspi_read_msg() 332 *rxbuf = readb(qspi->base + QSPI_SPI_DATA_REG); in qspi_read_msg() 335 *((u16 *)rxbuf) = readw(qspi->base + QSPI_SPI_DATA_REG); in qspi_read_msg() 338 *((u32 *)rxbuf) = readl(qspi->base + QSPI_SPI_DATA_REG); in qspi_read_msg() 341 rxbuf += wlen; in qspi_read_msg()
|
D | spi-txx9.c | 180 void *rxbuf = t->rx_buf; in txx9spi_work_one() local 241 if (rxbuf) { in txx9spi_work_one() 243 *(u8 *)rxbuf = data; in txx9spi_work_one() 245 *(u16 *)rxbuf = data; in txx9spi_work_one() 246 rxbuf += wsize; in txx9spi_work_one()
|
D | spi-cadence.c | 122 u8 *rxbuf; member 370 if (xspi->rxbuf) in cdns_spi_irq() 371 *xspi->rxbuf++ = data; in cdns_spi_irq() 417 xspi->rxbuf = transfer->rx_buf; in cdns_transfer_one()
|
/drivers/staging/fbtft/ |
D | fb_watterott.c | 142 u8 rxbuf[4] = {0, }; in firmware_version() local 145 par->fbtftops.read(par, rxbuf, 4); in firmware_version() 146 if (rxbuf[1] != '.') in firmware_version() 149 return (rxbuf[0] - '0') << 8 | (rxbuf[2] - '0') << 4 | (rxbuf[3] - '0'); in firmware_version()
|
D | fb_ili9320.c | 35 u8 rxbuf[8] = {0, }; in read_devicecode() local 38 ret = par->fbtftops.read(par, rxbuf, 4); in read_devicecode() 39 return (rxbuf[2] << 8) | rxbuf[3]; in read_devicecode()
|
/drivers/i2c/busses/ |
D | i2c-cpm.c | 121 u_char *rxbuf[CPM_MAXBD]; member 208 rb = cpm->rxbuf[rx]; in cpm_i2c_parse_message() 264 rb = cpm->rxbuf[rx]; in cpm_i2c_check_message() 539 cpm->rxbuf[i] = dma_alloc_coherent(&cpm->ofdev->dev, in cpm_i2c_setup() 542 if (!cpm->rxbuf[i]) { in cpm_i2c_setup() 592 if (cpm->rxbuf[i]) in cpm_i2c_setup() 594 cpm->rxbuf[i], cpm->rxdma[i]); in cpm_i2c_setup() 628 cpm->rxbuf[i], cpm->rxdma[i]); in cpm_i2c_shutdown()
|
/drivers/tty/serial/ |
D | men_z135_uart.c | 126 unsigned char *rxbuf; member 274 memcpy_fromio(uart->rxbuf, port->membase + MEN_Z135_RX_RAM, room); in men_z135_handle_rx() 279 copied = tty_insert_flip_string(tport, uart->rxbuf, room); in men_z135_handle_rx() 827 uart->rxbuf = (unsigned char *)__get_free_page(GFP_KERNEL); in men_z135_probe() 828 if (!uart->rxbuf) in men_z135_probe() 858 free_page((unsigned long) uart->rxbuf); in men_z135_probe() 875 free_page((unsigned long) uart->rxbuf); in men_z135_remove()
|
D | pch_uart.c | 241 struct pch_uart_buffer rxbuf; member 851 buf = &priv->rxbuf; in handle_rx_to() 1762 unsigned char *rxbuf; in pch_uart_init_port() local 1777 rxbuf = (unsigned char *)__get_free_page(GFP_KERNEL); in pch_uart_init_port() 1778 if (!rxbuf) in pch_uart_init_port() 1804 priv->rxbuf.buf = rxbuf; in pch_uart_init_port() 1805 priv->rxbuf.size = PAGE_SIZE; in pch_uart_init_port() 1851 free_page((unsigned long)rxbuf); in pch_uart_init_port() 1867 free_page((unsigned long)priv->rxbuf.buf); in pch_uart_exit_port()
|
/drivers/iio/adc/ |
D | max1363.c | 364 u8 rxbuf[2]; in max1363_read_single_chan() local 391 data = st->recv(client, rxbuf, 2); in max1363_read_single_chan() 396 data = (rxbuf[1] | rxbuf[0] << 8) & in max1363_read_single_chan() 400 data = st->recv(client, rxbuf, 1); in max1363_read_single_chan() 405 data = rxbuf[0]; in max1363_read_single_chan() 1476 __u8 *rxbuf; in max1363_trigger_handler() local 1499 rxbuf = kmalloc(d_size, GFP_KERNEL); in max1363_trigger_handler() 1500 if (rxbuf == NULL) in max1363_trigger_handler() 1503 b_sent = st->recv(st->client, rxbuf, numvals * 2); in max1363_trigger_handler() 1505 b_sent = st->recv(st->client, rxbuf, numvals); in max1363_trigger_handler() [all …]
|
/drivers/net/wan/ |
D | cosa.c | 161 char *txbuf, *rxbuf; member 1860 cosa->rxbuf = NULL; in rx_interrupt() 1862 cosa->rxbuf = cosa->rxchan->setup_rx(cosa->rxchan, cosa->rxsize); in rx_interrupt() 1864 if (!cosa->rxbuf) { in rx_interrupt() 1868 cosa->rxbuf = cosa->bouncebuf; in rx_interrupt() 1876 if (cosa_dma_able(cosa->rxchan, cosa->rxbuf, cosa->rxsize & 0x1fff)) { in rx_interrupt() 1877 set_dma_addr(cosa->dma, virt_to_bus(cosa->rxbuf)); in rx_interrupt() 1916 pr_cont(" %02x", cosa->rxbuf[i]&0xff); in eot_interrupt() 1921 if (cosa->rxbuf == cosa->bouncebuf) in eot_interrupt() 1923 if (!cosa_dma_able(cosa->rxchan, cosa->rxbuf, cosa->rxsize)) in eot_interrupt() [all …]
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_io.c | 1360 struct qlcnic_rx_buffer *rxbuf; in qlcnic_process_rcv_ring() local 1380 rxbuf = qlcnic_process_rcv(adapter, sds_ring, ring, in qlcnic_process_rcv_ring() 1386 rxbuf = qlcnic_process_lro(adapter, ring, sts_data0, in qlcnic_process_rcv_ring() 1396 if (likely(rxbuf)) in qlcnic_process_rcv_ring() 1397 list_add_tail(&rxbuf->list, &sds_ring->free_list[ring]); in qlcnic_process_rcv_ring() 1413 rxbuf = list_entry(cur, struct qlcnic_rx_buffer, in qlcnic_process_rcv_ring() 1415 qlcnic_alloc_rx_skb(adapter, rds_ring, rxbuf); in qlcnic_process_rcv_ring() 1884 struct qlcnic_rx_buffer *rxbuf = NULL; in qlcnic_83xx_process_rcv_ring() local 1901 rxbuf = qlcnic_83xx_process_rcv(adapter, sds_ring, in qlcnic_83xx_process_rcv_ring() 1905 rxbuf = qlcnic_83xx_process_lro(adapter, ring, in qlcnic_83xx_process_rcv_ring() [all …]
|
/drivers/net/ethernet/intel/e1000/ |
D | e1000_main.c | 2127 if (buffer_info->rxbuf.data) { in e1000_clean_rx_ring() 2128 skb_free_frag(buffer_info->rxbuf.data); in e1000_clean_rx_ring() 2129 buffer_info->rxbuf.data = NULL; in e1000_clean_rx_ring() 2136 if (buffer_info->rxbuf.page) { in e1000_clean_rx_ring() 2137 put_page(buffer_info->rxbuf.page); in e1000_clean_rx_ring() 2138 buffer_info->rxbuf.page = NULL; in e1000_clean_rx_ring() 3481 (u64)buffer_info->dma, buffer_info->rxbuf.data, type); in e1000_dump() 4012 bi->rxbuf.page = NULL; in e1000_consume_page() 4201 u8 *mapped = page_address(buffer_info->rxbuf.page); in e1000_clean_jumbo_rx_irq() 4231 buffer_info->rxbuf.page, in e1000_clean_jumbo_rx_irq() [all …]
|
/drivers/staging/dgnc/ |
D | digi.h | 114 unsigned long rxbuf; member
|