Lines Matching refs:pupd
173 u32 pupd, mask = get_mask(offset); in stmfx_pinconf_get_pupd() local
176 ret = regmap_read(pctl->stmfx->map, reg, &pupd); in stmfx_pinconf_get_pupd()
180 return !!(pupd & mask); in stmfx_pinconf_get_pupd()
184 unsigned int offset, u32 pupd) in stmfx_pinconf_set_pupd() argument
189 return regmap_write_bits(pctl->stmfx->map, reg, mask, pupd ? mask : 0); in stmfx_pinconf_set_pupd()
222 int ret, dir, type, pupd; in stmfx_pinconf_get() local
241 pupd = stmfx_pinconf_get_pupd(pctl, pin); in stmfx_pinconf_get()
242 if (pupd < 0) in stmfx_pinconf_get()
243 return pupd; in stmfx_pinconf_get()
247 if ((!dir && (!type || !pupd)) || (dir && !type)) in stmfx_pinconf_get()
251 if (dir && type && !pupd) in stmfx_pinconf_get()
255 if (type && pupd) in stmfx_pinconf_get()
352 int dir, type, pupd, val; in stmfx_pinconf_dbg_show() local
364 pupd = stmfx_pinconf_get_pupd(pctl, offset); in stmfx_pinconf_dbg_show()
365 if (pupd < 0) in stmfx_pinconf_dbg_show()
375 pupd ? "with" : "without"); in stmfx_pinconf_dbg_show()
382 pupd ? "up" : "down"); in stmfx_pinconf_dbg_show()
384 seq_printf(s, "%s ", pupd ? "floating" : "analog"); in stmfx_pinconf_dbg_show()