Lines Matching refs:ksz_hw

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