Lines Matching refs:options
396 if (card->options.sbp.reflect_promisc_primary) in qeth_l2_promisc_to_bridge()
406 card->options.sbp.role = role; in qeth_l2_promisc_to_bridge()
422 if (card->options.sbp.reflect_promisc) in qeth_l2_set_promisc_mode()
1144 QETH_CARD_HEX(card, 2, &card->options.sbp.supported_funcs, in qeth_l2_trace_features()
1145 sizeof(card->options.sbp.supported_funcs)); in qeth_l2_trace_features()
1148 QETH_CARD_HEX(card, 2, &card->options.vnicc.sup_chars, in qeth_l2_trace_features()
1149 sizeof(card->options.vnicc.sup_chars)); in qeth_l2_trace_features()
1154 if (!card->options.sbp.reflect_promisc && in qeth_l2_setup_bridgeport_attrs()
1155 card->options.sbp.role != QETH_SBP_ROLE_NONE) { in qeth_l2_setup_bridgeport_attrs()
1157 qeth_bridgeport_setrole(card, card->options.sbp.role); in qeth_l2_setup_bridgeport_attrs()
1159 qeth_bridgeport_query_ports(card, &card->options.sbp.role, in qeth_l2_setup_bridgeport_attrs()
1162 if (card->options.sbp.hostnotification) { in qeth_l2_setup_bridgeport_attrs()
1164 card->options.sbp.hostnotification = 0; in qeth_l2_setup_bridgeport_attrs()
1478 data->card->options.sbp.hostnotification = 0; in qeth_addr_change_event_worker()
1709 card->options.sbp.role = QETH_SBP_ROLE_NONE; in qeth_bridgeport_query_support()
1710 card->options.sbp.supported_funcs = 0; in qeth_bridgeport_query_support()
1713 card->options.sbp.supported_funcs = cbctl.data.supported; in qeth_bridgeport_query_support()
1768 if (!(card->options.sbp.supported_funcs & IPA_SBP_QUERY_BRIDGE_PORTS)) in qeth_bridgeport_query_ports()
1815 if (!(card->options.sbp.supported_funcs & setcmd)) in qeth_bridgeport_setrole()
1852 if (!card->options.sbp.supported_funcs) in qeth_bridgeport_an_set()
1916 card->options.vnicc.sup_chars = rep->vnicc_cmds.supported; in qeth_l2_vnicc_request_cb()
1917 card->options.vnicc.cur_chars = rep->vnicc_cmds.enabled; in qeth_l2_vnicc_request_cb()
2018 if (card->options.vnicc.sup_chars & vnicc && in qeth_l2_vnicc_recover_timeout()
2019 card->options.vnicc.getset_timeout_sup & vnicc && in qeth_l2_vnicc_recover_timeout()
2036 if (!(card->options.vnicc.sup_chars & vnicc) || in qeth_l2_vnicc_set_state()
2037 !(card->options.vnicc.set_char_sup & vnicc)) in qeth_l2_vnicc_set_state()
2046 card->options.vnicc.wanted_chars |= vnicc; in qeth_l2_vnicc_set_state()
2049 card->options.vnicc.wanted_chars &= ~vnicc; in qeth_l2_vnicc_set_state()
2053 if (card->options.vnicc.cur_chars == card->options.vnicc.wanted_chars) in qeth_l2_vnicc_set_state()
2059 card->options.vnicc.cur_chars |= vnicc; in qeth_l2_vnicc_set_state()
2061 card->options.vnicc.cur_chars &= ~vnicc; in qeth_l2_vnicc_set_state()
2067 card->options.vnicc.wanted_chars = in qeth_l2_vnicc_set_state()
2068 card->options.vnicc.cur_chars; in qeth_l2_vnicc_set_state()
2072 card->options.vnicc.rx_bcast_enabled = true; in qeth_l2_vnicc_set_state()
2075 &card->options.vnicc.learning_timeout); in qeth_l2_vnicc_set_state()
2089 if (!(card->options.vnicc.sup_chars & vnicc)) in qeth_l2_vnicc_get_state()
2099 *state = (card->options.vnicc.cur_chars & vnicc) ? true : false; in qeth_l2_vnicc_get_state()
2113 if (!(card->options.vnicc.sup_chars & QETH_VNICC_LEARNING) || in qeth_l2_vnicc_set_timeout()
2114 !(card->options.vnicc.getset_timeout_sup & QETH_VNICC_LEARNING)) in qeth_l2_vnicc_set_timeout()
2121 if (card->options.vnicc.learning_timeout == timeout) in qeth_l2_vnicc_set_timeout()
2126 card->options.vnicc.learning_timeout = timeout; in qeth_l2_vnicc_set_timeout()
2134 card->options.vnicc.learning_timeout = timeout; in qeth_l2_vnicc_set_timeout()
2149 if (!(card->options.vnicc.sup_chars & QETH_VNICC_LEARNING) || in qeth_l2_vnicc_get_timeout()
2150 !(card->options.vnicc.getset_timeout_sup & QETH_VNICC_LEARNING)) in qeth_l2_vnicc_get_timeout()
2157 *timeout = card->options.vnicc.learning_timeout; in qeth_l2_vnicc_get_timeout()
2169 if (!card->options.vnicc.sup_chars) in _qeth_l2_vnicc_is_in_use()
2174 if (card->options.vnicc.cur_chars == QETH_VNICC_DEFAULT) { in _qeth_l2_vnicc_is_in_use()
2175 if (!card->options.vnicc.rx_bcast_enabled || in _qeth_l2_vnicc_is_in_use()
2203 if (card->options.vnicc.sup_chars & vnicc && in qeth_l2_vnicc_recover_char()
2204 card->options.vnicc.set_char_sup & vnicc && in qeth_l2_vnicc_recover_char()
2207 card->options.vnicc.wanted_chars &= ~vnicc; in qeth_l2_vnicc_recover_char()
2208 card->options.vnicc.wanted_chars |= QETH_VNICC_DEFAULT & vnicc; in qeth_l2_vnicc_recover_char()
2215 u32 *timeout = &card->options.vnicc.learning_timeout; in qeth_l2_vnicc_init()
2223 card->options.vnicc.rx_bcast_enabled = 0; in qeth_l2_vnicc_init()
2226 if (card->options.vnicc.wanted_chars != QETH_VNICC_DEFAULT || in qeth_l2_vnicc_init()
2230 card->options.vnicc.sup_chars = 0; in qeth_l2_vnicc_init()
2231 card->options.vnicc.cur_chars = 0; in qeth_l2_vnicc_init()
2232 card->options.vnicc.wanted_chars = QETH_VNICC_DEFAULT; in qeth_l2_vnicc_init()
2236 chars_tmp = card->options.vnicc.sup_chars; in qeth_l2_vnicc_init()
2237 chars_len = sizeof(card->options.vnicc.sup_chars) * BITS_PER_BYTE; in qeth_l2_vnicc_init()
2246 card->options.vnicc.getset_timeout_sup |= vnicc; in qeth_l2_vnicc_init()
2248 card->options.vnicc.getset_timeout_sup &= ~vnicc; in qeth_l2_vnicc_init()
2251 card->options.vnicc.set_char_sup |= vnicc; in qeth_l2_vnicc_init()
2253 card->options.vnicc.set_char_sup &= ~vnicc; in qeth_l2_vnicc_init()
2259 chars_tmp = card->options.vnicc.wanted_chars ^ in qeth_l2_vnicc_init()
2260 card->options.vnicc.cur_chars; in qeth_l2_vnicc_init()
2261 chars_len = sizeof(card->options.vnicc.wanted_chars) * BITS_PER_BYTE; in qeth_l2_vnicc_init()
2264 enable = card->options.vnicc.wanted_chars & vnicc; in qeth_l2_vnicc_init()
2275 card->options.vnicc.sup_chars = QETH_VNICC_ALL; in qeth_l2_vnicc_set_defaults()
2276 card->options.vnicc.cur_chars = QETH_VNICC_DEFAULT; in qeth_l2_vnicc_set_defaults()
2277 card->options.vnicc.learning_timeout = QETH_VNICC_DEFAULT_TIMEOUT; in qeth_l2_vnicc_set_defaults()
2279 card->options.vnicc.set_char_sup = QETH_VNICC_ALL; in qeth_l2_vnicc_set_defaults()
2280 card->options.vnicc.getset_timeout_sup = QETH_VNICC_LEARNING; in qeth_l2_vnicc_set_defaults()
2282 card->options.vnicc.wanted_chars = QETH_VNICC_DEFAULT; in qeth_l2_vnicc_set_defaults()
2344 if (card->options.sbp.supported_funcs) { in qeth_l2_set_online()