Lines Matching defs:ixgbe

41 	ixgbe_t *ixgbe = (ixgbe_t *)arg;
43 mutex_enter(&ixgbe->gen_lock);
45 if (ixgbe->ixgbe_state & IXGBE_SUSPENDED) {
46 mutex_exit(&ixgbe->gen_lock);
50 if (ixgbe_start(ixgbe, B_TRUE) != IXGBE_SUCCESS) {
51 mutex_exit(&ixgbe->gen_lock);
55 atomic_or_32(&ixgbe->ixgbe_state, IXGBE_STARTED);
57 mutex_exit(&ixgbe->gen_lock);
62 ixgbe_enable_watchdog_timer(ixgbe);
74 ixgbe_t *ixgbe = (ixgbe_t *)arg;
76 mutex_enter(&ixgbe->gen_lock);
78 if (ixgbe->ixgbe_state & IXGBE_SUSPENDED) {
79 mutex_exit(&ixgbe->gen_lock);
83 atomic_and_32(&ixgbe->ixgbe_state, ~IXGBE_STARTED);
85 ixgbe_stop(ixgbe, B_TRUE);
87 mutex_exit(&ixgbe->gen_lock);
92 ixgbe_disable_watchdog_timer(ixgbe);
101 ixgbe_t *ixgbe = (ixgbe_t *)arg;
103 struct ixgbe_hw *hw = &ixgbe->hw;
105 mutex_enter(&ixgbe->gen_lock);
107 if (ixgbe->ixgbe_state & IXGBE_SUSPENDED) {
108 mutex_exit(&ixgbe->gen_lock);
118 IXGBE_WRITE_REG(&ixgbe->hw, IXGBE_FCTRL, reg_val);
120 mutex_exit(&ixgbe->gen_lock);
132 ixgbe_t *ixgbe = (ixgbe_t *)arg;
135 mutex_enter(&ixgbe->gen_lock);
137 if (ixgbe->ixgbe_state & IXGBE_SUSPENDED) {
138 mutex_exit(&ixgbe->gen_lock);
142 result = (add) ? ixgbe_multicst_add(ixgbe, mcst_addr)
143 : ixgbe_multicst_remove(ixgbe, mcst_addr);
145 mutex_exit(&ixgbe->gen_lock);
157 ixgbe_t *ixgbe = (ixgbe_t *)arg;
164 mutex_enter(&ixgbe->gen_lock);
165 if (ixgbe->ixgbe_state & IXGBE_SUSPENDED) {
166 mutex_exit(&ixgbe->gen_lock);
170 mutex_exit(&ixgbe->gen_lock);
177 status = ixgbe_loopback_ioctl(ixgbe, iocp, mp);
229 ixgbe_t *ixgbe = (ixgbe_t *)arg;
241 if (!ixgbe->tx_hcksum_enable)
250 if (ixgbe->lso_enable) {
264 cap_rings->mr_rnum = ixgbe->num_rx_rings;
265 cap_rings->mr_gnum = ixgbe->num_rx_groups;
273 cap_rings->mr_rnum = ixgbe->num_tx_rings;
293 ixgbe_t *ixgbe = (ixgbe_t *)arg;
294 struct ixgbe_hw *hw = &ixgbe->hw;
302 mutex_enter(&ixgbe->gen_lock);
303 if (ixgbe->ixgbe_state & IXGBE_SUSPENDED) {
304 mutex_exit(&ixgbe->gen_lock);
316 speeds = ixgbe->speeds_supported;
318 if (ixgbe->loopback_mode != IXGBE_LB_NONE &&
324 mutex_exit(&ixgbe->gen_lock);
336 ixgbe->param_en_10000fdx_cap = *(uint8_t *)pr_val;
345 ixgbe->param_en_5000fdx_cap = *(uint8_t *)pr_val;
354 ixgbe->param_en_2500fdx_cap = *(uint8_t *)pr_val;
363 ixgbe->param_en_1000fdx_cap = *(uint8_t *)pr_val;
372 ixgbe->param_en_100fdx_cap = *(uint8_t *)pr_val;
379 if (ixgbe->hw.phy.media_type != ixgbe_media_type_copper) {
383 ixgbe->param_adv_autoneg_cap = *(uint8_t *)pr_val;
408 if (ixgbe_driver_setup_link(ixgbe, B_TRUE) !=
424 cur_mtu = ixgbe->default_mtu;
431 if (new_mtu < DEFAULT_MTU || new_mtu > ixgbe->capab->max_mtu) {
436 if (ixgbe->ixgbe_state & IXGBE_STARTED) {
441 err = mac_maxsdu_update(ixgbe->mac_hdl, new_mtu);
443 ixgbe->default_mtu = new_mtu;
444 ixgbe->max_frame_size = ixgbe->default_mtu +
450 rx_size = ixgbe->max_frame_size + IPHDR_ALIGN_ROOM;
451 ixgbe->rx_buf_size = ((rx_size >> 10) + ((rx_size &
457 tx_size = ixgbe->max_frame_size;
458 ixgbe->tx_buf_size = ((tx_size >> 10) + ((tx_size &
463 err = ixgbe_set_priv_prop(ixgbe, pr_name, pr_valsize, pr_val);
469 mutex_exit(&ixgbe->gen_lock);
477 ixgbe_t *ixgbe = (ixgbe_t *)arg;
478 struct ixgbe_hw *hw = &ixgbe->hw;
492 speeds = ixgbe->speeds_supported;
497 bcopy(&ixgbe->link_duplex, pr_val,
502 tmp = ixgbe->link_speed * 1000000ull;
506 *(uint8_t *)pr_val = ixgbe->param_adv_autoneg_cap;
529 *(uint8_t *)pr_val = ixgbe->param_adv_10000fdx_cap;
535 *(uint8_t *)pr_val = ixgbe->param_en_10000fdx_cap;
541 *(uint8_t *)pr_val = ixgbe->param_adv_5000fdx_cap;
547 *(uint8_t *)pr_val = ixgbe->param_en_5000fdx_cap;
553 *(uint8_t *)pr_val = ixgbe->param_adv_2500fdx_cap;
559 *(uint8_t *)pr_val = ixgbe->param_en_2500fdx_cap;
565 *(uint8_t *)pr_val = ixgbe->param_adv_1000fdx_cap;
571 *(uint8_t *)pr_val = ixgbe->param_en_1000fdx_cap;
577 *(uint8_t *)pr_val = ixgbe->param_adv_100fdx_cap;
583 *(uint8_t *)pr_val = ixgbe->param_en_100fdx_cap;
588 err = ixgbe_get_priv_prop(ixgbe, pr_name,
602 ixgbe_t *ixgbe = (ixgbe_t *)arg;
603 struct ixgbe_hw *hw = &ixgbe->hw;
616 speeds = ixgbe->speeds_supported;
717 DEFAULT_MTU, ixgbe->capab->max_mtu);
745 value = ixgbe->capab->def_intr_throttle;
777 ixgbe_set_priv_prop(ixgbe_t *ixgbe, const char *pr_name,
782 struct ixgbe_hw *hw = &ixgbe->hw;
795 ixgbe->tx_copy_thresh = (uint32_t)result;
809 ixgbe->tx_recycle_thresh = (uint32_t)result;
823 ixgbe->tx_overload_thresh = (uint32_t)result;
837 ixgbe->tx_resched_thresh = (uint32_t)result;
851 ixgbe->rx_copy_thresh = (uint32_t)result;
865 ixgbe->rx_limit_per_intr = (uint32_t)result;
876 if (result < ixgbe->capab->min_intr_throttle ||
877 result > ixgbe->capab->max_intr_throttle)
880 ixgbe->intr_throttling[0] = (uint32_t)result;
891 ixgbe->intr_throttling[0] =
892 ixgbe->intr_throttling[0] & 0xFF8;
896 ixgbe->intr_throttling[i] =
897 ixgbe->intr_throttling[0];
900 for (i = 0; i < ixgbe->intr_cnt; i++)
902 ixgbe->intr_throttling[i]);
910 ixgbe_get_priv_prop(ixgbe_t *ixgbe, const char *pr_name,
917 value = ixgbe->param_adv_pause_cap;
922 value = ixgbe->param_adv_asym_pause_cap;
927 value = ixgbe->tx_copy_thresh;
932 value = ixgbe->tx_recycle_thresh;
937 value = ixgbe->tx_overload_thresh;
942 value = ixgbe->tx_resched_thresh;
947 value = ixgbe->rx_copy_thresh;
952 value = ixgbe->rx_limit_per_intr;
957 value = ixgbe->intr_throttling[0];