/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() 100 struct adxl34x *ac = spi_get_drvdata(spi); in adxl34x_spi_suspend() local 102 adxl34x_suspend(ac); in adxl34x_spi_suspend() 110 struct adxl34x *ac = spi_get_drvdata(spi); in adxl34x_spi_resume() local [all …]
|
D | adxl34x-i2c.c | 80 struct adxl34x *ac; in adxl34x_i2c_probe() local 90 ac = adxl34x_probe(&client->dev, client->irq, false, in adxl34x_i2c_probe() 94 if (IS_ERR(ac)) in adxl34x_i2c_probe() 95 return PTR_ERR(ac); in adxl34x_i2c_probe() 97 i2c_set_clientdata(client, ac); in adxl34x_i2c_probe() 104 struct adxl34x *ac = i2c_get_clientdata(client); in adxl34x_i2c_remove() local 106 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 | 117 static int acpi_ac_get_state(struct acpi_ac *ac) in acpi_ac_get_state() argument 121 if (!ac) in acpi_ac_get_state() 124 status = acpi_evaluate_integer(ac->device->handle, "_PSR", NULL, in acpi_ac_get_state() 125 &ac->state); in acpi_ac_get_state() 129 ac->state = ACPI_AC_STATUS_UNKNOWN; in acpi_ac_get_state() 143 struct acpi_ac *ac = to_acpi_ac(psy); in get_ac_property() local 145 if (!ac) in get_ac_property() 148 if (acpi_ac_get_state(ac)) in get_ac_property() 153 val->intval = ac->state; in get_ac_property() 174 struct acpi_ac *ac = seq->private; in acpi_ac_seq_show() local [all …]
|
/drivers/net/wireless/iwlwifi/mvm/ |
D | mac-ctxt.c | 208 u32 qmask = 0, ac; in iwl_mvm_mac_get_queues_mask() local 213 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in iwl_mvm_mac_get_queues_mask() 214 if (vif->hw_queue[ac] != IEEE80211_INVAL_HW_QUEUE) in iwl_mvm_mac_get_queues_mask() 215 qmask |= BIT(vif->hw_queue[ac]); in iwl_mvm_mac_get_queues_mask() 340 u32 ac; in iwl_mvm_mac_ctxt_allocate_resources() local 421 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) in iwl_mvm_mac_ctxt_allocate_resources() 422 vif->hw_queue[ac] = IEEE80211_INVAL_HW_QUEUE; in iwl_mvm_mac_ctxt_allocate_resources() 428 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in iwl_mvm_mac_ctxt_allocate_resources() 439 vif->hw_queue[ac] = queue; in iwl_mvm_mac_ctxt_allocate_resources() 477 u32 ac; in iwl_mvm_mac_ctxt_init() local [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() 1370 if (shost->transportt->host_attrs.ac.class != in sas_rphy_match() 1375 return &i->rphy_attr_cont.ac == cont; in sas_rphy_match() 1392 if (shost->transportt->host_attrs.ac.class != in sas_end_dev_match() 1397 return &i->end_dev_attr_cont.ac == cont && in sas_end_dev_match() [all …]
|
D | scsi_transport_srp.c | 688 if (shost->transportt->host_attrs.ac.class != &srp_host_class.class) in srp_rport_match() 692 return &i->rport_attr_cont.ac == cont; in srp_rport_match() 706 if (shost->transportt->host_attrs.ac.class != &srp_host_class.class) in srp_host_match() 710 return &i->t.host_attrs.ac == cont; in srp_host_match() 885 i->t.host_attrs.ac.attrs = &i->host_attrs[0]; in srp_attach_transport() 886 i->t.host_attrs.ac.class = &srp_host_class.class; in srp_attach_transport() 887 i->t.host_attrs.ac.match = srp_host_match; in srp_attach_transport() 891 i->rport_attr_cont.ac.attrs = &i->rport_attrs[0]; in srp_attach_transport() 892 i->rport_attr_cont.ac.class = &srp_rport_class.class; in srp_attach_transport() 893 i->rport_attr_cont.ac.match = srp_rport_match; in srp_attach_transport()
|
/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/power/ |
D | goldfish_battery.c | 38 struct power_supply *ac; member 186 power_supply_changed(data->ac); in goldfish_battery_interrupt() 246 data->ac = power_supply_register(&pdev->dev, &ac_desc, &psy_cfg); in goldfish_battery_probe() 247 if (IS_ERR(data->ac)) in goldfish_battery_probe() 248 return PTR_ERR(data->ac); in goldfish_battery_probe() 253 power_supply_unregister(data->ac); in goldfish_battery_probe() 269 power_supply_unregister(data->ac); in goldfish_battery_remove()
|
D | tps65090-charger.c | 46 struct power_supply *ac; member 192 power_supply_changed(charger->ac); in tps65090_charger_isr() 275 cdata->ac = power_supply_register(&pdev->dev, &tps65090_charger_desc, in tps65090_charger_probe() 277 if (IS_ERR(cdata->ac)) { in tps65090_charger_probe() 279 return PTR_ERR(cdata->ac); in tps65090_charger_probe() 309 power_supply_changed(cdata->ac); in tps65090_charger_probe() 336 power_supply_unregister(cdata->ac); in tps65090_charger_probe() 347 power_supply_unregister(cdata->ac); in tps65090_charger_remove()
|
D | tps65217_charger.c | 43 struct power_supply *ac; member 158 power_supply_changed(charger->ac); in tps65217_charger_irq() 216 charger->ac = devm_power_supply_register(&pdev->dev, in tps65217_charger_probe() 219 if (IS_ERR(charger->ac)) { in tps65217_charger_probe() 221 return PTR_ERR(charger->ac); in tps65217_charger_probe()
|
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 | 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() 460 psy->ac = power_supply_register(pchg->dev, &lp8727_ac_desc, &psy_cfg); in lp8727_register_psy() 461 if (IS_ERR(psy->ac)) in lp8727_register_psy() 478 power_supply_unregister(psy->ac); in lp8727_register_psy() 490 power_supply_unregister(psy->ac); in lp8727_unregister_psy() 532 pdata->ac = lp8727_parse_charge_pdata(dev, child); in lp8727_parse_dt()
|
D | twl4030_charger.c | 117 struct power_supply *ac; member 629 power_supply_changed(bci->ac); in twl4030_charger_interrupt() 658 power_supply_changed(bci->ac); in twl4030_bci_interrupt() 697 if (dev == &bci->ac->dev) in twl4030_bci_max_current_store() 717 if (dev == &bci->ac->dev) { in twl4030_bci_max_current_show() 792 if (dev == &bci->ac->dev) { in twl4030_bci_mode_store() 818 if (dev == &bci->ac->dev) in twl4030_bci_mode_show() 1047 bci->ac = devm_power_supply_register(&pdev->dev, &twl4030_bci_ac_desc, in twl4030_bci_probe() 1049 if (IS_ERR(bci->ac)) { in twl4030_bci_probe() 1050 ret = PTR_ERR(bci->ac); in twl4030_bci_probe() [all …]
|
D | max8925_power.c | 71 struct power_supply *ac; member 533 info->ac = power_supply_register(&pdev->dev, &ac_desc, &psy_cfg); in max8925_power_probe() 534 if (IS_ERR(info->ac)) { in max8925_power_probe() 535 ret = PTR_ERR(info->ac); in max8925_power_probe() 538 info->ac->dev.parent = &pdev->dev; in max8925_power_probe() 566 power_supply_unregister(info->ac); in max8925_power_probe() 576 power_supply_unregister(info->ac); in max8925_power_remove()
|
D | pcf50633-charger.c | 38 struct power_supply *ac; member 281 power_supply_changed(mbc->ac); in pcf50633_mbc_irq_handler() 435 mbc->ac = power_supply_register(&pdev->dev, &pcf50633_mbc_ac_desc, in pcf50633_mbc_probe() 437 if (IS_ERR(mbc->ac)) { in pcf50633_mbc_probe() 441 ret = PTR_ERR(mbc->ac); in pcf50633_mbc_probe() 470 power_supply_unregister(mbc->ac); in pcf50633_mbc_remove()
|
D | bq24735-charger.c | 162 int ac = 0; in bq24735_charger_is_present() local 164 ac = bq24735_read_word(charger->client, BQ24735_CHG_OPT); in bq24735_charger_is_present() 165 if (ac < 0) { in bq24735_charger_is_present() 168 ac); in bq24735_charger_is_present() 171 return (ac & BQ24735_CHG_OPT_AC_PRESENT) ? true : false; in bq24735_charger_is_present()
|
D | wm8350_power.c | 236 power_supply_changed(power->ac); in wm8350_charger_handler() 476 power->ac = power_supply_register(&pdev->dev, &wm8350_ac_desc, NULL); in wm8350_power_probe() 477 if (IS_ERR(power->ac)) in wm8350_power_probe() 478 return PTR_ERR(power->ac); in wm8350_power_probe() 510 power_supply_unregister(power->ac); in wm8350_power_probe() 523 power_supply_unregister(power->ac); in wm8350_power_remove()
|
/drivers/platform/x86/ |
D | hp_accel.c | 165 lis3_dev.ac = *((union axis_conversion *)dmi->driver_data); in lis3lv02d_dmi_matched() 358 if (lis3_dev.ac.x && lis3_dev.ac.y && lis3_dev.ac.z) { in lis3lv02d_add() 360 lis3_dev.ac.x, lis3_dev.ac.y, lis3_dev.ac.z); in lis3lv02d_add() 363 lis3_dev.ac = lis3lv02d_axis_normal; in lis3lv02d_add()
|
/drivers/ata/ |
D | libata-transport.c | 246 return &ata_scsi_transport_template->host_attrs.ac == cont; in ata_tport_match() 370 return &i->link_attr_cont.ac == cont; in ata_tlink_match() 609 return &i->dev_attr_cont.ac == cont; in ata_tdev_match() 718 i->t.host_attrs.ac.attrs = &i->port_attrs[0]; in ata_attach_transport() 719 i->t.host_attrs.ac.class = &ata_port_class.class; in ata_attach_transport() 720 i->t.host_attrs.ac.match = ata_tport_match; in ata_attach_transport() 723 i->link_attr_cont.ac.class = &ata_link_class.class; in ata_attach_transport() 724 i->link_attr_cont.ac.attrs = &i->link_attrs[0]; in ata_attach_transport() 725 i->link_attr_cont.ac.match = ata_tlink_match; in ata_attach_transport() 728 i->dev_attr_cont.ac.class = &ata_dev_class.class; in ata_attach_transport() [all …]
|
/drivers/net/wireless/b43/ |
D | phy_ac.c | 27 dev->phy.ac = phy_ac; in b43_phy_ac_op_allocate() 35 struct b43_phy_ac *phy_ac = phy->ac; in b43_phy_ac_op_free() 38 phy->ac = NULL; in b43_phy_ac_op_free()
|
/drivers/staging/rtl8192e/ |
D | rtl819x_Qos.h | 172 #define IsACValid(ac) ((ac >= 0 && ac <= 7) ? true : false) argument
|
/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 …]
|