Lines Matching refs:enic

145 struct enic {  struct
206 struct enic *enic = vdev->priv; in vnic_get_netdev() argument
208 return enic->netdev; in vnic_get_netdev()
227 static inline struct device *enic_get_dev(struct enic *enic) in enic_get_dev() argument
229 return &(enic->pdev->dev); in enic_get_dev()
232 static inline unsigned int enic_cq_rq(struct enic *enic, unsigned int rq) in enic_cq_rq() argument
237 static inline unsigned int enic_cq_wq(struct enic *enic, unsigned int wq) in enic_cq_wq() argument
239 return enic->rq_count + wq; in enic_cq_wq()
257 static inline unsigned int enic_msix_rq_intr(struct enic *enic, in enic_msix_rq_intr() argument
260 return enic->cq[enic_cq_rq(enic, rq)].interrupt_offset; in enic_msix_rq_intr()
263 static inline unsigned int enic_msix_wq_intr(struct enic *enic, in enic_msix_wq_intr() argument
266 return enic->cq[enic_cq_wq(enic, wq)].interrupt_offset; in enic_msix_wq_intr()
269 static inline unsigned int enic_msix_err_intr(struct enic *enic) in enic_msix_err_intr() argument
271 return enic->rq_count + enic->wq_count; in enic_msix_err_intr()
274 static inline unsigned int enic_msix_notify_intr(struct enic *enic) in enic_msix_notify_intr() argument
276 return enic->rq_count + enic->wq_count + 1; in enic_msix_notify_intr()
279 static inline bool enic_is_err_intr(struct enic *enic, int intr) in enic_is_err_intr() argument
281 switch (vnic_dev_get_intr_mode(enic->vdev)) { in enic_is_err_intr()
285 return intr == enic_msix_err_intr(enic); in enic_is_err_intr()
292 static inline bool enic_is_notify_intr(struct enic *enic, int intr) in enic_is_notify_intr() argument
294 switch (vnic_dev_get_intr_mode(enic->vdev)) { in enic_is_notify_intr()
298 return intr == enic_msix_notify_intr(enic); in enic_is_notify_intr()
305 static inline int enic_dma_map_check(struct enic *enic, dma_addr_t dma_addr) in enic_dma_map_check() argument
307 if (unlikely(pci_dma_mapping_error(enic->pdev, dma_addr))) { in enic_dma_map_check()
309 enic->netdev->name); in enic_dma_map_check()
310 enic->gen_stats.dma_map_error++; in enic_dma_map_check()
318 void enic_reset_addr_lists(struct enic *enic);
319 int enic_sriov_enabled(struct enic *enic);
320 int enic_is_valid_vf(struct enic *enic, int vf);
321 int enic_is_dynamic(struct enic *enic);
323 int __enic_set_rsskey(struct enic *enic);