scm               798 arch/mips/include/asm/octeon/cvmx-pci-defs.h 		uint32_t scm:1;
scm               822 arch/mips/include/asm/octeon/cvmx-pci-defs.h 		uint32_t scm:1;
scm               841 arch/mips/include/asm/octeon/cvmx-pci-defs.h 		uint32_t scm:1;
scm               865 arch/mips/include/asm/octeon/cvmx-pci-defs.h 		uint32_t scm:1;
scm              1923 arch/mips/include/asm/octeon/cvmx-pci-defs.h 		uint64_t scm:32;
scm              1925 arch/mips/include/asm/octeon/cvmx-pci-defs.h 		uint64_t scm:32;
scm               507 drivers/firmware/qcom_scm.c 	struct qcom_scm *scm;
scm               511 drivers/firmware/qcom_scm.c 	scm = devm_kzalloc(&pdev->dev, sizeof(*scm), GFP_KERNEL);
scm               512 drivers/firmware/qcom_scm.c 	if (!scm)
scm               515 drivers/firmware/qcom_scm.c 	ret = qcom_scm_find_dload_address(&pdev->dev, &scm->dload_mode_addr);
scm               521 drivers/firmware/qcom_scm.c 	scm->core_clk = devm_clk_get(&pdev->dev, "core");
scm               522 drivers/firmware/qcom_scm.c 	if (IS_ERR(scm->core_clk)) {
scm               523 drivers/firmware/qcom_scm.c 		if (PTR_ERR(scm->core_clk) == -EPROBE_DEFER)
scm               524 drivers/firmware/qcom_scm.c 			return PTR_ERR(scm->core_clk);
scm               528 drivers/firmware/qcom_scm.c 			return PTR_ERR(scm->core_clk);
scm               531 drivers/firmware/qcom_scm.c 		scm->core_clk = NULL;
scm               534 drivers/firmware/qcom_scm.c 	scm->iface_clk = devm_clk_get(&pdev->dev, "iface");
scm               535 drivers/firmware/qcom_scm.c 	if (IS_ERR(scm->iface_clk)) {
scm               536 drivers/firmware/qcom_scm.c 		if (PTR_ERR(scm->iface_clk) == -EPROBE_DEFER)
scm               537 drivers/firmware/qcom_scm.c 			return PTR_ERR(scm->iface_clk);
scm               541 drivers/firmware/qcom_scm.c 			return PTR_ERR(scm->iface_clk);
scm               544 drivers/firmware/qcom_scm.c 		scm->iface_clk = NULL;
scm               547 drivers/firmware/qcom_scm.c 	scm->bus_clk = devm_clk_get(&pdev->dev, "bus");
scm               548 drivers/firmware/qcom_scm.c 	if (IS_ERR(scm->bus_clk)) {
scm               549 drivers/firmware/qcom_scm.c 		if (PTR_ERR(scm->bus_clk) == -EPROBE_DEFER)
scm               550 drivers/firmware/qcom_scm.c 			return PTR_ERR(scm->bus_clk);
scm               554 drivers/firmware/qcom_scm.c 			return PTR_ERR(scm->bus_clk);
scm               557 drivers/firmware/qcom_scm.c 		scm->bus_clk = NULL;
scm               560 drivers/firmware/qcom_scm.c 	scm->reset.ops = &qcom_scm_pas_reset_ops;
scm               561 drivers/firmware/qcom_scm.c 	scm->reset.nr_resets = 1;
scm               562 drivers/firmware/qcom_scm.c 	scm->reset.of_node = pdev->dev.of_node;
scm               563 drivers/firmware/qcom_scm.c 	ret = devm_reset_controller_register(&pdev->dev, &scm->reset);
scm               568 drivers/firmware/qcom_scm.c 	ret = clk_set_rate(scm->core_clk, INT_MAX);
scm               572 drivers/firmware/qcom_scm.c 	__scm = scm;
scm               217 drivers/scsi/csiostor/csio_isr.c 	struct csio_scsim *scm;
scm               221 drivers/scsi/csiostor/csio_isr.c 	scm = csio_hw_to_scsim(hw);
scm               234 drivers/scsi/csiostor/csio_isr.c 			csio_put_scsi_ddp_list_lock(hw, scm, &ioreq->gen_list,
scm               240 drivers/scsi/csiostor/csio_isr.c 		csio_put_scsi_ioreq_list_lock(hw, scm, &cbfn_q,
scm               118 drivers/scsi/csiostor/csio_scsi.c csio_scsi_gather_active_ios(struct csio_scsim *scm,
scm               124 drivers/scsi/csiostor/csio_scsi.c 	if (list_empty(&scm->active_q))
scm               129 drivers/scsi/csiostor/csio_scsi.c 		list_splice_tail_init(&scm->active_q, dest);
scm               133 drivers/scsi/csiostor/csio_scsi.c 	list_for_each_safe(tmp, next, &scm->active_q) {
scm               776 drivers/scsi/csiostor/csio_scsi.c 	struct csio_scsim *scm = csio_hw_to_scsim(hw);
scm               781 drivers/scsi/csiostor/csio_scsi.c 		CSIO_DEC_STATS(scm, n_active);
scm               834 drivers/scsi/csiostor/csio_scsi.c 		CSIO_DEC_STATS(scm, n_active);
scm               848 drivers/scsi/csiostor/csio_scsi.c 	struct csio_scsim *scm = csio_hw_to_scsim(hw);
scm               852 drivers/scsi/csiostor/csio_scsi.c 		CSIO_DEC_STATS(scm, n_tm_active);
scm               877 drivers/scsi/csiostor/csio_scsi.c 		CSIO_DEC_STATS(scm, n_tm_active);
scm               891 drivers/scsi/csiostor/csio_scsi.c 	struct csio_scsim *scm = csio_hw_to_scsim(hw);
scm               911 drivers/scsi/csiostor/csio_scsi.c 		CSIO_INC_STATS(scm, n_abrt_dups);
scm               957 drivers/scsi/csiostor/csio_scsi.c 		CSIO_DEC_STATS(scm, n_active);
scm               964 drivers/scsi/csiostor/csio_scsi.c 		CSIO_DEC_STATS(scm, n_active);
scm               988 drivers/scsi/csiostor/csio_scsi.c 	struct csio_scsim *scm = csio_hw_to_scsim(hw);
scm              1028 drivers/scsi/csiostor/csio_scsi.c 		CSIO_DEC_STATS(scm, n_active);
scm              1038 drivers/scsi/csiostor/csio_scsi.c 		CSIO_DEC_STATS(scm, n_active);
scm              1109 drivers/scsi/csiostor/csio_scsi.c 	struct csio_scsim *scm = csio_hw_to_scsim(hw);
scm              1117 drivers/scsi/csiostor/csio_scsi.c 		CSIO_INC_STATS(scm, n_inval_cplop);
scm              1147 drivers/scsi/csiostor/csio_scsi.c 	CSIO_INC_STATS(scm, n_inval_scsiop);
scm              1159 drivers/scsi/csiostor/csio_scsi.c csio_scsi_cleanup_io_q(struct csio_scsim *scm, struct list_head *q)
scm              1161 drivers/scsi/csiostor/csio_scsi.c 	struct csio_hw *hw = scm->hw;
scm              1181 drivers/scsi/csiostor/csio_scsi.c 		spin_lock_irq(&scm->freelist_lock);
scm              1182 drivers/scsi/csiostor/csio_scsi.c 		csio_put_scsi_ioreq(scm, ioreq);
scm              1183 drivers/scsi/csiostor/csio_scsi.c 		spin_unlock_irq(&scm->freelist_lock);
scm              1233 drivers/scsi/csiostor/csio_scsi.c csio_scsi_abort_io_q(struct csio_scsim *scm, struct list_head *q, uint32_t tmo)
scm              1235 drivers/scsi/csiostor/csio_scsi.c 	struct csio_hw *hw = scm->hw;
scm              1273 drivers/scsi/csiostor/csio_scsi.c csio_scsim_cleanup_io(struct csio_scsim *scm, bool abort)
scm              1275 drivers/scsi/csiostor/csio_scsi.c 	struct csio_hw *hw = scm->hw;
scm              1280 drivers/scsi/csiostor/csio_scsi.c 	if (list_empty(&scm->active_q))
scm              1284 drivers/scsi/csiostor/csio_scsi.c 	while (!list_empty(&scm->active_q) && count--) {
scm              1291 drivers/scsi/csiostor/csio_scsi.c 	if (list_empty(&scm->active_q))
scm              1296 drivers/scsi/csiostor/csio_scsi.c 		rv = csio_scsi_abort_io_q(scm, &scm->active_q, 30000);
scm              1302 drivers/scsi/csiostor/csio_scsi.c 	csio_scsi_cleanup_io_q(scm, &scm->active_q);
scm              1304 drivers/scsi/csiostor/csio_scsi.c 	CSIO_DB_ASSERT(list_empty(&scm->active_q));
scm              1318 drivers/scsi/csiostor/csio_scsi.c csio_scsim_cleanup_io_lnode(struct csio_scsim *scm, struct csio_lnode *ln)
scm              1320 drivers/scsi/csiostor/csio_scsi.c 	struct csio_hw *hw = scm->hw;
scm              1330 drivers/scsi/csiostor/csio_scsi.c 	csio_scsi_gather_active_ios(scm, &sld, &ln->cmpl_q);
scm              1350 drivers/scsi/csiostor/csio_scsi.c 	rv = csio_scsi_abort_io_q(scm, &ln->cmpl_q, 30000);
scm              1353 drivers/scsi/csiostor/csio_scsi.c 		csio_scsi_cleanup_io_q(scm, &ln->cmpl_q);
scm              1561 drivers/scsi/csiostor/csio_scsi.c 	struct csio_scsim *scm = csio_hw_to_scsim(hw);
scm              1577 drivers/scsi/csiostor/csio_scsi.c 		CSIO_INC_STATS(scm, n_hosterror);
scm              1603 drivers/scsi/csiostor/csio_scsi.c 			CSIO_INC_STATS(scm, n_autosense);
scm              1621 drivers/scsi/csiostor/csio_scsi.c 		CSIO_INC_STATS(scm, n_rsperror);
scm              1630 drivers/scsi/csiostor/csio_scsi.c 		CSIO_INC_STATS(scm, n_ovflerror);
scm              1641 drivers/scsi/csiostor/csio_scsi.c 		CSIO_INC_STATS(scm, n_unflerror);
scm              1657 drivers/scsi/csiostor/csio_scsi.c 			CSIO_INC_STATS(scm, n_closed);
scm              1659 drivers/scsi/csiostor/csio_scsi.c 			CSIO_INC_STATS(scm, n_aborted);
scm              1667 drivers/scsi/csiostor/csio_scsi.c 		CSIO_INC_STATS(scm, n_abrt_timedout);
scm              1677 drivers/scsi/csiostor/csio_scsi.c 		CSIO_INC_STATS(scm, n_rdev_nr_error);
scm              1682 drivers/scsi/csiostor/csio_scsi.c 		CSIO_INC_STATS(scm, n_rdev_lost_error);
scm              1687 drivers/scsi/csiostor/csio_scsi.c 		CSIO_INC_STATS(scm, n_rdev_logo_error);
scm              1696 drivers/scsi/csiostor/csio_scsi.c 		CSIO_INC_STATS(scm, n_link_down_error);
scm              1701 drivers/scsi/csiostor/csio_scsi.c 		CSIO_INC_STATS(scm, n_no_xchg_error);
scm              1710 drivers/scsi/csiostor/csio_scsi.c 		CSIO_INC_STATS(scm, n_unknown_error);
scm              2315 drivers/scsi/csiostor/csio_scsi.c csio_scsi_alloc_ddp_bufs(struct csio_scsim *scm, struct csio_hw *hw,
scm              2329 drivers/scsi/csiostor/csio_scsi.c 	INIT_LIST_HEAD(&scm->ddp_freelist);
scm              2342 drivers/scsi/csiostor/csio_scsi.c 				 scm->stats.n_free_ddp);
scm              2360 drivers/scsi/csiostor/csio_scsi.c 		list_add_tail(&ddp_desc->list, &scm->ddp_freelist);
scm              2361 drivers/scsi/csiostor/csio_scsi.c 		CSIO_INC_STATS(scm, n_free_ddp);
scm              2367 drivers/scsi/csiostor/csio_scsi.c 	list_for_each(tmp, &scm->ddp_freelist) {
scm              2375 drivers/scsi/csiostor/csio_scsi.c 	scm->stats.n_free_ddp = 0;
scm              2388 drivers/scsi/csiostor/csio_scsi.c csio_scsi_free_ddp_bufs(struct csio_scsim *scm, struct csio_hw *hw)
scm              2394 drivers/scsi/csiostor/csio_scsi.c 	list_for_each(tmp, &scm->ddp_freelist) {
scm              2402 drivers/scsi/csiostor/csio_scsi.c 	scm->stats.n_free_ddp = 0;
scm              2412 drivers/scsi/csiostor/csio_scsi.c csio_scsim_init(struct csio_scsim *scm, struct csio_hw *hw)
scm              2418 drivers/scsi/csiostor/csio_scsi.c 	INIT_LIST_HEAD(&scm->active_q);
scm              2419 drivers/scsi/csiostor/csio_scsi.c 	scm->hw = hw;
scm              2421 drivers/scsi/csiostor/csio_scsi.c 	scm->proto_cmd_len = sizeof(struct fcp_cmnd);
scm              2422 drivers/scsi/csiostor/csio_scsi.c 	scm->proto_rsp_len = CSIO_SCSI_RSP_LEN;
scm              2423 drivers/scsi/csiostor/csio_scsi.c 	scm->max_sge = CSIO_SCSI_MAX_SGE;
scm              2425 drivers/scsi/csiostor/csio_scsi.c 	spin_lock_init(&scm->freelist_lock);
scm              2428 drivers/scsi/csiostor/csio_scsi.c 	INIT_LIST_HEAD(&scm->ioreq_freelist);
scm              2436 drivers/scsi/csiostor/csio_scsi.c 				 scm->stats.n_free_ioreq);
scm              2453 drivers/scsi/csiostor/csio_scsi.c 		dma_buf->len = scm->proto_rsp_len;
scm              2460 drivers/scsi/csiostor/csio_scsi.c 		list_add_tail(&ioreq->sm.sm_list, &scm->ioreq_freelist);
scm              2461 drivers/scsi/csiostor/csio_scsi.c 		CSIO_INC_STATS(scm, n_free_ioreq);
scm              2464 drivers/scsi/csiostor/csio_scsi.c 	if (csio_scsi_alloc_ddp_bufs(scm, hw, PAGE_SIZE, csio_ddp_descs))
scm              2474 drivers/scsi/csiostor/csio_scsi.c 	while (!list_empty(&scm->ioreq_freelist)) {
scm              2477 drivers/scsi/csiostor/csio_scsi.c 		tmp = list_first_entry(&scm->ioreq_freelist,
scm              2489 drivers/scsi/csiostor/csio_scsi.c 	scm->stats.n_free_ioreq = 0;
scm              2500 drivers/scsi/csiostor/csio_scsi.c csio_scsim_exit(struct csio_scsim *scm)
scm              2505 drivers/scsi/csiostor/csio_scsi.c 	while (!list_empty(&scm->ioreq_freelist)) {
scm              2508 drivers/scsi/csiostor/csio_scsi.c 		tmp = list_first_entry(&scm->ioreq_freelist,
scm              2514 drivers/scsi/csiostor/csio_scsi.c 		dma_pool_free(scm->hw->scsi_dma_pool, dma_buf->vaddr,
scm              2520 drivers/scsi/csiostor/csio_scsi.c 	scm->stats.n_free_ioreq = 0;
scm              2522 drivers/scsi/csiostor/csio_scsi.c 	csio_scsi_free_ddp_bufs(scm, scm->hw);
scm               192 drivers/scsi/csiostor/csio_scsi.h csio_get_scsi_ioreq(struct csio_scsim *scm)
scm               196 drivers/scsi/csiostor/csio_scsi.h 	if (likely(!list_empty(&scm->ioreq_freelist))) {
scm               197 drivers/scsi/csiostor/csio_scsi.h 		req = list_first_entry(&scm->ioreq_freelist,
scm               200 drivers/scsi/csiostor/csio_scsi.h 		CSIO_DEC_STATS(scm, n_free_ioreq);
scm               207 drivers/scsi/csiostor/csio_scsi.h csio_put_scsi_ioreq(struct csio_scsim *scm, struct csio_ioreq *ioreq)
scm               209 drivers/scsi/csiostor/csio_scsi.h 	list_add_tail(&ioreq->sm.sm_list, &scm->ioreq_freelist);
scm               210 drivers/scsi/csiostor/csio_scsi.h 	CSIO_INC_STATS(scm, n_free_ioreq);
scm               214 drivers/scsi/csiostor/csio_scsi.h csio_put_scsi_ioreq_list(struct csio_scsim *scm, struct list_head *reqlist,
scm               217 drivers/scsi/csiostor/csio_scsi.h 	list_splice_init(reqlist, &scm->ioreq_freelist);
scm               218 drivers/scsi/csiostor/csio_scsi.h 	scm->stats.n_free_ioreq += n;
scm               222 drivers/scsi/csiostor/csio_scsi.h csio_get_scsi_ddp(struct csio_scsim *scm)
scm               226 drivers/scsi/csiostor/csio_scsi.h 	if (likely(!list_empty(&scm->ddp_freelist))) {
scm               227 drivers/scsi/csiostor/csio_scsi.h 		ddp = list_first_entry(&scm->ddp_freelist,
scm               230 drivers/scsi/csiostor/csio_scsi.h 		CSIO_DEC_STATS(scm, n_free_ddp);
scm               237 drivers/scsi/csiostor/csio_scsi.h csio_put_scsi_ddp(struct csio_scsim *scm, struct csio_dma_buf *ddp)
scm               239 drivers/scsi/csiostor/csio_scsi.h 	list_add_tail(&ddp->list, &scm->ddp_freelist);
scm               240 drivers/scsi/csiostor/csio_scsi.h 	CSIO_INC_STATS(scm, n_free_ddp);
scm               244 drivers/scsi/csiostor/csio_scsi.h csio_put_scsi_ddp_list(struct csio_scsim *scm, struct list_head *reqlist,
scm               247 drivers/scsi/csiostor/csio_scsi.h 	list_splice_tail_init(reqlist, &scm->ddp_freelist);
scm               248 drivers/scsi/csiostor/csio_scsi.h 	scm->stats.n_free_ddp += n;
scm                40 include/net/scm.h void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm);
scm                41 include/net/scm.h void scm_detach_fds_compat(struct msghdr *msg, struct scm_cookie *scm);
scm                42 include/net/scm.h int __scm_send(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm);
scm                43 include/net/scm.h void __scm_destroy(struct scm_cookie *scm);
scm                47 include/net/scm.h static __inline__ void unix_get_peersec_dgram(struct socket *sock, struct scm_cookie *scm)
scm                49 include/net/scm.h 	security_socket_getpeersec_dgram(sock, NULL, &scm->secid);
scm                52 include/net/scm.h static __inline__ void unix_get_peersec_dgram(struct socket *sock, struct scm_cookie *scm)
scm                56 include/net/scm.h static __inline__ void scm_set_cred(struct scm_cookie *scm,
scm                59 include/net/scm.h 	scm->pid  = get_pid(pid);
scm                60 include/net/scm.h 	scm->creds.pid = pid_vnr(pid);
scm                61 include/net/scm.h 	scm->creds.uid = uid;
scm                62 include/net/scm.h 	scm->creds.gid = gid;
scm                65 include/net/scm.h static __inline__ void scm_destroy_cred(struct scm_cookie *scm)
scm                67 include/net/scm.h 	put_pid(scm->pid);
scm                68 include/net/scm.h 	scm->pid  = NULL;
scm                71 include/net/scm.h static __inline__ void scm_destroy(struct scm_cookie *scm)
scm                73 include/net/scm.h 	scm_destroy_cred(scm);
scm                74 include/net/scm.h 	if (scm->fp)
scm                75 include/net/scm.h 		__scm_destroy(scm);
scm                79 include/net/scm.h 			       struct scm_cookie *scm, bool forcecreds)
scm                81 include/net/scm.h 	memset(scm, 0, sizeof(*scm));
scm                82 include/net/scm.h 	scm->creds.uid = INVALID_UID;
scm                83 include/net/scm.h 	scm->creds.gid = INVALID_GID;
scm                85 include/net/scm.h 		scm_set_cred(scm, task_tgid(current), current_uid(), current_gid());
scm                86 include/net/scm.h 	unix_get_peersec_dgram(sock, scm);
scm                89 include/net/scm.h 	return __scm_send(sock, msg, scm);
scm                93 include/net/scm.h static inline void scm_passec(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm)
scm               100 include/net/scm.h 		err = security_secid_to_secctx(scm->secid, &secdata, &seclen);
scm               109 include/net/scm.h static inline void scm_passec(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm)
scm               114 include/net/scm.h 				struct scm_cookie *scm, int flags)
scm               117 include/net/scm.h 		if (test_bit(SOCK_PASSCRED, &sock->flags) || scm->fp)
scm               119 include/net/scm.h 		scm_destroy(scm);
scm               126 include/net/scm.h 			.pid = scm->creds.pid,
scm               127 include/net/scm.h 			.uid = from_kuid_munged(current_ns, scm->creds.uid),
scm               128 include/net/scm.h 			.gid = from_kgid_munged(current_ns, scm->creds.gid),
scm               133 include/net/scm.h 	scm_destroy_cred(scm);
scm               135 include/net/scm.h 	scm_passec(sock, msg, scm);
scm               137 include/net/scm.h 	if (!scm->fp)
scm               140 include/net/scm.h 	scm_detach_fds(msg, scm);
scm               266 net/compat.c   void scm_detach_fds_compat(struct msghdr *kmsg, struct scm_cookie *scm)
scm               270 net/compat.c   	int fdnum = scm->fp->count;
scm               271 net/compat.c   	struct file **fp = scm->fp->fp;
scm               317 net/compat.c   	__scm_destroy(scm);
scm               116 net/core/scm.c void __scm_destroy(struct scm_cookie *scm)
scm               118 net/core/scm.c 	struct scm_fp_list *fpl = scm->fp;
scm               122 net/core/scm.c 		scm->fp = NULL;
scm               278 net/core/scm.c void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm)
scm               284 net/core/scm.c 	int fdnum = scm->fp->count;
scm               285 net/core/scm.c 	struct file **fp = scm->fp->fp;
scm               290 net/core/scm.c 		scm_detach_fds_compat(msg, scm);
scm               351 net/core/scm.c 	__scm_destroy(scm);
scm              1852 net/netlink/af_netlink.c 	struct scm_cookie scm;
scm              1858 net/netlink/af_netlink.c 	err = scm_send(sock, msg, &scm, true);
scm              1899 net/netlink/af_netlink.c 	NETLINK_CB(skb).creds	= scm.creds;
scm              1921 net/netlink/af_netlink.c 	scm_destroy(&scm);
scm              1928 net/netlink/af_netlink.c 	struct scm_cookie scm;
scm              1992 net/netlink/af_netlink.c 	memset(&scm, 0, sizeof(scm));
scm              1993 net/netlink/af_netlink.c 	scm.creds = *NETLINK_CREDS(skb);
scm              2008 net/netlink/af_netlink.c 	scm_recv(sock, msg, &scm, flags);
scm               139 net/unix/af_unix.c static void unix_get_secdata(struct scm_cookie *scm, struct sk_buff *skb)
scm               141 net/unix/af_unix.c 	UNIXCB(skb).secid = scm->secid;
scm               144 net/unix/af_unix.c static inline void unix_set_secdata(struct scm_cookie *scm, struct sk_buff *skb)
scm               146 net/unix/af_unix.c 	scm->secid = UNIXCB(skb).secid;
scm               149 net/unix/af_unix.c static inline bool unix_secdata_eq(struct scm_cookie *scm, struct sk_buff *skb)
scm               151 net/unix/af_unix.c 	return (scm->secid == UNIXCB(skb).secid);
scm               154 net/unix/af_unix.c static inline void unix_get_secdata(struct scm_cookie *scm, struct sk_buff *skb)
scm               157 net/unix/af_unix.c static inline void unix_set_secdata(struct scm_cookie *scm, struct sk_buff *skb)
scm               160 net/unix/af_unix.c static inline bool unix_secdata_eq(struct scm_cookie *scm, struct sk_buff *skb)
scm              1508 net/unix/af_unix.c static int unix_scm_to_skb(struct scm_cookie *scm, struct sk_buff *skb, bool send_fds)
scm              1512 net/unix/af_unix.c 	UNIXCB(skb).pid  = get_pid(scm->pid);
scm              1513 net/unix/af_unix.c 	UNIXCB(skb).uid = scm->creds.uid;
scm              1514 net/unix/af_unix.c 	UNIXCB(skb).gid = scm->creds.gid;
scm              1516 net/unix/af_unix.c 	unix_get_secdata(scm, skb);
scm              1517 net/unix/af_unix.c 	if (scm->fp && send_fds)
scm              1518 net/unix/af_unix.c 		err = unix_attach_fds(scm, skb);
scm              1548 net/unix/af_unix.c static int maybe_init_creds(struct scm_cookie *scm,
scm              1555 net/unix/af_unix.c 	err = scm_send(socket, &msg, scm, false);
scm              1560 net/unix/af_unix.c 		scm->pid = get_pid(task_tgid(current));
scm              1561 net/unix/af_unix.c 		current_uid_gid(&scm->creds.uid, &scm->creds.gid);
scm              1567 net/unix/af_unix.c 			    struct scm_cookie *scm)
scm              1571 net/unix/af_unix.c 	return u->pid == scm->pid &&
scm              1572 net/unix/af_unix.c 	       uid_eq(u->uid, scm->creds.uid) &&
scm              1573 net/unix/af_unix.c 	       gid_eq(u->gid, scm->creds.gid) &&
scm              1574 net/unix/af_unix.c 	       unix_secdata_eq(scm, skb);
scm              1594 net/unix/af_unix.c 	struct scm_cookie scm;
scm              1599 net/unix/af_unix.c 	err = scm_send(sock, msg, &scm, false);
scm              1643 net/unix/af_unix.c 	err = unix_scm_to_skb(&scm, skb, true);
scm              1766 net/unix/af_unix.c 	scm_destroy(&scm);
scm              1778 net/unix/af_unix.c 	scm_destroy(&scm);
scm              1795 net/unix/af_unix.c 	struct scm_cookie scm;
scm              1800 net/unix/af_unix.c 	err = scm_send(sock, msg, &scm, false);
scm              1841 net/unix/af_unix.c 		err = unix_scm_to_skb(&scm, skb, !fds_sent);
scm              1870 net/unix/af_unix.c 	scm_destroy(&scm);
scm              1882 net/unix/af_unix.c 	scm_destroy(&scm);
scm              1892 net/unix/af_unix.c 	struct scm_cookie scm;
scm              1938 net/unix/af_unix.c 		err = maybe_init_creds(&scm, socket, other);
scm              1947 net/unix/af_unix.c 	} else if (!skb || !unix_skb_scm_eq(skb, &scm)) {
scm              1974 net/unix/af_unix.c 		err = unix_scm_to_skb(&scm, skb, false);
scm              1986 net/unix/af_unix.c 	scm_destroy(&scm);
scm              1998 net/unix/af_unix.c 		scm_destroy(&scm);
scm              2045 net/unix/af_unix.c 	struct scm_cookie scm;
scm              2105 net/unix/af_unix.c 	memset(&scm, 0, sizeof(scm));
scm              2107 net/unix/af_unix.c 	scm_set_cred(&scm, UNIXCB(skb).pid, UNIXCB(skb).uid, UNIXCB(skb).gid);
scm              2108 net/unix/af_unix.c 	unix_set_secdata(&scm, skb);
scm              2112 net/unix/af_unix.c 			unix_detach_fds(&scm, skb);
scm              2132 net/unix/af_unix.c 			scm.fp = scm_fp_dup(UNIXCB(skb).fp);
scm              2136 net/unix/af_unix.c 	scm_recv(sock, msg, &scm, flags);
scm              2207 net/unix/af_unix.c 	struct scm_cookie scm;
scm              2235 net/unix/af_unix.c 	memset(&scm, 0, sizeof(scm));
scm              2285 net/unix/af_unix.c 				scm_destroy(&scm);
scm              2309 net/unix/af_unix.c 			if (!unix_skb_scm_eq(skb, &scm))
scm              2313 net/unix/af_unix.c 			scm_set_cred(&scm, UNIXCB(skb).pid, UNIXCB(skb).uid, UNIXCB(skb).gid);
scm              2314 net/unix/af_unix.c 			unix_set_secdata(&scm, skb);
scm              2359 net/unix/af_unix.c 				unix_detach_fds(&scm, skb);
scm              2367 net/unix/af_unix.c 			if (scm.fp)
scm              2373 net/unix/af_unix.c 				scm.fp = scm_fp_dup(UNIXCB(skb).fp);
scm              2394 net/unix/af_unix.c 		scm_recv(sock, state->msg, &scm, flags);
scm              2396 net/unix/af_unix.c 		scm_destroy(&scm);
scm               103 net/unix/scm.c int unix_attach_fds(struct scm_cookie *scm, struct sk_buff *skb)
scm               115 net/unix/scm.c 	UNIXCB(skb).fp = scm_fp_dup(scm->fp);
scm               119 net/unix/scm.c 	for (i = scm->fp->count - 1; i >= 0; i--)
scm               120 net/unix/scm.c 		unix_inflight(scm->fp->user, scm->fp->fp[i]);
scm               125 net/unix/scm.c void unix_detach_fds(struct scm_cookie *scm, struct sk_buff *skb)
scm               129 net/unix/scm.c 	scm->fp = UNIXCB(skb).fp;
scm               132 net/unix/scm.c 	for (i = scm->fp->count-1; i >= 0; i--)
scm               133 net/unix/scm.c 		unix_notinflight(scm->fp->user, scm->fp->fp[i]);
scm               139 net/unix/scm.c 	struct scm_cookie scm;
scm               141 net/unix/scm.c 	memset(&scm, 0, sizeof(scm));
scm               142 net/unix/scm.c 	scm.pid  = UNIXCB(skb).pid;
scm               144 net/unix/scm.c 		unix_detach_fds(&scm, skb);
scm               148 net/unix/scm.c 	scm_destroy(&scm);
scm                 7 net/unix/scm.h int unix_attach_fds(struct scm_cookie *scm, struct sk_buff *skb);
scm                 8 net/unix/scm.h void unix_detach_fds(struct scm_cookie *scm, struct sk_buff *skb);