/net/sched/ |
D | act_connmark.c | 105 struct tcf_connmark_info *ci; in tcf_connmark_init() local 132 ci = to_connmark(*a); in tcf_connmark_init() 138 ci->net = net; in tcf_connmark_init() 139 ci->zone = parm->zone; in tcf_connmark_init() 143 ci = to_connmark(*a); in tcf_connmark_init() 155 spin_lock_bh(&ci->tcf_lock); in tcf_connmark_init() 157 ci->zone = parm->zone; in tcf_connmark_init() 158 spin_unlock_bh(&ci->tcf_lock); in tcf_connmark_init() 174 struct tcf_connmark_info *ci = to_connmark(a); in tcf_connmark_dump() local 176 .index = ci->tcf_index, in tcf_connmark_dump() [all …]
|
D | act_ctinfo.c | 166 struct tcf_ctinfo *ci; in tcf_ctinfo_init() local 235 ci = to_ctinfo(*a); in tcf_ctinfo_init() 259 spin_lock_bh(&ci->tcf_lock); in tcf_ctinfo_init() 261 cp_new = rcu_replace_pointer(ci->params, cp_new, in tcf_ctinfo_init() 262 lockdep_is_held(&ci->tcf_lock)); in tcf_ctinfo_init() 263 spin_unlock_bh(&ci->tcf_lock); in tcf_ctinfo_init() 283 struct tcf_ctinfo *ci = to_ctinfo(a); in tcf_ctinfo_dump() local 285 .index = ci->tcf_index, in tcf_ctinfo_dump() 286 .refcnt = refcount_read(&ci->tcf_refcnt) - ref, in tcf_ctinfo_dump() 287 .bindcnt = atomic_read(&ci->tcf_bindcnt) - bind, in tcf_ctinfo_dump() [all …]
|
/net/bluetooth/cmtp/ |
D | core.c | 76 static void __cmtp_copy_session(struct cmtp_session *session, struct cmtp_conninfo *ci) in __cmtp_copy_session() argument 79 memset(ci, 0, sizeof(*ci)); in __cmtp_copy_session() 80 bacpy(&ci->bdaddr, &session->bdaddr); in __cmtp_copy_session() 82 ci->flags = session->flags & valid_flags; in __cmtp_copy_session() 83 ci->state = session->state; in __cmtp_copy_session() 85 ci->num = session->num; in __cmtp_copy_session() 462 struct cmtp_conninfo ci; in cmtp_get_connlist() local 464 __cmtp_copy_session(session, &ci); in cmtp_get_connlist() 466 if (copy_to_user(req->ci, &ci, sizeof(ci))) { in cmtp_get_connlist() 474 req->ci++; in cmtp_get_connlist() [all …]
|
D | sock.c | 71 struct cmtp_conninfo ci; in do_cmtp_sock_ioctl() local 126 if (copy_from_user(&ci, argp, sizeof(ci))) in do_cmtp_sock_ioctl() 129 err = cmtp_get_conninfo(&ci); in do_cmtp_sock_ioctl() 130 if (!err && copy_to_user(argp, &ci, sizeof(ci))) in do_cmtp_sock_ioctl() 157 cl.ci = compat_ptr(uci); in cmtp_sock_compat_ioctl()
|
D | cmtp.h | 58 struct cmtp_conninfo __user *ci; member 64 int cmtp_get_conninfo(struct cmtp_conninfo *ci);
|
/net/bluetooth/bnep/ |
D | core.c | 674 static void __bnep_copy_ci(struct bnep_conninfo *ci, struct bnep_session *s) in __bnep_copy_ci() argument 678 memset(ci, 0, sizeof(*ci)); in __bnep_copy_ci() 679 memcpy(ci->dst, s->eh.h_source, ETH_ALEN); in __bnep_copy_ci() 680 strcpy(ci->device, s->dev->name); in __bnep_copy_ci() 681 ci->flags = s->flags & valid_flags; in __bnep_copy_ci() 682 ci->state = s->state; in __bnep_copy_ci() 683 ci->role = s->role; in __bnep_copy_ci() 694 struct bnep_conninfo ci; in bnep_get_connlist() local 696 __bnep_copy_ci(&ci, s); in bnep_get_connlist() 698 if (copy_to_user(req->ci, &ci, sizeof(ci))) { in bnep_get_connlist() [all …]
|
D | sock.c | 58 struct bnep_conninfo ci; in do_bnep_sock_ioctl() local 115 if (copy_from_user(&ci, argp, sizeof(ci))) in do_bnep_sock_ioctl() 118 err = bnep_get_conninfo(&ci); in do_bnep_sock_ioctl() 119 if (!err && copy_to_user(argp, &ci, sizeof(ci))) in do_bnep_sock_ioctl() 155 cl.ci = compat_ptr(uci); in bnep_sock_compat_ioctl()
|
D | bnep.h | 131 struct bnep_conninfo __user *ci; member 142 int bnep_get_conninfo(struct bnep_conninfo *ci);
|
/net/bluetooth/hidp/ |
D | core.c | 72 static void hidp_copy_session(struct hidp_session *session, struct hidp_conninfo *ci) in hidp_copy_session() argument 75 memset(ci, 0, sizeof(*ci)); in hidp_copy_session() 76 bacpy(&ci->bdaddr, &session->bdaddr); in hidp_copy_session() 78 ci->flags = session->flags & valid_flags; in hidp_copy_session() 79 ci->state = BT_CONNECTED; in hidp_copy_session() 82 ci->vendor = session->input->id.vendor; in hidp_copy_session() 83 ci->product = session->input->id.product; in hidp_copy_session() 84 ci->version = session->input->id.version; in hidp_copy_session() 86 strscpy(ci->name, session->input->name, 128); in hidp_copy_session() 88 strscpy(ci->name, "HID Boot Device", 128); in hidp_copy_session() [all …]
|
D | sock.c | 55 struct hidp_conninfo ci; in do_hidp_sock_ioctl() local 113 if (copy_from_user(&ci, argp, sizeof(ci))) in do_hidp_sock_ioctl() 116 err = hidp_get_conninfo(&ci); in do_hidp_sock_ioctl() 117 if (!err && copy_to_user(argp, &ci, sizeof(ci))) in do_hidp_sock_ioctl() 161 cl.ci = compat_ptr(uci); in hidp_sock_compat_ioctl()
|
D | hidp.h | 122 struct hidp_conninfo __user *ci; member 128 int hidp_get_conninfo(struct hidp_conninfo *ci);
|
/net/rxrpc/ |
D | rxkad.c | 43 struct crypto_sync_skcipher *ci); 61 struct crypto_skcipher *ci; in rxkad_preparse_server_key() local 68 ci = crypto_alloc_skcipher("pcbc(des)", 0, CRYPTO_ALG_ASYNC); in rxkad_preparse_server_key() 69 if (IS_ERR(ci)) { in rxkad_preparse_server_key() 70 _leave(" = %ld", PTR_ERR(ci)); in rxkad_preparse_server_key() 71 return PTR_ERR(ci); in rxkad_preparse_server_key() 74 if (crypto_skcipher_setkey(ci, prep->data, 8) < 0) in rxkad_preparse_server_key() 77 prep->payload.data[0] = ci; in rxkad_preparse_server_key() 103 struct crypto_sync_skcipher *ci; in rxkad_init_connection_security() local 110 ci = crypto_alloc_sync_skcipher("pcbc(fcrypt)", 0, 0); in rxkad_init_connection_security() [all …]
|
/net/6lowpan/ |
D | iphc.c | 616 struct lowpan_iphc_ctx *ci; in lowpan_header_decompress() local 661 ci = lowpan_iphc_ctx_get_by_id(dev, LOWPAN_IPHC_CID_SCI(cid)); in lowpan_header_decompress() 662 if (!ci) { in lowpan_header_decompress() 668 err = lowpan_iphc_uncompress_ctx_addr(skb, dev, ci, &hdr.saddr, in lowpan_header_decompress() 689 ci = lowpan_iphc_ctx_get_by_id(dev, LOWPAN_IPHC_CID_DCI(cid)); in lowpan_header_decompress() 690 if (!ci) { in lowpan_header_decompress() 697 err = lowpan_uncompress_multicast_ctx_daddr(skb, ci, in lowpan_header_decompress() 713 ci = lowpan_iphc_ctx_get_by_id(dev, LOWPAN_IPHC_CID_DCI(cid)); in lowpan_header_decompress() 714 if (!ci) { in lowpan_header_decompress() 721 err = lowpan_iphc_uncompress_ctx_addr(skb, dev, ci, &hdr.daddr, in lowpan_header_decompress()
|
/net/bluetooth/ |
D | hci_conn.c | 2553 struct hci_conn_info *ci; in hci_get_conn_list() local 2560 if (!req.conn_num || req.conn_num > (PAGE_SIZE * 2) / sizeof(*ci)) in hci_get_conn_list() 2563 size = sizeof(req) + req.conn_num * sizeof(*ci); in hci_get_conn_list() 2575 ci = cl->conn_info; in hci_get_conn_list() 2579 bacpy(&(ci + n)->bdaddr, &c->dst); in hci_get_conn_list() 2580 (ci + n)->handle = c->handle; in hci_get_conn_list() 2581 (ci + n)->type = c->type; in hci_get_conn_list() 2582 (ci + n)->out = c->out; in hci_get_conn_list() 2583 (ci + n)->state = c->state; in hci_get_conn_list() 2584 (ci + n)->link_mode = get_link_mode(c); in hci_get_conn_list() [all …]
|
/net/ipv4/ |
D | devinet.c | 895 struct ifa_cacheinfo *ci; in rtm_to_ifaddr() local 897 ci = nla_data(tb[IFA_CACHEINFO]); in rtm_to_ifaddr() 898 if (!ci->ifa_valid || ci->ifa_prefered > ci->ifa_valid) { in rtm_to_ifaddr() 902 *pvalid_lft = ci->ifa_valid; in rtm_to_ifaddr() 903 *pprefered_lft = ci->ifa_prefered; in rtm_to_ifaddr() 1643 struct ifa_cacheinfo ci; in put_cacheinfo() local 1645 ci.cstamp = cstamp_delta(cstamp); in put_cacheinfo() 1646 ci.tstamp = cstamp_delta(tstamp); in put_cacheinfo() 1647 ci.ifa_prefered = preferred; in put_cacheinfo() 1648 ci.ifa_valid = valid; in put_cacheinfo() [all …]
|
/net/bridge/ |
D | br_fdb.c | 105 struct nda_cacheinfo ci; in fdb_fill_info() local 133 ci.ndm_used = jiffies_to_clock_t(now - fdb->used); in fdb_fill_info() 134 ci.ndm_confirmed = 0; in fdb_fill_info() 135 ci.ndm_updated = jiffies_to_clock_t(now - fdb->updated); in fdb_fill_info() 136 ci.ndm_refcnt = 0; in fdb_fill_info() 137 if (nla_put(skb, NDA_CACHEINFO, sizeof(ci), &ci)) in fdb_fill_info()
|
/net/ipv6/ |
D | addrconf.c | 4939 struct ifa_cacheinfo *ci; in inet6_rtm_newaddr() local 4941 ci = nla_data(tb[IFA_CACHEINFO]); in inet6_rtm_newaddr() 4942 cfg.valid_lft = ci->ifa_valid; in inet6_rtm_newaddr() 4943 cfg.preferred_lft = ci->ifa_prefered; in inet6_rtm_newaddr() 5009 struct ifa_cacheinfo ci; in put_cacheinfo() local 5011 ci.cstamp = cstamp_delta(cstamp); in put_cacheinfo() 5012 ci.tstamp = cstamp_delta(tstamp); in put_cacheinfo() 5013 ci.ifa_prefered = preferred; in put_cacheinfo() 5014 ci.ifa_valid = valid; in put_cacheinfo() 5016 return nla_put(skb, IFA_CACHEINFO, sizeof(ci), &ci); in put_cacheinfo() [all …]
|
/net/core/ |
D | neighbour.c | 2557 struct nda_cacheinfo ci; in neigh_fill_info() local 2591 ci.ndm_used = jiffies_to_clock_t(now - neigh->used); in neigh_fill_info() 2592 ci.ndm_confirmed = jiffies_to_clock_t(now - neigh->confirmed); in neigh_fill_info() 2593 ci.ndm_updated = jiffies_to_clock_t(now - neigh->updated); in neigh_fill_info() 2594 ci.ndm_refcnt = refcount_read(&neigh->refcnt) - 1; in neigh_fill_info() 2598 nla_put(skb, NDA_CACHEINFO, sizeof(ci), &ci)) in neigh_fill_info()
|
D | rtnetlink.c | 834 struct rta_cacheinfo ci = { in rtnl_put_cacheinfo() local 840 ci.rta_lastuse = jiffies_delta_to_clock_t(jiffies - dst->lastuse); in rtnl_put_cacheinfo() 841 ci.rta_used = dst->__use; in rtnl_put_cacheinfo() 842 ci.rta_clntref = atomic_read(&dst->__refcnt); in rtnl_put_cacheinfo() 849 ci.rta_expires = (expires > 0) ? clock : -clock; in rtnl_put_cacheinfo() 851 return nla_put(skb, RTA_CACHEINFO, sizeof(ci), &ci); in rtnl_put_cacheinfo()
|