Home
last modified time | relevance | path

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

123

/linux/drivers/media/v4l2-core/
A Dvideobuf-core.c199 if (q->read_buf) { in videobuf_queue_is_busy()
826 kfree(q->read_buf); in videobuf_read_zerocopy()
827 q->read_buf = NULL; in videobuf_read_zerocopy()
913 kfree(q->read_buf); in videobuf_read_one()
914 q->read_buf = NULL; in videobuf_read_one()
935 kfree(q->read_buf); in videobuf_read_one()
936 q->read_buf = NULL; in videobuf_read_one()
950 kfree(q->read_buf); in videobuf_read_one()
951 q->read_buf = NULL; in videobuf_read_one()
1009 q->read_buf = NULL; in __videobuf_read_stop()
[all …]
/linux/drivers/hwmon/pmbus/
A Dadm1266.c63 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
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
199 status = read_buf[0] + (read_buf[1] << 8); in adm1266_gpio_get_multiple()
211 status = read_buf[0] + (read_buf[1] << 8); in adm1266_gpio_get_multiple()
225 u8 read_buf[ADM1266_PMBUS_BLOCK_MAX + 1]; in adm1266_gpio_dbg_show() local
239 gpio_config = read_buf[0]; in adm1266_gpio_dbg_show()
265 pdio_config = read_buf[2 * i]; in adm1266_gpio_dbg_show()
[all …]
/linux/drivers/net/usb/
A Dsmsc95xx.c611 u32 read_buf; in smsc95xx_set_features() local
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()
887 read_buf); in smsc95xx_reset()
889 read_buf |= HW_CFG_BIR_; in smsc95xx_reset()
901 read_buf); in smsc95xx_reset()
927 read_buf); in smsc95xx_reset()
939 read_buf); in smsc95xx_reset()
[all …]
/linux/drivers/input/touchscreen/
A Dst1232.c61 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()
A 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()
/linux/drivers/platform/chrome/
A Dcros_ec_debugfs.c198 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()
/linux/fs/nfsd/
A Dfault_inject.c33 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/drivers/leds/
A 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()
A Dleds-lm3692x.c148 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/drivers/input/misc/
A Ddrv2667.c131 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()
A 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()
/linux/tools/testing/selftests/arm64/fp/
A Dsve-ptrace.c272 void *read_buf = NULL; in ptrace_set_sve_get_sve_data() local
316 if (!get_sve(child, (void **)&read_buf, &read_sve_size)) { in ptrace_set_sve_get_sve_data()
320 read_sve = read_buf; in ptrace_set_sve_get_sve_data()
331 read_buf + SVE_PT_SVE_ZREG_OFFSET(vq, i), in ptrace_set_sve_get_sve_data()
340 read_buf + SVE_PT_SVE_PREG_OFFSET(vq, i), in ptrace_set_sve_get_sve_data()
348 read_buf + SVE_PT_SVE_FPSR_OFFSET(vq), &errors); in ptrace_set_sve_get_sve_data()
350 read_buf + SVE_PT_SVE_FPCR_OFFSET(vq), &errors); in ptrace_set_sve_get_sve_data()
355 free(read_buf); in ptrace_set_sve_get_sve_data()
/linux/drivers/platform/x86/intel/telemetry/
A Dpltdrv.c576 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/samples/mei/
A Dmei-amt-version.c378 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/drivers/net/wireless/rsi/
A Drsi_91x_sdio.c646 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/security/tomoyo/
A Daudit.c446 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/drivers/mtd/nand/raw/
A Dplat_nand.c80 data->chip.legacy.read_buf = pdata->ctrl.read_buf; in plat_nand_probe()
A Dnand_legacy.c610 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/drivers/tty/
A Dn_tty.c113 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()
1988 if (!found || read_buf(ldata, eol) != __DISABLED_CHAR) { in canon_copy_from_read_buf()
[all …]
/linux/drivers/hid/
A Dhid-ft260.c233 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/drivers/staging/ks7010/
A Dks7010_sdio.c672 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/include/linux/mtd/
A Dplatnand.h60 void (*read_buf)(struct nand_chip *chip, uint8_t *buf, int len); member
/linux/include/linux/iio/
A Diio-opaque.h66 char read_buf[20]; member
/linux/drivers/net/ethernet/hisilicon/hns3/
A Dhns3_debugfs.c1221 char *read_buf; in hns3_dbg_read() local
1239 read_buf = *save_buf; in hns3_dbg_read()
1241 read_buf = kvzalloc(hns3_dbg_cmd[index].buf_len, GFP_KERNEL); in hns3_dbg_read()
1242 if (!read_buf) { in hns3_dbg_read()
1248 *save_buf = read_buf; in hns3_dbg_read()
1252 read_buf, hns3_dbg_cmd[index].buf_len); in hns3_dbg_read()
1257 size = simple_read_from_buffer(buffer, count, ppos, read_buf, in hns3_dbg_read()
1258 strlen(read_buf)); in hns3_dbg_read()
/linux/drivers/gpu/drm/amd/display/dc/inc/
A Ddc_link_ddc.h97 uint8_t *read_buf,

Completed in 90 milliseconds

123