Lines Matching refs:ksz_hw

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