Lines Matching refs:adapter

52 #define CH_MSG(adapter, level, category, fmt, ...) do { \  argument
53 if ((adapter)->msg_enable & NETIF_MSG_##category) \
54 dev_printk(KERN_##level, &adapter->pdev->dev, fmt, \
59 # define CH_DBG(adapter, category, fmt, ...) \ argument
60 CH_MSG(adapter, DEBUG, category, fmt, ## __VA_ARGS__)
62 # define CH_DBG(adapter, category, fmt, ...) argument
154 struct adapter;
443 struct adapter *adapter; member
457 struct adapter *adapter; /* backpointer to adapter */ member
471 struct adapter *adapter; member
552 struct adapter *adapter; /* associated adapter */ member
577 static inline void cphy_init(struct cphy *phy, struct adapter *adapter, in cphy_init() argument
583 phy->adapter = adapter; in cphy_init()
612 #define for_each_port(adapter, iter) \ argument
613 for (iter = 0; iter < (adapter)->params.nports; ++iter)
617 static inline int uses_xaui(const struct adapter *adap) in uses_xaui()
622 static inline int is_10G(const struct adapter *adap) in is_10G()
627 static inline int is_offload(const struct adapter *adap) in is_offload()
632 static inline unsigned int core_ticks_per_usec(const struct adapter *adap) in core_ticks_per_usec()
637 static inline unsigned int is_pcie(const struct adapter *adap) in is_pcie()
642 void t3_set_reg_field(struct adapter *adap, unsigned int addr, u32 mask,
644 void t3_write_regs(struct adapter *adapter, const struct addr_val_pair *p,
646 int t3_wait_op_done_val(struct adapter *adapter, int reg, u32 mask,
648 static inline int t3_wait_op_done(struct adapter *adapter, int reg, u32 mask, in t3_wait_op_done() argument
651 return t3_wait_op_done_val(adapter, reg, mask, polarity, attempts, in t3_wait_op_done()
665 void t3_intr_enable(struct adapter *adapter);
666 void t3_intr_disable(struct adapter *adapter);
667 void t3_intr_clear(struct adapter *adapter);
668 void t3_xgm_intr_enable(struct adapter *adapter, int idx);
669 void t3_xgm_intr_disable(struct adapter *adapter, int idx);
670 void t3_port_intr_enable(struct adapter *adapter, int idx);
671 void t3_port_intr_disable(struct adapter *adapter, int idx);
672 int t3_slow_intr_handler(struct adapter *adapter);
673 int t3_phy_intr_handler(struct adapter *adapter);
675 void t3_link_changed(struct adapter *adapter, int port_id);
676 void t3_link_fault(struct adapter *adapter, int port_id);
679 int t3_seeprom_read(struct adapter *adapter, u32 addr, __le32 *data);
680 int t3_seeprom_write(struct adapter *adapter, u32 addr, __le32 data);
681 int t3_seeprom_wp(struct adapter *adapter, int enable);
682 int t3_get_tp_version(struct adapter *adapter, u32 *vers);
683 int t3_check_tpsram_version(struct adapter *adapter);
684 int t3_check_tpsram(struct adapter *adapter, const u8 *tp_ram,
686 int t3_set_proto_sram(struct adapter *adap, const u8 *data);
687 int t3_load_fw(struct adapter *adapter, const u8 * fw_data, unsigned int size);
688 int t3_get_fw_version(struct adapter *adapter, u32 *vers);
689 int t3_check_fw_version(struct adapter *adapter);
690 int t3_init_hw(struct adapter *adapter, u32 fw_params);
691 int t3_reset_adapter(struct adapter *adapter);
692 int t3_prep_adapter(struct adapter *adapter, const struct adapter_info *ai,
694 int t3_replay_prep_adapter(struct adapter *adapter);
695 void t3_led_ready(struct adapter *adapter);
696 void t3_fatal_err(struct adapter *adapter);
697 void t3_set_vlan_accel(struct adapter *adapter, unsigned int ports, int on);
698 void t3_config_rss(struct adapter *adapter, unsigned int rss_config,
700 int t3_cim_ctl_blk_read(struct adapter *adap, unsigned int addr,
719 void t3_mc5_prep(struct adapter *adapter, struct mc5 *mc5, int mode);
724 void t3_tp_set_offload_mode(struct adapter *adap, int enable);
725 void t3_tp_get_mib_stats(struct adapter *adap, struct tp_mib_stats *tps);
726 void t3_load_mtus(struct adapter *adap, unsigned short mtus[NMTUS],
729 void t3_config_trace_filter(struct adapter *adapter,
732 int t3_config_sched(struct adapter *adap, unsigned int kbps, int sched);
734 void t3_sge_prep(struct adapter *adap, struct sge_params *p);
735 void t3_sge_init(struct adapter *adap, struct sge_params *p);
736 int t3_sge_init_ecntxt(struct adapter *adapter, unsigned int id, int gts_enable,
740 int t3_sge_init_flcntxt(struct adapter *adapter, unsigned int id,
744 int t3_sge_init_rspcntxt(struct adapter *adapter, unsigned int id,
747 int t3_sge_init_cqcntxt(struct adapter *adapter, unsigned int id, u64 base_addr,
750 int t3_sge_enable_ecntxt(struct adapter *adapter, unsigned int id, int enable);
751 int t3_sge_disable_fl(struct adapter *adapter, unsigned int id);
752 int t3_sge_disable_rspcntxt(struct adapter *adapter, unsigned int id);
753 int t3_sge_disable_cqcntxt(struct adapter *adapter, unsigned int id);
754 int t3_sge_cqcntxt_op(struct adapter *adapter, unsigned int id, unsigned int op,
757 int t3_vsc8211_phy_prep(struct cphy *phy, struct adapter *adapter,
759 int t3_ael1002_phy_prep(struct cphy *phy, struct adapter *adapter,
761 int t3_ael1006_phy_prep(struct cphy *phy, struct adapter *adapter,
763 int t3_ael2005_phy_prep(struct cphy *phy, struct adapter *adapter,
765 int t3_ael2020_phy_prep(struct cphy *phy, struct adapter *adapter,
767 int t3_qt2045_phy_prep(struct cphy *phy, struct adapter *adapter, int phy_addr,
769 int t3_xaui_direct_phy_prep(struct cphy *phy, struct adapter *adapter,
771 int t3_aq100x_phy_prep(struct cphy *phy, struct adapter *adapter,