Home
last modified time | relevance | path

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

12345678910>>...13

/kernel/linux/linux-5.10/drivers/input/misc/
Dadxl34x.c181 #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 …]
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 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 …]
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 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 …]
/kernel/linux/linux-5.10/net/ceph/
Dauth.c24 static int ceph_auth_init_protocol(struct ceph_auth_client *ac, int protocol) in ceph_auth_init_protocol() argument
28 return ceph_auth_none_init(ac); in ceph_auth_init_protocol()
30 return ceph_x_init(ac); in ceph_auth_init_protocol()
41 struct ceph_auth_client *ac; in ceph_auth_init() local
47 ac = kzalloc(sizeof(*ac), GFP_NOFS); in ceph_auth_init()
48 if (!ac) in ceph_auth_init()
51 mutex_init(&ac->mutex); in ceph_auth_init()
52 ac->negotiating = true; in ceph_auth_init()
54 ac->name = name; in ceph_auth_init()
56 ac->name = CEPH_AUTH_NAME_DEFAULT; in ceph_auth_init()
[all …]
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()
22 static void destroy(struct ceph_auth_client *ac) in destroy() argument
24 kfree(ac->private); in destroy()
25 ac->private = NULL; in destroy()
28 static int is_authenticated(struct ceph_auth_client *ac) in is_authenticated() argument
30 struct ceph_auth_none_info *xi = ac->private; in is_authenticated()
35 static int should_authenticate(struct ceph_auth_client *ac) in should_authenticate() argument
37 struct ceph_auth_none_info *xi = ac->private; in should_authenticate()
42 static int ceph_auth_none_build_authorizer(struct ceph_auth_client *ac, in ceph_auth_none_build_authorizer() argument
[all …]
Dauth_x.c20 static void ceph_x_validate_tickets(struct ceph_auth_client *ac, int *pneed);
22 static int ceph_x_is_authenticated(struct ceph_auth_client *ac) in ceph_x_is_authenticated() argument
24 struct ceph_x_info *xi = ac->private; in ceph_x_is_authenticated()
27 ceph_x_validate_tickets(ac, &need); in ceph_x_is_authenticated()
29 ac->want_keys, need, xi->have_keys); in ceph_x_is_authenticated()
30 return (ac->want_keys & xi->have_keys) == ac->want_keys; in ceph_x_is_authenticated()
33 static int ceph_x_should_authenticate(struct ceph_auth_client *ac) in ceph_x_should_authenticate() argument
35 struct ceph_x_info *xi = ac->private; in ceph_x_should_authenticate()
38 ceph_x_validate_tickets(ac, &need); in ceph_x_should_authenticate()
40 ac->want_keys, need, xi->have_keys); in ceph_x_should_authenticate()
[all …]
/kernel/linux/linux-5.10/drivers/acpi/
Dac.c96 static int acpi_ac_get_state(struct acpi_ac *ac) in acpi_ac_get_state() argument
100 if (!ac) in acpi_ac_get_state()
104 ac->state = 1; in acpi_ac_get_state()
108 status = acpi_evaluate_integer(ac->device->handle, "_PSR", NULL, in acpi_ac_get_state()
109 &ac->state); in acpi_ac_get_state()
113 ac->state = ACPI_AC_STATUS_UNKNOWN; in acpi_ac_get_state()
127 struct acpi_ac *ac = to_acpi_ac(psy); in get_ac_property() local
129 if (!ac) in get_ac_property()
132 if (acpi_ac_get_state(ac)) in get_ac_property()
137 val->intval = ac->state; in get_ac_property()
[all …]
/kernel/linux/linux-5.10/drivers/media/pci/tw686x/
Dtw686x-audio.c38 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 …]
/kernel/linux/linux-5.10/drivers/s390/crypto/
Dap_card.c25 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 …]
Dzcrypt_cex4.c82 struct ap_card *ac = to_ap_card(dev); in cca_serialnr_show() local
83 struct zcrypt_card *zc = ac->private; in cca_serialnr_show()
88 cca_get_info(ac->id, ap_domain_index, &ci, zc->online); in cca_serialnr_show()
194 struct ap_card *ac = to_ap_card(dev); in ep11_api_ordinalnr_show() local
195 struct zcrypt_card *zc = ac->private; in ep11_api_ordinalnr_show()
199 ep11_get_card_info(ac->id, &ci, zc->online); in ep11_api_ordinalnr_show()
215 struct ap_card *ac = to_ap_card(dev); in ep11_fw_version_show() local
216 struct zcrypt_card *zc = ac->private; in ep11_fw_version_show()
220 ep11_get_card_info(ac->id, &ci, zc->online); in ep11_fw_version_show()
238 struct ap_card *ac = to_ap_card(dev); in ep11_serialnr_show() local
[all …]
/kernel/linux/linux-5.10/sound/soc/qcom/qdsp6/
Dq6asm.c279 static inline void q6asm_add_hdr(struct audio_client *ac, struct apr_hdr *hdr, in q6asm_add_hdr() argument
284 hdr->src_port = ((ac->session << 8) & 0xFF00) | (stream_id); in q6asm_add_hdr()
285 hdr->dest_port = ((ac->session << 8) & 0xFF00) | (stream_id); in q6asm_add_hdr()
288 hdr->token = ac->session; in q6asm_add_hdr()
291 static int q6asm_apr_send_session_pkt(struct q6asm *a, struct audio_client *ac, in q6asm_apr_send_session_pkt() argument
297 mutex_lock(&ac->cmd_lock); in q6asm_apr_send_session_pkt()
298 ac->result.opcode = 0; in q6asm_apr_send_session_pkt()
299 ac->result.status = 0; in q6asm_apr_send_session_pkt()
306 (ac->result.opcode == hdr->opcode) || in q6asm_apr_send_session_pkt()
307 (ac->result.opcode == rsp_opcode), in q6asm_apr_send_session_pkt()
[all …]
Dq6asm.h98 void q6asm_audio_client_free(struct audio_client *ac);
99 int q6asm_write_async(struct audio_client *ac, uint32_t stream_id, uint32_t len,
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);
114 int q6asm_media_format_block_multi_ch_pcm(struct audio_client *ac,
119 int q6asm_stream_media_format_block_flac(struct audio_client *ac,
122 int q6asm_stream_media_format_block_wma_v9(struct audio_client *ac,
125 int q6asm_stream_media_format_block_wma_v10(struct audio_client *ac,
[all …]
/kernel/linux/linux-5.10/include/linux/ceph/
Dauth.h41 int (*is_authenticated)(struct ceph_auth_client *ac);
47 int (*should_authenticate)(struct ceph_auth_client *ac);
54 int (*build_request)(struct ceph_auth_client *ac, void *buf, void *end);
55 int (*handle_reply)(struct ceph_auth_client *ac, int result,
62 int (*create_authorizer)(struct ceph_auth_client *ac, int peer_type,
65 int (*update_authorizer)(struct ceph_auth_client *ac, int peer_type,
67 int (*add_authorizer_challenge)(struct ceph_auth_client *ac,
71 int (*verify_authorizer_reply)(struct ceph_auth_client *ac,
73 void (*invalidate_authorizer)(struct ceph_auth_client *ac,
77 void (*reset)(struct ceph_auth_client *ac);
[all …]
/kernel/linux/linux-5.10/fs/ext4/
Dmballoc.c352 static void ext4_mb_new_preallocation(struct ext4_allocation_context *ac);
1691 static void ext4_mb_use_best_found(struct ext4_allocation_context *ac, in ext4_mb_use_best_found() argument
1694 struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb); in ext4_mb_use_best_found()
1697 BUG_ON(ac->ac_b_ex.fe_group != e4b->bd_group); in ext4_mb_use_best_found()
1698 BUG_ON(ac->ac_status == AC_STATUS_FOUND); in ext4_mb_use_best_found()
1700 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()
1701 ac->ac_b_ex.fe_logical = ac->ac_g_ex.fe_logical; in ext4_mb_use_best_found()
1702 ret = mb_mark_used(e4b, &ac->ac_b_ex); in ext4_mb_use_best_found()
1706 ac->ac_f_ex = ac->ac_b_ex; in ext4_mb_use_best_found()
1708 ac->ac_status = AC_STATUS_FOUND; in ext4_mb_use_best_found()
[all …]
/kernel/linux/linux-5.10/fs/ocfs2/
Dsuballoc.c93 static int ocfs2_claim_suballoc_bits(struct ocfs2_alloc_context *ac,
118 struct ocfs2_alloc_context **ac);
120 void ocfs2_free_ac_resource(struct ocfs2_alloc_context *ac) in ocfs2_free_ac_resource() argument
122 struct inode *inode = ac->ac_inode; in ocfs2_free_ac_resource()
125 if (ac->ac_which != OCFS2_AC_USE_LOCAL) in ocfs2_free_ac_resource()
131 ac->ac_inode = NULL; in ocfs2_free_ac_resource()
133 brelse(ac->ac_bh); in ocfs2_free_ac_resource()
134 ac->ac_bh = NULL; in ocfs2_free_ac_resource()
135 ac->ac_resv = NULL; in ocfs2_free_ac_resource()
136 kfree(ac->ac_find_loc_priv); in ocfs2_free_ac_resource()
[all …]
Dsuballoc.h52 void ocfs2_free_alloc_context(struct ocfs2_alloc_context *ac);
53 static inline int ocfs2_alloc_context_bits_left(struct ocfs2_alloc_context *ac) in ocfs2_alloc_context_bits_left() argument
55 return ac->ac_bits_wanted - ac->ac_bits_given; in ocfs2_alloc_context_bits_left()
65 struct ocfs2_alloc_context **ac);
68 struct ocfs2_alloc_context **ac);
70 struct ocfs2_alloc_context **ac);
73 struct ocfs2_alloc_context **ac);
92 struct ocfs2_alloc_context *ac,
101 struct ocfs2_alloc_context *ac,
106 struct ocfs2_alloc_context *ac,
[all …]
Dlocalalloc.c53 struct ocfs2_alloc_context **ac,
59 struct ocfs2_alloc_context *ac);
618 struct ocfs2_alloc_context *ac) in ocfs2_reserve_local_alloc_bits() argument
625 BUG_ON(!ac); in ocfs2_reserve_local_alloc_bits()
693 ac->ac_inode = local_alloc_inode; in ocfs2_reserve_local_alloc_bits()
695 ac->ac_alloc_slot = osb->slot_num; in ocfs2_reserve_local_alloc_bits()
696 ac->ac_which = OCFS2_AC_USE_LOCAL; in ocfs2_reserve_local_alloc_bits()
698 ac->ac_bh = osb->local_alloc_bh; in ocfs2_reserve_local_alloc_bits()
707 (unsigned long long)ac->ac_max_block, in ocfs2_reserve_local_alloc_bits()
717 struct ocfs2_alloc_context *ac, in ocfs2_claim_local_alloc_bits() argument
[all …]
/kernel/linux/linux-5.10/fs/afs/
Dvl_rotate.c24 vc->ac.error = SHRT_MAX; in afs_begin_vlserver_operation()
90 int error = vc->ac.error, i; in afs_select_vlserver()
94 vc->ac.tried, vc->ac.index, in afs_select_vlserver()
95 error, vc->ac.abort_code); in afs_select_vlserver()
114 _leave(" = f [okay/local %d]", vc->ac.error); in afs_select_vlserver()
121 switch (vc->ac.abort_code) { in afs_select_vlserver()
133 vc->error = afs_abort_to_error(vc->ac.abort_code); in afs_select_vlserver()
162 afs_end_cursor(&vc->ac); in afs_select_vlserver()
215 ASSERTCMP(vc->ac.alist, ==, NULL); in afs_select_vlserver()
227 memset(&vc->ac, 0, sizeof(vc->ac)); in afs_select_vlserver()
[all …]
Drotate.c116 int error = op->ac.error, i; in afs_select_fileserver()
120 op->ac.tried, op->ac.index, in afs_select_fileserver()
121 error, op->ac.abort_code); in afs_select_fileserver()
147 switch (op->ac.abort_code) { in afs_select_fileserver()
192 op->error = afs_abort_to_error(op->ac.abort_code); in afs_select_fileserver()
197 afs_busy(op->volume, op->ac.abort_code); in afs_select_fileserver()
221 afs_busy(op->volume, op->ac.abort_code); in afs_select_fileserver()
276 op->error = afs_abort_to_error(op->ac.abort_code); in afs_select_fileserver()
303 afs_end_cursor(&op->ac); in afs_select_fileserver()
364 ASSERTCMP(op->ac.alist, ==, NULL); in afs_select_fileserver()
[all …]
Daddr_list.c354 bool afs_iterate_addresses(struct afs_addr_cursor *ac) in afs_iterate_addresses() argument
359 if (!ac->alist) in afs_iterate_addresses()
362 set = ac->alist->responded; in afs_iterate_addresses()
363 failed = ac->alist->failed; 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()
368 set &= ~(failed | ac->tried); in afs_iterate_addresses()
373 index = READ_ONCE(ac->alist->preferred); in afs_iterate_addresses()
380 ac->index = index; in afs_iterate_addresses()
381 set_bit(index, &ac->tried); in afs_iterate_addresses()
[all …]
/kernel/linux/linux-5.10/kernel/
Dacct.c415 static void fill_ac(acct_t *ac) in fill_ac() argument
426 memset(ac, 0, sizeof(acct_t)); in fill_ac()
428 ac->ac_version = ACCT_VERSION | ACCT_BYTEORDER; in fill_ac()
429 strlcpy(ac->ac_comm, current->comm, sizeof(ac->ac_comm)); in fill_ac()
437 ac->ac_etime = encode_float(elapsed); in fill_ac()
439 ac->ac_etime = encode_comp_t(elapsed < (unsigned long) -1l ? in fill_ac()
447 ac->ac_etime_hi = etime >> 16; in fill_ac()
448 ac->ac_etime_lo = (u16) etime; in fill_ac()
453 ac->ac_btime = clamp_t(time64_t, btime, 0, U32_MAX); in fill_ac()
455 ac->ac_ahz = AHZ; in fill_ac()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/pensando/ionic/
Dionic_rx_filter.c23 struct ionic_rx_filter_add_cmd *ac; in ionic_rx_filter_replay() local
34 ac = &ctx.cmd.rx_filter_add; in ionic_rx_filter_replay()
40 memcpy(ac, &f->cmd, sizeof(f->cmd)); in ionic_rx_filter_replay()
47 switch (le16_to_cpu(ac->match)) { in ionic_rx_filter_replay()
51 le16_to_cpu(ac->vlan.vlan)); in ionic_rx_filter_replay()
55 err, ac->mac.addr); in ionic_rx_filter_replay()
60 le16_to_cpu(ac->vlan.vlan), in ionic_rx_filter_replay()
61 ac->mac.addr); in ionic_rx_filter_replay()
126 struct ionic_rx_filter_add_cmd *ac; in ionic_rx_filter_save() local
131 ac = &ctx->cmd.rx_filter_add; in ionic_rx_filter_save()
[all …]
/kernel/linux/linux-5.10/Documentation/admin-guide/media/
Dcx88-cardlist.rst79 - 18ac:db00
87 - 18ac:d810, 18ac:d800
103 - 18ac:db10, 18ac:db11
131 - 18ac:d820
143 - 18ac:d500
195 - 18ac:db50, 18ac:db54
203 - 18ac:db40, 18ac:db44
255 - 18ac:d530
275 - 18ac:db30
279 - 18ac:d610
[all …]
/kernel/linux/linux-5.10/drivers/crypto/axis/
Dartpec6_crypto.c450 struct artpec6_crypto *ac = dev_get_drvdata(artpec6_crypto_dev); in artpec6_crypto_busy() local
451 int fifo_count = ac->pending_count; in artpec6_crypto_busy()
458 struct artpec6_crypto *ac = dev_get_drvdata(artpec6_crypto_dev); in artpec6_crypto_submit() local
461 spin_lock_bh(&ac->queue_lock); in artpec6_crypto_submit()
464 list_add_tail(&req->list, &ac->pending); in artpec6_crypto_submit()
468 list_add_tail(&req->list, &ac->queue); in artpec6_crypto_submit()
473 spin_unlock_bh(&ac->queue_lock); in artpec6_crypto_submit()
480 struct artpec6_crypto *ac = dev_get_drvdata(artpec6_crypto_dev); in artpec6_crypto_start_dma() local
481 enum artpec6_crypto_variant variant = ac->variant; in artpec6_crypto_start_dma()
482 void __iomem *base = ac->base; in artpec6_crypto_start_dma()
[all …]
/kernel/linux/linux-5.10/net/mac80211/
Dsta_info.c86 int ac, i; in __cleanup_single_sta() local
123 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in __cleanup_single_sta()
124 local->total_ps_buffered -= skb_queue_len(&sta->ps_tx_buf[ac]); in __cleanup_single_sta()
125 ieee80211_purge_tx_queue(&local->hw, &sta->ps_tx_buf[ac]); in __cleanup_single_sta()
126 ieee80211_purge_tx_queue(&local->hw, &sta->tx_filtered[ac]); in __cleanup_single_sta()
774 static unsigned long ieee80211_tids_for_ac(int ac) in ieee80211_tids_for_ac() argument
777 switch (ac) { in ieee80211_tids_for_ac()
798 int ac; in __sta_info_recalc_tim() local
834 for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) { in __sta_info_recalc_tim()
837 if (ignore_for_tim & ieee80211_ac_to_qos_mask[ac]) in __sta_info_recalc_tim()
[all …]

12345678910>>...13