Lines Matching refs:attr1
195 u32 addr, attr1; in hwif_ready() local
198 attr1 = hinic_hwif_read_reg(hwif, addr); in hwif_ready()
200 if (!HINIC_FA1_GET(attr1, MGMT_INIT_STATUS)) in hwif_ready()
204 if (!HINIC_FA1_GET(attr1, PF_INIT_STATUS)) in hwif_ready()
235 static void set_hwif_attr(struct hinic_hwif *hwif, u32 attr0, u32 attr1, in set_hwif_attr() argument
243 hwif->attr.num_aeqs = BIT(HINIC_FA1_GET(attr1, AEQS_PER_FUNC)); in set_hwif_attr()
244 hwif->attr.num_ceqs = BIT(HINIC_FA1_GET(attr1, CEQS_PER_FUNC)); in set_hwif_attr()
245 hwif->attr.num_irqs = BIT(HINIC_FA1_GET(attr1, IRQS_PER_FUNC)); in set_hwif_attr()
246 hwif->attr.num_dma_attr = BIT(HINIC_FA1_GET(attr1, DMA_ATTR_PER_FUNC)); in set_hwif_attr()
257 u32 addr, attr0, attr1, attr2; in read_hwif_attr() local
263 attr1 = hinic_hwif_read_reg(hwif, addr); in read_hwif_attr()
268 set_hwif_attr(hwif, attr0, attr1, attr2); in read_hwif_attr()
377 u32 addr, attr0, attr1; in __print_selftest_reg() local
380 attr1 = hinic_hwif_read_reg(hwif, addr); in __print_selftest_reg()
382 if (attr1 == HINIC_PCIE_LINK_DOWN) { in __print_selftest_reg()