Home
last modified time | relevance | path

Searched refs:sid (Results 1 – 25 of 234) sorted by relevance

12345678910

/Linux-v5.10/drivers/memory/tegra/
Dtegra186.c22 unsigned int sid; member
55 dev_dbg(mc->dev, "setting SID %u for %s\n", client->sid, in tegra186_mc_program_sid()
57 writel(client->sid, mc->regs + client->regs.override); in tegra186_mc_program_sid()
71 .sid = TEGRA186_SID_PASSTHROUGH,
78 .sid = TEGRA186_SID_AFI,
85 .sid = TEGRA186_SID_HDA,
92 .sid = TEGRA186_SID_HOST1X,
99 .sid = TEGRA186_SID_NVENC,
106 .sid = TEGRA186_SID_SATA,
113 .sid = TEGRA186_SID_PASSTHROUGH,
[all …]
/Linux-v5.10/include/trace/events/
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;
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-v5.10/security/selinux/include/
Dobjsec.h33 u32 sid; /* current SID */ member
50 u32 sid; /* SID of this object */ member
57 u32 sid; /* SID of open file description */ member
65 u32 sid; /* SID of file system superblock */ member
76 u32 sid; /* SID of message */ member
81 u32 sid; /* SID of IPC resource */ member
87 u32 sid; /* SID for this interface */ member
95 u32 sid; /* SID for this node */ member
100 u32 sid; /* SID for this node */ member
116 u32 sid; /* SID of this object */ member
[all …]
Dxfrm.h43 int selinux_xfrm_decode_session(struct sk_buff *skb, u32 *sid, int ckall);
44 int selinux_xfrm_skb_sid(struct sk_buff *skb, u32 *sid);
74 static inline int selinux_xfrm_decode_session(struct sk_buff *skb, u32 *sid, in selinux_xfrm_decode_session() argument
77 *sid = SECSID_NULL; in selinux_xfrm_decode_session()
85 static inline int selinux_xfrm_skb_sid(struct sk_buff *skb, u32 *sid) in selinux_xfrm_skb_sid() argument
87 *sid = SECSID_NULL; in selinux_xfrm_skb_sid()
/Linux-v5.10/security/selinux/
Dhooks.c218 tsec->osid = tsec->sid = SECINITSID_KERNEL; in cred_init_security()
229 return tsec->sid; in cred_sid()
237 u32 sid; in task_sid() local
240 sid = cred_sid(__task_cred(task)); in task_sid()
242 return sid; in task_sid()
409 static int may_context_mount_sb_relabel(u32 sid, in may_context_mount_sb_relabel() argument
417 tsec->sid, sbsec->sid, SECCLASS_FILESYSTEM, in may_context_mount_sb_relabel()
423 tsec->sid, sid, SECCLASS_FILESYSTEM, in may_context_mount_sb_relabel()
428 static int may_context_mount_inode_relabel(u32 sid, in may_context_mount_inode_relabel() argument
435 tsec->sid, sbsec->sid, SECCLASS_FILESYSTEM, in may_context_mount_inode_relabel()
[all …]
Dnetport.c138 static int sel_netport_sid_slow(u8 protocol, u16 pnum, u32 *sid) in sel_netport_sid_slow() argument
147 *sid = port->psec.sid; in sel_netport_sid_slow()
152 ret = security_port_sid(&selinux_state, protocol, pnum, sid); in sel_netport_sid_slow()
159 new->psec.sid = *sid; in sel_netport_sid_slow()
184 int sel_netport_sid(u8 protocol, u16 pnum, u32 *sid) in sel_netport_sid() argument
191 *sid = port->psec.sid; in sel_netport_sid()
197 return sel_netport_sid_slow(protocol, pnum, sid); in sel_netport_sid()
Dibpkey.c130 static int sel_ib_pkey_sid_slow(u64 subnet_prefix, u16 pkey_num, u32 *sid) in sel_ib_pkey_sid_slow() argument
140 *sid = pkey->psec.sid; in sel_ib_pkey_sid_slow()
146 sid); in sel_ib_pkey_sid_slow()
161 new->psec.sid = *sid; in sel_ib_pkey_sid_slow()
182 int sel_ib_pkey_sid(u64 subnet_prefix, u16 pkey_num, u32 *sid) in sel_ib_pkey_sid() argument
189 *sid = pkey->psec.sid; in sel_ib_pkey_sid()
195 return sel_ib_pkey_sid_slow(subnet_prefix, pkey_num, sid); in sel_ib_pkey_sid()
Dnetnode.c190 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()
Dnetif.c133 static int sel_netif_sid_slow(struct net *ns, int ifindex, u32 *sid) in sel_netif_sid_slow() argument
153 *sid = netif->nsec.sid; in sel_netif_sid_slow()
157 ret = security_netif_sid(&selinux_state, dev->name, sid); in sel_netif_sid_slow()
164 new->nsec.sid = *sid; in sel_netif_sid_slow()
192 int sel_netif_sid(struct net *ns, int ifindex, u32 *sid) in sel_netif_sid() argument
199 *sid = netif->nsec.sid; in sel_netif_sid()
205 return sel_netif_sid_slow(ns, ifindex, sid); in sel_netif_sid()
Dxfrm.c107 tsec->sid, ctx->ctx_sid, in selinux_xfrm_alloc_user()
144 tsec->sid, ctx->ctx_sid, in selinux_xfrm_delete()
227 u32 *sid, int ckall) in selinux_xfrm_skb_sid_ingress() argument
245 *sid = SECSID_NULL; in selinux_xfrm_skb_sid_ingress()
253 *sid = sid_session; in selinux_xfrm_skb_sid_ingress()
261 int selinux_xfrm_decode_session(struct sk_buff *skb, u32 *sid, int ckall) in selinux_xfrm_decode_session() argument
264 *sid = SECSID_NULL; in selinux_xfrm_decode_session()
267 return selinux_xfrm_skb_sid_ingress(skb, sid, ckall); in selinux_xfrm_decode_session()
270 int selinux_xfrm_skb_sid(struct sk_buff *skb, u32 *sid) in selinux_xfrm_skb_sid() argument
274 rc = selinux_xfrm_skb_sid_ingress(skb, sid, 0); in selinux_xfrm_skb_sid()
[all …]
Dnetlabel.c44 u32 *sid) in selinux_netlbl_sidlookup_cached() argument
48 rc = security_netlbl_secattr_to_sid(&selinux_state, secattr, sid); in selinux_netlbl_sidlookup_cached()
79 rc = security_netlbl_sid_to_secattr(&selinux_state, sksec->sid, in selinux_netlbl_sock_genattr()
101 u32 sid) in selinux_netlbl_sock_getattr() argument
110 (secattr->attr.secid == sid)) in selinux_netlbl_sock_getattr()
191 u32 *sid) in selinux_netlbl_skbuff_getsid() argument
197 *sid = SECSID_NULL; in selinux_netlbl_skbuff_getsid()
205 &secattr, sid); in selinux_netlbl_skbuff_getsid()
207 *sid = SECSID_NULL; in selinux_netlbl_skbuff_getsid()
227 u32 sid) in selinux_netlbl_skbuff_setsid() argument
[all …]
/Linux-v5.10/drivers/nvmem/
Dsunxi_sid.c43 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()
84 struct sunxi_sid *sid = context; in sun8i_sid_read_by_reg() local
90 ret = sun8i_sid_register_readout(sid, offset, val); in sun8i_sid_read_by_reg()
103 ret = sun8i_sid_register_readout(sid, offset, &word); in sun8i_sid_read_by_reg()
[all …]
/Linux-v5.10/sound/core/
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 strlcpy(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-v5.10/drivers/staging/media/atomisp/pci/runtime/isys/src/
Disys_stream2mmio_rmgr.c40 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-v5.10/net/sctp/
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
199 int sctp_sched_set_value(struct sctp_association *asoc, __u16 sid, in sctp_sched_set_value() argument
202 if (sid >= asoc->stream.outcnt) in sctp_sched_set_value()
205 if (!SCTP_SO(&asoc->stream, sid)->ext) { in sctp_sched_set_value()
208 ret = sctp_stream_init_ext(&asoc->stream, sid); in sctp_sched_set_value()
213 return asoc->outqueue.sched->set(&asoc->stream, sid, value, gfp); in sctp_sched_set_value()
216 int sctp_sched_get_value(struct sctp_association *asoc, __u16 sid, in sctp_sched_get_value() argument
219 if (sid >= asoc->stream.outcnt) in sctp_sched_get_value()
[all …]
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()
103 __u16 sid; in sctp_sched_rr_enqueue() local
106 sid = sctp_chunk_stream_no(ch); in sctp_sched_rr_enqueue()
108 sctp_sched_rr_sched(stream, SCTP_SO(stream, sid)->ext); in sctp_sched_rr_enqueue()
138 __u16 sid; in sctp_sched_rr_dequeue_done() local
141 sid = sctp_chunk_stream_no(ch); in sctp_sched_rr_dequeue_done()
142 soute = SCTP_SO(&q->asoc->stream, sid)->ext; in sctp_sched_rr_dequeue_done()
[all …]
Dstream_sched_prio.c150 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()
238 __u16 sid; in sctp_sched_prio_enqueue() local
241 sid = sctp_chunk_stream_no(ch); in sctp_sched_prio_enqueue()
243 sctp_sched_prio_sched(stream, SCTP_SO(stream, sid)->ext); in sctp_sched_prio_enqueue()
[all …]
Dstream_interleave.c53 __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-v5.10/security/selinux/ss/
Dsidtab.c31 #define sid_to_index(sid) (sid - (SECINITSID_NUM + 1)) argument
60 u32 sid = 0; in context_to_sid() local
67 sid = entry->sid; in context_to_sid()
72 return sid; in context_to_sid()
75 int sidtab_set_initial(struct sidtab *s, u32 sid, struct context *context) in sidtab_set_initial() argument
81 if (sid == 0 || sid > SECINITSID_NUM) in sidtab_set_initial()
84 isid = &s->isids[sid - 1]; in sidtab_set_initial()
104 isid->entry.sid = sid; in sidtab_set_initial()
231 static struct sidtab_entry *sidtab_lookup_initial(struct sidtab *s, u32 sid) in sidtab_lookup_initial() argument
233 return s->isids[sid - 1].set ? &s->isids[sid - 1].entry : NULL; in sidtab_lookup_initial()
[all …]
Dsidtab.h21 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()
128 int sidtab_context_to_sid(struct sidtab *s, struct context *context, u32 *sid);
/Linux-v5.10/include/net/sctp/
Dstream_sched.h21 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);
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);
/Linux-v5.10/drivers/firewire/
Dcore-topology.c40 static u32 *count_ports(u32 *sid, int *total_port_count, int *child_port_count) in count_ports() argument
49 q = *sid; in count_ports()
68 return sid + 1; in count_ports()
71 sid++; in count_ports()
72 q = *sid; in count_ports()
90 static int get_port_type(u32 *sid, int port_index) in get_port_type() argument
96 return (sid[index] >> shift) & 0x03; in get_port_type()
99 static struct fw_node *fw_node_create(u32 sid, int port_count, int color) in fw_node_create() argument
108 node->node_id = LOCAL_BUS | SELF_ID_PHY_ID(sid); in fw_node_create()
109 node->link_on = SELF_ID_LINK_ON(sid); in fw_node_create()
[all …]
/Linux-v5.10/drivers/net/ppp/
Dpppoe.c115 static inline bool stage_session(__be16 sid) in stage_session() argument
117 return sid != 0; in stage_session()
127 return a->sid == b->sid && ether_addr_equal(a->remote, b->remote); in cmp_2_addr()
130 static inline int cmp_addr(struct pppoe_addr *a, __be16 sid, char *addr) in cmp_addr() argument
132 return a->sid == sid && ether_addr_equal(a->remote, addr); in cmp_addr()
139 static int hash_item(__be16 sid, unsigned char *addr) in hash_item() argument
147 hash ^= (__force __u32)sid >> i; in hash_item()
159 static struct pppox_sock *__get_item(struct pppoe_net *pn, __be16 sid, in __get_item() argument
162 int hash = hash_item(sid, addr); in __get_item()
167 if (cmp_addr(&ret->pppoe_pa, sid, addr) && in __get_item()
[all …]
/Linux-v5.10/include/linux/mfd/
Dtps80031.h547 static inline int tps80031_write(struct device *dev, int sid, in tps80031_write() argument
552 return regmap_write(tps80031->regmap[sid], reg, val); in tps80031_write()
555 static inline int tps80031_writes(struct device *dev, int sid, int reg, in tps80031_writes() argument
560 return regmap_bulk_write(tps80031->regmap[sid], reg, val, len); in tps80031_writes()
563 static inline int tps80031_read(struct device *dev, int sid, in tps80031_read() argument
570 ret = regmap_read(tps80031->regmap[sid], reg, &ival); in tps80031_read()
580 static inline int tps80031_reads(struct device *dev, int sid, in tps80031_reads() argument
585 return regmap_bulk_read(tps80031->regmap[sid], reg, val, len); in tps80031_reads()
588 static inline int tps80031_set_bits(struct device *dev, int sid, in tps80031_set_bits() argument
593 return regmap_update_bits(tps80031->regmap[sid], reg, in tps80031_set_bits()
[all …]
/Linux-v5.10/drivers/spmi/
Dspmi-pmic-arb.c188 int (*offset)(struct spmi_pmic_arb *pmic_arb, u8 sid, u16 addr,
190 u32 (*fmt_cmd)(u8 opc, u8 sid, u16 addr, u8 bc);
191 int (*non_data_cmd)(struct spmi_controller *ctrl, u8 opc, u8 sid);
243 void __iomem *base, u8 sid, u16 addr, in pmic_arb_wait_for_done() argument
252 rc = pmic_arb->ver_ops->offset(pmic_arb, sid, addr, ch_type); in pmic_arb_wait_for_done()
292 pmic_arb_non_data_cmd_v1(struct spmi_controller *ctrl, u8 opc, u8 sid) in pmic_arb_non_data_cmd_v1() argument
300 rc = pmic_arb->ver_ops->offset(pmic_arb, sid, 0, PMIC_ARB_CHANNEL_RW); in pmic_arb_non_data_cmd_v1()
305 cmd = ((opc | 0x40) << 27) | ((sid & 0xf) << 20); in pmic_arb_non_data_cmd_v1()
309 rc = pmic_arb_wait_for_done(ctrl, pmic_arb->wr_base, sid, 0, in pmic_arb_non_data_cmd_v1()
317 pmic_arb_non_data_cmd_v2(struct spmi_controller *ctrl, u8 opc, u8 sid) in pmic_arb_non_data_cmd_v2() argument
[all …]

12345678910