/linux/drivers/clk/ti/ |
H A D | apll.c | 36 struct dpll_data *ad; in dra7_apll_enable() local 41 ad = clk->dpll_data; in dra7_apll_enable() 42 if (!ad) in dra7_apll_enable() 47 state <<= __ffs(ad->idlest_mask); in dra7_apll_enable() 50 v = ti_clk_ll_ops->clk_readl(&ad->idlest_reg); in dra7_apll_enable() 52 if ((v & ad->idlest_mask) == state) in dra7_apll_enable() 55 v = ti_clk_ll_ops->clk_readl(&ad->control_reg); in dra7_apll_enable() 56 v &= ~ad->enable_mask; in dra7_apll_enable() 57 v |= APLL_FORCE_LOCK << __ffs(ad->enable_mask); in dra7_apll_enable() 58 ti_clk_ll_ops->clk_writel(v, &ad->control_reg); in dra7_apll_enable() [all …]
|
/linux/sound/soc/ti/ |
H A D | omap-hdmi.c | 50 struct hdmi_audio_data *ad = dev_get_drvdata(dev); in hdmi_dai_abort() local 52 mutex_lock(&ad->current_stream_lock); in hdmi_dai_abort() 53 if (ad->current_stream && ad->current_stream->runtime && in hdmi_dai_abort() 54 snd_pcm_running(ad->current_stream)) { in hdmi_dai_abort() 56 snd_pcm_stream_lock_irq(ad->current_stream); in hdmi_dai_abort() 57 snd_pcm_stop(ad->current_stream, SNDRV_PCM_STATE_DISCONNECTED); in hdmi_dai_abort() 58 snd_pcm_stream_unlock_irq(ad->current_stream); in hdmi_dai_abort() 60 mutex_unlock(&ad->current_stream_lock); in hdmi_dai_abort() 66 struct hdmi_audio_data *ad in hdmi_dai_startup() local 108 struct hdmi_audio_data *ad = card_drvdata_substream(substream); hdmi_dai_hw_params() local 233 struct hdmi_audio_data *ad = card_drvdata_substream(substream); hdmi_dai_trigger() local 258 struct hdmi_audio_data *ad = card_drvdata_substream(substream); hdmi_dai_shutdown() local 313 struct hdmi_audio_data *ad; omap_hdmi_audio_probe() local [all...] |
/linux/drivers/dma/ |
H A D | apple-admac.c | 150 static int admac_alloc_sram_carveout(struct admac_data *ad, in admac_alloc_sram_carveout() argument 156 ad->txcache.size = readl_relaxed(ad->base + REG_TX_SRAM_SIZE); in admac_alloc_sram_carveout() 157 ad->rxcache.size = readl_relaxed(ad->base + REG_RX_SRAM_SIZE); in admac_alloc_sram_carveout() 160 sram = &ad->txcache; in admac_alloc_sram_carveout() 162 sram = &ad->rxcache; in admac_alloc_sram_carveout() 164 mutex_lock(&ad->cache_alloc_lock); in admac_alloc_sram_carveout() 179 mutex_unlock(&ad->cache_alloc_lock); in admac_alloc_sram_carveout() 184 static void admac_free_sram_carveout(struct admac_data *ad, in admac_free_sram_carveout() argument 193 sram = &ad->txcache; in admac_free_sram_carveout() 195 sram = &ad->rxcache; in admac_free_sram_carveout() [all …]
|
/linux/security/apparmor/ |
H A D | audit.c | 94 struct apparmor_audit_data *ad = aad_of_va(va); in audit_pre() local 98 aa_audit_type[ad->type]); in audit_pre() 101 if (ad->op) in audit_pre() 102 audit_log_format(ab, " operation=\"%s\"", ad->op); in audit_pre() 104 if (ad->class) in audit_pre() 106 ad->class <= AA_CLASS_LAST ? in audit_pre() 107 aa_class_names[ad->class] : in audit_pre() 110 if (ad->info) { in audit_pre() 111 audit_log_format(ab, " info=\"%s\"", ad->info); in audit_pre() 112 if (ad in audit_pre() 148 aa_audit_msg(int type,struct apparmor_audit_data * ad,void (* cb)(struct audit_buffer *,void *)) aa_audit_msg() argument 167 aa_audit(int type,struct aa_profile * profile,struct apparmor_audit_data * ad,void (* cb)(struct audit_buffer *,void *)) aa_audit() argument [all...] |
H A D | ipc.c | 55 struct apparmor_audit_data *ad = aad(sa); in audit_signal_cb() local 57 if (ad->request & AA_SIGNAL_PERM_MASK) { in audit_signal_cb() 59 audit_signal_mask(ad->request)); in audit_signal_cb() 60 if (ad->denied & AA_SIGNAL_PERM_MASK) { in audit_signal_cb() 62 audit_signal_mask(ad->denied)); in audit_signal_cb() 65 if (ad->signal == SIGUNKNOWN) in audit_signal_cb() 67 ad->unmappedsig); in audit_signal_cb() 68 else if (ad->signal < MAXMAPPED_SIGNAME) in audit_signal_cb() 69 audit_log_format(ab, " signal=%s", sig_names[ad->signal]); in audit_signal_cb() 72 ad->signal - SIGRT_BASE); in audit_signal_cb() [all …]
|
H A D | task.c | 208 struct apparmor_audit_data *ad = aad(sa); in audit_ptrace_cb() local 210 if (ad->request & AA_PTRACE_PERM_MASK) { in audit_ptrace_cb() 212 audit_ptrace_mask(ad->request)); in audit_ptrace_cb() 214 if (ad->denied & AA_PTRACE_PERM_MASK) { in audit_ptrace_cb() 216 audit_ptrace_mask(ad->denied)); in audit_ptrace_cb() 220 aa_label_xaudit(ab, labels_ns(ad->subj_label), ad->peer, in audit_ptrace_cb() 229 struct apparmor_audit_data *ad) in profile_ptrace_perm() argument 235 ad->subj_cred = cred; in profile_ptrace_perm() 236 ad->peer = peer; in profile_ptrace_perm() 240 return aa_check_perms(profile, &perms, request, ad, audit_ptrace_cb); in profile_ptrace_perm() [all …]
|
H A D | net.c | 74 struct apparmor_audit_data *ad = aad(sa); in audit_net_cb() local 82 if (sock_type_names[ad->net.type]) in audit_net_cb() 84 sock_type_names[ad->net.type]); in audit_net_cb() 87 ad->net.type); in audit_net_cb() 88 audit_log_format(ab, " protocol=%d", ad->net.protocol); in audit_net_cb() 90 if (ad->request & NET_PERMS_MASK) { in audit_net_cb() 92 aa_audit_perm_mask(ab, ad->request, NULL, 0, in audit_net_cb() 95 if (ad->denied & NET_PERMS_MASK) { in audit_net_cb() 97 aa_audit_perm_mask(ab, ad->denied, NULL, 0, in audit_net_cb() 101 if (ad->peer) { in audit_net_cb() [all …]
|
H A D | file.c | 47 struct apparmor_audit_data *ad = aad(sa); in file_audit_cb() local 48 kuid_t fsuid = ad->subj_cred ? ad->subj_cred->fsuid : current_fsuid(); in file_audit_cb() 51 if (ad->request & AA_AUDIT_FILE_MASK) { in file_audit_cb() 53 map_mask_to_chr_mask(ad->request)); in file_audit_cb() 56 if (ad->denied & AA_AUDIT_FILE_MASK) { in file_audit_cb() 58 map_mask_to_chr_mask(ad->denied)); in file_audit_cb() 61 if (ad->request & AA_AUDIT_FILE_MASK) { in file_audit_cb() 65 from_kuid(&init_user_ns, ad->fs.ouid)); in file_audit_cb() 68 if (ad->peer) { in file_audit_cb() 70 aa_label_xaudit(ab, labels_ns(ad->subj_label), ad->peer, in file_audit_cb() [all …]
|
H A D | lib.c | 110 DEFINE_AUDIT_DATA(ad, LSM_AUDIT_DATA_NONE, AA_CLASS_NONE, NULL); in aa_splitn_fqname() 112 ad.info = str; in aa_splitn_fqname() 113 aa_audit_msg(AUDIT_APPARMOR_STATUS, &ad, NULL); in aa_splitn_fqname() 292 * @ad: initialized audit structure (MAY BE NULL if not auditing) in aa_audit_perms_cb() 305 u32 request, struct apparmor_audit_data *ad, 314 if (!request || !ad) in aa_apply_modes_to_perms() 333 if (!ad || !denied) in aa_apply_modes_to_perms() 337 if (ad) { in aa_profile_match_label() 338 ad->subj_label = &profile->label; in aa_profile_match_label() 339 ad in aa_profile_match_label() 286 struct apparmor_audit_data *ad = aad(sa); aa_audit_perms_cb() local 355 aa_profile_label_perm(struct aa_profile * profile,struct aa_profile * target,u32 request,int type,u32 * deny,struct apparmor_audit_data * ad) aa_profile_label_perm() argument 389 aa_check_perms(struct aa_profile * profile,struct aa_perms * perms,u32 request,struct apparmor_audit_data * ad,void (* cb)(struct audit_buffer *,void *)) aa_check_perms() argument [all...] |
H A D | resource.c | 33 struct apparmor_audit_data *ad = aad(sa); in audit_cb() local 36 rlim_names[ad->rlim.rlim], ad->rlim.max); in audit_cb() 37 if (ad->peer) { in audit_cb() 39 aa_label_xaudit(ab, labels_ns(ad->subj_label), ad->peer, in audit_cb() 61 DEFINE_AUDIT_DATA(ad, LSM_AUDIT_DATA_NONE, AA_CLASS_RLIMITS, in audit_resource() 64 ad.subj_cred = subj_cred; in audit_resource() 65 ad.rlim.rlim = resource; in audit_resource() 66 ad.rlim.max = value; in audit_resource() 67 ad.peer = peer; in audit_resource() 68 ad.info = info; in audit_resource() [all …]
|
H A D | capability.c | 56 * @ad: audit data 64 * Returns: 0 or ad->error on success, error code on failure in audit_caps() argument 66 static int audit_caps(struct apparmor_audit_data *ad, struct aa_profile *profile, in audit_caps() 76 ad->error = error; in audit_caps() 97 if (ad->subj_cred == ent->ad_subj_cred && ktime_get_ns() <= ent->ktime_ns_expiration[cap]) { in audit_caps() 104 ent->ad_subj_cred = get_cred(ad->subj_cred); in audit_caps() 109 return aa_audit(type, profile, ad, audit_cb); 117 * @ad: audit data (NOT NULL) in profile_capable() argument 122 unsigned int opts, struct apparmor_audit_data *ad) in profile_capable() 140 ad in profile_capable() [all...] |
H A D | mount.c | 91 struct apparmor_audit_data *ad = aad(sa); in audit_cb() local 93 if (ad->mnt.type) { in audit_cb() 95 audit_log_untrustedstring(ab, ad->mnt.type); in audit_cb() 97 if (ad->mnt.src_name) { in audit_cb() 99 audit_log_untrustedstring(ab, ad->mnt.src_name); in audit_cb() 101 if (ad->mnt.trans) { in audit_cb() 103 audit_log_untrustedstring(ab, ad->mnt.trans); in audit_cb() 105 if (ad->mnt.flags) { in audit_cb() 107 audit_mnt_flags(ab, ad->mnt.flags); in audit_cb() 110 if (ad->mnt.data) { in audit_cb() [all …]
|
/linux/security/smack/ |
H A D | smack_lsm.c | 434 struct smk_audit_info ad, *saip = NULL; in smk_ptrace_rule_check() local 440 smk_ad_init(&ad, func, LSM_AUDIT_DATA_TASK); in smk_ptrace_rule_check() 441 smk_ad_setfield_u_tsk(&ad, tracer); in smk_ptrace_rule_check() 442 saip = &ad; in smk_ptrace_rule_check() 898 struct smk_audit_info ad; in smack_sb_statfs() local 900 smk_ad_init(&ad, __func__, LSM_AUDIT_DATA_DENTRY); in smack_sb_statfs() 901 smk_ad_setfield_u_fs_path_dentry(&ad, dentry); in smack_sb_statfs() 903 rc = smk_curacc(sbp->smk_floor, MAY_READ, &ad); in smack_sb_statfs() 1076 struct smk_audit_info ad; in smack_inode_link() local 1079 smk_ad_init(&ad, __func__, LSM_AUDIT_DATA_DENTRY); in smack_inode_link() [all …]
|
/linux/security/selinux/ |
H A D | hooks.c | 231 static void __ad_net_init(struct common_audit_data *ad, in __ad_net_init() argument 235 ad->type = LSM_AUDIT_DATA_NET; in __ad_net_init() 236 ad->u.net = net; in __ad_net_init() 242 static void ad_net_init_from_sk(struct common_audit_data *ad, in ad_net_init_from_sk() argument 246 __ad_net_init(ad, net, 0, sk, 0); in ad_net_init_from_sk() 249 static void ad_net_init_from_iif(struct common_audit_data *ad, in ad_net_init_from_iif() argument 253 __ad_net_init(ad, net, ifindex, NULL, family); in ad_net_init_from_iif() 1627 struct common_audit_data ad; in cred_has_capability() local 1634 ad.type = LSM_AUDIT_DATA_CAP; in cred_has_capability() 1635 ad.u.cap = cap; in cred_has_capability() [all …]
|
/linux/drivers/video/fbdev/ |
H A D | fsl-diu-fb.c | 336 struct diu_ad *ad; member 377 struct diu_ad ad[NUM_AOIS] __aligned(8); member 503 struct diu_ad *ad = mfbi->ad; in fsl_diu_enable_panel() local 509 wr_reg_wa(&hw->desc[0], ad->paddr); in fsl_diu_enable_panel() 513 if (hw->desc[1] != ad->paddr) { /* AOI0 closed */ in fsl_diu_enable_panel() 515 ad->next_ad = in fsl_diu_enable_panel() 516 cpu_to_le32(cmfbi->ad->paddr); in fsl_diu_enable_panel() 518 ad->next_ad = 0; in fsl_diu_enable_panel() 519 wr_reg_wa(&hw->desc[1], ad->paddr); in fsl_diu_enable_panel() 524 if (hw->desc[2] != ad->paddr) { /* AOI0 closed */ in fsl_diu_enable_panel() [all …]
|
/linux/security/ |
H A D | lsm_audit.c | 41 struct common_audit_data *ad, u8 *proto) in ipv4_skb_to_auditdata() argument 47 ad->u.net->v4info.saddr = ih->saddr; in ipv4_skb_to_auditdata() 48 ad->u.net->v4info.daddr = ih->daddr; in ipv4_skb_to_auditdata() 60 ad->u.net->sport = th->source; in ipv4_skb_to_auditdata() 61 ad->u.net->dport = th->dest; in ipv4_skb_to_auditdata() 67 ad->u.net->sport = uh->source; in ipv4_skb_to_auditdata() 68 ad->u.net->dport = uh->dest; in ipv4_skb_to_auditdata() 74 ad->u.net->sport = dh->dccph_sport; in ipv4_skb_to_auditdata() 75 ad->u.net->dport = dh->dccph_dport; in ipv4_skb_to_auditdata() 81 ad->u.net->sport = sh->source; in ipv4_skb_to_auditdata() [all …]
|
/linux/lib/crypto/ |
H A D | chacha20poly1305.c | 58 const u8 *ad, const size_t ad_len, u32 *chacha_state) in __chacha20poly1305_encrypt() argument 70 poly1305_update(&poly1305_state, ad, ad_len); in __chacha20poly1305_encrypt() 91 const u8 *ad, const size_t ad_len, in chacha20poly1305_encrypt() argument 105 __chacha20poly1305_encrypt(dst, src, src_len, ad, ad_len, chacha_state); in chacha20poly1305_encrypt() 113 const u8 *ad, const size_t ad_len, in xchacha20poly1305_encrypt() argument 120 __chacha20poly1305_encrypt(dst, src, src_len, ad, ad_len, chacha_state); in xchacha20poly1305_encrypt() 126 const u8 *ad, const size_t ad_len, u32 *chacha_state) in __chacha20poly1305_decrypt() argument 144 poly1305_update(&poly1305_state, ad, ad_len); in __chacha20poly1305_decrypt() 169 const u8 *ad, const size_t ad_len, in chacha20poly1305_decrypt() argument 184 ret = __chacha20poly1305_decrypt(dst, src, src_len, ad, ad_len, in chacha20poly1305_decrypt() [all …]
|
/linux/include/crypto/ |
H A D | chacha20poly1305.h | 19 const u8 *ad, const size_t ad_len, 25 const u8 *ad, const size_t ad_len, const u64 nonce, 29 const u8 *ad, const size_t ad_len, 34 u8 *dst, const u8 *src, const size_t src_len, const u8 *ad, 39 const u8 *ad, const size_t ad_len, 44 const u8 *ad, const size_t ad_len,
|
/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | q_in_q_veto.sh | 75 protocol 802.1ad id 100 2>/dev/null 79 protocol 802.1ad id 100 2>&1 >/dev/null \ 98 protocol 802.1ad id 100 2>/dev/null 102 protocol 802.1ad id 100 2>&1 >/dev/null \ 115 ip link add name bond1 type bond mode 802.3ad 120 protocol 802.1ad id 100 2>/dev/null 124 protocol 802.1ad id 100 2>&1 >/dev/null \ 159 vlan_protocol 802.1ad vlan_default_pvid 0 mcast_snooping 0 182 vlan_protocol 802.1ad vlan_default_pvid 0 mcast_snooping 0 186 ip link add name bond1 type bond mode 802.3ad [all …]
|
H A D | vxlan_flooding.sh | 182 flower skip_hw dst_mac de:ad:be:ef:13:37 action pass 245 $MZ $h1 -q -p 64 -b de:ad:be:ef:13:37 -t ip -c 1 259 $MZ $h1 -q -p 64 -b de:ad:be:ef:13:37 -t ip -c 1 271 $MZ $h1 -q -p 64 -b de:ad:be:ef:13:37 -t ip -c 1 283 $MZ $h1 -q -p 64 -b de:ad:be:ef:13:37 -t ip -c 1 294 $MZ $h1 -q -p 64 -b de:ad:be:ef:13:37 -t ip -c 1 303 $MZ $h1 -q -p 64 -b de:ad:be:ef:13:37 -t ip -c 1 312 $MZ $h1 -q -p 64 -b de:ad:be:ef:13:37 -t ip -c 1
|
/linux/tools/testing/selftests/net/forwarding/ |
H A D | bridge_vlan_aware.sh | 115 local mac=de:ad:be:ef:13:37 121 bridge fdb add de:ad:be:ef:13:37 dev $swp1 master extern_learn vlan 1 123 bridge fdb show brport $swp1 | grep -q de:ad:be:ef:13:37 131 bridge fdb show brport $swp1 | grep -q de:ad:be:ef:13:37 136 bridge fdb show brport $swp2 | grep -q de:ad:be:ef:13:37 141 bridge fdb del de:ad:be:ef:13:37 dev $swp2 master vlan 1 &> /dev/null 142 bridge fdb del de:ad:be:ef:13:37 dev $swp1 master vlan 1 &> /dev/null 147 local mac=de:ad:be:ef:13:37
|
/linux/tools/testing/selftests/drivers/net/mlxsw/spectrum/ |
H A D | vxlan_flooding_ipv6.sh | 229 $MZ -6 $h1 -q -p 64 -b de:ad:be:ef:13:37 -t ip -c 1 245 $MZ -6 $h1 -q -p 64 -b de:ad:be:ef:13:37 -t ip -c 1 259 $MZ -6 $h1 -q -p 64 -b de:ad:be:ef:13:37 -t ip -c 1 273 $MZ -6 $h1 -q -p 64 -b de:ad:be:ef:13:37 -t ip -c 1 284 $MZ -6 $h1 -q -p 64 -b de:ad:be:ef:13:37 -t ip -c 1 293 $MZ -6 $h1 -q -p 64 -b de:ad:be:ef:13:37 -t ip -c 1 302 $MZ -6 $h1 -q -p 64 -b de:ad:be:ef:13:37 -t ip -c 1 311 $MZ -6 $h1 -q -p 64 -b de:ad:be:ef:13:37 -t ip -c 1 320 $MZ -6 $h1 -q -p 64 -b de:ad:be:ef:13:37 -t ip -c 1
|
/linux/include/linux/ |
H A D | audit.h | 423 extern void __audit_ntp_log(const struct audit_ntp_data *ad); 544 static inline void audit_ntp_init(struct audit_ntp_data *ad) in audit_ntp_init() argument 546 memset(ad, 0, sizeof(*ad)); in audit_ntp_init() 549 static inline void audit_ntp_set_old(struct audit_ntp_data *ad, in audit_ntp_set_old() argument 552 ad->vals[type].oldval = val; in audit_ntp_set_old() 555 static inline void audit_ntp_set_new(struct audit_ntp_data *ad, in audit_ntp_set_new() argument 558 ad->vals[type].newval = val; in audit_ntp_set_new() 561 static inline void audit_ntp_log(const struct audit_ntp_data *ad) in audit_ntp_log() argument 564 __audit_ntp_log(ad); in audit_ntp_log() 690 static inline void audit_ntp_init(struct audit_ntp_data *ad) in audit_ntp_init() argument [all …]
|
/linux/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/ |
H A D | vxlan_flooding_ipv6.sh | 169 flower skip_hw dst_mac de:ad:be:ef:13:37 action pass 246 $MZ $h1 -q -p 64 -b de:ad:be:ef:13:37 -t ip -c 1 261 $MZ $h1 -q -p 64 -b de:ad:be:ef:13:37 -t ip -c 1 274 $MZ $h1 -q -p 64 -b de:ad:be:ef:13:37 -t ip -c 1 287 $MZ -6 $h1 -q -p 64 -b de:ad:be:ef:13:37 -t ip -c 1 298 $MZ -6 $h1 -q -p 64 -b de:ad:be:ef:13:37 -t ip -c 1 307 $MZ -6 $h1 -q -p 64 -b de:ad:be:ef:13:37 -t ip -c 1 316 $MZ -6 $h1 -q -p 64 -b de:ad:be:ef:13:37 -t ip -c 1 325 $MZ -6 $h1 -q -p 64 -b de:ad:be:ef:13:37 -t ip -c 1
|
/linux/security/selinux/include/ |
H A D | xfrm.h | 42 struct common_audit_data *ad); 44 struct common_audit_data *ad, u8 proto); 64 struct common_audit_data *ad) in selinux_xfrm_sock_rcv_skb() argument 70 struct common_audit_data *ad, in selinux_xfrm_postroute_last() argument
|