Home
last modified time | relevance | path

Searched refs:speed_index (Results 1 – 2 of 2) sorted by relevance

/drivers/net/phy/
Dswphy.c123 int speed_index, duplex_index; in swphy_read_reg() local
132 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()
/drivers/hwmon/
Dgpio-fan.c49 int speed_index; member
155 static void set_fan_speed(struct gpio_fan_data *fan_data, int speed_index) in set_fan_speed() argument
157 if (fan_data->speed_index == speed_index) in set_fan_speed()
160 __set_fan_ctrl(fan_data, fan_data->speed[speed_index].ctrl_val); in set_fan_speed()
161 fan_data->speed_index = speed_index; in set_fan_speed()
195 u8 pwm = fan_data->speed_index * 255 / (fan_data->num_speed - 1); in show_pwm()
205 int speed_index; in set_pwm() local
218 speed_index = DIV_ROUND_UP(pwm * (fan_data->num_speed - 1), 255); in set_pwm()
219 set_fan_speed(fan_data, speed_index); in set_pwm()
288 return sprintf(buf, "%d\n", fan_data->speed[fan_data->speed_index].rpm); in show_rpm()
[all …]