| /linux-6.15/drivers/gpu/drm/nouveau/nvkm/subdev/vfn/ |
| H A D | tu102.c | 31 struct nvkm_vfn *vfn = container_of(intr, typeof(*vfn), intr); in tu102_vfn_intr_reset() local 33 nvkm_wr32(vfn->subdev.device, vfn->addr.priv + 0x1000 + (leaf * 4), mask); in tu102_vfn_intr_reset() 39 struct nvkm_vfn *vfn = container_of(intr, typeof(*vfn), intr); in tu102_vfn_intr_allow() local 41 nvkm_wr32(vfn->subdev.device, vfn->addr.priv + 0x1200 + (leaf * 4), mask); in tu102_vfn_intr_allow() 47 struct nvkm_vfn *vfn = container_of(intr, typeof(*vfn), intr); in tu102_vfn_intr_block() local 49 nvkm_wr32(vfn->subdev.device, vfn->addr.priv + 0x1400 + (leaf * 4), mask); in tu102_vfn_intr_block() 55 struct nvkm_vfn *vfn = container_of(intr, typeof(*vfn), intr); in tu102_vfn_intr_rearm() local 57 nvkm_wr32(vfn->subdev.device, vfn->addr.priv + 0x1608, 0x0000000f); in tu102_vfn_intr_rearm() 63 struct nvkm_vfn *vfn = container_of(intr, typeof(*vfn), intr); in tu102_vfn_intr_unarm() local 65 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 8 nvkm-y += nvkm/subdev/vfn/r535.o
|
| H A D | r535.c | 25 r535_vfn_dtor(struct nvkm_vfn *vfn) in r535_vfn_dtor() argument 27 kfree(vfn->func); in r535_vfn_dtor()
|
| /linux-6.15/drivers/pci/controller/cadence/ |
| H A D | pcie-cadence-ep.c | 25 if (vfn == 0) in cdns_pcie_get_fn_from_vfn() 43 if (vfn > 1) { in cdns_pcie_ep_write_header() 46 } else if (vfn == 1) { in cdns_pcie_ep_write_header() 120 if (vfn == 1) in cdns_pcie_ep_set_bar() 126 if (vfn == 0 || vfn == 1) { in cdns_pcie_ep_set_bar() 141 if (vfn > 0) in cdns_pcie_ep_set_bar() 157 if (vfn == 1) in cdns_pcie_ep_clear_bar() 163 if (vfn == 0 || vfn == 1) { in cdns_pcie_ep_clear_bar() 176 if (vfn > 0) in cdns_pcie_ep_clear_bar() 494 if (vfn > 0) in cdns_pcie_ep_send_msix_irq() [all …]
|
| /linux-6.15/arch/s390/pci/ |
| 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() 85 if (!zdev->vfn || !zdev->rid_available) in zpci_iov_find_parent_pf() 88 vfid = zdev->vfn - 1; in zpci_iov_find_parent_pf() 114 int zpci_iov_setup_virtfn(struct zpci_bus *zbus, struct pci_dev *virtfn, int vfn) in zpci_iov_setup_virtfn() argument 123 rc = zpci_iov_link_virtfn(pdev_pf, virtfn, zdev->vfn - 1); in zpci_iov_setup_virtfn()
|
| H A D | pci_iov.h | 16 void zpci_iov_remove_virtfn(struct pci_dev *pdev, int vfn); 20 int zpci_iov_setup_virtfn(struct zpci_bus *zbus, struct pci_dev *virtfn, int vfn); 25 static inline void zpci_iov_remove_virtfn(struct pci_dev *pdev, int vfn) {} in zpci_iov_remove_virtfn() argument 29 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_bus.c | 113 zpci_iov_remove_virtfn(pdev, zdev->vfn); in zpci_bus_remove_device() 175 !zdev->vfn; in zpci_bus_is_multifunction_root() 317 if (zdev->vfn) { in pcibios_bus_add_device() 318 zpci_iov_setup_virtfn(zdev->zbus, pdev, zdev->vfn); in pcibios_bus_add_device() 361 if (!zdev->vfn) in zpci_bus_is_isolated_vf()
|
| H A D | pci_sysfs.c | 34 zpci_attr(vfn, "0x%04x\n", vfn);
|
| /linux-6.15/drivers/net/ethernet/intel/ixgbevf/ |
| H A D | mbx.h | 26 #define IXGBE_PFMBMEM(vfn) (0x13000 + (64 * (vfn))) argument
|
| /linux-6.15/drivers/pci/controller/ |
| 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
|
| H A D | pcie-rockchip-ep.c | 114 static int rockchip_pcie_ep_write_header(struct pci_epc *epc, u8 fn, u8 vfn, in rockchip_pcie_ep_write_header() argument 151 static int rockchip_pcie_ep_set_bar(struct pci_epc *epc, u8 fn, u8 vfn, in rockchip_pcie_ep_set_bar() argument 219 static void rockchip_pcie_ep_clear_bar(struct pci_epc *epc, u8 fn, u8 vfn, in rockchip_pcie_ep_clear_bar() argument 275 static int rockchip_pcie_ep_map_addr(struct pci_epc *epc, u8 fn, u8 vfn, in rockchip_pcie_ep_map_addr() argument 294 static void rockchip_pcie_ep_unmap_addr(struct pci_epc *epc, u8 fn, u8 vfn, in rockchip_pcie_ep_unmap_addr() argument 310 static int rockchip_pcie_ep_set_msi(struct pci_epc *epc, u8 fn, u8 vfn, in rockchip_pcie_ep_set_msi() argument 331 static int rockchip_pcie_ep_get_msi(struct pci_epc *epc, u8 fn, u8 vfn) in rockchip_pcie_ep_get_msi() argument 454 static int rockchip_pcie_ep_raise_irq(struct pci_epc *epc, u8 fn, u8 vfn, in rockchip_pcie_ep_raise_irq() argument
|
| /linux-6.15/drivers/vfio/pci/ |
| H A D | vfio_pci_zdev.c | 31 .vfn = zdev->vfn, in zpci_base_cap()
|
| /linux-6.15/include/uapi/linux/ |
| H A D | vfio_zdev.h | 28 __u16 vfn; /* Virtual function number */ member
|
| /linux-6.15/drivers/gpu/drm/nouveau/nvkm/engine/ce/ |
| H A D | ga100.c | 71 return nvkm_inth_add(&device->vfn->intr, vector, NVKM_INTR_PRIO_NORMAL, in ga100_ce_oneinit()
|
| /linux-6.15/drivers/gpu/drm/nouveau/nvkm/engine/device/ |
| H A D | base.c | 2325 .vfn = { 0x00000001, gv100_vfn_new }, 2360 .vfn = { 0x00000001, tu102_vfn_new }, 2395 .vfn = { 0x00000001, tu102_vfn_new }, 2430 .vfn = { 0x00000001, tu102_vfn_new }, 2465 .vfn = { 0x00000001, tu102_vfn_new }, 2500 .vfn = { 0x00000001, tu102_vfn_new }, 2529 .vfn = { 0x00000001, ga100_vfn_new }, 2557 .vfn = { 0x00000001, ga100_vfn_new }, 2589 .vfn = { 0x00000001, ga100_vfn_new }, 2621 .vfn = { 0x00000001, ga100_vfn_new }, [all …]
|
| H A D | user.c | 297 else if (device->vfn && index-- == 0) in nvkm_udevice_child_get() 298 sclass = &device->vfn->user; in nvkm_udevice_child_get()
|
| /linux-6.15/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
| H A D | ga100.c | 496 ret = nvkm_inth_add(&device->vfn->intr, vector & 0x00000fff, NVKM_INTR_PRIO_NORMAL, in ga100_runl_new() 545 struct nvkm_vfn *vfn = subdev->device->vfn; in ga100_fifo_nonstall_ctor() local 562 ret = nvkm_inth_add(&vfn->intr, runl->nonstall.vector, NVKM_INTR_PRIO_NORMAL, in ga100_fifo_nonstall_ctor()
|
| /linux-6.15/drivers/gpu/drm/nouveau/nvkm/subdev/ |
| H A D | Kbuild | 26 include $(src)/nvkm/subdev/vfn/Kbuild
|
| /linux-6.15/drivers/scsi/csiostor/ |
| H A D | csio_wr.h | 118 uint8_t vfn; member 203 uint8_t vfn; member
|
| H A D | csio_mb.c | 451 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()
|
| /linux-6.15/tools/mm/ |
| H A D | thpmaps | 277 vfn = int(vfns[index]) 278 align = 'aligned' if align_forward(vfn, nr) == vfn else 'unaligned'
|
| /linux-6.15/drivers/gpu/drm/nouveau/include/nvkm/core/ |
| H A D | layout.h | 4 NVKM_LAYOUT_ONCE(NVKM_SUBDEV_VFN , struct nvkm_vfn , vfn)
|
| /linux-6.15/drivers/gpu/drm/nouveau/nvkm/engine/sec2/ |
| H A D | ga102.c | 71 return &device->vfn->intr; in ga102_sec2_intr_vector()
|