Home
last modified time | relevance | path

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

123

/linux/drivers/rtc/
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 …]
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 …]
A Drtc-r9701.c54 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/sound/soc/codecs/
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 …]
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/
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/iio/chemical/
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()
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/wireless/ath/ath9k/
A Dhtc_drv_txrx.c1083 rxbuf = tmp_buf; in ath9k_rx_tasklet()
1093 if (!rxbuf->skb) in ath9k_rx_tasklet()
1103 skb = rxbuf->skb; in ath9k_rx_tasklet()
1117 list_move_tail(&rxbuf->list, &priv->rx.rxbuf); in ath9k_rx_tasklet()
1118 rxbuf = NULL; in ath9k_rx_tasklet()
1136 rxbuf = tmp_buf; in ath9k_htc_rxep()
1148 rxbuf->skb = skb; in ath9k_htc_rxep()
1164 list_for_each_entry_safe(rxbuf, tbuf, &priv->rx.rxbuf, list) { in ath9k_rx_cleanup()
1166 if (rxbuf->skb) in ath9k_rx_cleanup()
1168 kfree(rxbuf); in ath9k_rx_cleanup()
[all …]
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/net/wireless/intel/iwlwifi/
A Diwl-devtrace-data.h40 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/drivers/hwmon/
A Dlm70.c51 u8 rxbuf[2]; in temp1_input_show() local
61 status = spi_write_then_read(spi, NULL, 0, &rxbuf[0], 2); in temp1_input_show()
67 raw = (rxbuf[0] << 8) + rxbuf[1]; in temp1_input_show()
69 rxbuf[0], rxbuf[1], raw); in temp1_input_show()
/linux/drivers/spi/
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 …]
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()
576 xqspi->rxbuf = NULL; in zynq_qspi_exec_mem_op()
594 xqspi->rxbuf = NULL; in zynq_qspi_exec_mem_op()
[all …]
A Dspi-zynqmp-gqspi.c167 void *rxbuf; member
347 memcpy(xqspi->rxbuf, &data, size); in zynqmp_qspi_copy_read_data()
348 xqspi->rxbuf += size; in zynqmp_qspi_copy_read_data()
541 (*(u32 *)xqspi->rxbuf) = in zynqmp_qspi_readrxfifo()
543 xqspi->rxbuf += 4; in zynqmp_qspi_readrxfifo()
572 } else if (xqspi->rxbuf) { in zynqmp_qspi_fillgenfifo()
643 xqspi->rxbuf += xqspi->dma_rx_bytes; in zynqmp_process_dma_irq()
958 xqspi->rxbuf = NULL; in zynqmp_qspi_exec_op()
983 xqspi->rxbuf = NULL; in zynqmp_qspi_exec_op()
1004 xqspi->rxbuf = NULL; in zynqmp_qspi_exec_op()
[all …]
/linux/drivers/iio/adc/
A Dltc2496.c30 unsigned char rxbuf[3] ____cacheline_aligned; member
41 .rx_buf = st->rxbuf, in ltc2496_result_and_measure()
56 *val = ((st->rxbuf[0] & 0x3f) << 12 | in ltc2496_result_and_measure()
57 st->rxbuf[1] << 4 | st->rxbuf[2] >> 4) - in ltc2496_result_and_measure()
/linux/drivers/net/dsa/b53/
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/iio/accel/
A Dsca3300.c119 u8 rxbuf[4]; member
139 .rx_buf = sca_data->rxbuf, in sca3300_transfer()
140 .len = ARRAY_SIZE(sca_data->rxbuf), in sca3300_transfer()
156 crc = ~crc8(sca3300_crc_table, &sca_data->rxbuf[0], 3, CRC8_INIT_VALUE); in sca3300_transfer()
157 if (sca_data->rxbuf[3] != crc) { in sca3300_transfer()
163 rs = sca_data->rxbuf[0] & SCA3300_MASK_RS_STATUS; in sca3300_transfer()
167 *val = sign_extend32(get_unaligned_be16(&sca_data->rxbuf[1]), 15); in sca3300_transfer()
/linux/drivers/staging/fbtft/
A Dfb_watterott.c134 u8 rxbuf[4] = {0, }; in firmware_version() local
137 par->fbtftops.read(par, rxbuf, 4); in firmware_version()
138 if (rxbuf[1] != '.') in firmware_version()
141 return (rxbuf[0] - '0') << 8 | (rxbuf[2] - '0') << 4 | (rxbuf[3] - '0'); in firmware_version()
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/
A Dsparx5_packet.c58 u32 *rxbuf; in sparx5_xtr_grp() local
85 rxbuf = (u32 *)skb->data; in sparx5_xtr_grp()
119 *rxbuf = spx5_rd(sparx5, QS_XTR_RD(grp)); in sparx5_xtr_grp()
121 rxbuf++; in sparx5_xtr_grp()
124 *rxbuf = val; in sparx5_xtr_grp()
126 rxbuf++; in sparx5_xtr_grp()
/linux/drivers/net/ethernet/netronome/nfp/
A Dnfp_net_common.c1729 if (skb && rxbuf) in nfp_net_rx_drop()
1736 if (skb && rxbuf && skb->head == rxbuf->frag) in nfp_net_rx_drop()
1738 if (rxbuf) in nfp_net_rx_drop()
1739 nfp_net_rx_give_one(dp, rx_ring, rxbuf->frag, rxbuf->dma_addr); in nfp_net_rx_drop()
1779 txbuf->frag = rxbuf->frag; in nfp_net_tx_xdp_buf()
1907 rxbuf->frag + meta_off, in nfp_net_rx()
1908 rxbuf->frag + pkt_off, in nfp_net_rx()
1939 tx_ring, rxbuf, in nfp_net_rx()
1954 rxbuf->dma_addr); in nfp_net_rx()
1967 rxbuf->dma_addr); in nfp_net_rx()
[all …]
/linux/drivers/net/ethernet/aquantia/atlantic/
A Daq_ring.c61 static int aq_get_rxpages(struct aq_ring_s *self, struct aq_ring_buff_s *rxbuf, in aq_get_rxpages() argument
66 if (rxbuf->rxdata.page) { in aq_get_rxpages()
68 if (page_ref_count(rxbuf->rxdata.page) > 1) { in aq_get_rxpages()
70 rxbuf->rxdata.pg_off += AQ_CFG_RX_FRAME_MAX; in aq_get_rxpages()
71 if (rxbuf->rxdata.pg_off + AQ_CFG_RX_FRAME_MAX <= in aq_get_rxpages()
80 aq_free_rxpage(&rxbuf->rxdata, in aq_get_rxpages()
87 rxbuf->rxdata.pg_off = 0; in aq_get_rxpages()
94 if (!rxbuf->rxdata.page) { in aq_get_rxpages()
95 ret = aq_get_rxpage(&rxbuf->rxdata, order, in aq_get_rxpages()
/linux/drivers/i2c/busses/
A Di2c-cpm.c112 u_char *rxbuf[CPM_MAXBD]; member
197 rb = cpm->rxbuf[rx]; in cpm_i2c_parse_message()
253 rb = cpm->rxbuf[rx]; in cpm_i2c_check_message()
528 cpm->rxbuf[i] = dma_alloc_coherent(&cpm->ofdev->dev, in cpm_i2c_setup()
531 if (!cpm->rxbuf[i]) { in cpm_i2c_setup()
583 if (cpm->rxbuf[i]) in cpm_i2c_setup()
585 cpm->rxbuf[i], cpm->rxdma[i]); in cpm_i2c_setup()
619 cpm->rxbuf[i], cpm->rxdma[i]); in cpm_i2c_shutdown()
/linux/drivers/gpu/drm/i915/display/
A Dintel_dp_aux.c406 u8 txbuf[20], rxbuf[20]; in intel_dp_aux_transfer() local
429 rxbuf, rxsize, flags); in intel_dp_aux_transfer()
431 msg->reply = rxbuf[0] >> 4; in intel_dp_aux_transfer()
435 ret = clamp_t(int, rxbuf[1], 0, msg->size); in intel_dp_aux_transfer()
452 rxbuf, rxsize, flags); in intel_dp_aux_transfer()
454 msg->reply = rxbuf[0] >> 4; in intel_dp_aux_transfer()
462 memcpy(msg->buffer, rxbuf + 1, ret); in intel_dp_aux_transfer()

Completed in 53 milliseconds

123