Searched refs:n_attrs (Results 1 – 5 of 5) sorted by relevance
/linux-5.19.10/drivers/net/ethernet/sfc/ |
D | mcdi_mon.c | 286 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()
|
D | mcdi.h | 100 unsigned int n_attrs; member
|
/linux-5.19.10/drivers/net/ethernet/sfc/siena/ |
D | mcdi_mon.c | 286 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()
|
D | mcdi.h | 100 unsigned int n_attrs; member
|
/linux-5.19.10/drivers/power/supply/ |
D | power_supply_hwmon.c | 108 size_t n_attrs; member 128 for (i = 0; i < attr_list->n_attrs; ++i) { in power_supply_hwmon_has_input()
|