Lines Matching defs:pw
55 static struct pmic_wrap_setting pw = {
112 memcpy(pw.addr, pwrap_cmd_default, sizeof(pwrap_cmd_default));
122 if (pw.phase == phase)
125 if (pw.addr[0].cmd_addr == 0)
128 pw.phase = phase;
132 for (idx = 0; idx < pw.set[phase].nr_idx; idx++) {
133 addr = pw.set[phase]._[idx].cmd_addr << SPM_DATA_SHIFT;
134 data = pw.set[phase]._[idx].cmd_wdata;
135 mmio_write_32(pw.addr[idx].cmd_addr, addr | data);
147 if (idx >= pw.set[phase].nr_idx)
150 pw.set[phase]._[idx].cmd_wdata = cmd_wdata;
154 if (pw.phase == phase) {
155 addr = pw.set[phase]._[idx].cmd_addr << SPM_DATA_SHIFT;
156 mmio_write_32(pw.addr[idx].cmd_addr, addr | cmd_wdata);
165 if (idx >= pw.set[phase].nr_idx)
168 return pw.set[phase]._[idx].cmd_wdata;