Lines Matching defs:adapter

52 #define CH_MSG(adapter, level, category, fmt, ...) do { \
53 if ((adapter)->msg_enable & NETIF_MSG_##category) \
54 dev_printk(KERN_##level, &adapter->pdev->dev, fmt, \
59 # define CH_DBG(adapter, category, fmt, ...) \
60 CH_MSG(adapter, DEBUG, category, fmt, ## __VA_ARGS__)
62 # define CH_DBG(adapter, category, fmt, ...)
92 enum { /* adapter interrupt-maintained statistics */
154 struct adapter;
170 unsigned long caps; /* adapter capabilities */
443 struct adapter *adapter;
457 struct adapter *adapter; /* backpointer to adapter */
471 struct adapter *adapter;
552 struct adapter *adapter; /* associated adapter */
577 static inline void cphy_init(struct cphy *phy, struct adapter *adapter,
583 phy->adapter = adapter;
606 #include "adapter.h"
612 #define for_each_port(adapter, iter) \
613 for (iter = 0; iter < (adapter)->params.nports; ++iter)
617 static inline int uses_xaui(const struct adapter *adap)
622 static inline int is_10G(const struct adapter *adap)
627 static inline int is_offload(const struct adapter *adap)
632 static inline unsigned int core_ticks_per_usec(const struct adapter *adap)
637 static inline unsigned int is_pcie(const struct adapter *adap)
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,
651 return t3_wait_op_done_val(adapter, reg, mask, polarity, attempts,
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_wp(struct adapter *adapter, int enable);
680 int t3_get_tp_version(struct adapter *adapter, u32 *vers);
681 int t3_check_tpsram_version(struct adapter *adapter);
682 int t3_check_tpsram(struct adapter *adapter, const u8 *tp_ram,
684 int t3_set_proto_sram(struct adapter *adap, const u8 *data);
685 int t3_load_fw(struct adapter *adapter, const u8 * fw_data, unsigned int size);
686 int t3_get_fw_version(struct adapter *adapter, u32 *vers);
687 int t3_check_fw_version(struct adapter *adapter);
688 int t3_init_hw(struct adapter *adapter, u32 fw_params);
689 int t3_reset_adapter(struct adapter *adapter);
690 int t3_prep_adapter(struct adapter *adapter, const struct adapter_info *ai,
692 int t3_replay_prep_adapter(struct adapter *adapter);
693 void t3_led_ready(struct adapter *adapter);
694 void t3_fatal_err(struct adapter *adapter);
695 void t3_set_vlan_accel(struct adapter *adapter, unsigned int ports, int on);
696 void t3_config_rss(struct adapter *adapter, unsigned int rss_config,
698 int t3_cim_ctl_blk_read(struct adapter *adap, unsigned int addr,
717 void t3_mc5_prep(struct adapter *adapter, struct mc5 *mc5, int mode);
722 void t3_tp_set_offload_mode(struct adapter *adap, int enable);
723 void t3_tp_get_mib_stats(struct adapter *adap, struct tp_mib_stats *tps);
724 void t3_load_mtus(struct adapter *adap, unsigned short mtus[NMTUS],
727 void t3_config_trace_filter(struct adapter *adapter,
730 int t3_config_sched(struct adapter *adap, unsigned int kbps, int sched);
732 void t3_sge_prep(struct adapter *adap, struct sge_params *p);
733 void t3_sge_init(struct adapter *adap, struct sge_params *p);
734 int t3_sge_init_ecntxt(struct adapter *adapter, unsigned int id, int gts_enable,
738 int t3_sge_init_flcntxt(struct adapter *adapter, unsigned int id,
742 int t3_sge_init_rspcntxt(struct adapter *adapter, unsigned int id,
745 int t3_sge_init_cqcntxt(struct adapter *adapter, unsigned int id, u64 base_addr,
748 int t3_sge_enable_ecntxt(struct adapter *adapter, unsigned int id, int enable);
749 int t3_sge_disable_fl(struct adapter *adapter, unsigned int id);
750 int t3_sge_disable_rspcntxt(struct adapter *adapter, unsigned int id);
751 int t3_sge_disable_cqcntxt(struct adapter *adapter, unsigned int id);
752 int t3_sge_cqcntxt_op(struct adapter *adapter, unsigned int id, unsigned int op,
755 int t3_vsc8211_phy_prep(struct cphy *phy, struct adapter *adapter,
757 int t3_ael1002_phy_prep(struct cphy *phy, struct adapter *adapter,
759 int t3_ael1006_phy_prep(struct cphy *phy, struct adapter *adapter,
761 int t3_ael2005_phy_prep(struct cphy *phy, struct adapter *adapter,
763 int t3_ael2020_phy_prep(struct cphy *phy, struct adapter *adapter,
765 int t3_qt2045_phy_prep(struct cphy *phy, struct adapter *adapter, int phy_addr,
767 int t3_xaui_direct_phy_prep(struct cphy *phy, struct adapter *adapter,
769 int t3_aq100x_phy_prep(struct cphy *phy, struct adapter *adapter,