Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dhwmon.c298 u32 sensors_count; in mlx5_hwmon_alloc() local
315 sensors_count = hwmon->asic_platform_scount + hwmon->module_scount; in mlx5_hwmon_alloc()
317 sensors_count); in mlx5_hwmon_alloc()
324 hwmon->temp_channel_config = kcalloc(sensors_count + 1, sizeof(*hwmon->temp_channel_config), in mlx5_hwmon_alloc()
/linux/drivers/hwmon/
H A Dibmpowernv.c93 u32 sensors_count; /* Total count of sensors from each group */ member
476 pdata->sensors_count += sensor_groups[type].attr_count; in populate_attr_groups()
562 pdata->sensors_count, sizeof(*sdata), in create_device_attrs()
673 pdata->sensors_count = 0; in ibmpowernv_probe()
/linux/drivers/accel/amdxdna/
H A Daie2_pci.c801 u32 sensors_count = 0, i; in aie2_get_sensors() local
817 sensors_count++; in aie2_get_sensors()
818 if (args->buffer_size <= sensors_count * sizeof(sensor)) in aie2_get_sensors()
829 if (copy_to_user(u64_to_user_ptr(args->buffer) + sensors_count * sizeof(sensor), in aie2_get_sensors()
833 sensors_count++; in aie2_get_sensors()
834 if (args->buffer_size <= sensors_count * sizeof(sensor)) in aie2_get_sensors()
839 args->buffer_size = sensors_count * sizeof(sensor); in aie2_get_sensors()