Lines Matching defs:hw
1353 struct ksz_hw *hw; member
1427 struct ksz_hw hw; member
1499 static inline void hw_ack_intr(struct ksz_hw *hw, uint interrupt) in hw_ack_intr()
1504 static inline void hw_dis_intr(struct ksz_hw *hw) in hw_dis_intr()
1511 static inline void hw_set_intr(struct ksz_hw *hw, uint interrupt) in hw_set_intr()
1517 static inline void hw_ena_intr(struct ksz_hw *hw) in hw_ena_intr()
1523 static inline void hw_dis_intr_bit(struct ksz_hw *hw, uint bit) in hw_dis_intr_bit()
1528 static inline void hw_turn_off_intr(struct ksz_hw *hw, uint interrupt) in hw_turn_off_intr()
1546 static void hw_turn_on_intr(struct ksz_hw *hw, u32 bit) in hw_turn_on_intr()
1554 static inline void hw_ena_intr_bit(struct ksz_hw *hw, uint interrupt) in hw_ena_intr_bit()
1563 static inline void hw_read_intr(struct ksz_hw *hw, uint *status) in hw_read_intr()
1569 static inline void hw_restore_intr(struct ksz_hw *hw, uint interrupt) in hw_restore_intr()
1583 static uint hw_block_intr(struct ksz_hw *hw) in hw_block_intr()
1658 #define HW_DELAY(hw, reg) \ argument
1674 static void sw_r_table(struct ksz_hw *hw, int table, u16 addr, u32 *data) in sw_r_table()
1701 static void sw_w_table_64(struct ksz_hw *hw, int table, u16 addr, u32 data_hi, in sw_w_table_64()
1734 static void sw_w_sta_mac_table(struct ksz_hw *hw, u16 addr, u8 *mac_addr, in sw_w_sta_mac_table()
1771 static int sw_r_vlan_table(struct ksz_hw *hw, u16 addr, u16 *vid, u8 *fid, in sw_r_vlan_table()
1797 static void port_r_mib_cnt(struct ksz_hw *hw, int port, u16 addr, u64 *cnt) in port_r_mib_cnt()
1835 static void port_r_mib_pkt(struct ksz_hw *hw, int port, u32 *last, u64 *cnt) in port_r_mib_pkt()
1883 static int port_r_cnt(struct ksz_hw *hw, int port) in port_r_cnt()
1908 static void port_init_cnt(struct ksz_hw *hw, int port) in port_init_cnt()
1942 static int port_chk(struct ksz_hw *hw, int port, int offset, u16 bits) in port_chk()
1963 static void port_cfg(struct ksz_hw *hw, int port, int offset, u16 bits, in port_cfg()
1991 static int port_chk_shift(struct ksz_hw *hw, int port, u32 addr, int shift) in port_chk_shift()
2011 static void port_cfg_shift(struct ksz_hw *hw, int port, u32 addr, int shift, in port_cfg_shift()
2035 static void port_r8(struct ksz_hw *hw, int port, int offset, u8 *data) in port_r8()
2053 static void port_r16(struct ksz_hw *hw, int port, int offset, u16 *data) in port_r16()
2071 static void port_w16(struct ksz_hw *hw, int port, int offset, u16 data) in port_w16()
2091 static int sw_chk(struct ksz_hw *hw, u32 addr, u16 bits) in sw_chk()
2108 static void sw_cfg(struct ksz_hw *hw, u32 addr, u16 bits, int set) in sw_cfg()
2122 static inline void port_cfg_broad_storm(struct ksz_hw *hw, int p, int set) in port_cfg_broad_storm()
2128 static inline int port_chk_broad_storm(struct ksz_hw *hw, int p) in port_chk_broad_storm()
2147 static void sw_cfg_broad_storm(struct ksz_hw *hw, u8 percent) in sw_cfg_broad_storm()
2168 static void sw_get_broad_storm(struct ksz_hw *hw, u8 *percent) in sw_get_broad_storm()
2188 static void sw_dis_broad_storm(struct ksz_hw *hw, int port) in sw_dis_broad_storm()
2200 static void sw_ena_broad_storm(struct ksz_hw *hw, int port) in sw_ena_broad_storm()
2212 static void sw_init_broad_storm(struct ksz_hw *hw) in sw_init_broad_storm()
2231 static void hw_cfg_broad_storm(struct ksz_hw *hw, u8 percent) in hw_cfg_broad_storm()
2248 static void sw_dis_prio_rate(struct ksz_hw *hw, int port) in sw_dis_prio_rate()
2263 static void sw_init_prio_rate(struct ksz_hw *hw) in sw_init_prio_rate()
2280 static inline void port_cfg_back_pressure(struct ksz_hw *hw, int p, int set) in port_cfg_back_pressure()
2286 static inline void port_cfg_force_flow_ctrl(struct ksz_hw *hw, int p, int set) in port_cfg_force_flow_ctrl()
2292 static inline int port_chk_back_pressure(struct ksz_hw *hw, int p) in port_chk_back_pressure()
2298 static inline int port_chk_force_flow_ctrl(struct ksz_hw *hw, int p) in port_chk_force_flow_ctrl()
2306 static inline void port_cfg_rx(struct ksz_hw *hw, int p, int set) in port_cfg_rx()
2312 static inline void port_cfg_tx(struct ksz_hw *hw, int p, int set) in port_cfg_tx()
2318 static inline void sw_cfg_fast_aging(struct ksz_hw *hw, int set) in sw_cfg_fast_aging()
2323 static inline void sw_flush_dyn_mac_table(struct ksz_hw *hw) in sw_flush_dyn_mac_table()
2334 static inline void port_cfg_ins_tag(struct ksz_hw *hw, int p, int insert) in port_cfg_ins_tag()
2340 static inline void port_cfg_rmv_tag(struct ksz_hw *hw, int p, int remove) in port_cfg_rmv_tag()
2346 static inline int port_chk_ins_tag(struct ksz_hw *hw, int p) in port_chk_ins_tag()
2352 static inline int port_chk_rmv_tag(struct ksz_hw *hw, int p) in port_chk_rmv_tag()
2358 static inline void port_cfg_dis_non_vid(struct ksz_hw *hw, int p, int set) in port_cfg_dis_non_vid()
2364 static inline void port_cfg_in_filter(struct ksz_hw *hw, int p, int set) in port_cfg_in_filter()
2370 static inline int port_chk_dis_non_vid(struct ksz_hw *hw, int p) in port_chk_dis_non_vid()
2376 static inline int port_chk_in_filter(struct ksz_hw *hw, int p) in port_chk_in_filter()
2384 static inline void port_cfg_mirror_sniffer(struct ksz_hw *hw, int p, int set) in port_cfg_mirror_sniffer()
2390 static inline void port_cfg_mirror_rx(struct ksz_hw *hw, int p, int set) in port_cfg_mirror_rx()
2396 static inline void port_cfg_mirror_tx(struct ksz_hw *hw, int p, int set) in port_cfg_mirror_tx()
2402 static inline void sw_cfg_mirror_rx_tx(struct ksz_hw *hw, int set) in sw_cfg_mirror_rx_tx()
2407 static void sw_init_mirror(struct ksz_hw *hw) in sw_init_mirror()
2419 static inline void sw_cfg_unk_def_deliver(struct ksz_hw *hw, int set) in sw_cfg_unk_def_deliver()
2425 static inline int sw_cfg_chk_unk_def_deliver(struct ksz_hw *hw) in sw_cfg_chk_unk_def_deliver()
2431 static inline void sw_cfg_unk_def_port(struct ksz_hw *hw, int port, int set) in sw_cfg_unk_def_port()
2436 static inline int sw_chk_unk_def_port(struct ksz_hw *hw, int port) in sw_chk_unk_def_port()
2443 static inline void port_cfg_diffserv(struct ksz_hw *hw, int p, int set) in port_cfg_diffserv()
2449 static inline void port_cfg_802_1p(struct ksz_hw *hw, int p, int set) in port_cfg_802_1p()
2455 static inline void port_cfg_replace_vid(struct ksz_hw *hw, int p, int set) in port_cfg_replace_vid()
2461 static inline void port_cfg_prio(struct ksz_hw *hw, int p, int set) in port_cfg_prio()
2467 static inline int port_chk_diffserv(struct ksz_hw *hw, int p) in port_chk_diffserv()
2473 static inline int port_chk_802_1p(struct ksz_hw *hw, int p) in port_chk_802_1p()
2479 static inline int port_chk_replace_vid(struct ksz_hw *hw, int p) in port_chk_replace_vid()
2485 static inline int port_chk_prio(struct ksz_hw *hw, int p) in port_chk_prio()
2498 static void sw_dis_diffserv(struct ksz_hw *hw, int port) in sw_dis_diffserv()
2510 static void sw_dis_802_1p(struct ksz_hw *hw, int port) in sw_dis_802_1p()
2521 static void sw_cfg_replace_null_vid(struct ksz_hw *hw, int set) in sw_cfg_replace_null_vid()
2537 static void sw_cfg_replace_vid(struct ksz_hw *hw, int port, int set) in sw_cfg_replace_vid()
2550 static void sw_cfg_port_based(struct ksz_hw *hw, int port, u8 prio) in sw_cfg_port_based()
2573 static void sw_dis_multi_queue(struct ksz_hw *hw, int port) in sw_dis_multi_queue()
2584 static void sw_init_prio(struct ksz_hw *hw) in sw_init_prio()
2631 static void port_get_def_vid(struct ksz_hw *hw, int port, u16 *vid) in port_get_def_vid()
2646 static void sw_init_vlan(struct ksz_hw *hw) in sw_init_vlan()
2674 static void sw_cfg_port_base_vlan(struct ksz_hw *hw, int port, u8 member) in sw_cfg_port_base_vlan()
2697 static inline void sw_get_addr(struct ksz_hw *hw, u8 *mac_addr) in sw_get_addr()
2714 static void sw_set_addr(struct ksz_hw *hw, u8 *mac_addr) in sw_set_addr()
2730 static void sw_set_global_ctrl(struct ksz_hw *hw) in sw_set_global_ctrl()
2778 static void port_set_stp_state(struct ksz_hw *hw, int port, int state) in port_set_stp_state()
2834 static void sw_clr_sta_mac_table(struct ksz_hw *hw) in sw_clr_sta_mac_table()
2854 static void sw_init_stp(struct ksz_hw *hw) in sw_init_stp()
2880 static void sw_block_addr(struct ksz_hw *hw) in sw_block_addr()
2904 static inline void hw_r_phy_ctrl(struct ksz_hw *hw, int phy, u16 *data) in hw_r_phy_ctrl()
2909 static inline void hw_w_phy_ctrl(struct ksz_hw *hw, int phy, u16 data) in hw_w_phy_ctrl()
2914 static inline void hw_r_phy_link_stat(struct ksz_hw *hw, int phy, u16 *data) in hw_r_phy_link_stat()
2919 static inline void hw_r_phy_auto_neg(struct ksz_hw *hw, int phy, u16 *data) in hw_r_phy_auto_neg()
2924 static inline void hw_w_phy_auto_neg(struct ksz_hw *hw, int phy, u16 data) in hw_w_phy_auto_neg()
2929 static inline void hw_r_phy_rem_cap(struct ksz_hw *hw, int phy, u16 *data) in hw_r_phy_rem_cap()
2934 static inline void hw_r_phy_crossover(struct ksz_hw *hw, int phy, u16 *data) in hw_r_phy_crossover()
2939 static inline void hw_w_phy_crossover(struct ksz_hw *hw, int phy, u16 data) in hw_w_phy_crossover()
2944 static inline void hw_r_phy_polarity(struct ksz_hw *hw, int phy, u16 *data) in hw_r_phy_polarity()
2949 static inline void hw_w_phy_polarity(struct ksz_hw *hw, int phy, u16 data) in hw_w_phy_polarity()
2954 static inline void hw_r_phy_link_md(struct ksz_hw *hw, int phy, u16 *data) in hw_r_phy_link_md()
2959 static inline void hw_w_phy_link_md(struct ksz_hw *hw, int phy, u16 data) in hw_w_phy_link_md()
2973 static void hw_r_phy(struct ksz_hw *hw, int port, u16 reg, u16 *val) in hw_r_phy()
2990 static void hw_w_phy(struct ksz_hw *hw, int port, u16 reg, u16 val) in hw_w_phy()
3014 static inline void drop_gpio(struct ksz_hw *hw, u8 gpio) in drop_gpio()
3023 static inline void raise_gpio(struct ksz_hw *hw, u8 gpio) in raise_gpio()
3032 static inline u8 state_gpio(struct ksz_hw *hw, u8 gpio) in state_gpio()
3040 static void eeprom_clk(struct ksz_hw *hw) in eeprom_clk()
3048 static u16 spi_r(struct ksz_hw *hw) in spi_r()
3065 static void spi_w(struct ksz_hw *hw, u16 data) in spi_w()
3076 static void spi_reg(struct ksz_hw *hw, u8 data, u8 reg) in spi_reg()
3119 static u16 eeprom_read(struct ksz_hw *hw, u8 reg) in eeprom_read()
3141 static void eeprom_write(struct ksz_hw *hw, u8 reg, u16 data) in eeprom_write()
3212 static void set_flow_ctrl(struct ksz_hw *hw, int rx, int tx) in set_flow_ctrl()
3235 static void determine_flow_ctrl(struct ksz_hw *hw, struct ksz_port *port, in determine_flow_ctrl()
3263 static inline void port_cfg_change(struct ksz_hw *hw, struct ksz_port *port, in port_cfg_change()
3290 struct ksz_hw *hw = port->hw; in port_get_link_speed() local
3377 struct ksz_hw *hw = port->hw; in port_set_link_speed() local
3430 struct ksz_hw *hw = port->hw; in port_force_link_speed() local
3456 struct ksz_hw *hw = port->hw; in port_set_power_saving() local
3477 static int hw_chk_wol_pme_status(struct ksz_hw *hw) in hw_chk_wol_pme_status()
3495 static void hw_clr_wol_pme_status(struct ksz_hw *hw) in hw_clr_wol_pme_status()
3517 static void hw_cfg_wol_pme(struct ksz_hw *hw, int set) in hw_cfg_wol_pme()
3542 static void hw_cfg_wol(struct ksz_hw *hw, u16 frame, int set) in hw_cfg_wol()
3565 static void hw_set_wol_frame(struct ksz_hw *hw, int i, uint mask_size, in hw_set_wol_frame()
3622 static void hw_add_wol_arp(struct ksz_hw *hw, const u8 *ip_addr) in hw_add_wol_arp()
3645 static void hw_add_wol_bcast(struct ksz_hw *hw) in hw_add_wol_bcast()
3663 static void hw_add_wol_mcast(struct ksz_hw *hw) in hw_add_wol_mcast()
3681 static void hw_add_wol_ucast(struct ksz_hw *hw) in hw_add_wol_ucast()
3696 static void hw_enable_wol(struct ksz_hw *hw, u32 wol_enable, const u8 *net_addr) in hw_enable_wol()
3717 static int hw_init(struct ksz_hw *hw) in hw_init()
3753 static void hw_reset(struct ksz_hw *hw) in hw_reset()
3770 static void hw_setup(struct ksz_hw *hw) in hw_setup()
3806 static void hw_setup_intr(struct ksz_hw *hw) in hw_setup_intr()
3869 static void hw_set_desc_base(struct ksz_hw *hw, u32 tx_addr, u32 rx_addr) in hw_set_desc_base()
3883 static inline void hw_resume_rx(struct ksz_hw *hw) in hw_resume_rx()
3894 static void hw_start_rx(struct ksz_hw *hw) in hw_start_rx()
3916 static void hw_stop_rx(struct ksz_hw *hw) in hw_stop_rx()
3929 static void hw_start_tx(struct ksz_hw *hw) in hw_start_tx()
3940 static void hw_stop_tx(struct ksz_hw *hw) in hw_stop_tx()
3951 static void hw_disable(struct ksz_hw *hw) in hw_disable()
3964 static void hw_enable(struct ksz_hw *hw) in hw_enable()
3981 static int hw_alloc_pkt(struct ksz_hw *hw, int length, int physical) in hw_alloc_pkt()
4011 static void hw_send_pkt(struct ksz_hw *hw) in hw_send_pkt()
4047 static void hw_set_addr(struct ksz_hw *hw) in hw_set_addr()
4064 static void hw_read_addr(struct ksz_hw *hw) in hw_read_addr()
4084 static void hw_ena_add_addr(struct ksz_hw *hw, int index, u8 *mac_addr) in hw_ena_add_addr()
4107 static void hw_set_add_addr(struct ksz_hw *hw) in hw_set_add_addr()
4120 static int hw_add_addr(struct ksz_hw *hw, u8 *mac_addr) in hw_add_addr()
4141 static int hw_del_addr(struct ksz_hw *hw, u8 *mac_addr) in hw_del_addr()
4162 static void hw_clr_multicast(struct ksz_hw *hw) in hw_clr_multicast()
4180 static void hw_set_grp_addr(struct ksz_hw *hw) in hw_set_grp_addr()
4208 static void hw_set_multicast(struct ksz_hw *hw, u8 multicast) in hw_set_multicast()
4229 static void hw_set_promiscuous(struct ksz_hw *hw, u8 prom) in hw_set_promiscuous()
4250 static void sw_enable(struct ksz_hw *hw, int enable) in sw_enable()
4281 static void sw_setup(struct ksz_hw *hw) in sw_setup()
4394 struct ksz_hw *hw = &adapter->hw; in ksz_alloc_desc() local
4462 struct ksz_hw *hw = &adapter->hw; in ksz_init_rx_buffers() local
4499 struct ksz_hw *hw = &adapter->hw; in ksz_alloc_mem() local
4547 struct ksz_hw *hw = &adapter->hw; in ksz_free_desc() local
4615 static void get_mib_counters(struct ksz_hw *hw, int first, int cnt, in get_mib_counters()
4644 struct ksz_hw *hw = &hw_priv->hw; in send_packet() local
4749 struct ksz_hw *hw = &hw_priv->hw; in transmit_cleanup() local
4805 struct ksz_hw *hw = &hw_priv->hw; in tx_done() local
4842 struct ksz_hw *hw = &hw_priv->hw; in netdev_tx() local
4916 struct ksz_hw *hw = &hw_priv->hw; in netdev_tx_timeout() local
4991 static inline int rx_proc(struct net_device *dev, struct ksz_hw* hw, in rx_proc()
5046 struct ksz_hw *hw = &hw_priv->hw; in dev_rcv_packets() local
5082 struct ksz_hw *hw = &hw_priv->hw; in port_rcv_packets() local
5127 struct ksz_hw *hw = &hw_priv->hw; in dev_rcv_special() local
5185 struct ksz_hw *hw = &hw_priv->hw; in rx_proc_task() local
5207 struct ksz_hw *hw = &hw_priv->hw; in tx_proc_task() local
5219 static inline void handle_rx_stop(struct ksz_hw *hw) in handle_rx_stop()
5251 struct ksz_hw *hw = &hw_priv->hw; in netdev_intr() local
5330 static void bridge_change(struct ksz_hw *hw) in bridge_change()
5365 struct ksz_hw *hw = &hw_priv->hw; in netdev_close() local
5423 static void hw_cfg_huge_frame(struct dev_info *hw_priv, struct ksz_hw *hw) in hw_cfg_huge_frame()
5451 struct ksz_hw *hw = &hw_priv->hw; in prepare_hardware() local
5503 struct ksz_hw *hw = &hw_priv->hw; in netdev_open() local
5608 struct ksz_hw *hw = &priv->adapter->hw; in netdev_query_statistics() local
5664 struct ksz_hw *hw = &hw_priv->hw; in netdev_set_mac_address() local
5689 struct ksz_hw *hw, int promiscuous) in dev_set_promiscuous()
5723 static void dev_set_multicast(struct dev_priv *priv, struct ksz_hw *hw, in dev_set_multicast()
5752 struct ksz_hw *hw = &hw_priv->hw; in netdev_set_rx_mode() local
5800 struct ksz_hw *hw = &hw_priv->hw; in netdev_change_mtu() local
5845 struct ksz_hw *hw = &hw_priv->hw; in netdev_ioctl() local
5907 struct ksz_hw *hw = port->hw; in mdio_read() local
5927 struct ksz_hw *hw = port->hw; in mdio_write() local
6138 struct ksz_hw *hw = &hw_priv->hw; in netdev_get_regs() local
6333 struct ksz_hw *hw = &hw_priv->hw; in netdev_get_pauseparam() local
6366 struct ksz_hw *hw = &hw_priv->hw; in netdev_set_pauseparam() local
6411 struct ksz_hw *hw = &hw_priv->hw; in netdev_get_ringparam() local
6474 struct ksz_hw *hw = &hw_priv->hw; in netdev_get_strings() local
6494 struct ksz_hw *hw = &hw_priv->hw; in netdev_get_sset_count() local
6517 struct ksz_hw *hw = &hw_priv->hw; in netdev_get_ethtool_stats() local
6586 struct ksz_hw *hw = &hw_priv->hw; in netdev_set_features() local
6645 struct ksz_hw *hw = &hw_priv->hw; in mib_read_work() local
6716 struct ksz_hw *hw = &hw_priv->hw; in dev_monitor() local
6894 static void read_other_addr(struct ksz_hw *hw) in read_other_addr()
6921 struct ksz_hw *hw; in pcidev_init() local
7161 struct ksz_hw *hw = &hw_priv->hw; in pcidev_resume() local
7187 struct ksz_hw *hw = &hw_priv->hw; in pcidev_suspend() local