Home
last modified time | relevance | path

Searched refs:afu_idx (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/arch/powerpc/platforms/powernv/
Docxl.c90 static int find_dvsec_afu_ctrl(struct pci_dev *dev, u8 afu_idx) in find_dvsec_afu_ctrl() argument
99 if (idx == afu_idx) in find_dvsec_afu_ctrl()
105 static int get_max_afu_index(struct pci_dev *dev, int *afu_idx) in get_max_afu_index() argument
117 *afu_idx = (val & AFU_INDEX_MASK) >> AFU_INDEX_SHIFT; in get_max_afu_index()
119 *afu_idx = -1; in get_max_afu_index()
123 static int get_actag_count(struct pci_dev *dev, int afu_idx, int *actag) in get_actag_count() argument
128 pos = find_dvsec_afu_ctrl(dev, afu_idx); in get_actag_count()
167 int rc, afu_idx = -1, i, actag; in pnv_ocxl_fixup_actag() local
188 rc = get_max_afu_index(dev, &afu_idx); in pnv_ocxl_fixup_actag()
192 afu_idx = -1; in pnv_ocxl_fixup_actag()
[all …]
/linux-6.1.9/drivers/misc/ocxl/
Dcore.c213 static int configure_afu(struct ocxl_afu *afu, u8 afu_idx, struct pci_dev *dev) in configure_afu() argument
217 rc = ocxl_config_read_afu(dev, &afu->fn->config, &afu->config, afu_idx); in configure_afu()
263 static int init_afu(struct pci_dev *dev, struct ocxl_fn *fn, u8 afu_idx) in init_afu() argument
272 rc = configure_afu(afu, afu_idx, dev); in init_afu()
516 struct ocxl_afu *ocxl_function_fetch_afu(struct ocxl_fn *fn, u8 afu_idx) in ocxl_function_fetch_afu() argument
521 if (afu->config.idx == afu_idx) in ocxl_function_fetch_afu()
Dconfig.c39 static int find_dvsec_afu_ctrl(struct pci_dev *dev, u8 afu_idx) in find_dvsec_afu_ctrl() argument
56 if (idx == afu_idx) in find_dvsec_afu_ctrl()
381 struct ocxl_fn_config *fn, int afu_idx) in ocxl_config_check_afu_index() argument
389 afu_idx); in ocxl_config_check_afu_index()
653 struct ocxl_afu_config *afu, u8 afu_idx) in ocxl_config_read_afu() argument
662 WARN_ON((afu_idx & OCXL_DVSEC_AFU_IDX_MASK) != afu_idx); in ocxl_config_read_afu()
663 afu->idx = afu_idx; in ocxl_config_read_afu()
Docxl_internal.h131 struct ocxl_fn_config *fn, int afu_idx);
/linux-6.1.9/include/misc/
Docxl.h89 struct ocxl_afu *ocxl_function_fetch_afu(struct ocxl_fn *fn, u8 afu_idx);
336 u8 afu_idx);