Lines Matching refs:attr0
200 static void set_hwif_attr(struct hinic_hwif *hwif, u32 attr0, u32 attr1, in set_hwif_attr() argument
203 hwif->attr.func_idx = HINIC_FA0_GET(attr0, FUNC_IDX); in set_hwif_attr()
204 hwif->attr.pf_idx = HINIC_FA0_GET(attr0, PF_IDX); in set_hwif_attr()
205 hwif->attr.pci_intf_idx = HINIC_FA0_GET(attr0, PCI_INTF_IDX); in set_hwif_attr()
206 hwif->attr.func_type = HINIC_FA0_GET(attr0, FUNC_TYPE); in set_hwif_attr()
222 u32 addr, attr0, attr1, attr2; in read_hwif_attr() local
225 attr0 = hinic_hwif_read_reg(hwif, addr); in read_hwif_attr()
233 set_hwif_attr(hwif, attr0, attr1, attr2); in read_hwif_attr()
322 u32 addr, attr0; in hinic_global_func_id_hw() local
325 attr0 = hinic_hwif_read_reg(hwif, addr); in hinic_global_func_id_hw()
327 return HINIC_FA0_GET(attr0, FUNC_IDX); in hinic_global_func_id_hw()
332 u32 addr, attr0; in hinic_pf_id_of_vf_hw() local
335 attr0 = hinic_hwif_read_reg(hwif, addr); in hinic_pf_id_of_vf_hw()
337 return HINIC_FA0_GET(attr0, PF_IDX); in hinic_pf_id_of_vf_hw()
342 u32 addr, attr0, attr1; in __print_selftest_reg() local
353 attr0 = hinic_hwif_read_reg(hwif, addr); in __print_selftest_reg()
354 if (HINIC_FA0_GET(attr0, FUNC_TYPE) != HINIC_VF && in __print_selftest_reg()
355 !HINIC_FA0_GET(attr0, PCI_INTF_IDX)) in __print_selftest_reg()