Home
last modified time | relevance | path

Searched +full:1 +full:ac (Results 1 – 25 of 1049) sorted by relevance

12345678910>>...42

/kernel/linux/linux-5.10/drivers/input/misc/
Dadxl34x.c47 #define DATAX1 0x33 /* R X-Axis Data 1 */
49 #define DATAY1 0x35 /* R Y-Axis Data 1 */
51 #define DATAZ1 0x37 /* R Z-Axis Data 1 */
64 #define DATA_READY (1 << 7)
65 #define SINGLE_TAP (1 << 6)
66 #define DOUBLE_TAP (1 << 5)
67 #define ACTIVITY (1 << 4)
68 #define INACTIVITY (1 << 3)
69 #define FREE_FALL (1 << 2)
70 #define WATERMARK (1 << 1)
[all …]
/kernel/linux/linux-6.6/drivers/input/misc/
Dadxl34x.c47 #define DATAX1 0x33 /* R X-Axis Data 1 */
49 #define DATAY1 0x35 /* R Y-Axis Data 1 */
51 #define DATAZ1 0x37 /* R Z-Axis Data 1 */
64 #define DATA_READY (1 << 7)
65 #define SINGLE_TAP (1 << 6)
66 #define DOUBLE_TAP (1 << 5)
67 #define ACTIVITY (1 << 4)
68 #define INACTIVITY (1 << 3)
69 #define FREE_FALL (1 << 2)
70 #define WATERMARK (1 << 1)
[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_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-6.6/drivers/power/supply/
Dsurface_charger.c3 * AC driver for 7th-generation Microsoft Surface devices via Surface System
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()
[all …]
/kernel/linux/linux-6.6/net/ceph/
Dauth.c24 static int init_protocol(struct ceph_auth_client *ac, int proto) in init_protocol() argument
30 return ceph_auth_none_init(ac); in init_protocol()
32 return ceph_x_init(ac); in init_protocol()
39 void ceph_auth_set_global_id(struct ceph_auth_client *ac, u64 global_id) in ceph_auth_set_global_id() argument
46 if (ac->global_id && global_id != ac->global_id) in ceph_auth_set_global_id()
47 pr_err("global_id changed from %llu to %llu\n", ac->global_id, in ceph_auth_set_global_id()
50 ac->global_id = global_id; in ceph_auth_set_global_id()
60 struct ceph_auth_client *ac; in ceph_auth_init() local
62 ac = kzalloc(sizeof(*ac), GFP_NOFS); in ceph_auth_init()
63 if (!ac) in ceph_auth_init()
[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()
28 ceph_x_validate_tickets(ac, &need); in ceph_x_is_authenticated()
29 missing = ac->want_keys & ~xi->have_keys; in ceph_x_is_authenticated()
32 ac->want_keys, xi->have_keys, missing, !missing); in ceph_x_is_authenticated()
36 static int ceph_x_should_authenticate(struct ceph_auth_client *ac) in ceph_x_should_authenticate() argument
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()
43 ac->want_keys, xi->have_keys, need, !!need); in ceph_x_should_authenticate()
[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 …]
/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-6.6/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-6.6/drivers/s390/crypto/
Dap_card.c25 struct ap_card *ac = to_ap_card(dev); in hwtype_show() local
27 return sysfs_emit(buf, "%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 sysfs_emit(buf, "%d\n", ac->raw_hwtype); in raw_hwtype_show()
45 struct ap_card *ac = to_ap_card(dev); in depth_show() local
47 return sysfs_emit(buf, "%d\n", ac->queue_depth); in depth_show()
55 struct ap_card *ac = to_ap_card(dev); in ap_functions_show() local
57 return sysfs_emit(buf, "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 …]
/kernel/linux/linux-6.6/fs/ext4/
Dmballoc.c101 * [ group 0 bitmap][ group 0 buddy] [group 1][ group 1]...
134 * 1) Array of largest free order lists (sbi->s_mb_largest_free_orders)
149 * average fragment size >= 2^i and < 2^(i+1). The average fragment size
160 * in the data structure (1) above where largest_free_order = order of the
163 * lookup in O(1) time.
168 * size group lists (data structure 2) in O(1) time.
177 * suitable block group in O(1) time and results in faster allocation at the
274 * 1) if buddy is referenced, it's already initialized
420 static void ext4_mb_new_preallocation(struct ext4_allocation_context *ac);
422 static bool ext4_mb_good_group(struct ext4_allocation_context *ac,
[all …]
/kernel/linux/linux-5.10/drivers/acpi/
Dac.c3 * acpi_ac.c - ACPI AC Adapter Driver ($Revision: 27 $)
24 #define ACPI_AC_DEVICE_NAME "AC Adapter"
32 ACPI_MODULE_NAME("ac");
35 MODULE_DESCRIPTION("ACPI AC Adapter Driver");
56 { "INT33F4", -1 }, /* X-Powers AXP288 PMIC */
66 static int ac_check_pmic = 1;
70 .name = "ac",
93 AC Adapter Management
96 static int acpi_ac_get_state(struct acpi_ac *ac) in acpi_ac_get_state() argument
100 if (!ac) in acpi_ac_get_state()
[all …]
/kernel/linux/linux-5.10/fs/ext4/
Dmballoc.c101 * [ group 0 bitmap][ group 0 buddy] [group 1][ group 1]...
210 * 1) if buddy is referenced, it's already initialized
353 static void ext4_mb_new_preallocation(struct ext4_allocation_context *ac);
357 * 1. We sample the percpu discard_pa_seq counter before trying for block
459 if (order > e4b->bd_blkbits + 1) { in mb_find_buddy()
466 *max = 1 << (e4b->bd_blkbits + 3); in mb_find_buddy()
609 int order = e4b->bd_blkbits + 1; in __mb_check_buddy()
626 while (order > 1) { in __mb_check_buddy()
629 buddy2 = mb_find_buddy(e4b, order - 1, &max2); in __mb_check_buddy()
638 /* only single bit in buddy2 may be 1 */ in __mb_check_buddy()
[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.c24 #define CEX4A_MIN_MOD_SIZE 1 /* 8 bits */
82 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()
124 if (ci.new_aes_mk_state >= '1' && ci.new_aes_mk_state <= '3') in cca_mkvps_show()
126 new_state[ci.new_aes_mk_state - '1'], in cca_mkvps_show()
131 if (ci.cur_aes_mk_state >= '1' && ci.cur_aes_mk_state <= '2') in cca_mkvps_show()
134 cao_state[ci.cur_aes_mk_state - '1'], in cca_mkvps_show()
139 if (ci.old_aes_mk_state >= '1' && ci.old_aes_mk_state <= '2') in cca_mkvps_show()
142 cao_state[ci.old_aes_mk_state - '1'], in cca_mkvps_show()
[all …]
/kernel/linux/linux-6.6/fs/ocfs2/
Dsuballoc.c91 static int ocfs2_claim_suballoc_bits(struct ocfs2_alloc_context *ac,
116 struct ocfs2_alloc_context **ac);
118 void ocfs2_free_ac_resource(struct ocfs2_alloc_context *ac) in ocfs2_free_ac_resource() argument
120 struct inode *inode = ac->ac_inode; in ocfs2_free_ac_resource()
123 if (ac->ac_which != OCFS2_AC_USE_LOCAL) in ocfs2_free_ac_resource()
124 ocfs2_inode_unlock(inode, 1); in ocfs2_free_ac_resource()
129 ac->ac_inode = NULL; in ocfs2_free_ac_resource()
131 brelse(ac->ac_bh); in ocfs2_free_ac_resource()
132 ac->ac_bh = NULL; in ocfs2_free_ac_resource()
133 ac->ac_resv = NULL; in ocfs2_free_ac_resource()
[all …]
/kernel/linux/linux-5.10/sound/soc/qcom/qdsp6/
Dq6asm.c258 struct audio_client *session[MAX_SESSIONS + 1];
270 /* idx:1 out port, 0: in port */
279 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()
[all …]
/kernel/linux/linux-6.6/sound/soc/qcom/qdsp6/
Dq6asm.c258 struct audio_client *session[MAX_SESSIONS + 1];
270 /* idx:1 out port, 0: in port */
279 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()
[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()
126 ocfs2_inode_unlock(inode, 1); 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()
[all …]
/kernel/linux/linux-6.6/drivers/acpi/
Dac.c3 * acpi_ac.c - ACPI AC Adapter Driver (Revision: 27)
9 #define pr_fmt(fmt) "ACPI: AC: " fmt
24 #define ACPI_AC_DEVICE_NAME "AC Adapter"
32 MODULE_DESCRIPTION("ACPI AC Adapter Driver");
54 .name = "ac",
74 /* AC Adapter Management */
75 static int acpi_ac_get_state(struct acpi_ac *ac) in acpi_ac_get_state() argument
79 if (!ac) in acpi_ac_get_state()
83 ac->state = 1; in acpi_ac_get_state()
87 status = acpi_evaluate_integer(ac->device->handle, "_PSR", NULL, in acpi_ac_get_state()
[all …]
/kernel/linux/linux-5.10/fs/afs/
Dvl_rotate.c24 vc->ac.error = SHRT_MAX; in afs_begin_vlserver_operation()
81 vc->untried = (1UL << vc->server_list->nr_servers) - 1; in afs_start_vl_iteration()
82 vc->index = -1; in afs_start_vl_iteration()
96 int error = vc->ac.error, i; in afs_select_vlserver()
100 vc->ac.tried, vc->ac.index, in afs_select_vlserver()
101 error, vc->ac.abort_code); in afs_select_vlserver()
120 _leave(" = f [okay/local %d]", vc->ac.error); in afs_select_vlserver()
127 switch (vc->ac.abort_code) { in afs_select_vlserver()
134 //vc->server_list->weird_mask |= 1 << vc->index; in afs_select_vlserver()
139 vc->error = afs_abort_to_error(vc->ac.abort_code); in afs_select_vlserver()
[all …]
/kernel/linux/linux-6.6/fs/afs/
Dvl_rotate.c24 vc->ac.error = SHRT_MAX; in afs_begin_vlserver_operation()
81 vc->untried = (1UL << vc->server_list->nr_servers) - 1; in afs_start_vl_iteration()
82 vc->index = -1; in afs_start_vl_iteration()
96 int error = vc->ac.error, i; in afs_select_vlserver()
100 vc->ac.tried, vc->ac.index, in afs_select_vlserver()
101 error, vc->ac.abort_code); in afs_select_vlserver()
120 _leave(" = f [okay/local %d]", vc->ac.error); in afs_select_vlserver()
127 switch (vc->ac.abort_code) { in afs_select_vlserver()
134 //vc->server_list->weird_mask |= 1 << vc->index; in afs_select_vlserver()
139 vc->error = afs_abort_to_error(vc->ac.abort_code); in afs_select_vlserver()
[all …]
/kernel/linux/linux-6.6/lib/
Dbase64.c34 u32 ac = 0; in base64_encode() local
40 ac = (ac << 8) | src[i]; in base64_encode()
44 *cp++ = base64_table[(ac >> bits) & 0x3f]; in base64_encode()
48 *cp++ = base64_table[(ac << (6 - bits)) & 0x3f]; in base64_encode()
71 * or -1 if the string isn't a valid base64 string.
75 u32 ac = 0; in base64_decode() local
84 ac = (ac << 6); in base64_decode()
91 return -1; in base64_decode()
92 ac = (ac << 6) | (p - base64_table); in base64_decode()
96 *bp++ = (u8)(ac >> bits); in base64_decode()
[all …]
/kernel/linux/linux-6.6/kernel/
Dacct.c20 * Plugged two leaks. 1) It didn't return acct_file into the free_filps if
75 #define SUSPEND (acct_parm[1]) /* <foo% free space - suspend */
114 acct_t ac; member
282 atomic_long_set(&acct->count, 1); in acct_on()
290 mutex_lock_nested(&acct->lock, 1); /* nobody has seen it yet */ in acct_on()
355 #define MAXFRACT ((1 << MANTSIZE) - 1) /* Maximum fractional value. */
363 rnd = value & (1 << (EXPSIZE - 1)); /* Round up? */ in encode_comp_t()
386 #if ACCT_VERSION == 1 || ACCT_VERSION == 2
398 #define MAXFRACT2 ((1ul << MANTSIZE2) - 1) /* Maximum fractional value. */
399 #define MAXEXP2 ((1 << EXPSIZE2) - 1) /* Maximum exponent. */
[all …]

12345678910>>...42