Lines Matching full:int

157 	int (*read)(struct net_device *dev, int phy_addr, int mmd_addr,
159 int (*write)(struct net_device *dev, int phy_addr, int mmd_addr,
168 unsigned int gpio_out; /* GPIO output settings */
303 unsigned int nchan; /* # of channels */
304 unsigned int pmrx_size; /* total PMRX capacity */
305 unsigned int pmtx_size; /* total PMTX capacity */
306 unsigned int cm_size; /* total CM capacity */
307 unsigned int chan_rx_size; /* per channel Rx size */
308 unsigned int chan_tx_size; /* per channel Tx size */
309 unsigned int rx_pg_size; /* Rx page size */
310 unsigned int tx_pg_size; /* Tx page size */
311 unsigned int rx_num_pgs; /* # of Rx pages */
312 unsigned int tx_num_pgs; /* # of Tx pages */
313 unsigned int ntimer_qs; /* # of timer queues */
317 unsigned int polling; /* polling/interrupt service for rspq */
318 unsigned int coalesce_usecs; /* irq coalescing timer */
319 unsigned int rspq_size; /* # of entries in response queue */
320 unsigned int fl_size; /* # of entries in regular free list */
321 unsigned int jumbo_size; /* # of entries in jumbo free list */
322 unsigned int txq_size[SGE_TXQ_PER_SET]; /* Tx queue sizes */
323 unsigned int cong_thres; /* FL congestion threshold */
324 unsigned int vector; /* Interrupt (line or vector) number */
328 unsigned int max_pkt_size; /* max offload pkt size */
333 unsigned int mode; /* selects MC5 width */
334 unsigned int nservers; /* size of server region */
335 unsigned int nfilters; /* size of filter region */
336 unsigned int nroutes; /* size of routing region */
355 unsigned int cclk;
356 unsigned int mclk;
357 unsigned int uclk;
358 unsigned int mdc;
359 unsigned int mem_timing;
367 unsigned int vpd_cap_addr;
394 unsigned int nports; /* # of ethernet ports */
395 unsigned int chan_map; /* bitmap of in-use Tx channels */
396 unsigned int stats_update_period; /* MAC stats accumulation period */
397 unsigned int linkpoll_period; /* link poll period in 0.1s */
398 unsigned int rev; /* chip revision */
399 unsigned int offload;
427 unsigned int supported; /* link capabilities */
428 unsigned int advertising; /* advertised capabilities */
436 unsigned int link_ok; /* link up? */
444 unsigned int tcam_size;
451 static inline unsigned int t3_mc5_size(const struct mc5 *p) in t3_mc5_size()
458 unsigned int size; /* memory size in bytes */
459 unsigned int width; /* MC7 interface width */
460 unsigned int offset; /* register address offset for MC7 instance */
465 static inline unsigned int t3_mc7_size(const struct mc7 *p) in t3_mc7_size()
472 unsigned int offset;
473 unsigned int nucast; /* # of address filters for unicast MACs */
474 unsigned int tx_tcnt;
475 unsigned int tx_xcnt;
477 unsigned int rx_xcnt;
478 unsigned int rx_ocnt;
480 unsigned int toggle_cnt;
481 unsigned int txen;
518 int (*reset)(struct cphy *phy, int wait);
520 int (*intr_enable)(struct cphy *phy);
521 int (*intr_disable)(struct cphy *phy);
522 int (*intr_clear)(struct cphy *phy);
523 int (*intr_handler)(struct cphy *phy);
525 int (*autoneg_enable)(struct cphy *phy);
526 int (*autoneg_restart)(struct cphy *phy);
528 int (*advertise)(struct cphy *phy, unsigned int advertise_map);
529 int (*set_loopback)(struct cphy *phy, int mmd, int dir, int enable);
530 int (*set_speed_duplex)(struct cphy *phy, int speed, int duplex);
531 int (*get_link_status)(struct cphy *phy, int *link_ok, int *speed,
532 int *duplex, int *fc);
533 int (*power_down)(struct cphy *phy, int enable);
551 unsigned int caps; /* PHY capabilities */
561 static inline int t3_mdio_read(struct cphy *phy, int mmd, int reg, in t3_mdio_read()
562 unsigned int *valp) in t3_mdio_read()
564 int rc = phy->mdio.mdio_read(phy->mdio.dev, phy->mdio.prtad, mmd, reg); in t3_mdio_read()
569 static inline int t3_mdio_write(struct cphy *phy, int mmd, int reg, in t3_mdio_write()
570 unsigned int val) in t3_mdio_write()
578 int phy_addr, const struct cphy_ops *phy_ops, in cphy_init()
580 unsigned int caps, const char *desc) in cphy_init()
602 unsigned int reg_addr;
603 unsigned int val;
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,
645 int n, unsigned int offset);
646 int t3_wait_op_done_val(struct adapter *adapter, int reg, u32 mask,
647 int polarity, int attempts, int delay, u32 *valp);
648 static inline int t3_wait_op_done(struct adapter *adapter, int reg, u32 mask, in t3_wait_op_done()
649 int polarity, int attempts, int delay) in t3_wait_op_done()
654 int t3_mdio_change_bits(struct cphy *phy, int mmd, int reg, unsigned int clear,
655 unsigned int set);
656 int t3_phy_reset(struct cphy *phy, int mmd, int wait);
657 int t3_phy_advertise(struct cphy *phy, unsigned int advert);
658 int t3_phy_advertise_fiber(struct cphy *phy, unsigned int advert);
659 int t3_set_phy_speed_duplex(struct cphy *phy, int speed, int duplex);
660 int t3_phy_lasi_intr_enable(struct cphy *phy);
661 int t3_phy_lasi_intr_disable(struct cphy *phy);
662 int t3_phy_lasi_intr_clear(struct cphy *phy);
663 int t3_phy_lasi_intr_handler(struct cphy *phy);
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);
677 int t3_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc);
678 const struct adapter_info *t3_get_adapter_info(unsigned int board_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,
683 unsigned int size);
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,
691 int reset);
692 int t3_replay_prep_adapter(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,
699 unsigned int n, unsigned int *valp);
700 int t3_mc7_bd_read(struct mc7 *mc7, unsigned int start, unsigned int n,
703 int t3_mac_reset(struct cmac *mac);
707 int t3_mac_enable(struct cmac *mac, int which);
708 int t3_mac_disable(struct cmac *mac, int which);
709 int t3_mac_set_mtu(struct cmac *mac, unsigned int mtu);
710 int t3_mac_set_rx_mode(struct cmac *mac, struct net_device *dev);
711 int t3_mac_set_address(struct cmac *mac, unsigned int idx, const u8 addr[6]);
712 int t3_mac_set_num_ucast(struct cmac *mac, int n);
714 int t3_mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex, int fc);
715 int t3b2_mac_watchdog_task(struct cmac *mac);
717 void t3_mc5_prep(struct adapter *adapter, struct mc5 *mc5, int mode);
718 int t3_mc5_init(struct mc5 *mc5, unsigned int nservers, unsigned int nfilters,
719 unsigned int nroutes);
722 void t3_tp_set_offload_mode(struct adapter *adap, int enable);
728 const struct trace_params *tp, int filter_index,
729 int invert, int enable);
730 int t3_config_sched(struct adapter *adap, unsigned int kbps, int sched);
734 int t3_sge_init_ecntxt(struct adapter *adapter, unsigned int id, int gts_enable,
735 enum sge_context_type type, int respq, u64 base_addr,
736 unsigned int size, unsigned int token, int gen,
737 unsigned int cidx);
738 int t3_sge_init_flcntxt(struct adapter *adapter, unsigned int id,
739 int gts_enable, u64 base_addr, unsigned int size,
740 unsigned int esize, unsigned int cong_thres, int gen,
741 unsigned int cidx);
742 int t3_sge_init_rspcntxt(struct adapter *adapter, unsigned int id,
743 int irq_vec_idx, u64 base_addr, unsigned int size,
744 unsigned int fl_thres, int gen, unsigned int cidx);
745 int t3_sge_init_cqcntxt(struct adapter *adapter, unsigned int id, u64 base_addr,
746 unsigned int size, int rspq, int ovfl_mode,
747 unsigned int credits, unsigned int credit_thres);
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,
753 unsigned int credits);
755 int t3_vsc8211_phy_prep(struct cphy *phy, struct adapter *adapter,
756 int phy_addr, const struct mdio_ops *mdio_ops);
757 int t3_ael1002_phy_prep(struct cphy *phy, struct adapter *adapter,
758 int phy_addr, const struct mdio_ops *mdio_ops);
759 int t3_ael1006_phy_prep(struct cphy *phy, struct adapter *adapter,
760 int phy_addr, const struct mdio_ops *mdio_ops);
761 int t3_ael2005_phy_prep(struct cphy *phy, struct adapter *adapter,
762 int phy_addr, const struct mdio_ops *mdio_ops);
763 int t3_ael2020_phy_prep(struct cphy *phy, struct adapter *adapter,
764 int phy_addr, const struct mdio_ops *mdio_ops);
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,
768 int phy_addr, const struct mdio_ops *mdio_ops);
769 int t3_aq100x_phy_prep(struct cphy *phy, struct adapter *adapter,
770 int phy_addr, const struct mdio_ops *mdio_ops);