Home
last modified time | relevance | path

Searched refs:read_data (Results 1 – 25 of 69) sorted by relevance

123

/linux-6.12.1/drivers/net/ethernet/huawei/hinic/
Dhinic_debugfs.c86 struct hinic_cmd_lt_rd *read_data; in hinic_dbg_get_func_table() local
87 u16 out_size = sizeof(*read_data); in hinic_dbg_get_func_table()
91 read_data = kzalloc(sizeof(*read_data), GFP_KERNEL); in hinic_dbg_get_func_table()
92 if (!read_data) in hinic_dbg_get_func_table()
95 read_data->node = TBL_ID_FUNC_CFG_SM_NODE; in hinic_dbg_get_func_table()
96 read_data->inst = TBL_ID_FUNC_CFG_SM_INST; in hinic_dbg_get_func_table()
97 read_data->entry_size = HINIC_FUNCTION_CONFIGURE_TABLE_SIZE; in hinic_dbg_get_func_table()
98 read_data->lt_index = HINIC_HWIF_FUNC_IDX(nic_dev->hwdev->hwif); in hinic_dbg_get_func_table()
99 read_data->len = HINIC_FUNCTION_CONFIGURE_TABLE_SIZE; in hinic_dbg_get_func_table()
101 err = hinic_port_msg_cmd(nic_dev->hwdev, HINIC_PORT_CMD_RD_LINE_TBL, read_data, in hinic_dbg_get_func_table()
[all …]
/linux-6.12.1/kernel/time/
Dsched_clock.c40 struct clock_read_data read_data[2]; member
62 .read_data[0] = { .mult = NSEC_PER_SEC / HZ,
75 return cd.read_data + (*seq & 1); in sched_clock_read_begin()
91 rd = cd.read_data + (seq & 1); in sched_clock_noinstr()
123 cd.read_data[1] = *rd; in update_clock_read_data()
129 cd.read_data[0] = *rd; in update_clock_read_data()
144 rd = cd.read_data[0]; in update_sched_clock()
188 rd = cd.read_data[0]; in sched_clock_register()
272 return cd.read_data[seq & 1].epoch_cyc; in suspended_sched_clock_read()
277 struct clock_read_data *rd = &cd.read_data[0]; in sched_clock_suspend()
[all …]
/linux-6.12.1/drivers/char/ipmi/
Dipmi_bt_sm.c82 unsigned char read_data[IPMI_MAX_MSG_LENGTH + 2]; /* +2 for memcpy */ member
192 bt->read_data[0] = 4; /* # following bytes */ in force_result()
193 bt->read_data[1] = bt->write_data[1] | 4; /* Odd NetFn/LUN */ in force_result()
194 bt->read_data[2] = bt->write_data[2]; /* seq (ignored) */ in force_result()
195 bt->read_data[3] = bt->write_data[3]; /* Command */ in force_result()
196 bt->read_data[4] = completion_code; in force_result()
258 data[0] = bt->read_data[1]; in bt_get_result()
259 data[1] = bt->read_data[3]; in bt_get_result()
264 memcpy(data + 2, bt->read_data + 4, msg_len - 2); in bt_get_result()
341 bt->read_data[0] = BMC2HOST; in read_all_bytes()
[all …]
Dipmi_kcs_sm.c115 unsigned char read_data[MAX_KCS_READ_SIZE]; member
154 static inline unsigned char read_data(struct si_sm_data *kcs) in read_data() function
211 read_data(kcs); in read_next_byte()
214 kcs->read_data[kcs->read_pos] = read_data(kcs); in read_next_byte()
255 read_data(kcs); in clear_obf()
310 memcpy(data, kcs->read_data, kcs->read_pos); in get_kcs_result()
383 read_data(kcs); in kcs_event()
Dipmi_smic_sm.c97 unsigned char read_data[MAX_SMIC_READ_SIZE]; member
162 pr_cont(" %02x", smic->read_data[i]); in smic_get_result()
169 memcpy(data, smic->read_data, smic->read_pos); in smic_get_result()
244 smic->read_data[smic->read_pos] = read_smic_data(smic); in read_next_byte()
/linux-6.12.1/tools/testing/selftests/bpf/progs/
Ddynptr_fail.c156 char read_data[64]; in use_after_invalid() local
158 bpf_ringbuf_reserve_dynptr(&ringbuf, sizeof(read_data), 0, &ptr); in use_after_invalid()
160 bpf_dynptr_read(read_data, sizeof(read_data), &ptr, 0, 0); in use_after_invalid()
165 bpf_dynptr_read(read_data, sizeof(read_data), &ptr, 0, 0); in use_after_invalid()
420 char read_data[64]; in invalid_helper2() local
425 bpf_dynptr_read(read_data, sizeof(read_data), (void *)&ptr + 8, 0, 0); in invalid_helper2()
458 char read_data[64]; in invalid_write2() local
466 bpf_dynptr_read(read_data, sizeof(read_data), &ptr, 0, 0); in invalid_write2()
563 char read_data[64]; in invalid_read2() local
568 bpf_dynptr_read(read_data, sizeof(read_data), (void *)&ptr + 1, 0, 0); in invalid_read2()
[all …]
Ddynptr_success.c40 char read_data[64] = {}; in test_read_write() local
53 err = err ?: bpf_dynptr_read(read_data, sizeof(read_data), &ptr, 0, 0); in test_read_write()
56 for (i = 0; i < sizeof(read_data); i++) { in test_read_write()
57 if (read_data[i] != write_data[i]) { in test_read_write()
326 char write_data = 'x', read_data; in test_zero_size_dynptr() local
345 if (bpf_dynptr_read(&read_data, sizeof(read_data), &ptr, 0, 0) != -E2BIG) { in test_zero_size_dynptr()
356 if (bpf_dynptr_read(&read_data, 0, &ptr, 0, 0)) { in test_zero_size_dynptr()
/linux-6.12.1/tools/testing/selftests/kvm/aarch64/
Dvpmu_counter_access.c241 uint64_t write_data, read_data; in test_access_pmc_regs() local
271 read_data = acc->read_typer(pmc_idx); in test_access_pmc_regs()
272 __GUEST_ASSERT(read_data == write_data, in test_access_pmc_regs()
274 pmc_idx, PMC_ACC_TO_IDX(acc), read_data, write_data); in test_access_pmc_regs()
280 read_data = acc->read_cntr(pmc_idx); in test_access_pmc_regs()
283 __GUEST_ASSERT(read_data == 0, in test_access_pmc_regs()
285 pmc_idx, PMC_ACC_TO_IDX(acc), read_data); in test_access_pmc_regs()
287 write_data = read_data + pmc_idx + 0x12345; in test_access_pmc_regs()
289 read_data = acc->read_cntr(pmc_idx); in test_access_pmc_regs()
290 __GUEST_ASSERT(read_data == write_data, in test_access_pmc_regs()
[all …]
/linux-6.12.1/drivers/net/wwan/iosm/
Diosm_ipc_flash.c453 u8 psi_ack_byte[IOSM_PSI_ACK], read_data[2]; in ipc_flash_boot_psi() local
469 ret = ipc_imem_sys_devlink_read(ipc_devlink, read_data, in ipc_flash_boot_psi()
481 snprintf(psi_ack_byte, sizeof(psi_ack_byte), "%x%x", read_data[0], in ipc_flash_boot_psi()
482 read_data[1]); in ipc_flash_boot_psi()
486 if (read_data[0] == 0x00 && read_data[1] == 0xCD) { in ipc_flash_boot_psi()
510 u8 read_data[2]; in ipc_flash_boot_ebl() local
530 ret = ipc_imem_sys_devlink_read(ipc_devlink, read_data, IOSM_READ_SIZE, in ipc_flash_boot_ebl()
549 ret = ipc_imem_sys_devlink_read(ipc_devlink, read_data, IOSM_READ_SIZE, in ipc_flash_boot_ebl()
569 ret = ipc_imem_sys_devlink_read(ipc_devlink, read_data, IOSM_READ_SIZE, in ipc_flash_boot_ebl()
/linux-6.12.1/drivers/acpi/riscv/
Dcppc.c51 static void sbi_cppc_read(void *read_data) in sbi_cppc_read() argument
53 struct sbi_cppc_data *data = (struct sbi_cppc_data *)read_data; in sbi_cppc_read()
67 static void cppc_ffh_csr_read(void *read_data) in cppc_ffh_csr_read() argument
69 struct sbi_cppc_data *data = (struct sbi_cppc_data *)read_data; in cppc_ffh_csr_read()
/linux-6.12.1/drivers/input/touchscreen/
Dusbtouchscreen.c79 int (*read_data) (struct usbtouch_usb *usbtouch, unsigned char *pkt); member
149 .read_data = e2i_read_data,
235 .read_data = egalax_read_data,
292 .read_data = etouch_read_data,
315 .read_data = panjit_read_data,
445 .read_data = mtouch_read_data,
525 .read_data = itm_read_data,
569 .read_data = eturbo_read_data,
596 .read_data = gunze_read_data,
682 .read_data = dmc_tsc10_read_data,
[all …]
/linux-6.12.1/drivers/accel/qaic/
Dsahara.c78 } read_data; member
217 le32_to_cpu(context->rx->read_data.image), in sahara_read_data()
218 le32_to_cpu(context->rx->read_data.offset), in sahara_read_data()
219 le32_to_cpu(context->rx->read_data.length)); in sahara_read_data()
227 image_id = le32_to_cpu(context->rx->read_data.image); in sahara_read_data()
228 data_offset = le32_to_cpu(context->rx->read_data.offset); in sahara_read_data()
229 data_len = le32_to_cpu(context->rx->read_data.length); in sahara_read_data()
/linux-6.12.1/drivers/mtd/hyperbus/
Dhyperbus-core.c24 map_word read_data; in hyperbus_read16() local
26 read_data.x[0] = ctlr->ops->read16(hbdev, addr); in hyperbus_read16()
28 return read_data; in hyperbus_read16()
/linux-6.12.1/drivers/media/dvb-frontends/
Dcxd2099.c24 static int read_data(struct dvb_ca_en50221 *ca, int slot, u8 *ebuf, int ecount);
211 if (!ci->en.read_data) in cam_mode()
431 read_data(ca, slot, ci->rbuf, 0); in slot_reset()
461 read_data(ca, slot, ci->rbuf, 0); in slot_shutdown()
544 static int read_data(struct dvb_ca_en50221 *ca, int slot, u8 *ebuf, int ecount) in read_data() function
597 .read_data = read_data,
647 ci->en.read_data = NULL; in cxd2099_probe()
/linux-6.12.1/drivers/misc/lis3lv02d/
Dlis3lv02d.c191 position[0] = lis3->read_data(lis3, OUTX); in lis3lv02d_get_xyz()
192 position[1] = lis3->read_data(lis3, OUTY); in lis3lv02d_get_xyz()
193 position[2] = lis3->read_data(lis3, OUTZ); in lis3lv02d_get_xyz()
307 x = lis3->read_data(lis3, OUTX); in lis3lv02d_selftest()
308 y = lis3->read_data(lis3, OUTY); in lis3lv02d_selftest()
309 z = lis3->read_data(lis3, OUTZ); in lis3lv02d_selftest()
317 results[0] = x - lis3->read_data(lis3, OUTX); in lis3lv02d_selftest()
318 results[1] = y - lis3->read_data(lis3, OUTY); in lis3lv02d_selftest()
319 results[2] = z - lis3->read_data(lis3, OUTZ); in lis3lv02d_selftest()
1133 lis3->read_data = lis3lv02d_read_12; in lis3lv02d_init_device()
[all …]
/linux-6.12.1/drivers/hwtracing/coresight/
Dcoresight-etb10.c287 u32 read_data, depth; in etb_dump_hw() local
319 read_data = readl_relaxed(drvdata->base + in etb_dump_hw()
321 *(u32 *)buf_ptr = read_data; in etb_dump_hw()
436 u32 status, read_data; in etb_update_buffer() local
535 read_data = readl_relaxed(drvdata->base + in etb_update_buffer()
538 read_data = *barrier; in etb_update_buffer()
542 *(u32 *)buf_ptr = read_data; in etb_update_buffer()
Dcoresight-tmc-etf.c63 u32 read_data, lost; in tmc_etb_dump_hw() local
70 read_data = readl_relaxed(drvdata->base + TMC_RRD); in tmc_etb_dump_hw()
71 if (read_data == 0xFFFFFFFF) in tmc_etb_dump_hw()
73 memcpy(bufp, &read_data, 4); in tmc_etb_dump_hw()
/linux-6.12.1/drivers/pnp/isapnp/
Dcore.c109 static inline unsigned char read_data(void) in read_data() function
118 return read_data(); in isapnp_read_byte()
296 data = read_data() << 8; in isapnp_isolate()
298 data = data | read_data(); in isapnp_isolate()
308 data = read_data() << 8; in isapnp_isolate()
310 data = data | read_data(); in isapnp_isolate()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlxbf_gige/
Dmlxbf_gige_mdio.c37 .read_data = {
69 .read_data = {
233 ret &= priv->mdio_gw->read_data.mask; in mlxbf_gige_mdio_read()
/linux-6.12.1/drivers/gpu/drm/mediatek/
Dmtk_dsi.c1032 static u32 mtk_dsi_recv_cnt(u8 type, u8 *read_data) in mtk_dsi_recv_cnt() argument
1043 return read_data[1] + read_data[2] * 16; in mtk_dsi_recv_cnt()
1111 u8 read_data[16]; in mtk_dsi_host_transfer() local
1146 *(read_data + i) = readb(dsi->regs + DSI_RX_DATA0 + i); in mtk_dsi_host_transfer()
1148 recv_cnt = mtk_dsi_recv_cnt(read_data[0], read_data); in mtk_dsi_host_transfer()
1151 src_addr = &read_data[4]; in mtk_dsi_host_transfer()
1153 src_addr = &read_data[1]; in mtk_dsi_host_transfer()
/linux-6.12.1/tools/testing/selftests/arm64/fp/
Dfp-stress.c146 char read_data[1024]; in child_output_read() local
150 ret = read(child->stdout, read_data, sizeof(read_data)); in child_output_read()
176 work[cur_work] = read_data[cur_read++]; in child_output_read()
/linux-6.12.1/drivers/i2c/busses/
Di2c-cht-wc.c52 int read_data; member
75 ret = regmap_read(adap->regmap, CHT_WC_I2C_RDDATA, &adap->read_data); in cht_wc_i2c_adap_thread_handler()
164 data->byte = adap->read_data; in cht_wc_i2c_adap_smbus_xfer()
/linux-6.12.1/tools/testing/selftests/powerpc/mm/
Dtlbie_test.c471 unsigned int *w_ptr, read_data; in rim_fn() local
515 read_data = *w_ptr; //Load in rim_fn()
521 if (read_data != old_pattern) { in rim_fn()
/linux-6.12.1/tools/lib/perf/
Devlist.c285 u64 read_data[4] = { 0, }; in perf_evlist__id_add_fd() local
310 read(fd, &read_data, sizeof(read_data)) == -1) in perf_evlist__id_add_fd()
318 id = read_data[id_idx]; in perf_evlist__id_add_fd()
/linux-6.12.1/sound/isa/wavefront/
Dwavefront_midi.c76 read_data (snd_wavefront_midi_t *midi) in read_data() function
426 byte = read_data (midi); in snd_wavefront_midi_interrupt()
519 if (read_data (midi) == MPU_ACK) { in snd_wavefront_midi_start()

123