/linux/tools/perf/util/ |
H A D | expr.c | 94 struct expr_id_data *data_ptr = NULL, *old_data = NULL; 98 ret = hashmap__set(ids, id, data_ptr, &old_key, &old_data); in ids__insert() 100 free(data_ptr); in ids__insert() 157 struct expr_id_data *data_ptr = NULL, *old_data = NULL; in expr__add_id_val_source_count() 161 data_ptr = malloc(sizeof(*data_ptr)); in expr__add_id_val_source_count() 162 if (!data_ptr) in expr__add_id_val_source_count() 164 data_ptr->val.val = val; in expr__add_id_val_source_count() 165 data_ptr->val.source_count = source_count; in expr__add_id_val_source_count() 166 data_ptr in expr__add_id_val_source_count() 97 struct expr_id_data *data_ptr = NULL, *old_data = NULL; ids__insert() local 160 struct expr_id_data *data_ptr = NULL, *old_data = NULL; expr__add_id_val_source_count() local 181 struct expr_id_data *data_ptr = NULL, *old_data = NULL; expr__add_ref() local [all...] |
/linux/drivers/scsi/ |
H A D | nsp32_io.h | 179 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 …]
|
H A D | mesh.c | 157 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/drivers/media/platform/qcom/venus/ |
H A D | hfi_msgs.c | 36 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/sound/soc/sof/ |
H A D | ipc4.c | 287 snd_sof_dsp_mailbox_read(sdev, sdev->dsp_box.offset, ipc4_reply->data_ptr, in sof_ipc4_get_reply() 322 if (msg->reply_size && ipc4_reply_data->data_ptr) { in ipc4_wait_tx_done() 324 memcpy(ipc4_reply_data->data_ptr, ipc4_reply->data_ptr, in ipc4_wait_tx_done() 403 sof_ipc4_dump_payload(sdev, msg->data_ptr, msg->data_size); in sof_ipc4_tx_msg() 474 tx.data_ptr = ipc4_msg->data_ptr + offset; in sof_ipc4_set_get_data() 482 rx.data_ptr = ipc4_msg->data_ptr + offset; in sof_ipc4_set_get_data() 527 sof_ipc4_dump_payload(sdev, ipc4_msg->data_ptr, ipc4_msg->data_size); in sof_ipc4_set_get_data() 549 ipc4_msg->data_ptr = msg->reply_data + sizeof(struct sof_ipc4_msg); in sof_ipc4_init_msg_memory() 591 struct sof_ipc4_notify_module_data *data = ipc4_msg->data_ptr; in sof_ipc4_module_notification_handler() 604 new = krealloc(ipc4_msg->data_ptr, ipc4_msg->data_size, GFP_KERNEL); in sof_ipc4_module_notification_handler() [all …]
|
H A D | sof-client-probes-ipc4.c | 131 msg.data_ptr = &cfg; in ipc4_probes_init() 161 msg.data_ptr = NULL; in ipc4_probes_deinit() 230 msg.data_ptr = points; in ipc4_probes_points_add() 276 msg.data_ptr = probe_point_ids; in ipc4_probes_points_remove()
|
H A D | sof-client-ipc-msg-injector.c | 115 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()
|
H A D | ipc4-control.c | 124 msg->data_ptr = ¶ms; in sof_ipc4_set_volume_data() 128 msg->data_ptr = NULL; in sof_ipc4_set_volume_data() 228 msg->data_ptr = data; in sof_ipc4_set_generic_control_data() 232 msg->data_ptr = NULL; in sof_ipc4_set_generic_control_data() 266 msg->data_ptr = data; in sof_ipc4_refresh_generic_control() 271 msg->data_ptr = NULL; in sof_ipc4_refresh_generic_control() 420 msg->data_ptr = data->data; in sof_ipc4_set_get_bytes_data() 429 msg->data_ptr = NULL; in sof_ipc4_set_get_bytes_data() 658 struct sof_ipc4_notify_module_data *ndata = ipc4_msg->data_ptr; in sof_ipc4_control_update()
|
H A D | ipc4-loader.c | 354 msg.data_ptr = kzalloc(msg.data_size, GFP_KERNEL); in sof_ipc4_query_fw_configuration() 355 if (!msg.data_ptr) in sof_ipc4_query_fw_configuration() 363 tuple = (struct sof_ipc4_tuple *)((u8 *)msg.data_ptr + offset); in sof_ipc4_query_fw_configuration() 413 kfree(msg.data_ptr); in sof_ipc4_query_fw_configuration()
|
/linux/drivers/net/wwan/iosm/ |
H A D | iosm_ipc_coredump.c | 23 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/drivers/scsi/qla4xxx/ |
H A D | ql4_nx.c | 1836 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/drivers/scsi/qla2xxx/ |
H A D | qla_nx2.c | 2321 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 …]
|
H A D | qla_nx.c | 3795 __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/sound/isa/sb/ |
H A D | sb16_csp.c | 301 unsigned char __user *data_ptr; in snd_sb_csp_riff_load() local 314 data_ptr = mcode->data; in snd_sb_csp_riff_load() 316 if (copy_from_user(&file_h, data_ptr, sizeof(file_h))) in snd_sb_csp_riff_load() 323 data_ptr += sizeof(file_h); in snd_sb_csp_riff_load() 324 data_end = data_ptr + le32_to_cpu(file_h.len); in snd_sb_csp_riff_load() 326 if (copy_from_user(&item_type, data_ptr, sizeof(item_type))) in snd_sb_csp_riff_load() 332 data_ptr += sizeof (item_type); in snd_sb_csp_riff_load() 334 for (; data_ptr < data_end; data_ptr += le32_to_cpu(item_h.len)) { in snd_sb_csp_riff_load() 335 if (copy_from_user(&item_h, data_ptr, sizeof(item_h))) in snd_sb_csp_riff_load() 337 data_ptr += sizeof(item_h); in snd_sb_csp_riff_load() [all …]
|
/linux/drivers/gpu/drm/i915/ |
H A D | i915_query.c | 25 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() 376 u64_to_user_ptr(query_item->data_ptr); in query_perf_config_list() 464 u64_to_user_ptr(query_item->data_ptr); in query_memregion_info() [all …]
|
/linux/fs/bcachefs/ |
H A D | ec.h | 97 const struct bch_extent_ptr *data_ptr, in __bch2_ptr_matches_stripe() argument 100 return (data_ptr->dev == stripe_ptr->dev || in __bch2_ptr_matches_stripe() 101 data_ptr->dev == BCH_SB_MEMBER_INVALID || in __bch2_ptr_matches_stripe() 103 data_ptr->gen == stripe_ptr->gen && in __bch2_ptr_matches_stripe() 104 data_ptr->offset >= stripe_ptr->offset && in __bch2_ptr_matches_stripe() 105 data_ptr->offset < stripe_ptr->offset + sectors; in __bch2_ptr_matches_stripe()
|
/linux/drivers/base/test/ |
H A D | property-entry-test.c | 354 const u8 *data_ptr; in pe_test_move_inline_u8() local 360 data_ptr = (u8 *)©[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/tools/testing/selftests/bpf/progs/ |
H A D | test_verify_pkcs7_sig.c | 42 struct bpf_dynptr data_ptr, sig_ptr; in BPF_PROG() local 69 bpf_dynptr_from_mem(data_val->data, data_val->data_len, 0, &data_ptr); in BPF_PROG() 84 ret = bpf_verify_pkcs7_signature(&data_ptr, &sig_ptr, trusted_keyring); in BPF_PROG()
|
/linux/drivers/scsi/pcmcia/ |
H A D | nsp_io.h | 201 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/arch/s390/hypfs/ |
H A D | hypfs_sprp.c | 48 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/include/uapi/linux/mmc/ |
H A D | ioctl.h | 49 __u64 data_ptr; member 51 #define mmc_ioc_cmd_set_data(ic, ptr) ic.data_ptr = (__u64)(unsigned long) ptr
|
/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_xdp.h | 21 struct xdp_buff *xdp, struct page *page, u8 **data_ptr, 30 u16 cons, u8 *data_ptr, unsigned int len,
|
/linux/fs/btrfs/ |
H A D | xattr.c | 35 unsigned long data_ptr; in btrfs_getxattr() local 72 data_ptr = (unsigned long)((char *)(di + 1) + in btrfs_getxattr() 74 read_extent_buffer(leaf, buffer, data_ptr, in btrfs_getxattr() 176 unsigned long data_ptr; in btrfs_setxattr() local 205 data_ptr = ((unsigned long)(di + 1)) + name_len; in btrfs_setxattr() 206 write_extent_buffer(leaf, value, data_ptr, size); in btrfs_setxattr()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | user_ringbuf.c | 205 void *data_ptr; in manually_write_test_invalid_sample() local 219 data_ptr = mmap(NULL, page_size, PROT_WRITE, MAP_SHARED, rb_fd, 2 * page_size); in manually_write_test_invalid_sample() 220 ASSERT_OK_PTR(data_ptr, "rw_data"); in manually_write_test_invalid_sample() 222 memset(data_ptr, 0, BPF_RINGBUF_HDR_SZ); in manually_write_test_invalid_sample() 223 *(__u32 *)data_ptr = size; in manually_write_test_invalid_sample() 233 ASSERT_OK(munmap(data_ptr, page_size), "unmap_data_ptr"); in manually_write_test_invalid_sample()
|
/linux/rust/kernel/ |
H A D | uaccess.rs | 334 let data_ptr = data.as_ptr().cast::<c_void>(); 341 // SAFETY: `data_ptr` points into an immutable slice of length `len_ulong`, so we may read in write_slice() 343 let res = unsafe { bindings::copy_to_user(self.ptr as *mut c_void, data_ptr, len_ulong) }; in write_slice() 337 let data_ptr = data.as_ptr().cast::<c_void>(); write_slice() localVariable
|