/linux/drivers/hwmon/pmbus/ |
H A 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 …]
|
H A D | tda38640.c | 91 u8 read_buf[2]; in svid_mode() local 105 .buf = read_buf, in svid_mode() 106 .len = sizeof(read_buf), in svid_mode() 120 svid = !!(read_buf[1] & BIT(7)); in svid_mode()
|
/linux/tools/testing/selftests/arm64/fp/ |
H A D | za-ptrace.c | 151 void *read_buf = NULL; in ptrace_set_no_data() local 169 if (!get_za(child, (void **)&read_buf, &read_za_size)) { in ptrace_set_no_data() 173 read_za = read_buf; in ptrace_set_no_data() 186 free(read_buf); in ptrace_set_no_data() 193 void *read_buf = NULL; in ptrace_set_get_data() local 224 if (!get_za(child, (void **)&read_buf, &read_za_size)) { in ptrace_set_get_data() 228 read_za = read_buf; in ptrace_set_get_data() 238 read_buf + ZA_PT_ZA_OFFSET, in ptrace_set_get_data() 243 free(read_buf); in ptrace_set_get_data()
|
H A D | sve-ptrace.c | 331 void *read_buf = NULL; in ptrace_set_sve_get_sve_data() local 376 if (!get_sve(child, type, (void **)&read_buf, &read_sve_size)) { in ptrace_set_sve_get_sve_data() 381 read_sve = read_buf; in ptrace_set_sve_get_sve_data() 393 read_buf + SVE_PT_SVE_ZREG_OFFSET(vq, i), in ptrace_set_sve_get_sve_data() 402 read_buf + SVE_PT_SVE_PREG_OFFSET(vq, i), in ptrace_set_sve_get_sve_data() 410 read_buf + SVE_PT_SVE_FPSR_OFFSET(vq), &errors); in ptrace_set_sve_get_sve_data() 412 read_buf + SVE_PT_SVE_FPCR_OFFSET(vq), &errors); in ptrace_set_sve_get_sve_data() 418 free(read_buf); in ptrace_set_sve_get_sve_data() 511 void *read_buf = NULL; in ptrace_set_fpsimd_get_sve_data() local 540 if (!get_sve(child, type, (void **)&read_buf, &read_sve_size)) { in ptrace_set_fpsimd_get_sve_data() [all …]
|
/linux/drivers/input/touchscreen/ |
H A 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()
|
H A 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/drivers/input/misc/ |
H A 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()
|
H A 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/drivers/leds/ |
H A D | leds-lp8860.c | 182 unsigned int read_buf; in lp8860_fault_check() local 184 ret = regmap_read(led->regmap, LP8860_LED_FAULT, &read_buf); in lp8860_fault_check() 188 fault = read_buf; in lp8860_fault_check() 190 ret = regmap_read(led->regmap, LP8860_FAULT, &read_buf); in lp8860_fault_check() 194 fault |= read_buf; in lp8860_fault_check() 240 unsigned int read_buf; in lp8860_init() local 258 ret = regmap_read(led->regmap, LP8860_STATUS, &read_buf); in lp8860_init()
|
H A 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/drivers/platform/x86/intel/telemetry/ |
H A 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/samples/mei/ |
H A 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/drivers/input/joystick/ |
H A D | adafruit-seesaw.c | 148 __be32 read_buf; in seesaw_read_data() local 152 &read_buf, sizeof(read_buf)); in seesaw_read_data() 156 data->button_state = ~be32_to_cpu(read_buf); in seesaw_read_data()
|
/linux/drivers/usb/typec/ucsi/ |
H A D | ucsi_glink.c | 75 u8 read_buf[UCSI_BUF_SIZE]; member 91 memset(ucsi->read_buf, 0, sizeof(ucsi->read_buf)); in pmic_glink_ucsi_read() 107 memcpy(val, &ucsi->read_buf[offset], val_len); in pmic_glink_ucsi_read() 218 memcpy(ucsi->read_buf, resp->buf, UCSI_BUF_SIZE); in pmic_glink_ucsi_read_ack()
|
/linux/drivers/net/wireless/rsi/ |
H A D | rsi_91x_sdio.c | 638 u32 *read_buf, u16 size) in rsi_sdio_master_reg_read() argument 676 *read_buf = *data; in rsi_sdio_master_reg_read() 678 *read_buf = (*data >> 16); in rsi_sdio_master_reg_read() 679 *read_buf = (*read_buf & 0xFFFF); in rsi_sdio_master_reg_read() 682 *read_buf = *data; in rsi_sdio_master_reg_read() 684 *read_buf = (*data >> 8); in rsi_sdio_master_reg_read() 686 *read_buf = (*data >> 16); in rsi_sdio_master_reg_read() 688 *read_buf = (*data >> 24); in rsi_sdio_master_reg_read() 689 *read_buf = (*read_buf & 0xFF); in rsi_sdio_master_reg_read() 691 *read_buf = *data; in rsi_sdio_master_reg_read()
|
/linux/drivers/hid/ |
H A D | hid-steelseries.c | 590 struct hid_report *report, u8 *read_buf, in steelseries_headset_raw_event() argument 604 "Parsing raw event for Arctis 1 headset (%*ph)\n", size, read_buf); in steelseries_headset_raw_event() 606 memcmp (read_buf, arctis_1_battery_request, sizeof(arctis_1_battery_request))) in steelseries_headset_raw_event() 608 if (read_buf[2] == 0x01) { in steelseries_headset_raw_event() 613 capacity = read_buf[3]; in steelseries_headset_raw_event()
|
H A D | hid-ft260.c | 243 u8 *read_buf; member 530 dev->read_buf = data; in ft260_i2c_read() 546 dev->read_buf = NULL; in ft260_i2c_read() 565 dev->read_buf = NULL; in ft260_i2c_read() 1076 if ((dev->read_buf == NULL) || in ft260_raw_event() 1083 memcpy(&dev->read_buf[dev->read_idx], &xfer->data, in ft260_raw_event()
|
/linux/drivers/misc/ |
H A D | pci_endpoint_test.c | 269 void *write_buf, void *read_buf, in pci_endpoint_test_bar_memcmp() argument 275 memcpy_fromio(read_buf, test->bar[barno] + offset, size); in pci_endpoint_test_bar_memcmp() 277 return memcmp(write_buf, read_buf, size); in pci_endpoint_test_bar_memcmp() 285 void *read_buf __free(kfree) = NULL; in pci_endpoint_test_bar() 306 read_buf = kmalloc(buf_size, GFP_KERNEL); in pci_endpoint_test_bar() 307 if (!read_buf) in pci_endpoint_test_bar() 313 write_buf, read_buf, buf_size)) in pci_endpoint_test_bar() 319 write_buf, read_buf, remain)) in pci_endpoint_test_bar()
|
/linux/security/tomoyo/ |
H A 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/drivers/mtd/nand/raw/ |
H A D | plat_nand.c | 80 data->chip.legacy.read_buf = pdata->ctrl.read_buf; in plat_nand_probe()
|
H A 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/drivers/media/i2c/ |
H A D | thp7312.c | 1494 u8 *read_buf, u16 read_size) in __thp7312_flash_reg_read() argument 1512 msgs[1].buf = read_buf; in __thp7312_flash_reg_read() 1551 u8 read_buf[3] = { 0 }; in thp7312_fw_prepare_check() local 1555 ret = thp7312_flash_reg_read(thp7312, thp7312_jedec_rdid, read_buf); in thp7312_fw_prepare_check() 1562 read_buf[0], read_buf[1], read_buf[2]); in thp7312_fw_prepare_check() 1585 u8 read_buf[1] = { 0 }; in thp7312_flash_erase() local 1608 read_buf); in thp7312_flash_erase() 1611 if (!(read_buf[0] & SR_WIP)) in thp7312_flash_erase() 1619 thp7312_flash_reg_read(thp7312, thp7312_jedec_rdsr, read_buf); in thp7312_flash_erase() 1622 if (read_buf[0] & SR_WEL) in thp7312_flash_erase()
|
/linux/include/linux/mtd/ |
H A D | platnand.h | 60 void (*read_buf)(struct nand_chip *chip, uint8_t *buf, int len); member
|
/linux/drivers/iio/ |
H A D | industrialio-backend.c | 134 char read_buf[20]; in iio_backend_debugfs_read_reg() local 143 len = scnprintf(read_buf, sizeof(read_buf), "0x%X\n", val); in iio_backend_debugfs_read_reg() 145 return simple_read_from_buffer(userbuf, count, ppos, read_buf, len); in iio_backend_debugfs_read_reg()
|
/linux/include/linux/iio/ |
H A D | iio-opaque.h | 74 char read_buf[20]; member
|