Home
last modified time | relevance | path

Searched refs:read_buf (Results 1 – 25 of 56) sorted by relevance

123

/drivers/media/v4l2-core/
Dvideobuf-core.c198 if (q->read_buf) { in videobuf_queue_is_busy()
796 q->read_buf = videobuf_alloc_vb(q); in videobuf_read_zerocopy()
797 if (NULL == q->read_buf) in videobuf_read_zerocopy()
800 q->read_buf->memory = V4L2_MEMORY_USERPTR; in videobuf_read_zerocopy()
801 q->read_buf->baddr = (unsigned long)data; in videobuf_read_zerocopy()
802 q->read_buf->bsize = count; in videobuf_read_zerocopy()
805 retval = q->ops->buf_prepare(q, q->read_buf, field); in videobuf_read_zerocopy()
811 q->ops->buf_queue(q, q->read_buf); in videobuf_read_zerocopy()
813 retval = videobuf_waiton(q, q->read_buf, 0, 0); in videobuf_read_zerocopy()
815 CALL(q, sync, q, q->read_buf); in videobuf_read_zerocopy()
[all …]
/drivers/net/usb/
Dsmsc95xx.c662 u32 read_buf; in smsc95xx_set_features() local
665 ret = smsc95xx_read_reg(dev, COE_CR, &read_buf); in smsc95xx_set_features()
670 read_buf |= Tx_COE_EN_; in smsc95xx_set_features()
672 read_buf &= ~Tx_COE_EN_; in smsc95xx_set_features()
675 read_buf |= Rx_COE_EN_; in smsc95xx_set_features()
677 read_buf &= ~Rx_COE_EN_; in smsc95xx_set_features()
679 ret = smsc95xx_write_reg(dev, COE_CR, read_buf); in smsc95xx_set_features()
683 netif_dbg(dev, hw, dev->net, "COE_CR = 0x%08x\n", read_buf); in smsc95xx_set_features()
1023 u32 read_buf, write_buf, burst_cap; in smsc95xx_reset() local
1035 ret = smsc95xx_read_reg(dev, HW_CFG, &read_buf); in smsc95xx_reset()
[all …]
/drivers/platform/chrome/
Dcros_ec_debugfs.c199 char read_buf[EC_USB_PD_MAX_PORTS * 40], *p = read_buf; in cros_ec_pdinfo_read() local
236 p += scnprintf(p, sizeof(read_buf) + read_buf - p, in cros_ec_pdinfo_read()
243 read_buf, p - read_buf); in cros_ec_pdinfo_read()
256 char read_buf[32]; in cros_ec_uptime_read() local
268 ret = scnprintf(read_buf, sizeof(read_buf), "%u\n", in cros_ec_uptime_read()
271 return simple_read_from_buffer(user_buf, count, ppos, read_buf, ret); in cros_ec_uptime_read()
/drivers/leds/
Dleds-lm3692x.c145 unsigned int read_buf; in lm3692x_fault_check() local
147 ret = regmap_read(led->regmap, LM3692X_FAULT_FLAGS, &read_buf); in lm3692x_fault_check()
151 if (read_buf) in lm3692x_fault_check()
152 dev_err(&led->client->dev, "Detected a fault 0x%X\n", read_buf); in lm3692x_fault_check()
157 regmap_read(led->regmap, LM3692X_FAULT_FLAGS, &read_buf); in lm3692x_fault_check()
158 if (read_buf) in lm3692x_fault_check()
160 read_buf); in lm3692x_fault_check()
162 return read_buf; in lm3692x_fault_check()
Dleds-lp8860.c183 unsigned int read_buf; in lp8860_fault_check() local
185 ret = regmap_read(led->regmap, LP8860_LED_FAULT, &read_buf); in lp8860_fault_check()
189 fault = read_buf; in lp8860_fault_check()
191 ret = regmap_read(led->regmap, LP8860_FAULT, &read_buf); in lp8860_fault_check()
195 fault |= read_buf; in lp8860_fault_check()
241 unsigned int read_buf; in lp8860_init() local
260 ret = regmap_read(led->regmap, LP8860_STATUS, &read_buf); in lp8860_init()
/drivers/input/misc/
Ddrv2667.c129 unsigned int read_buf; in drv2667_set_waveform_freq() local
143 error = regmap_read(haptics->regmap, DRV2667_PAGE, &read_buf); in drv2667_set_waveform_freq()
150 if (read_buf == DRV2667_PAGE_0 || in drv2667_set_waveform_freq()
151 haptics->page != read_buf) { in drv2667_set_waveform_freq()
167 if (read_buf == DRV2667_PAGE_0 || in drv2667_set_waveform_freq()
168 haptics->page != read_buf) { in drv2667_set_waveform_freq()
169 error = regmap_write(haptics->regmap, DRV2667_PAGE, read_buf); in drv2667_set_waveform_freq()
Ddrv2665.c80 unsigned int read_buf; in drv2665_worker() local
83 error = regmap_read(haptics->regmap, DRV2665_STATUS, &read_buf); in drv2665_worker()
90 if (read_buf & DRV2665_FIFO_EMPTY) { in drv2665_worker()
Dims-pcu.c92 u8 read_buf[IMS_PCU_BUF_SIZE]; member
410 u32 data = get_unaligned_be32(&pcu->read_buf[3]); in ims_pcu_report_events()
419 switch (pcu->read_buf[0]) { in ims_pcu_handle_response()
431 if (pcu->read_buf[0] == pcu->expected_response && in ims_pcu_handle_response()
432 pcu->read_buf[1] == pcu->ack_id - 1) { in ims_pcu_handle_response()
434 memcpy(pcu->cmd_buf, pcu->read_buf, pcu->read_pos); in ims_pcu_handle_response()
455 pcu->read_buf[pcu->read_pos++] = data; in ims_pcu_process_data()
495 pcu->read_buf[pcu->read_pos++] = data; in ims_pcu_process_data()
/drivers/platform/x86/
Dintel_telemetry_pltdrv.c589 u32 read_buf, events, event_regs; in telemetry_setup() local
593 NULL, 0, &read_buf, IOSS_TELEM_READ_WORD); in telemetry_setup()
600 events = (read_buf & TELEM_INFO_SRAMEVTS_MASK) >> in telemetry_setup()
602 event_regs = read_buf & TELEM_INFO_NENABLES_MASK; in telemetry_setup()
611 telm_conf->ioss_config.min_period = TELEM_MIN_PERIOD(read_buf); in telemetry_setup()
612 telm_conf->ioss_config.max_period = TELEM_MAX_PERIOD(read_buf); in telemetry_setup()
616 NULL, &read_buf); in telemetry_setup()
623 events = (read_buf & TELEM_INFO_SRAMEVTS_MASK) >> in telemetry_setup()
625 event_regs = read_buf & TELEM_INFO_SRAMEVTS_MASK; in telemetry_setup()
634 telm_conf->pss_config.min_period = TELEM_MIN_PERIOD(read_buf); in telemetry_setup()
[all …]
/drivers/net/wireless/rsi/
Drsi_91x_sdio.c651 u32 *read_buf, u16 size) in rsi_sdio_master_reg_read() argument
689 *read_buf = *data; in rsi_sdio_master_reg_read()
691 *read_buf = (*data >> 16); in rsi_sdio_master_reg_read()
692 *read_buf = (*read_buf & 0xFFFF); in rsi_sdio_master_reg_read()
695 *read_buf = *data; in rsi_sdio_master_reg_read()
697 *read_buf = (*data >> 8); in rsi_sdio_master_reg_read()
699 *read_buf = (*data >> 16); in rsi_sdio_master_reg_read()
701 *read_buf = (*data >> 24); in rsi_sdio_master_reg_read()
702 *read_buf = (*read_buf & 0xFF); in rsi_sdio_master_reg_read()
704 *read_buf = *data; in rsi_sdio_master_reg_read()
/drivers/input/touchscreen/
Dst1232.c52 u8 *read_buf; member
64 u8 *buf = ts->read_buf; in st1232_ts_read_data()
215 ts->read_buf = devm_kzalloc(&client->dev, ts->read_buf_len, GFP_KERNEL); in st1232_ts_probe()
216 if (!ts->read_buf) in st1232_ts_probe()
Dmelfas_mip4.c181 char *read_buf, unsigned int read_len) in mip4_i2c_xfer() argument
192 .buf = read_buf, in mip4_i2c_xfer()
970 u8 *read_buf; in mip4_bl_verify_page() local
1032 msg[1].buf = read_buf = kmalloc(MIP4_BL_PACKET_SIZE, GFP_KERNEL); in mip4_bl_verify_page()
1033 if (!read_buf) in mip4_bl_verify_page()
1052 if (memcmp(&data[buf_offset], read_buf, MIP4_BL_PACKET_SIZE)) { in mip4_bl_verify_page()
1065 read_buf, MIP4_BL_PAGE_SIZE, false); in mip4_bl_verify_page()
1072 kfree(read_buf); in mip4_bl_verify_page()
/drivers/mtd/nand/raw/
Dplat_nand.c64 data->chip.legacy.read_buf = pdata->ctrl.read_buf; in plat_nand_probe()
Dnand_legacy.c606 if (!chip->legacy.read_buf || chip->legacy.read_buf == nand_read_buf) in nand_legacy_set_defaults()
607 chip->legacy.read_buf = busw ? nand_read_buf16 : nand_read_buf; in nand_legacy_set_defaults()
Dlpc32xx_slc.c618 chip->legacy.read_buf(chip, chip->oob_poi, mtd->oobsize); in lpc32xx_nand_read_page_syndrome()
659 chip->legacy.read_buf(chip, buf, chip->ecc.size * chip->ecc.steps); in lpc32xx_nand_read_page_raw_syndrome()
660 chip->legacy.read_buf(chip, chip->oob_poi, mtd->oobsize); in lpc32xx_nand_read_page_raw_syndrome()
886 chip->legacy.read_buf = lpc32xx_nand_read_buf; in lpc32xx_nand_probe()
Dcmx270_nand.c184 this->legacy.read_buf = cmx270_read_buf; in cmx270_init()
Dpasemi_nand.c132 chip->legacy.read_buf = pasemi_read_buf; in pasemi_nand_probe()
Dsocrates_nand.c153 nand_chip->legacy.read_buf = socrates_nand_read_buf; in socrates_nand_probe()
Doxnas_nand.c132 chip->legacy.read_buf = oxnas_nand_read_buf; in oxnas_nand_probe()
/drivers/tty/
Dn_tty.c112 char read_buf[N_TTY_BUF_SIZE]; member
136 static inline unsigned char read_buf(struct n_tty_data *ldata, size_t i) in read_buf() function
138 return ldata->read_buf[i & (N_TTY_BUF_SIZE - 1)]; in read_buf()
143 return &ldata->read_buf[i & (N_TTY_BUF_SIZE - 1)]; in read_buf_addr()
183 from = ldata->read_buf; in tty_copy_to_user()
1019 c = read_buf(ldata, head); in eraser()
1046 echo_char_raw(read_buf(ldata, head), ldata); in eraser()
1065 c = read_buf(ldata, tail); in eraser()
1339 echo_char(read_buf(ldata, tail), tty); in n_tty_receive_char_special()
2054 if (!found || read_buf(ldata, eol) != __DISABLED_CHAR) { in canon_copy_from_read_buf()
[all …]
/drivers/staging/ks7010/
Dks7010_sdio.c671 u8 *read_buf; in ks7010_sdio_data_compare() local
673 read_buf = kmalloc(ROM_BUFF_SIZE, GFP_KERNEL); in ks7010_sdio_data_compare()
674 if (!read_buf) in ks7010_sdio_data_compare()
677 ret = ks7010_sdio_read(priv, address, read_buf, size); in ks7010_sdio_data_compare()
681 if (memcmp(data, read_buf, size) != 0) { in ks7010_sdio_data_compare()
690 kfree(read_buf); in ks7010_sdio_data_compare()
/drivers/gpu/drm/amd/display/dc/core/
Ddc_link_ddc.c508 uint8_t *read_buf, in dal_ddc_service_query_ddc_data() argument
547 .data = read_buf, in dal_ddc_service_query_ddc_data()
572 payloads, address, read_size, read_buf, false); in dal_ddc_service_query_ddc_data()
/drivers/gpu/drm/amd/display/dc/inc/
Ddc_link_ddc.h95 uint8_t *read_buf,
/drivers/mtd/spi-nor/
Dhisi-sfc.c269 u_char *read_buf) in hisi_spi_nor_read() argument
285 memcpy(read_buf + offset, host->buffer, trans); in hisi_spi_nor_read()
Dintel-spi.c607 u_char *read_buf) in intel_spi_read() argument
664 ret = intel_spi_read_block(ispi, read_buf, block_size); in intel_spi_read()
671 read_buf += block_size; in intel_spi_read()

123