/drivers/media/v4l2-core/ |
D | videobuf-core.c | 199 if (q->read_buf) { in videobuf_queue_is_busy() 797 q->read_buf = videobuf_alloc_vb(q); in videobuf_read_zerocopy() 798 if (NULL == q->read_buf) in videobuf_read_zerocopy() 801 q->read_buf->memory = V4L2_MEMORY_USERPTR; in videobuf_read_zerocopy() 802 q->read_buf->baddr = (unsigned long)data; in videobuf_read_zerocopy() 803 q->read_buf->bsize = count; in videobuf_read_zerocopy() 806 retval = q->ops->buf_prepare(q, q->read_buf, field); in videobuf_read_zerocopy() 812 q->ops->buf_queue(q, q->read_buf); in videobuf_read_zerocopy() 814 retval = videobuf_waiton(q, q->read_buf, 0, 0); in videobuf_read_zerocopy() 816 CALL(q, sync, q, q->read_buf); in videobuf_read_zerocopy() [all …]
|
/drivers/hwmon/pmbus/ |
D | adm1266.c | 63 u8 read_buf[ADM1266_PMBUS_BLOCK_MAX + 1] ____cacheline_aligned; member 96 .buf = data->read_buf, in adm1266_pmbus_block_xfer() 165 u8 read_buf[I2C_SMBUS_BLOCK_MAX + 1]; in adm1266_gpio_get() local 175 ret = i2c_smbus_read_block_data(data->client, pmbus_cmd, read_buf); in adm1266_gpio_get() 179 pins_status = read_buf[0] + (read_buf[1] << 8); in adm1266_gpio_get() 190 u8 read_buf[ADM1266_PMBUS_BLOCK_MAX + 1]; in adm1266_gpio_get_multiple() local 195 ret = i2c_smbus_read_block_data(data->client, ADM1266_GPIO_STATUS, read_buf); in adm1266_gpio_get_multiple() 199 status = read_buf[0] + (read_buf[1] << 8); in adm1266_gpio_get_multiple() 207 ret = i2c_smbus_read_block_data(data->client, ADM1266_PDIO_STATUS, read_buf); in adm1266_gpio_get_multiple() 211 status = read_buf[0] + (read_buf[1] << 8); in adm1266_gpio_get_multiple() [all …]
|
/drivers/net/usb/ |
D | smsc95xx.c | 623 u32 read_buf; in smsc95xx_set_features() local 626 ret = smsc95xx_read_reg(dev, COE_CR, &read_buf); in smsc95xx_set_features() 631 read_buf |= Tx_COE_EN_; in smsc95xx_set_features() 633 read_buf &= ~Tx_COE_EN_; in smsc95xx_set_features() 636 read_buf |= Rx_COE_EN_; in smsc95xx_set_features() 638 read_buf &= ~Rx_COE_EN_; in smsc95xx_set_features() 640 ret = smsc95xx_write_reg(dev, COE_CR, read_buf); in smsc95xx_set_features() 644 netif_dbg(dev, hw, dev->net, "COE_CR = 0x%08x\n", read_buf); in smsc95xx_set_features() 845 u32 read_buf, write_buf, burst_cap; in smsc95xx_reset() local 857 ret = smsc95xx_read_reg(dev, HW_CFG, &read_buf); in smsc95xx_reset() [all …]
|
/drivers/input/touchscreen/ |
D | st1232.c | 61 u8 *read_buf; member 78 .buf = ts->read_buf, in st1232_ts_read_data() 98 switch (ts->read_buf[0]) { in st1232_ts_wait_ready() 122 buf = ts->read_buf; in st1232_ts_read_resolution() 140 u8 *buf = &ts->read_buf[i * 4]; in st1232_ts_parse_and_report() 151 z[n_contacts] = ts->read_buf[i + 6]; in st1232_ts_parse_and_report() 258 ts->read_buf = devm_kzalloc(&client->dev, ts->read_buf_len, GFP_KERNEL); in st1232_ts_probe() 259 if (!ts->read_buf) in st1232_ts_probe()
|
D | melfas_mip4.c | 181 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/platform/chrome/ |
D | cros_ec_debugfs.c | 199 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() 275 char read_buf[32]; in cros_ec_uptime_read() local 287 ret = scnprintf(read_buf, sizeof(read_buf), "%u\n", in cros_ec_uptime_read() 290 return simple_read_from_buffer(user_buf, count, ppos, read_buf, ret); in cros_ec_uptime_read()
|
/drivers/leds/ |
D | leds-lp8860.c | 183 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()
|
D | leds-lm3692x.c | 148 unsigned int read_buf; in lm3692x_fault_check() local 150 ret = regmap_read(led->regmap, LM3692X_FAULT_FLAGS, &read_buf); in lm3692x_fault_check() 154 if (read_buf) in lm3692x_fault_check() 155 dev_err(&led->client->dev, "Detected a fault 0x%X\n", read_buf); in lm3692x_fault_check() 160 regmap_read(led->regmap, LM3692X_FAULT_FLAGS, &read_buf); in lm3692x_fault_check() 161 if (read_buf) in lm3692x_fault_check() 163 read_buf); in lm3692x_fault_check() 165 return read_buf; in lm3692x_fault_check()
|
/drivers/input/misc/ |
D | drv2667.c | 131 unsigned int read_buf; in drv2667_set_waveform_freq() local 145 error = regmap_read(haptics->regmap, DRV2667_PAGE, &read_buf); in drv2667_set_waveform_freq() 152 if (read_buf == DRV2667_PAGE_0 || in drv2667_set_waveform_freq() 153 haptics->page != read_buf) { in drv2667_set_waveform_freq() 169 if (read_buf == DRV2667_PAGE_0 || in drv2667_set_waveform_freq() 170 haptics->page != read_buf) { in drv2667_set_waveform_freq() 171 error = regmap_write(haptics->regmap, DRV2667_PAGE, read_buf); in drv2667_set_waveform_freq()
|
D | drv2665.c | 80 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()
|
D | ims-pcu.c | 92 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/intel/telemetry/ |
D | pltdrv.c | 576 u32 read_buf, events, event_regs; in telemetry_setup() local 581 &read_buf, sizeof(read_buf)); in telemetry_setup() 588 events = (read_buf & TELEM_INFO_SRAMEVTS_MASK) >> in telemetry_setup() 590 event_regs = read_buf & TELEM_INFO_NENABLES_MASK; in telemetry_setup() 599 telm_conf->ioss_config.min_period = TELEM_MIN_PERIOD(read_buf); in telemetry_setup() 600 telm_conf->ioss_config.max_period = TELEM_MAX_PERIOD(read_buf); in telemetry_setup() 604 NULL, &read_buf); in telemetry_setup() 611 events = (read_buf & TELEM_INFO_SRAMEVTS_MASK) >> in telemetry_setup() 613 event_regs = read_buf & TELEM_INFO_SRAMEVTS_MASK; in telemetry_setup() 622 telm_conf->pss_config.min_period = TELEM_MIN_PERIOD(read_buf); in telemetry_setup() [all …]
|
/drivers/net/wireless/rsi/ |
D | rsi_91x_sdio.c | 646 u32 *read_buf, u16 size) in rsi_sdio_master_reg_read() argument 684 *read_buf = *data; in rsi_sdio_master_reg_read() 686 *read_buf = (*data >> 16); in rsi_sdio_master_reg_read() 687 *read_buf = (*read_buf & 0xFFFF); in rsi_sdio_master_reg_read() 690 *read_buf = *data; in rsi_sdio_master_reg_read() 692 *read_buf = (*data >> 8); in rsi_sdio_master_reg_read() 694 *read_buf = (*data >> 16); in rsi_sdio_master_reg_read() 696 *read_buf = (*data >> 24); in rsi_sdio_master_reg_read() 697 *read_buf = (*read_buf & 0xFF); in rsi_sdio_master_reg_read() 699 *read_buf = *data; in rsi_sdio_master_reg_read()
|
/drivers/tty/ |
D | n_tty.c | 113 char read_buf[N_TTY_BUF_SIZE]; member 137 static inline unsigned char read_buf(struct n_tty_data *ldata, size_t i) in read_buf() function 139 return ldata->read_buf[i & (N_TTY_BUF_SIZE - 1)]; in read_buf() 144 return &ldata->read_buf[i & (N_TTY_BUF_SIZE - 1)]; in read_buf_addr() 180 from = ldata->read_buf; in tty_copy() 1016 c = read_buf(ldata, head); in eraser() 1043 echo_char_raw(read_buf(ldata, head), ldata); in eraser() 1062 c = read_buf(ldata, tail); in eraser() 1331 echo_char(read_buf(ldata, tail), tty); in n_tty_receive_char_special() 1999 if (!found || read_buf(ldata, eol) != __DISABLED_CHAR) in canon_copy_from_read_buf() [all …]
|
/drivers/mtd/nand/raw/ |
D | plat_nand.c | 82 data->chip.legacy.read_buf = pdata->ctrl.read_buf; in plat_nand_probe()
|
D | nand_legacy.c | 610 if (!chip->legacy.read_buf || chip->legacy.read_buf == nand_read_buf) in nand_legacy_set_defaults() 611 chip->legacy.read_buf = busw ? nand_read_buf16 : nand_read_buf; in nand_legacy_set_defaults()
|
D | lpc32xx_slc.c | 630 chip->legacy.read_buf(chip, chip->oob_poi, mtd->oobsize); in lpc32xx_nand_read_page_syndrome() 671 chip->legacy.read_buf(chip, buf, chip->ecc.size * chip->ecc.steps); in lpc32xx_nand_read_page_raw_syndrome() 672 chip->legacy.read_buf(chip, chip->oob_poi, mtd->oobsize); in lpc32xx_nand_read_page_raw_syndrome() 911 chip->legacy.read_buf = lpc32xx_nand_read_buf; in lpc32xx_nand_probe()
|
D | socrates_nand.c | 171 nand_chip->legacy.read_buf = socrates_nand_read_buf; in socrates_nand_probe()
|
D | pasemi_nand.c | 149 chip->legacy.read_buf = pasemi_read_buf; in pasemi_nand_probe()
|
D | oxnas_nand.c | 133 chip->legacy.read_buf = oxnas_nand_read_buf; in oxnas_nand_probe()
|
/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_debugfs.c | 1016 char *read_buf; in hns3_dbg_read() local 1034 read_buf = *save_buf; in hns3_dbg_read() 1036 read_buf = kvzalloc(hns3_dbg_cmd[index].buf_len, GFP_KERNEL); in hns3_dbg_read() 1037 if (!read_buf) { in hns3_dbg_read() 1043 *save_buf = read_buf; in hns3_dbg_read() 1047 read_buf, hns3_dbg_cmd[index].buf_len); in hns3_dbg_read() 1052 size = simple_read_from_buffer(buffer, count, ppos, read_buf, in hns3_dbg_read() 1053 strlen(read_buf)); in hns3_dbg_read()
|
/drivers/hid/ |
D | hid-ft260.c | 233 u8 *read_buf; member 471 dev->read_buf = data; in ft260_i2c_read() 515 u8 *read_buf = msgs[1].buf; in ft260_i2c_write_read() local 542 ret = ft260_i2c_read(dev, addr, read_buf, len, in ft260_i2c_write_read() 548 read_buf += len; in ft260_i2c_write_read() 1026 memcpy(&dev->read_buf[dev->read_idx], &xfer->data, in ft260_raw_event()
|
/drivers/staging/ks7010/ |
D | ks7010_sdio.c | 672 u8 *read_buf; in ks7010_sdio_data_compare() local 674 read_buf = kmalloc(ROM_BUFF_SIZE, GFP_KERNEL); in ks7010_sdio_data_compare() 675 if (!read_buf) in ks7010_sdio_data_compare() 678 ret = ks7010_sdio_read(priv, address, read_buf, size); in ks7010_sdio_data_compare() 682 if (memcmp(data, read_buf, size) != 0) { in ks7010_sdio_data_compare() 691 kfree(read_buf); in ks7010_sdio_data_compare()
|
/drivers/gpu/drm/amd/display/dc/inc/ |
D | dc_link_ddc.h | 96 uint8_t *read_buf,
|
/drivers/gpu/drm/amd/display/dc/core/ |
D | dc_link_ddc.c | 524 uint8_t *read_buf, in dal_ddc_service_query_ddc_data() argument 576 payload.data = read_buf; in dal_ddc_service_query_ddc_data() 596 &payloads, address, read_size, read_buf, false); in dal_ddc_service_query_ddc_data()
|