Lines Matching refs:ksz_hw
1262 struct ksz_hw { struct
1346 struct ksz_hw *hw;
1420 struct ksz_hw hw;
1492 static inline void hw_ack_intr(struct ksz_hw *hw, uint interrupt) in hw_ack_intr()
1497 static inline void hw_dis_intr(struct ksz_hw *hw) in hw_dis_intr()
1504 static inline void hw_set_intr(struct ksz_hw *hw, uint interrupt) in hw_set_intr()
1510 static inline void hw_ena_intr(struct ksz_hw *hw) in hw_ena_intr()
1516 static inline void hw_dis_intr_bit(struct ksz_hw *hw, uint bit) in hw_dis_intr_bit()
1521 static inline void hw_turn_off_intr(struct ksz_hw *hw, uint interrupt) in hw_turn_off_intr()
1539 static void hw_turn_on_intr(struct ksz_hw *hw, u32 bit) in hw_turn_on_intr()
1547 static inline void hw_ena_intr_bit(struct ksz_hw *hw, uint interrupt) in hw_ena_intr_bit()
1556 static inline void hw_read_intr(struct ksz_hw *hw, uint *status) in hw_read_intr()
1562 static inline void hw_restore_intr(struct ksz_hw *hw, uint interrupt) in hw_restore_intr()
1577 static uint hw_block_intr(struct ksz_hw *hw) in hw_block_intr()
1667 static void sw_r_table(struct ksz_hw *hw, int table, u16 addr, u32 *data) in sw_r_table()
1694 static void sw_w_table_64(struct ksz_hw *hw, int table, u16 addr, u32 data_hi, in sw_w_table_64()
1727 static void sw_w_sta_mac_table(struct ksz_hw *hw, u16 addr, u8 *mac_addr, in sw_w_sta_mac_table()
1764 static int sw_r_vlan_table(struct ksz_hw *hw, u16 addr, u16 *vid, u8 *fid, in sw_r_vlan_table()
1790 static void port_r_mib_cnt(struct ksz_hw *hw, int port, u16 addr, u64 *cnt) in port_r_mib_cnt()
1829 static void port_r_mib_pkt(struct ksz_hw *hw, int port, u32 *last, u64 *cnt) in port_r_mib_pkt()
1877 static int port_r_cnt(struct ksz_hw *hw, int port) in port_r_cnt()
1902 static void port_init_cnt(struct ksz_hw *hw, int port) in port_init_cnt()
1936 static int port_chk(struct ksz_hw *hw, int port, int offset, u16 bits) in port_chk()
1957 static void port_cfg(struct ksz_hw *hw, int port, int offset, u16 bits, in port_cfg()
1985 static int port_chk_shift(struct ksz_hw *hw, int port, u32 addr, int shift) in port_chk_shift()
2005 static void port_cfg_shift(struct ksz_hw *hw, int port, u32 addr, int shift, in port_cfg_shift()
2029 static void port_r8(struct ksz_hw *hw, int port, int offset, u8 *data) in port_r8()
2047 static void port_r16(struct ksz_hw *hw, int port, int offset, u16 *data) in port_r16()
2065 static void port_w16(struct ksz_hw *hw, int port, int offset, u16 data) in port_w16()
2085 static int sw_chk(struct ksz_hw *hw, u32 addr, u16 bits) in sw_chk()
2102 static void sw_cfg(struct ksz_hw *hw, u32 addr, u16 bits, int set) in sw_cfg()
2116 static inline void port_cfg_broad_storm(struct ksz_hw *hw, int p, int set) in port_cfg_broad_storm()
2122 static inline int port_chk_broad_storm(struct ksz_hw *hw, int p) in port_chk_broad_storm()
2141 static void sw_cfg_broad_storm(struct ksz_hw *hw, u8 percent) in sw_cfg_broad_storm()
2162 static void sw_get_broad_storm(struct ksz_hw *hw, u8 *percent) in sw_get_broad_storm()
2182 static void sw_dis_broad_storm(struct ksz_hw *hw, int port) in sw_dis_broad_storm()
2194 static void sw_ena_broad_storm(struct ksz_hw *hw, int port) in sw_ena_broad_storm()
2206 static void sw_init_broad_storm(struct ksz_hw *hw) in sw_init_broad_storm()
2225 static void hw_cfg_broad_storm(struct ksz_hw *hw, u8 percent) in hw_cfg_broad_storm()
2242 static void sw_dis_prio_rate(struct ksz_hw *hw, int port) in sw_dis_prio_rate()
2257 static void sw_init_prio_rate(struct ksz_hw *hw) in sw_init_prio_rate()
2274 static inline void port_cfg_back_pressure(struct ksz_hw *hw, int p, int set) in port_cfg_back_pressure()
2280 static inline void port_cfg_force_flow_ctrl(struct ksz_hw *hw, int p, int set) in port_cfg_force_flow_ctrl()
2286 static inline int port_chk_back_pressure(struct ksz_hw *hw, int p) in port_chk_back_pressure()
2292 static inline int port_chk_force_flow_ctrl(struct ksz_hw *hw, int p) in port_chk_force_flow_ctrl()
2300 static inline void port_cfg_rx(struct ksz_hw *hw, int p, int set) in port_cfg_rx()
2306 static inline void port_cfg_tx(struct ksz_hw *hw, int p, int set) in port_cfg_tx()
2312 static inline void sw_cfg_fast_aging(struct ksz_hw *hw, int set) in sw_cfg_fast_aging()
2317 static inline void sw_flush_dyn_mac_table(struct ksz_hw *hw) in sw_flush_dyn_mac_table()
2328 static inline void port_cfg_ins_tag(struct ksz_hw *hw, int p, int insert) in port_cfg_ins_tag()
2334 static inline void port_cfg_rmv_tag(struct ksz_hw *hw, int p, int remove) in port_cfg_rmv_tag()
2340 static inline int port_chk_ins_tag(struct ksz_hw *hw, int p) in port_chk_ins_tag()
2346 static inline int port_chk_rmv_tag(struct ksz_hw *hw, int p) in port_chk_rmv_tag()
2352 static inline void port_cfg_dis_non_vid(struct ksz_hw *hw, int p, int set) in port_cfg_dis_non_vid()
2358 static inline void port_cfg_in_filter(struct ksz_hw *hw, int p, int set) in port_cfg_in_filter()
2364 static inline int port_chk_dis_non_vid(struct ksz_hw *hw, int p) in port_chk_dis_non_vid()
2370 static inline int port_chk_in_filter(struct ksz_hw *hw, int p) in port_chk_in_filter()
2378 static inline void port_cfg_mirror_sniffer(struct ksz_hw *hw, int p, int set) in port_cfg_mirror_sniffer()
2384 static inline void port_cfg_mirror_rx(struct ksz_hw *hw, int p, int set) in port_cfg_mirror_rx()
2390 static inline void port_cfg_mirror_tx(struct ksz_hw *hw, int p, int set) in port_cfg_mirror_tx()
2396 static inline void sw_cfg_mirror_rx_tx(struct ksz_hw *hw, int set) in sw_cfg_mirror_rx_tx()
2401 static void sw_init_mirror(struct ksz_hw *hw) in sw_init_mirror()
2413 static inline void sw_cfg_unk_def_deliver(struct ksz_hw *hw, int set) in sw_cfg_unk_def_deliver()
2419 static inline int sw_cfg_chk_unk_def_deliver(struct ksz_hw *hw) in sw_cfg_chk_unk_def_deliver()
2425 static inline void sw_cfg_unk_def_port(struct ksz_hw *hw, int port, int set) in sw_cfg_unk_def_port()
2430 static inline int sw_chk_unk_def_port(struct ksz_hw *hw, int port) in sw_chk_unk_def_port()
2437 static inline void port_cfg_diffserv(struct ksz_hw *hw, int p, int set) in port_cfg_diffserv()
2443 static inline void port_cfg_802_1p(struct ksz_hw *hw, int p, int set) in port_cfg_802_1p()
2449 static inline void port_cfg_replace_vid(struct ksz_hw *hw, int p, int set) in port_cfg_replace_vid()
2455 static inline void port_cfg_prio(struct ksz_hw *hw, int p, int set) in port_cfg_prio()
2461 static inline int port_chk_diffserv(struct ksz_hw *hw, int p) in port_chk_diffserv()
2467 static inline int port_chk_802_1p(struct ksz_hw *hw, int p) in port_chk_802_1p()
2473 static inline int port_chk_replace_vid(struct ksz_hw *hw, int p) in port_chk_replace_vid()
2479 static inline int port_chk_prio(struct ksz_hw *hw, int p) in port_chk_prio()
2492 static void sw_dis_diffserv(struct ksz_hw *hw, int port) in sw_dis_diffserv()
2504 static void sw_dis_802_1p(struct ksz_hw *hw, int port) in sw_dis_802_1p()
2515 static void sw_cfg_replace_null_vid(struct ksz_hw *hw, int set) in sw_cfg_replace_null_vid()
2531 static void sw_cfg_replace_vid(struct ksz_hw *hw, int port, int set) in sw_cfg_replace_vid()
2544 static void sw_cfg_port_based(struct ksz_hw *hw, int port, u8 prio) in sw_cfg_port_based()
2567 static void sw_dis_multi_queue(struct ksz_hw *hw, int port) in sw_dis_multi_queue()
2578 static void sw_init_prio(struct ksz_hw *hw) in sw_init_prio()
2625 static void port_get_def_vid(struct ksz_hw *hw, int port, u16 *vid) in port_get_def_vid()
2640 static void sw_init_vlan(struct ksz_hw *hw) in sw_init_vlan()
2668 static void sw_cfg_port_base_vlan(struct ksz_hw *hw, int port, u8 member) in sw_cfg_port_base_vlan()
2691 static inline void sw_get_addr(struct ksz_hw *hw, u8 *mac_addr) in sw_get_addr()
2708 static void sw_set_addr(struct ksz_hw *hw, u8 *mac_addr) in sw_set_addr()
2724 static void sw_set_global_ctrl(struct ksz_hw *hw) in sw_set_global_ctrl()
2772 static void port_set_stp_state(struct ksz_hw *hw, int port, int state) in port_set_stp_state()
2828 static void sw_clr_sta_mac_table(struct ksz_hw *hw) in sw_clr_sta_mac_table()
2848 static void sw_init_stp(struct ksz_hw *hw) in sw_init_stp()
2874 static void sw_block_addr(struct ksz_hw *hw) in sw_block_addr()
2898 static inline void hw_r_phy_ctrl(struct ksz_hw *hw, int phy, u16 *data) in hw_r_phy_ctrl()
2903 static inline void hw_w_phy_ctrl(struct ksz_hw *hw, int phy, u16 data) in hw_w_phy_ctrl()
2908 static inline void hw_r_phy_link_stat(struct ksz_hw *hw, int phy, u16 *data) in hw_r_phy_link_stat()
2913 static inline void hw_r_phy_auto_neg(struct ksz_hw *hw, int phy, u16 *data) in hw_r_phy_auto_neg()
2918 static inline void hw_w_phy_auto_neg(struct ksz_hw *hw, int phy, u16 data) in hw_w_phy_auto_neg()
2923 static inline void hw_r_phy_rem_cap(struct ksz_hw *hw, int phy, u16 *data) in hw_r_phy_rem_cap()
2928 static inline void hw_r_phy_crossover(struct ksz_hw *hw, int phy, u16 *data) in hw_r_phy_crossover()
2933 static inline void hw_w_phy_crossover(struct ksz_hw *hw, int phy, u16 data) in hw_w_phy_crossover()
2938 static inline void hw_r_phy_polarity(struct ksz_hw *hw, int phy, u16 *data) in hw_r_phy_polarity()
2943 static inline void hw_w_phy_polarity(struct ksz_hw *hw, int phy, u16 data) in hw_w_phy_polarity()
2948 static inline void hw_r_phy_link_md(struct ksz_hw *hw, int phy, u16 *data) in hw_r_phy_link_md()
2953 static inline void hw_w_phy_link_md(struct ksz_hw *hw, int phy, u16 data) in hw_w_phy_link_md()
2967 static void hw_r_phy(struct ksz_hw *hw, int port, u16 reg, u16 *val) in hw_r_phy()
2984 static void hw_w_phy(struct ksz_hw *hw, int port, u16 reg, u16 val) in hw_w_phy()
3008 static inline void drop_gpio(struct ksz_hw *hw, u8 gpio) in drop_gpio()
3017 static inline void raise_gpio(struct ksz_hw *hw, u8 gpio) in raise_gpio()
3026 static inline u8 state_gpio(struct ksz_hw *hw, u8 gpio) in state_gpio()
3034 static void eeprom_clk(struct ksz_hw *hw) in eeprom_clk()
3042 static u16 spi_r(struct ksz_hw *hw) in spi_r()
3059 static void spi_w(struct ksz_hw *hw, u16 data) in spi_w()
3070 static void spi_reg(struct ksz_hw *hw, u8 data, u8 reg) in spi_reg()
3113 static u16 eeprom_read(struct ksz_hw *hw, u8 reg) in eeprom_read()
3135 static void eeprom_write(struct ksz_hw *hw, u8 reg, u16 data) in eeprom_write()
3206 static void set_flow_ctrl(struct ksz_hw *hw, int rx, int tx) in set_flow_ctrl()
3229 static void determine_flow_ctrl(struct ksz_hw *hw, struct ksz_port *port, in determine_flow_ctrl()
3257 static inline void port_cfg_change(struct ksz_hw *hw, struct ksz_port *port, in port_cfg_change()
3284 struct ksz_hw *hw = port->hw; in port_get_link_speed()
3370 struct ksz_hw *hw = port->hw; in port_set_link_speed()
3421 struct ksz_hw *hw = port->hw; in port_force_link_speed()
3447 struct ksz_hw *hw = port->hw; in port_set_power_saving()
3468 static int hw_chk_wol_pme_status(struct ksz_hw *hw) in hw_chk_wol_pme_status()
3486 static void hw_clr_wol_pme_status(struct ksz_hw *hw) in hw_clr_wol_pme_status()
3508 static void hw_cfg_wol_pme(struct ksz_hw *hw, int set) in hw_cfg_wol_pme()
3533 static void hw_cfg_wol(struct ksz_hw *hw, u16 frame, int set) in hw_cfg_wol()
3556 static void hw_set_wol_frame(struct ksz_hw *hw, int i, uint mask_size, in hw_set_wol_frame()
3613 static void hw_add_wol_arp(struct ksz_hw *hw, const u8 *ip_addr) in hw_add_wol_arp()
3636 static void hw_add_wol_bcast(struct ksz_hw *hw) in hw_add_wol_bcast()
3654 static void hw_add_wol_mcast(struct ksz_hw *hw) in hw_add_wol_mcast()
3672 static void hw_add_wol_ucast(struct ksz_hw *hw) in hw_add_wol_ucast()
3687 static void hw_enable_wol(struct ksz_hw *hw, u32 wol_enable, const u8 *net_addr) in hw_enable_wol()
3708 static int hw_init(struct ksz_hw *hw) in hw_init()
3744 static void hw_reset(struct ksz_hw *hw) in hw_reset()
3761 static void hw_setup(struct ksz_hw *hw) in hw_setup()
3797 static void hw_setup_intr(struct ksz_hw *hw) in hw_setup_intr()
3860 static void hw_set_desc_base(struct ksz_hw *hw, u32 tx_addr, u32 rx_addr) in hw_set_desc_base()
3874 static inline void hw_resume_rx(struct ksz_hw *hw) in hw_resume_rx()
3885 static void hw_start_rx(struct ksz_hw *hw) in hw_start_rx()
3907 static void hw_stop_rx(struct ksz_hw *hw) in hw_stop_rx()
3920 static void hw_start_tx(struct ksz_hw *hw) in hw_start_tx()
3931 static void hw_stop_tx(struct ksz_hw *hw) in hw_stop_tx()
3942 static void hw_disable(struct ksz_hw *hw) in hw_disable()
3955 static void hw_enable(struct ksz_hw *hw) in hw_enable()
3972 static int hw_alloc_pkt(struct ksz_hw *hw, int length, int physical) in hw_alloc_pkt()
4002 static void hw_send_pkt(struct ksz_hw *hw) in hw_send_pkt()
4038 static void hw_set_addr(struct ksz_hw *hw) in hw_set_addr()
4055 static void hw_read_addr(struct ksz_hw *hw) in hw_read_addr()
4075 static void hw_ena_add_addr(struct ksz_hw *hw, int index, u8 *mac_addr) in hw_ena_add_addr()
4098 static void hw_set_add_addr(struct ksz_hw *hw) in hw_set_add_addr()
4111 static int hw_add_addr(struct ksz_hw *hw, u8 *mac_addr) in hw_add_addr()
4132 static int hw_del_addr(struct ksz_hw *hw, u8 *mac_addr) in hw_del_addr()
4153 static void hw_clr_multicast(struct ksz_hw *hw) in hw_clr_multicast()
4171 static void hw_set_grp_addr(struct ksz_hw *hw) in hw_set_grp_addr()
4199 static void hw_set_multicast(struct ksz_hw *hw, u8 multicast) in hw_set_multicast()
4220 static void hw_set_promiscuous(struct ksz_hw *hw, u8 prom) in hw_set_promiscuous()
4241 static void sw_enable(struct ksz_hw *hw, int enable) in sw_enable()
4272 static void sw_setup(struct ksz_hw *hw) in sw_setup()
4385 struct ksz_hw *hw = &adapter->hw; in ksz_alloc_desc()
4456 struct ksz_hw *hw = &adapter->hw; in ksz_init_rx_buffers()
4492 struct ksz_hw *hw = &adapter->hw; in ksz_alloc_mem()
4540 struct ksz_hw *hw = &adapter->hw; in ksz_free_desc()
4606 static void get_mib_counters(struct ksz_hw *hw, int first, int cnt, in get_mib_counters()
4635 struct ksz_hw *hw = &hw_priv->hw; in send_packet()
4738 struct ksz_hw *hw = &hw_priv->hw; in transmit_cleanup()
4793 struct ksz_hw *hw = &hw_priv->hw; in tx_done()
4830 struct ksz_hw *hw = &hw_priv->hw; in netdev_tx()
4905 struct ksz_hw *hw = &hw_priv->hw; in netdev_tx_timeout()
4980 static inline int rx_proc(struct net_device *dev, struct ksz_hw* hw, in rx_proc()
5032 struct ksz_hw *hw = &hw_priv->hw; in dev_rcv_packets()
5068 struct ksz_hw *hw = &hw_priv->hw; in port_rcv_packets()
5113 struct ksz_hw *hw = &hw_priv->hw; in dev_rcv_special()
5171 struct ksz_hw *hw = &hw_priv->hw; in rx_proc_task()
5193 struct ksz_hw *hw = &hw_priv->hw; in tx_proc_task()
5205 static inline void handle_rx_stop(struct ksz_hw *hw) in handle_rx_stop()
5237 struct ksz_hw *hw = &hw_priv->hw; in netdev_intr()
5316 static void bridge_change(struct ksz_hw *hw) in bridge_change()
5351 struct ksz_hw *hw = &hw_priv->hw; in netdev_close()
5409 static void hw_cfg_huge_frame(struct dev_info *hw_priv, struct ksz_hw *hw) in hw_cfg_huge_frame()
5437 struct ksz_hw *hw = &hw_priv->hw; in prepare_hardware()
5487 struct ksz_hw *hw = &hw_priv->hw; in netdev_open()
5592 struct ksz_hw *hw = &priv->adapter->hw; in netdev_query_statistics()
5648 struct ksz_hw *hw = &hw_priv->hw; in netdev_set_mac_address()
5673 struct ksz_hw *hw, int promiscuous) in dev_set_promiscuous()
5707 static void dev_set_multicast(struct dev_priv *priv, struct ksz_hw *hw, in dev_set_multicast()
5736 struct ksz_hw *hw = &hw_priv->hw; in netdev_set_rx_mode()
5784 struct ksz_hw *hw = &hw_priv->hw; in netdev_change_mtu()
5824 struct ksz_hw *hw = &hw_priv->hw; in netdev_ioctl()
5885 struct ksz_hw *hw = port->hw; in mdio_read()
5905 struct ksz_hw *hw = port->hw; in mdio_write()
6130 struct ksz_hw *hw = &hw_priv->hw; in netdev_get_regs()
6325 struct ksz_hw *hw = &hw_priv->hw; in netdev_get_pauseparam()
6358 struct ksz_hw *hw = &hw_priv->hw; in netdev_set_pauseparam()
6403 struct ksz_hw *hw = &hw_priv->hw; in netdev_get_ringparam()
6466 struct ksz_hw *hw = &hw_priv->hw; in netdev_get_strings()
6486 struct ksz_hw *hw = &hw_priv->hw; in netdev_get_sset_count()
6509 struct ksz_hw *hw = &hw_priv->hw; in netdev_get_ethtool_stats()
6577 struct ksz_hw *hw = &hw_priv->hw; in netdev_set_features()
6636 struct ksz_hw *hw = &hw_priv->hw; in mib_read_work()
6707 struct ksz_hw *hw = &hw_priv->hw; in dev_monitor()
6885 static void read_other_addr(struct ksz_hw *hw) in read_other_addr()
6912 struct ksz_hw *hw; in pcidev_init()
7157 struct ksz_hw *hw = &hw_priv->hw; in pcidev_resume()
7181 struct ksz_hw *hw = &hw_priv->hw; in pcidev_suspend()