Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 12 of 12) sorted by relevance

/samples/qmi/
A Dqmi_sample_client.c52 .offset = offsetof(struct test_name_type_v01,
61 .offset = offsetof(struct test_name_type_v01,
81 .offset = offsetof(struct test_ping_req_msg_v01,
90 .offset = offsetof(struct test_ping_req_msg_v01,
99 .offset = offsetof(struct test_ping_req_msg_v01,
123 .offset = offsetof(struct test_ping_resp_msg_v01,
133 .offset = offsetof(struct test_ping_resp_msg_v01,
182 .offset = offsetof(struct test_data_req_msg_v01,
191 .offset = offsetof(struct test_data_req_msg_v01,
200 .offset = offsetof(struct test_data_req_msg_v01,
[all …]
/samples/vfio-mdev/
A Dmdpy-fb.c42 .transp.offset = 24,
43 .red.offset = 16,
44 .green.offset = 8,
45 .blue.offset = 0,
70 value = (cr << info->var.red.offset) | in mdpy_fb_setcolreg()
71 (cg << info->var.green.offset) | in mdpy_fb_setcolreg()
72 (cb << info->var.blue.offset); in mdpy_fb_setcolreg()
75 mask <<= info->var.transp.offset; in mdpy_fb_setcolreg()
A Dmbochs.c158 u64 offset; member
315 switch (offset) { in handle_pci_cfg_write()
343 switch (offset) { in handle_mmio_write()
349 index = (offset - 0x500) / 2; in handle_mmio_write()
361 __func__, offset, count); in handle_mmio_write()
374 switch (offset) { in handle_mmio_read()
397 __func__, offset, count); in handle_mmio_read()
412 if (offset % 4) in handle_edid_regs()
416 switch (offset) { in handle_edid_regs()
1046 region_info->offset = 0; in mbochs_get_region_info()
[all …]
A Dmtty.c315 switch (offset) { in handle_pci_cfg_write()
331 if (offset == 0x10) in handle_pci_cfg_write()
333 else if (offset == 0x14) in handle_pci_cfg_write()
359 offset, count); in handle_pci_cfg_write()
365 u16 offset, u8 *buf, u32 count) in handle_bar_write() argument
370 switch (offset) { in handle_bar_write()
533 u16 offset, u8 *buf, u32 count) in handle_bar_read() argument
536 switch (offset) { in handle_bar_read()
711 loff_t offset; in mdev_access() local
747 __func__, index, offset, wr_reg[offset], in mdev_access()
[all …]
A Dmdpy.c148 static void handle_pci_cfg_write(struct mdev_state *mdev_state, u16 offset, in handle_pci_cfg_write() argument
154 switch (offset) { in handle_pci_cfg_write()
166 cfg_addr |= (mdev_state->vconfig[offset] & in handle_pci_cfg_write()
168 STORE_LE32(&mdev_state->vconfig[offset], cfg_addr); in handle_pci_cfg_write()
448 region_info->offset = 0; in mdpy_get_region_info()
455 region_info->offset = MDPY_MEMORY_BAR_OFFSET; in mdpy_get_region_info()
463 region_info->offset = 0; in mdpy_get_region_info()
553 minsz = offsetofend(struct vfio_region_info, offset); in mdpy_ioctl()
/samples/seccomp/
A Dbpf-helper.c31 size_t offset = count - i - 1; in bpf_resolve_jumps() local
32 struct sock_filter *instr = &filter[offset]; in bpf_resolve_jumps()
43 (offset + 1); in bpf_resolve_jumps()
53 labels->labels[instr->k].location = offset; in bpf_resolve_jumps()
/samples/vfs/
A Dtest-statx.c192 unsigned offset, print_offset = 1, col = 0; in dump_hex() local
197 for (offset = from; offset < to; offset++) { in dump_hex()
199 printf("%04x: ", offset * 8); in dump_hex()
202 printf("%016llx", data[offset]); in dump_hex()
/samples/bpf/
A Dtask_fd_query_user.c124 const char *name, __u64 offset, __u64 addr, bool is_return, in test_nondebug_fs_kuprobe_common() argument
147 attr.config2 = offset; in test_nondebug_fs_kuprobe_common()
174 __u64 offset, __u64 addr, bool is_return, in test_nondebug_fs_probe() argument
184 offset, addr, is_return, in test_nondebug_fs_probe()
191 __func__, name ? name : "", offset, addr, is_return); in test_nondebug_fs_probe()
206 if (probe_offset != offset) { in test_nondebug_fs_probe()
227 static int test_debug_fs_uprobe(char *binary_path, long offset, bool is_return) in test_debug_fs_uprobe() argument
248 binary_path, offset); in test_debug_fs_uprobe()
298 if (probe_offset != offset) { in test_debug_fs_uprobe()
A Dxdp_adjust_tail_kern.c126 int offset; in handle_ipv4() local
129 offset = pckt_size - ICMP_TOOBIG_SIZE; in handle_ipv4()
130 if (bpf_xdp_adjust_tail(xdp, 0 - offset)) in handle_ipv4()
/samples/kfifo/
A Ddma-example.c79 i, sg_page(&sg[i]), sg[i].offset, sg[i].length); in example_init()
108 i, sg_page(&sg[i]), sg[i].offset, sg[i].length); in example_init()
/samples/hid/
A Dhid_bpf_helpers.h10 unsigned int offset,
/samples/rust/
A Drust_driver_pci.rs51 let offset = u32::from_le(bar.read32(Regs::OFFSET)) as usize; in testdev()
57 bar.try_write8(data, offset)?; in testdev()

Completed in 31 milliseconds