Home
last modified time | relevance | path

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

123

/openbmc/qemu/hw/net/
H A Digbvf.c97 return E1000_RDBAL(vfn); in vf_to_pf_addr()
101 return E1000_RDBAH(vfn); in vf_to_pf_addr()
105 return E1000_RDLEN(vfn); in vf_to_pf_addr()
113 return E1000_RDH(vfn); in vf_to_pf_addr()
117 return E1000_RXCTL(vfn); in vf_to_pf_addr()
121 return E1000_RDT(vfn); in vf_to_pf_addr()
129 return E1000_RQDPC(vfn); in vf_to_pf_addr()
133 return E1000_TDBAL(vfn); in vf_to_pf_addr()
137 return E1000_TDBAH(vfn); in vf_to_pf_addr()
145 return E1000_TDH(vfn); in vf_to_pf_addr()
[all …]
H A Digb_core.c118 uint16_t vfn; in igb_msix_notify() local
2464 uint16_t qn0 = vfn; in igb_core_vf_reset()
2467 trace_igb_core_vf_reset(vfn); in igb_core_vf_reset()
2474 core->mac[VFRE] &= ~BIT(vfn); in igb_core_vf_reset()
2475 core->mac[VFTE] &= ~BIT(vfn); in igb_core_vf_reset()
2477 core->mac[VFLRE] |= BIT(vfn); in igb_core_vf_reset()
2543 uint16_t vfn; in igb_set_vtctrl() local
2601 uint16_t vfn = (index - VTIVAR); in igb_set_vtivar() local
2602 uint16_t qn = vfn; in igb_set_vtivar()
2743 for (int vfn = 0; vfn < IGB_MAX_VF_FUNCTIONS; vfn++) { in igb_set_ctrlext() local
[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.c24 if (vfn == 0) in cdns_pcie_get_fn_from_vfn()
42 if (vfn > 1) { in cdns_pcie_ep_write_header()
45 } else if (vfn == 1) { in cdns_pcie_ep_write_header()
122 if (vfn == 1) in cdns_pcie_ep_set_bar()
128 if (vfn == 0 || vfn == 1) { in cdns_pcie_ep_set_bar()
143 if (vfn > 0) in cdns_pcie_ep_set_bar()
159 if (vfn == 1) in cdns_pcie_ep_clear_bar()
165 if (vfn == 0 || vfn == 1) { in cdns_pcie_ep_clear_bar()
178 if (vfn > 0) in cdns_pcie_ep_clear_bar()
497 if (vfn > 0) in cdns_pcie_ep_send_msix_irq()
[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.c92 static int rockchip_pcie_ep_write_header(struct pci_epc *epc, u8 fn, u8 vfn, in rockchip_pcie_ep_write_header() argument
129 static int rockchip_pcie_ep_set_bar(struct pci_epc *epc, u8 fn, u8 vfn, in rockchip_pcie_ep_set_bar() argument
197 static void rockchip_pcie_ep_clear_bar(struct pci_epc *epc, u8 fn, u8 vfn, in rockchip_pcie_ep_clear_bar() argument
231 static int rockchip_pcie_ep_map_addr(struct pci_epc *epc, u8 fn, u8 vfn, in rockchip_pcie_ep_map_addr() argument
247 static void rockchip_pcie_ep_unmap_addr(struct pci_epc *epc, u8 fn, u8 vfn, in rockchip_pcie_ep_unmap_addr() argument
267 static int rockchip_pcie_ep_set_msi(struct pci_epc *epc, u8 fn, u8 vfn, in rockchip_pcie_ep_set_msi() argument
288 static int rockchip_pcie_ep_get_msi(struct pci_epc *epc, u8 fn, u8 vfn) in rockchip_pcie_ep_get_msi() argument
407 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/ce/
H A Dga100.c70 return nvkm_inth_add(&device->vfn->intr, vector, NVKM_INTR_PRIO_NORMAL, in ga100_ce_oneinit()
/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/subdev/
H A DKbuild26 include $(src)/nvkm/subdev/vfn/Kbuild
/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/include/nvkm/core/
H A Dlayout.h4 NVKM_LAYOUT_ONCE(NVKM_SUBDEV_VFN , struct nvkm_vfn , vfn)
/openbmc/linux/drivers/scsi/csiostor/
H A Dcsio_wr.h118 uint8_t vfn; member
203 uint8_t vfn; member
/openbmc/qemu/migration/
H A Ddirtyrate.c386 uint64_t vfn) in get_ramblock_vfn_hash() argument
391 vfn * qemu_target_page_size()); in get_ramblock_vfn_hash()
393 trace_get_ramblock_vfn_hash(info->idstr, vfn, hash); in get_ramblock_vfn_hash()

123