Lines Matching refs:attr1
160 u32 addr, attr1; in hwif_ready() local
163 attr1 = hinic_hwif_read_reg(hwif, addr); in hwif_ready()
165 if (!HINIC_FA1_GET(attr1, MGMT_INIT_STATUS)) in hwif_ready()
169 if (!HINIC_FA1_GET(attr1, PF_INIT_STATUS)) in hwif_ready()
200 static void set_hwif_attr(struct hinic_hwif *hwif, u32 attr0, u32 attr1, in set_hwif_attr() argument
208 hwif->attr.num_aeqs = BIT(HINIC_FA1_GET(attr1, AEQS_PER_FUNC)); in set_hwif_attr()
209 hwif->attr.num_ceqs = BIT(HINIC_FA1_GET(attr1, CEQS_PER_FUNC)); in set_hwif_attr()
210 hwif->attr.num_irqs = BIT(HINIC_FA1_GET(attr1, IRQS_PER_FUNC)); in set_hwif_attr()
211 hwif->attr.num_dma_attr = BIT(HINIC_FA1_GET(attr1, DMA_ATTR_PER_FUNC)); in set_hwif_attr()
222 u32 addr, attr0, attr1, attr2; in read_hwif_attr() local
228 attr1 = hinic_hwif_read_reg(hwif, addr); in read_hwif_attr()
233 set_hwif_attr(hwif, attr0, attr1, attr2); in read_hwif_attr()
342 u32 addr, attr0, attr1; in __print_selftest_reg() local
345 attr1 = hinic_hwif_read_reg(hwif, addr); in __print_selftest_reg()
347 if (attr1 == HINIC_PCIE_LINK_DOWN) { in __print_selftest_reg()