Lines Matching refs:intf
268 unsigned long (*rx_desc_read)(struct bcmasp_intf *intf);
269 void (*rx_buffer_write)(struct bcmasp_intf *intf, dma_addr_t addr);
270 void (*rx_desc_write)(struct bcmasp_intf *intf, dma_addr_t addr);
271 unsigned long (*tx_read)(struct bcmasp_intf *intf);
272 void (*tx_write)(struct bcmasp_intf *intf, dma_addr_t addr);
336 /* Used if per intf wol irq */
373 void (*enable_wol)(struct bcmasp_intf *intf, bool en);
391 void (*enable_wol)(struct bcmasp_intf *intf, bool en);
413 static inline unsigned long bcmasp_intf_rx_desc_read(struct bcmasp_intf *intf)
415 return intf->ops->rx_desc_read(intf);
418 static inline void bcmasp_intf_rx_buffer_write(struct bcmasp_intf *intf,
421 intf->ops->rx_buffer_write(intf, addr);
424 static inline void bcmasp_intf_rx_desc_write(struct bcmasp_intf *intf,
427 intf->ops->rx_desc_write(intf, addr);
430 static inline unsigned long bcmasp_intf_tx_read(struct bcmasp_intf *intf)
432 return intf->ops->tx_read(intf);
435 static inline void bcmasp_intf_tx_write(struct bcmasp_intf *intf,
438 intf->ops->tx_write(intf, addr);
442 static inline u32 name##_rl(struct bcmasp_intf *intf, u32 off) \
444 u32 reg = readl_relaxed(intf->m + off); \
447 static inline void name##_wl(struct bcmasp_intf *intf, u32 val, u32 off)\
449 writel_relaxed(val, intf->m + off); \
467 static inline u64 name##_rq(struct bcmasp_intf *intf, u32 off) \
469 u64 reg = readq_relaxed(intf->m + off); \
472 static inline void name##_wq(struct bcmasp_intf *intf, u64 val, u32 off)\
474 writeq_relaxed(val, intf->m + off); \
538 void bcmasp_interface_destroy(struct bcmasp_intf *intf);
540 void bcmasp_enable_tx_irq(struct bcmasp_intf *intf, int en);
542 void bcmasp_enable_rx_irq(struct bcmasp_intf *intf, int en);
544 void bcmasp_flush_rx_port(struct bcmasp_intf *intf);
548 int bcmasp_interface_suspend(struct bcmasp_intf *intf);
550 int bcmasp_interface_resume(struct bcmasp_intf *intf);
552 void bcmasp_set_promisc(struct bcmasp_intf *intf, bool en);
554 void bcmasp_set_allmulti(struct bcmasp_intf *intf, bool en);
556 void bcmasp_set_broad(struct bcmasp_intf *intf, bool en);
558 void bcmasp_set_oaddr(struct bcmasp_intf *intf, const unsigned char *addr,
561 int bcmasp_set_en_mda_filter(struct bcmasp_intf *intf, unsigned char *addr,
564 void bcmasp_disable_all_filters(struct bcmasp_intf *intf);
566 void bcmasp_core_clock_set_intf(struct bcmasp_intf *intf, bool en);
568 struct bcmasp_net_filter *bcmasp_netfilt_get_init(struct bcmasp_intf *intf,
572 bool bcmasp_netfilt_check_dup(struct bcmasp_intf *intf,
575 void bcmasp_netfilt_release(struct bcmasp_intf *intf,
578 int bcmasp_netfilt_get_active(struct bcmasp_intf *intf);
580 int bcmasp_netfilt_get_all_active(struct bcmasp_intf *intf, u32 *rule_locs,
583 void bcmasp_netfilt_suspend(struct bcmasp_intf *intf);
585 void bcmasp_eee_enable_set(struct bcmasp_intf *intf, bool enable);