Home
last modified time | relevance | path

Searched refs:speed_index (Results 1 - 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/phy/
H A Dswphy.c117 int speed_index, duplex_index; in swphy_read_reg() local
126 speed_index = swphy_decode_speed(state->speed); in swphy_read_reg()
127 if (WARN_ON(speed_index < 0)) in swphy_read_reg()
132 bmsr |= speed[speed_index].bmsr & duplex[duplex_index].bmsr; in swphy_read_reg()
133 estat |= speed[speed_index].estat & duplex[duplex_index].estat; in swphy_read_reg()
138 lpa |= speed[speed_index].lpa & duplex[duplex_index].lpa; in swphy_read_reg()
139 lpagb |= speed[speed_index].lpagb & duplex[duplex_index].lpagb; in swphy_read_reg()
/kernel/linux/linux-6.6/drivers/net/phy/
H A Dswphy.c117 int speed_index, duplex_index; in swphy_read_reg() local
126 speed_index = swphy_decode_speed(state->speed); in swphy_read_reg()
127 if (WARN_ON(speed_index < 0)) in swphy_read_reg()
132 bmsr |= speed[speed_index].bmsr & duplex[duplex_index].bmsr; in swphy_read_reg()
133 estat |= speed[speed_index].estat & duplex[duplex_index].estat; in swphy_read_reg()
138 lpa |= speed[speed_index].lpa & duplex[duplex_index].lpa; in swphy_read_reg()
139 lpagb |= speed[speed_index].lpagb & duplex[duplex_index].lpagb; in swphy_read_reg()
/kernel/linux/linux-5.10/drivers/hwmon/
H A Dgpio-fan.c39 int speed_index; member
129 static void set_fan_speed(struct gpio_fan_data *fan_data, int speed_index) in set_fan_speed() argument
131 if (fan_data->speed_index == speed_index) in set_fan_speed()
134 __set_fan_ctrl(fan_data, fan_data->speed[speed_index].ctrl_val); in set_fan_speed()
135 fan_data->speed_index = speed_index; in set_fan_speed()
169 u8 pwm = fan_data->speed_index * 255 / (fan_data->num_speed - 1); in pwm1_show()
179 int speed_index; in pwm1_store() local
192 speed_index in pwm1_store()
[all...]
/kernel/linux/linux-6.6/drivers/hwmon/
H A Dgpio-fan.c40 int speed_index; member
128 static void set_fan_speed(struct gpio_fan_data *fan_data, int speed_index) in set_fan_speed() argument
130 if (fan_data->speed_index == speed_index) in set_fan_speed()
133 __set_fan_ctrl(fan_data, fan_data->speed[speed_index].ctrl_val); in set_fan_speed()
134 fan_data->speed_index = speed_index; in set_fan_speed()
168 u8 pwm = fan_data->speed_index * 255 / (fan_data->num_speed - 1); in pwm1_show()
178 int speed_index; in pwm1_store() local
191 speed_index in pwm1_store()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl2/
H A Dhw_atl2.c719 unsigned int speed_index; in hw_atl2_hw_interrupt_moderation_set() local
721 speed_index = hw_atl_utils_mbps_2_speed_index(mbps); in hw_atl2_hw_interrupt_moderation_set()
725 [speed_index][1] * 2; in hw_atl2_hw_interrupt_moderation_set()
727 [speed_index][1] * 2; in hw_atl2_hw_interrupt_moderation_set()
730 [speed_index][0] << 0x8U; in hw_atl2_hw_interrupt_moderation_set()
732 [speed_index][1] << 0x10U; in hw_atl2_hw_interrupt_moderation_set()
735 [speed_index][0] << 0x8U; in hw_atl2_hw_interrupt_moderation_set()
737 [speed_index][1] << 0x10U; in hw_atl2_hw_interrupt_moderation_set()
/kernel/linux/linux-6.6/drivers/net/ethernet/aquantia/atlantic/hw_atl2/
H A Dhw_atl2.c719 unsigned int speed_index; in hw_atl2_hw_interrupt_moderation_set() local
721 speed_index = hw_atl_utils_mbps_2_speed_index(mbps); in hw_atl2_hw_interrupt_moderation_set()
725 [speed_index][1] * 2; in hw_atl2_hw_interrupt_moderation_set()
727 [speed_index][1] * 2; in hw_atl2_hw_interrupt_moderation_set()
730 [speed_index][0] << 0x8U; in hw_atl2_hw_interrupt_moderation_set()
732 [speed_index][1] << 0x10U; in hw_atl2_hw_interrupt_moderation_set()
735 [speed_index][0] << 0x8U; in hw_atl2_hw_interrupt_moderation_set()
737 [speed_index][1] << 0x10U; in hw_atl2_hw_interrupt_moderation_set()
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl/
H A Dhw_atl_b0.c1160 unsigned int speed_index = in hw_atl_b0_hw_interrupt_moderation_set() local
1166 [speed_index][1] * 2; in hw_atl_b0_hw_interrupt_moderation_set()
1168 [speed_index][1] * 2; in hw_atl_b0_hw_interrupt_moderation_set()
1171 [speed_index][0] << 0x8U; in hw_atl_b0_hw_interrupt_moderation_set()
1173 [speed_index][1] << 0x10U; in hw_atl_b0_hw_interrupt_moderation_set()
1176 [speed_index][0] << 0x8U; in hw_atl_b0_hw_interrupt_moderation_set()
1178 [speed_index][1] << 0x10U; in hw_atl_b0_hw_interrupt_moderation_set()
H A Dhw_atl_a0.c846 unsigned int speed_index = in hw_atl_a0_hw_interrupt_moderation_set() local
851 (hw_timers_tbl_[speed_index] << 0x10U); in hw_atl_a0_hw_interrupt_moderation_set()
/kernel/linux/linux-6.6/drivers/net/ethernet/aquantia/atlantic/hw_atl/
H A Dhw_atl_b0.c1160 unsigned int speed_index = in hw_atl_b0_hw_interrupt_moderation_set() local
1166 [speed_index][1] * 2; in hw_atl_b0_hw_interrupt_moderation_set()
1168 [speed_index][1] * 2; in hw_atl_b0_hw_interrupt_moderation_set()
1171 [speed_index][0] << 0x8U; in hw_atl_b0_hw_interrupt_moderation_set()
1173 [speed_index][1] << 0x10U; in hw_atl_b0_hw_interrupt_moderation_set()
1176 [speed_index][0] << 0x8U; in hw_atl_b0_hw_interrupt_moderation_set()
1178 [speed_index][1] << 0x10U; in hw_atl_b0_hw_interrupt_moderation_set()
H A Dhw_atl_a0.c846 unsigned int speed_index = in hw_atl_a0_hw_interrupt_moderation_set() local
851 (hw_timers_tbl_[speed_index] << 0x10U); in hw_atl_a0_hw_interrupt_moderation_set()

Completed in 12 milliseconds