Lines Matching refs:xp
249 const struct ebi2_xmem_prop *xp = &xmem_props[i]; in qcom_ebi2_setup_chipselect() local
252 ret = of_property_read_u32(np, xp->prop, &val); in qcom_ebi2_setup_chipselect()
255 xp->prop, csindex); in qcom_ebi2_setup_chipselect()
260 if (xp->max == 1 && val) { in qcom_ebi2_setup_chipselect()
261 if (xp->slowreg) in qcom_ebi2_setup_chipselect()
262 slowcfg |= BIT(xp->shift); in qcom_ebi2_setup_chipselect()
264 fastcfg |= BIT(xp->shift); in qcom_ebi2_setup_chipselect()
265 dev_dbg(dev, "set %s flag\n", xp->prop); in qcom_ebi2_setup_chipselect()
270 if (val > xp->max) { in qcom_ebi2_setup_chipselect()
273 xp->prop, val, xp->max); in qcom_ebi2_setup_chipselect()
274 val = xp->max; in qcom_ebi2_setup_chipselect()
276 if (xp->slowreg) in qcom_ebi2_setup_chipselect()
277 slowcfg |= (val << xp->shift); in qcom_ebi2_setup_chipselect()
279 fastcfg |= (val << xp->shift); in qcom_ebi2_setup_chipselect()
280 dev_dbg(dev, "set %s to %u\n", xp->prop, val); in qcom_ebi2_setup_chipselect()