/linux-6.1.9/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 …]
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/tools/testing/selftests/arm64/fp/ |
D | za-ptrace.c | 141 void *read_buf = NULL; in ptrace_set_no_data() local 159 if (!get_za(child, (void **)&read_buf, &read_za_size)) { in ptrace_set_no_data() 163 read_za = read_buf; in ptrace_set_no_data() 176 free(read_buf); in ptrace_set_no_data() 183 void *read_buf = NULL; in ptrace_set_get_data() local 214 if (!get_za(child, (void **)&read_buf, &read_za_size)) { in ptrace_set_get_data() 218 read_za = read_buf; in ptrace_set_get_data() 228 read_buf + ZA_PT_ZA_OFFSET, in ptrace_set_get_data() 233 free(read_buf); in ptrace_set_get_data()
|
D | sve-ptrace.c | 321 void *read_buf = NULL; in ptrace_set_sve_get_sve_data() local 366 if (!get_sve(child, type, (void **)&read_buf, &read_sve_size)) { in ptrace_set_sve_get_sve_data() 371 read_sve = read_buf; in ptrace_set_sve_get_sve_data() 383 read_buf + SVE_PT_SVE_ZREG_OFFSET(vq, i), in ptrace_set_sve_get_sve_data() 392 read_buf + SVE_PT_SVE_PREG_OFFSET(vq, i), in ptrace_set_sve_get_sve_data() 400 read_buf + SVE_PT_SVE_FPSR_OFFSET(vq), &errors); in ptrace_set_sve_get_sve_data() 402 read_buf + SVE_PT_SVE_FPCR_OFFSET(vq), &errors); in ptrace_set_sve_get_sve_data() 408 free(read_buf); in ptrace_set_sve_get_sve_data() 501 void *read_buf = NULL; in ptrace_set_fpsimd_get_sve_data() local 530 if (!get_sve(child, type, (void **)&read_buf, &read_sve_size)) { in ptrace_set_fpsimd_get_sve_data() [all …]
|
/linux-6.1.9/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()
|
/linux-6.1.9/drivers/net/usb/ |
D | smsc95xx.c | 634 u32 read_buf; in smsc95xx_set_features() local 637 ret = smsc95xx_read_reg(dev, COE_CR, &read_buf); in smsc95xx_set_features() 642 read_buf |= Tx_COE_EN_; in smsc95xx_set_features() 644 read_buf &= ~Tx_COE_EN_; in smsc95xx_set_features() 647 read_buf |= Rx_COE_EN_; in smsc95xx_set_features() 649 read_buf &= ~Rx_COE_EN_; in smsc95xx_set_features() 651 ret = smsc95xx_write_reg(dev, COE_CR, read_buf); in smsc95xx_set_features() 655 netif_dbg(dev, hw, dev->net, "COE_CR = 0x%08x\n", read_buf); in smsc95xx_set_features() 880 u32 read_buf, write_buf, burst_cap; in smsc95xx_reset() local 892 ret = smsc95xx_read_reg(dev, HW_CFG, &read_buf); in smsc95xx_reset() [all …]
|
/linux-6.1.9/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()
|
/linux-6.1.9/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()
|
/linux-6.1.9/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()
|
/linux-6.1.9/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()
|
/linux-6.1.9/samples/mei/ |
D | mei-amt-version.c | 378 uint8_t **read_buf, uint32_t rcmd, in amt_host_if_call() argument 388 *read_buf = (uint8_t *)malloc(sizeof(uint8_t) * in_buf_sz); in amt_host_if_call() 389 if (*read_buf == NULL) in amt_host_if_call() 391 memset(*read_buf, 0, in_buf_sz); in amt_host_if_call() 392 msg_hdr = (struct amt_host_if_resp_header *)*read_buf; in amt_host_if_call() 399 out_buf_sz = mei_recv_msg(&acmd->mei_cl, *read_buf, in_buf_sz, 2000); in amt_host_if_call()
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/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()
|
/linux-6.1.9/security/tomoyo/ |
D | audit.c | 446 kfree(head->read_buf); in tomoyo_read_log() 447 head->read_buf = NULL; in tomoyo_read_log() 457 head->read_buf = ptr->log; in tomoyo_read_log() 458 head->r.w[head->r.w_pos++] = head->read_buf; in tomoyo_read_log()
|
/linux-6.1.9/drivers/mtd/nand/raw/ |
D | plat_nand.c | 80 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()
|
/linux-6.1.9/include/linux/mtd/ |
D | platnand.h | 60 void (*read_buf)(struct nand_chip *chip, uint8_t *buf, int len); member
|
/linux-6.1.9/drivers/tty/ |
D | n_tty.c | 113 char read_buf[N_TTY_BUF_SIZE]; member 140 static inline unsigned char read_buf(struct n_tty_data *ldata, size_t i) in read_buf() function 142 return ldata->read_buf[i & (N_TTY_BUF_SIZE - 1)]; in read_buf() 147 return &ldata->read_buf[i & (N_TTY_BUF_SIZE - 1)]; in read_buf_addr() 183 from = ldata->read_buf; in tty_copy() 998 c = read_buf(ldata, head); in eraser() 1025 echo_char_raw(read_buf(ldata, head), ldata); in eraser() 1044 c = read_buf(ldata, tail); in eraser() 1328 echo_char(read_buf(ldata, tail), tty); in n_tty_receive_char_special() 2017 if (!found || read_buf(ldata, eol) != __DISABLED_CHAR) in canon_copy_from_read_buf() [all …]
|
/linux-6.1.9/include/linux/iio/ |
D | iio-opaque.h | 72 char read_buf[20]; member
|
/linux-6.1.9/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() 1025 memcpy(&dev->read_buf[dev->read_idx], &xfer->data, in ft260_raw_event()
|
/linux-6.1.9/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()
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/inc/ |
D | dc_link_ddc.h | 97 uint8_t *read_buf,
|