Lines Matching refs:adapter
228 #define for_each_port(adapter, iter) \ argument
229 for (iter = 0; iter < (adapter)->params.nports; iter++)
242 static inline unsigned int core_ticks_per_usec(const struct adapter *adapter) in core_ticks_per_usec() argument
244 return adapter->params.vpd.cclk / 1000; in core_ticks_per_usec()
247 static inline unsigned int us_to_core_ticks(const struct adapter *adapter, in us_to_core_ticks() argument
250 return (us * adapter->params.vpd.cclk) / 1000; in us_to_core_ticks()
253 static inline unsigned int core_ticks_to_us(const struct adapter *adapter, in core_ticks_to_us() argument
256 return (ticks * 1000) / adapter->params.vpd.cclk; in core_ticks_to_us()
259 int t4vf_wr_mbox_core(struct adapter *, const void *, int, void *, bool);
261 static inline int t4vf_wr_mbox(struct adapter *adapter, const void *cmd, in t4vf_wr_mbox() argument
264 return t4vf_wr_mbox_core(adapter, cmd, size, rpl, true); in t4vf_wr_mbox()
267 static inline int t4vf_wr_mbox_ns(struct adapter *adapter, const void *cmd, in t4vf_wr_mbox_ns() argument
270 return t4vf_wr_mbox_core(adapter, cmd, size, rpl, false); in t4vf_wr_mbox_ns()
280 int t4vf_wait_dev_ready(struct adapter *);
281 int t4vf_port_init(struct adapter *, int);
283 int t4vf_fw_reset(struct adapter *);
284 int t4vf_set_params(struct adapter *, unsigned int, const u32 *, const u32 *);
287 int t4_bar2_sge_qregs(struct adapter *adapter,
293 int t4vf_get_sge_params(struct adapter *);
294 int t4vf_get_vpd_params(struct adapter *);
295 int t4vf_get_dev_params(struct adapter *);
296 int t4vf_get_rss_glb_config(struct adapter *);
297 int t4vf_get_vfres(struct adapter *);
299 int t4vf_read_rss_vi_config(struct adapter *, unsigned int,
301 int t4vf_write_rss_vi_config(struct adapter *, unsigned int,
303 int t4vf_config_rss_range(struct adapter *, unsigned int, int, int,
306 int t4vf_alloc_vi(struct adapter *, int);
307 int t4vf_free_vi(struct adapter *, int);
308 int t4vf_enable_vi(struct adapter *, unsigned int, bool, bool);
309 int t4vf_identify_port(struct adapter *, unsigned int, unsigned int);
311 int t4vf_set_rxmode(struct adapter *, unsigned int, int, int, int, int, int,
313 int t4vf_alloc_mac_filt(struct adapter *, unsigned int, bool, unsigned int,
315 int t4vf_change_mac(struct adapter *, unsigned int, int, const u8 *, bool);
316 int t4vf_set_addr_hash(struct adapter *, unsigned int, bool, u64, bool);
317 int t4vf_get_port_stats(struct adapter *, int, struct t4vf_port_stats *);
319 int t4vf_iq_free(struct adapter *, unsigned int, unsigned int, unsigned int,
321 int t4vf_eth_eq_free(struct adapter *, unsigned int);
323 int t4vf_handle_fw_rpl(struct adapter *, const __be64 *);
324 int t4vf_prep_adapter(struct adapter *);