/Linux-v6.1/drivers/memory/tegra/ |
D | tegra194.c | 16 .sid = TEGRA194_SID_PASSTHROUGH, 18 .sid = { 26 .sid = TEGRA194_SID_MIU, 28 .sid = { 36 .sid = TEGRA194_SID_MIU, 38 .sid = { 46 .sid = TEGRA194_SID_HDA, 48 .sid = { 56 .sid = TEGRA194_SID_HOST1X, 58 .sid = { [all …]
|
D | tegra186.c | 33 override = readl(mc->regs + client->regs.sid.override); in tegra186_mc_program_sid() 34 security = readl(mc->regs + client->regs.sid.security); in tegra186_mc_program_sid() 39 dev_dbg(mc->dev, "setting SID %u for %s\n", client->sid, in tegra186_mc_program_sid() 41 writel(client->sid, mc->regs + client->regs.sid.override); in tegra186_mc_program_sid() 43 override = readl(mc->regs + client->regs.sid.override); in tegra186_mc_program_sid() 44 security = readl(mc->regs + client->regs.sid.security); in tegra186_mc_program_sid() 108 unsigned int sid) in tegra186_mc_client_sid_override() argument 112 value = readl(mc->regs + client->regs.sid.security); in tegra186_mc_client_sid_override() 131 writel(value, mc->regs + client->regs.sid.security); in tegra186_mc_client_sid_override() 134 value = readl(mc->regs + client->regs.sid.override); in tegra186_mc_client_sid_override() [all …]
|
D | tegra234.c | 16 .sid = TEGRA234_SID_MGBE, 18 .sid = { 26 .sid = TEGRA234_SID_MGBE_VF1, 28 .sid = { 36 .sid = TEGRA234_SID_MGBE_VF2, 38 .sid = { 46 .sid = TEGRA234_SID_MGBE_VF3, 48 .sid = { 56 .sid = TEGRA234_SID_MGBE, 58 .sid = { [all …]
|
/Linux-v6.1/security/selinux/include/ |
D | objsec.h | 32 u32 osid; /* SID prior to last execve */ 33 u32 sid; /* current SID */ member 34 u32 exec_sid; /* exec SID */ 35 u32 create_sid; /* fscreate SID */ 36 u32 keycreate_sid; /* keycreate SID */ 37 u32 sockcreate_sid; /* fscreate SID */ 49 u32 task_sid; /* SID of creating task */ 50 u32 sid; /* SID of this object */ member 57 u32 sid; /* SID of open file description */ member 58 u32 fown_sid; /* SID of file owner (for SIGIO) */ [all …]
|
/Linux-v6.1/include/trace/events/ |
D | spmi.h | 16 TP_PROTO(u8 opcode, u8 sid, u16 addr, u8 len, const u8 *buf), 17 TP_ARGS(opcode, sid, addr, len, buf), 21 __field ( u8, sid ) 29 __entry->sid = sid; 35 TP_printk("opc=%d sid=%02d addr=0x%04x len=%d buf=0x[%*phD]", 36 (int)__entry->opcode, (int)__entry->sid, 42 TP_PROTO(u8 opcode, u8 sid, u16 addr, int ret), 43 TP_ARGS(opcode, sid, addr, ret), 47 __field ( u8, sid ) 54 __entry->sid = sid; [all …]
|
/Linux-v6.1/drivers/nvmem/ |
D | sunxi_sid.c | 20 /* Registers and special values for doing register-based SID readout on H3 */ 43 struct sunxi_sid *sid = context; in sunxi_sid_read() local 45 memcpy_fromio(val, sid->base + sid->value_offset + offset, bytes); in sunxi_sid_read() 50 static int sun8i_sid_register_readout(const struct sunxi_sid *sid, in sun8i_sid_register_readout() argument 61 writel(reg_val, sid->base + SUN8I_SID_PRCTL); in sun8i_sid_register_readout() 63 ret = readl_poll_timeout(sid->base + SUN8I_SID_PRCTL, reg_val, in sun8i_sid_register_readout() 69 *out = readl(sid->base + SUN8I_SID_RDKEY); in sun8i_sid_register_readout() 71 writel(0, sid->base + SUN8I_SID_PRCTL); in sun8i_sid_register_readout() 77 * On Allwinner H3, the value on the 0x200 offset of the SID controller seems 84 struct sunxi_sid *sid = context; in sun8i_sid_read_by_reg() local [all …]
|
/Linux-v6.1/security/selinux/ |
D | hooks.c | 217 tsec->osid = tsec->sid = SECINITSID_KERNEL; in cred_init_security() 228 return tsec->sid; in cred_sid() 236 u32 sid; in task_sid_obj() local 239 sid = cred_sid(__task_cred(task)); in task_sid_obj() 241 return sid; in task_sid_obj() 399 static int may_context_mount_sb_relabel(u32 sid, in may_context_mount_sb_relabel() argument 407 tsec->sid, sbsec->sid, SECCLASS_FILESYSTEM, in may_context_mount_sb_relabel() 413 tsec->sid, sid, SECCLASS_FILESYSTEM, in may_context_mount_sb_relabel() 418 static int may_context_mount_inode_relabel(u32 sid, in may_context_mount_inode_relabel() argument 425 tsec->sid, sbsec->sid, SECCLASS_FILESYSTEM, in may_context_mount_inode_relabel() [all …]
|
D | ibpkey.c | 118 * sel_ib_pkey_sid_slow - Lookup the SID of a pkey using the policy 121 * @sid: pkey SID 124 * This function determines the SID of a pkey by querying the security 129 static int sel_ib_pkey_sid_slow(u64 subnet_prefix, u16 pkey_num, u32 *sid) in sel_ib_pkey_sid_slow() argument 139 *sid = pkey->psec.sid; in sel_ib_pkey_sid_slow() 145 sid); in sel_ib_pkey_sid_slow() 149 /* If this memory allocation fails still return 0. The SID in sel_ib_pkey_sid_slow() 160 new->psec.sid = *sid; in sel_ib_pkey_sid_slow() 169 * sel_ib_pkey_sid - Lookup the SID of a PKEY 172 * @sid: pkey SID [all …]
|
D | netport.c | 126 * sel_netport_sid_slow - Lookup the SID of a network address using the policy 129 * @sid: port SID 132 * This function determines the SID of a network port by querying the security 137 static int sel_netport_sid_slow(u8 protocol, u16 pnum, u32 *sid) in sel_netport_sid_slow() argument 146 *sid = port->psec.sid; in sel_netport_sid_slow() 151 ret = security_port_sid(&selinux_state, protocol, pnum, sid); in sel_netport_sid_slow() 158 new->psec.sid = *sid; in sel_netport_sid_slow() 171 * sel_netport_sid - Lookup the SID of a network port 174 * @sid: port SID 177 * This function determines the SID of a network port using the fastest method [all …]
|
D | netif.c | 6 * maintain a table associating each interface with a SID. 120 * sel_netif_sid_slow - Lookup the SID of a network interface using the policy 123 * @sid: interface SID 126 * This function determines the SID of a network interface by querying the 132 static int sel_netif_sid_slow(struct net *ns, int ifindex, u32 *sid) in sel_netif_sid_slow() argument 152 *sid = netif->nsec.sid; in sel_netif_sid_slow() 156 ret = security_netif_sid(&selinux_state, dev->name, sid); in sel_netif_sid_slow() 163 new->nsec.sid = *sid; in sel_netif_sid_slow() 178 * sel_netif_sid - Lookup the SID of a network interface 181 * @sid: interface SID [all …]
|
D | netnode.c | 178 * sel_netnode_sid_slow - Lookup the SID of a network address using the policy 181 * @sid: node SID 184 * This function determines the SID of a network address by querying the 190 static int sel_netnode_sid_slow(void *addr, u16 family, u32 *sid) in sel_netnode_sid_slow() argument 199 *sid = node->nsec.sid; in sel_netnode_sid_slow() 208 addr, sizeof(struct in_addr), sid); in sel_netnode_sid_slow() 214 addr, sizeof(struct in6_addr), sid); in sel_netnode_sid_slow() 224 new->nsec.sid = *sid; in sel_netnode_sid_slow() 237 * sel_netnode_sid - Lookup the SID of a network address 240 * @sid: node SID [all …]
|
D | netlabel.c | 30 * selinux_netlbl_sidlookup_cached - Cache a SID lookup 34 * @sid: the SID 37 * Query the SELinux security server to lookup the correct SID for the given 45 u32 *sid) in selinux_netlbl_sidlookup_cached() argument 49 rc = security_netlbl_secattr_to_sid(&selinux_state, secattr, sid); in selinux_netlbl_sidlookup_cached() 80 rc = security_netlbl_sid_to_secattr(&selinux_state, sksec->sid, in selinux_netlbl_sock_genattr() 94 * @sid: the SID 96 * Query the socket's cached secattr and if the SID matches the cached value 102 u32 sid) in selinux_netlbl_sock_getattr() argument 111 (secattr->attr.secid == sid)) in selinux_netlbl_sock_getattr() [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/nvmem/ |
D | allwinner,sun4i-a10-sid.yaml | 4 $id: http://devicetree.org/schemas/nvmem/allwinner,sun4i-a10-sid.yaml# 19 - const: allwinner,sun4i-a10-sid 20 - const: allwinner,sun7i-a20-sid 21 - const: allwinner,sun8i-a83t-sid 22 - const: allwinner,sun8i-h3-sid 23 - const: allwinner,sun20i-d1-sid 24 - const: allwinner,sun50i-a64-sid 26 - const: allwinner,sun50i-a100-sid 27 - const: allwinner,sun50i-a64-sid 28 - const: allwinner,sun50i-h5-sid [all …]
|
/Linux-v6.1/tools/testing/selftests/net/ |
D | srv6_end_next_csid_l3vpn_test.sh | 6 # This script is designed for testing the support of NEXT-C-SID flavor for SRv6 8 # A basic knowledge of SRv6 architecture [1] and of the compressed SID approach 14 # the NEXT-C-SID flavor. The key components for such VPNs are: 19 # ii) The SRv6 End behavior [1] advances the active SID in the SID List 22 # iii) The NEXT-C-SID mechanism [2] offers the possibility of encoding several 23 # SRv6 segments within a single 128-bit SID address, referred to as a 24 # Compressed SID (C-SID) container. In this way, the length of the SID 26 # The NEXT-C-SID is provided as a "flavor" of the SRv6 End behavior 27 # which advances the current C-SID (i.e. the Locator-Node Function defined 30 # will apply the End function selecting the next SID in the SID List. [all …]
|
/Linux-v6.1/include/uapi/linux/netfilter_ipv6/ |
D | ip6t_srh.h | 70 * @ psid_addr: Address of previous SID in SRH SID list 71 * @ nsid_addr: Address of NEXT SID in SRH SID list 72 * @ lsid_addr: Address of LAST SID in SRH SID list 73 * @ psid_msk: Mask of previous SID in SRH SID list 74 * @ nsid_msk: Mask of next SID in SRH SID list 75 * @ lsid_msk: MAsk of last SID in SRH SID list
|
/Linux-v6.1/net/sctp/ |
D | stream_sched.c | 25 static int sctp_sched_fcfs_set(struct sctp_stream *stream, __u16 sid, in sctp_sched_fcfs_set() argument 31 static int sctp_sched_fcfs_get(struct sctp_stream *stream, __u16 sid, in sctp_sched_fcfs_get() argument 43 static int sctp_sched_fcfs_init_sid(struct sctp_stream *stream, __u16 sid, in sctp_sched_fcfs_init_sid() argument 49 static void sctp_sched_fcfs_free_sid(struct sctp_stream *stream, __u16 sid) in sctp_sched_fcfs_free_sid() argument 201 int sctp_sched_set_value(struct sctp_association *asoc, __u16 sid, in sctp_sched_set_value() argument 204 if (sid >= asoc->stream.outcnt) in sctp_sched_set_value() 207 if (!SCTP_SO(&asoc->stream, sid)->ext) { in sctp_sched_set_value() 210 ret = sctp_stream_init_ext(&asoc->stream, sid); in sctp_sched_set_value() 215 return asoc->outqueue.sched->set(&asoc->stream, sid, value, gfp); in sctp_sched_set_value() 218 int sctp_sched_get_value(struct sctp_association *asoc, __u16 sid, in sctp_sched_get_value() argument [all …]
|
D | stream_sched_rr.c | 65 static int sctp_sched_rr_set(struct sctp_stream *stream, __u16 sid, in sctp_sched_rr_set() argument 71 static int sctp_sched_rr_get(struct sctp_stream *stream, __u16 sid, in sctp_sched_rr_get() argument 85 static int sctp_sched_rr_init_sid(struct sctp_stream *stream, __u16 sid, in sctp_sched_rr_init_sid() argument 88 INIT_LIST_HEAD(&SCTP_SO(stream, sid)->ext->rr_list); in sctp_sched_rr_init_sid() 93 static void sctp_sched_rr_free_sid(struct sctp_stream *stream, __u16 sid) in sctp_sched_rr_free_sid() argument 107 __u16 sid; in sctp_sched_rr_enqueue() local 110 sid = sctp_chunk_stream_no(ch); in sctp_sched_rr_enqueue() 112 sctp_sched_rr_sched(stream, SCTP_SO(stream, sid)->ext); in sctp_sched_rr_enqueue() 142 __u16 sid; in sctp_sched_rr_dequeue_done() local 145 sid = sctp_chunk_stream_no(ch); in sctp_sched_rr_dequeue_done() [all …]
|
D | stream_interleave.c | 53 __u16 sid; in sctp_chunk_assign_mid() local 58 sid = sctp_chunk_stream_no(chunk); in sctp_chunk_assign_mid() 76 sctp_mid_uo_next(stream, out, sid) : in sctp_chunk_assign_mid() 77 sctp_mid_uo_peek(stream, out, sid); in sctp_chunk_assign_mid() 80 sctp_mid_next(stream, out, sid) : in sctp_chunk_assign_mid() 81 sctp_mid_peek(stream, out, sid); in sctp_chunk_assign_mid() 90 __u16 sid, ssn; in sctp_validate_data() local 99 sid = sctp_chunk_stream_no(chunk); in sctp_validate_data() 102 return !SSN_lt(ssn, sctp_ssn_peek(stream, in, sid)); in sctp_validate_data() 109 __u16 sid; in sctp_validate_idata() local [all …]
|
D | stream_sched_prio.c | 150 static int sctp_sched_prio_set(struct sctp_stream *stream, __u16 sid, in sctp_sched_prio_set() argument 153 struct sctp_stream_out *sout = SCTP_SO(stream, sid); in sctp_sched_prio_set() 186 static int sctp_sched_prio_get(struct sctp_stream *stream, __u16 sid, in sctp_sched_prio_get() argument 189 *value = SCTP_SO(stream, sid)->ext->prio_head->prio; in sctp_sched_prio_get() 200 static int sctp_sched_prio_init_sid(struct sctp_stream *stream, __u16 sid, in sctp_sched_prio_init_sid() argument 203 INIT_LIST_HEAD(&SCTP_SO(stream, sid)->ext->prio_list); in sctp_sched_prio_init_sid() 204 return sctp_sched_prio_set(stream, sid, 0, gfp); in sctp_sched_prio_init_sid() 207 static void sctp_sched_prio_free_sid(struct sctp_stream *stream, __u16 sid) in sctp_sched_prio_free_sid() argument 209 struct sctp_stream_priorities *prio = SCTP_SO(stream, sid)->ext->prio_head; in sctp_sched_prio_free_sid() 215 SCTP_SO(stream, sid)->ext->prio_head = NULL; in sctp_sched_prio_free_sid() [all …]
|
/Linux-v6.1/sound/core/ |
D | ctljack.c | 32 struct snd_ctl_elem_id sid; in get_available_index() local 34 memset(&sid, 0, sizeof(sid)); in get_available_index() 36 sid.index = 0; in get_available_index() 37 sid.iface = SNDRV_CTL_ELEM_IFACE_CARD; in get_available_index() 38 strscpy(sid.name, name, sizeof(sid.name)); in get_available_index() 40 while (snd_ctl_find_id(card, &sid)) { in get_available_index() 41 sid.index++; in get_available_index() 43 sid.numid = 0; in get_available_index() 46 return sid.index; in get_available_index()
|
/Linux-v6.1/security/selinux/ss/ |
D | sidtab.c | 3 * Implementation of the SID table type. 31 #define sid_to_index(sid) ((sid) - (SECINITSID_NUM + 1)) argument 61 u32 sid = 0; in context_to_sid() local 68 sid = entry->sid; in context_to_sid() 73 return sid; in context_to_sid() 76 int sidtab_set_initial(struct sidtab *s, u32 sid, struct context *context) in sidtab_set_initial() argument 82 if (sid == 0 || sid > SECINITSID_NUM) in sidtab_set_initial() 85 isid = &s->isids[sid - 1]; in sidtab_set_initial() 105 isid->entry.sid = sid; in sidtab_set_initial() 232 static struct sidtab_entry *sidtab_lookup_initial(struct sidtab *s, u32 sid) in sidtab_lookup_initial() argument [all …]
|
D | services.c | 792 pr_err("SELinux: %s: unrecognized SID %d\n", in security_compute_validatetrans() 800 pr_err("SELinux: %s: unrecognized SID %d\n", in security_compute_validatetrans() 808 pr_err("SELinux: %s: unrecognized SID %d\n", in security_compute_validatetrans() 886 pr_err("SELinux: %s: unrecognized SID %u\n", in security_bounded_transition() 894 pr_err("SELinux: %s: unrecognized SID %u\n", in security_bounded_transition() 1047 pr_err("SELinux: %s: unrecognized SID %d\n", in security_compute_xperms_decision() 1054 pr_err("SELinux: %s: unrecognized SID %d\n", in security_compute_xperms_decision() 1108 * SID pair (@ssid, @tsid) for the permissions in @tclass. 1135 pr_err("SELinux: %s: unrecognized SID %d\n", in security_compute_av() 1146 pr_err("SELinux: %s: unrecognized SID %d\n", in security_compute_av() [all …]
|
D | sidtab.h | 4 * of security context structures indexed by SID value. 21 u32 sid; member 93 /* SID -> context string cache */ 99 /* index == SID - 1 (no entry for SECSID_NULL) */ 102 /* Hash table for fast reverse context-to-sid lookups. */ 107 int sidtab_set_initial(struct sidtab *s, u32 sid, struct context *context); 108 struct sidtab_entry *sidtab_search_entry(struct sidtab *s, u32 sid); 109 struct sidtab_entry *sidtab_search_entry_force(struct sidtab *s, u32 sid); 111 static inline struct context *sidtab_search(struct sidtab *s, u32 sid) in sidtab_search() argument 113 struct sidtab_entry *entry = sidtab_search_entry(s, sid); in sidtab_search() [all …]
|
/Linux-v6.1/drivers/staging/media/atomisp/pci/runtime/isys/src/ |
D | isys_stream2mmio_rmgr.c | 40 stream2mmio_sid_ID_t *sid) in ia_css_isys_stream2mmio_sid_rmgr_acquire() argument 48 assert(sid); in ia_css_isys_stream2mmio_sid_rmgr_acquire() 50 if ((stream2mmio < N_STREAM2MMIO_ID) && (sid)) { in ia_css_isys_stream2mmio_sid_rmgr_acquire() 58 *sid = i; in ia_css_isys_stream2mmio_sid_rmgr_acquire() 71 stream2mmio_sid_ID_t *sid) in ia_css_isys_stream2mmio_sid_rmgr_release() argument 77 assert(sid); in ia_css_isys_stream2mmio_sid_rmgr_release() 79 if ((stream2mmio < N_STREAM2MMIO_ID) && (sid)) { in ia_css_isys_stream2mmio_sid_rmgr_release() 82 if ((*sid < max_sid) && (cur_rsrc->num_active > 0)) { in ia_css_isys_stream2mmio_sid_rmgr_release() 83 if (bitop_getbit(cur_rsrc->active_table, *sid) == 1) { in ia_css_isys_stream2mmio_sid_rmgr_release() 84 bitop_clearbit(cur_rsrc->active_table, *sid); in ia_css_isys_stream2mmio_sid_rmgr_release()
|
/Linux-v6.1/fs/ksmbd/ |
D | smbacl.c | 165 * This function is called for every ACE in the DACL whose SID matches 208 pntace->sid.revision = psid->revision; in fill_ace_for_sid() 209 pntace->sid.num_subauth = psid->num_subauth; in fill_ace_for_sid() 211 pntace->sid.authority[i] = psid->authority[i]; in fill_ace_for_sid() 213 pntace->sid.sub_auth[i] = psid->sub_auth[i]; in fill_ace_for_sid() 428 acl_size = offsetof(struct smb_ace, sid) + in parse_dacl() 432 ppace[i]->sid.num_subauth > SID_MAX_SUB_AUTHORITIES || in parse_dacl() 434 acl_size + sizeof(__le32) * ppace[i]->sid.num_subauth) || in parse_dacl() 436 acl_size + sizeof(__le32) * ppace[i]->sid.num_subauth)) in parse_dacl() 443 if (!(compare_sids(&ppace[i]->sid, &sid_unix_NFS_mode))) { in parse_dacl() [all …]
|