Home
last modified time | relevance | path

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

/Linux-v4.19/arch/powerpc/platforms/powernv/
Docxl.c91 static int find_dvsec_afu_ctrl(struct pci_dev *dev, u8 afu_idx) in find_dvsec_afu_ctrl() argument
100 if (idx == afu_idx) in find_dvsec_afu_ctrl()
106 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-v4.19/drivers/misc/ocxl/
Dconfig.c47 static int find_dvsec_afu_ctrl(struct pci_dev *dev, u8 afu_idx) in find_dvsec_afu_ctrl() argument
64 if (idx == afu_idx) in find_dvsec_afu_ctrl()
278 struct ocxl_fn_config *fn, int afu_idx) in ocxl_config_check_afu_index() argument
283 pci_write_config_word(dev, fn->dvsec_afu_info_pos, afu_idx); in ocxl_config_check_afu_index()
442 struct ocxl_afu_config *afu, u8 afu_idx) in ocxl_config_read_afu() argument
451 WARN_ON((afu_idx & OCXL_DVSEC_AFU_IDX_MASK) != afu_idx); in ocxl_config_read_afu()
452 afu->idx = afu_idx; in ocxl_config_read_afu()
Dpci.c240 static int configure_afu(struct ocxl_afu *afu, u8 afu_idx, struct pci_dev *dev) in configure_afu() argument
244 rc = ocxl_config_read_afu(dev, &afu->fn->config, &afu->config, afu_idx); in configure_afu()
301 static int init_afu(struct pci_dev *dev, struct ocxl_fn *fn, u8 afu_idx) in init_afu() argument
310 rc = configure_afu(afu, afu_idx, dev); in init_afu()
/Linux-v4.19/include/misc/
Docxl.h66 struct ocxl_fn_config *fn, int afu_idx);
75 u8 afu_idx);