Lines Matching refs:sys_op

166 } sys_op;  variable
240 void fill_data(struct sysctl_op *sys_op, int flag, unsigned int value);
336 fill_data(struct sysctl_op *sys_op, int flag, unsigned int value) in fill_data() argument
341 sys_op->rx_coalesce_usecs = value; in fill_data()
344 sys_op->rx_max_coalesced_frames = value; in fill_data()
347 sys_op->rx_coalesce_usecs_irq = value; in fill_data()
350 sys_op->rx_max_coalesced_frames_irq = value; in fill_data()
353 sys_op->tx_coalesce_usecs = value; in fill_data()
356 sys_op->tx_max_coalesced_frames = value; in fill_data()
359 sys_op->tx_coalesce_usecs_irq = value; in fill_data()
362 sys_op->tx_max_coalesced_frames_irq = value; in fill_data()
365 sys_op->stats_block_coalesce_usecs = value; in fill_data()
368 sys_op->use_adaptive_rx_coalesce = value; in fill_data()
371 sys_op->use_adaptive_tx_coalesce = value; in fill_data()
374 sys_op->pkt_rate_low = value; in fill_data()
377 sys_op->rx_coalesce_usecs_low = value; in fill_data()
380 sys_op->rx_max_coalesced_frames_low = value; in fill_data()
383 sys_op->tx_coalesce_usecs_low = value; in fill_data()
386 sys_op->tx_max_coalesced_frames_low = value; in fill_data()
389 sys_op->pkt_rate_high = value; in fill_data()
392 sys_op->rx_coalesce_usecs_high = value; in fill_data()
395 sys_op->rx_max_coalesced_frames_high = value; in fill_data()
398 sys_op->tx_coalesce_usecs_high = value; in fill_data()
401 sys_op->tx_max_coalesced_frames_high = value; in fill_data()
404 sys_op->rate_sample_interval = value; in fill_data()
407 sys_op->autoneg = value; in fill_data()
410 sys_op->rx_pause = value; in fill_data()
413 sys_op->tx_pause = value; in fill_data()
416 sys_op->speed = value; in fill_data()
419 sys_op->duplex = value; in fill_data()
422 sys_op->rx_pending = value; in fill_data()
425 sys_op->rx_mini_pending = value; in fill_data()
428 sys_op->rx_jumbo_pending = value; in fill_data()
431 sys_op->tx_pending = value; in fill_data()
442 struct sysctl_op *sys_op = pdata->sys_op; in parse_generic_sysctl() local
465 fill_data(sys_op, in parse_generic_sysctl()
468 fill_data(sys_op, in parse_generic_sysctl()
476 fill_data(sys_op, info[idx].flag, value); in parse_generic_sysctl()
480 fill_data(sys_op, in parse_generic_sysctl()
483 fill_data(sys_op, in parse_generic_sysctl()
630 struct sysctl_op *sys_op = pdata->sys_op; in sysctl_coalesce_handler() local
645 sys_op->rx_coalesce_usecs = pdata->rx_usecs; in sysctl_coalesce_handler()
646 sys_op->rx_max_coalesced_frames = pdata->rx_frames; in sysctl_coalesce_handler()
647 sys_op->tx_max_coalesced_frames = pdata->tx_frames; in sysctl_coalesce_handler()
650 sys_op->use_adaptive_rx_coalesce ? "on" : "off", in sysctl_coalesce_handler()
651 sys_op->use_adaptive_tx_coalesce ? "on" : "off"); in sysctl_coalesce_handler()
677 sys_op->stats_block_coalesce_usecs, in sysctl_coalesce_handler()
678 sys_op->rate_sample_interval, in sysctl_coalesce_handler()
679 sys_op->pkt_rate_low, in sysctl_coalesce_handler()
680 sys_op->pkt_rate_high, in sysctl_coalesce_handler()
682 sys_op->rx_coalesce_usecs, in sysctl_coalesce_handler()
683 sys_op->rx_max_coalesced_frames, in sysctl_coalesce_handler()
684 sys_op->rx_coalesce_usecs_irq, in sysctl_coalesce_handler()
685 sys_op->rx_max_coalesced_frames_irq, in sysctl_coalesce_handler()
687 sys_op->tx_coalesce_usecs, in sysctl_coalesce_handler()
688 sys_op->tx_max_coalesced_frames, in sysctl_coalesce_handler()
689 sys_op->tx_coalesce_usecs_irq, in sysctl_coalesce_handler()
690 sys_op->tx_max_coalesced_frames_irq, in sysctl_coalesce_handler()
692 sys_op->rx_coalesce_usecs_low, in sysctl_coalesce_handler()
693 sys_op->rx_max_coalesced_frames_low, in sysctl_coalesce_handler()
694 sys_op->tx_coalesce_usecs_low, in sysctl_coalesce_handler()
695 sys_op->tx_max_coalesced_frames_low, in sysctl_coalesce_handler()
697 sys_op->rx_coalesce_usecs_high, in sysctl_coalesce_handler()
698 sys_op->rx_max_coalesced_frames_high, in sysctl_coalesce_handler()
699 sys_op->tx_coalesce_usecs_high, in sysctl_coalesce_handler()
700 sys_op->tx_max_coalesced_frames_high); in sysctl_coalesce_handler()
712 rx_riwt = hw_if->usec_to_riwt(pdata, sys_op->rx_coalesce_usecs); in sysctl_coalesce_handler()
713 rx_usecs = sys_op->rx_coalesce_usecs; in sysctl_coalesce_handler()
714 rx_frames = sys_op->rx_max_coalesced_frames; in sysctl_coalesce_handler()
732 tx_frames = sys_op->tx_max_coalesced_frames; in sysctl_coalesce_handler()
759 struct sysctl_op *sys_op = pdata->sys_op; in sysctl_pauseparam_handler() local
776 sys_op->autoneg = pdata->phy.pause_autoneg; in sysctl_pauseparam_handler()
777 sys_op->tx_pause = pdata->phy.tx_pause; in sysctl_pauseparam_handler()
778 sys_op->rx_pause = pdata->phy.rx_pause; in sysctl_pauseparam_handler()
784 sys_op->autoneg ? "on" : "off", in sysctl_pauseparam_handler()
785 sys_op->rx_pause ? "on" : "off", in sysctl_pauseparam_handler()
786 sys_op->tx_pause ? "on" : "off"); in sysctl_pauseparam_handler()
819 if (sys_op->autoneg && (pdata->phy.autoneg != AUTONEG_ENABLE)) { in sysctl_pauseparam_handler()
824 pdata->phy.pause_autoneg = sys_op->autoneg; in sysctl_pauseparam_handler()
825 pdata->phy.tx_pause = sys_op->tx_pause; in sysctl_pauseparam_handler()
826 pdata->phy.rx_pause = sys_op->rx_pause; in sysctl_pauseparam_handler()
831 if (sys_op->rx_pause) { in sysctl_pauseparam_handler()
836 if (sys_op->tx_pause) { in sysctl_pauseparam_handler()
856 struct sysctl_op *sys_op = pdata->sys_op; in sysctl_link_ksettings_handler() local
874 sys_op->autoneg = pdata->phy.autoneg; in sysctl_link_ksettings_handler()
875 sys_op->speed = pdata->phy.speed; in sysctl_link_ksettings_handler()
876 sys_op->duplex = pdata->phy.duplex; in sysctl_link_ksettings_handler()
882 switch (sys_op->speed) { in sysctl_link_ksettings_handler()
914 (sys_op->autoneg == AUTONEG_DISABLE) ? "off" : "on", in sysctl_link_ksettings_handler()
917 switch (sys_op->duplex) { in sysctl_link_ksettings_handler()
938 speed = sys_op->speed; in sysctl_link_ksettings_handler()
940 if ((sys_op->autoneg != AUTONEG_ENABLE) && in sysctl_link_ksettings_handler()
941 (sys_op->autoneg != AUTONEG_DISABLE)) { in sysctl_link_ksettings_handler()
943 (unsigned char)sys_op->autoneg); in sysctl_link_ksettings_handler()
947 if (sys_op->autoneg == AUTONEG_DISABLE) { in sysctl_link_ksettings_handler()
953 if (sys_op->duplex != DUPLEX_FULL) { in sysctl_link_ksettings_handler()
955 (unsigned char)sys_op->duplex); in sysctl_link_ksettings_handler()
960 pdata->phy.autoneg = sys_op->autoneg; in sysctl_link_ksettings_handler()
962 pdata->phy.duplex = sys_op->duplex; in sysctl_link_ksettings_handler()
964 if (sys_op->autoneg == AUTONEG_ENABLE) in sysctl_link_ksettings_handler()
980 struct sysctl_op *sys_op = pdata->sys_op; in sysctl_ringparam_handler() local
999 sys_op->rx_max_pending = XGBE_RX_DESC_CNT_MAX; in sysctl_ringparam_handler()
1000 sys_op->tx_max_pending = XGBE_TX_DESC_CNT_MAX; in sysctl_ringparam_handler()
1001 sys_op->rx_pending = pdata->rx_desc_count; in sysctl_ringparam_handler()
1002 sys_op->tx_pending = pdata->tx_desc_count; in sysctl_ringparam_handler()
1010 sys_op->rx_max_pending, in sysctl_ringparam_handler()
1011 sys_op->rx_mini_max_pending, in sysctl_ringparam_handler()
1012 sys_op->rx_jumbo_max_pending, in sysctl_ringparam_handler()
1013 sys_op->tx_max_pending); in sysctl_ringparam_handler()
1021 sys_op->rx_pending, in sysctl_ringparam_handler()
1022 sys_op->rx_mini_pending, in sysctl_ringparam_handler()
1023 sys_op->rx_jumbo_pending, in sysctl_ringparam_handler()
1024 sys_op->tx_pending); in sysctl_ringparam_handler()
1036 if (sys_op->rx_mini_pending || sys_op->rx_jumbo_pending) { in sysctl_ringparam_handler()
1041 if ((sys_op->rx_pending < XGBE_RX_DESC_CNT_MIN) || in sysctl_ringparam_handler()
1042 (sys_op->rx_pending > XGBE_RX_DESC_CNT_MAX)) { in sysctl_ringparam_handler()
1048 if ((sys_op->tx_pending < XGBE_TX_DESC_CNT_MIN) || in sysctl_ringparam_handler()
1049 (sys_op->tx_pending > XGBE_TX_DESC_CNT_MAX)) { in sysctl_ringparam_handler()
1055 rx = __rounddown_pow_of_two(sys_op->rx_pending); in sysctl_ringparam_handler()
1056 if (rx != sys_op->rx_pending) in sysctl_ringparam_handler()
1060 tx = __rounddown_pow_of_two(sys_op->tx_pending); in sysctl_ringparam_handler()
1061 if (tx != sys_op->tx_pending) in sysctl_ringparam_handler()
1083 struct sysctl_op *sys_op = pdata->sys_op; in sysctl_channels_handler() local
1110 sys_op->max_combined = combined; in sysctl_channels_handler()
1111 sys_op->max_rx = rx ? rx - 1 : 0; in sysctl_channels_handler()
1112 sys_op->max_tx = tx ? tx - 1 : 0; in sysctl_channels_handler()
1122 sys_op->combined_count = combined; in sysctl_channels_handler()
1123 sys_op->rx_count = rx; in sysctl_channels_handler()
1124 sys_op->tx_count = tx; in sysctl_channels_handler()
1132 sys_op->max_rx, sys_op->max_tx, in sysctl_channels_handler()
1133 sys_op->max_other, in sysctl_channels_handler()
1134 sys_op->max_combined); in sysctl_channels_handler()
1142 sys_op->rx_count, sys_op->tx_count, in sysctl_channels_handler()
1143 sys_op->other_count, in sysctl_channels_handler()
1144 sys_op->combined_count); in sysctl_channels_handler()
1157 " tx-only=%u\n", sys_op->combined_count, in sysctl_channels_handler()
1158 sys_op->rx_count, sys_op->tx_count); in sysctl_channels_handler()
1590 if (pdata->sys_op) in axgbe_sysctl_exit()
1591 free(pdata->sys_op, M_AXGBE); in axgbe_sysctl_exit()
1600 struct sysctl_op *sys_op; in axgbe_sysctl_init() local
1602 sys_op = malloc(sizeof(*sys_op), M_AXGBE, M_WAITOK | M_ZERO); in axgbe_sysctl_init()
1603 pdata->sys_op = sys_op; in axgbe_sysctl_init()