Home | History | Annotate | Download | only in boot

Lines Matching refs:drv_mask

58 static int  __wdcwait_reset(struct wdc_channel *chp, int drv_mask);
64 __wdcwait_reset(struct wdc_channel *chp, int drv_mask)
78 if ((drv_mask & 0x01) == 0) {
80 if ((drv_mask & 0x02) != 0 && (st1 & WDCS_BSY) == 0) {
84 } else if ((drv_mask & 0x02) == 0) {
86 if ((drv_mask & 0x01) != 0 && (st0 & WDCS_BSY) == 0) {
100 /* Reset timed out. Maybe it's because drv_mask was not right */
102 drv_mask &= ~0x01;
104 drv_mask &= ~0x02;
107 return drv_mask;