Home
last modified time | relevance | path

Searched refs:machinfo (Results 1 – 10 of 10) sorted by relevance

/arch/arm/mach-pxa/
Dsharpsl_pm.c150 pxa_gpio_mode(sharpsl_pm.machinfo->gpio_acin | GPIO_IN); in sharpsl_pm_pxa_init()
151 pxa_gpio_mode(sharpsl_pm.machinfo->gpio_batfull | GPIO_IN); in sharpsl_pm_pxa_init()
152 pxa_gpio_mode(sharpsl_pm.machinfo->gpio_batlock | GPIO_IN); in sharpsl_pm_pxa_init()
155 …if (request_irq(IRQ_GPIO(sharpsl_pm.machinfo->gpio_acin), sharpsl_ac_isr, IRQF_DISABLED, "AC Input… in sharpsl_pm_pxa_init()
156 dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", IRQ_GPIO(sharpsl_pm.machinfo->gpio_acin)); in sharpsl_pm_pxa_init()
158 else set_irq_type(IRQ_GPIO(sharpsl_pm.machinfo->gpio_acin),IRQ_TYPE_EDGE_BOTH); in sharpsl_pm_pxa_init()
160 …if (request_irq(IRQ_GPIO(sharpsl_pm.machinfo->gpio_batlock), sharpsl_fatal_isr, IRQF_DISABLED, "Ba… in sharpsl_pm_pxa_init()
161 dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", IRQ_GPIO(sharpsl_pm.machinfo->gpio_batlock)); in sharpsl_pm_pxa_init()
163 else set_irq_type(IRQ_GPIO(sharpsl_pm.machinfo->gpio_batlock),IRQ_TYPE_EDGE_FALLING); in sharpsl_pm_pxa_init()
165 if (sharpsl_pm.machinfo->gpio_fatal) { in sharpsl_pm_pxa_init()
[all …]
Dspitz_pm.c83 spitz_last_ac_status = sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN); in spitz_presuspend()
126 int acin = sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN); in spitz_should_wakeup()
137 sharpsl_pm.machinfo->charge(0); in spitz_should_wakeup()
169 return READ_GPIO_BIT(sharpsl_pm.machinfo->gpio_batlock); in spitzpm_read_devdata()
171 return READ_GPIO_BIT(sharpsl_pm.machinfo->gpio_batfull); in spitzpm_read_devdata()
173 return READ_GPIO_BIT(sharpsl_pm.machinfo->gpio_fatal); in spitzpm_read_devdata()
Dcorgi_pm.c138 if (sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN)) { in corgi_should_wakeup()
146 sharpsl_pm.machinfo->charge(0); in corgi_should_wakeup()
178 return READ_GPIO_BIT(sharpsl_pm.machinfo->gpio_batlock); in corgipm_read_devdata()
180 return READ_GPIO_BIT(sharpsl_pm.machinfo->gpio_batfull); in corgipm_read_devdata()
182 return READ_GPIO_BIT(sharpsl_pm.machinfo->gpio_fatal); in corgipm_read_devdata()
Dsharpsl.h25 void corgi_ssp_set_machinfo(struct corgissp_machinfo *machinfo);
Dcorgi_ssp.c203 void __init corgi_ssp_set_machinfo(struct corgissp_machinfo *machinfo) in corgi_ssp_set_machinfo() argument
205 ssp_machinfo = machinfo; in corgi_ssp_set_machinfo()
/arch/arm/common/
Dsharpsl_pm.c81 int i = sharpsl_pm.machinfo->bat_levels - 1; in get_percentage()
82 …int bl_status = sharpsl_pm.machinfo->backlight_get_status ? sharpsl_pm.machinfo->backlight_get_sta… in get_percentage()
86 …thresh = bl_status ? sharpsl_pm.machinfo->bat_levels_acin_bl : sharpsl_pm.machinfo->bat_levels_aci… in get_percentage()
88 …thresh = bl_status ? sharpsl_pm.machinfo->bat_levels_noac_bl : sharpsl_pm.machinfo->bat_levels_noa… in get_percentage()
101 high_thresh = sharpsl_pm.machinfo->status_high_acin; in get_apm_status()
102 low_thresh = sharpsl_pm.machinfo->status_low_acin; in get_apm_status()
104 high_thresh = sharpsl_pm.machinfo->status_high_noac; in get_apm_status()
105 low_thresh = sharpsl_pm.machinfo->status_low_noac; in get_apm_status()
126 if (!sharpsl_pm.machinfo) in sharpsl_battery_thread()
129 …sharpsl_pm.battstat.ac_status = (sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN) ? APM_AC_O… in sharpsl_battery_thread()
[all …]
/arch/arm/include/asm/hardware/
Dsharpsl_pm.h90 struct sharpsl_charger_machinfo *machinfo; member
/arch/arm/kernel/
Dhead-nommu.S47 bl __lookup_machine_type @ r5=machinfo
Dhead.S85 bl __lookup_machine_type @ r5=machinfo
/arch/arm/mach-sa1100/
Dcollie_pm.c260 sharpsl_pm.machinfo = &collie_pm_machinfo; in collie_pm_ucb_add()