Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/net/ethernet/sfc/
Dmcdi_mon.c286 struct efx_mcdi_mon_attribute *attr = &hwmon->attrs[hwmon->n_attrs]; in efx_mcdi_mon_add_attr()
300 hwmon->group.attrs[hwmon->n_attrs++] = &attr->dev_attr.attr; in efx_mcdi_mon_add_attr()
309 unsigned int n_pages, n_sensors, n_attrs, page; in efx_mcdi_mon_probe() local
352 n_attrs = 6 * n_sensors; in efx_mcdi_mon_probe()
353 hwmon->attrs = kcalloc(n_attrs, sizeof(*hwmon->attrs), GFP_KERNEL); in efx_mcdi_mon_probe()
358 hwmon->group.attrs = kcalloc(n_attrs + 1, sizeof(struct attribute *), in efx_mcdi_mon_probe()
Dmcdi.h100 unsigned int n_attrs; member
/linux-5.19.10/drivers/net/ethernet/sfc/siena/
Dmcdi_mon.c286 struct efx_mcdi_mon_attribute *attr = &hwmon->attrs[hwmon->n_attrs]; in efx_mcdi_mon_add_attr()
300 hwmon->group.attrs[hwmon->n_attrs++] = &attr->dev_attr.attr; in efx_mcdi_mon_add_attr()
309 unsigned int n_pages, n_sensors, n_attrs, page; in efx_siena_mcdi_mon_probe() local
352 n_attrs = 6 * n_sensors; in efx_siena_mcdi_mon_probe()
353 hwmon->attrs = kcalloc(n_attrs, sizeof(*hwmon->attrs), GFP_KERNEL); in efx_siena_mcdi_mon_probe()
358 hwmon->group.attrs = kcalloc(n_attrs + 1, sizeof(struct attribute *), in efx_siena_mcdi_mon_probe()
Dmcdi.h100 unsigned int n_attrs; member
/linux-5.19.10/drivers/power/supply/
Dpower_supply_hwmon.c108 size_t n_attrs; member
128 for (i = 0; i < attr_list->n_attrs; ++i) { in power_supply_hwmon_has_input()