Home
last modified time | relevance | path

Searched refs:vfn (Results 1 – 25 of 56) sorted by relevance

123

/openbmc/qemu/hw/net/
H A Digbvf.c62 static hwaddr vf_to_pf_addr(hwaddr addr, uint16_t vfn, bool write) in vf_to_pf_addr() argument
67 return E1000_PVTCTRL(vfn); in vf_to_pf_addr()
69 return E1000_PVTEICS(vfn); in vf_to_pf_addr()
71 return E1000_PVTEIMS(vfn); in vf_to_pf_addr()
73 return E1000_PVTEIMC(vfn); in vf_to_pf_addr()
75 return E1000_PVTEIAC(vfn); in vf_to_pf_addr()
77 return E1000_PVTEIAM(vfn); in vf_to_pf_addr()
79 return E1000_PVTEICR(vfn); in vf_to_pf_addr()
83 return E1000_EITR(22) + (addr - E1000_EITR(0)) - vfn * 0xC; in vf_to_pf_addr()
85 return E1000_VTIVAR + vfn * 4; in vf_to_pf_addr()
[all …]
H A Digb_core.c118 uint16_t vfn; in igb_msix_notify() local
122 vfn = 8 - (cause + 2) / IGBVF_MSIX_VEC_NUM; in igb_msix_notify()
123 if (vfn < pcie_sriov_num_vfs(core->owner)) { in igb_msix_notify()
124 dev = pcie_sriov_get_vf_at_index(core->owner, vfn); in igb_msix_notify()
2382 static void mailbox_interrupt_to_vf(IGBCore *core, uint16_t vfn) in mailbox_interrupt_to_vf() argument
2384 uint32_t ent = core->mac[VTIVAR_MISC + vfn]; in mailbox_interrupt_to_vf()
2388 causes = (ent & 0x3) << (22 - vfn * IGBVF_MSIX_VEC_NUM); in mailbox_interrupt_to_vf()
2400 uint16_t vfn = index - P2VMAILBOX0; in igb_set_pfmailbox() local
2402 trace_igb_set_pfmailbox(vfn, val); in igb_set_pfmailbox()
2405 core->mac[V2PMAILBOX0 + vfn] |= E1000_V2PMAILBOX_PFSTS; in igb_set_pfmailbox()
[all …]
H A Digb_core.h132 igb_core_vf_reset(IGBCore *core, uint16_t vfn);
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/vfn/
H A Dtu102.c29 struct nvkm_vfn *vfn = container_of(intr, typeof(*vfn), intr); in tu102_vfn_intr_reset() local
31 nvkm_wr32(vfn->subdev.device, vfn->addr.priv + 0x1000 + (leaf * 4), mask); in tu102_vfn_intr_reset()
37 struct nvkm_vfn *vfn = container_of(intr, typeof(*vfn), intr); in tu102_vfn_intr_allow() local
39 nvkm_wr32(vfn->subdev.device, vfn->addr.priv + 0x1200 + (leaf * 4), mask); in tu102_vfn_intr_allow()
45 struct nvkm_vfn *vfn = container_of(intr, typeof(*vfn), intr); in tu102_vfn_intr_block() local
47 nvkm_wr32(vfn->subdev.device, vfn->addr.priv + 0x1400 + (leaf * 4), mask); in tu102_vfn_intr_block()
53 struct nvkm_vfn *vfn = container_of(intr, typeof(*vfn), intr); in tu102_vfn_intr_rearm() local
55 nvkm_wr32(vfn->subdev.device, vfn->addr.priv + 0x1608, 0x0000000f); in tu102_vfn_intr_rearm()
61 struct nvkm_vfn *vfn = container_of(intr, typeof(*vfn), intr); in tu102_vfn_intr_unarm() local
63 nvkm_wr32(vfn->subdev.device, vfn->addr.priv + 0x1610, 0x0000000f); in tu102_vfn_intr_unarm()
[all …]
H A Dbase.c39 struct nvkm_vfn *vfn; in nvkm_vfn_new_() local
42 if (!(vfn = *pvfn = kzalloc(sizeof(*vfn), GFP_KERNEL))) in nvkm_vfn_new_()
45 nvkm_subdev_ctor(&nvkm_vfn, device, type, inst, &vfn->subdev); in nvkm_vfn_new_()
46 vfn->func = func; in nvkm_vfn_new_()
47 vfn->addr.priv = addr; in nvkm_vfn_new_()
48 vfn->addr.user = vfn->addr.priv + func->user.addr; in nvkm_vfn_new_()
50 if (vfn->func->intr) { in nvkm_vfn_new_()
51 ret = nvkm_intr_add(vfn->func->intr, vfn->func->intrs, in nvkm_vfn_new_()
52 &vfn->subdev, 8, &vfn->intr); in nvkm_vfn_new_()
57 vfn->user.ctor = nvkm_uvfn_new; in nvkm_vfn_new_()
[all …]
H A Duvfn.c29 struct nvkm_vfn *vfn; member
36 struct nvkm_vfn *vfn = nvkm_uvfn(object)->vfn; in nvkm_uvfn_map() local
37 struct nvkm_device *device = vfn->subdev.device; in nvkm_uvfn_map()
39 *addr = device->func->resource_addr(device, 0) + vfn->addr.user; in nvkm_uvfn_map()
40 *size = vfn->func->user.size; in nvkm_uvfn_map()
63 uvfn->vfn = device->vfn; in nvkm_uvfn_new()
H A DKbuild2 nvkm-y += nvkm/subdev/vfn/base.o
3 nvkm-y += nvkm/subdev/vfn/uvfn.o
4 nvkm-y += nvkm/subdev/vfn/gv100.o
5 nvkm-y += nvkm/subdev/vfn/tu102.o
6 nvkm-y += nvkm/subdev/vfn/ga100.o
/openbmc/linux/drivers/pci/controller/cadence/
H A Dpcie-cadence-ep.c19 static u8 cdns_pcie_get_fn_from_vfn(struct cdns_pcie *pcie, u8 fn, u8 vfn) in cdns_pcie_get_fn_from_vfn() argument
24 if (vfn == 0) in cdns_pcie_get_fn_from_vfn()
29 fn = fn + first_vf_offset + ((vfn - 1) * stride); in cdns_pcie_get_fn_from_vfn()
34 static int cdns_pcie_ep_write_header(struct pci_epc *epc, u8 fn, u8 vfn, in cdns_pcie_ep_write_header() argument
42 if (vfn > 1) { in cdns_pcie_ep_write_header()
45 } else if (vfn == 1) { in cdns_pcie_ep_write_header()
76 static int cdns_pcie_ep_set_bar(struct pci_epc *epc, u8 fn, u8 vfn, in cdns_pcie_ep_set_bar() argument
122 if (vfn == 1) in cdns_pcie_ep_set_bar()
128 if (vfn == 0 || vfn == 1) { in cdns_pcie_ep_set_bar()
137 fn = cdns_pcie_get_fn_from_vfn(pcie, fn, vfn); in cdns_pcie_ep_set_bar()
[all …]
/openbmc/linux/arch/s390/pci/
H A Dpci_iov.h14 void zpci_iov_remove_virtfn(struct pci_dev *pdev, int vfn);
18 int zpci_iov_setup_virtfn(struct zpci_bus *zbus, struct pci_dev *virtfn, int vfn);
21 static inline void zpci_iov_remove_virtfn(struct pci_dev *pdev, int vfn) {} in zpci_iov_remove_virtfn() argument
25 static inline int zpci_iov_setup_virtfn(struct zpci_bus *zbus, struct pci_dev *virtfn, int vfn) in zpci_iov_setup_virtfn() argument
H A Dpci_iov.c40 void zpci_iov_remove_virtfn(struct pci_dev *pdev, int vfn) in zpci_iov_remove_virtfn() argument
44 pci_iov_remove_virtfn(pdev->physfn, vfn - 1); in zpci_iov_remove_virtfn()
63 int zpci_iov_setup_virtfn(struct zpci_bus *zbus, struct pci_dev *virtfn, int vfn) in zpci_iov_setup_virtfn() argument
68 int vfid = vfn - 1; /* Linux' vfid's start at 0 vfn at 1*/ in zpci_iov_setup_virtfn()
H A Dpci_bus.c117 zpci_iov_remove_virtfn(pdev, zdev->vfn); in zpci_bus_remove_device()
290 if (zdev->vfn) { in pcibios_bus_add_device()
291 zpci_iov_setup_virtfn(zdev->zbus, pdev, zdev->vfn); in pcibios_bus_add_device()
H A Dpci_sysfs.c34 zpci_attr(vfn, "0x%04x\n", vfn);
/openbmc/linux/drivers/net/ethernet/intel/ixgbevf/
H A Dmbx.h26 #define IXGBE_PFMBMEM(vfn) (0x13000 + (64 * (vfn))) argument
/openbmc/linux/drivers/pci/controller/
H A Dpcie-rockchip-ep.c102 static int rockchip_pcie_ep_write_header(struct pci_epc *epc, u8 fn, u8 vfn, in rockchip_pcie_ep_write_header() argument
139 static int rockchip_pcie_ep_set_bar(struct pci_epc *epc, u8 fn, u8 vfn, in rockchip_pcie_ep_set_bar() argument
207 static void rockchip_pcie_ep_clear_bar(struct pci_epc *epc, u8 fn, u8 vfn, in rockchip_pcie_ep_clear_bar() argument
241 static int rockchip_pcie_ep_map_addr(struct pci_epc *epc, u8 fn, u8 vfn, in rockchip_pcie_ep_map_addr() argument
257 static void rockchip_pcie_ep_unmap_addr(struct pci_epc *epc, u8 fn, u8 vfn, in rockchip_pcie_ep_unmap_addr() argument
277 static int rockchip_pcie_ep_set_msi(struct pci_epc *epc, u8 fn, u8 vfn, in rockchip_pcie_ep_set_msi() argument
298 static int rockchip_pcie_ep_get_msi(struct pci_epc *epc, u8 fn, u8 vfn) in rockchip_pcie_ep_get_msi() argument
417 static int rockchip_pcie_ep_raise_irq(struct pci_epc *epc, u8 fn, u8 vfn, in rockchip_pcie_ep_raise_irq() argument
H A Dpcie-rcar-ep.c159 static int rcar_pcie_ep_write_header(struct pci_epc *epc, u8 fn, u8 vfn, in rcar_pcie_ep_write_header() argument
246 static void rcar_pcie_ep_clear_bar(struct pci_epc *epc, u8 fn, u8 vfn, in rcar_pcie_ep_clear_bar() argument
259 static int rcar_pcie_ep_set_msi(struct pci_epc *epc, u8 fn, u8 vfn, in rcar_pcie_ep_set_msi() argument
273 static int rcar_pcie_ep_get_msi(struct pci_epc *epc, u8 fn, u8 vfn) in rcar_pcie_ep_get_msi() argument
286 static int rcar_pcie_ep_map_addr(struct pci_epc *epc, u8 fn, u8 vfn, in rcar_pcie_ep_map_addr() argument
323 static void rcar_pcie_ep_unmap_addr(struct pci_epc *epc, u8 fn, u8 vfn, in rcar_pcie_ep_unmap_addr() argument
404 static int rcar_pcie_ep_raise_irq(struct pci_epc *epc, u8 fn, u8 vfn, in rcar_pcie_ep_raise_irq() argument
/openbmc/linux/drivers/vfio/pci/
H A Dvfio_pci_zdev.c31 .vfn = zdev->vfn, in zpci_base_cap()
/openbmc/qemu/linux-headers/linux/
H A Dvfio_zdev.h28 __u16 vfn; /* Virtual function number */ member
/openbmc/linux/include/uapi/linux/
H A Dvfio_zdev.h28 __u16 vfn; /* Virtual function number */ member
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
H A Dga100.c495 ret = nvkm_inth_add(&device->vfn->intr, vector & 0x00000fff, NVKM_INTR_PRIO_NORMAL, in ga100_runl_new()
544 struct nvkm_vfn *vfn = subdev->device->vfn; in ga100_fifo_nonstall_ctor() local
557 ret = nvkm_inth_add(&vfn->intr, runl->nonstall.vector, NVKM_INTR_PRIO_NORMAL, in ga100_fifo_nonstall_ctor()
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/ce/
H A Dga100.c70 return nvkm_inth_add(&device->vfn->intr, vector, NVKM_INTR_PRIO_NORMAL, in ga100_ce_oneinit()
/openbmc/qemu/hw/s390x/
H A Ds390-pci-vfio.c126 pbdev->zpci_fn.vfn = cap->vfn; in s390_pci_read_base()
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/
H A DKbuild26 include $(src)/nvkm/subdev/vfn/Kbuild
/openbmc/linux/drivers/scsi/csiostor/
H A Dcsio_wr.h118 uint8_t vfn; member
203 uint8_t vfn; member
H A Dcsio_mb.c451 FW_IQ_CMD_VFN_V(iq_params->vfn)); in csio_mb_iq_alloc()
508 FW_IQ_CMD_VFN_V(iq_params->vfn)); in csio_mb_iq_write()
633 FW_IQ_CMD_VFN_V(iq_params->vfn)); in csio_mb_iq_free()
668 FW_EQ_OFLD_CMD_VFN_V(eq_ofld_params->vfn)); in csio_mb_eq_ofld_alloc()
716 FW_EQ_OFLD_CMD_VFN_V(eq_ofld_params->vfn)); in csio_mb_eq_ofld_write()
819 FW_EQ_OFLD_CMD_VFN_V(eq_ofld_params->vfn)); in csio_mb_eq_ofld_free()
/openbmc/linux/drivers/gpu/drm/nouveau/include/nvkm/core/
H A Dlayout.h4 NVKM_LAYOUT_ONCE(NVKM_SUBDEV_VFN , struct nvkm_vfn , vfn)

123