/linux-4.19.296/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-4.19.296/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-4.19.296/drivers/i2c/busses/ |
D | i2c-cpm.c | 121 u_char *rxbuf[CPM_MAXBD]; member 206 rb = cpm->rxbuf[rx]; in cpm_i2c_parse_message() 262 rb = cpm->rxbuf[rx]; in cpm_i2c_check_message() 537 cpm->rxbuf[i] = dma_alloc_coherent(&cpm->ofdev->dev, in cpm_i2c_setup() 540 if (!cpm->rxbuf[i]) { in cpm_i2c_setup() 590 if (cpm->rxbuf[i]) in cpm_i2c_setup() 592 cpm->rxbuf[i], cpm->rxdma[i]); in cpm_i2c_setup() 626 cpm->rxbuf[i], cpm->rxdma[i]); in cpm_i2c_shutdown()
|
/linux-4.19.296/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 …]
|
/linux-4.19.296/drivers/media/dvb-core/ |
D | dvb_ca_en50221.c | 1142 void *rxbuf; in dvb_ca_en50221_thread_state_machine() local 1251 rxbuf = vmalloc(RX_BUFFER_SIZE); in dvb_ca_en50221_thread_state_machine() 1252 if (!rxbuf) { in dvb_ca_en50221_thread_state_machine() 1259 dvb_ringbuffer_init(&sl->rx_buffer, rxbuf, in dvb_ca_en50221_thread_state_machine()
|
/linux-4.19.296/include/linux/spi/ |
D | spi.h | 1128 void *rxbuf, unsigned n_rx);
|