/linux-6.6.21/include/dt-bindings/iio/ |
D | qcom,spmi-adc7-pm8350.h | 12 #define PM8350_ADC7_REF_GND(sid) ((sid) << 8 | ADC7_REF_GND) argument 13 #define PM8350_ADC7_1P25VREF(sid) ((sid) << 8 | ADC7_1P25VREF) argument 14 #define PM8350_ADC7_VREF_VADC(sid) ((sid) << 8 | ADC7_VREF_VADC) argument 15 #define PM8350_ADC7_DIE_TEMP(sid) ((sid) << 8 | ADC7_DIE_TEMP) argument 17 #define PM8350_ADC7_AMUX_THM1(sid) ((sid) << 8 | ADC7_AMUX_THM1) argument 18 #define PM8350_ADC7_AMUX_THM2(sid) ((sid) << 8 | ADC7_AMUX_THM2) argument 19 #define PM8350_ADC7_AMUX_THM3(sid) ((sid) << 8 | ADC7_AMUX_THM3) argument 20 #define PM8350_ADC7_AMUX_THM4(sid) ((sid) << 8 | ADC7_AMUX_THM4) argument 21 #define PM8350_ADC7_AMUX_THM5(sid) ((sid) << 8 | ADC7_AMUX_THM5) argument 22 #define PM8350_ADC7_GPIO1(sid) ((sid) << 8 | ADC7_GPIO1) argument [all …]
|
/linux-6.6.21/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 | 74 unsigned int sid) in tegra186_mc_client_sid_override() argument 78 value = readl(mc->regs + client->regs.sid.security); in tegra186_mc_client_sid_override() 97 writel(value, mc->regs + client->regs.sid.security); in tegra186_mc_client_sid_override() 100 value = readl(mc->regs + client->regs.sid.override); in tegra186_mc_client_sid_override() 103 if (old != sid) { in tegra186_mc_client_sid_override() 105 client->name, sid); in tegra186_mc_client_sid_override() 106 writel(sid, mc->regs + client->regs.sid.override); in tegra186_mc_client_sid_override() 125 u32 sid = fwspec->ids[0] & MC_SID_STREAMID_OVERRIDE_MASK; in tegra186_mc_probe_device() local 127 tegra186_mc_client_sid_override(mc, client, sid); in tegra186_mc_probe_device() 151 .sid = TEGRA186_SID_PASSTHROUGH, [all …]
|
D | tegra234.c | 25 .sid = TEGRA234_SID_HDA, 27 .sid = { 37 .sid = TEGRA234_SID_NVENC, 39 .sid = { 49 .sid = TEGRA234_SID_PCIE6, 51 .sid = { 61 .sid = TEGRA234_SID_PCIE6, 63 .sid = { 73 .sid = TEGRA234_SID_PCIE7, 75 .sid = { [all …]
|
/linux-6.6.21/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; 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; 60 (int)__entry->opcode, (int)__entry->sid, [all …]
|
/linux-6.6.21/drivers/nvmem/ |
D | sunxi_sid.c | 42 struct sunxi_sid *sid = context; in sunxi_sid_read() local 46 __ioread32_copy(val, sid->base + sid->value_offset + offset, bytes / 4); in sunxi_sid_read() 56 word = readl_relaxed(sid->base + sid->value_offset + offset); in sunxi_sid_read() 62 static int sun8i_sid_register_readout(const struct sunxi_sid *sid, in sun8i_sid_register_readout() argument 73 writel(reg_val, sid->base + SUN8I_SID_PRCTL); in sun8i_sid_register_readout() 75 ret = readl_poll_timeout(sid->base + SUN8I_SID_PRCTL, reg_val, in sun8i_sid_register_readout() 81 *out = readl(sid->base + SUN8I_SID_RDKEY); in sun8i_sid_register_readout() 83 writel(0, sid->base + SUN8I_SID_PRCTL); in sun8i_sid_register_readout() 96 struct sunxi_sid *sid = context; in sun8i_sid_read_by_reg() local 102 ret = sun8i_sid_register_readout(sid, offset, val); in sun8i_sid_read_by_reg() [all …]
|
/linux-6.6.21/security/selinux/ |
D | hooks.c | 215 tsec->osid = tsec->sid = SECINITSID_KERNEL; in cred_init_security() 226 return tsec->sid; in cred_sid() 259 u32 sid; in task_sid_obj() local 262 sid = cred_sid(__task_cred(task)); in task_sid_obj() 264 return sid; in task_sid_obj() 422 static int may_context_mount_sb_relabel(u32 sid, in may_context_mount_sb_relabel() argument 429 rc = avc_has_perm(tsec->sid, sbsec->sid, SECCLASS_FILESYSTEM, in may_context_mount_sb_relabel() 434 rc = avc_has_perm(tsec->sid, sid, SECCLASS_FILESYSTEM, in may_context_mount_sb_relabel() 439 static int may_context_mount_inode_relabel(u32 sid, in may_context_mount_inode_relabel() argument 445 rc = avc_has_perm(tsec->sid, sbsec->sid, SECCLASS_FILESYSTEM, in may_context_mount_inode_relabel() [all …]
|
D | ibpkey.c | 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() 160 new->psec.sid = *sid; in sel_ib_pkey_sid_slow() 181 int sel_ib_pkey_sid(u64 subnet_prefix, u16 pkey_num, u32 *sid) in sel_ib_pkey_sid() argument 188 *sid = pkey->psec.sid; in sel_ib_pkey_sid() 194 return sel_ib_pkey_sid_slow(subnet_prefix, pkey_num, sid); in sel_ib_pkey_sid()
|
D | netport.c | 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(protocol, pnum, sid); in sel_netport_sid_slow() 158 new->psec.sid = *sid; in sel_netport_sid_slow() 183 int sel_netport_sid(u8 protocol, u16 pnum, u32 *sid) in sel_netport_sid() argument 190 *sid = port->psec.sid; in sel_netport_sid() 196 return sel_netport_sid_slow(protocol, pnum, sid); in sel_netport_sid()
|
D | netnode.c | 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() 250 int sel_netnode_sid(void *addr, u16 family, u32 *sid) in sel_netnode_sid() argument 257 *sid = node->nsec.sid; in sel_netnode_sid() 263 return sel_netnode_sid_slow(addr, family, sid); in sel_netnode_sid()
|
D | netif.c | 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(dev->name, sid); in sel_netif_sid_slow() 163 new->nsec.sid = *sid; in sel_netif_sid_slow() 191 int sel_netif_sid(struct net *ns, int ifindex, u32 *sid) in sel_netif_sid() argument 198 *sid = netif->nsec.sid; in sel_netif_sid() 204 return sel_netif_sid_slow(ns, ifindex, sid); in sel_netif_sid()
|
/linux-6.6.21/security/selinux/include/ |
D | objsec.h | 33 u32 sid; /* current SID */ member 50 u32 sid; /* SID of this object */ member 57 u32 sid; /* SID of open file description */ member 64 u32 sid; /* SID of file system superblock */ member 75 u32 sid; /* SID of message */ member 80 u32 sid; /* SID of IPC resource */ member 86 u32 sid; /* SID for this interface */ member 94 u32 sid; /* SID for this node */ member 99 u32 sid; /* SID for this node */ member 115 u32 sid; /* SID of this object */ member [all …]
|
/linux-6.6.21/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-6.6.21/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-6.6.21/net/sctp/ |
D | stream_sched_fc.c | 27 static int sctp_sched_wfq_set(struct sctp_stream *stream, __u16 sid, in sctp_sched_wfq_set() argument 30 struct sctp_stream_out_ext *soute = SCTP_SO(stream, sid)->ext; in sctp_sched_wfq_set() 39 static int sctp_sched_wfq_get(struct sctp_stream *stream, __u16 sid, in sctp_sched_wfq_get() argument 42 struct sctp_stream_out_ext *soute = SCTP_SO(stream, sid)->ext; in sctp_sched_wfq_get() 48 static int sctp_sched_fc_set(struct sctp_stream *stream, __u16 sid, in sctp_sched_fc_set() argument 54 static int sctp_sched_fc_get(struct sctp_stream *stream, __u16 sid, in sctp_sched_fc_get() argument 67 static int sctp_sched_fc_init_sid(struct sctp_stream *stream, __u16 sid, in sctp_sched_fc_init_sid() argument 70 struct sctp_stream_out_ext *soute = SCTP_SO(stream, sid)->ext; in sctp_sched_fc_init_sid() 79 static void sctp_sched_fc_free_sid(struct sctp_stream *stream, __u16 sid) in sctp_sched_fc_free_sid() argument 103 __u16 sid; in sctp_sched_fc_enqueue() local [all …]
|
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 206 int sctp_sched_set_value(struct sctp_association *asoc, __u16 sid, in sctp_sched_set_value() argument 209 if (sid >= asoc->stream.outcnt) in sctp_sched_set_value() 212 if (!SCTP_SO(&asoc->stream, sid)->ext) { in sctp_sched_set_value() 215 ret = sctp_stream_init_ext(&asoc->stream, sid); in sctp_sched_set_value() 220 return asoc->outqueue.sched->set(&asoc->stream, sid, value, gfp); in sctp_sched_set_value() 223 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 102 __u16 sid; in sctp_sched_rr_enqueue() local 105 sid = sctp_chunk_stream_no(ch); in sctp_sched_rr_enqueue() 107 sctp_sched_rr_sched(stream, SCTP_SO(stream, sid)->ext); in sctp_sched_rr_enqueue() 137 __u16 sid; in sctp_sched_rr_dequeue_done() local 140 sid = sctp_chunk_stream_no(ch); in sctp_sched_rr_dequeue_done() [all …]
|
D | stream_sched_prio.c | 163 static int sctp_sched_prio_set(struct sctp_stream *stream, __u16 sid, in sctp_sched_prio_set() argument 166 struct sctp_stream_out *sout = SCTP_SO(stream, sid); in sctp_sched_prio_set() 188 static int sctp_sched_prio_get(struct sctp_stream *stream, __u16 sid, in sctp_sched_prio_get() argument 191 *value = SCTP_SO(stream, sid)->ext->prio_head->prio; in sctp_sched_prio_get() 202 static int sctp_sched_prio_init_sid(struct sctp_stream *stream, __u16 sid, in sctp_sched_prio_init_sid() argument 205 INIT_LIST_HEAD(&SCTP_SO(stream, sid)->ext->prio_list); in sctp_sched_prio_init_sid() 206 return sctp_sched_prio_set(stream, sid, 0, gfp); in sctp_sched_prio_init_sid() 209 static void sctp_sched_prio_free_sid(struct sctp_stream *stream, __u16 sid) in sctp_sched_prio_free_sid() argument 211 sctp_sched_prio_head_put(SCTP_SO(stream, sid)->ext->prio_head); in sctp_sched_prio_free_sid() 212 SCTP_SO(stream, sid)->ext->prio_head = NULL; in sctp_sched_prio_free_sid() [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 …]
|
/linux-6.6.21/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-6.6.21/security/selinux/ss/ |
D | sidtab.c | 32 #define sid_to_index(sid) ((sid) - (SECINITSID_NUM + 1)) argument 62 u32 sid = 0; in context_to_sid() local 69 sid = entry->sid; in context_to_sid() 74 return sid; in context_to_sid() 77 int sidtab_set_initial(struct sidtab *s, u32 sid, struct context *context) in sidtab_set_initial() argument 83 if (sid == 0 || sid > SECINITSID_NUM) in sidtab_set_initial() 86 isid = &s->isids[sid - 1]; in sidtab_set_initial() 106 isid->entry.sid = sid; in sidtab_set_initial() 233 static struct sidtab_entry *sidtab_lookup_initial(struct sidtab *s, u32 sid) in sidtab_lookup_initial() argument 235 return s->isids[sid - 1].set ? &s->isids[sid - 1].entry : NULL; in sidtab_lookup_initial() [all …]
|
D | sidtab.h | 21 u32 sid; member 106 int sidtab_set_initial(struct sidtab *s, u32 sid, struct context *context); 107 struct sidtab_entry *sidtab_search_entry(struct sidtab *s, u32 sid); 108 struct sidtab_entry *sidtab_search_entry_force(struct sidtab *s, u32 sid); 110 static inline struct context *sidtab_search(struct sidtab *s, u32 sid) in sidtab_search() argument 112 struct sidtab_entry *entry = sidtab_search_entry(s, sid); in sidtab_search() 117 static inline struct context *sidtab_search_force(struct sidtab *s, u32 sid) in sidtab_search_force() argument 119 struct sidtab_entry *entry = sidtab_search_entry_force(s, sid); in sidtab_search_force() 131 int sidtab_context_to_sid(struct sidtab *s, struct context *context, u32 *sid);
|
/linux-6.6.21/drivers/iommu/ |
D | apple-dart.c | 144 #define DART_TCR(dart, sid) ((dart)->hw->tcr + ((sid) << 2)) argument 146 #define DART_TTBR(dart, sid, idx) ((dart)->hw->ttbr + \ argument 147 (((dart)->hw->ttbr_count * (sid)) << 2) + \ 309 int sid; in apple_dart_hw_enable_translation() local 311 for_each_set_bit(sid, stream_map->sidmap, dart->num_streams) in apple_dart_hw_enable_translation() 312 writel(dart->hw->tcr_enabled, dart->regs + DART_TCR(dart, sid)); in apple_dart_hw_enable_translation() 318 int sid; in apple_dart_hw_disable_dma() local 320 for_each_set_bit(sid, stream_map->sidmap, dart->num_streams) in apple_dart_hw_disable_dma() 321 writel(dart->hw->tcr_disabled, dart->regs + DART_TCR(dart, sid)); in apple_dart_hw_disable_dma() 328 int sid; in apple_dart_hw_enable_bypass() local [all …]
|
/linux-6.6.21/fs/smb/server/ |
D | smbacl.c | 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() 431 acl_size = offsetof(struct smb_ace, sid) + in parse_dacl() 435 ppace[i]->sid.num_subauth > SID_MAX_SUB_AUTHORITIES || in parse_dacl() 437 acl_size + sizeof(__le32) * ppace[i]->sid.num_subauth) || in parse_dacl() 439 acl_size + sizeof(__le32) * ppace[i]->sid.num_subauth)) in parse_dacl() 446 if (!(compare_sids(&ppace[i]->sid, &sid_unix_NFS_mode))) { in parse_dacl() 448 le32_to_cpu(ppace[i]->sid.sub_auth[2]); in parse_dacl() [all …]
|
/linux-6.6.21/include/net/sctp/ |
D | stream_sched.h | 21 int (*set)(struct sctp_stream *stream, __u16 sid, __u16 value, 23 int (*get)(struct sctp_stream *stream, __u16 sid, __u16 *value); 28 int (*init_sid)(struct sctp_stream *stream, __u16 sid, gfp_t gfp); 30 void (*free_sid)(struct sctp_stream *stream, __u16 sid); 47 int sctp_sched_set_value(struct sctp_association *asoc, __u16 sid, 49 int sctp_sched_get_value(struct sctp_association *asoc, __u16 sid, 54 int sctp_sched_init_sid(struct sctp_stream *stream, __u16 sid, gfp_t gfp);
|