Home
last modified time | relevance | path

Searched refs:ci (Results 1 – 19 of 19) sorted by relevance

/net/sched/
Dact_connmark.c103 struct tcf_connmark_info *ci; in tcf_connmark_init() local
126 ci = to_connmark(*a); in tcf_connmark_init()
127 ci->tcf_action = parm->action; in tcf_connmark_init()
128 ci->net = net; in tcf_connmark_init()
129 ci->zone = parm->zone; in tcf_connmark_init()
134 ci = to_connmark(*a); in tcf_connmark_init()
141 ci->tcf_action = parm->action; in tcf_connmark_init()
142 ci->zone = parm->zone; in tcf_connmark_init()
152 struct tcf_connmark_info *ci = to_connmark(a); in tcf_connmark_dump() local
155 .index = ci->tcf_index, in tcf_connmark_dump()
[all …]
/net/bluetooth/cmtp/
Dcore.c76 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()
455 struct cmtp_conninfo ci; in cmtp_get_connlist() local
457 __cmtp_copy_session(session, &ci); in cmtp_get_connlist()
459 if (copy_to_user(req->ci, &ci, sizeof(ci))) { in cmtp_get_connlist()
467 req->ci++; in cmtp_get_connlist()
[all …]
Dsock.c71 struct cmtp_conninfo ci; in cmtp_sock_ioctl() local
127 if (copy_from_user(&ci, argp, sizeof(ci))) in cmtp_sock_ioctl()
130 err = cmtp_get_conninfo(&ci); in cmtp_sock_ioctl()
131 if (!err && copy_to_user(argp, &ci, sizeof(ci))) in cmtp_sock_ioctl()
152 cl.ci = compat_ptr(uci); in cmtp_sock_compat_ioctl()
Dcmtp.h58 struct cmtp_conninfo __user *ci; member
64 int cmtp_get_conninfo(struct cmtp_conninfo *ci);
/net/bluetooth/bnep/
Dcore.c673 static void __bnep_copy_ci(struct bnep_conninfo *ci, struct bnep_session *s) in __bnep_copy_ci() argument
677 memset(ci, 0, sizeof(*ci)); in __bnep_copy_ci()
678 memcpy(ci->dst, s->eh.h_source, ETH_ALEN); in __bnep_copy_ci()
679 strcpy(ci->device, s->dev->name); in __bnep_copy_ci()
680 ci->flags = s->flags & valid_flags; in __bnep_copy_ci()
681 ci->state = s->state; in __bnep_copy_ci()
682 ci->role = s->role; in __bnep_copy_ci()
693 struct bnep_conninfo ci; in bnep_get_connlist() local
695 __bnep_copy_ci(&ci, s); in bnep_get_connlist()
697 if (copy_to_user(req->ci, &ci, sizeof(ci))) { in bnep_get_connlist()
[all …]
Dsock.c57 struct bnep_conninfo ci; in bnep_sock_ioctl() local
115 if (copy_from_user(&ci, argp, sizeof(ci))) in bnep_sock_ioctl()
118 err = bnep_get_conninfo(&ci); in bnep_sock_ioctl()
119 if (!err && copy_to_user(argp, &ci, sizeof(ci))) in bnep_sock_ioctl()
149 cl.ci = compat_ptr(uci); in bnep_sock_compat_ioctl()
Dbnep.h141 struct bnep_conninfo __user *ci; member
152 int bnep_get_conninfo(struct bnep_conninfo *ci);
/net/bluetooth/hidp/
Dcore.c72 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 strlcpy(ci->name, session->input->name, 128); in hidp_copy_session()
88 strlcpy(ci->name, "HID Boot Device", 128); in hidp_copy_session()
[all …]
Dsock.c55 struct hidp_conninfo ci; in hidp_sock_ioctl() local
113 if (copy_from_user(&ci, argp, sizeof(ci))) in hidp_sock_ioctl()
116 err = hidp_get_conninfo(&ci); in hidp_sock_ioctl()
117 if (!err && copy_to_user(argp, &ci, sizeof(ci))) in hidp_sock_ioctl()
154 cl.ci = compat_ptr(uci); in hidp_sock_compat_ioctl()
Dhidp.h122 struct hidp_conninfo __user *ci; member
128 int hidp_get_conninfo(struct hidp_conninfo *ci);
/net/bluetooth/
Dhci_conn.c1423 struct hci_conn_info *ci; in hci_get_conn_list() local
1430 if (!req.conn_num || req.conn_num > (PAGE_SIZE * 2) / sizeof(*ci)) in hci_get_conn_list()
1433 size = sizeof(req) + req.conn_num * sizeof(*ci); in hci_get_conn_list()
1445 ci = cl->conn_info; in hci_get_conn_list()
1449 bacpy(&(ci + n)->bdaddr, &c->dst); in hci_get_conn_list()
1450 (ci + n)->handle = c->handle; in hci_get_conn_list()
1451 (ci + n)->type = c->type; in hci_get_conn_list()
1452 (ci + n)->out = c->out; in hci_get_conn_list()
1453 (ci + n)->state = c->state; in hci_get_conn_list()
1454 (ci + n)->link_mode = get_link_mode(c); in hci_get_conn_list()
[all …]
/net/6lowpan/
Diphc.c616 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/bridge/
Dbr_fdb.c627 struct nda_cacheinfo ci; in fdb_fill_info() local
653 ci.ndm_used = jiffies_to_clock_t(now - fdb->used); in fdb_fill_info()
654 ci.ndm_confirmed = 0; in fdb_fill_info()
655 ci.ndm_updated = jiffies_to_clock_t(now - fdb->updated); in fdb_fill_info()
656 ci.ndm_refcnt = 0; in fdb_fill_info()
657 if (nla_put(skb, NDA_CACHEINFO, sizeof(ci), &ci)) in fdb_fill_info()
/net/ipv4/
Ddevinet.c840 struct ifa_cacheinfo *ci; in rtm_to_ifaddr() local
842 ci = nla_data(tb[IFA_CACHEINFO]); in rtm_to_ifaddr()
843 if (!ci->ifa_valid || ci->ifa_prefered > ci->ifa_valid) { in rtm_to_ifaddr()
847 *pvalid_lft = ci->ifa_valid; in rtm_to_ifaddr()
848 *pprefered_lft = ci->ifa_prefered; in rtm_to_ifaddr()
1562 struct ifa_cacheinfo ci; in put_cacheinfo() local
1564 ci.cstamp = cstamp_delta(cstamp); in put_cacheinfo()
1565 ci.tstamp = cstamp_delta(tstamp); in put_cacheinfo()
1566 ci.ifa_prefered = preferred; in put_cacheinfo()
1567 ci.ifa_valid = valid; in put_cacheinfo()
[all …]
/net/rxrpc/
Dkey.c839 struct crypto_skcipher *ci; in rxrpc_preparse_s() local
848 ci = crypto_alloc_skcipher("pcbc(des)", 0, CRYPTO_ALG_ASYNC); in rxrpc_preparse_s()
849 if (IS_ERR(ci)) { in rxrpc_preparse_s()
850 _leave(" = %ld", PTR_ERR(ci)); in rxrpc_preparse_s()
851 return PTR_ERR(ci); in rxrpc_preparse_s()
854 if (crypto_skcipher_setkey(ci, prep->data, 8) < 0) in rxrpc_preparse_s()
857 prep->payload.data[0] = ci; in rxrpc_preparse_s()
Drxkad.c57 struct crypto_skcipher *ci; in rxkad_init_connection_security() local
66 ci = crypto_alloc_skcipher("pcbc(fcrypt)", 0, CRYPTO_ALG_ASYNC); in rxkad_init_connection_security()
67 if (IS_ERR(ci)) { in rxkad_init_connection_security()
69 ret = PTR_ERR(ci); in rxkad_init_connection_security()
73 if (crypto_skcipher_setkey(ci, token->kad->session_key, in rxkad_init_connection_security()
93 conn->cipher = ci; in rxkad_init_connection_security()
/net/ipv6/
Daddrconf.c4607 struct ifa_cacheinfo *ci; in inet6_rtm_newaddr() local
4609 ci = nla_data(tb[IFA_CACHEINFO]); in inet6_rtm_newaddr()
4610 valid_lft = ci->ifa_valid; in inet6_rtm_newaddr()
4611 preferred_lft = ci->ifa_prefered; in inet6_rtm_newaddr()
4665 struct ifa_cacheinfo ci; in put_cacheinfo() local
4667 ci.cstamp = cstamp_delta(cstamp); in put_cacheinfo()
4668 ci.tstamp = cstamp_delta(tstamp); in put_cacheinfo()
4669 ci.ifa_prefered = preferred; in put_cacheinfo()
4670 ci.ifa_valid = valid; in put_cacheinfo()
4672 return nla_put(skb, IFA_CACHEINFO, sizeof(ci), &ci); in put_cacheinfo()
[all …]
/net/core/
Dneighbour.c2221 struct nda_cacheinfo ci; in neigh_fill_info() local
2252 ci.ndm_used = jiffies_to_clock_t(now - neigh->used); in neigh_fill_info()
2253 ci.ndm_confirmed = jiffies_to_clock_t(now - neigh->confirmed); in neigh_fill_info()
2254 ci.ndm_updated = jiffies_to_clock_t(now - neigh->updated); in neigh_fill_info()
2255 ci.ndm_refcnt = refcount_read(&neigh->refcnt) - 1; in neigh_fill_info()
2259 nla_put(skb, NDA_CACHEINFO, sizeof(ci), &ci)) in neigh_fill_info()
Drtnetlink.c716 struct rta_cacheinfo ci = { in rtnl_put_cacheinfo() local
729 ci.rta_expires = (expires > 0) ? clock : -clock; in rtnl_put_cacheinfo()
731 return nla_put(skb, RTA_CACHEINFO, sizeof(ci), &ci); in rtnl_put_cacheinfo()