Lines Matching refs:adap
44 #define CH_ERR(adap, fmt, ...) dev_err(&adap->pdev->dev, fmt, ##__VA_ARGS__) argument
45 #define CH_WARN(adap, fmt, ...) dev_warn(&adap->pdev->dev, fmt, ##__VA_ARGS__) argument
46 #define CH_ALERT(adap, fmt, ...) dev_alert(&adap->pdev->dev, fmt, ##__VA_ARGS__) argument
615 #define adapter_info(adap) ((adap)->params.info) argument
617 static inline int uses_xaui(const struct adapter *adap) in uses_xaui() argument
619 return adapter_info(adap)->caps & SUPPORTED_AUI; in uses_xaui()
622 static inline int is_10G(const struct adapter *adap) in is_10G() argument
624 return adapter_info(adap)->caps & SUPPORTED_10000baseT_Full; in is_10G()
627 static inline int is_offload(const struct adapter *adap) in is_offload() argument
629 return adap->params.offload; in is_offload()
632 static inline unsigned int core_ticks_per_usec(const struct adapter *adap) in core_ticks_per_usec() argument
634 return adap->params.vpd.cclk / 1000; in core_ticks_per_usec()
637 static inline unsigned int is_pcie(const struct adapter *adap) in is_pcie() argument
639 return adap->params.pci.variant == PCI_VARIANT_PCIE; in is_pcie()
642 void t3_set_reg_field(struct adapter *adap, unsigned int addr, u32 mask,
686 int t3_set_proto_sram(struct adapter *adap, const u8 *data);
700 int t3_cim_ctl_blk_read(struct adapter *adap, unsigned int addr,
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],
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);