Lines Matching refs:sys_op

164 } sys_op;  variable
238 void fill_data(struct sysctl_op *sys_op, int flag, unsigned int value);
334 fill_data(struct sysctl_op *sys_op, int flag, unsigned int value) in fill_data() argument
339 sys_op->rx_coalesce_usecs = value; in fill_data()
342 sys_op->rx_max_coalesced_frames = value; in fill_data()
345 sys_op->rx_coalesce_usecs_irq = value; in fill_data()
348 sys_op->rx_max_coalesced_frames_irq = value; in fill_data()
351 sys_op->tx_coalesce_usecs = value; in fill_data()
354 sys_op->tx_max_coalesced_frames = value; in fill_data()
357 sys_op->tx_coalesce_usecs_irq = value; in fill_data()
360 sys_op->tx_max_coalesced_frames_irq = value; in fill_data()
363 sys_op->stats_block_coalesce_usecs = value; in fill_data()
366 sys_op->use_adaptive_rx_coalesce = value; in fill_data()
369 sys_op->use_adaptive_tx_coalesce = value; in fill_data()
372 sys_op->pkt_rate_low = value; in fill_data()
375 sys_op->rx_coalesce_usecs_low = value; in fill_data()
378 sys_op->rx_max_coalesced_frames_low = value; in fill_data()
381 sys_op->tx_coalesce_usecs_low = value; in fill_data()
384 sys_op->tx_max_coalesced_frames_low = value; in fill_data()
387 sys_op->pkt_rate_high = value; in fill_data()
390 sys_op->rx_coalesce_usecs_high = value; in fill_data()
393 sys_op->rx_max_coalesced_frames_high = value; in fill_data()
396 sys_op->tx_coalesce_usecs_high = value; in fill_data()
399 sys_op->tx_max_coalesced_frames_high = value; in fill_data()
402 sys_op->rate_sample_interval = value; in fill_data()
405 sys_op->autoneg = value; in fill_data()
408 sys_op->rx_pause = value; in fill_data()
411 sys_op->tx_pause = value; in fill_data()
414 sys_op->speed = value; in fill_data()
417 sys_op->duplex = value; in fill_data()
420 sys_op->rx_pending = value; in fill_data()
423 sys_op->rx_mini_pending = value; in fill_data()
426 sys_op->rx_jumbo_pending = value; in fill_data()
429 sys_op->tx_pending = value; in fill_data()
440 struct sysctl_op *sys_op = pdata->sys_op; in parse_generic_sysctl() local
463 fill_data(sys_op, in parse_generic_sysctl()
466 fill_data(sys_op, in parse_generic_sysctl()
474 fill_data(sys_op, info[idx].flag, value); in parse_generic_sysctl()
478 fill_data(sys_op, in parse_generic_sysctl()
481 fill_data(sys_op, in parse_generic_sysctl()
628 struct sysctl_op *sys_op = pdata->sys_op; in sysctl_coalesce_handler() local
643 sys_op->rx_coalesce_usecs = pdata->rx_usecs; in sysctl_coalesce_handler()
644 sys_op->rx_max_coalesced_frames = pdata->rx_frames; in sysctl_coalesce_handler()
645 sys_op->tx_max_coalesced_frames = pdata->tx_frames; in sysctl_coalesce_handler()
648 sys_op->use_adaptive_rx_coalesce ? "on" : "off", in sysctl_coalesce_handler()
649 sys_op->use_adaptive_tx_coalesce ? "on" : "off"); in sysctl_coalesce_handler()
675 sys_op->stats_block_coalesce_usecs, in sysctl_coalesce_handler()
676 sys_op->rate_sample_interval, in sysctl_coalesce_handler()
677 sys_op->pkt_rate_low, in sysctl_coalesce_handler()
678 sys_op->pkt_rate_high, in sysctl_coalesce_handler()
680 sys_op->rx_coalesce_usecs, in sysctl_coalesce_handler()
681 sys_op->rx_max_coalesced_frames, in sysctl_coalesce_handler()
682 sys_op->rx_coalesce_usecs_irq, in sysctl_coalesce_handler()
683 sys_op->rx_max_coalesced_frames_irq, in sysctl_coalesce_handler()
685 sys_op->tx_coalesce_usecs, in sysctl_coalesce_handler()
686 sys_op->tx_max_coalesced_frames, in sysctl_coalesce_handler()
687 sys_op->tx_coalesce_usecs_irq, in sysctl_coalesce_handler()
688 sys_op->tx_max_coalesced_frames_irq, in sysctl_coalesce_handler()
690 sys_op->rx_coalesce_usecs_low, in sysctl_coalesce_handler()
691 sys_op->rx_max_coalesced_frames_low, in sysctl_coalesce_handler()
692 sys_op->tx_coalesce_usecs_low, in sysctl_coalesce_handler()
693 sys_op->tx_max_coalesced_frames_low, in sysctl_coalesce_handler()
695 sys_op->rx_coalesce_usecs_high, in sysctl_coalesce_handler()
696 sys_op->rx_max_coalesced_frames_high, in sysctl_coalesce_handler()
697 sys_op->tx_coalesce_usecs_high, in sysctl_coalesce_handler()
698 sys_op->tx_max_coalesced_frames_high); in sysctl_coalesce_handler()
710 rx_riwt = hw_if->usec_to_riwt(pdata, sys_op->rx_coalesce_usecs); in sysctl_coalesce_handler()
711 rx_usecs = sys_op->rx_coalesce_usecs; in sysctl_coalesce_handler()
712 rx_frames = sys_op->rx_max_coalesced_frames; in sysctl_coalesce_handler()
730 tx_frames = sys_op->tx_max_coalesced_frames; in sysctl_coalesce_handler()
757 struct sysctl_op *sys_op = pdata->sys_op; in sysctl_pauseparam_handler() local
774 sys_op->autoneg = pdata->phy.pause_autoneg; in sysctl_pauseparam_handler()
775 sys_op->tx_pause = pdata->phy.tx_pause; in sysctl_pauseparam_handler()
776 sys_op->rx_pause = pdata->phy.rx_pause; in sysctl_pauseparam_handler()
782 sys_op->autoneg ? "on" : "off", in sysctl_pauseparam_handler()
783 sys_op->rx_pause ? "on" : "off", in sysctl_pauseparam_handler()
784 sys_op->tx_pause ? "on" : "off"); in sysctl_pauseparam_handler()
817 if (sys_op->autoneg && (pdata->phy.autoneg != AUTONEG_ENABLE)) { in sysctl_pauseparam_handler()
822 pdata->phy.pause_autoneg = sys_op->autoneg; in sysctl_pauseparam_handler()
823 pdata->phy.tx_pause = sys_op->tx_pause; in sysctl_pauseparam_handler()
824 pdata->phy.rx_pause = sys_op->rx_pause; in sysctl_pauseparam_handler()
829 if (sys_op->rx_pause) { in sysctl_pauseparam_handler()
834 if (sys_op->tx_pause) { in sysctl_pauseparam_handler()
854 struct sysctl_op *sys_op = pdata->sys_op; in sysctl_link_ksettings_handler() local
872 sys_op->autoneg = pdata->phy.autoneg; in sysctl_link_ksettings_handler()
873 sys_op->speed = pdata->phy.speed; in sysctl_link_ksettings_handler()
874 sys_op->duplex = pdata->phy.duplex; in sysctl_link_ksettings_handler()
880 switch (sys_op->speed) { in sysctl_link_ksettings_handler()
912 (sys_op->autoneg == AUTONEG_DISABLE) ? "off" : "on", in sysctl_link_ksettings_handler()
915 switch (sys_op->duplex) { in sysctl_link_ksettings_handler()
936 speed = sys_op->speed; in sysctl_link_ksettings_handler()
938 if ((sys_op->autoneg != AUTONEG_ENABLE) && in sysctl_link_ksettings_handler()
939 (sys_op->autoneg != AUTONEG_DISABLE)) { in sysctl_link_ksettings_handler()
941 (unsigned char)sys_op->autoneg); in sysctl_link_ksettings_handler()
945 if (sys_op->autoneg == AUTONEG_DISABLE) { in sysctl_link_ksettings_handler()
951 if (sys_op->duplex != DUPLEX_FULL) { in sysctl_link_ksettings_handler()
953 (unsigned char)sys_op->duplex); in sysctl_link_ksettings_handler()
958 pdata->phy.autoneg = sys_op->autoneg; in sysctl_link_ksettings_handler()
960 pdata->phy.duplex = sys_op->duplex; in sysctl_link_ksettings_handler()
962 if (sys_op->autoneg == AUTONEG_ENABLE) in sysctl_link_ksettings_handler()
978 struct sysctl_op *sys_op = pdata->sys_op; in sysctl_ringparam_handler() local
997 sys_op->rx_max_pending = XGBE_RX_DESC_CNT_MAX; in sysctl_ringparam_handler()
998 sys_op->tx_max_pending = XGBE_TX_DESC_CNT_MAX; in sysctl_ringparam_handler()
999 sys_op->rx_pending = pdata->rx_desc_count; in sysctl_ringparam_handler()
1000 sys_op->tx_pending = pdata->tx_desc_count; in sysctl_ringparam_handler()
1008 sys_op->rx_max_pending, in sysctl_ringparam_handler()
1009 sys_op->rx_mini_max_pending, in sysctl_ringparam_handler()
1010 sys_op->rx_jumbo_max_pending, in sysctl_ringparam_handler()
1011 sys_op->tx_max_pending); in sysctl_ringparam_handler()
1019 sys_op->rx_pending, in sysctl_ringparam_handler()
1020 sys_op->rx_mini_pending, in sysctl_ringparam_handler()
1021 sys_op->rx_jumbo_pending, in sysctl_ringparam_handler()
1022 sys_op->tx_pending); in sysctl_ringparam_handler()
1034 if (sys_op->rx_mini_pending || sys_op->rx_jumbo_pending) { in sysctl_ringparam_handler()
1039 if ((sys_op->rx_pending < XGBE_RX_DESC_CNT_MIN) || in sysctl_ringparam_handler()
1040 (sys_op->rx_pending > XGBE_RX_DESC_CNT_MAX)) { in sysctl_ringparam_handler()
1046 if ((sys_op->tx_pending < XGBE_TX_DESC_CNT_MIN) || in sysctl_ringparam_handler()
1047 (sys_op->tx_pending > XGBE_TX_DESC_CNT_MAX)) { in sysctl_ringparam_handler()
1053 rx = __rounddown_pow_of_two(sys_op->rx_pending); in sysctl_ringparam_handler()
1054 if (rx != sys_op->rx_pending) in sysctl_ringparam_handler()
1058 tx = __rounddown_pow_of_two(sys_op->tx_pending); in sysctl_ringparam_handler()
1059 if (tx != sys_op->tx_pending) in sysctl_ringparam_handler()
1081 struct sysctl_op *sys_op = pdata->sys_op; in sysctl_channels_handler() local
1108 sys_op->max_combined = combined; in sysctl_channels_handler()
1109 sys_op->max_rx = rx ? rx - 1 : 0; in sysctl_channels_handler()
1110 sys_op->max_tx = tx ? tx - 1 : 0; in sysctl_channels_handler()
1120 sys_op->combined_count = combined; in sysctl_channels_handler()
1121 sys_op->rx_count = rx; in sysctl_channels_handler()
1122 sys_op->tx_count = tx; in sysctl_channels_handler()
1130 sys_op->max_rx, sys_op->max_tx, in sysctl_channels_handler()
1131 sys_op->max_other, in sysctl_channels_handler()
1132 sys_op->max_combined); in sysctl_channels_handler()
1140 sys_op->rx_count, sys_op->tx_count, in sysctl_channels_handler()
1141 sys_op->other_count, in sysctl_channels_handler()
1142 sys_op->combined_count); in sysctl_channels_handler()
1155 " tx-only=%u\n", sys_op->combined_count, in sysctl_channels_handler()
1156 sys_op->rx_count, sys_op->tx_count); in sysctl_channels_handler()
1588 if (pdata->sys_op) in axgbe_sysctl_exit()
1589 free(pdata->sys_op, M_AXGBE); in axgbe_sysctl_exit()
1598 struct sysctl_op *sys_op; in axgbe_sysctl_init() local
1600 sys_op = malloc(sizeof(*sys_op), M_AXGBE, M_WAITOK | M_ZERO); in axgbe_sysctl_init()
1601 pdata->sys_op = sys_op; in axgbe_sysctl_init()