/linux-2.6.39/drivers/power/ |
D | s3c_adc_battery.c | 59 struct s3c_adc_bat *bat = container_of(psy, struct s3c_adc_bat, psy); in s3c_adc_backup_bat_get_property() local 61 if (!bat) { in s3c_adc_backup_bat_get_property() 66 if (bat->volt_value < 0 || in s3c_adc_backup_bat_get_property() 67 jiffies_to_msecs(jiffies - bat->timestamp) > in s3c_adc_backup_bat_get_property() 69 bat->volt_value = s3c_adc_read(bat->client, in s3c_adc_backup_bat_get_property() 70 bat->pdata->backup_volt_channel); in s3c_adc_backup_bat_get_property() 71 bat->volt_value *= bat->pdata->backup_volt_mult; in s3c_adc_backup_bat_get_property() 72 bat->timestamp = jiffies; in s3c_adc_backup_bat_get_property() 77 val->intval = bat->volt_value; in s3c_adc_backup_bat_get_property() 80 val->intval = bat->pdata->backup_volt_min; in s3c_adc_backup_bat_get_property() [all …]
|
D | collie_battery.c | 37 bool (*is_present)(struct collie_bat *bat); 56 static unsigned long collie_read_bat(struct collie_bat *bat) in collie_read_bat() argument 60 if (bat->gpio_bat < 0 || bat->adc_bat < 0) in collie_read_bat() 63 gpio_set_value(bat->gpio_bat, 1); in collie_read_bat() 66 value = ucb1x00_adc_read(ucb, bat->adc_bat, UCB_SYNC); in collie_read_bat() 68 gpio_set_value(bat->gpio_bat, 0); in collie_read_bat() 70 value = value * 1000000 / bat->adc_bat_divider; in collie_read_bat() 75 static unsigned long collie_read_temp(struct collie_bat *bat) in collie_read_temp() argument 78 if (bat->gpio_temp < 0 || bat->adc_temp < 0) in collie_read_temp() 82 gpio_set_value(bat->gpio_temp, 1); in collie_read_temp() [all …]
|
D | tosa_battery.c | 34 bool (*is_present)(struct tosa_bat *bat); 54 static unsigned long tosa_read_bat(struct tosa_bat *bat) in tosa_read_bat() argument 58 if (bat->gpio_bat < 0 || bat->adc_bat < 0) in tosa_read_bat() 62 gpio_set_value(bat->gpio_bat, 1); in tosa_read_bat() 64 value = wm97xx_read_aux_adc(dev_get_drvdata(bat->psy.dev->parent), in tosa_read_bat() 65 bat->adc_bat); in tosa_read_bat() 66 gpio_set_value(bat->gpio_bat, 0); in tosa_read_bat() 69 value = value * 1000000 / bat->adc_bat_divider; in tosa_read_bat() 74 static unsigned long tosa_read_temp(struct tosa_bat *bat) in tosa_read_temp() argument 78 if (bat->gpio_temp < 0 || bat->adc_temp < 0) in tosa_read_temp() [all …]
|
D | pmu_battery.c | 20 struct power_supply bat; member 26 #define to_pmu_battery_dev(x) container_of(x, struct pmu_battery_dev, bat) 166 pbat->bat.name = pbat->name; in pmu_bat_init() 167 pbat->bat.properties = pmu_bat_props; in pmu_bat_init() 168 pbat->bat.num_properties = ARRAY_SIZE(pmu_bat_props); in pmu_bat_init() 169 pbat->bat.get_property = pmu_bat_get_property; in pmu_bat_init() 172 ret = power_supply_register(&bat_pdev->dev, &pbat->bat); in pmu_bat_init() 186 power_supply_unregister(&pbats[i]->bat); in pmu_bat_init() 204 power_supply_unregister(&pbats[i]->bat); in pmu_bat_exit()
|
D | ds2760_battery.c | 56 struct power_supply bat; member 249 if (power_supply_am_i_supplied(&di->bat)) { in ds2760_battery_update_status() 282 power_supply_changed(&di->bat); in ds2760_battery_update_status() 342 bat); 373 if (!power_supply_am_i_supplied(&di->bat)) in ds2760_battery_set_charged_work() 519 di->bat.name = dev_name(&pdev->dev); in ds2760_battery_probe() 520 di->bat.type = POWER_SUPPLY_TYPE_BATTERY; in ds2760_battery_probe() 521 di->bat.properties = ds2760_battery_props; in ds2760_battery_probe() 522 di->bat.num_properties = ARRAY_SIZE(ds2760_battery_props); in ds2760_battery_probe() 523 di->bat.get_property = ds2760_battery_get_property; in ds2760_battery_probe() [all …]
|
D | apm_power.c | 36 struct power_supply *bat; member 48 bp->bat = dev_get_drvdata(dev); in __find_main_battery() 50 if (bp->bat->use_for_apm) { in __find_main_battery() 52 bp->main = bp->bat; in __find_main_battery() 56 if (!PSY_PROP(bp->bat, CHARGE_FULL_DESIGN, &bp->full) || in __find_main_battery() 57 !PSY_PROP(bp->bat, CHARGE_FULL, &bp->full)) { in __find_main_battery() 59 bp->max_charge_bat = bp->bat; in __find_main_battery() 62 } else if (!PSY_PROP(bp->bat, ENERGY_FULL_DESIGN, &bp->full) || in __find_main_battery() 63 !PSY_PROP(bp->bat, ENERGY_FULL, &bp->full)) { in __find_main_battery() 65 bp->max_energy_bat = bp->bat; in __find_main_battery() [all …]
|
D | bq27x00_battery.c | 97 struct power_supply bat; member 284 power_supply_changed(&di->bat); in bq27x00_update() 373 else if (power_supply_am_i_supplied(&di->bat)) in bq27x00_battery_status() 440 struct bq27x00_device_info, bat); 524 di->bat.type = POWER_SUPPLY_TYPE_BATTERY; in bq27x00_powersupply_init() 525 di->bat.properties = bq27x00_battery_props; in bq27x00_powersupply_init() 526 di->bat.num_properties = ARRAY_SIZE(bq27x00_battery_props); in bq27x00_powersupply_init() 527 di->bat.get_property = bq27x00_battery_get_property; in bq27x00_powersupply_init() 528 di->bat.external_power_changed = bq27x00_external_power_changed; in bq27x00_powersupply_init() 533 ret = power_supply_register(di->dev, &di->bat); in bq27x00_powersupply_init() [all …]
|
/linux-2.6.39/arch/powerpc/kvm/ |
D | book3s_emulate.c | 247 void kvmppc_set_bat(struct kvm_vcpu *vcpu, struct kvmppc_bat *bat, bool upper, in kvmppc_set_bat() argument 253 bat->bepi_mask = (~bl << 17); in kvmppc_set_bat() 254 bat->bepi = val & 0xfffe0000; in kvmppc_set_bat() 255 bat->vs = (val & 2) ? 1 : 0; in kvmppc_set_bat() 256 bat->vp = (val & 1) ? 1 : 0; in kvmppc_set_bat() 257 bat->raw = (bat->raw & 0xffffffff00000000ULL) | val; in kvmppc_set_bat() 260 bat->brpn = val & 0xfffe0000; in kvmppc_set_bat() 261 bat->wimg = (val >> 3) & 0xf; in kvmppc_set_bat() 262 bat->pp = val & 3; in kvmppc_set_bat() 263 bat->raw = (bat->raw & 0x00000000ffffffffULL) | ((u64)val << 32); in kvmppc_set_bat() [all …]
|
D | book3s_32_mmu.c | 151 struct kvmppc_bat *bat; in kvmppc_mmu_book3s_32_xlate_bat() local 156 bat = &vcpu_book3s->dbat[i]; in kvmppc_mmu_book3s_32_xlate_bat() 158 bat = &vcpu_book3s->ibat[i]; in kvmppc_mmu_book3s_32_xlate_bat() 161 if (!bat->vp) in kvmppc_mmu_book3s_32_xlate_bat() 164 if (!bat->vs) in kvmppc_mmu_book3s_32_xlate_bat() 171 data ? 'd' : 'i', i, eaddr, bat->bepi, in kvmppc_mmu_book3s_32_xlate_bat() 172 bat->bepi_mask); in kvmppc_mmu_book3s_32_xlate_bat() 174 if ((eaddr & bat->bepi_mask) == bat->bepi) { in kvmppc_mmu_book3s_32_xlate_bat() 181 pte->raddr = bat->brpn | (eaddr & ~bat->bepi_mask); in kvmppc_mmu_book3s_32_xlate_bat() 182 pte->may_read = bat->pp; in kvmppc_mmu_book3s_32_xlate_bat() [all …]
|
/linux-2.6.39/arch/powerpc/mm/ |
D | ppc_mmu_32.c | 120 struct ppc_bat *bat = BATS[index]; in setbat() local 133 bat[1].batu = virt | (bl << 2) | 2; /* Vs=1, Vp=0 */ in setbat() 134 bat[1].batl = BAT_PHYS_ADDR(phys) | wimgxpp; in setbat() 136 bat[1].batu |= 1; /* Vp = 1 */ in setbat() 139 bat[0].batu = bat[0].batl = 0; in setbat() 142 bat[0] = bat[1]; in setbat() 152 bat->batu = virt | wimgxpp | 4; /* Ks=0, Ku=1 */ in setbat() 153 bat->batl = phys | bl | 0x40; /* V=1 */ in setbat()
|
/linux-2.6.39/drivers/acpi/ |
D | sbs.c | 85 struct power_supply bat; member 115 #define to_acpi_battery(x) container_of(x, struct acpi_battery, bat); 792 battery->bat.name = battery->name; in acpi_battery_add() 793 battery->bat.type = POWER_SUPPLY_TYPE_BATTERY; in acpi_battery_add() 795 battery->bat.properties = sbs_charge_battery_props; in acpi_battery_add() 796 battery->bat.num_properties = in acpi_battery_add() 799 battery->bat.properties = sbs_energy_battery_props; in acpi_battery_add() 800 battery->bat.num_properties = in acpi_battery_add() 803 battery->bat.get_property = acpi_sbs_battery_get_property; in acpi_battery_add() 804 result = power_supply_register(&sbs->device->dev, &battery->bat); in acpi_battery_add() [all …]
|
D | battery.c | 104 struct power_supply bat; member 135 #define to_acpi_battery(x) container_of(x, struct acpi_battery, bat); 548 battery->bat.properties = charge_battery_props; in sysfs_add_battery() 549 battery->bat.num_properties = in sysfs_add_battery() 552 battery->bat.properties = energy_battery_props; in sysfs_add_battery() 553 battery->bat.num_properties = in sysfs_add_battery() 557 battery->bat.name = acpi_device_bid(battery->device); in sysfs_add_battery() 558 battery->bat.type = POWER_SUPPLY_TYPE_BATTERY; in sysfs_add_battery() 559 battery->bat.get_property = acpi_battery_get_property; in sysfs_add_battery() 561 result = power_supply_register(&battery->device->dev, &battery->bat); in sysfs_add_battery() [all …]
|
/linux-2.6.39/arch/x86/kernel/ |
D | apm_32.c | 1030 static int apm_get_power_status(u_short *status, u_short *bat, u_short *life) in apm_get_power_status() argument 1043 *bat = call.ecx; in apm_get_power_status() 1054 u_short *bat, u_short *life, u_short *nbat) 1067 return apm_get_power_status(status, bat, life); 1074 *bat = ecx;
|
/linux-2.6.39/arch/powerpc/include/asm/ |
D | kvm_book3s.h | 130 extern void kvmppc_set_bat(struct kvm_vcpu *vcpu, struct kvmppc_bat *bat,
|
/linux-2.6.39/Documentation/sound/oss/ |
D | mwave | 70 Then change autoexec.bat. Basically everything in there originally should be
|
/linux-2.6.39/Documentation/networking/ |
D | batman-adv.txt | 188 enabled when compiling the batman-adv module. When building bat-
|
/linux-2.6.39/Documentation/s390/ |
D | Debugging390.txt | 1154 if you have one ( this is roughly equivalent to autoexec.bat in DOS ). 1256 on startup of CMS ( like autoexec.bat ), keeping on a DOS analogy session
|