Home
last modified time | relevance | path

Searched refs:sa (Results 1 – 25 of 635) sorted by relevance

12345678910>>...26

/openbmc/linux/arch/s390/kernel/
H A Dcrash_dump.c63 struct save_area *sa; in save_area_alloc() local
65 sa = memblock_alloc(sizeof(*sa), 8); in save_area_alloc()
66 if (!sa) in save_area_alloc()
70 list_add(&sa->list, &dump_save_areas); in save_area_alloc()
72 list_add_tail(&sa->list, &dump_save_areas); in save_area_alloc()
73 return sa; in save_area_alloc()
87 void __init save_area_add_regs(struct save_area *sa, void *regs) in save_area_add_regs() argument
92 memcpy(&sa->psw, &lc->psw_save_area, sizeof(sa->psw)); in save_area_add_regs()
93 memcpy(&sa->ctrs, &lc->cregs_save_area, sizeof(sa->ctrs)); in save_area_add_regs()
94 memcpy(&sa->gprs, &lc->gpregs_save_area, sizeof(sa->gprs)); in save_area_add_regs()
[all …]
/openbmc/linux/fs/xfs/scrub/
H A Dcommon.c410 struct xchk_ag *sa) in xchk_perag_read_headers() argument
414 error = xfs_ialloc_read_agi(sa->pag, sc->tp, &sa->agi_bp); in xchk_perag_read_headers()
418 error = xfs_alloc_read_agf(sa->pag, sc->tp, 0, &sa->agf_bp); in xchk_perag_read_headers()
433 struct xchk_ag *sa = &sc->sa; in xchk_perag_drain_and_lock() local
436 ASSERT(sa->pag != NULL); in xchk_perag_drain_and_lock()
437 ASSERT(sa->agi_bp == NULL); in xchk_perag_drain_and_lock()
438 ASSERT(sa->agf_bp == NULL); in xchk_perag_drain_and_lock()
444 error = xchk_perag_read_headers(sc, sa); in xchk_perag_drain_and_lock()
479 if (!xfs_perag_intent_busy(sa->pag)) in xchk_perag_drain_and_lock()
482 if (sa->agf_bp) { in xchk_perag_drain_and_lock()
[all …]
H A Dagheader.c48 error = xchk_ag_init_existing(sc, agno, &sc->sa); in xchk_superblock_xref()
383 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_freeblks()
387 if (!sc->sa.bno_cur) in xchk_agf_xref_freeblks()
390 error = xfs_alloc_query_all(sc->sa.bno_cur, in xchk_agf_xref_freeblks()
392 if (!xchk_should_check_xref(sc, &error, &sc->sa.bno_cur)) in xchk_agf_xref_freeblks()
395 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_freeblks()
403 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_cntbt()
409 if (!sc->sa.cnt_cur) in xchk_agf_xref_cntbt()
413 error = xfs_alloc_lookup_le(sc->sa.cnt_cur, 0, -1U, &have); in xchk_agf_xref_cntbt()
414 if (!xchk_should_check_xref(sc, &error, &sc->sa.cnt_cur)) in xchk_agf_xref_cntbt()
[all …]
H A Drmap.c82 if (!sc->sa.refc_cur || xchk_skip_xref(sc->sm)) in xchk_rmapbt_xref_refc()
91 error = xfs_refcount_find_shared(sc->sa.refc_cur, irec->rm_startblock, in xchk_rmapbt_xref_refc()
93 if (!xchk_should_check_xref(sc, &error, &sc->sa.refc_cur)) in xchk_rmapbt_xref_refc()
96 xchk_btree_xref_set_corrupt(sc, sc->sa.refc_cur, 0); in xchk_rmapbt_xref_refc()
326 bs->sc->sa.rmap_cur, 0); in xchk_rmapbt_mark_bitmap()
334 xchk_btree_xref_set_corrupt(bs->sc, bs->sc->sa.rmap_cur, 0); in xchk_rmapbt_mark_bitmap()
392 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_rmapbt_walk_ag_metadata()
403 if (xfs_ag_contains_log(mp, sc->sa.pag->pag_agno)) { in xchk_rmapbt_walk_ag_metadata()
412 cur = sc->sa.bno_cur; in xchk_rmapbt_walk_ag_metadata()
414 cur = xfs_allocbt_init_cursor(sc->mp, sc->tp, sc->sa.agf_bp, in xchk_rmapbt_walk_ag_metadata()
[all …]
H A Drefcount.c290 if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_refcountbt_xref_rmap()
300 error = xfs_rmap_query_range(sc->sa.rmap_cur, &low, &high, in xchk_refcountbt_xref_rmap()
302 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur)) in xchk_refcountbt_xref_rmap()
307 trace_xchk_refcount_incorrect(sc->sa.pag, irec, refchk.seen); in xchk_refcountbt_xref_rmap()
308 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0); in xchk_refcountbt_xref_rmap()
377 if (bno <= rrc->next_unshared_agbno || !sc->sa.rmap_cur || in xchk_refcountbt_xref_gaps()
386 error = xfs_rmap_query_range(sc->sa.rmap_cur, &low, &high, in xchk_refcountbt_xref_gaps()
389 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0); in xchk_refcountbt_xref_gaps()
391 xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur); in xchk_refcountbt_xref_gaps()
485 if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_refcount_xref_rmap()
[all …]
H A Drepair.c52 xchk_ag_btcur_free(&sc->sa); in xrep_attempt()
150 if (sc->sa.agi_bp) { in xrep_roll_ag_trans()
151 xfs_ialloc_log_agi(sc->tp, sc->sa.agi_bp, XFS_AGI_MAGICNUM); in xrep_roll_ag_trans()
152 xfs_trans_bhold(sc->tp, sc->sa.agi_bp); in xrep_roll_ag_trans()
155 if (sc->sa.agf_bp) { in xrep_roll_ag_trans()
156 xfs_alloc_log_agf(sc->tp, sc->sa.agf_bp, XFS_AGF_MAGICNUM); in xrep_roll_ag_trans()
157 xfs_trans_bhold(sc->tp, sc->sa.agf_bp); in xrep_roll_ag_trans()
171 if (sc->sa.agi_bp) in xrep_roll_ag_trans()
172 xfs_trans_bjoin(sc->tp, sc->sa.agi_bp); in xrep_roll_ag_trans()
173 if (sc->sa.agf_bp) in xrep_roll_ag_trans()
[all …]
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_suballoc.c50 static void drm_suballoc_remove_locked(struct drm_suballoc *sa);
95 struct drm_suballoc *sa, *tmp; in drm_suballoc_manager_fini() local
106 list_for_each_entry_safe(sa, tmp, &sa_manager->olist, olist) { in drm_suballoc_manager_fini()
107 drm_suballoc_remove_locked(sa); in drm_suballoc_manager_fini()
114 static void drm_suballoc_remove_locked(struct drm_suballoc *sa) in drm_suballoc_remove_locked() argument
116 struct drm_suballoc_manager *sa_manager = sa->manager; in drm_suballoc_remove_locked()
118 if (sa_manager->hole == &sa->olist) in drm_suballoc_remove_locked()
119 sa_manager->hole = sa->olist.prev; in drm_suballoc_remove_locked()
121 list_del_init(&sa->olist); in drm_suballoc_remove_locked()
122 list_del_init(&sa->flist); in drm_suballoc_remove_locked()
[all …]
/openbmc/linux/drivers/crypto/amcc/
H A Dcrypto4xx_alg.c30 static void set_dynamic_sa_command_0(struct dynamic_sa_ctl *sa, u32 save_h, in set_dynamic_sa_command_0() argument
35 sa->sa_command_0.w = 0; in set_dynamic_sa_command_0()
36 sa->sa_command_0.bf.save_hash_state = save_h; in set_dynamic_sa_command_0()
37 sa->sa_command_0.bf.save_iv = save_iv; in set_dynamic_sa_command_0()
38 sa->sa_command_0.bf.load_hash_state = ld_h; in set_dynamic_sa_command_0()
39 sa->sa_command_0.bf.load_iv = ld_iv; in set_dynamic_sa_command_0()
40 sa->sa_command_0.bf.hdr_proc = hdr_proc; in set_dynamic_sa_command_0()
41 sa->sa_command_0.bf.hash_alg = h; in set_dynamic_sa_command_0()
42 sa->sa_command_0.bf.cipher_alg = c; in set_dynamic_sa_command_0()
43 sa->sa_command_0.bf.pad_type = pad_type & 3; in set_dynamic_sa_command_0()
[all …]
/openbmc/qemu/target/i386/tcg/
H A Dseg_helper.c63 static void pushw(StackAccess *sa, uint16_t val) in pushw() argument
65 sa->sp -= 2; in pushw()
66 cpu_stw_mmuidx_ra(sa->env, sa->ss_base + (sa->sp & sa->sp_mask), in pushw()
67 val, sa->mmu_index, sa->ra); in pushw()
70 static void pushl(StackAccess *sa, uint32_t val) in pushl() argument
72 sa->sp -= 4; in pushl()
73 cpu_stl_mmuidx_ra(sa->env, sa->ss_base + (sa->sp & sa->sp_mask), in pushl()
74 val, sa->mmu_index, sa->ra); in pushl()
77 static uint16_t popw(StackAccess *sa) in popw() argument
79 uint16_t ret = cpu_lduw_mmuidx_ra(sa->env, in popw()
[all …]
/openbmc/linux/kernel/sched/
H A Dpelt.c102 accumulate_sum(u64 delta, struct sched_avg *sa, in accumulate_sum() argument
108 delta += sa->period_contrib; in accumulate_sum()
115 sa->load_sum = decay_load(sa->load_sum, periods); in accumulate_sum()
116 sa->runnable_sum = in accumulate_sum()
117 decay_load(sa->runnable_sum, periods); in accumulate_sum()
118 sa->util_sum = decay_load((u64)(sa->util_sum), periods); in accumulate_sum()
136 1024 - sa->period_contrib, delta); in accumulate_sum()
139 sa->period_contrib = delta; in accumulate_sum()
142 sa->load_sum += load * contrib; in accumulate_sum()
144 sa->runnable_sum += runnable * contrib << SCHED_CAPACITY_SHIFT; in accumulate_sum()
[all …]
/openbmc/qemu/target/s390x/
H A Dhelper.c197 SigpSaveArea *sa; in s390_store_status() local
198 hwaddr len = sizeof(*sa); in s390_store_status()
206 sa = cpu_physical_memory_map(addr, &len, true); in s390_store_status()
207 if (!sa) { in s390_store_status()
210 if (len != sizeof(*sa)) { in s390_store_status()
211 cpu_physical_memory_unmap(sa, len, 1, 0); in s390_store_status()
219 sa->fprs[i] = cpu_to_be64(*get_freg(&cpu->env, i)); in s390_store_status()
222 sa->grs[i] = cpu_to_be64(cpu->env.regs[i]); in s390_store_status()
224 sa->psw.addr = cpu_to_be64(cpu->env.psw.addr); in s390_store_status()
225 sa->psw.mask = cpu_to_be64(s390_cpu_get_psw_mask(&cpu->env)); in s390_store_status()
[all …]
/openbmc/linux/tools/testing/selftests/x86/
H A Dsigaltstack.c33 struct sigaction sa; in sethandler() local
35 memset(&sa, 0, sizeof(sa)); in sethandler()
36 sa.sa_sigaction = handler; in sethandler()
37 sa.sa_flags = SA_SIGINFO | flags; in sethandler()
38 sigemptyset(&sa.sa_mask); in sethandler()
39 if (sigaction(sig, &sa, 0)) in sethandler()
45 struct sigaction sa; in clearhandler() local
47 memset(&sa, 0, sizeof(sa)); in clearhandler()
48 sa.sa_handler = SIG_DFL; in clearhandler()
49 sigemptyset(&sa.sa_mask); in clearhandler()
[all …]
H A Dioperm.c28 struct sigaction sa; in sethandler() local
29 memset(&sa, 0, sizeof(sa)); in sethandler()
30 sa.sa_sigaction = handler; in sethandler()
31 sa.sa_flags = SA_SIGINFO | flags; in sethandler()
32 sigemptyset(&sa.sa_mask); in sethandler()
33 if (sigaction(sig, &sa, 0)) in sethandler()
40 struct sigaction sa; in clearhandler() local
41 memset(&sa, 0, sizeof(sa)); in clearhandler()
42 sa.sa_handler = SIG_DFL; in clearhandler()
43 sigemptyset(&sa.sa_mask); in clearhandler()
[all …]
H A Dvdso_restorer.c48 struct real_sigaction sa; in main() local
60 memset(&sa, 0, sizeof(sa)); in main()
61 sa.handler = handler_with_siginfo; in main()
62 sa.flags = SA_SIGINFO; in main()
63 sa.restorer = NULL; /* request kernel-provided restorer */ in main()
67 if (syscall(SYS_rt_sigaction, SIGUSR1, &sa, NULL, 8) != 0) in main()
81 sa.flags = 0; in main()
82 sa.handler = handler_without_siginfo; in main()
83 if (syscall(SYS_sigaction, SIGUSR1, &sa, 0) != 0) in main()
H A Dsysret_rip.c45 struct sigaction sa; in sethandler() local
46 memset(&sa, 0, sizeof(sa)); in sethandler()
47 sa.sa_sigaction = handler; in sethandler()
48 sa.sa_flags = SA_SIGINFO | flags; in sethandler()
49 sigemptyset(&sa.sa_mask); in sethandler()
50 if (sigaction(sig, &sa, 0)) in sethandler()
56 struct sigaction sa; in clearhandler() local
57 memset(&sa, 0, sizeof(sa)); in clearhandler()
58 sa.sa_handler = SIG_DFL; in clearhandler()
59 sigemptyset(&sa.sa_mask); in clearhandler()
[all …]
H A Dsingle_step_syscall.c39 struct sigaction sa; in sethandler() local
40 memset(&sa, 0, sizeof(sa)); in sethandler()
41 sa.sa_sigaction = handler; in sethandler()
42 sa.sa_flags = SA_SIGINFO | flags; in sethandler()
43 sigemptyset(&sa.sa_mask); in sethandler()
44 if (sigaction(sig, &sa, 0)) in sethandler()
50 struct sigaction sa; in clearhandler() local
51 memset(&sa, 0, sizeof(sa)); in clearhandler()
52 sa.sa_handler = SIG_DFL; in clearhandler()
53 sigemptyset(&sa.sa_mask); in clearhandler()
[all …]
H A Diopl.c28 struct sigaction sa; in sethandler() local
29 memset(&sa, 0, sizeof(sa)); in sethandler()
30 sa.sa_sigaction = handler; in sethandler()
31 sa.sa_flags = SA_SIGINFO | flags; in sethandler()
32 sigemptyset(&sa.sa_mask); in sethandler()
33 if (sigaction(sig, &sa, 0)) in sethandler()
40 struct sigaction sa; in clearhandler() local
41 memset(&sa, 0, sizeof(sa)); in clearhandler()
42 sa.sa_handler = SIG_DFL; in clearhandler()
43 sigemptyset(&sa.sa_mask); in clearhandler()
[all …]
/openbmc/linux/tools/perf/trace/beauty/
H A Dsockaddr.c13 static size_t af_inet__scnprintf(struct sockaddr *sa, char *bf, size_t size) in af_inet__scnprintf() argument
15 struct sockaddr_in *sin = (struct sockaddr_in *)sa; in af_inet__scnprintf()
21 static size_t af_inet6__scnprintf(struct sockaddr *sa, char *bf, size_t size) in af_inet6__scnprintf() argument
23 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sa; in af_inet6__scnprintf()
36 static size_t af_local__scnprintf(struct sockaddr *sa, char *bf, size_t size) in af_local__scnprintf() argument
38 struct sockaddr_un *sun = (struct sockaddr_un *)sa; in af_local__scnprintf()
42 static size_t (*af_scnprintfs[])(struct sockaddr *sa, char *bf, size_t size) = {
50 struct sockaddr *sa = (struct sockaddr *)arg->augmented.args; in syscall_arg__scnprintf_augmented_sockaddr() local
54 …(&strarray__socket_families, family, sizeof(family), "%d", arg->show_string_prefix, sa->sa_family); in syscall_arg__scnprintf_augmented_sockaddr()
57 if (sa->sa_family < ARRAY_SIZE(af_scnprintfs) && af_scnprintfs[sa->sa_family]) in syscall_arg__scnprintf_augmented_sockaddr()
[all …]
/openbmc/qemu/hw/s390x/
H A Ds390-stattrib-kvm.c38 static int kvm_s390_stattrib_read_helper(S390StAttribState *sa, in kvm_s390_stattrib_read_helper() argument
44 KVMS390StAttribState *sas = KVM_S390_STATTRIB(sa); in kvm_s390_stattrib_read_helper()
64 static int kvm_s390_stattrib_get_stattr(S390StAttribState *sa, in kvm_s390_stattrib_get_stattr() argument
69 return kvm_s390_stattrib_read_helper(sa, start_gfn, count, values, 0); in kvm_s390_stattrib_get_stattr()
72 static int kvm_s390_stattrib_peek_stattr(S390StAttribState *sa, in kvm_s390_stattrib_peek_stattr() argument
77 return kvm_s390_stattrib_read_helper(sa, &start_gfn, count, values, in kvm_s390_stattrib_peek_stattr()
81 static int kvm_s390_stattrib_set_stattr(S390StAttribState *sa, in kvm_s390_stattrib_set_stattr() argument
86 KVMS390StAttribState *sas = KVM_S390_STATTRIB(sa); in kvm_s390_stattrib_set_stattr()
103 static void kvm_s390_stattrib_synchronize(S390StAttribState *sa) in kvm_s390_stattrib_synchronize() argument
105 KVMS390StAttribState *sas = KVM_S390_STATTRIB(sa); in kvm_s390_stattrib_synchronize()
[all …]
/openbmc/linux/include/net/phonet/
H A Dphonet.h42 struct sock *pn_find_sock_by_sa(struct net *net, const struct sockaddr_pn *sa);
72 void pn_skb_get_src_sockaddr(struct sk_buff *skb, struct sockaddr_pn *sa) in pn_skb_get_src_sockaddr() argument
77 sa->spn_family = AF_PHONET; in pn_skb_get_src_sockaddr()
78 pn_sockaddr_set_object(sa, obj); in pn_skb_get_src_sockaddr()
79 pn_sockaddr_set_resource(sa, ph->pn_res); in pn_skb_get_src_sockaddr()
80 memset(sa->spn_zero, 0, sizeof(sa->spn_zero)); in pn_skb_get_src_sockaddr()
84 void pn_skb_get_dst_sockaddr(struct sk_buff *skb, struct sockaddr_pn *sa) in pn_skb_get_dst_sockaddr() argument
89 sa->spn_family = AF_PHONET; in pn_skb_get_dst_sockaddr()
90 pn_sockaddr_set_object(sa, obj); in pn_skb_get_dst_sockaddr()
91 pn_sockaddr_set_resource(sa, ph->pn_res); in pn_skb_get_dst_sockaddr()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dconnect6_prog.c31 struct sockaddr_in6 sa; in connect_v6_prog() local
77 memset(&sa, 0, sizeof(sa)); in connect_v6_prog()
79 sa.sin6_family = AF_INET6; in connect_v6_prog()
80 sa.sin6_port = bpf_htons(0); in connect_v6_prog()
82 sa.sin6_addr.s6_addr32[0] = bpf_htonl(SRC_REWRITE_IP6_0); in connect_v6_prog()
83 sa.sin6_addr.s6_addr32[1] = bpf_htonl(SRC_REWRITE_IP6_1); in connect_v6_prog()
84 sa.sin6_addr.s6_addr32[2] = bpf_htonl(SRC_REWRITE_IP6_2); in connect_v6_prog()
85 sa.sin6_addr.s6_addr32[3] = bpf_htonl(SRC_REWRITE_IP6_3); in connect_v6_prog()
87 if (bpf_bind(ctx, (struct sockaddr *)&sa, sizeof(sa)) != 0) in connect_v6_prog()
/openbmc/linux/drivers/net/netdevsim/
H A Dipsec.c37 struct nsim_sa *sap = &ipsec->sa[i]; in nsim_dbg_netdev_ops_read()
77 if (!ipsec->sa[i].used) in nsim_ipsec_find_empty_idx()
134 struct nsim_sa sa; in nsim_ipsec_add_sa() local
165 memset(&sa, 0, sizeof(sa)); in nsim_ipsec_add_sa()
166 sa.used = true; in nsim_ipsec_add_sa()
167 sa.xs = xs; in nsim_ipsec_add_sa()
169 if (sa.xs->id.proto & IPPROTO_ESP) in nsim_ipsec_add_sa()
170 sa.crypt = xs->ealg || xs->aead; in nsim_ipsec_add_sa()
173 ret = nsim_ipsec_parse_proto_keys(xs, sa.key, &sa.salt); in nsim_ipsec_add_sa()
180 sa.rx = true; in nsim_ipsec_add_sa()
[all …]
/openbmc/linux/tools/firewire/
H A Dnosy-dump.c136 struct subaction *sa; in subaction_create() local
139 sa = malloc(sizeof *sa - sizeof sa->packet + length); in subaction_create()
140 if (!sa) in subaction_create()
142 sa->ack = data[length / 4 - 1]; in subaction_create()
143 sa->length = length; in subaction_create()
144 memcpy(&sa->packet, data, length); in subaction_create()
146 return sa; in subaction_create()
150 subaction_destroy(struct subaction *sa) in subaction_destroy() argument
152 free(sa); in subaction_destroy()
188 struct subaction *sa; in link_transaction_destroy() local
[all …]
/openbmc/linux/drivers/input/serio/
H A Dioc3kbd.c127 struct serio *sk, *sa; in ioc3kbd_probe() local
146 sa = kzalloc(sizeof(*sa), GFP_KERNEL); in ioc3kbd_probe()
147 if (!sa) { in ioc3kbd_probe()
161 sa->id.type = SERIO_8042; in ioc3kbd_probe()
162 sa->write = ioc3aux_write; in ioc3kbd_probe()
163 sa->start = ioc3aux_start; in ioc3kbd_probe()
164 sa->stop = ioc3aux_stop; in ioc3kbd_probe()
165 snprintf(sa->name, sizeof(sa->name), "IOC3 auxiliary %d", pdev->id); in ioc3kbd_probe()
166 snprintf(sa->phys, sizeof(sa->phys), "ioc3/serio%daux", pdev->id); in ioc3kbd_probe()
167 sa->port_data = d; in ioc3kbd_probe()
[all …]
/openbmc/linux/net/appletalk/
H A Daarp.c411 void aarp_proxy_remove(struct net_device *dev, struct atalk_addr *sa) in aarp_proxy_remove() argument
413 int hash = sa->s_node % (AARP_HASH_SIZE - 1); in aarp_proxy_remove()
418 a = __aarp_find_entry(proxies[hash], dev, sa); in aarp_proxy_remove()
427 struct atalk_addr *sa) in __aarp_proxy_find() argument
429 int hash = sa->s_node % (AARP_HASH_SIZE - 1); in __aarp_proxy_find()
430 struct aarp_entry *a = __aarp_find_entry(proxies[hash], dev, sa); in __aarp_proxy_find()
432 return a ? sa : NULL; in __aarp_proxy_find()
442 struct sockaddr_at *sa = (struct sockaddr_at *)&atreq.ifr_addr; in aarp_send_probe_phase1() local
445 sa->sat_addr.s_node = iface->address.s_node; in aarp_send_probe_phase1()
446 sa->sat_addr.s_net = ntohs(iface->address.s_net); in aarp_send_probe_phase1()
[all …]

12345678910>>...26