Home
last modified time | relevance | path

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

12

/drivers/net/wireless/ath/ath9k/
Dhtc_drv_txrx.c960 struct ath9k_htc_rxbuf *rxbuf, in ath9k_rx_prepare() argument
966 struct sk_buff *skb = rxbuf->skb; in ath9k_rx_prepare()
992 memcpy(&rxbuf->rxstatus, rxstatus, HTC_RX_FRAME_HEADER_SIZE); in ath9k_rx_prepare()
1007 if (rxbuf->rxstatus.rs_status != 0) { in ath9k_rx_prepare()
1008 if (rxbuf->rxstatus.rs_status & ATH9K_RXERR_CRC) in ath9k_rx_prepare()
1010 if (rxbuf->rxstatus.rs_status & ATH9K_RXERR_PHY) in ath9k_rx_prepare()
1013 if (rxbuf->rxstatus.rs_status & ATH9K_RXERR_DECRYPT) { in ath9k_rx_prepare()
1015 } else if (rxbuf->rxstatus.rs_status & ATH9K_RXERR_MIC) { in ath9k_rx_prepare()
1022 rxbuf->rxstatus.rs_status &= ~ATH9K_RXERR_MIC; in ath9k_rx_prepare()
1033 if (rxbuf->rxstatus.rs_status & in ath9k_rx_prepare()
[all …]
Drecv.c115 bf = list_first_entry(&sc->rx.rxbuf, struct ath_buf, list); in ath_rx_edma_buf_link()
138 if (list_empty(&sc->rx.rxbuf)) { in ath_rx_addbuffer_edma()
143 list_for_each_entry_safe(bf, tbf, &sc->rx.rxbuf, list) in ath_rx_addbuffer_edma()
161 list_add_tail(&bf->list, &sc->rx.rxbuf); in ath_rx_remove_buffer()
174 list_for_each_entry(bf, &sc->rx.rxbuf, list) { in ath_rx_edma_cleanup()
214 INIT_LIST_HEAD(&sc->rx.rxbuf); in ath_rx_edma_init()
240 list_add_tail(&bf->list, &sc->rx.rxbuf); in ath_rx_edma_init()
285 error = ath_descdma_setup(sc, &sc->rx.rxdma, &sc->rx.rxbuf, in ath_rx_init()
294 list_for_each_entry(bf, &sc->rx.rxbuf, list) { in ath_rx_init()
337 list_for_each_entry(bf, &sc->rx.rxbuf, list) { in ath_rx_cleanup()
[all …]
/drivers/rtc/
Drtc-pcf2123.c91 u8 txbuf[1], rxbuf[1]; in pcf2123_show() local
101 ret = spi_write_then_read(spi, txbuf, 1, rxbuf, 1); in pcf2123_show()
105 return sprintf(buffer, "0x%x\n", rxbuf[0]); in pcf2123_show()
136 u8 txbuf[1], rxbuf[7]; in pcf2123_rtc_read_time() local
141 rxbuf, sizeof(rxbuf)); in pcf2123_rtc_read_time()
146 tm->tm_sec = bcd2bin(rxbuf[0] & 0x7F); in pcf2123_rtc_read_time()
147 tm->tm_min = bcd2bin(rxbuf[1] & 0x7F); in pcf2123_rtc_read_time()
148 tm->tm_hour = bcd2bin(rxbuf[2] & 0x3F); /* rtc hr 0-23 */ in pcf2123_rtc_read_time()
149 tm->tm_mday = bcd2bin(rxbuf[3] & 0x3F); in pcf2123_rtc_read_time()
150 tm->tm_wday = rxbuf[4] & 0x07; in pcf2123_rtc_read_time()
[all …]
Drtc-rs5c348.c104 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 …]
Drtc-r9701.c57 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/
Dlattice-ecp3-config.c76 u8 rxbuf[8]; in firmware_load() local
94 ret = spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); in firmware_load()
95 dev_dbg(&spi->dev, "FPGA JTAG ID=%08x\n", *(u32 *)&rxbuf[4]); in firmware_load()
96 jedec_id = *(u32 *)&rxbuf[4]; in firmware_load()
112 ret = spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); in firmware_load()
113 dev_dbg(&spi->dev, "FPGA Status=%08x\n", *(u32 *)&rxbuf[4]); in firmware_load()
144 ret = spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); in firmware_load()
145 status = *(u32 *)&rxbuf[4]; in firmware_load()
167 ret = spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); in firmware_load()
168 dev_dbg(&spi->dev, "FPGA Status=%08x\n", *(u32 *)&rxbuf[4]); in firmware_load()
[all …]
/drivers/hwmon/
Dlm70.c61 u8 rxbuf[2]; in lm70_sense_temp() local
72 status = spi_write_then_read(spi, NULL, 0, &rxbuf[0], 2); in lm70_sense_temp()
77 raw = (rxbuf[0] << 8) + rxbuf[1]; in lm70_sense_temp()
79 rxbuf[0], rxbuf[1], raw); in lm70_sense_temp()
/drivers/net/wireless/iwlwifi/
Diwl-devtrace.h43 void *rxbuf, size_t len) in iwl_rx_trace_len() argument
45 struct iwl_cmd_header *cmd = (void *)((u8 *)rxbuf + sizeof(__le32)); in iwl_rx_trace_len()
328 void *rxbuf, size_t len),
329 TP_ARGS(dev, trans, rxbuf, len),
334 len - iwl_rx_trace_len(trans, rxbuf, len))
337 size_t offs = iwl_rx_trace_len(trans, rxbuf, len);
341 ((u8 *)rxbuf) + offs, len - offs);
381 void *rxbuf, size_t len),
382 TP_ARGS(dev, trans, rxbuf, len),
385 __dynamic_array(u8, rxbuf, iwl_rx_trace_len(trans, rxbuf, len))
[all …]
/drivers/spi/
Dspi-coldfire-qspi.c170 const u8 *txbuf, u8 *rxbuf) in mcfqspi_transfer_msg8() argument
198 if (rxbuf) { in mcfqspi_transfer_msg8()
202 *rxbuf++ = mcfqspi_rd_qdr(mcfqspi); in mcfqspi_transfer_msg8()
218 if (rxbuf) { in mcfqspi_transfer_msg8()
221 *rxbuf++ = mcfqspi_rd_qdr(mcfqspi); in mcfqspi_transfer_msg8()
229 if (rxbuf) { in mcfqspi_transfer_msg8()
232 *rxbuf++ = mcfqspi_rd_qdr(mcfqspi); in mcfqspi_transfer_msg8()
237 const u16 *txbuf, u16 *rxbuf) in mcfqspi_transfer_msg16() argument
265 if (rxbuf) { in mcfqspi_transfer_msg16()
269 *rxbuf++ = mcfqspi_rd_qdr(mcfqspi); in mcfqspi_transfer_msg16()
[all …]
Dspi-txx9.c187 void *rxbuf = t->rx_buf; in txx9spi_work_one() local
247 if (rxbuf) { in txx9spi_work_one()
249 *(u8 *)rxbuf = data; in txx9spi_work_one()
251 *(u16 *)rxbuf = data; in txx9spi_work_one()
252 rxbuf += wsize; in txx9spi_work_one()
/drivers/i2c/busses/
Di2c-cpm.c122 u_char *rxbuf[CPM_MAXBD]; member
209 rb = cpm->rxbuf[rx]; in cpm_i2c_parse_message()
265 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()
/drivers/iio/adc/
Dmax1363.c342 u8 rxbuf[2]; in max1363_read_single_chan() local
369 data = i2c_master_recv(client, rxbuf, 2); in max1363_read_single_chan()
374 data = (rxbuf[1] | rxbuf[0] << 8) & in max1363_read_single_chan()
378 data = i2c_master_recv(client, rxbuf, 1); in max1363_read_single_chan()
383 data = rxbuf[0]; in max1363_read_single_chan()
1440 __u8 *rxbuf; in max1363_trigger_handler() local
1463 rxbuf = kmalloc(d_size, GFP_KERNEL); in max1363_trigger_handler()
1464 if (rxbuf == NULL) in max1363_trigger_handler()
1467 b_sent = i2c_master_recv(st->client, rxbuf, numvals*2); in max1363_trigger_handler()
1469 b_sent = i2c_master_recv(st->client, rxbuf, numvals); in max1363_trigger_handler()
[all …]
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_io.c1168 struct qlcnic_rx_buffer *rxbuf; in qlcnic_process_rcv_ring() local
1188 rxbuf = qlcnic_process_rcv(adapter, sds_ring, ring, in qlcnic_process_rcv_ring()
1194 rxbuf = qlcnic_process_lro(adapter, ring, sts_data0, in qlcnic_process_rcv_ring()
1204 if (likely(rxbuf)) in qlcnic_process_rcv_ring()
1205 list_add_tail(&rxbuf->list, &sds_ring->free_list[ring]); in qlcnic_process_rcv_ring()
1221 rxbuf = list_entry(cur, struct qlcnic_rx_buffer, in qlcnic_process_rcv_ring()
1223 qlcnic_alloc_rx_skb(adapter, rds_ring, rxbuf); in qlcnic_process_rcv_ring()
1629 struct qlcnic_rx_buffer *rxbuf = NULL; in qlcnic_83xx_process_rcv_ring() local
1646 rxbuf = qlcnic_83xx_process_rcv(adapter, sds_ring, in qlcnic_83xx_process_rcv_ring()
1650 rxbuf = qlcnic_83xx_process_lro(adapter, ring, in qlcnic_83xx_process_rcv_ring()
[all …]
/drivers/net/wan/
Dcosa.c161 char *txbuf, *rxbuf; member
1861 cosa->rxbuf = NULL; in rx_interrupt()
1863 cosa->rxbuf = cosa->rxchan->setup_rx(cosa->rxchan, cosa->rxsize); in rx_interrupt()
1865 if (!cosa->rxbuf) { in rx_interrupt()
1869 cosa->rxbuf = cosa->bouncebuf; in rx_interrupt()
1877 if (cosa_dma_able(cosa->rxchan, cosa->rxbuf, cosa->rxsize & 0x1fff)) { in rx_interrupt()
1878 set_dma_addr(cosa->dma, virt_to_bus(cosa->rxbuf)); in rx_interrupt()
1917 pr_cont(" %02x", cosa->rxbuf[i]&0xff); in eot_interrupt()
1922 if (cosa->rxbuf == cosa->bouncebuf) in eot_interrupt()
1924 if (!cosa_dma_able(cosa->rxchan, cosa->rxbuf, cosa->rxsize)) in eot_interrupt()
[all …]
/drivers/tty/serial/
Dpch_uart.c240 struct pch_uart_buffer rxbuf; member
823 buf = &priv->rxbuf; in handle_rx_to()
1732 unsigned char *rxbuf; in pch_uart_init_port() local
1745 rxbuf = (unsigned char *)__get_free_page(GFP_KERNEL); in pch_uart_init_port()
1746 if (!rxbuf) in pch_uart_init_port()
1772 priv->rxbuf.buf = rxbuf; in pch_uart_init_port()
1773 priv->rxbuf.size = PAGE_SIZE; in pch_uart_init_port()
1815 free_page((unsigned long)rxbuf); in pch_uart_init_port()
1832 free_page((unsigned long)priv->rxbuf.buf); in pch_uart_exit_port()
Dmrst_max3110.c86 const void *txbuf, void *rxbuf, unsigned len, int always_fast) in max3110_write_then_read() argument
97 x.rx_buf = rxbuf; in max3110_write_then_read()
Dmfd.c84 struct hsu_dma_buffer rxbuf; member
387 struct hsu_dma_buffer *dbuf = &up->rxbuf; in hsu_dma_rx()
803 dbuf = &up->rxbuf; in serial_hsu_startup()
/drivers/staging/iio/adc/
Dad799x_core.c128 u16 rxbuf; in ad799x_scan_direct() local
151 ret = ad799x_i2c_read16(st, cmd, &rxbuf); in ad799x_scan_direct()
155 return rxbuf; in ad799x_scan_direct()
/drivers/video/backlight/
Dhx8357.c148 u8 *rxbuf, u16 rxlen) in hx8357_spi_write_then_read() argument
182 xfer[1].rx_buf = rxbuf; in hx8357_spi_write_then_read()
/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_init.c1674 struct netxen_rx_buffer *rxbuf; in netxen_process_rcv_ring() local
1698 rxbuf = netxen_process_rcv(adapter, sds_ring, in netxen_process_rcv_ring()
1704 rxbuf = netxen_process_lro(adapter, sds_ring, in netxen_process_rcv_ring()
1715 if (rxbuf) in netxen_process_rcv_ring()
1716 list_add_tail(&rxbuf->list, &sds_ring->free_list[ring]); in netxen_process_rcv_ring()
1734 rxbuf = list_entry(cur, in netxen_process_rcv_ring()
1736 netxen_alloc_rx_skb(adapter, rds_ring, rxbuf); in netxen_process_rcv_ring()
/drivers/net/wireless/ath/ath5k/
Dbase.c814 INIT_LIST_HEAD(&ah->rxbuf); in ath5k_desc_alloc()
818 list_add_tail(&bf->list, &ah->rxbuf); in ath5k_desc_alloc()
882 list_for_each_entry(bf, &ah->rxbuf, list) in ath5k_desc_free()
1101 list_for_each_entry(bf, &ah->rxbuf, list) { in ath5k_rx_start()
1108 bf = list_first_entry(&ah->rxbuf, struct ath5k_buf, list); in ath5k_rx_start()
1458 if (list_empty(&ah->rxbuf)) { in ath5k_tasklet_rx()
1463 bf = list_first_entry(&ah->rxbuf, struct ath5k_buf, list); in ath5k_tasklet_rx()
1503 list_move_tail(&bf->list, &ah->rxbuf); in ath5k_tasklet_rx()
/drivers/mfd/
Dtwl4030-irq.c379 u8 rxbuf[4]; in twl4030_init_sih_modules() local
397 status = twl_i2c_read(sih->module, rxbuf, in twl4030_init_sih_modules()
/drivers/media/dvb-core/
Ddvb_ca_en50221.c981 void *rxbuf; in dvb_ca_en50221_thread() local
1121 rxbuf = vmalloc(RX_BUFFER_SIZE); in dvb_ca_en50221_thread()
1122 if (rxbuf == NULL) { in dvb_ca_en50221_thread()
1128 dvb_ringbuffer_init(&ca->slot_info[slot].rx_buffer, rxbuf, RX_BUFFER_SIZE); in dvb_ca_en50221_thread()
/drivers/net/wireless/brcm80211/brcmfmac/
Ddhd_sdio.c447 u8 *rxbuf; /* Buffer for receiving control packets */ member
1485 rbuf = bus->rxbuf; in brcmf_sdbrcm_read_control()
3589 kfree(bus->rxbuf); in brcmf_sdbrcm_release_malloc()
3590 bus->rxctl = bus->rxbuf = NULL; in brcmf_sdbrcm_release_malloc()
3605 bus->rxbuf = kmalloc(bus->rxblen, GFP_ATOMIC); in brcmf_sdbrcm_probe_malloc()
3606 if (!(bus->rxbuf)) in brcmf_sdbrcm_probe_malloc()
3615 kfree(bus->rxbuf); in brcmf_sdbrcm_probe_malloc()
/drivers/net/can/usb/
Dkvaser_usb.c292 void *rxbuf[MAX_RX_URBS]; member
1067 dev->rxbuf[i] = buf; in kvaser_usb_setup_rx_urbs()
1171 dev->rxbuf[i], in kvaser_usb_unlink_all_urbs()

12