sharpsl_pm         59 arch/arm/mach-pxa/corgi_pm.c 		if (machine_is_corgi() && (sharpsl_pm.flags & SHARPSL_SUSPENDED)) {
sharpsl_pm         93 arch/arm/mach-pxa/corgi_pm.c 	dev_dbg(sharpsl_pm.dev, "PEDR = %x, GPIO_AC_IN = %d, "
sharpsl_pm        101 arch/arm/mach-pxa/corgi_pm.c 		if (sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN)) {
sharpsl_pm        103 arch/arm/mach-pxa/corgi_pm.c 			dev_dbg(sharpsl_pm.dev, "ac insert\n");
sharpsl_pm        104 arch/arm/mach-pxa/corgi_pm.c 			sharpsl_pm.flags |= SHARPSL_DO_OFFLINE_CHRG;
sharpsl_pm        107 arch/arm/mach-pxa/corgi_pm.c 			dev_dbg(sharpsl_pm.dev, "ac remove\n");
sharpsl_pm        109 arch/arm/mach-pxa/corgi_pm.c 			sharpsl_pm.machinfo->charge(0);
sharpsl_pm        110 arch/arm/mach-pxa/corgi_pm.c 			sharpsl_pm.charge_mode = CHRG_OFF;
sharpsl_pm        115 arch/arm/mach-pxa/corgi_pm.c 		dev_dbg(sharpsl_pm.dev, "Charge full interrupt\n");
sharpsl_pm        126 arch/arm/mach-pxa/corgi_pm.c 	dev_dbg(sharpsl_pm.dev, "is_resume: %x\n",is_resume);
sharpsl_pm        143 arch/arm/mach-pxa/corgi_pm.c 		return gpio_get_value(sharpsl_pm.machinfo->gpio_batlock);
sharpsl_pm        145 arch/arm/mach-pxa/corgi_pm.c 		return gpio_get_value(sharpsl_pm.machinfo->gpio_batfull);
sharpsl_pm        147 arch/arm/mach-pxa/corgi_pm.c 		return gpio_get_value(sharpsl_pm.machinfo->gpio_fatal);
sharpsl_pm         66 arch/arm/mach-pxa/sharpsl_pm.c struct sharpsl_pm_status sharpsl_pm;
sharpsl_pm        185 arch/arm/mach-pxa/sharpsl_pm.c 	int i = sharpsl_pm.machinfo->bat_levels - 1;
sharpsl_pm        186 arch/arm/mach-pxa/sharpsl_pm.c 	int bl_status = sharpsl_pm.machinfo->backlight_get_status ? sharpsl_pm.machinfo->backlight_get_status() : 0;
sharpsl_pm        189 arch/arm/mach-pxa/sharpsl_pm.c 	if (sharpsl_pm.charge_mode == CHRG_ON)
sharpsl_pm        190 arch/arm/mach-pxa/sharpsl_pm.c 		thresh = bl_status ? sharpsl_pm.machinfo->bat_levels_acin_bl : sharpsl_pm.machinfo->bat_levels_acin;
sharpsl_pm        192 arch/arm/mach-pxa/sharpsl_pm.c 		thresh = bl_status ? sharpsl_pm.machinfo->bat_levels_noac_bl : sharpsl_pm.machinfo->bat_levels_noac;
sharpsl_pm        204 arch/arm/mach-pxa/sharpsl_pm.c 	if (sharpsl_pm.charge_mode == CHRG_ON) {
sharpsl_pm        205 arch/arm/mach-pxa/sharpsl_pm.c 		high_thresh = sharpsl_pm.machinfo->status_high_acin;
sharpsl_pm        206 arch/arm/mach-pxa/sharpsl_pm.c 		low_thresh = sharpsl_pm.machinfo->status_low_acin;
sharpsl_pm        208 arch/arm/mach-pxa/sharpsl_pm.c 		high_thresh = sharpsl_pm.machinfo->status_high_noac;
sharpsl_pm        209 arch/arm/mach-pxa/sharpsl_pm.c 		low_thresh = sharpsl_pm.machinfo->status_low_noac;
sharpsl_pm        230 arch/arm/mach-pxa/sharpsl_pm.c 	if (!sharpsl_pm.machinfo)
sharpsl_pm        233 arch/arm/mach-pxa/sharpsl_pm.c 	sharpsl_pm.battstat.ac_status = (sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN) ? APM_AC_ONLINE : APM_AC_OFFLINE);
sharpsl_pm        236 arch/arm/mach-pxa/sharpsl_pm.c 	if (!sharpsl_pm.machinfo->batfull_irq && (sharpsl_pm.charge_mode == CHRG_ON)
sharpsl_pm        237 arch/arm/mach-pxa/sharpsl_pm.c 			&& time_after(jiffies, sharpsl_pm.charge_start_time +  SHARPSL_CHARGE_ON_TIME_INTERVAL))
sharpsl_pm        241 arch/arm/mach-pxa/sharpsl_pm.c 		voltage = sharpsl_pm.machinfo->read_devdata(SHARPSL_BATT_VOLT);
sharpsl_pm        246 arch/arm/mach-pxa/sharpsl_pm.c 		voltage = sharpsl_pm.machinfo->bat_levels_noac[0].voltage;
sharpsl_pm        247 arch/arm/mach-pxa/sharpsl_pm.c 		dev_warn(sharpsl_pm.dev, "Warning: Cannot read main battery!\n");
sharpsl_pm        256 arch/arm/mach-pxa/sharpsl_pm.c 	if ((sharpsl_pm.battstat.ac_status == APM_AC_ONLINE)
sharpsl_pm        258 arch/arm/mach-pxa/sharpsl_pm.c 	    || percent <= sharpsl_pm.battstat.mainbat_percent) {
sharpsl_pm        259 arch/arm/mach-pxa/sharpsl_pm.c 		sharpsl_pm.battstat.mainbat_voltage = voltage;
sharpsl_pm        260 arch/arm/mach-pxa/sharpsl_pm.c 		sharpsl_pm.battstat.mainbat_status = apm_status;
sharpsl_pm        261 arch/arm/mach-pxa/sharpsl_pm.c 		sharpsl_pm.battstat.mainbat_percent = percent;
sharpsl_pm        264 arch/arm/mach-pxa/sharpsl_pm.c 	dev_dbg(sharpsl_pm.dev, "Battery: voltage: %d, status: %d, percentage: %d, time: %ld\n", voltage,
sharpsl_pm        265 arch/arm/mach-pxa/sharpsl_pm.c 			sharpsl_pm.battstat.mainbat_status, sharpsl_pm.battstat.mainbat_percent, jiffies);
sharpsl_pm        268 arch/arm/mach-pxa/sharpsl_pm.c 	if ((sharpsl_pm.battstat.ac_status != APM_AC_ONLINE)
sharpsl_pm        269 arch/arm/mach-pxa/sharpsl_pm.c 	     && (sharpsl_pm.battstat.mainbat_status == APM_BATTERY_STATUS_CRITICAL)
sharpsl_pm        270 arch/arm/mach-pxa/sharpsl_pm.c 	     && !(sharpsl_pm.flags & SHARPSL_APM_QUEUED)) {
sharpsl_pm        271 arch/arm/mach-pxa/sharpsl_pm.c 		sharpsl_pm.flags |= SHARPSL_APM_QUEUED;
sharpsl_pm        272 arch/arm/mach-pxa/sharpsl_pm.c 		dev_err(sharpsl_pm.dev, "Fatal Off\n");
sharpsl_pm        282 arch/arm/mach-pxa/sharpsl_pm.c 		dev_err(sharpsl_pm.dev, "Charging Error!\n");
sharpsl_pm        284 arch/arm/mach-pxa/sharpsl_pm.c 		dev_dbg(sharpsl_pm.dev, "Charge LED On\n");
sharpsl_pm        287 arch/arm/mach-pxa/sharpsl_pm.c 		dev_dbg(sharpsl_pm.dev, "Charge LED Off\n");
sharpsl_pm        294 arch/arm/mach-pxa/sharpsl_pm.c 	dev_dbg(sharpsl_pm.dev, "Turning Charger On\n");
sharpsl_pm        296 arch/arm/mach-pxa/sharpsl_pm.c 	sharpsl_pm.full_count = 0;
sharpsl_pm        297 arch/arm/mach-pxa/sharpsl_pm.c 	sharpsl_pm.charge_mode = CHRG_ON;
sharpsl_pm        304 arch/arm/mach-pxa/sharpsl_pm.c 	dev_dbg(sharpsl_pm.dev, "Turning Charger Off\n");
sharpsl_pm        306 arch/arm/mach-pxa/sharpsl_pm.c 	sharpsl_pm.machinfo->charge(0);
sharpsl_pm        308 arch/arm/mach-pxa/sharpsl_pm.c 	sharpsl_pm.charge_mode = CHRG_OFF;
sharpsl_pm        316 arch/arm/mach-pxa/sharpsl_pm.c 	sharpsl_pm.machinfo->charge(0);
sharpsl_pm        317 arch/arm/mach-pxa/sharpsl_pm.c 	sharpsl_pm.charge_mode = CHRG_ERROR;
sharpsl_pm        322 arch/arm/mach-pxa/sharpsl_pm.c 	dev_dbg(sharpsl_pm.dev, "Toggling Charger at time: %lx\n", jiffies);
sharpsl_pm        324 arch/arm/mach-pxa/sharpsl_pm.c 	if (!sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN)) {
sharpsl_pm        333 arch/arm/mach-pxa/sharpsl_pm.c 	sharpsl_pm.machinfo->charge(0);
sharpsl_pm        335 arch/arm/mach-pxa/sharpsl_pm.c 	sharpsl_pm.machinfo->charge(1);
sharpsl_pm        337 arch/arm/mach-pxa/sharpsl_pm.c 	sharpsl_pm.charge_start_time = jiffies;
sharpsl_pm        342 arch/arm/mach-pxa/sharpsl_pm.c 	int acin = sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN);
sharpsl_pm        344 arch/arm/mach-pxa/sharpsl_pm.c 	dev_dbg(sharpsl_pm.dev, "AC Status: %d\n", acin);
sharpsl_pm        347 arch/arm/mach-pxa/sharpsl_pm.c 	if (acin && (sharpsl_pm.charge_mode != CHRG_ON))
sharpsl_pm        349 arch/arm/mach-pxa/sharpsl_pm.c 	else if (sharpsl_pm.charge_mode == CHRG_ON)
sharpsl_pm        360 arch/arm/mach-pxa/sharpsl_pm.c 	mod_timer(&sharpsl_pm.ac_timer, jiffies + msecs_to_jiffies(250));
sharpsl_pm        367 arch/arm/mach-pxa/sharpsl_pm.c 	dev_dbg(sharpsl_pm.dev, "Charge Full at time: %lx\n", jiffies);
sharpsl_pm        369 arch/arm/mach-pxa/sharpsl_pm.c 	sharpsl_pm.full_count++;
sharpsl_pm        371 arch/arm/mach-pxa/sharpsl_pm.c 	if (!sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN)) {
sharpsl_pm        372 arch/arm/mach-pxa/sharpsl_pm.c 		dev_dbg(sharpsl_pm.dev, "Charge Full: AC removed - stop charging!\n");
sharpsl_pm        373 arch/arm/mach-pxa/sharpsl_pm.c 		if (sharpsl_pm.charge_mode == CHRG_ON)
sharpsl_pm        375 arch/arm/mach-pxa/sharpsl_pm.c 	} else if (sharpsl_pm.full_count < 2) {
sharpsl_pm        376 arch/arm/mach-pxa/sharpsl_pm.c 		dev_dbg(sharpsl_pm.dev, "Charge Full: Count too low\n");
sharpsl_pm        378 arch/arm/mach-pxa/sharpsl_pm.c 	} else if (time_after(jiffies, sharpsl_pm.charge_start_time + SHARPSL_CHARGE_FINISH_TIME)) {
sharpsl_pm        379 arch/arm/mach-pxa/sharpsl_pm.c 		dev_dbg(sharpsl_pm.dev, "Charge Full: Interrupt generated too slowly - retry.\n");
sharpsl_pm        383 arch/arm/mach-pxa/sharpsl_pm.c 		sharpsl_pm.charge_mode = CHRG_DONE;
sharpsl_pm        384 arch/arm/mach-pxa/sharpsl_pm.c 		dev_dbg(sharpsl_pm.dev, "Charge Full: Charging Finished\n");
sharpsl_pm        393 arch/arm/mach-pxa/sharpsl_pm.c 	if (sharpsl_pm.flags & SHARPSL_SUSPENDED)
sharpsl_pm        397 arch/arm/mach-pxa/sharpsl_pm.c 	mod_timer(&sharpsl_pm.chrg_full_timer, jiffies + msecs_to_jiffies(500));
sharpsl_pm        406 arch/arm/mach-pxa/sharpsl_pm.c 	if (!sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_LOCK)) {
sharpsl_pm        407 arch/arm/mach-pxa/sharpsl_pm.c 		dev_err(sharpsl_pm.dev, "Battery now Unlocked! Suspending.\n");
sharpsl_pm        411 arch/arm/mach-pxa/sharpsl_pm.c 	if (!sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_FATAL)) {
sharpsl_pm        412 arch/arm/mach-pxa/sharpsl_pm.c 		dev_err(sharpsl_pm.dev, "Fatal Batt Error! Suspending.\n");
sharpsl_pm        416 arch/arm/mach-pxa/sharpsl_pm.c 	if (!(sharpsl_pm.flags & SHARPSL_APM_QUEUED) && is_fatal) {
sharpsl_pm        417 arch/arm/mach-pxa/sharpsl_pm.c 		sharpsl_pm.flags |= SHARPSL_APM_QUEUED;
sharpsl_pm        440 arch/arm/mach-pxa/sharpsl_pm.c 	if (sharpsl_pm.battstat.mainbat_status != APM_BATTERY_STATUS_HIGH) {
sharpsl_pm        490 arch/arm/mach-pxa/sharpsl_pm.c 	dev_dbg(sharpsl_pm.dev, "Average: %d from values: %d, %d, %d, %d, %d\n", sum/3, val[0], val[1], val[2], val[3], val[4]);
sharpsl_pm        502 arch/arm/mach-pxa/sharpsl_pm.c 		sharpsl_pm.machinfo->measure_temp(1);
sharpsl_pm        504 arch/arm/mach-pxa/sharpsl_pm.c 		buff[i] = sharpsl_pm.machinfo->read_devdata(SHARPSL_BATT_TEMP);
sharpsl_pm        505 arch/arm/mach-pxa/sharpsl_pm.c 		sharpsl_pm.machinfo->measure_temp(0);
sharpsl_pm        510 arch/arm/mach-pxa/sharpsl_pm.c 	dev_dbg(sharpsl_pm.dev, "Temperature: %d\n", val);
sharpsl_pm        511 arch/arm/mach-pxa/sharpsl_pm.c 	if (val > sharpsl_pm.machinfo->charge_on_temp) {
sharpsl_pm        525 arch/arm/mach-pxa/sharpsl_pm.c 	sharpsl_pm.machinfo->charge(0);
sharpsl_pm        526 arch/arm/mach-pxa/sharpsl_pm.c 	sharpsl_pm.machinfo->discharge(1);
sharpsl_pm        529 arch/arm/mach-pxa/sharpsl_pm.c 	if (sharpsl_pm.machinfo->discharge1)
sharpsl_pm        530 arch/arm/mach-pxa/sharpsl_pm.c 		sharpsl_pm.machinfo->discharge1(1);
sharpsl_pm        534 arch/arm/mach-pxa/sharpsl_pm.c 		buff[i] = sharpsl_pm.machinfo->read_devdata(SHARPSL_BATT_VOLT);
sharpsl_pm        538 arch/arm/mach-pxa/sharpsl_pm.c 	if (sharpsl_pm.machinfo->discharge1)
sharpsl_pm        539 arch/arm/mach-pxa/sharpsl_pm.c 		sharpsl_pm.machinfo->discharge1(0);
sharpsl_pm        541 arch/arm/mach-pxa/sharpsl_pm.c 	sharpsl_pm.machinfo->discharge(0);
sharpsl_pm        544 arch/arm/mach-pxa/sharpsl_pm.c 	dev_dbg(sharpsl_pm.dev, "Battery Voltage: %d\n", val);
sharpsl_pm        546 arch/arm/mach-pxa/sharpsl_pm.c 	if (val < sharpsl_pm.machinfo->charge_on_volt)
sharpsl_pm        558 arch/arm/mach-pxa/sharpsl_pm.c 		buff[i] = sharpsl_pm.machinfo->read_devdata(SHARPSL_ACIN_VOLT);
sharpsl_pm        563 arch/arm/mach-pxa/sharpsl_pm.c 	dev_dbg(sharpsl_pm.dev, "AC Voltage: %d\n", temp);
sharpsl_pm        565 arch/arm/mach-pxa/sharpsl_pm.c 	if ((temp > sharpsl_pm.machinfo->charge_acin_high) || (temp < sharpsl_pm.machinfo->charge_acin_low)) {
sharpsl_pm        566 arch/arm/mach-pxa/sharpsl_pm.c 		dev_err(sharpsl_pm.dev, "Error: AC check failed: voltage %d.\n", temp);
sharpsl_pm        576 arch/arm/mach-pxa/sharpsl_pm.c 	sharpsl_pm.flags |= SHARPSL_SUSPENDED;
sharpsl_pm        580 arch/arm/mach-pxa/sharpsl_pm.c 	if (sharpsl_pm.charge_mode == CHRG_ON)
sharpsl_pm        581 arch/arm/mach-pxa/sharpsl_pm.c 		sharpsl_pm.flags |= SHARPSL_DO_OFFLINE_CHRG;
sharpsl_pm        583 arch/arm/mach-pxa/sharpsl_pm.c 		sharpsl_pm.flags &= ~SHARPSL_DO_OFFLINE_CHRG;
sharpsl_pm        593 arch/arm/mach-pxa/sharpsl_pm.c 	sharpsl_pm.flags &= ~SHARPSL_APM_QUEUED;
sharpsl_pm        594 arch/arm/mach-pxa/sharpsl_pm.c 	sharpsl_pm.flags &= ~SHARPSL_SUSPENDED;
sharpsl_pm        601 arch/arm/mach-pxa/sharpsl_pm.c 	dev_dbg(sharpsl_pm.dev, "Time is: %08x\n", RCNR);
sharpsl_pm        603 arch/arm/mach-pxa/sharpsl_pm.c 	dev_dbg(sharpsl_pm.dev, "Offline Charge Activate = %d\n", sharpsl_pm.flags & SHARPSL_DO_OFFLINE_CHRG);
sharpsl_pm        606 arch/arm/mach-pxa/sharpsl_pm.c 	if ((sharpsl_pm.flags & SHARPSL_DO_OFFLINE_CHRG) && (sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN))) {
sharpsl_pm        607 arch/arm/mach-pxa/sharpsl_pm.c 		dev_dbg(sharpsl_pm.dev, "Activating Offline Charger...\n");
sharpsl_pm        608 arch/arm/mach-pxa/sharpsl_pm.c 		sharpsl_pm.charge_mode = CHRG_OFF;
sharpsl_pm        609 arch/arm/mach-pxa/sharpsl_pm.c 		sharpsl_pm.flags &= ~SHARPSL_DO_OFFLINE_CHRG;
sharpsl_pm        613 arch/arm/mach-pxa/sharpsl_pm.c 	sharpsl_pm.machinfo->presuspend();
sharpsl_pm        617 arch/arm/mach-pxa/sharpsl_pm.c 	sharpsl_pm.flags &= ~SHARPSL_ALARM_ACTIVE;
sharpsl_pm        618 arch/arm/mach-pxa/sharpsl_pm.c 	if ((sharpsl_pm.charge_mode == CHRG_ON) && ((alarm_enable && ((alarm_time - RCNR) > (SHARPSL_BATCHK_TIME_SUSPEND + 30))) || !alarm_enable)) {
sharpsl_pm        621 arch/arm/mach-pxa/sharpsl_pm.c 		dev_dbg(sharpsl_pm.dev, "Charging alarm at: %08x\n", RTAR);
sharpsl_pm        622 arch/arm/mach-pxa/sharpsl_pm.c 		sharpsl_pm.flags |= SHARPSL_ALARM_ACTIVE;
sharpsl_pm        626 arch/arm/mach-pxa/sharpsl_pm.c 		dev_dbg(sharpsl_pm.dev, "User alarm at: %08x\n", RTAR);
sharpsl_pm        628 arch/arm/mach-pxa/sharpsl_pm.c 		dev_dbg(sharpsl_pm.dev, "No alarms set.\n");
sharpsl_pm        633 arch/arm/mach-pxa/sharpsl_pm.c 	sharpsl_pm.machinfo->postsuspend();
sharpsl_pm        635 arch/arm/mach-pxa/sharpsl_pm.c 	dev_dbg(sharpsl_pm.dev, "Corgi woken up from suspend: %08x\n", PEDR);
sharpsl_pm        640 arch/arm/mach-pxa/sharpsl_pm.c 	if (!sharpsl_pm.machinfo->should_wakeup(!(sharpsl_pm.flags & SHARPSL_ALARM_ACTIVE) && alarm_enable)) {
sharpsl_pm        641 arch/arm/mach-pxa/sharpsl_pm.c 		if (!(sharpsl_pm.flags & SHARPSL_ALARM_ACTIVE)) {
sharpsl_pm        642 arch/arm/mach-pxa/sharpsl_pm.c 			dev_dbg(sharpsl_pm.dev, "No user triggered wakeup events and not charging. Strange. Suspend.\n");
sharpsl_pm        647 arch/arm/mach-pxa/sharpsl_pm.c 			dev_dbg(sharpsl_pm.dev, "Charging. Suspend...\n");
sharpsl_pm        651 arch/arm/mach-pxa/sharpsl_pm.c 		dev_dbg(sharpsl_pm.dev, "User triggered wakeup in offline charger.\n");
sharpsl_pm        654 arch/arm/mach-pxa/sharpsl_pm.c 	if ((!sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_LOCK)) ||
sharpsl_pm        655 arch/arm/mach-pxa/sharpsl_pm.c 	    (!sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_FATAL)))	{
sharpsl_pm        656 arch/arm/mach-pxa/sharpsl_pm.c 		dev_err(sharpsl_pm.dev, "Fatal condition. Suspend.\n");
sharpsl_pm        669 arch/arm/mach-pxa/sharpsl_pm.c 	dev_dbg(sharpsl_pm.dev, "SharpSL suspending for first time.\n");
sharpsl_pm        676 arch/arm/mach-pxa/sharpsl_pm.c 	if (sharpsl_pm.machinfo->earlyresume)
sharpsl_pm        677 arch/arm/mach-pxa/sharpsl_pm.c 		sharpsl_pm.machinfo->earlyresume();
sharpsl_pm        679 arch/arm/mach-pxa/sharpsl_pm.c 	dev_dbg(sharpsl_pm.dev, "SharpSL resuming...\n");
sharpsl_pm        686 arch/arm/mach-pxa/sharpsl_pm.c 	dev_err(sharpsl_pm.dev, "Offline Charger: Error occurred.\n");
sharpsl_pm        687 arch/arm/mach-pxa/sharpsl_pm.c 	sharpsl_pm.machinfo->charge(0);
sharpsl_pm        689 arch/arm/mach-pxa/sharpsl_pm.c 	sharpsl_pm.charge_mode = CHRG_ERROR;
sharpsl_pm        702 arch/arm/mach-pxa/sharpsl_pm.c 	dev_dbg(sharpsl_pm.dev, "Charge Mode: %d\n", sharpsl_pm.charge_mode);
sharpsl_pm        704 arch/arm/mach-pxa/sharpsl_pm.c 	if (sharpsl_pm.charge_mode == CHRG_OFF) {
sharpsl_pm        705 arch/arm/mach-pxa/sharpsl_pm.c 		dev_dbg(sharpsl_pm.dev, "Offline Charger: Step 1\n");
sharpsl_pm        713 arch/arm/mach-pxa/sharpsl_pm.c 		sharpsl_pm.machinfo->charge(0);
sharpsl_pm        715 arch/arm/mach-pxa/sharpsl_pm.c 		sharpsl_pm.machinfo->charge(1);
sharpsl_pm        717 arch/arm/mach-pxa/sharpsl_pm.c 		sharpsl_pm.charge_mode = CHRG_ON;
sharpsl_pm        718 arch/arm/mach-pxa/sharpsl_pm.c 		sharpsl_pm.full_count = 0;
sharpsl_pm        721 arch/arm/mach-pxa/sharpsl_pm.c 	} else if (sharpsl_pm.charge_mode != CHRG_ON) {
sharpsl_pm        725 arch/arm/mach-pxa/sharpsl_pm.c 	if (sharpsl_pm.full_count == 0) {
sharpsl_pm        728 arch/arm/mach-pxa/sharpsl_pm.c 		dev_dbg(sharpsl_pm.dev, "Offline Charger: Step 2\n");
sharpsl_pm        733 arch/arm/mach-pxa/sharpsl_pm.c 		sharpsl_pm.machinfo->charge(0);
sharpsl_pm        735 arch/arm/mach-pxa/sharpsl_pm.c 		sharpsl_pm.machinfo->charge(1);
sharpsl_pm        736 arch/arm/mach-pxa/sharpsl_pm.c 		sharpsl_pm.charge_mode = CHRG_ON;
sharpsl_pm        743 arch/arm/mach-pxa/sharpsl_pm.c 			if (sharpsl_pm.machinfo->charger_wakeup())
sharpsl_pm        748 arch/arm/mach-pxa/sharpsl_pm.c 			if (sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_CHRGFULL)) {
sharpsl_pm        749 arch/arm/mach-pxa/sharpsl_pm.c 				dev_dbg(sharpsl_pm.dev, "Offline Charger: Charge full occurred. Retrying to check\n");
sharpsl_pm        750 arch/arm/mach-pxa/sharpsl_pm.c 				sharpsl_pm.full_count++;
sharpsl_pm        751 arch/arm/mach-pxa/sharpsl_pm.c 				sharpsl_pm.machinfo->charge(0);
sharpsl_pm        753 arch/arm/mach-pxa/sharpsl_pm.c 				sharpsl_pm.machinfo->charge(1);
sharpsl_pm        759 arch/arm/mach-pxa/sharpsl_pm.c 	dev_dbg(sharpsl_pm.dev, "Offline Charger: Step 3\n");
sharpsl_pm        766 arch/arm/mach-pxa/sharpsl_pm.c 		if (sharpsl_pm.machinfo->charger_wakeup())
sharpsl_pm        770 arch/arm/mach-pxa/sharpsl_pm.c 			if (sharpsl_pm.full_count > SHARPSL_CHARGE_RETRY_CNT) {
sharpsl_pm        771 arch/arm/mach-pxa/sharpsl_pm.c 				dev_dbg(sharpsl_pm.dev, "Offline Charger: Not charged sufficiently. Retrying.\n");
sharpsl_pm        772 arch/arm/mach-pxa/sharpsl_pm.c 				sharpsl_pm.full_count = 0;
sharpsl_pm        774 arch/arm/mach-pxa/sharpsl_pm.c 			sharpsl_pm.full_count++;
sharpsl_pm        777 arch/arm/mach-pxa/sharpsl_pm.c 		if (sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_CHRGFULL)) {
sharpsl_pm        778 arch/arm/mach-pxa/sharpsl_pm.c 			dev_dbg(sharpsl_pm.dev, "Offline Charger: Charging complete.\n");
sharpsl_pm        780 arch/arm/mach-pxa/sharpsl_pm.c 			sharpsl_pm.machinfo->charge(0);
sharpsl_pm        781 arch/arm/mach-pxa/sharpsl_pm.c 			sharpsl_pm.charge_mode = CHRG_DONE;
sharpsl_pm        793 arch/arm/mach-pxa/sharpsl_pm.c 	return sprintf(buf, "%d\n", sharpsl_pm.battstat.mainbat_percent);
sharpsl_pm        798 arch/arm/mach-pxa/sharpsl_pm.c 	return sprintf(buf, "%d\n", sharpsl_pm.battstat.mainbat_voltage);
sharpsl_pm        808 arch/arm/mach-pxa/sharpsl_pm.c 	info->ac_line_status = sharpsl_pm.battstat.ac_status;
sharpsl_pm        810 arch/arm/mach-pxa/sharpsl_pm.c 	if (sharpsl_pm.charge_mode == CHRG_ON)
sharpsl_pm        813 arch/arm/mach-pxa/sharpsl_pm.c 		info->battery_status = sharpsl_pm.battstat.mainbat_status;
sharpsl_pm        816 arch/arm/mach-pxa/sharpsl_pm.c 	info->battery_life = sharpsl_pm.battstat.mainbat_percent;
sharpsl_pm        835 arch/arm/mach-pxa/sharpsl_pm.c 	sharpsl_pm.dev = &pdev->dev;
sharpsl_pm        836 arch/arm/mach-pxa/sharpsl_pm.c 	sharpsl_pm.machinfo = pdev->dev.platform_data;
sharpsl_pm        837 arch/arm/mach-pxa/sharpsl_pm.c 	sharpsl_pm.charge_mode = CHRG_OFF;
sharpsl_pm        838 arch/arm/mach-pxa/sharpsl_pm.c 	sharpsl_pm.flags = 0;
sharpsl_pm        840 arch/arm/mach-pxa/sharpsl_pm.c 	timer_setup(&sharpsl_pm.ac_timer, sharpsl_ac_timer, 0);
sharpsl_pm        842 arch/arm/mach-pxa/sharpsl_pm.c 	timer_setup(&sharpsl_pm.chrg_full_timer, sharpsl_chrg_full_timer, 0);
sharpsl_pm        846 arch/arm/mach-pxa/sharpsl_pm.c 	sharpsl_pm.machinfo->init();
sharpsl_pm        848 arch/arm/mach-pxa/sharpsl_pm.c 	gpio_request(sharpsl_pm.machinfo->gpio_acin, "AC IN");
sharpsl_pm        849 arch/arm/mach-pxa/sharpsl_pm.c 	gpio_direction_input(sharpsl_pm.machinfo->gpio_acin);
sharpsl_pm        850 arch/arm/mach-pxa/sharpsl_pm.c 	gpio_request(sharpsl_pm.machinfo->gpio_batfull, "Battery Full");
sharpsl_pm        851 arch/arm/mach-pxa/sharpsl_pm.c 	gpio_direction_input(sharpsl_pm.machinfo->gpio_batfull);
sharpsl_pm        852 arch/arm/mach-pxa/sharpsl_pm.c 	gpio_request(sharpsl_pm.machinfo->gpio_batlock, "Battery Lock");
sharpsl_pm        853 arch/arm/mach-pxa/sharpsl_pm.c 	gpio_direction_input(sharpsl_pm.machinfo->gpio_batlock);
sharpsl_pm        856 arch/arm/mach-pxa/sharpsl_pm.c 	irq = gpio_to_irq(sharpsl_pm.machinfo->gpio_acin);
sharpsl_pm        858 arch/arm/mach-pxa/sharpsl_pm.c 		dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", irq);
sharpsl_pm        861 arch/arm/mach-pxa/sharpsl_pm.c 	irq = gpio_to_irq(sharpsl_pm.machinfo->gpio_batlock);
sharpsl_pm        863 arch/arm/mach-pxa/sharpsl_pm.c 		dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", irq);
sharpsl_pm        866 arch/arm/mach-pxa/sharpsl_pm.c 	if (sharpsl_pm.machinfo->gpio_fatal) {
sharpsl_pm        867 arch/arm/mach-pxa/sharpsl_pm.c 		irq = gpio_to_irq(sharpsl_pm.machinfo->gpio_fatal);
sharpsl_pm        869 arch/arm/mach-pxa/sharpsl_pm.c 			dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", irq);
sharpsl_pm        873 arch/arm/mach-pxa/sharpsl_pm.c 	if (sharpsl_pm.machinfo->batfull_irq) {
sharpsl_pm        875 arch/arm/mach-pxa/sharpsl_pm.c 		irq = gpio_to_irq(sharpsl_pm.machinfo->gpio_batfull);
sharpsl_pm        877 arch/arm/mach-pxa/sharpsl_pm.c 			dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", irq);
sharpsl_pm        892 arch/arm/mach-pxa/sharpsl_pm.c 	mod_timer(&sharpsl_pm.ac_timer, jiffies + msecs_to_jiffies(250));
sharpsl_pm        906 arch/arm/mach-pxa/sharpsl_pm.c 	free_irq(gpio_to_irq(sharpsl_pm.machinfo->gpio_acin), sharpsl_ac_isr);
sharpsl_pm        907 arch/arm/mach-pxa/sharpsl_pm.c 	free_irq(gpio_to_irq(sharpsl_pm.machinfo->gpio_batlock), sharpsl_fatal_isr);
sharpsl_pm        909 arch/arm/mach-pxa/sharpsl_pm.c 	if (sharpsl_pm.machinfo->gpio_fatal)
sharpsl_pm        910 arch/arm/mach-pxa/sharpsl_pm.c 		free_irq(gpio_to_irq(sharpsl_pm.machinfo->gpio_fatal), sharpsl_fatal_isr);
sharpsl_pm        912 arch/arm/mach-pxa/sharpsl_pm.c 	if (sharpsl_pm.machinfo->batfull_irq)
sharpsl_pm        913 arch/arm/mach-pxa/sharpsl_pm.c 		free_irq(gpio_to_irq(sharpsl_pm.machinfo->gpio_batfull), sharpsl_chrg_full_isr);
sharpsl_pm        915 arch/arm/mach-pxa/sharpsl_pm.c 	gpio_free(sharpsl_pm.machinfo->gpio_batlock);
sharpsl_pm        916 arch/arm/mach-pxa/sharpsl_pm.c 	gpio_free(sharpsl_pm.machinfo->gpio_batfull);
sharpsl_pm        917 arch/arm/mach-pxa/sharpsl_pm.c 	gpio_free(sharpsl_pm.machinfo->gpio_acin);
sharpsl_pm        919 arch/arm/mach-pxa/sharpsl_pm.c 	if (sharpsl_pm.machinfo->exit)
sharpsl_pm        920 arch/arm/mach-pxa/sharpsl_pm.c 		sharpsl_pm.machinfo->exit();
sharpsl_pm        922 arch/arm/mach-pxa/sharpsl_pm.c 	del_timer_sync(&sharpsl_pm.chrg_full_timer);
sharpsl_pm        923 arch/arm/mach-pxa/sharpsl_pm.c 	del_timer_sync(&sharpsl_pm.ac_timer);
sharpsl_pm         90 arch/arm/mach-pxa/sharpsl_pm.h extern struct sharpsl_pm_status sharpsl_pm;
sharpsl_pm         60 arch/arm/mach-pxa/spitz_pm.c 		if (sharpsl_pm.flags & SHARPSL_SUSPENDED) {
sharpsl_pm         89 arch/arm/mach-pxa/spitz_pm.c 	spitz_last_ac_status = sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN);
sharpsl_pm        132 arch/arm/mach-pxa/spitz_pm.c 	int acin = sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN);
sharpsl_pm        137 arch/arm/mach-pxa/spitz_pm.c 			sharpsl_pm.flags |= SHARPSL_DO_OFFLINE_CHRG;
sharpsl_pm        138 arch/arm/mach-pxa/spitz_pm.c 			dev_dbg(sharpsl_pm.dev, "AC Inserted\n");
sharpsl_pm        141 arch/arm/mach-pxa/spitz_pm.c 			dev_dbg(sharpsl_pm.dev, "AC Removed\n");
sharpsl_pm        143 arch/arm/mach-pxa/spitz_pm.c 			sharpsl_pm.machinfo->charge(0);
sharpsl_pm        144 arch/arm/mach-pxa/spitz_pm.c 			sharpsl_pm.charge_mode = CHRG_OFF;
sharpsl_pm        160 arch/arm/mach-pxa/spitz_pm.c 	dev_dbg(sharpsl_pm.dev, "is_resume: %x\n", is_resume);
sharpsl_pm        176 arch/arm/mach-pxa/spitz_pm.c 		return gpio_get_value(sharpsl_pm.machinfo->gpio_batlock);
sharpsl_pm        178 arch/arm/mach-pxa/spitz_pm.c 		return gpio_get_value(sharpsl_pm.machinfo->gpio_batfull);
sharpsl_pm        180 arch/arm/mach-pxa/spitz_pm.c 		return gpio_get_value(sharpsl_pm.machinfo->gpio_fatal);