Home
last modified time | relevance | path

Searched refs:data_ptr (Results 1 – 25 of 94) sorted by relevance

1234

/linux-6.1.9/tools/perf/util/
Dexpr.c96 struct expr_id_data *data_ptr = NULL, *old_data = NULL; in ids__insert() local
100 ret = hashmap__set(ids, id, data_ptr, in ids__insert()
103 free(data_ptr); in ids__insert()
161 struct expr_id_data *data_ptr = NULL, *old_data = NULL; in expr__add_id_val_source_count() local
165 data_ptr = malloc(sizeof(*data_ptr)); in expr__add_id_val_source_count()
166 if (!data_ptr) in expr__add_id_val_source_count()
168 data_ptr->val.val = val; in expr__add_id_val_source_count()
169 data_ptr->val.source_count = source_count; in expr__add_id_val_source_count()
170 data_ptr->kind = EXPR_ID_DATA__VALUE; in expr__add_id_val_source_count()
172 ret = hashmap__set(ctx->ids, id, data_ptr, in expr__add_id_val_source_count()
[all …]
/linux-6.1.9/drivers/scsi/
Dnsp32_io.h179 volatile unsigned short *index_ptr, *data_ptr; in nsp32_mmio_index_read1() local
182 data_ptr = (unsigned short *)(base + NSP32_MMIO_OFFSET + DATA_REG_LOW); in nsp32_mmio_index_read1()
185 return readb(data_ptr); in nsp32_mmio_index_read1()
192 volatile unsigned short *index_ptr, *data_ptr; in nsp32_mmio_index_write1() local
195 data_ptr = (unsigned short *)(base + NSP32_MMIO_OFFSET + DATA_REG_LOW); in nsp32_mmio_index_write1()
198 writeb(val, data_ptr ); in nsp32_mmio_index_write1()
204 volatile unsigned short *index_ptr, *data_ptr; in nsp32_mmio_index_read2() local
207 data_ptr = (unsigned short *)(base + NSP32_MMIO_OFFSET + DATA_REG_LOW); in nsp32_mmio_index_read2()
210 return le16_to_cpu(readw(data_ptr)); in nsp32_mmio_index_read2()
217 volatile unsigned short *index_ptr, *data_ptr; in nsp32_mmio_index_write2() local
[all …]
Dmesh.c157 int data_ptr; member
323 ms->phase, ms->msgphase, ms->conn_tgt, ms->data_ptr); in mesh_dump_regs()
421 ms->data_ptr = 0; in mesh_start_cmd()
597 cmd->result, ms->data_ptr, scsi_bufflen(cmd)); in mesh_done()
608 mcmd->this_residual -= ms->data_ptr; in mesh_done()
789 ms->data_ptr += nb; in start_phase()
957 ms->data_ptr = tp->saved_ptr; in reselected()
966 ms->data_ptr = 0; in reselected()
1183 ms->data_ptr += (ms->msgin[3] << 24) + ms->msgin[6] in handle_msgin()
1207 tp->saved_ptr = ms->data_ptr; in handle_msgin()
[all …]
/linux-6.1.9/drivers/media/platform/qcom/venus/
Dhfi_msgs.c36 u8 *data_ptr; in event_seq_changed() local
58 data_ptr = (u8 *)&pkt->ext_event_data[0]; in event_seq_changed()
60 ptype = *((u32 *)data_ptr); in event_seq_changed()
63 data_ptr += sizeof(u32); in event_seq_changed()
64 frame_sz = (struct hfi_framesize *)data_ptr; in event_seq_changed()
67 data_ptr += sizeof(*frame_sz); in event_seq_changed()
70 data_ptr += sizeof(u32); in event_seq_changed()
71 profile_level = (struct hfi_profile_level *)data_ptr; in event_seq_changed()
74 data_ptr += sizeof(*profile_level); in event_seq_changed()
77 data_ptr += sizeof(u32); in event_seq_changed()
[all …]
/linux-6.1.9/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_1.0/
Dia_css_sdis.host.c254 hmm_load(isp_stats->data_ptr, map->data_ptr, isp_stats->size); in ia_css_get_dvs_statistics()
334 me->data_ptr = hmm_alloc(me->size); in ia_css_isp_dvs_statistics_allocate()
335 if (me->data_ptr == mmgr_NULL) in ia_css_isp_dvs_statistics_allocate()
338 me->hor_proj = me->data_ptr; in ia_css_isp_dvs_statistics_allocate()
340 me->ver_proj = me->data_ptr + hor_size; in ia_css_isp_dvs_statistics_allocate()
356 void *data_ptr) in ia_css_isp_dvs_statistics_map_allocate() argument
369 me->data_ptr = data_ptr; in ia_css_isp_dvs_statistics_map_allocate()
370 me->data_allocated = !data_ptr; in ia_css_isp_dvs_statistics_map_allocate()
372 if (!me->data_ptr) { in ia_css_isp_dvs_statistics_map_allocate()
373 me->data_ptr = kvmalloc(isp_stats->size, GFP_KERNEL); in ia_css_isp_dvs_statistics_map_allocate()
[all …]
/linux-6.1.9/drivers/net/wwan/iosm/
Diosm_ipc_coredump.c23 u8 *data_ptr; in ipc_coredump_collect() local
25 data_ptr = vmalloc(region_size); in ipc_coredump_collect()
26 if (!data_ptr) in ipc_coredump_collect()
38 ret = ipc_imem_sys_devlink_read(devlink, data_ptr + i, in ipc_coredump_collect()
48 *data = data_ptr; in ipc_coredump_collect()
53 vfree(data_ptr); in ipc_coredump_collect()
/linux-6.1.9/sound/soc/sof/
Dipc4.c278 snd_sof_dsp_mailbox_read(sdev, sdev->dsp_box.offset, ipc4_reply->data_ptr, in sof_ipc4_get_reply()
313 if (msg->reply_size && ipc4_reply_data->data_ptr) { in ipc4_wait_tx_done()
315 memcpy(ipc4_reply_data->data_ptr, ipc4_reply->data_ptr, in ipc4_wait_tx_done()
386 sof_ipc4_dump_payload(sdev, msg->data_ptr, msg->data_size); in sof_ipc4_tx_msg()
447 tx.data_ptr = ipc4_msg->data_ptr + offset; in sof_ipc4_set_get_data()
455 rx.data_ptr = ipc4_msg->data_ptr + offset; in sof_ipc4_set_get_data()
498 sof_ipc4_dump_payload(sdev, ipc4_msg->data_ptr, ipc4_msg->data_size); in sof_ipc4_set_get_data()
521 ipc4_msg->data_ptr = msg->reply_data + sizeof(struct sof_ipc4_msg); in sof_ipc4_init_msg_memory()
570 ipc4_msg->data_ptr = NULL; in sof_ipc4_rx_msg()
603 ipc4_msg->data_ptr = kmalloc(data_size, GFP_KERNEL); in sof_ipc4_rx_msg()
[all …]
Dsof-client-ipc-msg-injector.c115 if (copy_to_user(buffer + *ppos, ipc4_msg->data_ptr, remaining)) in sof_msg_inject_ipc4_dfs_read()
203 if (copy_from_user(ipc4_msg->data_ptr, in sof_msg_inject_ipc4_dfs_write()
213 memset(ipc4_msg->data_ptr, 0, priv->max_msg_size); in sof_msg_inject_ipc4_dfs_write()
282 ipc4_msg->data_ptr = priv->tx_buffer + sizeof(struct sof_ipc4_msg); in sof_msg_inject_probe()
285 ipc4_msg->data_ptr = priv->rx_buffer + sizeof(struct sof_ipc4_msg); in sof_msg_inject_probe()
Dipc4-loader.c177 msg.data_ptr = kzalloc(msg.data_size, GFP_KERNEL); in sof_ipc4_query_fw_configuration()
178 if (!msg.data_ptr) in sof_ipc4_query_fw_configuration()
186 tuple = (struct sof_ipc4_tuple *)((u8 *)msg.data_ptr + offset); in sof_ipc4_query_fw_configuration()
215 kfree(msg.data_ptr); in sof_ipc4_query_fw_configuration()
/linux-6.1.9/drivers/scsi/qla4xxx/
Dql4_nx.c1836 uint32_t *data_ptr) in ql4_84xx_ipmdio_rd_reg() argument
1854 *data_ptr = data; in ql4_84xx_ipmdio_rd_reg()
1913 uint32_t *data_ptr = *d_ptr; in qla4_8xxx_minidump_process_rdcrb() local
1923 *data_ptr++ = cpu_to_le32(r_addr); in qla4_8xxx_minidump_process_rdcrb()
1924 *data_ptr++ = cpu_to_le32(r_value); in qla4_8xxx_minidump_process_rdcrb()
1927 *d_ptr = data_ptr; in qla4_8xxx_minidump_process_rdcrb()
2022 uint8_t *data_ptr = (uint8_t *)*d_ptr; in qla4_8xxx_minidump_pex_dma_read() local
2115 memcpy(data_ptr, rdmem_buffer, size); in qla4_8xxx_minidump_pex_dma_read()
2116 data_ptr += size; in qla4_8xxx_minidump_pex_dma_read()
2122 *d_ptr = (uint32_t *)data_ptr; in qla4_8xxx_minidump_pex_dma_read()
[all …]
/linux-6.1.9/drivers/scsi/qla2xxx/
Dqla_nx2.c2321 uint32_t *data_ptr = *d_ptr; in qla8044_minidump_process_rdcrb() local
2331 *data_ptr++ = r_addr; in qla8044_minidump_process_rdcrb()
2332 *data_ptr++ = r_value; in qla8044_minidump_process_rdcrb()
2335 *d_ptr = data_ptr; in qla8044_minidump_process_rdcrb()
2346 uint32_t *data_ptr = *d_ptr; in qla8044_minidump_process_rdmem() local
2401 *data_ptr++ = r_data; in qla8044_minidump_process_rdmem()
2412 *d_ptr = data_ptr; in qla8044_minidump_process_rdmem()
2423 uint32_t *data_ptr = *d_ptr; in qla8044_minidump_process_rdrom() local
2433 (u8 *)(data_ptr), u32_count); in qla8044_minidump_process_rdrom()
2440 data_ptr += u32_count; in qla8044_minidump_process_rdrom()
[all …]
Dqla_nx.c3795 __le32 *data_ptr = *d_ptr; in qla82xx_minidump_process_rdocm() local
3804 *data_ptr++ = cpu_to_le32(r_value); in qla82xx_minidump_process_rdocm()
3807 *d_ptr = data_ptr; in qla82xx_minidump_process_rdocm()
3817 __le32 *data_ptr = *d_ptr; in qla82xx_minidump_process_rdmux() local
3829 *data_ptr++ = cpu_to_le32(s_value); in qla82xx_minidump_process_rdmux()
3830 *data_ptr++ = cpu_to_le32(r_value); in qla82xx_minidump_process_rdmux()
3833 *d_ptr = data_ptr; in qla82xx_minidump_process_rdmux()
3843 __le32 *data_ptr = *d_ptr; in qla82xx_minidump_process_rdcrb() local
3852 *data_ptr++ = cpu_to_le32(r_addr); in qla82xx_minidump_process_rdcrb()
3853 *data_ptr++ = cpu_to_le32(r_value); in qla82xx_minidump_process_rdcrb()
[all …]
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_verify_pkcs7_sig.c20 extern int bpf_verify_pkcs7_signature(struct bpf_dynptr *data_ptr,
47 struct bpf_dynptr data_ptr, sig_ptr; in BPF_PROG() local
70 bpf_dynptr_from_mem(data_val->data, data_val->data_len, 0, &data_ptr); in BPF_PROG()
85 ret = bpf_verify_pkcs7_signature(&data_ptr, &sig_ptr, trusted_keyring); in BPF_PROG()
/linux-6.1.9/sound/isa/sb/
Dsb16_csp.c300 unsigned char __user *data_ptr; in snd_sb_csp_riff_load() local
313 data_ptr = mcode->data; in snd_sb_csp_riff_load()
315 if (copy_from_user(&file_h, data_ptr, sizeof(file_h))) in snd_sb_csp_riff_load()
322 data_ptr += sizeof(file_h); in snd_sb_csp_riff_load()
323 data_end = data_ptr + le32_to_cpu(file_h.len); in snd_sb_csp_riff_load()
325 if (copy_from_user(&item_type, data_ptr, sizeof(item_type))) in snd_sb_csp_riff_load()
331 data_ptr += sizeof (item_type); in snd_sb_csp_riff_load()
333 for (; data_ptr < data_end; data_ptr += le32_to_cpu(item_h.len)) { in snd_sb_csp_riff_load()
334 if (copy_from_user(&item_h, data_ptr, sizeof(item_h))) in snd_sb_csp_riff_load()
336 data_ptr += sizeof(item_h); in snd_sb_csp_riff_load()
[all …]
/linux-6.1.9/drivers/gpu/drm/i915/
Di915_query.c25 if (copy_from_user(query_hdr, u64_to_user_ptr(query_item->data_ptr), in copy_query_item()
68 if (copy_to_user(u64_to_user_ptr(query_item->data_ptr), in fill_topology_info()
72 if (copy_to_user(u64_to_user_ptr(query_item->data_ptr + sizeof(topo)), in fill_topology_info()
76 if (intel_sseu_copy_ssmask_to_user(u64_to_user_ptr(query_item->data_ptr + in fill_topology_info()
81 if (intel_sseu_copy_eumask_to_user(u64_to_user_ptr(query_item->data_ptr + in fill_topology_info()
132 u64_to_user_ptr(query_item->data_ptr); in query_engine_info()
230 u64_to_user_ptr(query_item->data_ptr); in query_perf_config_data()
232 u64_to_user_ptr(query_item->data_ptr + in query_perf_config_data()
375 u64_to_user_ptr(query_item->data_ptr); in query_perf_config_list()
462 u64_to_user_ptr(query_item->data_ptr); in query_memregion_info()
[all …]
/linux-6.1.9/drivers/staging/media/atomisp/pci/
Dia_css_3a.h55 ia_css_ptr data_ptr; /** pointer to base of all data */ member
90 void *data_ptr; /** Pointer to start of memory */ member
177 void *data_ptr);
Dia_css_dvs.h44 ia_css_ptr data_ptr; /* base pointer containing all memory */ member
66 void *data_ptr; member
280 void *data_ptr);
/linux-6.1.9/drivers/base/test/
Dproperty-entry-test.c354 const u8 *data_ptr; in pe_test_move_inline_u8() local
360 data_ptr = (u8 *)&copy[0].value; in pe_test_move_inline_u8()
361 KUNIT_EXPECT_EQ(test, data_ptr[0], 1); in pe_test_move_inline_u8()
362 KUNIT_EXPECT_EQ(test, data_ptr[1], 2); in pe_test_move_inline_u8()
365 data_ptr = copy[1].pointer; in pe_test_move_inline_u8()
366 KUNIT_EXPECT_EQ(test, data_ptr[0], 5); in pe_test_move_inline_u8()
367 KUNIT_EXPECT_EQ(test, data_ptr[1], 6); in pe_test_move_inline_u8()
386 const char * const *data_ptr; in pe_test_move_inline_str() local
395 data_ptr = copy[1].pointer; in pe_test_move_inline_str()
396 KUNIT_EXPECT_STREQ(test, data_ptr[0], "b"); in pe_test_move_inline_str()
[all …]
/linux-6.1.9/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_2/
Dia_css_sdis2.host.c191 hmm_load(isp_stats->data_ptr, map->data_ptr, isp_stats->size); in ia_css_get_dvs2_statistics()
297 me->data_ptr = hmm_alloc(me->size); in ia_css_isp_dvs2_statistics_allocate()
298 if (me->data_ptr == mmgr_NULL) in ia_css_isp_dvs2_statistics_allocate()
300 me->hor_proj = me->data_ptr; in ia_css_isp_dvs2_statistics_allocate()
302 me->ver_proj = me->data_ptr + size; in ia_css_isp_dvs2_statistics_allocate()
318 hmm_free(me->data_ptr); in ia_css_isp_dvs2_statistics_free()
/linux-6.1.9/drivers/scsi/pcmcia/
Dnsp_io.h201 unsigned char *data_ptr = (unsigned char *)(base + NSP_MMIO_OFFSET + DATAREG); in nsp_mmio_index_read() local
204 return readb(data_ptr); in nsp_mmio_index_read()
212 unsigned char *data_ptr = (unsigned char *)(base + NSP_MMIO_OFFSET + DATAREG); in nsp_mmio_index_write() local
215 writeb(val, data_ptr); in nsp_mmio_index_write()
/linux-6.1.9/include/uapi/linux/mmc/
Dioctl.h49 __u64 data_ptr; member
51 #define mmc_ioc_cmd_set_data(ic, ptr) ic.data_ptr = (__u64)(unsigned long) ptr
/linux-6.1.9/arch/s390/hypfs/
Dhypfs_sprp.c48 static int hypfs_sprp_create(void **data_ptr, void **free_ptr, size_t *size) in hypfs_sprp_create() argument
58 *data_ptr = *free_ptr = NULL; in hypfs_sprp_create()
63 *data_ptr = *free_ptr = data; in hypfs_sprp_create()
/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_xdp.h21 struct xdp_buff xdp, struct page *page, u8 **data_ptr,
30 u16 cons, u8 *data_ptr, unsigned int len,
/linux-6.1.9/fs/btrfs/
Dxattr.c31 unsigned long data_ptr; in btrfs_getxattr() local
68 data_ptr = (unsigned long)((char *)(di + 1) + in btrfs_getxattr()
70 read_extent_buffer(leaf, buffer, data_ptr, in btrfs_getxattr()
173 unsigned long data_ptr; in btrfs_setxattr() local
202 data_ptr = ((unsigned long)(di + 1)) + name_len; in btrfs_setxattr()
203 write_extent_buffer(leaf, value, data_ptr, size); in btrfs_setxattr()
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Duser_ringbuf.c206 void *data_ptr; in manually_write_test_invalid_sample() local
220 data_ptr = mmap(NULL, page_size, PROT_WRITE, MAP_SHARED, rb_fd, 2 * page_size); in manually_write_test_invalid_sample()
221 ASSERT_OK_PTR(data_ptr, "rw_data"); in manually_write_test_invalid_sample()
223 memset(data_ptr, 0, BPF_RINGBUF_HDR_SZ); in manually_write_test_invalid_sample()
224 *(__u32 *)data_ptr = size; in manually_write_test_invalid_sample()
234 ASSERT_OK(munmap(data_ptr, page_size), "unmap_data_ptr"); in manually_write_test_invalid_sample()

1234