Lines Matching refs:ofcfg
110 struct ksz90x1_ofcfg *ofcfg, in ksz90x1_of_config_group() argument
135 for (i = 0; i < ofcfg->grpsz; i++) { in ksz90x1_of_config_group()
136 val[i] = ofnode_read_u32_default(node, ofcfg->grp[i].name, ~0); in ksz90x1_of_config_group()
137 offset = ofcfg->grp[i].off; in ksz90x1_of_config_group()
140 regval |= ofcfg->grp[i].dflt << offset; in ksz90x1_of_config_group()
144 max = (1 << ofcfg->grp[i].size) - 1; in ksz90x1_of_config_group()
156 return drv->writeext(phydev, 0, ofcfg->devad, ofcfg->reg, regval); in ksz90x1_of_config_group()
161 struct ksz90x1_ofcfg ofcfg[] = { in ksz9021_of_config() local
168 for (i = 0; i < ARRAY_SIZE(ofcfg); i++) { in ksz9021_of_config()
169 ret = ksz90x1_of_config_group(phydev, &ofcfg[i], in ksz9021_of_config()
180 struct ksz90x1_ofcfg ofcfg[] = { in ksz9031_of_config() local
188 for (i = 0; i < ARRAY_SIZE(ofcfg); i++) { in ksz9031_of_config()
189 ret = ksz90x1_of_config_group(phydev, &ofcfg[i], in ksz9031_of_config()