Home
last modified time | relevance | path

Searched refs:ac (Results 1 – 25 of 350) sorted by relevance

12345678910>>...14

/linux/drivers/input/misc/
A Dadxl34x.c181 #define AC_READ(ac, reg) ((ac)->bops->read((ac)->dev, reg)) argument
419 if (!ac->suspended && !ac->disabled && ac->opened) in adxl34x_suspend()
432 if (ac->suspended && !ac->disabled && ac->opened) in adxl34x_resume()
490 ac->hwcal.x * 4 + ac->swcal.x, in adxl34x_calibrate_show()
511 ac->swcal.x = ac->saved.x % 4; in adxl34x_calibrate_store()
514 ac->swcal.y = ac->saved.y % 4; in adxl34x_calibrate_store()
517 ac->swcal.z = ac->saved.z % 4; in adxl34x_calibrate_store()
592 if (!ac->disabled && !ac->suspended && ac->opened) in adxl34x_autosleep_store()
611 ac->saved.x, ac->saved.y, ac->saved.z); in adxl34x_position_show()
890 free_irq(ac->irq, ac); in adxl34x_probe()
[all …]
A Dadxl34x-spi.c70 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()
102 struct adxl34x *ac = spi_get_drvdata(spi); in adxl34x_spi_suspend() local
104 adxl34x_suspend(ac); in adxl34x_spi_suspend()
112 struct adxl34x *ac = spi_get_drvdata(spi); in adxl34x_spi_resume() local
[all …]
A Dadxl34x-i2c.c80 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()
114 struct adxl34x *ac = i2c_get_clientdata(client); in adxl34x_i2c_suspend() local
116 adxl34x_suspend(ac); in adxl34x_i2c_suspend()
124 struct adxl34x *ac = i2c_get_clientdata(client); in adxl34x_i2c_resume() local
[all …]
/linux/net/ceph/
A Dauth.c46 if (ac->global_id && global_id != ac->global_id) in ceph_auth_set_global_id()
62 ac = kzalloc(sizeof(*ac), GFP_NOFS); in ceph_auth_init()
63 if (!ac) in ceph_auth_init()
77 ac->name, ac->preferred_mode, ac->fallback_mode); in ceph_auth_init()
85 ac->ops->destroy(ac); in ceph_auth_destroy()
96 if (ac->ops && !ac->negotiating) in ceph_auth_reset()
97 ac->ops->reset(ac); in ceph_auth_reset()
242 ac->ops->destroy(ac); in ceph_handle_auth_reply()
290 if (ac->ops->should_authenticate(ac)) in ceph_build_auth()
302 ret = ac->ops->is_authenticated(ac); in ceph_auth_is_authenticated()
[all …]
A Dauth_none.c15 static void reset(struct ceph_auth_client *ac) in reset() argument
17 struct ceph_auth_none_info *xi = ac->private; in reset()
24 kfree(ac->private); in destroy()
25 ac->private = NULL; in destroy()
30 struct ceph_auth_none_info *xi = ac->private; in is_authenticated()
37 struct ceph_auth_none_info *xi = ac->private; in should_authenticate()
80 ceph_auth_set_global_id(ac, global_id); in handle_reply()
135 dout("ceph_auth_none_init %p\n", ac); in ceph_auth_none_init()
142 ac->protocol = CEPH_AUTH_NONE; in ceph_auth_none_init()
143 ac->private = xi; in ceph_auth_none_init()
[all …]
A Dauth_x.c24 struct ceph_x_info *xi = ac->private; in ceph_x_is_authenticated()
28 ceph_x_validate_tickets(ac, &need); in ceph_x_is_authenticated()
38 struct ceph_x_info *xi = ac->private; in ceph_x_should_authenticate()
41 ceph_x_validate_tickets(ac, &need); in ceph_x_should_authenticate()
460 int want = ac->want_keys; in ceph_x_validate_tickets()
929 kfree(ac->private); in ceph_x_destroy()
930 ac->private = NULL; in ceph_x_destroy()
1092 dout("ceph_x_init %p\n", ac); in ceph_x_init()
1099 if (!ac->key) { in ceph_x_init()
1114 ac->private = xi; in ceph_x_init()
[all …]
/linux/drivers/power/supply/
A Dsurface_charger.c69 __le32 old = ac->state; in spwr_ac_update_unlocked()
74 status = ssam_retry(ssam_bat_get_psrc, ac->sdev, &ac->state); in spwr_ac_update_unlocked()
85 mutex_lock(&ac->lock); in spwr_ac_update()
178 strncpy(ac->name, name, ARRAY_SIZE(ac->name) - 1); in spwr_ac_init()
180 ac->sdev = sdev; in spwr_ac_init()
190 ac->psy_desc.name = ac->name; in spwr_ac_init()
215 ac->psy = devm_power_supply_register(&ac->sdev->dev, &ac->psy_desc, &psy_cfg); in spwr_ac_register()
216 if (IS_ERR(ac->psy)) in spwr_ac_register()
219 return ssam_notifier_register(ac->sdev->ctrl, &ac->notif); in spwr_ac_register()
240 ac = devm_kzalloc(&sdev->dev, sizeof(*ac), GFP_KERNEL); in surface_ac_probe()
[all …]
/linux/drivers/acpi/
A Dac.c94 if (!ac) in acpi_ac_get_state()
98 ac->state = 1; in acpi_ac_get_state()
122 if (!ac) in get_ac_property()
147 if (!ac) in acpi_ac_notify()
262 if (!ac) in acpi_ac_add()
265 ac->device = device; in acpi_ac_add()
281 ac->charger = power_supply_register(&ac->device->dev, in acpi_ac_add()
295 kfree(ac); in acpi_ac_add()
303 struct acpi_ac *ac; in acpi_ac_resume() local
310 if (!ac) in acpi_ac_resume()
[all …]
/linux/drivers/media/pci/tw686x/
A Dtw686x-audio.c48 if (!ac->ss || !ac->curr_bufs[0] || !ac->curr_bufs[1]) { in tw686x_audio_irq()
58 ac->curr_bufs[pb] = next; in tw686x_audio_irq()
76 ac->ptr = done->dma - ac->buf[0].dma; in tw686x_audio_irq()
111 ac->ss = ss; in tw686x_pcm_open()
126 ac->ss = NULL; in tw686x_pcm_close()
184 list_add_tail(&ac->buf[i].list, &ac->buf_list); in tw686x_pcm_prepare()
195 ac->ptr = 0; in tw686x_pcm_prepare()
220 if (ac->curr_bufs[0] && ac->curr_bufs[1]) { in tw686x_pcm_trigger()
324 u32 reg = pb ? ADMA_B_ADDR[ac->ch] : ADMA_P_ADDR[ac->ch]; in tw686x_audio_dma_alloc()
388 ac->dev = dev; in tw686x_audio_init()
[all …]
/linux/sound/soc/qcom/qdsp6/
A Dq6asm.c541 q6asm_audio_client_free_buf(ac, &ac->port[dir]); in q6asm_map_memory_regions()
561 kfree(ac); in q6asm_audio_client_release()
597 return ac; in q6asm_get_audio_client()
738 if (ac->cb) in q6asm_stream_callback()
765 if (!ac) { in q6asm_srvc_callback()
807 if (ac->cb) in q6asm_srvc_callback()
850 if (ac) { in q6asm_audio_client_alloc()
852 return ac; in q6asm_audio_client_alloc()
855 ac = kzalloc(sizeof(*ac), GFP_KERNEL); in q6asm_audio_client_alloc()
856 if (!ac) in q6asm_audio_client_alloc()
[all …]
A Dq6asm.h98 void q6asm_audio_client_free(struct audio_client *ac);
101 int q6asm_open_write(struct audio_client *ac, uint32_t stream_id,
105 int q6asm_open_read(struct audio_client *ac, uint32_t stream_id,
107 int q6asm_enc_cfg_blk_pcm_format_support(struct audio_client *ac,
112 int q6asm_read(struct audio_client *ac, uint32_t stream_id);
119 int q6asm_stream_media_format_block_flac(struct audio_client *ac,
128 int q6asm_stream_media_format_block_alac(struct audio_client *ac,
131 int q6asm_stream_media_format_block_ape(struct audio_client *ac,
136 int q6asm_run_nowait(struct audio_client *ac, uint32_t stream_id,
138 int q6asm_stream_remove_initial_silence(struct audio_client *ac,
[all …]
/linux/drivers/s390/crypto/
A Dap_card.c86 if (ac == aq->card) in request_count_store()
107 if (ac == aq->card) in requestq_count_show()
126 if (ac == aq->card) in pendingq_count_show()
161 if (cfg && !ac->config) in config_store()
170 ap_send_config_uevent(&ac->ap_dev, ac->config); in config_store()
219 kfree(ac); in ap_card_device_release()
225 struct ap_card *ac; in ap_card_create() local
227 ac = kzalloc(sizeof(*ac), GFP_KERNEL); in ap_card_create()
228 if (!ac) in ap_card_create()
236 ac->id = id; in ap_card_create()
[all …]
A Dzcrypt_cex4.c80 struct ap_card *ac = to_ap_card(dev); in cca_serialnr_show() local
192 struct ap_card *ac = to_ap_card(dev); in ep11_api_ordinalnr_show() local
196 ep11_get_card_info(ac->id, &ci, zc->online); in ep11_api_ordinalnr_show()
213 struct ap_card *ac = to_ap_card(dev); in ep11_fw_version_show() local
217 ep11_get_card_info(ac->id, &ci, zc->online); in ep11_fw_version_show()
236 struct ap_card *ac = to_ap_card(dev); in ep11_serialnr_show() local
240 ep11_get_card_info(ac->id, &ci, zc->online); in ep11_serialnr_show()
270 struct ap_card *ac = to_ap_card(dev); in ep11_card_op_modes_show() local
274 ep11_get_card_info(ac->id, &ci, zc->online); in ep11_card_op_modes_show()
443 zc->card = ac; in zcrypt_cex4_card_probe()
[all …]
A Dap_bus.c1573 aq->card = ac; in ap_scan_domains()
1664 if (ac) { in ap_scan_adapter()
1689 if (ac) { in ap_scan_adapter()
1702 if (ac) { in ap_scan_adapter()
1714 if (ac) { in ap_scan_adapter()
1721 ac = NULL; in ap_scan_adapter()
1727 ac = NULL; in ap_scan_adapter()
1733 ap_send_config_uevent(&ac->ap_dev, ac->config); in ap_scan_adapter()
1739 ap_send_config_uevent(&ac->ap_dev, ac->config); in ap_scan_adapter()
1744 if (!ac) { in ap_scan_adapter()
[all …]
/linux/include/linux/ceph/
A Dauth.h39 int (*is_authenticated)(struct ceph_auth_client *ac);
45 int (*should_authenticate)(struct ceph_auth_client *ac);
71 int (*verify_authorizer_reply)(struct ceph_auth_client *ac,
76 void (*invalidate_authorizer)(struct ceph_auth_client *ac,
80 void (*reset)(struct ceph_auth_client *ac);
82 void (*destroy)(struct ceph_auth_client *ac);
112 extern void ceph_auth_destroy(struct ceph_auth_client *ac);
114 extern void ceph_auth_reset(struct ceph_auth_client *ac);
123 extern int ceph_build_auth(struct ceph_auth_client *ac,
127 int __ceph_auth_get_authorizer(struct ceph_auth_client *ac,
[all …]
/linux/fs/ext4/
A Dmballoc.c2017 ac->ac_b_ex.fe_len = min(ac->ac_b_ex.fe_len, ac->ac_g_ex.fe_len); in ext4_mb_use_best_found()
2023 ac->ac_f_ex = ac->ac_b_ex; in ext4_mb_use_best_found()
2052 if (ac->ac_o_ex.fe_len < ac->ac_b_ex.fe_len) in ext4_mb_use_best_found()
2826 ac->ac_b_ex.fe_len, ac->ac_o_ex.fe_len, ac->ac_status, in ext4_mb_regular_allocator()
4629 ac->ac_f_ex = ac->ac_b_ex; in ext4_mb_new_inode_pa()
4683 ac->ac_f_ex = ac->ac_b_ex; in ext4_mb_new_group_pa()
5106 ac->ac_status, ac->ac_flags); in ext4_mb_show_ac()
5229 ac->ac_g_ex = ac->ac_o_ex; in ext4_mb_initialize_context()
5441 ext4_mb_put_pa(ac, ac->ac_sb, pa); in ext4_mb_release_context()
5600 ac->ac_o_ex.fe_len >= ac->ac_f_ex.fe_len) in ext4_mb_new_blocks()
[all …]
/linux/fs/ocfs2/
A Dsuballoc.c141 kfree(ac); in ocfs2_free_alloc_context()
752 if (ac) in ocfs2_block_group_alloc()
1009 *ac = NULL; in ocfs2_reserve_new_metadata_blocks()
1023 ac); in ocfs2_reserve_new_metadata()
1110 *ac = NULL; in ocfs2_reserve_new_inode()
1164 *ac); in ocfs2_reserve_clusters_with_limit()
1211 *ac = NULL; in ocfs2_reserve_clusters_with_limit()
1892 BUG_ON(ac->ac_bits_given >= ac->ac_bits_wanted); in ocfs2_claim_suballoc_bits()
2001 BUG_ON(!ac); in ocfs2_claim_metadata()
2072 BUG_ON(!ac); in ocfs2_find_new_inode_loc()
[all …]
A Dsuballoc.h53 return ac->ac_bits_wanted - ac->ac_bits_given; in ocfs2_alloc_context_bits_left()
63 struct ocfs2_alloc_context **ac);
66 struct ocfs2_alloc_context **ac);
68 struct ocfs2_alloc_context **ac);
71 struct ocfs2_alloc_context **ac);
90 struct ocfs2_alloc_context *ac,
99 struct ocfs2_alloc_context *ac,
104 struct ocfs2_alloc_context *ac,
113 struct ocfs2_alloc_context *ac,
211 struct ocfs2_alloc_context *ac,
[all …]
A Dlocalalloc.c57 struct ocfs2_alloc_context *ac);
623 BUG_ON(!ac); in ocfs2_reserve_local_alloc_bits()
733 ac->ac_resv); in ocfs2_claim_local_alloc_bits()
1104 if (!(*ac)) { in ocfs2_local_alloc_reserve_for_window()
1118 ocfs2_free_ac_resource(*ac); in ocfs2_local_alloc_reserve_for_window()
1129 *bitmap_bh = (*ac)->ac_bh; in ocfs2_local_alloc_reserve_for_window()
1133 if ((status < 0) && *ac) { in ocfs2_local_alloc_reserve_for_window()
1135 *ac = NULL; in ocfs2_local_alloc_reserve_for_window()
1249 &ac, in ocfs2_local_alloc_slide_window()
1317 if (ac) in ocfs2_local_alloc_slide_window()
[all …]
/linux/fs/afs/
A Dvl_rotate.c24 vc->ac.error = SHRT_MAX; in afs_begin_vlserver_operation()
94 vc->ac.tried, vc->ac.index, in afs_select_vlserver()
227 memset(&vc->ac, 0, sizeof(vc->ac)); in afs_select_vlserver()
229 if (!vc->ac.alist) in afs_select_vlserver()
230 vc->ac.alist = alist; in afs_select_vlserver()
234 vc->ac.index = -1; in afs_select_vlserver()
237 ASSERT(vc->ac.alist); in afs_select_vlserver()
244 _debug("VL address %d/%d", vc->ac.index, vc->ac.alist->nr_addrs); in afs_select_vlserver()
246 _leave(" = t %pISpc", &vc->ac.alist->addrs[vc->ac.index].transport); in afs_select_vlserver()
323 vc->ac.tried, vc->ac.index, vc->ac.abort_code, vc->ac.error, in afs_vl_dump_edestaddrreq()
[all …]
A Drotate.c120 op->ac.tried, op->ac.index, in afs_select_fileserver()
389 memset(&op->ac, 0, sizeof(op->ac)); in afs_select_fileserver()
391 if (!op->ac.alist) in afs_select_fileserver()
392 op->ac.alist = alist; in afs_select_fileserver()
396 op->ac.index = -1; in afs_select_fileserver()
399 ASSERT(op->ac.alist); in afs_select_fileserver()
407 op->index, op->ac.index, op->ac.alist->nr_addrs, in afs_select_fileserver()
408 &op->ac.alist->addrs[op->ac.index].transport); in afs_select_fileserver()
419 alist = op->ac.alist; in afs_select_fileserver()
511 op->ac.tried, op->ac.index, op->ac.abort_code, op->ac.error, in afs_dump_edestaddrreq()
[all …]
A Daddr_list.c359 if (!ac->alist) in afs_iterate_addresses()
362 set = ac->alist->responded; in afs_iterate_addresses()
364 _enter("%lx-%lx-%lx,%d", set, failed, ac->tried, ac->index); in afs_iterate_addresses()
366 ac->nr_iterations++; in afs_iterate_addresses()
380 ac->index = index; in afs_iterate_addresses()
382 ac->responded = false; in afs_iterate_addresses()
393 alist = ac->alist; in afs_end_cursor()
395 if (ac->responded && in afs_end_cursor()
397 test_bit(ac->alist->preferred, &ac->tried)) in afs_end_cursor()
400 ac->alist = NULL; in afs_end_cursor()
[all …]
/linux/drivers/net/ethernet/pensando/ionic/
A Dionic_rx_filter.c24 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()
48 switch (le16_to_cpu(ac->match)) { in ionic_rx_filter_replay()
56 err, ac->mac.addr); in ionic_rx_filter_replay()
62 ac->mac.addr); in ionic_rx_filter_replay()
133 ac = &ctx->cmd.rx_filter_add; in ionic_rx_filter_save()
135 switch (le16_to_cpu(ac->match)) { in ionic_rx_filter_save()
137 key = le16_to_cpu(ac->vlan.vlan); in ionic_rx_filter_save()
141 key = *(u32 *)ac->mac.addr; in ionic_rx_filter_save()
252 le16_to_cpu(ac->match)); in ionic_rx_filter_find()
[all …]
/linux/kernel/
A Dacct.c412 static void fill_ac(acct_t *ac) in fill_ac() argument
423 memset(ac, 0, sizeof(acct_t)); in fill_ac()
426 strlcpy(ac->ac_comm, current->comm, sizeof(ac->ac_comm)); in fill_ac()
444 ac->ac_etime_hi = etime >> 16; in fill_ac()
445 ac->ac_etime_lo = (u16) etime; in fill_ac()
452 ac->ac_ahz = AHZ; in fill_ac()
460 ac->ac_flag = pacct->ac_flag; in fill_ac()
472 acct_t ac; in do_acct_process() local
492 fill_ac(&ac); in do_acct_process()
498 ac.ac_uid16 = ac.ac_uid; in do_acct_process()
[all …]
/linux/drivers/crypto/axis/
A Dartpec6_crypto.c512 ac->pending_count++; in artpec6_crypto_start_dma()
2021 ac->pad_buffer, in artpec6_crypto_prepare_aead()
2071 struct artpec6_crypto *ac = from_timer(ac, t, timer); in artpec6_crypto_timeout() local
2126 ac->pending_count--; in artpec6_crypto_task()
2878 if (!ac) in artpec6_crypto_probe()
2889 ac->base = base; in artpec6_crypto_probe()
2896 if (!ac->dma_cache) in artpec6_crypto_probe()
2908 if (!ac->pad_buffer) in artpec6_crypto_probe()
2910 ac->pad_buffer = PTR_ALIGN(ac->pad_buffer, ARTPEC_CACHE_LINE_MAX); in artpec6_crypto_probe()
2914 if (!ac->zero_buffer) in artpec6_crypto_probe()
[all …]

Completed in 72 milliseconds

12345678910>>...14