Lines Matching refs:hwif
142 #define HINIC_HWIF_NUM_AEQS(hwif) ((hwif)->attr.num_aeqs) argument
143 #define HINIC_HWIF_NUM_CEQS(hwif) ((hwif)->attr.num_ceqs) argument
144 #define HINIC_HWIF_NUM_IRQS(hwif) ((hwif)->attr.num_irqs) argument
145 #define HINIC_HWIF_FUNC_IDX(hwif) ((hwif)->attr.func_idx) argument
146 #define HINIC_HWIF_PCI_INTF(hwif) ((hwif)->attr.pci_intf_idx) argument
147 #define HINIC_HWIF_PF_IDX(hwif) ((hwif)->attr.pf_idx) argument
148 #define HINIC_HWIF_PPF_IDX(hwif) ((hwif)->attr.ppf_idx) argument
150 #define HINIC_FUNC_TYPE(hwif) ((hwif)->attr.func_type) argument
151 #define HINIC_IS_VF(hwif) (HINIC_FUNC_TYPE(hwif) == HINIC_VF) argument
152 #define HINIC_IS_PF(hwif) (HINIC_FUNC_TYPE(hwif) == HINIC_PF) argument
153 #define HINIC_IS_PPF(hwif) (HINIC_FUNC_TYPE(hwif) == HINIC_PPF) argument
248 static inline u32 hinic_hwif_read_reg(struct hinic_hwif *hwif, u32 reg) in hinic_hwif_read_reg() argument
250 u32 out = readl(hwif->cfg_regs_bar + reg); in hinic_hwif_read_reg()
255 static inline void hinic_hwif_write_reg(struct hinic_hwif *hwif, u32 reg, in hinic_hwif_write_reg() argument
260 writel(*(u32 *)&in, hwif->cfg_regs_bar + reg); in hinic_hwif_write_reg()
263 int hinic_msix_attr_set(struct hinic_hwif *hwif, u16 msix_index,
268 void hinic_set_msix_state(struct hinic_hwif *hwif, u16 msix_idx,
271 int hinic_msix_attr_cnt_clear(struct hinic_hwif *hwif, u16 msix_index);
273 void hinic_set_pf_action(struct hinic_hwif *hwif, enum hinic_pf_action action);
275 enum hinic_outbound_state hinic_outbound_state_get(struct hinic_hwif *hwif);
277 void hinic_outbound_state_set(struct hinic_hwif *hwif,
280 enum hinic_db_state hinic_db_state_get(struct hinic_hwif *hwif);
282 void hinic_db_state_set(struct hinic_hwif *hwif,
285 u16 hinic_glb_pf_vf_offset(struct hinic_hwif *hwif);
287 u16 hinic_global_func_id_hw(struct hinic_hwif *hwif);
289 u16 hinic_pf_id_of_vf_hw(struct hinic_hwif *hwif);
291 int hinic_init_hwif(struct hinic_hwif *hwif, struct pci_dev *pdev);
293 void hinic_free_hwif(struct hinic_hwif *hwif);