Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/misc/habanalabs/common/
Dhwmon.c150 u32 num_sensors_for_type, flags, num_active_sensor_types = 0, arr_size = 0, *curr_arr; in hl_build_hwmon_channel_info() local
180 curr_arr = kcalloc(num_sensors_for_type, sizeof(*curr_arr), GFP_KERNEL); in hl_build_hwmon_channel_info()
181 if (!curr_arr) { in hl_build_hwmon_channel_info()
187 sensors_by_type[i] = curr_arr; in hl_build_hwmon_channel_info()
192 curr_arr = sensors_by_type[type]; in hl_build_hwmon_channel_info()
194 curr_arr[sensors_by_type_next_index[type]++] = flags; in hl_build_hwmon_channel_info()