/openbmc/qemu/hw/net/ |
H A D | igbvf.c | 97 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 D | igb_core.c | 118 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 D | igb_core.h | 132 igb_core_vf_reset(IGBCore *core, uint16_t vfn);
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/vfn/ |
H A D | tu102.c | 29 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 D | base.c | 39 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 D | uvfn.c | 29 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 D | Kbuild | 2 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 D | pcie-cadence-ep.c | 24 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 D | pci_iov.h | 14 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 D | pci_iov.c | 40 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 D | pci_bus.c | 117 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 D | pci_sysfs.c | 34 zpci_attr(vfn, "0x%04x\n", vfn);
|
/openbmc/linux/drivers/net/ethernet/intel/ixgbevf/ |
H A D | mbx.h | 26 #define IXGBE_PFMBMEM(vfn) (0x13000 + (64 * (vfn))) argument
|
/openbmc/linux/drivers/pci/controller/ |
H A D | pcie-rockchip-ep.c | 92 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 D | pcie-rcar-ep.c | 159 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 D | vfio_pci_zdev.c | 31 .vfn = zdev->vfn, in zpci_base_cap()
|
/openbmc/qemu/linux-headers/linux/ |
H A D | vfio_zdev.h | 28 __u16 vfn; /* Virtual function number */ member
|
/openbmc/linux/include/uapi/linux/ |
H A D | vfio_zdev.h | 28 __u16 vfn; /* Virtual function number */ member
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/ce/ |
H A D | ga100.c | 70 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 D | ga100.c | 495 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 D | Kbuild | 26 include $(src)/nvkm/subdev/vfn/Kbuild
|
/openbmc/qemu/hw/s390x/ |
H A D | s390-pci-vfio.c | 126 pbdev->zpci_fn.vfn = cap->vfn; in s390_pci_read_base()
|
/openbmc/linux/drivers/gpu/drm/nouveau/include/nvkm/core/ |
H A D | layout.h | 4 NVKM_LAYOUT_ONCE(NVKM_SUBDEV_VFN , struct nvkm_vfn , vfn)
|
/openbmc/linux/drivers/scsi/csiostor/ |
H A D | csio_wr.h | 118 uint8_t vfn; member 203 uint8_t vfn; member
|
/openbmc/qemu/migration/ |
H A D | dirtyrate.c | 386 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()
|