/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 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 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 void adxl34x_remove(struct adxl34x *ac);
|
/drivers/power/supply/ |
D | surface_charger.c | 67 static int spwr_ac_update_unlocked(struct spwr_ac_device *ac) in spwr_ac_update_unlocked() argument 69 __le32 old = ac->state; in spwr_ac_update_unlocked() 72 lockdep_assert_held(&ac->lock); in spwr_ac_update_unlocked() 74 status = ssam_retry(ssam_bat_get_psrc, ac->sdev, &ac->state); in spwr_ac_update_unlocked() 78 return old != ac->state; in spwr_ac_update_unlocked() 81 static int spwr_ac_update(struct spwr_ac_device *ac) in spwr_ac_update() argument 85 mutex_lock(&ac->lock); in spwr_ac_update() 86 status = spwr_ac_update_unlocked(ac); in spwr_ac_update() 87 mutex_unlock(&ac->lock); in spwr_ac_update() 92 static int spwr_ac_recheck(struct spwr_ac_device *ac) in spwr_ac_recheck() argument [all …]
|
D | tps65090-charger.c | 36 struct power_supply *ac; member 182 power_supply_changed(charger->ac); in tps65090_charger_isr() 265 cdata->ac = power_supply_register(&pdev->dev, &tps65090_charger_desc, in tps65090_charger_probe() 267 if (IS_ERR(cdata->ac)) { in tps65090_charger_probe() 269 return PTR_ERR(cdata->ac); in tps65090_charger_probe() 299 power_supply_changed(cdata->ac); in tps65090_charger_probe() 326 power_supply_unregister(cdata->ac); in tps65090_charger_probe() 337 power_supply_unregister(cdata->ac); in tps65090_charger_remove()
|
D | goldfish_battery.c | 27 struct power_supply *ac; member 176 power_supply_changed(data->ac); in goldfish_battery_interrupt() 235 data->ac = power_supply_register(&pdev->dev, &ac_desc, &psy_cfg); in goldfish_battery_probe() 236 if (IS_ERR(data->ac)) in goldfish_battery_probe() 237 return PTR_ERR(data->ac); in goldfish_battery_probe() 242 power_supply_unregister(data->ac); in goldfish_battery_probe() 257 power_supply_unregister(data->ac); in goldfish_battery_remove()
|
/drivers/acpi/ |
D | ac.c | 77 static int acpi_ac_get_state(struct acpi_ac *ac) in acpi_ac_get_state() argument 81 if (!ac) in acpi_ac_get_state() 85 ac->state = 1; in acpi_ac_get_state() 89 status = acpi_evaluate_integer(ac->device->handle, "_PSR", NULL, in acpi_ac_get_state() 90 &ac->state); in acpi_ac_get_state() 92 acpi_handle_info(ac->device->handle, in acpi_ac_get_state() 95 ac->state = ACPI_AC_STATUS_UNKNOWN; in acpi_ac_get_state() 107 struct acpi_ac *ac = to_acpi_ac(psy); in get_ac_property() local 109 if (!ac) in get_ac_property() 112 if (acpi_ac_get_state(ac)) in get_ac_property() [all …]
|
/drivers/media/pci/tw686x/ |
D | tw686x-audio.c | 38 struct tw686x_audio_channel *ac = &dev->audio_channels[ch]; in tw686x_audio_irq() local 45 spin_lock_irqsave(&ac->lock, flags); in tw686x_audio_irq() 48 if (!ac->ss || !ac->curr_bufs[0] || !ac->curr_bufs[1]) { in tw686x_audio_irq() 49 spin_unlock_irqrestore(&ac->lock, flags); in tw686x_audio_irq() 53 if (!list_empty(&ac->buf_list)) { in tw686x_audio_irq() 54 next = list_first_entry(&ac->buf_list, in tw686x_audio_irq() 56 list_move_tail(&next->list, &ac->buf_list); in tw686x_audio_irq() 57 done = ac->curr_bufs[!pb]; in tw686x_audio_irq() 58 ac->curr_bufs[pb] = next; in tw686x_audio_irq() 60 spin_unlock_irqrestore(&ac->lock, flags); in tw686x_audio_irq() [all …]
|
/drivers/s390/crypto/ |
D | ap_card.c | 25 struct ap_card *ac = to_ap_card(dev); in hwtype_show() local 27 return scnprintf(buf, PAGE_SIZE, "%d\n", ac->ap_dev.device_type); in hwtype_show() 35 struct ap_card *ac = to_ap_card(dev); in raw_hwtype_show() local 37 return scnprintf(buf, PAGE_SIZE, "%d\n", ac->raw_hwtype); in raw_hwtype_show() 45 struct ap_card *ac = to_ap_card(dev); in depth_show() local 47 return scnprintf(buf, PAGE_SIZE, "%d\n", ac->queue_depth); in depth_show() 55 struct ap_card *ac = to_ap_card(dev); in ap_functions_show() local 57 return scnprintf(buf, PAGE_SIZE, "0x%08X\n", ac->functions); in ap_functions_show() 66 struct ap_card *ac = to_ap_card(dev); in request_count_show() local 71 req_cnt = atomic64_read(&ac->total_request_count); in request_count_show() [all …]
|
D | ap_bus.c | 626 struct ap_card *ac = to_ap_card(&ap_dev->device); in ap_uevent() local 638 if (ap_test_bit(&ac->functions, AP_FUNC_ACCEL)) in ap_uevent() 640 else if (ap_test_bit(&ac->functions, AP_FUNC_COPRO)) in ap_uevent() 642 else if (ap_test_bit(&ac->functions, AP_FUNC_EP11)) in ap_uevent() 1754 static inline void ap_scan_rm_card_dev_and_queue_devs(struct ap_card *ac) in ap_scan_rm_card_dev_and_queue_devs() argument 1757 (void *)(long)ac->id, in ap_scan_rm_card_dev_and_queue_devs() 1759 device_unregister(&ac->ap_dev.device); in ap_scan_rm_card_dev_and_queue_devs() 1767 static inline void ap_scan_domains(struct ap_card *ac) in ap_scan_domains() argument 1783 qid = AP_MKQID(ac->id, dom); in ap_scan_domains() 1791 __func__, ac->id, dom); in ap_scan_domains() [all …]
|
D | zcrypt_cex4.c | 84 struct ap_card *ac = to_ap_card(dev); in cca_serialnr_show() local 89 cca_get_info(ac->id, ap_domain_index, &ci, zc->online); in cca_serialnr_show() 224 struct ap_card *ac = to_ap_card(dev); in ep11_api_ordinalnr_show() local 228 ep11_get_card_info(ac->id, &ci, zc->online); in ep11_api_ordinalnr_show() 245 struct ap_card *ac = to_ap_card(dev); in ep11_fw_version_show() local 249 ep11_get_card_info(ac->id, &ci, zc->online); in ep11_fw_version_show() 268 struct ap_card *ac = to_ap_card(dev); in ep11_serialnr_show() local 272 ep11_get_card_info(ac->id, &ci, zc->online); in ep11_serialnr_show() 302 struct ap_card *ac = to_ap_card(dev); in ep11_card_op_modes_show() local 306 ep11_get_card_info(ac->id, &ci, zc->online); in ep11_card_op_modes_show() [all …]
|
D | zcrypt_cex2a.c | 85 struct ap_card *ac = to_ap_card(&ap_dev->device); in zcrypt_cex2a_card_probe() local 92 zc->card = ac; in zcrypt_cex2a_card_probe() 95 if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX2A) { in zcrypt_cex2a_card_probe() 102 } else if (ac->ap_dev.device_type == AP_DEVICE_TYPE_CEX3A) { in zcrypt_cex2a_card_probe() 106 if (ap_test_bit(&ac->functions, AP_FUNC_MEX4K) && in zcrypt_cex2a_card_probe() 107 ap_test_bit(&ac->functions, AP_FUNC_CRT4K)) { in zcrypt_cex2a_card_probe()
|
D | zcrypt_cex2c.c | 71 struct ap_card *ac = to_ap_card(dev); in cca_serialnr_show() local 76 cca_get_info(ac->id, ap_domain_index, &ci, zc->online); in cca_serialnr_show() 256 struct ap_card *ac = to_ap_card(&ap_dev->device); in zcrypt_cex2c_card_probe() local 263 zc->card = ac; in zcrypt_cex2c_card_probe() 265 switch (ac->ap_dev.device_type) { in zcrypt_cex2c_card_probe() 294 if (ap_test_bit(&ac->functions, AP_FUNC_COPRO)) { in zcrypt_cex2c_card_probe() 313 struct ap_card *ac = to_ap_card(&ap_dev->device); in zcrypt_cex2c_card_remove() local 315 if (ap_test_bit(&ac->functions, AP_FUNC_COPRO)) in zcrypt_cex2c_card_remove()
|
D | zcrypt_card.c | 54 struct ap_card *ac = to_ap_card(dev); in online_show() local 55 int online = ac->config && zc->online ? 1 : 0; in online_show() 65 struct ap_card *ac = to_ap_card(dev); in online_store() local 73 if (online && !ac->config) in online_store() 81 ap_send_online_uevent(&ac->ap_dev, online); in online_store()
|
/drivers/net/ethernet/pensando/ionic/ |
D | ionic_rx_filter.c | 24 struct ionic_rx_filter_add_cmd *ac; in ionic_rx_filter_replay() local 35 ac = &ctx.cmd.rx_filter_add; in ionic_rx_filter_replay() 41 memcpy(ac, &f->cmd, sizeof(f->cmd)); in ionic_rx_filter_replay() 48 switch (le16_to_cpu(ac->match)) { in ionic_rx_filter_replay() 52 le16_to_cpu(ac->vlan.vlan)); in ionic_rx_filter_replay() 56 err, ac->mac.addr); in ionic_rx_filter_replay() 61 le16_to_cpu(ac->vlan.vlan), in ionic_rx_filter_replay() 62 ac->mac.addr); in ionic_rx_filter_replay() 128 struct ionic_rx_filter_add_cmd *ac; in ionic_rx_filter_save() local 133 ac = &ctx->cmd.rx_filter_add; in ionic_rx_filter_save() [all …]
|
/drivers/crypto/axis/ |
D | artpec6_crypto.c | 451 struct artpec6_crypto *ac = dev_get_drvdata(artpec6_crypto_dev); in artpec6_crypto_busy() local 452 int fifo_count = ac->pending_count; in artpec6_crypto_busy() 459 struct artpec6_crypto *ac = dev_get_drvdata(artpec6_crypto_dev); in artpec6_crypto_submit() local 462 spin_lock_bh(&ac->queue_lock); in artpec6_crypto_submit() 465 list_add_tail(&req->list, &ac->pending); in artpec6_crypto_submit() 469 list_add_tail(&req->list, &ac->queue); in artpec6_crypto_submit() 474 spin_unlock_bh(&ac->queue_lock); in artpec6_crypto_submit() 481 struct artpec6_crypto *ac = dev_get_drvdata(artpec6_crypto_dev); in artpec6_crypto_start_dma() local 482 enum artpec6_crypto_variant variant = ac->variant; in artpec6_crypto_start_dma() 483 void __iomem *base = ac->base; in artpec6_crypto_start_dma() [all …]
|
/drivers/net/ethernet/microsoft/mana/ |
D | mana_en.c | 83 struct gdma_dev *gd = apc->ac->gdma_dev; in mana_map_skb() 137 struct gdma_dev *gd = apc->ac->gdma_dev; in mana_start_xmit() 404 static int mana_send_request(struct mana_context *ac, void *in_buf, in mana_send_request() argument 407 struct gdma_context *gc = ac->gdma_dev->gdma_context; in mana_send_request() 464 err = mana_send_request(apc->ac, &req, sizeof(req), &resp, in mana_pf_register_hw_vport() 493 err = mana_send_request(apc->ac, &req, sizeof(req), &resp, in mana_pf_deregister_hw_vport() 520 err = mana_send_request(apc->ac, &req, sizeof(req), &resp, in mana_pf_register_filter() 549 err = mana_send_request(apc->ac, &req, sizeof(req), &resp, in mana_pf_deregister_filter() 565 static int mana_query_device_cfg(struct mana_context *ac, u32 proto_major_ver, in mana_query_device_cfg() argument 569 struct gdma_context *gc = ac->gdma_dev->gdma_context; in mana_query_device_cfg() [all …]
|
/drivers/scsi/ |
D | raid_class.c | 48 container_of(acont, struct transport_container, ac); \ 53 struct attribute_container *ac = \ 55 ac_to_raid_internal(ac); \ 224 i->r.raid_attrs.ac.class = &raid_class.class; in raid_class_attach() 225 i->r.raid_attrs.ac.match = raid_match; in raid_class_attach() 226 i->r.raid_attrs.ac.attrs = &i->attrs[0]; in raid_class_attach() 228 attribute_container_register(&i->r.raid_attrs.ac); in raid_class_attach() 246 BUG_ON(attribute_container_unregister(&i->r.raid_attrs.ac)); in raid_class_release()
|
D | scsi_transport_sas.c | 273 if (shost->transportt->host_attrs.ac.class != in sas_host_match() 278 return &i->t.host_attrs.ac == cont; in sas_host_match() 653 if (shost->transportt->host_attrs.ac.class != in sas_phy_match() 658 return &i->phy_attr_cont.ac == cont; in sas_phy_match() 824 if (shost->transportt->host_attrs.ac.class != in sas_port_match() 829 return &i->port_attr_cont.ac == cont; in sas_port_match() 1344 if (shost->transportt->host_attrs.ac.class != in sas_rphy_match() 1349 return &i->rphy_attr_cont.ac == cont; in sas_rphy_match() 1366 if (shost->transportt->host_attrs.ac.class != in sas_end_dev_match() 1371 return &i->end_dev_attr_cont.ac == cont && in sas_end_dev_match() [all …]
|
/drivers/net/wireless/ti/wlcore/ |
D | tx.c | 197 int id, ret = -EBUSY, ac; in wl1271_tx_allocate() local 232 ac = wl1271_tx_get_queue(skb_get_queue_mapping(skb)); in wl1271_tx_allocate() 233 wl->tx_allocated_pkts[ac]++; in wl1271_tx_allocate() 255 int ac, rate_idx; in wl1271_tx_fill_hdr() local 286 ac = wl1271_tx_get_queue(skb_get_queue_mapping(skb)); in wl1271_tx_fill_hdr() 339 rate_idx = wlvif->ap.ucast_rate_idx[ac]; in wl1271_tx_fill_hdr() 485 int i, q = -1, ac; in wlcore_select_ac() local 496 ac = wl1271_tx_get_queue(i); in wlcore_select_ac() 497 if (wl->tx_queue_count[ac] && in wlcore_select_ac() 498 wl->tx_allocated_pkts[ac] < min_pkts) { in wlcore_select_ac() [all …]
|
/drivers/platform/x86/hp/ |
D | hp_accel.c | 142 lis3_dev.ac = *((union axis_conversion *)dmi->driver_data); in lis3lv02d_dmi_matched() 313 if (lis3_dev.ac.x && lis3_dev.ac.y && lis3_dev.ac.z) { in lis3lv02d_probe() 315 lis3_dev.ac.x, lis3_dev.ac.y, lis3_dev.ac.z); in lis3lv02d_probe() 318 lis3_dev.ac = lis3lv02d_axis_normal; in lis3lv02d_probe()
|
/drivers/net/wireless/microchip/wilc1000/ |
D | wlan.c | 402 static inline u8 ac_change(struct wilc *wilc, u8 *ac) in ac_change() argument 405 if (wilc->txq[*ac].fw.acm == 0) in ac_change() 407 (*ac)++; in ac_change() 408 } while (*ac < NQUEUES); in ac_change() 703 u8 k, ac; in wilc_wlan_handle_txq() local 737 for (ac = 0; ac < NQUEUES; ac++) in wilc_wlan_handle_txq() 738 tqe_q[ac] = wilc_wlan_txq_get_first(wilc, ac); in wilc_wlan_handle_txq() 746 for (ac = 0; (ac < NQUEUES) && (!max_size_over); ac++) { in wilc_wlan_handle_txq() 747 if (!tqe_q[ac]) in wilc_wlan_handle_txq() 751 for (k = 0; (k < num_pkts_to_add[ac]) && in wilc_wlan_handle_txq() [all …]
|
/drivers/net/wireless/realtek/rtw88/ |
D | Kconfig | 3 tristate "Realtek 802.11ac wireless chips support" 7 enables Realtek IEEE 802.11ac wireless chipsets. 40 802.11ac PCIe wireless network adapter 51 802.11ac PCIe wireless network adapter 73 802.11ac PCIe wireless network adapter
|
/drivers/ata/ |
D | libata-transport.c | 248 return &ata_scsi_transport_template->host_attrs.ac == cont; in ata_tport_match() 413 return &i->link_attr_cont.ac == cont; in ata_tlink_match() 656 return &i->dev_attr_cont.ac == cont; in ata_tdev_match() 770 i->t.host_attrs.ac.attrs = &i->port_attrs[0]; in ata_attach_transport() 771 i->t.host_attrs.ac.class = &ata_port_class.class; in ata_attach_transport() 772 i->t.host_attrs.ac.match = ata_tport_match; in ata_attach_transport() 775 i->link_attr_cont.ac.class = &ata_link_class.class; in ata_attach_transport() 776 i->link_attr_cont.ac.attrs = &i->link_attrs[0]; in ata_attach_transport() 777 i->link_attr_cont.ac.match = ata_tlink_match; in ata_attach_transport() 780 i->dev_attr_cont.ac.class = &ata_dev_class.class; in ata_attach_transport() [all …]
|