/linux/drivers/gpu/drm/ |
H A 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/drivers/crypto/amcc/ |
H A 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/kernel/sched/ |
H A 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/drivers/net/phy/ |
H A D | nxp-c45-tja11xx-macsec.c | 183 void *sa; member 415 static struct nxp_c45_sa *nxp_c45_sa_alloc(struct list_head *sa_list, void *sa, in nxp_c45_sa_alloc() argument 443 tmp->sa = sa; in nxp_c45_sa_alloc() 452 static void nxp_c45_sa_free(struct nxp_c45_sa *sa) in nxp_c45_sa_free() argument 454 list_del(&sa->list); in nxp_c45_sa_free() 455 kfree(sa); in nxp_c45_sa_free() 467 struct nxp_c45_sa *sa, u64 pn, in nxp_c45_sa_set_pn() argument 470 const struct nxp_c45_sa_regs *sa_regs = sa->regs; in nxp_c45_sa_set_pn() 476 if (sa->type != RX_SA) in nxp_c45_sa_set_pn() 495 u32 *key_u32 = (u32 *)ctx->sa.key; in nxp_c45_sa_set_key() [all …]
|
/linux/tools/testing/selftests/mm/ |
H A D | pkey_sighandler_tests.c | 210 struct sigaction sa; in test_sigsegv_handler_with_pkey0_disabled() local 214 sa.sa_flags = SA_SIGINFO; in test_sigsegv_handler_with_pkey0_disabled() 216 sa.sa_sigaction = sigsegv_handler; in test_sigsegv_handler_with_pkey0_disabled() 217 sigemptyset(&sa.sa_mask); in test_sigsegv_handler_with_pkey0_disabled() 218 if (sigaction(SIGSEGV, &sa, NULL) == -1) { in test_sigsegv_handler_with_pkey0_disabled() 250 struct sigaction sa; in test_sigsegv_handler_cannot_access_stack() local 254 sa.sa_flags = SA_SIGINFO; in test_sigsegv_handler_cannot_access_stack() 256 sa.sa_sigaction = sigsegv_handler; in test_sigsegv_handler_cannot_access_stack() 257 sigemptyset(&sa.sa_mask); in test_sigsegv_handler_cannot_access_stack() 258 if (sigaction(SIGSEGV, &sa, NULL) == -1) { in test_sigsegv_handler_cannot_access_stack() [all …]
|
/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 | 37 struct sigaction sa; in sethandler() local 38 memset(&sa, 0, sizeof(sa)); in sethandler() 39 sa.sa_sigaction = handler; in sethandler() 40 sa.sa_flags = SA_SIGINFO | flags; in sethandler() 41 sigemptyset(&sa.sa_mask); in sethandler() 42 if (sigaction(sig, &sa, 0)) in sethandler() 48 struct sigaction sa; in clearhandler() local 49 memset(&sa, 0, sizeof(sa)); in clearhandler() 50 sa.sa_handler = SIG_DFL; in clearhandler() 51 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 …]
|
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 | ptrace_syscall.c | 99 struct sigaction sa; in sethandler() local 100 memset(&sa, 0, sizeof(sa)); in sethandler() 101 sa.sa_sigaction = handler; in sethandler() 102 sa.sa_flags = SA_SIGINFO | flags; in sethandler() 103 sigemptyset(&sa.sa_mask); in sethandler() 104 if (sigaction(sig, &sa, 0)) in sethandler() 110 struct sigaction sa; in setsigign() local 111 memset(&sa, 0, sizeof(sa)); in setsigign() 112 sa.sa_sigaction = (void *)SIG_IGN; in setsigign() 113 sa.sa_flags = flags; in setsigign() [all …]
|
H A D | test_shadow_stack.c | 222 struct sigaction sa = {}; in test_shstk_violation() local 224 sa.sa_sigaction = segv_handler; in test_shstk_violation() 225 sa.sa_flags = SA_SIGINFO; in test_shstk_violation() 226 if (sigaction(SIGSEGV, &sa, NULL)) in test_shstk_violation() 318 struct sigaction sa = {}; in test_gup() local 322 sa.sa_sigaction = test_access_fix_handler; in test_gup() 323 sa.sa_flags = SA_SIGINFO; in test_gup() 324 if (sigaction(SIGSEGV, &sa, NULL)) in test_gup() 401 struct sigaction sa = {}; in test_mprotect() local 403 sa.sa_sigaction = test_access_fix_handler; in test_mprotect() [all …]
|
H A D | syscall_nt.c | 24 struct sigaction sa; in sethandler() local 25 memset(&sa, 0, sizeof(sa)); in sethandler() 26 sa.sa_sigaction = handler; in sethandler() 27 sa.sa_flags = SA_SIGINFO | flags; in sethandler() 28 sigemptyset(&sa.sa_mask); in sethandler() 29 if (sigaction(sig, &sa, 0)) in sethandler()
|
H A D | corrupt_xstate_header.c | 35 struct sigaction sa; in sethandler() local 37 memset(&sa, 0, sizeof(sa)); in sethandler() 38 sa.sa_sigaction = handler; in sethandler() 39 sa.sa_flags = SA_SIGINFO | flags; in sethandler() 40 sigemptyset(&sa.sa_mask); in sethandler() 41 if (sigaction(sig, &sa, 0)) in sethandler()
|
/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->value; 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/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 …]
|
/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()
|
/linux/tools/firewire/ |
H A 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/net/appletalk/ |
H A 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/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() 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/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 …]
|
/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()
|
/linux/net/can/j1939/ |
H A D | address-claim.c | 66 if (skcb->addr.sa == J1939_NO_ADDR) { in j1939_ac_verify_outgoing() 97 if (ecu->addr != skcb->addr.sa) in j1939_ac_fixup() 110 skcb->addr.sa = addr; in j1939_ac_fixup() 145 if (!j1939_address_is_valid(skcb->addr.sa)) { in j1939_ac_process() 169 if (ecu && ecu->addr == skcb->addr.sa) { in j1939_ac_process() 208 if (!ecu && j1939_address_is_unicast(skcb->addr.sa)) in j1939_ac_process() 217 if (j1939_address_is_idle(skcb->addr.sa)) { in j1939_ac_process() 223 if (ecu->addr != skcb->addr.sa) in j1939_ac_process() 225 ecu->addr = skcb->addr.sa; in j1939_ac_process() 227 prev = j1939_ecu_get_by_addr_locked(priv, skcb->addr.sa); in j1939_ac_process() [all …]
|
/linux/tools/testing/selftests/powerpc/tm/ |
H A D | tm-sigreturn.c | 54 struct sigaction sa; in tm_sigreturn() local 61 memset(&sa, 0, sizeof(sa)); in tm_sigreturn() 62 sa.sa_handler = handler; in tm_sigreturn() 63 sigemptyset(&sa.sa_mask); in tm_sigreturn() 65 if (sigaction(SIGSEGV, &sa, NULL)) in tm_sigreturn()
|