Lines Matching refs:index
186 struct attribute *attr, int index) in dsa_hwmon_attrs_visible() argument
193 if (index == 1) { in dsa_hwmon_attrs_visible()
198 } else if (index == 2 && !ops->get_temp_alarm) { in dsa_hwmon_attrs_visible()
315 int index = ds->index; in dsa_switch_setup_one() local
335 dst->cpu_switch = index; in dsa_switch_setup_one()
361 if (dst->cpu_switch == index) { in dsa_switch_setup_one()
414 index, i, cd->port_names[i], ret); in dsa_switch_setup_one()
423 index); in dsa_switch_setup_one()
448 hname, index); in dsa_switch_setup_one()
463 dsa_switch_setup(struct dsa_switch_tree *dst, int index, in dsa_switch_setup() argument
466 struct dsa_chip_data *cd = dst->pd->chip + index; in dsa_switch_setup()
479 index); in dsa_switch_setup()
483 index, name); in dsa_switch_setup()
494 ds->index = index; in dsa_switch_setup()