Home
last modified time | relevance | path

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

123456789

/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 Dtegra186.c86 unsigned int sid) in tegra186_mc_client_sid_override() argument
90 if (client->regs.sid.security == 0 && client->regs.sid.override == 0) in tegra186_mc_client_sid_override()
93 value = readl(mc->regs + client->regs.sid.security); in tegra186_mc_client_sid_override()
112 writel(value, mc->regs + client->regs.sid.security); in tegra186_mc_client_sid_override()
115 value = readl(mc->regs + client->regs.sid.override); in tegra186_mc_client_sid_override()
118 if (old != sid) { in tegra186_mc_client_sid_override()
120 client->name, sid); in tegra186_mc_client_sid_override()
121 writel(sid, mc->regs + client->regs.sid.override); in tegra186_mc_client_sid_override()
131 u32 sid; in tegra186_mc_probe_device() local
133 if (!tegra_dev_iommu_get_stream_id(dev, &sid)) in tegra186_mc_probe_device()
[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;
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/drivers/nvmem/
H A Dsunxi_sid.c42 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/security/selinux/
H A Dhooks.c222 crsec->osid = crsec->sid = SECINITSID_KERNEL; in cred_init_security()
233 return crsec->sid; in cred_sid()
266 u32 sid; in task_sid_obj() local
269 sid = cred_sid(__task_cred(task)); in task_sid_obj()
271 return sid; in task_sid_obj()
440 static int may_context_mount_sb_relabel(u32 sid, in may_context_mount_sb_relabel() argument
447 rc = avc_has_perm(crsec->sid, sbsec->sid, SECCLASS_FILESYSTEM, in may_context_mount_sb_relabel()
452 rc = avc_has_perm(crsec->sid, sid, SECCLASS_FILESYSTE in may_context_mount_sb_relabel()
457 may_context_mount_inode_relabel(u32 sid,struct superblock_security_struct * sbsec,const struct cred * cred) may_context_mount_inode_relabel() argument
521 u32 sid; sb_check_xattr_support() local
991 u32 sid = oldsbsec->mntpoint_sid; selinux_sb_clone_mnt_opts() local
1077 show_sid(struct seq_file * m,u32 sid) show_sid() argument
1335 selinux_genfs_get_sid(struct dentry * dentry,u16 tclass,u16 flags,u32 * sid) selinux_genfs_get_sid() argument
1371 inode_doinit_use_xattr(struct inode * inode,struct dentry * dentry,u32 def_sid,u32 * sid) inode_doinit_use_xattr() argument
1436 u32 task_sid, sid = 0; inode_doinit_with_dentry() local
1649 u32 sid = cred_sid(cred); cred_has_capability() local
1682 inode_sid_has_perm(u32 sid,struct inode * inode,u32 perms,struct common_audit_data * adp) inode_sid_has_perm() argument
1861 u32 sid, newsid; may_create() local
1905 u32 sid = current_sid(); may_link() local
1948 u32 sid = current_sid(); may_rename() local
2003 u32 sid = cred_sid(cred); superblock_has_perm() local
2115 u32 sid = cred_sid(to); selinux_binder_transfer_file() local
2151 u32 sid = current_sid(); selinux_ptrace_access_check() local
2279 u32 sid = 0; ptrace_parent_sid() local
2575 u32 osid, sid; selinux_bprm_committed_creds() local
2910 u32 sid = current_sid(); selinux_inode_alloc_security() local
3021 u32 sid = current_sid(); selinux_inode_init_security_anon() local
3136 u32 sid = current_sid(); selinux_inode_follow_link() local
3255 u32 sid = current_sid(); selinux_inode_permission() local
3384 u32 newsid, sid = current_sid(); selinux_inode_setxattr() local
3826 u32 sid = current_sid(); selinux_file_permission() local
3844 u32 sid = current_sid(); selinux_file_alloc_security() local
4102 u32 sid = current_sid(); __file_map_prot_check() local
4138 u32 sid = current_sid(); selinux_mmap_addr() local
4214 u32 sid = cred_sid(cred); selinux_file_mprotect() local
4346 u32 sid = task_sid_obj(tsk); selinux_file_send_sigiotask() local
4403 u32 sid = current_sid(); selinux_task_alloc() local
4452 u32 sid = current_sid(); selinux_kernel_act_as() local
4476 u32 sid = current_sid(); selinux_kernel_create_files_as() local
4505 u32 sid = current_sid(); selinux_kernel_load_from_file() local
4718 u32 sid = task_sid_obj(p); selinux_task_to_inode() local
4729 u32 sid = current_sid(); selinux_userns_create() local
4948 selinux_skb_peerlbl_sid(struct sk_buff * skb,u16 family,u32 * sid) selinux_skb_peerlbl_sid() argument
5013 sock_skip_has_perm(u32 sid) sock_skip_has_perm() argument
5077 u32 sid = SECINITSID_KERNEL; selinux_socket_post_create() local
5140 u32 sid, node_perm; __selinux_socket_bind() local
5288 u32 sid, perm; selinux_socket_connect_helper() local
5368 u32 sid; selinux_socket_accept() local
6005 selinux_secmark_relabel_packet(u32 sid) selinux_secmark_relabel_packet() argument
6037 u32 sid = current_sid(); selinux_tun_dev_create() local
6079 u32 sid = current_sid(); selinux_tun_dev_open() local
6156 u32 sid; selinux_ip_output() local
6460 u32 sid = current_sid(); ipc_has_perm() local
6485 u32 sid = current_sid(); selinux_msg_queue_alloc_security() local
6501 u32 sid = current_sid(); selinux_msg_queue_associate() local
6545 u32 sid = current_sid(); selinux_msg_queue_msgsnd() local
6590 u32 sid = task_sid_obj(target); selinux_msg_queue_msgrcv() local
6612 u32 sid = current_sid(); selinux_shm_alloc_security() local
6628 u32 sid = current_sid(); selinux_shm_associate() local
6690 u32 sid = current_sid(); selinux_sem_alloc_security() local
6706 u32 sid = current_sid(); selinux_sem_associate() local
6808 u32 sid; selinux_lsm_getattr() local
6863 u32 mysid = current_sid(), sid = 0, ptsid; selinux_lsm_setattr() local
7174 u32 perm, sid; selinux_key_permission() local
7232 u32 sid = current_sid(); selinux_watch_key() local
7244 u32 sid = 0; selinux_ib_pkey_access() local
7266 u32 sid = 0; selinux_ib_endport_manage_subnet() local
7298 u32 sid = current_sid(); selinux_bpf() local
7340 bpf_fd_pass(const struct file * file,u32 sid) bpf_fd_pass() argument
7367 u32 sid = current_sid(); selinux_bpf_map() local
7377 u32 sid = current_sid(); selinux_bpf_prog() local
7511 u32 requested, sid = current_sid(); selinux_perf_event_open() local
7541 u32 sid = current_sid(); selinux_perf_event_read() local
7550 u32 sid = current_sid(); selinux_perf_event_write() local
7579 u32 sid = current_sid(); selinux_uring_sqpoll() local
7614 u32 sid = current_sid(); selinux_uring_allowed() local
[all...]
H A Dibpkey.c122 * @sid: pkey SID
130 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()
160 new->psec.sid = *sid; in sel_ib_pkey_sid_slow()
172 * @sid: pkey SID
181 int sel_ib_pkey_sid(u64 subnet_prefix, u16 pkey_num, u32 *sid) in sel_ib_pkey_sid() argument
188 *sid in sel_ib_pkey_sid()
[all...]
H A Dnetport.c132 static int sel_netport_sid_slow(u8 protocol, u16 pnum, u32 *sid) in sel_netport_sid_slow() argument
141 *sid = port->psec.sid; in sel_netport_sid_slow()
146 ret = security_port_sid(protocol, pnum, sid); in sel_netport_sid_slow()
157 new->psec.sid = *sid; in sel_netport_sid_slow()
182 int sel_netport_sid(u8 protocol, u16 pnum, u32 *sid) in sel_netport_sid() argument
189 *sid = port->psec.sid; in sel_netport_sid()
195 return sel_netport_sid_slow(protocol, pnum, sid); in sel_netport_sid()
H A Dnetnode.c191 static int sel_netnode_sid_slow(const void *addr, u16 family, u32 *sid) in sel_netnode_sid_slow() argument
200 *sid = node->nsec.sid; in sel_netnode_sid_slow()
212 addr, sizeof(struct in_addr), sid); in sel_netnode_sid_slow()
218 addr, sizeof(struct in6_addr), sid); in sel_netnode_sid_slow()
228 new->nsec.sid = *sid; in sel_netnode_sid_slow()
254 int sel_netnode_sid(const void *addr, u16 family, u32 *sid) in sel_netnode_sid() argument
261 *sid = node->nsec.sid; in sel_netnode_sid()
267 return sel_netnode_sid_slow(addr, family, sid); in sel_netnode_sid()
H A 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(dev->name, sid); in sel_netif_sid_slow()
168 new->nsec.sid = *sid; in sel_netif_sid_slow()
196 int sel_netif_sid(struct net *ns, int ifindex, u32 *sid) in sel_netif_sid() argument
203 *sid = netif->nsec.sid; in sel_netif_sid()
209 return sel_netif_sid_slow(ns, ifindex, sid); in sel_netif_sid()
H A Dnetlabel.c46 u32 *sid) in selinux_netlbl_sidlookup_cached() argument
50 rc = security_netlbl_secattr_to_sid(secattr, sid); in selinux_netlbl_sidlookup_cached()
82 rc = security_netlbl_sid_to_secattr(sksec->sid, secattr); in selinux_netlbl_sock_genattr()
103 u32 sid) in selinux_netlbl_sock_getattr() argument
112 (secattr->attr.secid == sid)) in selinux_netlbl_sock_getattr()
197 u32 *sid) in selinux_netlbl_skbuff_getsid() argument
204 *sid = SECSID_NULL; in selinux_netlbl_skbuff_getsid()
212 &secattr, sid); in selinux_netlbl_skbuff_getsid()
214 *sid = SECSID_NULL; in selinux_netlbl_skbuff_getsid()
234 u32 sid) in selinux_netlbl_skbuff_setsid() argument
[all …]
/linux/security/selinux/include/
H A Dobjsec.h40 u32 sid; /* current SID */ member
50 u32 sid; /* current SID for cached entries */ member
59 u32 sid) in task_avdcache_permnoaudit() argument
62 sid == tsec->avdcache.sid && in task_avdcache_permnoaudit()
76 u32 sid; /* SID of this object */ member
83 u32 sid; /* SID of open file description */ member
102 u32 sid; /* SID of file system superblock */ member
114 u32 sid; /* SID of message */ member
119 u32 sid; /* SID of IPC resource */ member
125 u32 sid; /* SID for this interface */ member
[all …]
H A Dxfrm.h45 int selinux_xfrm_decode_session(struct sk_buff *skb, u32 *sid, int ckall);
46 int selinux_xfrm_skb_sid(struct sk_buff *skb, u32 *sid);
76 static inline int selinux_xfrm_decode_session(struct sk_buff *skb, u32 *sid, in selinux_xfrm_decode_session() argument
79 *sid = SECSID_NULL; in selinux_xfrm_decode_session()
87 static inline int selinux_xfrm_skb_sid(struct sk_buff *skb, u32 *sid) in selinux_xfrm_skb_sid() argument
89 *sid = SECSID_NULL; in selinux_xfrm_skb_sid()
/linux/fs/smb/server/
H A Dsmbacl.c211 pntace->sid.revision = psid->revision; in fill_ace_for_sid()
212 pntace->sid.num_subauth = psid->num_subauth; in fill_ace_for_sid()
214 pntace->sid.authority[i] = psid->authority[i]; in fill_ace_for_sid()
216 pntace->sid.sub_auth[i] = psid->sub_auth[i]; in fill_ace_for_sid()
428 (offsetof(struct smb_ace, sid) + in parse_dacl()
461 acl_size = offsetof(struct smb_ace, sid) + in parse_dacl()
465 ppace[i]->sid.num_subauth == 0 || in parse_dacl()
466 ppace[i]->sid.num_subauth > SID_MAX_SUB_AUTHORITIES || in parse_dacl()
468 acl_size + sizeof(__le32) * ppace[i]->sid.num_subauth) || in parse_dacl()
470 acl_size + sizeof(__le32) * ppace[i]->sid.num_subauth)) { in parse_dacl()
[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
137 __u16 sid, i; sctp_sched_fc_dequeue_done() local
176 __u16 sid = sctp_chunk_stream_no(ch); sctp_sched_fc_sched_all() 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
240 __u16 sid; sctp_sched_dequeue_done() local
264 sctp_sched_init_sid(struct sctp_stream * stream,__u16 sid,gfp_t gfp) sctp_sched_init_sid() 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 in sctp_sched_rr_dequeue_done()
157 __u16 sid; sctp_sched_rr_sched_all() local
[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 …]
H A 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/sound/core/
H A Dctljack.c33 struct snd_ctl_elem_id sid; in get_available_index()
35 memset(&sid, 0, sizeof(sid)); in get_available_index()
37 sid.index = 0; in get_available_index()
38 sid.iface = SNDRV_CTL_ELEM_IFACE_CARD; in get_available_index()
39 strscpy(sid.name, name, sizeof(sid.name)); in get_available_index()
41 while (snd_ctl_find_id(card, &sid)) { in get_available_index()
42 sid.index++; in get_available_index()
44 sid in get_available_index()
32 struct snd_ctl_elem_id sid; get_available_index() local
[all...]
/linux/security/selinux/ss/
H A Dsidtab.c33 #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
238 return s->isids[sid - 1].set ? &s->isids[sid - 1].entry : NULL; in sidtab_lookup_initial()
[all …]
H A Dsidtab.h22 u32 sid; member
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()
119 static inline struct context *sidtab_search_force(struct sidtab *s, u32 sid) in sidtab_search_force() argument
121 struct sidtab_entry *entry = sidtab_search_entry_force(s, sid); in sidtab_search_force()
135 int sidtab_context_to_sid(struct sidtab *s, struct context *context, u32 *sid);
/linux/Documentation/translations/zh_CN/security/
H A DSCTP.rst202 如果这是 ``@asoc->base.sk`` 上的首次关联,则将对端的sid设置
203 为 ``@skb`` 中的值。这将确保只有一个对端sid分配给可能支持多个
206 否则验证 ``@asoc->base.sk peer sid`` 是否与 ``@skb peer sid``
209 将sctp的 ``@asoc sid`` 设置为套接字的sid(来自 ``asoc->base.sk``)
210 并从 ``@skb peer sid`` 中提取MLS部分。这将在SCTP的TCP类型套接字及
248 ``security_sctp_sk_clone()`` 将会分别将新套接字的sid和对端sid设置为
249 ``@asoc sid`` 和 ``@asoc peer sid`` 中包含的值。
259 当接收到COOKIE ACK时调用,它将连接的对端sid设置为 ``@skb`` 中的值::
288 这是通过检查套接字的对端sid与接收到的数据包中的对端sid来验证的,以决
/linux/drivers/net/wireless/realtek/rtw89/
H A Dcoex.h391 void _slot_set_le(struct rtw89_btc *btc, u8 sid, __le16 dura, __le32 tbl, __le16 type) in _slot_set_le() argument
394 btc->dm.slot.v1[sid].dur = dura; in _slot_set_le()
395 btc->dm.slot.v1[sid].cxtbl = tbl; in _slot_set_le()
396 btc->dm.slot.v1[sid].cxtype = type; in _slot_set_le()
398 btc->dm.slot.v7[sid].dur = dura; in _slot_set_le()
399 btc->dm.slot.v7[sid].cxtype = type; in _slot_set_le()
400 btc->dm.slot.v7[sid].cxtbl = tbl; in _slot_set_le()
405 void _slot_set(struct rtw89_btc *btc, u8 sid, u16 dura, u32 tbl, u16 type) in _slot_set() argument
407 _slot_set_le(btc, sid, cpu_to_le16(dura), cpu_to_le32(tbl), cpu_to_le16(type)); in _slot_set()
411 void _slot_set_dur(struct rtw89_btc *btc, u8 sid, u16 dura) in _slot_set_dur() argument
[all …]
/linux/drivers/spmi/
H A Dspmi-pmic-arb.c246 int (*offset)(struct spmi_pmic_arb_bus *bus, u8 sid, u16 addr,
248 u32 (*fmt_cmd)(u8 opc, u8 sid, u16 addr, u8 bc);
249 int (*non_data_cmd)(struct spmi_controller *ctrl, u8 opc, u8 sid);
259 u8 sid, u16 addr, u32 offset);
306 u32 status, u8 sid, u16 addr, in pmic_arb_check_chnl_status_v1() argument
315 __func__, sid, addr, status, offset); in pmic_arb_check_chnl_status_v1()
322 __func__, sid, addr, status); in pmic_arb_check_chnl_status_v1()
328 __func__, sid, addr, status); in pmic_arb_check_chnl_status_v1()
336 u32 status, u8 sid, u16 addr, in pmic_arb_check_chnl_status_v8p5() argument
345 __func__, sid, addr, status, offset); in pmic_arb_check_chnl_status_v8p5()
[all …]
/linux/drivers/net/ppp/
H A Dpppoe.c114 static inline bool stage_session(__be16 sid) in stage_session() argument
116 return sid != 0; in stage_session()
126 return a->sid == b->sid && ether_addr_equal(a->remote, b->remote); in cmp_2_addr()
129 static inline int cmp_addr(struct pppoe_addr *a, __be16 sid, char *addr) in cmp_addr() argument
131 return a->sid == sid && ether_addr_equal(a->remote, addr); in cmp_addr()
138 static u8 hash_item(__be16 sid, const u8 addr[ETH_ALEN]) in hash_item() argument
145 hash16 = addr16[0] ^ addr16[1] ^ addr16[2] ^ (__force u16)sid; in hash_item()
158 static struct pppox_sock *__get_item(struct pppoe_net *pn, __be16 sid, in __get_item() argument
161 int hash = hash_item(sid, addr); in __get_item()
166 if (cmp_addr(&ret->pppoe_pa, sid, addr) && in __get_item()
[all …]

123456789