Searched refs:PORT_MAX_WEIGHT (Results 1 - 2 of 2) sorted by relevance

/freebsd-current/sys/contrib/ncsw/inc/integrations/
H A Ddpaa_integration_ext.h208 #define PORT_MAX_WEIGHT 16 macro
/freebsd-current/sys/contrib/ncsw/Peripherals/FM/
H A Dfm_ncsw.c4518 weight = (uint8_t)((p_PortsBandwidth->portsBandwidths[i].bandwidth * PORT_MAX_WEIGHT ) / maxPercent);
4519 /* we want even division between 1-to-PORT_MAX_WEIGHT. so if exact division
4521 0 until maxPercent/PORT_MAX_WEIGHT get "1"
4522 maxPercent/PORT_MAX_WEIGHT+1 until (maxPercent/PORT_MAX_WEIGHT)*2 get "2"
4524 maxPercent - maxPercent/PORT_MAX_WEIGHT until maxPercent get "PORT_MAX_WEIGHT: */
4525 if ((uint8_t)((p_PortsBandwidth->portsBandwidths[i].bandwidth * PORT_MAX_WEIGHT ) % maxPercent))

Completed in 76 milliseconds