Searched refs:n_attrs (Results 1 – 2 of 2) sorted by relevance
289 struct efx_mcdi_mon_attribute *attr = &hwmon->attrs[hwmon->n_attrs]; in efx_mcdi_mon_add_attr()303 hwmon->group.attrs[hwmon->n_attrs++] = &attr->dev_attr.attr; in efx_mcdi_mon_add_attr()312 unsigned int n_pages, n_sensors, n_attrs, page; in efx_mcdi_mon_probe() local355 n_attrs = 6 * n_sensors; in efx_mcdi_mon_probe()356 hwmon->attrs = kcalloc(n_attrs, sizeof(*hwmon->attrs), GFP_KERNEL); in efx_mcdi_mon_probe()361 hwmon->group.attrs = kcalloc(n_attrs + 1, sizeof(struct attribute *), in efx_mcdi_mon_probe()
103 unsigned int n_attrs; member