Lines Matching refs:chgmod
41 u8 mbcs2, chgmod; in pcf50633_mbc_usb_curlim_set() local
84 chgmod = (mbcs2 & PCF50633_MBCS2_MBC_MASK); in pcf50633_mbc_usb_curlim_set()
90 if (chgmod != PCF50633_MBCS2_MBC_BAT_FULL) in pcf50633_mbc_usb_curlim_set()
110 u8 chgmod; in pcf50633_mbc_get_status() local
115 chgmod = pcf50633_reg_read(mbc->pcf, PCF50633_REG_MBCS2) in pcf50633_mbc_get_status()
120 if (chgmod == PCF50633_MBCS2_MBC_USB_PRE || in pcf50633_mbc_get_status()
121 chgmod == PCF50633_MBCS2_MBC_USB_PRE_WAIT || in pcf50633_mbc_get_status()
122 chgmod == PCF50633_MBCS2_MBC_USB_FAST || in pcf50633_mbc_get_status()
123 chgmod == PCF50633_MBCS2_MBC_USB_FAST_WAIT) in pcf50633_mbc_get_status()
127 if (chgmod == PCF50633_MBCS2_MBC_ADP_PRE || in pcf50633_mbc_get_status()
128 chgmod == PCF50633_MBCS2_MBC_ADP_PRE_WAIT || in pcf50633_mbc_get_status()
129 chgmod == PCF50633_MBCS2_MBC_ADP_FAST || in pcf50633_mbc_get_status()
130 chgmod == PCF50633_MBCS2_MBC_ADP_FAST_WAIT) in pcf50633_mbc_get_status()
154 u8 chgmod = (mbcs2 & PCF50633_MBCS2_MBC_MASK); in show_chgmode() local
156 return sysfs_emit(buf, "%d\n", chgmod); in show_chgmode()