Searched refs:speed_index (Results 1 – 4 of 4) sorted by relevance
123 int speed_index, duplex_index; in swphy_read_reg() local132 speed_index = swphy_decode_speed(state->speed); in swphy_read_reg()133 if (WARN_ON(speed_index < 0)) in swphy_read_reg()138 bmsr |= speed[speed_index].bmsr & duplex[duplex_index].bmsr; in swphy_read_reg()143 bmcr |= speed[speed_index].bmcr & duplex[duplex_index].bmcr; in swphy_read_reg()144 lpa |= speed[speed_index].lpa & duplex[duplex_index].lpa; in swphy_read_reg()145 lpagb |= speed[speed_index].lpagb & duplex[duplex_index].lpagb; in swphy_read_reg()
52 int speed_index; member142 static void set_fan_speed(struct gpio_fan_data *fan_data, int speed_index) in set_fan_speed() argument144 if (fan_data->speed_index == speed_index) in set_fan_speed()147 __set_fan_ctrl(fan_data, fan_data->speed[speed_index].ctrl_val); in set_fan_speed()148 fan_data->speed_index = speed_index; in set_fan_speed()182 u8 pwm = fan_data->speed_index * 255 / (fan_data->num_speed - 1); in pwm1_show()192 int speed_index; in pwm1_store() local205 speed_index = DIV_ROUND_UP(pwm * (fan_data->num_speed - 1), 255); in pwm1_store()206 set_fan_speed(fan_data, speed_index); in pwm1_store()276 return sprintf(buf, "%d\n", fan_data->speed[fan_data->speed_index].rpm); in fan1_input_show()[all …]
876 unsigned int speed_index = in hw_atl_b0_hw_interrupt_moderation_set() local882 [speed_index][1] * 2; in hw_atl_b0_hw_interrupt_moderation_set()884 [speed_index][1] * 2; in hw_atl_b0_hw_interrupt_moderation_set()887 [speed_index][0] << 0x8U; in hw_atl_b0_hw_interrupt_moderation_set()889 [speed_index][1] << 0x10U; in hw_atl_b0_hw_interrupt_moderation_set()892 [speed_index][0] << 0x8U; in hw_atl_b0_hw_interrupt_moderation_set()894 [speed_index][1] << 0x10U; in hw_atl_b0_hw_interrupt_moderation_set()
836 unsigned int speed_index = in hw_atl_a0_hw_interrupt_moderation_set() local841 (hw_timers_tbl_[speed_index] << 0x10U); in hw_atl_a0_hw_interrupt_moderation_set()