Lines Matching defs:set

1237  * @intr_set:		Current interrup set.
1250 * @promiscuous: Counter to keep track of promiscuous mode set.
1251 * @all_multi: Counter to keep track of all multicast mode set.
1412 * @wol_enable: Wake-on-LAN enable set by ethtool.
1931 * This function checks whether the specified bits of the port register are set
1934 * Return 0 if the bits are not set.
1948 * port_cfg - set port register bits
1952 * @bits: The data bits to set.
1953 * @set: The flag indicating whether the bits are to be set or not.
1958 int set)
1966 if (set)
1980 * This function checks whether the specified port is set in the register or
1983 * Return 0 if the port is not set.
1996 * port_cfg_shift - set port bit
2001 * @set: The flag indicating whether the port is to be set or not.
2006 int set)
2013 if (set)
2081 * set or not.
2083 * Return 0 if the bits are not set.
2094 * sw_cfg - set switch register bits
2097 * @bits: The data bits to set.
2098 * @set: The flag indicating whether the bits are to be set or not.
2102 static void sw_cfg(struct ksz_hw *hw, u32 addr, u16 bits, int set)
2107 if (set)
2116 static inline void port_cfg_broad_storm(struct ksz_hw *hw, int p, int set)
2119 KS8842_PORT_CTRL_1_OFFSET, PORT_BROADCAST_STORM, set);
2128 /* Driver set switch broadcast storm protection at 10% rate. */
2274 static inline void port_cfg_back_pressure(struct ksz_hw *hw, int p, int set)
2277 KS8842_PORT_CTRL_2_OFFSET, PORT_BACK_PRESSURE, set);
2280 static inline void port_cfg_force_flow_ctrl(struct ksz_hw *hw, int p, int set)
2283 KS8842_PORT_CTRL_2_OFFSET, PORT_FORCE_FLOW_CTRL, set);
2300 static inline void port_cfg_rx(struct ksz_hw *hw, int p, int set)
2303 KS8842_PORT_CTRL_2_OFFSET, PORT_RX_ENABLE, set);
2306 static inline void port_cfg_tx(struct ksz_hw *hw, int p, int set)
2309 KS8842_PORT_CTRL_2_OFFSET, PORT_TX_ENABLE, set);
2312 static inline void sw_cfg_fast_aging(struct ksz_hw *hw, int set)
2314 sw_cfg(hw, KS8842_SWITCH_CTRL_1_OFFSET, SWITCH_FAST_AGING, set);
2352 static inline void port_cfg_dis_non_vid(struct ksz_hw *hw, int p, int set)
2355 KS8842_PORT_CTRL_2_OFFSET, PORT_DISCARD_NON_VID, set);
2358 static inline void port_cfg_in_filter(struct ksz_hw *hw, int p, int set)
2361 KS8842_PORT_CTRL_2_OFFSET, PORT_INGRESS_VLAN_FILTER, set);
2378 static inline void port_cfg_mirror_sniffer(struct ksz_hw *hw, int p, int set)
2381 KS8842_PORT_CTRL_2_OFFSET, PORT_MIRROR_SNIFFER, set);
2384 static inline void port_cfg_mirror_rx(struct ksz_hw *hw, int p, int set)
2387 KS8842_PORT_CTRL_2_OFFSET, PORT_MIRROR_RX, set);
2390 static inline void port_cfg_mirror_tx(struct ksz_hw *hw, int p, int set)
2393 KS8842_PORT_CTRL_2_OFFSET, PORT_MIRROR_TX, set);
2396 static inline void sw_cfg_mirror_rx_tx(struct ksz_hw *hw, int set)
2398 sw_cfg(hw, KS8842_SWITCH_CTRL_2_OFFSET, SWITCH_MIRROR_RX_TX, set);
2413 static inline void sw_cfg_unk_def_deliver(struct ksz_hw *hw, int set)
2416 SWITCH_UNK_DEF_PORT_ENABLE, set);
2425 static inline void sw_cfg_unk_def_port(struct ksz_hw *hw, int port, int set)
2427 port_cfg_shift(hw, port, KS8842_SWITCH_CTRL_7_OFFSET, 0, set);
2437 static inline void port_cfg_diffserv(struct ksz_hw *hw, int p, int set)
2440 KS8842_PORT_CTRL_1_OFFSET, PORT_DIFFSERV_ENABLE, set);
2443 static inline void port_cfg_802_1p(struct ksz_hw *hw, int p, int set)
2446 KS8842_PORT_CTRL_1_OFFSET, PORT_802_1P_ENABLE, set);
2449 static inline void port_cfg_replace_vid(struct ksz_hw *hw, int p, int set)
2452 KS8842_PORT_CTRL_2_OFFSET, PORT_USER_PRIORITY_CEILING, set);
2455 static inline void port_cfg_prio(struct ksz_hw *hw, int p, int set)
2458 KS8842_PORT_CTRL_1_OFFSET, PORT_PRIO_QUEUE_ENABLE, set);
2512 * @set: The flag to disable or enable.
2515 static void sw_cfg_replace_null_vid(struct ksz_hw *hw, int set)
2517 sw_cfg(hw, KS8842_SWITCH_CTRL_3_OFFSET, SWITCH_REPLACE_NULL_VID, set);
2524 * @set: The flag to disable or enable.
2531 static void sw_cfg_replace_vid(struct ksz_hw *hw, int port, int set)
2533 port_cfg_replace_vid(hw, port, set);
2540 * @prio: The priority to set.
2719 * sw_set_global_ctrl - set switch global control
3363 * port_set_link_speed - set port speed
3504 * @set: The flag indicating whether to enable or disable.
3508 static void hw_cfg_wol_pme(struct ksz_hw *hw, int set)
3518 if (set)
3529 * @set: The flag indicating whether to enable or disable.
3533 static void hw_cfg_wol(struct ksz_hw *hw, u16 frame, int set)
3538 if (set)
3853 * hw_set_desc_base - set descriptor base addresses
4032 * hw_set_addr - set MAC address
4151 * This routine removes all multicast addresses set in the hardware.
4165 * hw_set_grp_addr - set multicast addresses
5047 /* Status valid only when last descriptor bit is set. */
5092 /* Status valid only when last descriptor bit is set. */
5137 /* Status valid only when last descriptor bit is set. */
5636 * netdev_set_mac_address - set network device MAC address
5640 * This function is used to set the MAC address of the network device.
5729 * This routine is used to set multicast addresses or put the network device
5893 * mdio_write - set PHY register
5957 * netdev_set_link_ksettings - set network device settings
6175 * netdev_set_wol - set Wake-on-LAN support
6220 * netdev_set_msglevel - set debug message level
6344 * netdev_set_pauseparam - set flow control parameters
6457 * @stringset: String set identifier.
6476 * @sset: The statistics set number.
6564 * netdev_set_features - set receive checksum support