/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/net/usb/ |
D | smsc95xx.c | 611 u32 read_buf; in smsc95xx_set_features() local 614 ret = smsc95xx_read_reg(dev, COE_CR, &read_buf); in smsc95xx_set_features() 619 read_buf |= Tx_COE_EN_; in smsc95xx_set_features() 621 read_buf &= ~Tx_COE_EN_; in smsc95xx_set_features() 624 read_buf |= Rx_COE_EN_; in smsc95xx_set_features() 626 read_buf &= ~Rx_COE_EN_; in smsc95xx_set_features() 628 ret = smsc95xx_write_reg(dev, COE_CR, read_buf); in smsc95xx_set_features() 632 netif_dbg(dev, hw, dev->net, "COE_CR = 0x%08x\n", read_buf); in smsc95xx_set_features() 833 u32 read_buf, write_buf, burst_cap; in smsc95xx_reset() local 845 ret = smsc95xx_read_reg(dev, HW_CFG, &read_buf); in smsc95xx_reset() [all …]
|
/kernel/linux/linux-5.10/drivers/platform/chrome/ |
D | cros_ec_debugfs.c | 198 char read_buf[EC_USB_PD_MAX_PORTS * 40], *p = read_buf; in cros_ec_pdinfo_read() local 235 p += scnprintf(p, sizeof(read_buf) + read_buf - p, in cros_ec_pdinfo_read() 242 read_buf, p - read_buf); in cros_ec_pdinfo_read() 274 char read_buf[32]; in cros_ec_uptime_read() local 286 ret = scnprintf(read_buf, sizeof(read_buf), "%u\n", in cros_ec_uptime_read() 289 return simple_read_from_buffer(user_buf, count, ppos, read_buf, ret); in cros_ec_uptime_read()
|
/kernel/linux/linux-5.10/fs/nfsd/ |
D | fault_inject.c | 33 char read_buf[25]; in fault_inject_read() local 40 size = scnprintf(read_buf, sizeof(read_buf), "%llu\n", val); in fault_inject_read() 42 return simple_read_from_buffer(buf, len, ppos, read_buf, size); in fault_inject_read()
|
/kernel/linux/linux-5.10/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 | 149 unsigned int read_buf; in lm3692x_fault_check() local 151 ret = regmap_read(led->regmap, LM3692X_FAULT_FLAGS, &read_buf); in lm3692x_fault_check() 155 if (read_buf) in lm3692x_fault_check() 156 dev_err(&led->client->dev, "Detected a fault 0x%X\n", read_buf); in lm3692x_fault_check() 161 regmap_read(led->regmap, LM3692X_FAULT_FLAGS, &read_buf); in lm3692x_fault_check() 162 if (read_buf) in lm3692x_fault_check() 164 read_buf); in lm3692x_fault_check() 166 return read_buf; in lm3692x_fault_check()
|
/kernel/linux/linux-5.10/drivers/input/misc/ |
D | drv2667.c | 129 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()
|
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()
|
/kernel/linux/linux-5.10/drivers/input/touchscreen/ |
D | st1232.c | 48 u8 *read_buf; member 65 .buf = ts->read_buf, in st1232_ts_read_data() 87 u8 *buf = &ts->read_buf[i * 4]; in st1232_ts_parse_and_report() 98 z[n_contacts] = ts->read_buf[i + 6]; in st1232_ts_parse_and_report() 210 ts->read_buf = devm_kzalloc(&client->dev, ts->read_buf_len, GFP_KERNEL); in st1232_ts_probe() 211 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()
|
/kernel/linux/linux-5.10/samples/mei/ |
D | mei-amt-version.c | 369 uint8_t **read_buf, uint32_t rcmd, in amt_host_if_call() argument 379 *read_buf = (uint8_t *)malloc(sizeof(uint8_t) * in_buf_sz); in amt_host_if_call() 380 if (*read_buf == NULL) in amt_host_if_call() 382 memset(*read_buf, 0, in_buf_sz); in amt_host_if_call() 383 msg_hdr = (struct amt_host_if_resp_header *)*read_buf; in amt_host_if_call() 390 out_buf_sz = mei_recv_msg(&acmd->mei_cl, *read_buf, in_buf_sz, 2000); in amt_host_if_call()
|
/kernel/linux/linux-5.10/drivers/platform/x86/ |
D | intel_telemetry_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 …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/security/tomoyo/ |
D | audit.c | 445 kfree(head->read_buf); in tomoyo_read_log() 446 head->read_buf = NULL; in tomoyo_read_log() 456 head->read_buf = ptr->log; in tomoyo_read_log() 457 head->r.w[head->r.w_pos++] = head->read_buf; in tomoyo_read_log()
|
D | common.c | 288 len = vsnprintf(head->read_buf + pos, size, fmt, args) + 1; in tomoyo_io_printf() 295 tomoyo_set_string(head, head->read_buf + pos); in tomoyo_io_printf() 1021 if (!head->read_buf) in tomoyo_select_domain() 2211 kfree(head->read_buf); in tomoyo_read_query() 2212 head->read_buf = NULL; in tomoyo_read_query() 2248 head->read_buf = buf; in tomoyo_read_query() 2481 head->read_buf = kzalloc(head->readbuf_size, GFP_NOFS); in tomoyo_open_control() 2482 if (!head->read_buf) { in tomoyo_open_control() 2497 kfree(head->read_buf); in tomoyo_open_control()
|
/kernel/linux/linux-5.10/include/linux/iio/ |
D | iio-opaque.h | 28 char read_buf[20]; member
|
/kernel/linux/linux-5.10/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 | 609 if (!chip->legacy.read_buf || chip->legacy.read_buf == nand_read_buf) in nand_legacy_set_defaults() 610 chip->legacy.read_buf = busw ? nand_read_buf16 : nand_read_buf; in nand_legacy_set_defaults()
|
/kernel/linux/linux-5.10/include/linux/mtd/ |
D | platnand.h | 60 void (*read_buf)(struct nand_chip *chip, uint8_t *buf, int len); member
|
/kernel/linux/linux-5.10/drivers/tty/ |
D | n_tty.c | 112 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() 179 from = ldata->read_buf; in tty_copy() 1014 c = read_buf(ldata, head); in eraser() 1041 echo_char_raw(read_buf(ldata, head), ldata); in eraser() 1060 c = read_buf(ldata, tail); in eraser() 1334 echo_char(read_buf(ldata, tail), tty); in n_tty_receive_char_special() 2049 if (!found || read_buf(ldata, eol) != __DISABLED_CHAR) { in canon_copy_from_read_buf() [all …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/inc/ |
D | dc_link_ddc.h | 95 uint8_t *read_buf,
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/core/ |
D | dc_link_ddc.c | 495 uint8_t *read_buf, in dal_ddc_service_query_ddc_data() argument 547 payload.data = read_buf; in dal_ddc_service_query_ddc_data() 567 &payloads, address, read_size, read_buf, false); in dal_ddc_service_query_ddc_data()
|