/linux-6.6.21/arch/s390/kernel/ |
D | crash_dump.c | 63 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 …]
|
/linux-6.6.21/fs/xfs/scrub/ |
D | common.c | 410 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 …]
|
D | agheader.c | 48 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 …]
|
D | rmap.c | 82 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 …]
|
D | refcount.c | 290 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 …]
|
D | repair.c | 52 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 …]
|
/linux-6.6.21/drivers/gpu/drm/ |
D | drm_suballoc.c | 50 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 …]
|
/linux-6.6.21/drivers/crypto/amcc/ |
D | crypto4xx_alg.c | 30 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 …]
|
/linux-6.6.21/kernel/sched/ |
D | pelt.c | 102 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 …]
|
/linux-6.6.21/tools/testing/selftests/x86/ |
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 …]
|
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 …]
|
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()
|
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 …]
|
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 …]
|
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 …]
|
D | test_shadow_stack.c | 221 struct sigaction sa = {}; in test_shstk_violation() local 223 sa.sa_sigaction = segv_handler; in test_shstk_violation() 224 sa.sa_flags = SA_SIGINFO; in test_shstk_violation() 225 if (sigaction(SIGSEGV, &sa, NULL)) in test_shstk_violation() 317 struct sigaction sa = {}; in test_gup() local 321 sa.sa_sigaction = test_access_fix_handler; in test_gup() 322 sa.sa_flags = SA_SIGINFO; in test_gup() 323 if (sigaction(SIGSEGV, &sa, NULL)) in test_gup() 400 struct sigaction sa = {}; in test_mprotect() local 402 sa.sa_sigaction = test_access_fix_handler; in test_mprotect() [all …]
|
/linux-6.6.21/tools/perf/trace/beauty/ |
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 …]
|
/linux-6.6.21/include/net/phonet/ |
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 …]
|
/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
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()
|
/linux-6.6.21/drivers/net/netdevsim/ |
D | ipsec.c | 37 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 …]
|
/linux-6.6.21/drivers/input/serio/ |
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() 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 …]
|
/linux-6.6.21/tools/firewire/ |
D | nosy-dump.c | 136 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 …]
|
/linux-6.6.21/net/appletalk/ |
D | aarp.c | 411 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 …]
|
/linux-6.6.21/include/drm/ |
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()
|
/linux-6.6.21/arch/m68k/ifpsp060/ |
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 …]
|