Searched refs:ksz_hw (Results 1 - 1 of 1) sorted by relevance

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

Completed in 103 milliseconds