Home
last modified time | relevance | path

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

12345678910>>...36

/openbmc/linux/drivers/input/misc/
H A 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 …]
/openbmc/linux/net/ceph/
H A 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 …]
H 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()
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 …]
H A 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 …]
/openbmc/linux/drivers/power/supply/
H A Dsurface_charger.c67 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 …]
/openbmc/qemu/target/i386/tcg/
H A Daccess.c55 static void *access_ptr(X86Access *ac, vaddr addr, unsigned len) in access_ptr() argument
57 vaddr offset = addr - ac->vaddr; in access_ptr()
59 assert(addr >= ac->vaddr); in access_ptr()
62 if (!ac->haddr1) { in access_ptr()
67 assert(offset <= ac->size1 - len); in access_ptr()
68 return ac->haddr1 + offset; in access_ptr()
70 if (likely(offset <= ac->size1 - len)) { in access_ptr()
71 return ac->haddr1 + offset; in access_ptr()
73 assert(offset <= ac->size - len); in access_ptr()
79 if (likely(offset >= ac->size1)) { in access_ptr()
[all …]
H A Dfpu_helper.c88 static floatx80 do_fldt(X86Access *ac, target_ulong ptr) in do_fldt() argument
92 temp.l.lower = access_ldq(ac, ptr); in do_fldt()
93 temp.l.upper = access_ldw(ac, ptr + 8); in do_fldt()
97 static void do_fstt(X86Access *ac, target_ulong ptr, floatx80 f) in do_fstt() argument
102 access_stq(ac, ptr, temp.l.lower); in do_fstt()
103 access_stw(ac, ptr + 8, temp.l.upper); in do_fstt()
425 X86Access ac; in helper_fldt_ST0() local
427 access_prepare(&ac, env, ptr, 10, MMU_DATA_LOAD, GETPC()); in helper_fldt_ST0()
430 env->fpregs[new_fpstt].d = do_fldt(&ac, ptr); in helper_fldt_ST0()
437 X86Access ac; in helper_fstt_ST0() local
[all …]
/openbmc/linux/drivers/acpi/
H A Dac.c75 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()
88 &ac->state); in acpi_ac_get_state()
90 acpi_handle_info(ac->device->handle, in acpi_ac_get_state()
93 ac->state = ACPI_AC_STATUS_UNKNOWN; in acpi_ac_get_state()
105 struct acpi_ac *ac = to_acpi_ac(psy); in get_ac_property() local
107 if (!ac) in get_ac_property()
110 if (acpi_ac_get_state(ac)) in get_ac_property()
[all …]
/openbmc/linux/drivers/media/pci/tw686x/
H A 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 …]
/openbmc/linux/drivers/s390/crypto/
H A 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 …]
/openbmc/linux/sound/soc/qcom/qdsp6/
H A 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 …]
H A 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 …]
/openbmc/linux/include/linux/ceph/
H A Dauth.h39 int (*is_authenticated)(struct ceph_auth_client *ac);
45 int (*should_authenticate)(struct ceph_auth_client *ac);
52 int (*build_request)(struct ceph_auth_client *ac, void *buf, void *end);
53 int (*handle_reply)(struct ceph_auth_client *ac, u64 global_id,
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,
76 void (*invalidate_authorizer)(struct ceph_auth_client *ac,
80 void (*reset)(struct ceph_auth_client *ac);
[all …]
/openbmc/linux/fs/ext4/
H A Dmballoc.c420 static void ext4_mb_new_preallocation(struct ext4_allocation_context *ac);
422 static bool ext4_mb_good_group(struct ext4_allocation_context *ac,
874 static void ext4_mb_choose_next_group_p2_aligned(struct ext4_allocation_context *ac, in ext4_mb_choose_next_group_p2_aligned() argument
877 struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb); in ext4_mb_choose_next_group_p2_aligned()
881 if (ac->ac_status == AC_STATUS_FOUND) in ext4_mb_choose_next_group_p2_aligned()
884 if (unlikely(sbi->s_mb_stats && ac->ac_flags & EXT4_MB_CR_POWER2_ALIGNED_OPTIMIZED)) in ext4_mb_choose_next_group_p2_aligned()
887 for (i = ac->ac_2order; i < MB_NUM_ORDERS(ac->ac_sb); i++) { in ext4_mb_choose_next_group_p2_aligned()
899 if (likely(ext4_mb_good_group(ac, iter->bb_group, CR_POWER2_ALIGNED))) { in ext4_mb_choose_next_group_p2_aligned()
901 ac->ac_flags |= EXT4_MB_CR_POWER2_ALIGNED_OPTIMIZED; in ext4_mb_choose_next_group_p2_aligned()
917 ext4_mb_find_good_group_avg_frag_lists(struct ext4_allocation_context *ac, int order) in ext4_mb_find_good_group_avg_frag_lists() argument
[all …]
/openbmc/linux/fs/ocfs2/
H A 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()
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()
134 kfree(ac->ac_find_loc_priv); in ocfs2_free_ac_resource()
[all …]
H A Dsuballoc.h50 void ocfs2_free_alloc_context(struct ocfs2_alloc_context *ac);
51 static inline int ocfs2_alloc_context_bits_left(struct ocfs2_alloc_context *ac) in ocfs2_alloc_context_bits_left() argument
53 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,
[all …]
/openbmc/qemu/hw/core/
H A Dregister.c75 const RegisterAccessInfo *ac; in register_write() local
79 ac = reg->access; in register_write()
81 if (!ac || !ac->name) { in register_write()
87 old_val = reg->data ? register_read_val(reg) : ac->reset; in register_write()
89 test = (old_val ^ val) & ac->rsvd; in register_write()
95 test = val & ac->unimp; in register_write()
100 prefix, reg->access->name, val, ac->unimp); in register_write()
106 no_w_mask = ac->ro | ac->w1c | ac->rsvd | ~we; in register_write()
108 new_val &= ~(val & ac->w1c); in register_write()
110 if (ac->pre_write) { in register_write()
[all …]
/openbmc/linux/fs/afs/
H A Dvl_rotate.c24 vc->ac.error = SHRT_MAX; in afs_begin_vlserver_operation()
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()
139 vc->error = afs_abort_to_error(vc->ac.abort_code); in afs_select_vlserver()
168 afs_end_cursor(&vc->ac); in afs_select_vlserver()
221 ASSERTCMP(vc->ac.alist, ==, NULL); in afs_select_vlserver()
233 memset(&vc->ac, 0, sizeof(vc->ac)); in afs_select_vlserver()
[all …]
H A 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()
307 afs_end_cursor(&op->ac); in afs_select_fileserver()
368 ASSERTCMP(op->ac.alist, ==, NULL); in afs_select_fileserver()
[all …]
/openbmc/linux/lib/
H A 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()
75 u32 ac = 0; in base64_decode() local
84 ac = (ac << 6); in base64_decode()
92 ac = (ac << 6) | (p - base64_table); in base64_decode()
96 *bp++ = (u8)(ac >> bits); in base64_decode()
99 if (ac & ((1 << bits) - 1)) in base64_decode()
/openbmc/openbmc/poky/meta/recipes-core/gettext/gettext/
H A Dserial-tests-config.patch12 configure.ac | 2 +-
13 gettext-runtime/configure.ac | 2 +-
14 gettext-tools/configure.ac | 2 +-
17 diff --git a/configure.ac b/configure.ac
19 --- a/configure.ac
20 +++ b/configure.ac
30 diff --git a/gettext-runtime/configure.ac b/gettext-runtime/configure.ac
32 --- a/gettext-runtime/configure.ac
33 +++ b/gettext-runtime/configure.ac
43 diff --git a/gettext-tools/configure.ac b/gettext-tools/configure.ac
[all …]
/openbmc/openbmc/meta-openembedded/meta-webserver/recipes-webadmin/webmin/files/
H A Dinit-exclude.patch19 : "$config{'init_dir'}/$ac[0]");
25 - @ac = split(/\s+/, $a);
26 - if (!$nodemap{$ac[2]}) {
27 - push(@acts, $ac[1]);
29 - "1+$r+$ac[0]+$ac[1]+$ac[2]+$w");
30 - push(@actsf, "$config{'init_base'}/rc$r.d/$w$ac[0]$ac[1]");
39 + # @ac = split(/\s+/, $a);
40 + # if (!$nodemap{$ac[2]}) {
41 + # push(@acts, $ac[1]);
43 + # "1+$r+$ac[0]+$ac[1]+$ac[2]+$w");
[all …]
/openbmc/linux/drivers/of/
H A Dcpu.c17 int ac, len; in of_get_cpu_hwid() local
19 ac = of_n_addr_cells(cpun); in of_get_cpu_hwid()
21 if (!cell || !ac || ((sizeof(*cell) * ac * (thread + 1)) > len)) in of_get_cpu_hwid()
24 cell += ac * thread; in of_get_cpu_hwid()
25 return of_read_number(cell, ac); in of_get_cpu_hwid()
56 int ac, prop_len, tid; in __of_find_n_match_cpu_property() local
59 ac = of_n_addr_cells(cpun); in __of_find_n_match_cpu_property()
61 if (!cell && !ac && arch_match_cpu_phys_id(cpu, 0)) in __of_find_n_match_cpu_property()
63 if (!cell || !ac) in __of_find_n_match_cpu_property()
65 prop_len /= sizeof(*cell) * ac; in __of_find_n_match_cpu_property()
[all …]
/openbmc/linux/drivers/net/ethernet/pensando/ionic/
H 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()
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 …]
/openbmc/linux/kernel/
H A Dacct.c114 acct_t ac; member
461 acct_t *ac = &acct->ac; in fill_ac() local
482 memset(ac, 0, sizeof(acct_t)); in fill_ac()
484 ac->ac_version = ACCT_VERSION | ACCT_BYTEORDER; in fill_ac()
485 strscpy(ac->ac_comm, current->comm, sizeof(ac->ac_comm)); in fill_ac()
493 ac->ac_etime = encode_float(elapsed); in fill_ac()
495 ac->ac_etime = encode_comp_t(elapsed < (unsigned long) -1l ? in fill_ac()
503 ac->ac_etime_hi = etime >> 16; in fill_ac()
504 ac->ac_etime_lo = (u16) etime; in fill_ac()
509 ac->ac_btime = clamp_t(time64_t, btime, 0, U32_MAX); in fill_ac()
[all …]

12345678910>>...36