Lines Matching refs:enic
166 struct enic { struct
227 struct enic *enic = vdev->priv; in vnic_get_netdev() argument
229 return enic->netdev; in vnic_get_netdev()
248 static inline struct device *enic_get_dev(struct enic *enic) in enic_get_dev() argument
250 return &(enic->pdev->dev); in enic_get_dev()
253 static inline unsigned int enic_cq_rq(struct enic *enic, unsigned int rq) in enic_cq_rq() argument
258 static inline unsigned int enic_cq_wq(struct enic *enic, unsigned int wq) in enic_cq_wq() argument
260 return enic->rq_count + wq; in enic_cq_wq()
263 static inline unsigned int enic_msix_rq_intr(struct enic *enic, in enic_msix_rq_intr() argument
266 return enic->cq[enic_cq_rq(enic, rq)].interrupt_offset; in enic_msix_rq_intr()
269 static inline unsigned int enic_msix_wq_intr(struct enic *enic, in enic_msix_wq_intr() argument
272 return enic->cq[enic_cq_wq(enic, wq)].interrupt_offset; in enic_msix_wq_intr()
275 static inline unsigned int enic_msix_err_intr(struct enic *enic) in enic_msix_err_intr() argument
277 return enic->rq_count + enic->wq_count; in enic_msix_err_intr()
284 static inline unsigned int enic_msix_notify_intr(struct enic *enic) in enic_msix_notify_intr() argument
286 return enic->rq_count + enic->wq_count + 1; in enic_msix_notify_intr()
289 static inline bool enic_is_err_intr(struct enic *enic, int intr) in enic_is_err_intr() argument
291 switch (vnic_dev_get_intr_mode(enic->vdev)) { in enic_is_err_intr()
295 return intr == enic_msix_err_intr(enic); in enic_is_err_intr()
302 static inline bool enic_is_notify_intr(struct enic *enic, int intr) in enic_is_notify_intr() argument
304 switch (vnic_dev_get_intr_mode(enic->vdev)) { in enic_is_notify_intr()
308 return intr == enic_msix_notify_intr(enic); in enic_is_notify_intr()
315 static inline int enic_dma_map_check(struct enic *enic, dma_addr_t dma_addr) in enic_dma_map_check() argument
317 if (unlikely(dma_mapping_error(&enic->pdev->dev, dma_addr))) { in enic_dma_map_check()
319 enic->netdev->name); in enic_dma_map_check()
320 enic->gen_stats.dma_map_error++; in enic_dma_map_check()
328 void enic_reset_addr_lists(struct enic *enic);
329 int enic_sriov_enabled(struct enic *enic);
330 int enic_is_valid_vf(struct enic *enic, int vf);
331 int enic_is_dynamic(struct enic *enic);
333 int __enic_set_rsskey(struct enic *enic);