/openbmc/linux/arch/s390/kernel/ |
H A D | crash_dump.c | 65 sa = memblock_alloc(sizeof(*sa), 8); in save_area_alloc() 66 if (!sa) in save_area_alloc() 73 return sa; in save_area_alloc() 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() 97 memcpy(&sa->fpc, &lc->fpt_creg_save_area, sizeof(sa->fpc)); in save_area_add_regs() 312 memcpy(&nt_fpregset.fpc, &sa->fpc, sizeof(sa->fpc)); in fill_cpu_elf_notes() 313 memcpy(&nt_fpregset.fprs, &sa->fprs, sizeof(sa->fprs)); in fill_cpu_elf_notes() 324 &sa->vxrs_high, sizeof(sa->vxrs_high)); in fill_cpu_elf_notes() [all …]
|
/openbmc/linux/fs/xfs/scrub/ |
H A D | common.c | 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 517 if (!sa->pag) in xchk_ag_read_headers() 560 sa->bno_cur = xfs_allocbt_init_cursor(mp, sc->tp, sa->agf_bp, in xchk_ag_btcur_init() 567 sa->cnt_cur = xfs_allocbt_init_cursor(mp, sc->tp, sa->agf_bp, in xchk_ag_btcur_init() 574 sa->ino_cur = xfs_inobt_init_cursor(sa->pag, sc->tp, sa->agi_bp, in xchk_ag_btcur_init() 581 sa->fino_cur = xfs_inobt_init_cursor(sa->pag, sc->tp, sa->agi_bp, in xchk_ag_btcur_init() 589 sa->pag); in xchk_ag_btcur_init() 596 sa->agf_bp, sa->pag); in xchk_ag_btcur_init() [all …]
|
H A D | agheader.c | 387 if (!sc->sa.bno_cur) in xchk_agf_xref_freeblks() 409 if (!sc->sa.cnt_cur) in xchk_agf_xref_cntbt() 446 if (sc->sa.rmap_cur) { in xchk_agf_xref_btreeblks() 462 !sc->sa.bno_cur || !sc->sa.cnt_cur) in xchk_agf_xref_btreeblks() 489 if (!sc->sa.refc_cur) in xchk_agf_xref_refcblks() 551 pag = sc->sa.pag; in xchk_agf() 731 if (!sc->sa.agf_bp) in xchk_agfl() 802 if (!sc->sa.ino_cur) in xchk_agi_xref_icounts() 825 if (sc->sa.ino_cur) { in xchk_agi_xref_fiblocks() 833 if (sc->sa.fino_cur) { in xchk_agi_xref_fiblocks() [all …]
|
H A D | rmap.c | 326 bs->sc->sa.rmap_cur, 0); in xchk_rmapbt_mark_bitmap() 412 cur = sc->sa.bno_cur; in xchk_rmapbt_walk_ag_metadata() 417 if (cur != sc->sa.bno_cur) in xchk_rmapbt_walk_ag_metadata() 422 cur = sc->sa.cnt_cur; in xchk_rmapbt_walk_ag_metadata() 427 if (cur != sc->sa.cnt_cur) in xchk_rmapbt_walk_ag_metadata() 447 cur = sc->sa.ino_cur; in xchk_rmapbt_walk_ag_metadata() 449 cur = xfs_inobt_init_cursor(sc->sa.pag, sc->tp, sc->sa.agi_bp, in xchk_rmapbt_walk_ag_metadata() 452 if (cur != sc->sa.ino_cur) in xchk_rmapbt_walk_ag_metadata() 458 cur = sc->sa.fino_cur; in xchk_rmapbt_walk_ag_metadata() 471 cur = sc->sa.refc_cur; in xchk_rmapbt_walk_ag_metadata() [all …]
|
H A D | refcount.c | 290 if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_refcountbt_xref_rmap() 308 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0); in xchk_refcountbt_xref_rmap() 389 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0); in xchk_refcountbt_xref_gaps() 485 if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_refcount_xref_rmap() 497 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0); in xchk_refcount_xref_rmap() 505 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0); in xchk_refcount_xref_rmap() 547 if (!sc->sa.refc_cur || xchk_skip_xref(sc->sm)) in xchk_xref_is_cow_staging() 556 xchk_btree_xref_set_corrupt(sc, sc->sa.refc_cur, 0); in xchk_xref_is_cow_staging() 590 if (!sc->sa.refc_cur || xchk_skip_xref(sc->sm)) in xchk_xref_is_not_shared() 593 error = xfs_refcount_has_records(sc->sa.refc_cur, in xchk_xref_is_not_shared() [all …]
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_suballoc.c | 123 dma_fence_put(sa->fence); in drm_suballoc_remove_locked() 124 kfree(sa); in drm_suballoc_remove_locked() 136 if (!sa->fence || !dma_fence_is_signaled(sa->fence)) in drm_suballoc_try_free() 176 sa->soffset = soffset; in drm_suballoc_try_alloc() 265 tmp = sa->soffset; in drm_suballoc_next_hole() 275 best_bo = sa; in drm_suballoc_next_hole() 330 sa = kmalloc(sizeof(*sa), gfp); in drm_suballoc_new() 331 if (!sa) in drm_suballoc_new() 334 sa->fence = NULL; in drm_suballoc_new() 349 return sa; in drm_suballoc_new() [all …]
|
/openbmc/linux/drivers/crypto/amcc/ |
H A D | crypto4xx_alg.c | 35 sa->sa_command_0.w = 0; in set_dynamic_sa_command_0() 47 sa->sa_command_0.bf.dir = dir; in set_dynamic_sa_command_0() 55 sa->sa_command_1.w = 0; in set_dynamic_sa_command_1() 128 struct dynamic_sa_ctl *sa; in crypto4xx_setkey_aes() local 144 sa = ctx->sa_in; in crypto4xx_setkey_aes() 166 sa = ctx->sa_out; in crypto4xx_setkey_aes() 386 struct dynamic_sa_ctl *sa; in crypto4xx_setkey_aes_ccm() local 532 struct dynamic_sa_ctl *sa; in crypto4xx_setkey_aes_gcm() local 660 memset(sa->inner_digest, 0, sizeof(sa->inner_digest)); in crypto4xx_hash_alg_init() 661 memset(sa->outer_digest, 0, sizeof(sa->outer_digest)); in crypto4xx_hash_alg_init() [all …]
|
/openbmc/linux/kernel/sched/ |
H A D | pelt.c | 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() 118 sa->util_sum = decay_load((u64)(sa->util_sum), periods); in accumulate_sum() 139 sa->period_contrib = delta; in accumulate_sum() 142 sa->load_sum += load * contrib; in accumulate_sum() 185 delta = now - sa->last_update_time; in ___update_load_sum() 191 sa->last_update_time = now; in ___update_load_sum() 264 sa->load_avg = div_u64(load * sa->load_sum, divider); in ___update_load_avg() 265 sa->runnable_avg = div_u64(sa->runnable_sum, divider); in ___update_load_avg() [all …]
|
/openbmc/qemu/target/i386/tcg/ |
H A D | seg_helper.c | 66 cpu_stw_mmuidx_ra(sa->env, sa->ss_base + (sa->sp & sa->sp_mask), in pushw() 73 cpu_stl_mmuidx_ra(sa->env, sa->ss_base + (sa->sp & sa->sp_mask), in pushl() 80 sa->ss_base + (sa->sp & sa->sp_mask), in popw() 89 sa->ss_base + (sa->sp & sa->sp_mask), in popl() 867 SET_ESP(sa.sp, sa.sp_mask); in do_interrupt_protected() 882 cpu_stq_mmuidx_ra(sa->env, sa->sp, val, sa->mmu_index, sa->ra); in pushq() 887 uint64_t ret = cpu_ldq_mmuidx_ra(sa->env, sa->sp, sa->mmu_index, sa->ra); in popq() 1154 SET_ESP(sa.sp, sa.sp_mask); in do_interrupt_real() 1614 SET_ESP(sa.sp, sa.sp_mask); in helper_lcall_real() 1951 SET_ESP(sa.sp, sa.sp_mask); in helper_iret_real() [all …]
|
/openbmc/qemu/target/s390x/ |
H A D | helper.c | 197 SigpSaveArea *sa; in s390_store_status() local 198 hwaddr len = sizeof(*sa); in s390_store_status() 207 if (!sa) { in s390_store_status() 210 if (len != sizeof(*sa)) { in s390_store_status() 226 sa->prefix = cpu_to_be32(cpu->env.psa); in s390_store_status() 227 sa->fpc = cpu_to_be32(cpu->env.fpc); in s390_store_status() 228 sa->todpr = cpu_to_be32(cpu->env.todpr); in s390_store_status() 229 sa->cputm = cpu_to_be64(cpu->env.cputm); in s390_store_status() 230 sa->ckc = cpu_to_be64(cpu->env.ckc >> 8); in s390_store_status() 254 SigpAdtlSaveArea *sa; in s390_store_adtl_status() local [all …]
|
/openbmc/linux/tools/testing/selftests/x86/ |
H A D | sigaltstack.c | 33 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 D | ioperm.c | 28 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 D | vdso_restorer.c | 48 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 D | sysret_rip.c | 45 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 D | single_step_syscall.c | 39 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 D | iopl.c | 28 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 D | sockaddr.c | 13 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/linux/include/net/phonet/ |
H A D | phonet.h | 42 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/qemu/hw/s390x/ |
H A D | s390-stattrib-kvm.c | 38 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 72 static int kvm_s390_stattrib_peek_stattr(S390StAttribState *sa, in kvm_s390_stattrib_peek_stattr() argument 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() 105 KVMS390StAttribState *sas = KVM_S390_STATTRIB(sa); in kvm_s390_stattrib_synchronize() 160 KVMS390StAttribState *sas = KVM_S390_STATTRIB(sa); in kvm_s390_stattrib_get_dirtycount() 163 kvm_s390_stattrib_peek_stattr(sa, 0, 1, val); in kvm_s390_stattrib_get_dirtycount() 167 static int kvm_s390_stattrib_get_active(S390StAttribState *sa) in kvm_s390_stattrib_get_active() argument [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | connect6_prog.c | 31 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 D | ipsec.c | 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() 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() 189 memcpy(&ipsec->sa[sa_idx], &sa, sizeof(sa)); in nsim_ipsec_add_sa() 207 if (!ipsec->sa[sa_idx].used) { in nsim_ipsec_del_sa() [all …]
|
/openbmc/linux/include/drm/ |
H A D | drm_suballoc.h | 60 void drm_suballoc_free(struct drm_suballoc *sa, struct dma_fence *fence); 68 static inline size_t drm_suballoc_soffset(struct drm_suballoc *sa) in drm_suballoc_soffset() argument 70 return sa->soffset; in drm_suballoc_soffset() 79 static inline size_t drm_suballoc_eoffset(struct drm_suballoc *sa) in drm_suballoc_eoffset() argument 81 return sa->eoffset; in drm_suballoc_eoffset() 90 static inline size_t drm_suballoc_size(struct drm_suballoc *sa) in drm_suballoc_size() argument 92 return sa->eoffset - sa->soffset; in drm_suballoc_size()
|
/openbmc/linux/drivers/input/serio/ |
H A D | ioc3kbd.c | 127 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() 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() 168 sa->dev.parent = dev; in ioc3kbd_probe() [all …]
|
/openbmc/linux/tools/firewire/ |
H A D | nosy-dump.c | 139 sa = malloc(sizeof *sa - sizeof sa->packet + length); in subaction_create() 140 if (!sa) in subaction_create() 143 sa->length = length; in subaction_create() 146 return sa; in subaction_create() 152 free(sa); in subaction_destroy() 240 print_packet((uint32_t *) &sa->packet, sa->length); in handle_transaction() 242 print_packet((uint32_t *) &sa->packet, sa->length); in handle_transaction() 491 t->request = sa; in handle_request_packet() 515 switch (sa->ack) { in handle_request_packet() 560 t->response = sa; in handle_response_packet() [all …]
|
/openbmc/linux/arch/m68k/ifpsp060/ |
H A D | README | 32 fpsp.sa Full FP Kernel Module - hex image 36 pfpsp.sa Partial FP Kernel Module - hex image 39 fplsp.sa FP Library Module - hex image 43 isp.sa Integer Unimplemented Kernel Module - hex image 47 ilsp.sa Integer Unimplemented Library Module - hex image 51 fskeleton.s Sample Call-outs needed by fpsp.sa and pfpsp.sa 53 iskeleton.s Sample Call-outs needed by isp.sa 55 os.s Sample Call-outs needed by fpsp.sa, pfpsp.sa, and isp.sa 57 ftest.sa Simple test program to test that {p}fpsp.sa 61 itest.sa Simple test program to test that isp.sa was [all …]
|