/drivers/input/misc/ |
D | adxl34x.c | 181 #define AC_READ(ac, reg) ((ac)->bops->read((ac)->dev, reg)) argument 182 #define AC_WRITE(ac, reg, val) ((ac)->bops->write((ac)->dev, reg, val)) argument 238 static void adxl34x_get_triple(struct adxl34x *ac, struct axis_triple *axis) in adxl34x_get_triple() argument 242 ac->bops->read_block(ac->dev, DATAX0, DATAZ1 - DATAX0 + 1, buf); in adxl34x_get_triple() 244 mutex_lock(&ac->mutex); in adxl34x_get_triple() 245 ac->saved.x = (s16) le16_to_cpu(buf[0]); in adxl34x_get_triple() 246 axis->x = ac->saved.x; in adxl34x_get_triple() 248 ac->saved.y = (s16) le16_to_cpu(buf[1]); in adxl34x_get_triple() 249 axis->y = ac->saved.y; in adxl34x_get_triple() 251 ac->saved.z = (s16) le16_to_cpu(buf[2]); in adxl34x_get_triple() [all …]
|
D | adxl34x-spi.c | 70 struct adxl34x *ac; in adxl34x_spi_probe() local 78 ac = adxl34x_probe(&spi->dev, spi->irq, in adxl34x_spi_probe() 82 if (IS_ERR(ac)) in adxl34x_spi_probe() 83 return PTR_ERR(ac); in adxl34x_spi_probe() 85 spi_set_drvdata(spi, ac); in adxl34x_spi_probe() 92 struct adxl34x *ac = spi_get_drvdata(spi); in adxl34x_spi_remove() local 94 return adxl34x_remove(ac); in adxl34x_spi_remove() 101 struct adxl34x *ac = spi_get_drvdata(spi); in adxl34x_spi_suspend() local 103 adxl34x_suspend(ac); in adxl34x_spi_suspend() 111 struct adxl34x *ac = spi_get_drvdata(spi); in adxl34x_spi_resume() local [all …]
|
D | adxl34x-i2c.c | 79 struct adxl34x *ac; in adxl34x_i2c_probe() local 89 ac = adxl34x_probe(&client->dev, client->irq, false, in adxl34x_i2c_probe() 93 if (IS_ERR(ac)) in adxl34x_i2c_probe() 94 return PTR_ERR(ac); in adxl34x_i2c_probe() 96 i2c_set_clientdata(client, ac); in adxl34x_i2c_probe() 103 struct adxl34x *ac = i2c_get_clientdata(client); in adxl34x_i2c_remove() local 105 return adxl34x_remove(ac); in adxl34x_i2c_remove() 112 struct adxl34x *ac = i2c_get_clientdata(client); in adxl34x_i2c_suspend() local 114 adxl34x_suspend(ac); in adxl34x_i2c_suspend() 122 struct adxl34x *ac = i2c_get_clientdata(client); in adxl34x_i2c_resume() local [all …]
|
D | adxl34x.h | 23 void adxl34x_suspend(struct adxl34x *ac); 24 void adxl34x_resume(struct adxl34x *ac); 28 int adxl34x_remove(struct adxl34x *ac);
|
/drivers/acpi/ |
D | ac.c | 120 static int acpi_ac_get_state(struct acpi_ac *ac) in acpi_ac_get_state() argument 124 if (!ac) in acpi_ac_get_state() 127 status = acpi_evaluate_integer(ac->device->handle, "_PSR", NULL, in acpi_ac_get_state() 128 &ac->state); in acpi_ac_get_state() 132 ac->state = ACPI_AC_STATUS_UNKNOWN; in acpi_ac_get_state() 146 struct acpi_ac *ac = to_acpi_ac(psy); in get_ac_property() local 148 if (!ac) in get_ac_property() 151 if (acpi_ac_get_state(ac)) in get_ac_property() 156 val->intval = ac->state; in get_ac_property() 177 struct acpi_ac *ac = seq->private; in acpi_ac_seq_show() local [all …]
|
/drivers/power/ |
D | tps65090-charger.c | 46 struct power_supply ac; member 139 struct tps65090_charger, ac); in tps65090_ac_get_property() 193 power_supply_changed(&charger->ac); in tps65090_charger_isr() 262 cdata->ac.name = "tps65090-ac"; in tps65090_charger_probe() 263 cdata->ac.type = POWER_SUPPLY_TYPE_MAINS; in tps65090_charger_probe() 264 cdata->ac.get_property = tps65090_ac_get_property; in tps65090_charger_probe() 265 cdata->ac.properties = tps65090_ac_props; in tps65090_charger_probe() 266 cdata->ac.num_properties = ARRAY_SIZE(tps65090_ac_props); in tps65090_charger_probe() 267 cdata->ac.supplied_to = pdata->supplied_to; in tps65090_charger_probe() 268 cdata->ac.num_supplicants = pdata->num_supplicants; in tps65090_charger_probe() [all …]
|
D | goldfish_battery.c | 35 struct power_supply ac; member 75 struct goldfish_battery_data, ac); in goldfish_ac_get_property() 169 power_supply_changed(&data->ac); in goldfish_battery_interrupt() 194 data->ac.properties = goldfish_ac_props; in goldfish_battery_probe() 195 data->ac.num_properties = ARRAY_SIZE(goldfish_ac_props); in goldfish_battery_probe() 196 data->ac.get_property = goldfish_ac_get_property; in goldfish_battery_probe() 197 data->ac.name = "ac"; in goldfish_battery_probe() 198 data->ac.type = POWER_SUPPLY_TYPE_MAINS; in goldfish_battery_probe() 223 ret = power_supply_register(&pdev->dev, &data->ac); in goldfish_battery_probe() 229 power_supply_unregister(&data->ac); in goldfish_battery_probe() [all …]
|
D | lp8727_charger.c | 83 struct power_supply ac; member 192 pchg->chg_param = pdata ? pdata->ac : NULL; in lp8727_id_detection() 196 pchg->chg_param = pdata ? pdata->ac : NULL; in lp8727_id_detection() 245 power_supply_changed(&pchg->psy->ac); in lp8727_delayed_func() 431 psy->ac.name = "ac"; in lp8727_register_psy() 432 psy->ac.type = POWER_SUPPLY_TYPE_MAINS; in lp8727_register_psy() 433 psy->ac.properties = lp8727_charger_prop; in lp8727_register_psy() 434 psy->ac.num_properties = ARRAY_SIZE(lp8727_charger_prop); in lp8727_register_psy() 435 psy->ac.get_property = lp8727_charger_get_property; in lp8727_register_psy() 436 psy->ac.supplied_to = battery_supplied_to; in lp8727_register_psy() [all …]
|
D | pcf50633-charger.c | 38 struct power_supply ac; member 281 power_supply_changed(&mbc->ac); in pcf50633_mbc_irq_handler() 333 struct pcf50633_mbc *mbc = container_of(psy, struct pcf50633_mbc, ac); in ac_get_property() 405 mbc->ac.name = "ac"; in pcf50633_mbc_probe() 406 mbc->ac.type = POWER_SUPPLY_TYPE_MAINS; in pcf50633_mbc_probe() 407 mbc->ac.properties = power_props; in pcf50633_mbc_probe() 408 mbc->ac.num_properties = ARRAY_SIZE(power_props); in pcf50633_mbc_probe() 409 mbc->ac.get_property = ac_get_property; in pcf50633_mbc_probe() 410 mbc->ac.supplied_to = mbc->pcf->pdata->batteries; in pcf50633_mbc_probe() 411 mbc->ac.num_supplicants = mbc->pcf->pdata->num_batteries; in pcf50633_mbc_probe() [all …]
|
D | max8925_power.c | 71 struct power_supply ac; member 505 info->ac.name = "max8925-ac"; in max8925_power_probe() 506 info->ac.type = POWER_SUPPLY_TYPE_MAINS; in max8925_power_probe() 507 info->ac.properties = max8925_ac_props; in max8925_power_probe() 508 info->ac.num_properties = ARRAY_SIZE(max8925_ac_props); in max8925_power_probe() 509 info->ac.get_property = max8925_ac_get_prop; in max8925_power_probe() 510 info->ac.supplied_to = pdata->supplied_to; in max8925_power_probe() 511 info->ac.num_supplicants = pdata->num_supplicants; in max8925_power_probe() 512 ret = power_supply_register(&pdev->dev, &info->ac); in max8925_power_probe() 515 info->ac.dev->parent = &pdev->dev; in max8925_power_probe() [all …]
|
D | wm8350_power.c | 236 power_supply_changed(&power->ac); in wm8350_charger_handler() 452 struct power_supply *ac = &power->ac; in wm8350_power_probe() local 455 ac->name = "wm8350-ac"; in wm8350_power_probe() 456 ac->type = POWER_SUPPLY_TYPE_MAINS; in wm8350_power_probe() 457 ac->properties = wm8350_ac_props; in wm8350_power_probe() 458 ac->num_properties = ARRAY_SIZE(wm8350_ac_props); in wm8350_power_probe() 459 ac->get_property = wm8350_ac_get_prop; in wm8350_power_probe() 460 ret = power_supply_register(&pdev->dev, ac); in wm8350_power_probe() 499 power_supply_unregister(ac); in wm8350_power_probe() 512 power_supply_unregister(&power->ac); in wm8350_power_remove()
|
D | twl4030_charger.c | 90 struct power_supply ac; member 321 power_supply_changed(&bci->ac); in twl4030_charger_interrupt() 350 power_supply_changed(&bci->ac); in twl4030_bci_interrupt() 587 bci->ac.name = "twl4030_ac"; in twl4030_bci_probe() 588 bci->ac.type = POWER_SUPPLY_TYPE_MAINS; in twl4030_bci_probe() 589 bci->ac.properties = twl4030_charger_props; in twl4030_bci_probe() 590 bci->ac.num_properties = ARRAY_SIZE(twl4030_charger_props); in twl4030_bci_probe() 591 bci->ac.get_property = twl4030_bci_get_property; in twl4030_bci_probe() 593 ret = power_supply_register(&pdev->dev, &bci->ac); in twl4030_bci_probe() 675 power_supply_unregister(&bci->ac); in twl4030_bci_probe() [all …]
|
D | pm2301_charger.c | 117 if (!pm2->ac.charger_connected && gpio_is_valid(pm2->lpn_pin)) { in set_lpn_pin() 125 if (!pm2->ac.charger_connected && gpio_is_valid(pm2->lpn_pin)) in clear_lpn_pin() 231 pm2->ac.wd_expired = true; in pm2xxx_charger_wd_exp_mngt() 309 pm2->ac.charger_connected = 1; in pm2xxx_charger_itv_pwr_plug_mngt() 321 pm2->ac.charger_connected = 0; in pm2xxx_charger_itv_pwr_unplug_mngt() 513 if (pm2->ac.charger_connected && pm2->ac.charger_online) { in pm2xxx_charger_get_ac_cv() 616 else if (pm2->ac.wd_expired) in pm2xxx_charger_ac_get_property() 626 val->intval = pm2->ac.charger_online; in pm2xxx_charger_ac_get_property() 629 val->intval = pm2->ac.charger_connected; in pm2xxx_charger_ac_get_property() 632 pm2->ac.cv_active = pm2xxx_charger_get_ac_cv(pm2); in pm2xxx_charger_ac_get_property() [all …]
|
D | bq24735-charger.c | 161 int ac = 0; in bq24735_charger_is_present() local 163 ac = bq24735_read_word(charger->client, BQ24735_CHG_OPT); in bq24735_charger_is_present() 164 if (ac < 0) { in bq24735_charger_is_present() 167 ac); in bq24735_charger_is_present() 170 return (ac & BQ24735_CHG_OPT_AC_PRESENT) ? true : false; in bq24735_charger_is_present()
|
D | ab8500_charger.c | 295 struct ab8500_charger_info ac; member 414 !di->ac.charger_connected && in ab8500_power_supply_changed() 419 (di->ac.charger_connected || in ab8500_power_supply_changed() 467 if (di->ac.charger_connected) { in ab8500_charger_get_ac_voltage() 489 if (di->ac.charger_online) { in ab8500_charger_ac_cv() 562 if (di->ac.charger_online) { in ab8500_charger_get_ac_current() 1137 if (!di->ac.charger_connected) in ab8500_charger_set_current() 1160 if (!di->usb.charger_connected && !di->ac.charger_connected) in ab8500_charger_set_current() 1370 if (!di->ac.charger_connected) { in ab8500_charger_ac_en() 1450 di->ac.charger_online = 1; in ab8500_charger_ac_en() [all …]
|
/drivers/net/wireless/iwlwifi/mvm/ |
D | mac-ctxt.c | 203 u32 qmask = 0, ac; in iwl_mvm_mac_get_queues_mask() local 208 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in iwl_mvm_mac_get_queues_mask() 209 qmask |= BIT(vif->hw_queue[ac]); in iwl_mvm_mac_get_queues_mask() 284 u32 ac; in iwl_mvm_mac_ctxt_allocate_resources() local 363 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in iwl_mvm_mac_ctxt_allocate_resources() 364 vif->hw_queue[ac] = IEEE80211_INVAL_HW_QUEUE; in iwl_mvm_mac_ctxt_allocate_resources() 372 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in iwl_mvm_mac_ctxt_allocate_resources() 383 vif->hw_queue[ac] = queue; in iwl_mvm_mac_ctxt_allocate_resources() 419 u32 ac; in iwl_mvm_mac_ctxt_init() local 438 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in iwl_mvm_mac_ctxt_init() [all …]
|
/drivers/scsi/ |
D | raid_class.c | 49 container_of(acont, struct transport_container, ac); \ 54 struct attribute_container *ac = \ 56 ac_to_raid_internal(ac); \ 227 attribute_container_find_class_device(&r->raid_attrs.ac, in raid_component_add() 273 i->r.raid_attrs.ac.class = &raid_class.class; in raid_class_attach() 274 i->r.raid_attrs.ac.match = raid_match; in raid_class_attach() 275 i->r.raid_attrs.ac.attrs = &i->attrs[0]; in raid_class_attach() 277 attribute_container_register(&i->r.raid_attrs.ac); in raid_class_attach() 295 BUG_ON(attribute_container_unregister(&i->r.raid_attrs.ac)); in raid_class_release()
|
D | scsi_transport_sas.c | 324 if (shost->transportt->host_attrs.ac.class != in sas_host_match() 329 return &i->t.host_attrs.ac == cont; in sas_host_match() 684 if (shost->transportt->host_attrs.ac.class != in sas_phy_match() 689 return &i->phy_attr_cont.ac == cont; in sas_phy_match() 850 if (shost->transportt->host_attrs.ac.class != in sas_port_match() 855 return &i->port_attr_cont.ac == cont; in sas_port_match() 1380 if (shost->transportt->host_attrs.ac.class != in sas_rphy_match() 1385 return &i->rphy_attr_cont.ac == cont; in sas_rphy_match() 1402 if (shost->transportt->host_attrs.ac.class != in sas_end_dev_match() 1407 return &i->end_dev_attr_cont.ac == cont && in sas_end_dev_match() [all …]
|
D | scsi_transport_srp.c | 660 if (shost->transportt->host_attrs.ac.class != &srp_host_class.class) in srp_rport_match() 664 return &i->rport_attr_cont.ac == cont; in srp_rport_match() 678 if (shost->transportt->host_attrs.ac.class != &srp_host_class.class) in srp_host_match() 682 return &i->t.host_attrs.ac == cont; in srp_host_match() 857 i->t.host_attrs.ac.attrs = &i->host_attrs[0]; in srp_attach_transport() 858 i->t.host_attrs.ac.class = &srp_host_class.class; in srp_attach_transport() 859 i->t.host_attrs.ac.match = srp_host_match; in srp_attach_transport() 863 i->rport_attr_cont.ac.attrs = &i->rport_attrs[0]; in srp_attach_transport() 864 i->rport_attr_cont.ac.class = &srp_rport_class.class; in srp_attach_transport() 865 i->rport_attr_cont.ac.match = srp_rport_match; in srp_attach_transport()
|
/drivers/net/wireless/ath/ath9k/ |
D | xmit.c | 109 struct ath_atx_ac *ac = tid->ac; in ath_tx_queue_tid() local 121 list_add_tail(&tid->list, &ac->tid_q); in ath_tx_queue_tid() 123 if (ac->sched) in ath_tx_queue_tid() 126 ac->sched = true; in ath_tx_queue_tid() 129 list_add_tail(&ac->list, list); in ath_tx_queue_tid() 211 struct ath_txq *txq = tid->ac->txq; in ath_tx_tid_change_state() 240 struct ath_txq *txq = tid->ac->txq; in ath_tx_flush_tid() 647 tid->ac->clear_ps_filter = true; in ath_tx_complete_aggr() 737 int q = tid->ac->txq->mac80211_qnum; in ath_lookup_rate() 1395 if (tid->ac->clear_ps_filter || tid->an->no_ps_filter) { in ath_tx_sched_aggr() [all …]
|
D | debug_sta.c | 29 struct ath_atx_ac *ac; in read_file_node_aggr() local 54 for (acno = 0, ac = &an->ac[acno]; in read_file_node_aggr() 55 acno < IEEE80211_NUM_ACS; acno++, ac++) { in read_file_node_aggr() 56 txq = ac->txq; in read_file_node_aggr() 60 acno, ac->sched); in read_file_node_aggr() 71 txq = tid->ac->txq; in read_file_node_aggr()
|
/drivers/net/wireless/ti/wlcore/ |
D | tx.c | 210 int id, ret = -EBUSY, ac; in wl1271_tx_allocate() local 246 ac = wl1271_tx_get_queue(skb_get_queue_mapping(skb)); in wl1271_tx_allocate() 247 wl->tx_allocated_pkts[ac]++; in wl1271_tx_allocate() 270 int ac, rate_idx; in wl1271_tx_fill_hdr() local 302 ac = wl1271_tx_get_queue(skb_get_queue_mapping(skb)); in wl1271_tx_fill_hdr() 355 rate_idx = wlvif->ap.ucast_rate_idx[ac]; in wl1271_tx_fill_hdr() 501 int i, q = -1, ac; in wlcore_select_ac() local 512 ac = wl1271_tx_get_queue(i); in wlcore_select_ac() 513 if (wl->tx_queue_count[ac] && in wlcore_select_ac() 514 wl->tx_allocated_pkts[ac] < min_pkts) { in wlcore_select_ac() [all …]
|
/drivers/platform/x86/ |
D | hp_accel.c | 162 lis3_dev.ac = *((union axis_conversion *)dmi->driver_data); in lis3lv02d_dmi_matched() 355 if (lis3_dev.ac.x && lis3_dev.ac.y && lis3_dev.ac.z) { in lis3lv02d_add() 357 lis3_dev.ac.x, lis3_dev.ac.y, lis3_dev.ac.z); in lis3lv02d_add() 360 lis3_dev.ac = lis3lv02d_axis_normal; in lis3lv02d_add()
|
/drivers/ata/ |
D | libata-transport.c | 245 return &ata_scsi_transport_template->host_attrs.ac == cont; in ata_tport_match() 369 return &i->link_attr_cont.ac == cont; in ata_tlink_match() 608 return &i->dev_attr_cont.ac == cont; in ata_tdev_match() 717 i->t.host_attrs.ac.attrs = &i->port_attrs[0]; in ata_attach_transport() 718 i->t.host_attrs.ac.class = &ata_port_class.class; in ata_attach_transport() 719 i->t.host_attrs.ac.match = ata_tport_match; in ata_attach_transport() 722 i->link_attr_cont.ac.class = &ata_link_class.class; in ata_attach_transport() 723 i->link_attr_cont.ac.attrs = &i->link_attrs[0]; in ata_attach_transport() 724 i->link_attr_cont.ac.match = ata_tlink_match; in ata_attach_transport() 727 i->dev_attr_cont.ac.class = &ata_dev_class.class; in ata_attach_transport() [all …]
|
/drivers/net/wireless/iwlegacy/ |
D | common.h | 2269 il_set_swq_id(struct il_tx_queue *txq, u8 ac, u8 hwq) in il_set_swq_id() argument 2271 BUG_ON(ac > 3); /* only have 2 bits */ in il_set_swq_id() 2274 txq->swq_id = (hwq << 2) | ac; in il_set_swq_id() 2278 _il_wake_queue(struct il_priv *il, u8 ac) in _il_wake_queue() argument 2280 if (atomic_dec_return(&il->queue_stop_count[ac]) <= 0) in _il_wake_queue() 2281 ieee80211_wake_queue(il->hw, ac); in _il_wake_queue() 2285 _il_stop_queue(struct il_priv *il, u8 ac) in _il_stop_queue() argument 2287 if (atomic_inc_return(&il->queue_stop_count[ac]) > 0) in _il_stop_queue() 2288 ieee80211_stop_queue(il->hw, ac); in _il_stop_queue() 2294 u8 ac = queue & 3; in il_wake_queue() local [all …]
|