/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/fs/xfs/scrub/ |
H A D | agheader.c | 49 error = xchk_ag_init_existing(sc, agno, &sc->sa); in xchk_superblock_xref() 59 /* scrub teardown will take care of sc->sa for us */ in xchk_superblock_xref() 448 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_freeblks() 452 if (!sc->sa.bno_cur) in xchk_agf_xref_freeblks() 455 error = xfs_alloc_query_all(sc->sa.bno_cur, in xchk_agf_xref_freeblks() 457 if (!xchk_should_check_xref(sc, &error, &sc->sa.bno_cur)) in xchk_agf_xref_freeblks() 460 xchk_block_xref_set_corrupt(sc, sc->sa.agf_bp); in xchk_agf_xref_freeblks() 468 struct xfs_agf *agf = sc->sa.agf_bp->b_addr; in xchk_agf_xref_cntbt() 474 if (!sc->sa.cnt_cur) in xchk_agf_xref_cntbt() 478 error = xfs_alloc_lookup_le(sc->sa.cnt_cur, 0, -1U, &have); in xchk_agf_xref_cntbt() [all …]
|
H A D | refcount.c | 302 if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_refcountbt_xref_rmap() 312 error = xfs_rmap_query_range(sc->sa.rmap_cur, &low, &high, in xchk_refcountbt_xref_rmap() 314 if (!xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur)) in xchk_refcountbt_xref_rmap() 319 trace_xchk_refcount_incorrect(sc->sa.pag, irec, refchk.seen); in xchk_refcountbt_xref_rmap() 320 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0); in xchk_refcountbt_xref_rmap() 389 if (bno <= rrc->next_unshared_agbno || !sc->sa.rmap_cur || in xchk_refcountbt_xref_gaps() 398 error = xfs_rmap_query_range(sc->sa.rmap_cur, &low, &high, in xchk_refcountbt_xref_gaps() 401 xchk_btree_xref_set_corrupt(sc, sc->sa.rmap_cur, 0); in xchk_refcountbt_xref_gaps() 403 xchk_should_check_xref(sc, &error, &sc->sa.rmap_cur); in xchk_refcountbt_xref_gaps() 498 if (!sc->sa.rmap_cur || xchk_skip_xref(sc->sm)) in xchk_refcount_xref_rmap() [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/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/net/ethernet/aquantia/atlantic/macsec/ |
H A D | macsec_struct.h | 13 /*! This is used to store the 48 bit value used to compare SA, DA or 14 * halfDA+half SA value. 28 * 2: compare SA only 29 * 3: compare half DA + half SA 32 * 6: compare SA + ethertype 195 /*! If packet matches and tagged as controlled-packet, this SC/SA 196 * index is used for later SC and SA table lookup. 199 /*! This field is used to specify how many SA entries are 201 * 2'b00: 1 SC has 4 SA. 203 * SA index is equivalent to {SC_Index[4:2], SC entry's current AN[1:0] [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/net/ |
H A D | macsec.h | 63 * struct macsec_key - SA key 125 * @stats: per-SA stats 156 * @sa: array of secure associations 163 struct macsec_rx_sa __rcu *sa[MACSEC_NUM_AN]; member 176 * @stats: per-SA stats 195 * @encoding_sa: association number of the SA currently in use 200 * @sa: array of secure associations 211 struct macsec_tx_sa __rcu *sa[MACSEC_NUM_AN]; member 257 * @update_pn: when updating the SA, update the next PN 258 * @assoc_num: association number of the target SA [all …]
|
/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/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 | 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() 65 printf("[RUN]\tRaise a signal, SA_SIGINFO, sa.restorer == NULL\n"); in main() 67 if (syscall(SYS_rt_sigaction, SIGUSR1, &sa, NULL, 8) != 0) in main() 79 printf("[RUN]\tRaise a signal, !SA_SIGINFO, sa.restorer == NULL\n"); in main() 81 sa.flags = 0; in main() 82 sa.handler = handler_without_siginfo; in main() [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 | 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 …]
|
/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/include/drm/ |
H A D | drm_suballoc.h | 60 void drm_suballoc_free(struct drm_suballoc *sa, struct dma_fence *fence); 64 * @sa: The struct drm_suballoc. 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() 75 * @sa: The struct drm_suballoc. 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() 86 * @sa: The struct drm_suballoc. 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/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/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/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/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/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | macsec.c | 314 struct mlx5e_macsec_sa *sa, bool is_tx, in mlx5e_macsec_cleanup_sa_fs() argument 320 if (!sa->macsec_rule) in mlx5e_macsec_cleanup_sa_fs() 323 mlx5_macsec_fs_del_rule(macsec->mdev->macsec_fs, sa->macsec_rule, action, netdev, in mlx5e_macsec_cleanup_sa_fs() 325 sa->macsec_rule = NULL; in mlx5e_macsec_cleanup_sa_fs() 329 struct mlx5e_macsec_sa *sa, bool is_tx, in mlx5e_macsec_cleanup_sa() argument 332 mlx5e_macsec_cleanup_sa_fs(macsec, sa, is_tx, netdev, fs_id); in mlx5e_macsec_cleanup_sa() 333 mlx5e_macsec_destroy_object(macsec->mdev, sa->macsec_obj_id); in mlx5e_macsec_cleanup_sa() 337 struct mlx5e_macsec_sa *sa, bool encrypt, in mlx5e_macsec_init_sa_fs() argument 345 rule_attrs.macsec_obj_id = sa->macsec_obj_id; in mlx5e_macsec_init_sa_fs() 346 rule_attrs.sci = sa->sci; in mlx5e_macsec_init_sa_fs() [all …]
|
/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/net/can/j1939/ |
H A D | address-claim.c | 14 * - resolves NAME<=>SA taking into account the AC states of ECU's. 66 if (skcb->addr.sa == J1939_NO_ADDR) { in j1939_ac_verify_outgoing() 67 netdev_notice(priv->ndev, "tx address claim with broadcast sa\n"); in j1939_ac_verify_outgoing() 97 if (ecu->addr != skcb->addr.sa) in j1939_ac_fixup() 106 netdev_notice(priv->ndev, "tx drop: invalid sa for name 0x%016llx\n", 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() 146 netdev_notice(priv->ndev, "rx address claim with broadcast sa\n"); 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() [all …]
|
/linux/Documentation/devicetree/bindings/arm/ |
H A D | qcom-soc.yaml | 26 pattern: "^qcom,.*(apq|ipq|mdm|msm|qcm|qcs|q[dr]u|sa|sc|sd[amx]|sm|x1e)[0-9]+.*$" 34 - pattern: "^qcom,(apq|ipq|mdm|msm|qcm|qcs|q[dr]u|sa|sc|sd[amx]|sm|x1e)[0-9]+(pro)?-.*$" 35 - pattern: "^qcom,(sa|sc)8[0-9]+[a-z][a-z]?-.*$" 39 - pattern: "^qcom,[ak]pss-wdt-(apq|ipq|mdm|msm|qcm|qcs|q[dr]u|sa|sc|sd[amx]|sm)[0-9]+.*$" 40 - pattern: "^qcom,gcc-(apq|ipq|mdm|msm|qcm|qcs|q[dr]u|sa|sc|sd[amx]|sm)[0-9]+.*$" 41 - pattern: "^qcom,mmcc-(apq|ipq|mdm|msm|qcm|qcs|q[dr]u|sa|sc|sd[amx]|sm)[0-9]+.*$" 42 - pattern: "^qcom,pcie-(apq|ipq|mdm|msm|qcm|qcs|q[dr]u|sa|sc|sd[amx]|sm|x1e)[0-9]+.*$" 43 - pattern: "^qcom,rpm-(apq|ipq|mdm|msm|qcm|qcs|q[dr]u|sa|sc|sd[amx]|sm)[0-9]+.*$" 44 - pattern: "^qcom,scm-(apq|ipq|mdm|msm|qcm|qcs|q[dr]u|sa|sc|sd[amx]|sm|x1e)[0-9]+.*$"
|