Home
last modified time | relevance | path

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

/linux/drivers/accel/habanalabs/common/
H A 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
181 curr_arr = kcalloc(num_sensors_for_type, sizeof(*curr_arr), GFP_KERNEL); in hl_build_hwmon_channel_info()
182 if (!curr_arr) { in hl_build_hwmon_channel_info()
188 sensors_by_type[i] = curr_arr; in hl_build_hwmon_channel_info()
193 curr_arr = sensors_by_type[type]; in hl_build_hwmon_channel_info()
195 curr_arr[sensors_by_type_next_index[type]++] = flags; in hl_build_hwmon_channel_info()