Lines Matching refs:ksz_hw
1156 * struct ksz_hw - KSZ884X hardware data structure
1194 struct ksz_hw {
1278 struct ksz_hw *hw;
1352 struct ksz_hw hw;
1424 static inline void hw_ack_intr(struct ksz_hw *hw, uint interrupt)
1429 static inline void hw_dis_intr(struct ksz_hw *hw)
1436 static inline void hw_set_intr(struct ksz_hw *hw, uint interrupt)
1442 static inline void hw_ena_intr(struct ksz_hw *hw)
1448 static inline void hw_dis_intr_bit(struct ksz_hw *hw, uint bit)
1453 static inline void hw_turn_off_intr(struct ksz_hw *hw, uint interrupt)
1471 static void hw_turn_on_intr(struct ksz_hw *hw, u32 bit)
1479 static inline void hw_read_intr(struct ksz_hw *hw, uint *status)
1485 static inline void hw_restore_intr(struct ksz_hw *hw, uint interrupt)
1500 static uint hw_block_intr(struct ksz_hw *hw)
1590 static void sw_r_table(struct ksz_hw *hw, int table, u16 addr, u32 *data)
1617 static void sw_w_table_64(struct ksz_hw *hw, int table, u16 addr, u32 data_hi,
1650 static void sw_w_sta_mac_table(struct ksz_hw *hw, u16 addr, u8 *mac_addr,
1687 static int sw_r_vlan_table(struct ksz_hw *hw, u16 addr, u16 *vid, u8 *fid,
1713 static void port_r_mib_cnt(struct ksz_hw *hw, int port, u16 addr, u64 *cnt)
1752 static void port_r_mib_pkt(struct ksz_hw *hw, int port, u32 *last, u64 *cnt)
1800 static int port_r_cnt(struct ksz_hw *hw, int port)
1825 static void port_init_cnt(struct ksz_hw *hw, int port)
1857 static void port_cfg(struct ksz_hw *hw, int port, int offset, u16 bits,
1882 static void port_r8(struct ksz_hw *hw, int port, int offset, u8 *data)
1900 static void port_r16(struct ksz_hw *hw, int port, int offset, u16 *data)
1918 static void port_w16(struct ksz_hw *hw, int port, int offset, u16 data)
1938 static int sw_chk(struct ksz_hw *hw, u32 addr, u16 bits)
1955 static void sw_cfg(struct ksz_hw *hw, u32 addr, u16 bits, int set)
1969 static inline void port_cfg_broad_storm(struct ksz_hw *hw, int p, int set)
1988 static void sw_cfg_broad_storm(struct ksz_hw *hw, u8 percent)
2009 static void sw_get_broad_storm(struct ksz_hw *hw, u8 *percent)
2029 static void sw_dis_broad_storm(struct ksz_hw *hw, int port)
2041 static void sw_ena_broad_storm(struct ksz_hw *hw, int port)
2053 static void sw_init_broad_storm(struct ksz_hw *hw)
2072 static void hw_cfg_broad_storm(struct ksz_hw *hw, u8 percent)
2089 static void sw_dis_prio_rate(struct ksz_hw *hw, int port)
2104 static void sw_init_prio_rate(struct ksz_hw *hw)
2121 static inline void port_cfg_back_pressure(struct ksz_hw *hw, int p, int set)
2129 static inline void port_cfg_mirror_sniffer(struct ksz_hw *hw, int p, int set)
2135 static inline void port_cfg_mirror_rx(struct ksz_hw *hw, int p, int set)
2141 static inline void port_cfg_mirror_tx(struct ksz_hw *hw, int p, int set)
2147 static inline void sw_cfg_mirror_rx_tx(struct ksz_hw *hw, int set)
2152 static void sw_init_mirror(struct ksz_hw *hw)
2166 static inline void port_cfg_diffserv(struct ksz_hw *hw, int p, int set)
2172 static inline void port_cfg_802_1p(struct ksz_hw *hw, int p, int set)
2178 static inline void port_cfg_replace_vid(struct ksz_hw *hw, int p, int set)
2184 static inline void port_cfg_prio(struct ksz_hw *hw, int p, int set)
2197 static void sw_dis_diffserv(struct ksz_hw *hw, int port)
2209 static void sw_dis_802_1p(struct ksz_hw *hw, int port)
2220 static void sw_cfg_replace_null_vid(struct ksz_hw *hw, int set)
2236 static void sw_cfg_replace_vid(struct ksz_hw *hw, int port, int set)
2249 static void sw_cfg_port_based(struct ksz_hw *hw, int port, u8 prio)
2272 static void sw_dis_multi_queue(struct ksz_hw *hw, int port)
2283 static void sw_init_prio(struct ksz_hw *hw)
2330 static void port_get_def_vid(struct ksz_hw *hw, int port, u16 *vid)
2345 static void sw_init_vlan(struct ksz_hw *hw)
2373 static void sw_cfg_port_base_vlan(struct ksz_hw *hw, int port, u8 member)
2396 static void sw_set_addr(struct ksz_hw *hw, u8 *mac_addr)
2412 static void sw_set_global_ctrl(struct ksz_hw *hw)
2460 static void port_set_stp_state(struct ksz_hw *hw, int port, int state)
2516 static void sw_clr_sta_mac_table(struct ksz_hw *hw)
2536 static void sw_init_stp(struct ksz_hw *hw)
2562 static void sw_block_addr(struct ksz_hw *hw)
2577 static inline void hw_r_phy_ctrl(struct ksz_hw *hw, int phy, u16 *data)
2582 static inline void hw_w_phy_ctrl(struct ksz_hw *hw, int phy, u16 data)
2596 static void hw_r_phy(struct ksz_hw *hw, int port, u16 reg, u16 *val)
2613 static void hw_w_phy(struct ksz_hw *hw, int port, u16 reg, u16 val)
2637 static inline void drop_gpio(struct ksz_hw *hw, u8 gpio)
2646 static inline void raise_gpio(struct ksz_hw *hw, u8 gpio)
2655 static inline u8 state_gpio(struct ksz_hw *hw, u8 gpio)
2663 static void eeprom_clk(struct ksz_hw *hw)
2671 static u16 spi_r(struct ksz_hw *hw)
2688 static void spi_w(struct ksz_hw *hw, u16 data)
2699 static void spi_reg(struct ksz_hw *hw, u8 data, u8 reg)
2742 static u16 eeprom_read(struct ksz_hw *hw, u8 reg)
2764 static void eeprom_write(struct ksz_hw *hw, u8 reg, u16 data)
2835 static void set_flow_ctrl(struct ksz_hw *hw, int rx, int tx)
2858 static void determine_flow_ctrl(struct ksz_hw *hw, struct ksz_port *port,
2888 static inline void port_cfg_change(struct ksz_hw *hw, struct ksz_port *port,
2915 struct ksz_hw *hw = port->hw;
2997 struct ksz_hw *hw = port->hw;
3048 struct ksz_hw *hw = port->hw;
3074 struct ksz_hw *hw = port->hw;
3095 static int hw_chk_wol_pme_status(struct ksz_hw *hw)
3113 static void hw_clr_wol_pme_status(struct ksz_hw *hw)
3135 static void hw_cfg_wol_pme(struct ksz_hw *hw, int set)
3160 static void hw_cfg_wol(struct ksz_hw *hw, u16 frame, int set)
3183 static void hw_set_wol_frame(struct ksz_hw *hw, int i, uint mask_size,
3240 static void hw_add_wol_arp(struct ksz_hw *hw, const u8 *ip_addr)
3263 static void hw_add_wol_bcast(struct ksz_hw *hw)
3281 static void hw_add_wol_mcast(struct ksz_hw *hw)
3299 static void hw_add_wol_ucast(struct ksz_hw *hw)
3314 static void hw_enable_wol(struct ksz_hw *hw, u32 wol_enable, const u8 *net_addr)
3335 static int hw_init(struct ksz_hw *hw)
3371 static void hw_reset(struct ksz_hw *hw)
3388 static void hw_setup(struct ksz_hw *hw)
3424 static void hw_setup_intr(struct ksz_hw *hw)
3487 static void hw_set_desc_base(struct ksz_hw *hw, u32 tx_addr, u32 rx_addr)
3501 static inline void hw_resume_rx(struct ksz_hw *hw)
3512 static void hw_start_rx(struct ksz_hw *hw)
3534 static void hw_stop_rx(struct ksz_hw *hw)
3547 static void hw_start_tx(struct ksz_hw *hw)
3558 static void hw_stop_tx(struct ksz_hw *hw)
3569 static void hw_disable(struct ksz_hw *hw)
3582 static void hw_enable(struct ksz_hw *hw)
3599 static int hw_alloc_pkt(struct ksz_hw *hw, int length, int physical)
3629 static void hw_send_pkt(struct ksz_hw *hw)
3665 static void hw_set_addr(struct ksz_hw *hw)
3682 static void hw_read_addr(struct ksz_hw *hw)
3702 static void hw_ena_add_addr(struct ksz_hw *hw, int index, u8 *mac_addr)
3725 static void hw_set_add_addr(struct ksz_hw *hw)
3738 static int hw_add_addr(struct ksz_hw *hw, const u8 *mac_addr)
3759 static int hw_del_addr(struct ksz_hw *hw, const u8 *mac_addr)
3780 static void hw_clr_multicast(struct ksz_hw *hw)
3798 static void hw_set_grp_addr(struct ksz_hw *hw)
3826 static void hw_set_multicast(struct ksz_hw *hw, u8 multicast)
3847 static void hw_set_promiscuous(struct ksz_hw *hw, u8 prom)
3868 static void sw_enable(struct ksz_hw *hw, int enable)
3899 static void sw_setup(struct ksz_hw *hw)
4012 struct ksz_hw *hw = &adapter->hw;
4083 struct ksz_hw *hw = &adapter->hw;
4119 struct ksz_hw *hw = &adapter->hw;
4167 struct ksz_hw *hw = &adapter->hw;
4233 static void get_mib_counters(struct ksz_hw *hw, int first, int cnt,
4262 struct ksz_hw *hw = &hw_priv->hw;
4365 struct ksz_hw *hw = &hw_priv->hw;
4420 struct ksz_hw *hw = &hw_priv->hw;
4457 struct ksz_hw *hw = &hw_priv->hw;
4532 struct ksz_hw *hw = &hw_priv->hw;
4607 static inline int rx_proc(struct net_device *dev, struct ksz_hw* hw,
4659 struct ksz_hw *hw = &hw_priv->hw;
4695 struct ksz_hw *hw = &hw_priv->hw;
4740 struct ksz_hw *hw = &hw_priv->hw;
4798 struct ksz_hw *hw = &hw_priv->hw;
4820 struct ksz_hw *hw = &hw_priv->hw;
4832 static inline void handle_rx_stop(struct ksz_hw *hw)
4864 struct ksz_hw *hw = &hw_priv->hw;
4942 static void bridge_change(struct ksz_hw *hw)
4977 struct ksz_hw *hw = &hw_priv->hw;
5035 static void hw_cfg_huge_frame(struct dev_info *hw_priv, struct ksz_hw *hw)
5063 struct ksz_hw *hw = &hw_priv->hw;
5113 struct ksz_hw *hw = &hw_priv->hw;
5217 struct ksz_hw *hw = &priv->adapter->hw;
5273 struct ksz_hw *hw = &hw_priv->hw;
5298 struct ksz_hw *hw, int promiscuous)
5332 static void dev_set_multicast(struct dev_priv *priv, struct ksz_hw *hw,
5361 struct ksz_hw *hw = &hw_priv->hw;
5409 struct ksz_hw *hw = &hw_priv->hw;
5449 struct ksz_hw *hw = &hw_priv->hw;
5510 struct ksz_hw *hw = port->hw;
5530 struct ksz_hw *hw = port->hw;
5755 struct ksz_hw *hw = &hw_priv->hw;
5950 struct ksz_hw *hw = &hw_priv->hw;
5983 struct ksz_hw *hw = &hw_priv->hw;
6032 struct ksz_hw *hw = &hw_priv->hw;
6095 struct ksz_hw *hw = &hw_priv->hw;
6115 struct ksz_hw *hw = &hw_priv->hw;
6138 struct ksz_hw *hw = &hw_priv->hw;
6206 struct ksz_hw *hw = &hw_priv->hw;
6265 struct ksz_hw *hw = &hw_priv->hw;
6337 struct ksz_hw *hw = &hw_priv->hw;
6515 static void read_other_addr(struct ksz_hw *hw)
6542 struct ksz_hw *hw;
6789 struct ksz_hw *hw = &hw_priv->hw;
6813 struct ksz_hw *hw = &hw_priv->hw;