Lines Matching defs:mask
27 * @mask: bitfield mask
29 u32 hw_read_otgsc(struct ci_hdrc *ci, u32 mask)
32 u32 val = hw_read(ci, OP_OTGSC, mask);
74 return val & mask;
80 * @mask: bitfield mask
83 void hw_write_otgsc(struct ci_hdrc *ci, u32 mask, u32 data)
89 if (data & mask & OTGSC_BSVIS)
93 if (data & mask & OTGSC_BSVIE) {
96 } else if (mask & OTGSC_BSVIE) {
103 if (data & mask & OTGSC_IDIS)
107 if (data & mask & OTGSC_IDIE) {
110 } else if (mask & OTGSC_IDIE) {
115 hw_write(ci, OP_OTGSC, mask | OTGSC_INT_STATUS_BITS, data);
153 u32 mask = OTGSC_BSV;
155 while (hw_read_otgsc(ci, mask)) {
158 mask);