Lines Matching defs:slot_power_limit_mw
740 u32 slot_power_limit_mw;
744 &slot_power_limit_mw))
745 slot_power_limit_mw = 0;
748 if (slot_power_limit_mw == 0) {
751 } else if (slot_power_limit_mw <= 255) {
752 value = slot_power_limit_mw;
754 } else if (slot_power_limit_mw <= 255*10) {
755 value = slot_power_limit_mw / 10;
757 slot_power_limit_mw = slot_power_limit_mw / 10 * 10;
758 } else if (slot_power_limit_mw <= 255*100) {
759 value = slot_power_limit_mw / 100;
761 slot_power_limit_mw = slot_power_limit_mw / 100 * 100;
762 } else if (slot_power_limit_mw <= 239*1000) {
763 value = slot_power_limit_mw / 1000;
765 slot_power_limit_mw = slot_power_limit_mw / 1000 * 1000;
766 } else if (slot_power_limit_mw < 250*1000) {
769 slot_power_limit_mw = 239*1000;
770 } else if (slot_power_limit_mw <= 600*1000) {
771 value = 0xF0 + (slot_power_limit_mw / 1000 - 250) / 25;
773 slot_power_limit_mw = slot_power_limit_mw / (1000*25) * (1000*25);
777 slot_power_limit_mw = 600*1000;
786 return slot_power_limit_mw;