sbs 60 drivers/acpi/sbs.c struct acpi_sbs *sbs; sbs 138 drivers/acpi/sbs.c struct acpi_sbs *sbs = to_acpi_sbs(psy); sbs 141 drivers/acpi/sbs.c val->intval = sbs->charger_present; sbs 330 drivers/acpi/sbs.c static int acpi_manager_get_info(struct acpi_sbs *sbs) sbs 335 drivers/acpi/sbs.c result = acpi_smbus_read(sbs->hc, SMBUS_READ_WORD, ACPI_SBS_MANAGER, sbs 338 drivers/acpi/sbs.c sbs->batteries_supported = battery_system_info & 0x000f; sbs 347 drivers/acpi/sbs.c result = acpi_smbus_read(battery->sbs->hc, sbs 368 drivers/acpi/sbs.c result = acpi_smbus_read(battery->sbs->hc, sbs 384 drivers/acpi/sbs.c return acpi_smbus_read(battery->sbs->hc, SMBUS_READ_WORD, sbs 391 drivers/acpi/sbs.c struct acpi_sbs *sbs = battery->sbs; sbs 397 drivers/acpi/sbs.c if (sbs->manager_present) { sbs 398 drivers/acpi/sbs.c ret = acpi_smbus_read(sbs->hc, SMBUS_READ_WORD, ACPI_SBS_MANAGER, sbs 405 drivers/acpi/sbs.c ret = acpi_smbus_write(sbs->hc, SMBUS_WRITE_WORD, sbs 412 drivers/acpi/sbs.c ret = acpi_smbus_write(sbs->hc, SMBUS_WRITE_WORD, ACPI_SBS_BATTERY, sbs 418 drivers/acpi/sbs.c static int acpi_ac_get_present(struct acpi_sbs *sbs) sbs 423 drivers/acpi/sbs.c result = acpi_smbus_read(sbs->hc, SMBUS_READ_WORD, ACPI_SBS_CHARGER, sbs 440 drivers/acpi/sbs.c sbs->charger_present = (status >> 15) & 0x1; sbs 482 drivers/acpi/sbs.c if (battery->sbs->manager_present) { sbs 483 drivers/acpi/sbs.c result = acpi_smbus_read(battery->sbs->hc, SMBUS_READ_WORD, sbs 489 drivers/acpi/sbs.c acpi_smbus_write(battery->sbs->hc, SMBUS_WRITE_WORD, sbs 512 drivers/acpi/sbs.c static int acpi_battery_add(struct acpi_sbs *sbs, int id) sbs 514 drivers/acpi/sbs.c struct acpi_battery *battery = &sbs->battery[id]; sbs 519 drivers/acpi/sbs.c battery->sbs = sbs; sbs 537 drivers/acpi/sbs.c battery->bat = power_supply_register(&sbs->device->dev, sbs 551 drivers/acpi/sbs.c ACPI_SBS_DEVICE_NAME, acpi_device_bid(sbs->device), sbs 556 drivers/acpi/sbs.c static void acpi_battery_remove(struct acpi_sbs *sbs, int id) sbs 558 drivers/acpi/sbs.c struct acpi_battery *battery = &sbs->battery[id]; sbs 567 drivers/acpi/sbs.c static int acpi_charger_add(struct acpi_sbs *sbs) sbs 570 drivers/acpi/sbs.c struct power_supply_config psy_cfg = { .drv_data = sbs, }; sbs 572 drivers/acpi/sbs.c result = acpi_ac_get_present(sbs); sbs 576 drivers/acpi/sbs.c sbs->charger_exists = 1; sbs 577 drivers/acpi/sbs.c sbs->charger = power_supply_register(&sbs->device->dev, sbs 579 drivers/acpi/sbs.c if (IS_ERR(sbs->charger)) { sbs 580 drivers/acpi/sbs.c result = PTR_ERR(sbs->charger); sbs 581 drivers/acpi/sbs.c sbs->charger = NULL; sbs 584 drivers/acpi/sbs.c ACPI_SBS_DEVICE_NAME, acpi_device_bid(sbs->device), sbs 585 drivers/acpi/sbs.c ACPI_AC_DIR_NAME, sbs->charger_present ? "on-line" : "off-line"); sbs 590 drivers/acpi/sbs.c static void acpi_charger_remove(struct acpi_sbs *sbs) sbs 592 drivers/acpi/sbs.c if (sbs->charger) sbs 593 drivers/acpi/sbs.c power_supply_unregister(sbs->charger); sbs 599 drivers/acpi/sbs.c struct acpi_sbs *sbs = context; sbs 601 drivers/acpi/sbs.c u8 saved_charger_state = sbs->charger_present; sbs 604 drivers/acpi/sbs.c if (sbs->charger_exists) { sbs 605 drivers/acpi/sbs.c acpi_ac_get_present(sbs); sbs 606 drivers/acpi/sbs.c if (sbs->charger_present != saved_charger_state) sbs 607 drivers/acpi/sbs.c kobject_uevent(&sbs->charger->dev.kobj, KOBJ_CHANGE); sbs 610 drivers/acpi/sbs.c if (sbs->manager_present) { sbs 612 drivers/acpi/sbs.c if (!(sbs->batteries_supported & (1 << id))) sbs 614 drivers/acpi/sbs.c bat = &sbs->battery[id]; sbs 626 drivers/acpi/sbs.c struct acpi_sbs *sbs; sbs 630 drivers/acpi/sbs.c sbs = kzalloc(sizeof(struct acpi_sbs), GFP_KERNEL); sbs 631 drivers/acpi/sbs.c if (!sbs) { sbs 636 drivers/acpi/sbs.c mutex_init(&sbs->lock); sbs 638 drivers/acpi/sbs.c sbs->hc = acpi_driver_data(device->parent); sbs 639 drivers/acpi/sbs.c sbs->device = device; sbs 642 drivers/acpi/sbs.c device->driver_data = sbs; sbs 644 drivers/acpi/sbs.c result = acpi_charger_add(sbs); sbs 651 drivers/acpi/sbs.c result = acpi_manager_get_info(sbs); sbs 653 drivers/acpi/sbs.c sbs->manager_present = 1; sbs 655 drivers/acpi/sbs.c if ((sbs->batteries_supported & (1 << id))) sbs 656 drivers/acpi/sbs.c acpi_battery_add(sbs, id); sbs 660 drivers/acpi/sbs.c if (!sbs->manager_present) sbs 661 drivers/acpi/sbs.c acpi_battery_add(sbs, 0); sbs 663 drivers/acpi/sbs.c acpi_smbus_register_callback(sbs->hc, acpi_sbs_callback, sbs); sbs 672 drivers/acpi/sbs.c struct acpi_sbs *sbs; sbs 677 drivers/acpi/sbs.c sbs = acpi_driver_data(device); sbs 678 drivers/acpi/sbs.c if (!sbs) sbs 680 drivers/acpi/sbs.c mutex_lock(&sbs->lock); sbs 681 drivers/acpi/sbs.c acpi_smbus_unregister_callback(sbs->hc); sbs 683 drivers/acpi/sbs.c acpi_battery_remove(sbs, id); sbs 684 drivers/acpi/sbs.c acpi_charger_remove(sbs); sbs 685 drivers/acpi/sbs.c mutex_unlock(&sbs->lock); sbs 686 drivers/acpi/sbs.c mutex_destroy(&sbs->lock); sbs 687 drivers/acpi/sbs.c kfree(sbs); sbs 694 drivers/acpi/sbs.c struct acpi_sbs *sbs; sbs 697 drivers/acpi/sbs.c sbs = to_acpi_device(dev)->driver_data; sbs 698 drivers/acpi/sbs.c acpi_sbs_callback(sbs); sbs 338 drivers/media/tuners/tda827x.c u8 sbs; sbs 343 drivers/media/tuners/tda827x.c { .lomax = 56875000, .svco = 3, .spd = 4, .scr = 0, .sbs = 0, .gc3 = 1}, sbs 344 drivers/media/tuners/tda827x.c { .lomax = 67250000, .svco = 0, .spd = 3, .scr = 0, .sbs = 0, .gc3 = 1}, sbs 345 drivers/media/tuners/tda827x.c { .lomax = 81250000, .svco = 1, .spd = 3, .scr = 0, .sbs = 0, .gc3 = 1}, sbs 346 drivers/media/tuners/tda827x.c { .lomax = 97500000, .svco = 2, .spd = 3, .scr = 0, .sbs = 0, .gc3 = 1}, sbs 347 drivers/media/tuners/tda827x.c { .lomax = 113750000, .svco = 3, .spd = 3, .scr = 0, .sbs = 1, .gc3 = 1}, sbs 348 drivers/media/tuners/tda827x.c { .lomax = 134500000, .svco = 0, .spd = 2, .scr = 0, .sbs = 1, .gc3 = 1}, sbs 349 drivers/media/tuners/tda827x.c { .lomax = 154000000, .svco = 1, .spd = 2, .scr = 0, .sbs = 1, .gc3 = 1}, sbs 350 drivers/media/tuners/tda827x.c { .lomax = 162500000, .svco = 1, .spd = 2, .scr = 0, .sbs = 1, .gc3 = 1}, sbs 351 drivers/media/tuners/tda827x.c { .lomax = 183000000, .svco = 2, .spd = 2, .scr = 0, .sbs = 1, .gc3 = 1}, sbs 352 drivers/media/tuners/tda827x.c { .lomax = 195000000, .svco = 2, .spd = 2, .scr = 0, .sbs = 2, .gc3 = 1}, sbs 353 drivers/media/tuners/tda827x.c { .lomax = 227500000, .svco = 3, .spd = 2, .scr = 0, .sbs = 2, .gc3 = 1}, sbs 354 drivers/media/tuners/tda827x.c { .lomax = 269000000, .svco = 0, .spd = 1, .scr = 0, .sbs = 2, .gc3 = 1}, sbs 355 drivers/media/tuners/tda827x.c { .lomax = 290000000, .svco = 1, .spd = 1, .scr = 0, .sbs = 2, .gc3 = 1}, sbs 356 drivers/media/tuners/tda827x.c { .lomax = 325000000, .svco = 1, .spd = 1, .scr = 0, .sbs = 3, .gc3 = 1}, sbs 357 drivers/media/tuners/tda827x.c { .lomax = 390000000, .svco = 2, .spd = 1, .scr = 0, .sbs = 3, .gc3 = 1}, sbs 358 drivers/media/tuners/tda827x.c { .lomax = 455000000, .svco = 3, .spd = 1, .scr = 0, .sbs = 3, .gc3 = 1}, sbs 359 drivers/media/tuners/tda827x.c { .lomax = 520000000, .svco = 0, .spd = 0, .scr = 0, .sbs = 3, .gc3 = 1}, sbs 360 drivers/media/tuners/tda827x.c { .lomax = 538000000, .svco = 0, .spd = 0, .scr = 1, .sbs = 3, .gc3 = 1}, sbs 361 drivers/media/tuners/tda827x.c { .lomax = 550000000, .svco = 1, .spd = 0, .scr = 0, .sbs = 3, .gc3 = 1}, sbs 362 drivers/media/tuners/tda827x.c { .lomax = 620000000, .svco = 1, .spd = 0, .scr = 0, .sbs = 4, .gc3 = 0}, sbs 363 drivers/media/tuners/tda827x.c { .lomax = 650000000, .svco = 1, .spd = 0, .scr = 1, .sbs = 4, .gc3 = 0}, sbs 364 drivers/media/tuners/tda827x.c { .lomax = 700000000, .svco = 2, .spd = 0, .scr = 0, .sbs = 4, .gc3 = 0}, sbs 365 drivers/media/tuners/tda827x.c { .lomax = 780000000, .svco = 2, .spd = 0, .scr = 1, .sbs = 4, .gc3 = 0}, sbs 366 drivers/media/tuners/tda827x.c { .lomax = 820000000, .svco = 3, .spd = 0, .scr = 0, .sbs = 4, .gc3 = 0}, sbs 367 drivers/media/tuners/tda827x.c { .lomax = 870000000, .svco = 3, .spd = 0, .scr = 1, .sbs = 4, .gc3 = 0}, sbs 368 drivers/media/tuners/tda827x.c { .lomax = 911000000, .svco = 3, .spd = 0, .scr = 2, .sbs = 4, .gc3 = 0}, sbs 369 drivers/media/tuners/tda827x.c { .lomax = 0, .svco = 0, .spd = 0, .scr = 0, .sbs = 0, .gc3 = 0} sbs 373 drivers/media/tuners/tda827x.c { .lomax = 50125000, .svco = 2, .spd = 4, .scr = 2, .sbs = 0, .gc3 = 3}, sbs 374 drivers/media/tuners/tda827x.c { .lomax = 58500000, .svco = 3, .spd = 4, .scr = 2, .sbs = 0, .gc3 = 3}, sbs 375 drivers/media/tuners/tda827x.c { .lomax = 69250000, .svco = 0, .spd = 3, .scr = 2, .sbs = 0, .gc3 = 3}, sbs 376 drivers/media/tuners/tda827x.c { .lomax = 83625000, .svco = 1, .spd = 3, .scr = 2, .sbs = 0, .gc3 = 3}, sbs 377 drivers/media/tuners/tda827x.c { .lomax = 97500000, .svco = 2, .spd = 3, .scr = 2, .sbs = 0, .gc3 = 3}, sbs 378 drivers/media/tuners/tda827x.c { .lomax = 100250000, .svco = 2, .spd = 3, .scr = 2, .sbs = 1, .gc3 = 1}, sbs 379 drivers/media/tuners/tda827x.c { .lomax = 117000000, .svco = 3, .spd = 3, .scr = 2, .sbs = 1, .gc3 = 1}, sbs 380 drivers/media/tuners/tda827x.c { .lomax = 138500000, .svco = 0, .spd = 2, .scr = 2, .sbs = 1, .gc3 = 1}, sbs 381 drivers/media/tuners/tda827x.c { .lomax = 167250000, .svco = 1, .spd = 2, .scr = 2, .sbs = 1, .gc3 = 1}, sbs 382 drivers/media/tuners/tda827x.c { .lomax = 187000000, .svco = 2, .spd = 2, .scr = 2, .sbs = 1, .gc3 = 1}, sbs 383 drivers/media/tuners/tda827x.c { .lomax = 200500000, .svco = 2, .spd = 2, .scr = 2, .sbs = 2, .gc3 = 1}, sbs 384 drivers/media/tuners/tda827x.c { .lomax = 234000000, .svco = 3, .spd = 2, .scr = 2, .sbs = 2, .gc3 = 3}, sbs 385 drivers/media/tuners/tda827x.c { .lomax = 277000000, .svco = 0, .spd = 1, .scr = 2, .sbs = 2, .gc3 = 3}, sbs 386 drivers/media/tuners/tda827x.c { .lomax = 325000000, .svco = 1, .spd = 1, .scr = 2, .sbs = 2, .gc3 = 1}, sbs 387 drivers/media/tuners/tda827x.c { .lomax = 334500000, .svco = 1, .spd = 1, .scr = 2, .sbs = 3, .gc3 = 3}, sbs 388 drivers/media/tuners/tda827x.c { .lomax = 401000000, .svco = 2, .spd = 1, .scr = 2, .sbs = 3, .gc3 = 3}, sbs 389 drivers/media/tuners/tda827x.c { .lomax = 468000000, .svco = 3, .spd = 1, .scr = 2, .sbs = 3, .gc3 = 1}, sbs 390 drivers/media/tuners/tda827x.c { .lomax = 535000000, .svco = 0, .spd = 0, .scr = 1, .sbs = 3, .gc3 = 1}, sbs 391 drivers/media/tuners/tda827x.c { .lomax = 554000000, .svco = 0, .spd = 0, .scr = 2, .sbs = 3, .gc3 = 1}, sbs 392 drivers/media/tuners/tda827x.c { .lomax = 638000000, .svco = 1, .spd = 0, .scr = 1, .sbs = 4, .gc3 = 1}, sbs 393 drivers/media/tuners/tda827x.c { .lomax = 669000000, .svco = 1, .spd = 0, .scr = 2, .sbs = 4, .gc3 = 1}, sbs 394 drivers/media/tuners/tda827x.c { .lomax = 720000000, .svco = 2, .spd = 0, .scr = 1, .sbs = 4, .gc3 = 1}, sbs 395 drivers/media/tuners/tda827x.c { .lomax = 802000000, .svco = 2, .spd = 0, .scr = 2, .sbs = 4, .gc3 = 1}, sbs 396 drivers/media/tuners/tda827x.c { .lomax = 835000000, .svco = 3, .spd = 0, .scr = 1, .sbs = 4, .gc3 = 1}, sbs 397 drivers/media/tuners/tda827x.c { .lomax = 885000000, .svco = 3, .spd = 0, .scr = 1, .sbs = 4, .gc3 = 1}, sbs 398 drivers/media/tuners/tda827x.c { .lomax = 911000000, .svco = 3, .spd = 0, .scr = 2, .sbs = 4, .gc3 = 1}, sbs 399 drivers/media/tuners/tda827x.c { .lomax = 0, .svco = 0, .spd = 0, .scr = 0, .sbs = 0, .gc3 = 0} sbs 403 drivers/media/tuners/tda827x.c { .lomax = 56875000, .svco = 3, .spd = 4, .scr = 0, .sbs = 0, .gc3 = 3}, sbs 404 drivers/media/tuners/tda827x.c { .lomax = 67250000, .svco = 0, .spd = 3, .scr = 0, .sbs = 0, .gc3 = 3}, sbs 405 drivers/media/tuners/tda827x.c { .lomax = 81250000, .svco = 1, .spd = 3, .scr = 0, .sbs = 0, .gc3 = 3}, sbs 406 drivers/media/tuners/tda827x.c { .lomax = 97500000, .svco = 2, .spd = 3, .scr = 0, .sbs = 0, .gc3 = 3}, sbs 407 drivers/media/tuners/tda827x.c { .lomax = 113750000, .svco = 3, .spd = 3, .scr = 0, .sbs = 1, .gc3 = 1}, sbs 408 drivers/media/tuners/tda827x.c { .lomax = 134500000, .svco = 0, .spd = 2, .scr = 0, .sbs = 1, .gc3 = 1}, sbs 409 drivers/media/tuners/tda827x.c { .lomax = 154000000, .svco = 1, .spd = 2, .scr = 0, .sbs = 1, .gc3 = 1}, sbs 410 drivers/media/tuners/tda827x.c { .lomax = 162500000, .svco = 1, .spd = 2, .scr = 0, .sbs = 1, .gc3 = 1}, sbs 411 drivers/media/tuners/tda827x.c { .lomax = 183000000, .svco = 2, .spd = 2, .scr = 0, .sbs = 1, .gc3 = 1}, sbs 412 drivers/media/tuners/tda827x.c { .lomax = 195000000, .svco = 2, .spd = 2, .scr = 0, .sbs = 2, .gc3 = 1}, sbs 413 drivers/media/tuners/tda827x.c { .lomax = 227500000, .svco = 3, .spd = 2, .scr = 0, .sbs = 2, .gc3 = 3}, sbs 414 drivers/media/tuners/tda827x.c { .lomax = 269000000, .svco = 0, .spd = 1, .scr = 0, .sbs = 2, .gc3 = 3}, sbs 415 drivers/media/tuners/tda827x.c { .lomax = 325000000, .svco = 1, .spd = 1, .scr = 0, .sbs = 2, .gc3 = 1}, sbs 416 drivers/media/tuners/tda827x.c { .lomax = 390000000, .svco = 2, .spd = 1, .scr = 0, .sbs = 3, .gc3 = 3}, sbs 417 drivers/media/tuners/tda827x.c { .lomax = 455000000, .svco = 3, .spd = 1, .scr = 0, .sbs = 3, .gc3 = 3}, sbs 418 drivers/media/tuners/tda827x.c { .lomax = 520000000, .svco = 0, .spd = 0, .scr = 0, .sbs = 3, .gc3 = 1}, sbs 419 drivers/media/tuners/tda827x.c { .lomax = 538000000, .svco = 0, .spd = 0, .scr = 1, .sbs = 3, .gc3 = 1}, sbs 420 drivers/media/tuners/tda827x.c { .lomax = 554000000, .svco = 1, .spd = 0, .scr = 0, .sbs = 3, .gc3 = 1}, sbs 421 drivers/media/tuners/tda827x.c { .lomax = 620000000, .svco = 1, .spd = 0, .scr = 0, .sbs = 4, .gc3 = 0}, sbs 422 drivers/media/tuners/tda827x.c { .lomax = 650000000, .svco = 1, .spd = 0, .scr = 1, .sbs = 4, .gc3 = 0}, sbs 423 drivers/media/tuners/tda827x.c { .lomax = 700000000, .svco = 2, .spd = 0, .scr = 0, .sbs = 4, .gc3 = 0}, sbs 424 drivers/media/tuners/tda827x.c { .lomax = 780000000, .svco = 2, .spd = 0, .scr = 1, .sbs = 4, .gc3 = 0}, sbs 425 drivers/media/tuners/tda827x.c { .lomax = 820000000, .svco = 3, .spd = 0, .scr = 0, .sbs = 4, .gc3 = 0}, sbs 426 drivers/media/tuners/tda827x.c { .lomax = 870000000, .svco = 3, .spd = 0, .scr = 1, .sbs = 4, .gc3 = 0}, sbs 427 drivers/media/tuners/tda827x.c { .lomax = 911000000, .svco = 3, .spd = 0, .scr = 2, .sbs = 4, .gc3 = 0}, sbs 428 drivers/media/tuners/tda827x.c { .lomax = 0, .svco = 0, .spd = 0, .scr = 0, .sbs = 0, .gc3 = 0} sbs 556 drivers/media/tuners/tda827x.c frequency_map[i].sbs; sbs 685 drivers/media/tuners/tda827x.c tda827xa_analog[i].sbs;