Home
last modified time | relevance | path

Searched full:sid (Results 1 – 25 of 382) sorted by relevance

12345678910>>...16

/linux/include/dt-bindings/iio/
H A Dqcom,spmi-adc7-pm8350.h12 #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/drivers/memory/tegra/
H A Dtegra194.c16 .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 …]
H A Dtegra186.c74 unsigned int sid) in tegra186_mc_client_sid_override() argument
78 if (client->regs.sid.security == 0 && client->regs.sid.override == 0) in tegra186_mc_client_sid_override()
81 value = readl(mc->regs + client->regs.sid.security); in tegra186_mc_client_sid_override()
100 writel(value, mc->regs + client->regs.sid.security); in tegra186_mc_client_sid_override()
103 value = readl(mc->regs + client->regs.sid.override); in tegra186_mc_client_sid_override()
106 if (old != sid) { in tegra186_mc_client_sid_override()
107 dev_dbg(mc->dev, "overriding SID %x for %s with %x\n", old, in tegra186_mc_client_sid_override()
108 client->name, sid); in tegra186_mc_client_sid_override()
109 writel(sid, mc->regs + client->regs.sid.override); in tegra186_mc_client_sid_override()
119 u32 sid; in tegra186_mc_probe_device() local
[all …]
H A Dtegra234.c25 .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/security/selinux/include/
H A Dobjsec.h33 u32 osid; /* SID prior to last execve */
34 u32 sid; /* current SID */ member
35 u32 exec_sid; /* exec SID */
36 u32 create_sid; /* fscreate SID */
37 u32 keycreate_sid; /* keycreate SID */
38 u32 sockcreate_sid; /* fscreate SID */
50 u32 task_sid; /* SID of creating task */
51 u32 sid; /* SID of this object */ member
58 u32 sid; /* SID of open file description */ member
59 u32 fown_sid; /* SID of file owner (for SIGIO) */
[all …]
/linux/include/trace/events/
H A Dspmi.h16 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/drivers/nvmem/
H A Dsunxi_sid.c19 /* Registers and special values for doing register-based SID readout on H3 */
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()
89 * On Allwinner H3, the value on the 0x200 offset of the SID controller seems
[all …]
/linux/security/selinux/
H A Dhooks.c217 tsec->osid = tsec->sid = SECINITSID_KERNEL; in cred_init_security()
228 return tsec->sid; in cred_sid()
261 u32 sid; in task_sid_obj() local
264 sid = cred_sid(__task_cred(task)); in task_sid_obj()
266 return sid; in task_sid_obj()
429 static int may_context_mount_sb_relabel(u32 sid, in may_context_mount_sb_relabel() argument
436 rc = avc_has_perm(tsec->sid, sbsec->sid, SECCLASS_FILESYSTEM, in may_context_mount_sb_relabel()
441 rc = avc_has_perm(tsec->sid, sid, SECCLASS_FILESYSTEM, in may_context_mount_sb_relabel()
446 static int may_context_mount_inode_relabel(u32 sid, in may_context_mount_inode_relabel() argument
452 rc = avc_has_perm(tsec->sid, sbsec->sid, SECCLASS_FILESYSTEM, in may_context_mount_inode_relabel()
[all …]
H A Dibpkey.c118 * 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 …]
H A Dnetport.c126 * 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(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 …]
H A Dnetif.c6 * 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(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 …]
H A Dnetnode.c178 * 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 …]
/linux/Documentation/devicetree/bindings/nvmem/
H A Dallwinner,sun4i-a10-sid.yaml4 $id: http://devicetree.org/schemas/nvmem/allwinner,sun4i-a10-sid.yaml#
20 - const: allwinner,sun4i-a10-sid
21 - const: allwinner,sun7i-a20-sid
22 - const: allwinner,sun8i-a83t-sid
23 - const: allwinner,sun8i-h3-sid
24 - const: allwinner,sun20i-d1-sid
25 - const: allwinner,sun50i-a64-sid
28 - allwinner,sun50i-a100-sid
29 - allwinner,sun50i-h616-sid
30 - const: allwinner,sun50i-a64-sid
[all …]
/linux/tools/testing/selftests/net/
H A Dsrv6_end_x_next_csid_l3vpn_test.sh7 # This script is designed for testing the support of NEXT-C-SID flavor for SRv6
9 # A basic knowledge of SRv6 architecture [1] and of the compressed SID approach
15 # the NEXT-C-SID flavor. The key components for such VPNs are:
21 # variant of SRv6 End behavior. It advances the active SID in the SID
24 # iii) The NEXT-C-SID mechanism [2] offers the possibility of encoding several
25 # SRv6 segments within a single 128-bit SID address, referred to as a
26 # Compressed SID (C-SID) container. In this way, the length of the SID
28 # The NEXT-C-SID is provided as a "flavor" of the SRv6 End.X behavior
29 # which advances the current C-SID (i.e. the Locator-Node Function defined
32 # behavior will apply the End.X function selecting the next SID in the SID
[all …]
H A Dsrv6_end_next_csid_l3vpn_test.sh6 # 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/net/sctp/
H A Dstream_sched_fc.c27 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 …]
H A Dstream_sched.c25 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 …]
H A Dstream_sched_rr.c65 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 …]
H A Dstream_sched_prio.c163 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 …]
/linux/include/uapi/linux/netfilter_ipv6/
H A Dip6t_srh.h70 * @ 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/sound/core/
H A Dctljack.c32 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/security/selinux/ss/
H A Dsidtab.c3 * Implementation of the SID table type.
33 #define sid_to_index(sid) ((sid) - (SECINITSID_NUM + 1)) argument
63 u32 sid = 0; in context_to_sid() local
70 sid = entry->sid; in context_to_sid()
75 return sid; in context_to_sid()
78 int sidtab_set_initial(struct sidtab *s, u32 sid, struct context *context) in sidtab_set_initial() argument
84 if (sid == 0 || sid > SECINITSID_NUM) in sidtab_set_initial()
87 isid = &s->isids[sid - 1]; in sidtab_set_initial()
107 isid->entry.sid = sid; in sidtab_set_initial()
236 static struct sidtab_entry *sidtab_lookup_initial(struct sidtab *s, u32 sid) in sidtab_lookup_initial() argument
[all …]
H A Dservices.c783 pr_err("SELinux: %s: unrecognized SID %d\n", in security_compute_validatetrans()
791 pr_err("SELinux: %s: unrecognized SID %d\n", in security_compute_validatetrans()
799 pr_err("SELinux: %s: unrecognized SID %d\n", in security_compute_validatetrans()
872 pr_err("SELinux: %s: unrecognized SID %u\n", in security_bounded_transition()
880 pr_err("SELinux: %s: unrecognized SID %u\n", in security_bounded_transition()
1032 pr_err("SELinux: %s: unrecognized SID %d\n", in security_compute_xperms_decision()
1039 pr_err("SELinux: %s: unrecognized SID %d\n", in security_compute_xperms_decision()
1092 * SID pair (@ssid, @tsid) for the permissions in @tclass.
1118 pr_err("SELinux: %s: unrecognized SID %d\n", in security_compute_av()
1129 pr_err("SELinux: %s: unrecognized SID %d\n", in security_compute_av()
[all …]
H A Dsidtab.h4 * of security context structures indexed by SID value.
22 u32 sid; member
94 /* SID -> context string cache */
100 /* index == SID - 1 (no entry for SECSID_NULL) */
103 /* Hash table for fast reverse context-to-sid lookups. */
108 int sidtab_set_initial(struct sidtab *s, u32 sid, struct context *context);
109 struct sidtab_entry *sidtab_search_entry(struct sidtab *s, u32 sid);
110 struct sidtab_entry *sidtab_search_entry_force(struct sidtab *s, u32 sid);
112 static inline struct context *sidtab_search(struct sidtab *s, u32 sid) in sidtab_search() argument
114 struct sidtab_entry *entry = sidtab_search_entry(s, sid); in sidtab_search()
[all …]
/linux/drivers/staging/media/atomisp/pci/runtime/isys/src/
H A Disys_stream2mmio_rmgr.c39 stream2mmio_sid_ID_t *sid) in ia_css_isys_stream2mmio_sid_rmgr_acquire() argument
47 assert(sid); in ia_css_isys_stream2mmio_sid_rmgr_acquire()
49 if ((stream2mmio < N_STREAM2MMIO_ID) && (sid)) { in ia_css_isys_stream2mmio_sid_rmgr_acquire()
57 *sid = i; in ia_css_isys_stream2mmio_sid_rmgr_acquire()
70 stream2mmio_sid_ID_t *sid) in ia_css_isys_stream2mmio_sid_rmgr_release() argument
76 assert(sid); in ia_css_isys_stream2mmio_sid_rmgr_release()
78 if ((stream2mmio < N_STREAM2MMIO_ID) && (sid)) { in ia_css_isys_stream2mmio_sid_rmgr_release()
81 if ((*sid < max_sid) && (cur_rsrc->num_active > 0)) { in ia_css_isys_stream2mmio_sid_rmgr_release()
82 if (bitop_getbit(cur_rsrc->active_table, *sid) == 1) { in ia_css_isys_stream2mmio_sid_rmgr_release()
83 bitop_clearbit(cur_rsrc->active_table, *sid); in ia_css_isys_stream2mmio_sid_rmgr_release()

12345678910>>...16