Lines Matching refs:ctl
96 struct devstate_ctl_reg *ctl; member
192 struct devstate_ctl_reg *ctl; in dscr_set_devstate() local
206 ctl = info->ctl; in dscr_set_devstate()
209 if (ctl == NULL) in dscr_set_devstate()
212 ctl_shift = ctl->shift + ctl->nbits * (id - ctl->start_id); in dscr_set_devstate()
213 ctl_mask = ((1 << ctl->nbits) - 1) << ctl_shift; in dscr_set_devstate()
217 ctl_val = ctl->enable << ctl_shift; in dscr_set_devstate()
220 if (ctl->enable_only) in dscr_set_devstate()
222 ctl_val = ctl->disable << ctl_shift; in dscr_set_devstate()
230 val = soc_readl(dscr.base + ctl->reg); in dscr_set_devstate()
234 dscr_write(ctl->reg, val); in dscr_set_devstate()
499 dscr.devstate_info[j].ctl = r; in dscr_parse_devstate_ctl_regs()