Lines Matching refs:ip
211 const struct ixp4xx_exp_tim_prop *ip = &ixp4xx_exp_tim_props[i]; in ixp4xx_exp_setup_chipselect() local
214 ret = of_property_read_u32(np, ip->prop, &val); in ixp4xx_exp_setup_chipselect()
219 if (ip->max == 1) { in ixp4xx_exp_setup_chipselect()
221 cs_cfg |= ip->mask; in ixp4xx_exp_setup_chipselect()
223 cs_cfg &= ~ip->mask; in ixp4xx_exp_setup_chipselect()
226 ip->prop); in ixp4xx_exp_setup_chipselect()
230 if (val > ip->max) { in ixp4xx_exp_setup_chipselect()
233 cs_index, ip->prop, val, ip->max); in ixp4xx_exp_setup_chipselect()
234 val = ip->max; in ixp4xx_exp_setup_chipselect()
237 cs_cfg &= ~ip->mask; in ixp4xx_exp_setup_chipselect()
238 cs_cfg |= (val << ip->shift); in ixp4xx_exp_setup_chipselect()
239 dev_info(eb->dev, "CS%d set %s to %u\n", cs_index, ip->prop, val); in ixp4xx_exp_setup_chipselect()