Lines Matching defs:pw
52 static struct pmic_wrap_setting pw = {
97 memcpy(pw.addr, pwrap_cmd_default, sizeof(pwrap_cmd_default));
108 if (pw.phase == phase) {
112 if (pw.addr[0].cmd_addr == 0UL) {
116 pw.phase = phase;
119 for (idx = 0U; idx < pw.set[phase].nr_idx; idx++) {
120 addr = pw.set[phase]._[idx].cmd_addr << SPM_DATA_SHIFT;
121 data = pw.set[phase]._[idx].cmd_wdata;
122 mmio_write_32(pw.addr[idx].cmd_addr, addr | data);
135 if (idx >= pw.set[phase].nr_idx) {
139 pw.set[phase]._[idx].cmd_wdata = cmd_wdata;
142 if (pw.phase == phase) {
143 addr = pw.set[phase]._[idx].cmd_addr << SPM_DATA_SHIFT;
144 mmio_write_32(pw.addr[idx].cmd_addr, addr | cmd_wdata);
154 if (idx >= pw.set[phase].nr_idx) {
158 return pw.set[phase]._[idx].cmd_wdata;