Lines Matching refs:pa

61 #define	PARAM_OUTOF_RANGE(vptr, eptr, rval, pa)	\  argument
62 ((vptr == eptr) || (rval < pa->minimum) || (rval > pa->maximum))
473 p_hxge_param_t pa = (p_hxge_param_t)cp; in hxge_param_get_generic() local
476 pa->name)); in hxge_param_get_generic()
478 if (pa->value > 0xffffffff) in hxge_param_get_generic()
479 (void) mi_mpprintf(mp, "%x%x", (int)(pa->value >> 32), in hxge_param_get_generic()
480 (int)(pa->value & 0xffffffff)); in hxge_param_get_generic()
482 (void) mi_mpprintf(mp, "%x", (int)pa->value); in hxge_param_get_generic()
492 p_hxge_param_t pa = (p_hxge_param_t)cp; in hxge_param_get_mac() local
496 (void) mi_mpprintf(mp, "%d", (uint32_t)pa->value); in hxge_param_get_mac()
588 p_hxge_param_t pa = (p_hxge_param_t)cp; in hxge_param_set_generic() local
592 if (end == value || new_value < pa->minimum || in hxge_param_set_generic()
593 new_value > pa->maximum) { in hxge_param_set_generic()
596 pa->value = new_value; in hxge_param_set_generic()
609 p_hxge_param_t pa = (p_hxge_param_t)cp; in hxge_param_set_mac() local
613 if (PARAM_OUTOF_RANGE(value, end, new_value, pa)) { in hxge_param_set_mac()
617 if (pa->value != new_value) { in hxge_param_set_mac()
618 pa->old_value = pa->value; in hxge_param_set_mac()
619 pa->value = new_value; in hxge_param_set_mac()
622 if (pa->value != pa->old_value) { in hxge_param_set_mac()
647 p_hxge_param_t pa = (p_hxge_param_t)cp; in hxge_param_rx_intr_pkts() local
661 if ((pa->value != cfg_value)) { in hxge_param_rx_intr_pkts()
662 pa->old_value = pa->value; in hxge_param_rx_intr_pkts()
663 pa->value = cfg_value; in hxge_param_rx_intr_pkts()
664 hxgep->intr_threshold = pa->value; in hxge_param_rx_intr_pkts()
678 p_hxge_param_t pa = (p_hxge_param_t)cp; in hxge_param_rx_intr_time() local
692 if ((pa->value != cfg_value)) { in hxge_param_rx_intr_time()
693 pa->old_value = pa->value; in hxge_param_rx_intr_time()
694 pa->value = cfg_value; in hxge_param_rx_intr_time()
695 hxgep->intr_timeout = pa->value; in hxge_param_rx_intr_time()
709 p_hxge_param_t pa = (p_hxge_param_t)cp; in hxge_param_set_vlan_ids() local
731 cfgd_vlans = ((pa->type & HXGE_PARAM_ARRAY_CNT_MASK) >> in hxge_param_set_vlan_ids()
750 val_ptr = (uint32_t *)pa->value; in hxge_param_set_vlan_ids()
751 old_val_ptr = (uint32_t *)pa->old_value; in hxge_param_set_vlan_ids()
785 pa->type &= ~HXGE_PARAM_ARRAY_CNT_MASK; in hxge_param_set_vlan_ids()
786 pa->type |= (cfgd_vlans << HXGE_PARAM_ARRAY_CNT_SHIFT); in hxge_param_set_vlan_ids()
817 p_hxge_param_t pa = (p_hxge_param_t)cp; in hxge_param_get_vlan_ids() local
832 cfgd_vlans = (pa->type & HXGE_PARAM_ARRAY_CNT_MASK) >> in hxge_param_get_vlan_ids()
842 val_ptr = (uint32_t *)pa->value; in hxge_param_get_vlan_ids()
865 p_hxge_param_t pa = (p_hxge_param_t)cp; in hxge_param_tcam_enable() local
872 if (pa->value != cfg_value) { in hxge_param_tcam_enable()
873 pa->old_value = pa->value; in hxge_param_tcam_enable()
874 pa->value = cfg_value; in hxge_param_tcam_enable()
878 if (pa->value) in hxge_param_tcam_enable()
896 p_hxge_param_t pa = (p_hxge_param_t)cp; in hxge_param_set_ether_usr() local
904 if (PARAM_OUTOF_RANGE(value, end, cfg_value, pa)) { in hxge_param_set_ether_usr()
907 if (pa->value != cfg_value) { in hxge_param_set_ether_usr()
908 pa->old_value = pa->value; in hxge_param_set_ether_usr()
909 pa->value = cfg_value; in hxge_param_set_ether_usr()
939 p_hxge_param_t pa = (p_hxge_param_t)cp; in hxge_param_set_ip_opt() local
949 if (PARAM_OUTOF_RANGE(value, end, cfg_value, pa)) { in hxge_param_set_ip_opt()
952 if (pa->value != cfg_value) { in hxge_param_set_ip_opt()
953 pa->old_value = pa->value; in hxge_param_set_ip_opt()
954 pa->value = cfg_value; in hxge_param_set_ip_opt()
959 class = hxge_class_name_2value(hxgep, pa->name); in hxge_param_set_ip_opt()
963 status = hxge_pfc_ip_class_config(hxgep, class, pa->value); in hxge_param_set_ip_opt()
976 p_hxge_param_t pa = (p_hxge_param_t)cp; in hxge_param_get_ip_opt() local
982 class = hxge_class_name_2value(hxgep, pa->name); in hxge_param_get_ip_opt()
991 pa->value = cfg_value; in hxge_param_get_ip_opt()
1007 p_hxge_param_t pa = (p_hxge_param_t)cp; in hxge_param_pfc_hash_init() local
1016 if (PARAM_OUTOF_RANGE(value, end, cfg_value, pa)) { in hxge_param_pfc_hash_init()
1022 if (pa->value != cfg_value) { in hxge_param_pfc_hash_init()
1023 pa->old_value = pa->value; in hxge_param_pfc_hash_init()
1024 pa->value = cfg_value; in hxge_param_pfc_hash_init()
1029 status = hxge_pfc_set_hash(hxgep, (uint32_t)pa->value); in hxge_param_pfc_hash_init()
1045 p_hxge_param_t pa = (p_hxge_param_t)cp; in hxge_param_set_hxge_debug_flag() local
1055 if (PARAM_OUTOF_RANGE(value, end, cfg_value, pa)) { in hxge_param_set_hxge_debug_flag()
1061 if (pa->value != cfg_value) { in hxge_param_set_hxge_debug_flag()
1062 pa->old_value = pa->value; in hxge_param_set_hxge_debug_flag()
1063 pa->value = cfg_value; in hxge_param_set_hxge_debug_flag()
1067 hxgep->hxge_debug_level = pa->value; in hxge_param_set_hxge_debug_flag()
1078 p_hxge_param_t pa = (p_hxge_param_t)cp; in hxge_param_get_debug_flag() local
1082 if (pa->value > 0xffffffff) in hxge_param_get_debug_flag()
1083 (void) mi_mpprintf(mp, "%x%x", (int)(pa->value >> 32), in hxge_param_get_debug_flag()
1084 (int)(pa->value & 0xffffffff)); in hxge_param_get_debug_flag()
1086 (void) mi_mpprintf(mp, "%x", (int)pa->value); in hxge_param_get_debug_flag()
1101 p_hxge_param_t pa = (p_hxge_param_t)cp; in hxge_param_set_hpi_debug_flag() local
1111 if (PARAM_OUTOF_RANGE(value, end, cfg_value, pa)) { in hxge_param_set_hpi_debug_flag()
1116 if (pa->value != cfg_value) { in hxge_param_set_hpi_debug_flag()
1117 pa->old_value = pa->value; in hxge_param_set_hpi_debug_flag()
1118 pa->value = cfg_value; in hxge_param_set_hpi_debug_flag()
1122 hpi_debug_level = pa->value; in hxge_param_set_hpi_debug_flag()