Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 6 of 6) sorted by relevance

/samples/bpf/
Dxsk_fwd.c478 u32 umem_fq_size, pos = 0; in port_init() local
514 xsk_ring_prod__reserve(&p->umem_fq, umem_fq_size, &pos); in port_init()
517 *xsk_ring_prod__fill_addr(&p->umem_fq, pos + i) = in port_init()
529 u32 n_pkts, pos, i; in port_rx_burst() local
539 n_pkts = xsk_ring_cons__peek(&p->rxq, n_pkts, &pos); in port_rx_burst()
553 b->addr[i] = xsk_ring_cons__rx_desc(&p->rxq, pos + i)->addr; in port_rx_burst()
554 b->len[i] = xsk_ring_cons__rx_desc(&p->rxq, pos + i)->len; in port_rx_burst()
564 status = xsk_ring_prod__reserve(&p->umem_fq, n_pkts, &pos); in port_rx_burst()
579 *xsk_ring_prod__fill_addr(&p->umem_fq, pos + i) = in port_rx_burst()
590 u32 n_pkts, pos, i; in port_tx_burst() local
[all …]
Dxdp_redirect_cpu_user.c69 struct bpf_program *pos; in print_avail_progs() local
72 bpf_object__for_each_program(pos, obj) { in print_avail_progs()
73 if (bpf_program__is_xdp(pos)) { in print_avail_progs()
74 if (!strncmp(bpf_program__name(pos), "xdp_prognum", in print_avail_progs()
76 printf(" %s\n", bpf_program__name(pos)); in print_avail_progs()
/samples/vfio-mdev/
Dmbochs.c431 size_t count, loff_t pos, bool is_write) in mdev_access() argument
440 if (pos < MBOCHS_CONFIG_SPACE_SIZE) { in mdev_access()
442 handle_pci_cfg_write(mdev_state, pos, buf, count); in mdev_access()
444 memcpy(buf, (mdev_state->vconfig + pos), count); in mdev_access()
446 } else if (pos >= MBOCHS_MMIO_BAR_OFFSET && in mdev_access()
447 pos + count <= (MBOCHS_MMIO_BAR_OFFSET + in mdev_access()
449 pos -= MBOCHS_MMIO_BAR_OFFSET; in mdev_access()
451 handle_mmio_write(mdev_state, pos, buf, count); in mdev_access()
453 handle_mmio_read(mdev_state, pos, buf, count); in mdev_access()
455 } else if (pos >= MBOCHS_EDID_OFFSET && in mdev_access()
[all …]
Dmdpy.c168 size_t count, loff_t pos, bool is_write) in mdev_access() argument
174 if (pos < MDPY_CONFIG_SPACE_SIZE) { in mdev_access()
176 handle_pci_cfg_write(mdev_state, pos, buf, count); in mdev_access()
178 memcpy(buf, (mdev_state->vconfig + pos), count); in mdev_access()
180 } else if ((pos >= MDPY_MEMORY_BAR_OFFSET) && in mdev_access()
181 (pos + count <= in mdev_access()
183 pos -= MDPY_MEMORY_BAR_OFFSET; in mdev_access()
192 is_write ? "WR" : "RD", pos); in mdev_access()
Dmtty.c601 int index, pos; in mdev_read_base() local
605 pos = PCI_BASE_ADDRESS_0; in mdev_read_base()
612 start_lo = (*(u32 *)(mdev_state->vconfig + pos)) & in mdev_read_base()
614 mem_type = (*(u32 *)(mdev_state->vconfig + pos)) & in mdev_read_base()
619 start_hi = (*(u32 *)(mdev_state->vconfig + pos + 4)); in mdev_read_base()
620 pos += 4; in mdev_read_base()
630 pos += 4; in mdev_read_base()
637 loff_t pos, bool is_write) in mdev_access() argument
648 index = MTTY_VFIO_PCI_OFFSET_TO_INDEX(pos); in mdev_access()
649 offset = pos & MTTY_VFIO_PCI_OFFSET_MASK; in mdev_access()
/samples/configfs/
Dconfigfs_sample.c46 ssize_t pos; in childless_showme_show() local
48 pos = sprintf(page, "%d\n", childless->showme); in childless_showme_show()
51 return pos; in childless_showme_show()