/net/bluetooth/ |
D | hci_event.c | 95 struct hci_rp_role_discovery *rp = (void *) skb->data; in hci_cc_role_discovery() local 98 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_role_discovery() 100 if (rp->status) in hci_cc_role_discovery() 105 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_role_discovery() 107 if (rp->role) in hci_cc_role_discovery() 118 struct hci_rp_read_link_policy *rp = (void *) skb->data; in hci_cc_read_link_policy() local 121 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_link_policy() 123 if (rp->status) in hci_cc_read_link_policy() 128 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_read_link_policy() 130 conn->link_policy = __le16_to_cpu(rp->policy); in hci_cc_read_link_policy() [all …]
|
D | mgmt.c | 240 void *rp, size_t rp_len) in cmd_complete() argument 263 if (rp) in cmd_complete() 264 memcpy(ev->data, rp, rp_len); in cmd_complete() 276 struct mgmt_rp_read_version rp; in read_version() local 280 rp.version = MGMT_VERSION; in read_version() 281 rp.revision = __constant_cpu_to_le16(MGMT_REVISION); in read_version() 283 return cmd_complete(sk, MGMT_INDEX_NONE, MGMT_OP_READ_VERSION, 0, &rp, in read_version() 284 sizeof(rp)); in read_version() 290 struct mgmt_rp_read_commands *rp; in read_commands() local 299 rp_size = sizeof(*rp) + ((num_commands + num_events) * sizeof(u16)); in read_commands() [all …]
|
D | smp.c | 735 struct smp_cmd_security_req *rp = (void *) skb->data; in smp_cmd_security_req() local 742 hcon->pending_sec_level = authreq_to_seclevel(rp->auth_req); in smp_cmd_security_req() 752 skb_pull(skb, sizeof(*rp)); in smp_cmd_security_req() 755 build_pairing_cmd(conn, &cp, NULL, rp->auth_req); in smp_cmd_security_req() 817 struct smp_cmd_encrypt_info *rp = (void *) skb->data; in smp_cmd_encrypt_info() local 820 skb_pull(skb, sizeof(*rp)); in smp_cmd_encrypt_info() 822 memcpy(smp->tk, rp->ltk, sizeof(smp->tk)); in smp_cmd_encrypt_info() 829 struct smp_cmd_master_ident *rp = (void *) skb->data; in smp_cmd_master_ident() local 835 skb_pull(skb, sizeof(*rp)); in smp_cmd_master_ident() 841 rp->ediv, rp->rand); in smp_cmd_master_ident()
|
/net/wireless/ |
D | ethtool.c | 43 struct ethtool_ringparam *rp) in cfg80211_get_ringparam() argument 48 memset(rp, 0, sizeof(*rp)); in cfg80211_get_ringparam() 51 rdev_get_ringparam(rdev, &rp->tx_pending, &rp->tx_max_pending, in cfg80211_get_ringparam() 52 &rp->rx_pending, &rp->rx_max_pending); in cfg80211_get_ringparam() 56 struct ethtool_ringparam *rp) in cfg80211_set_ringparam() argument 61 if (rp->rx_mini_pending != 0 || rp->rx_jumbo_pending != 0) in cfg80211_set_ringparam() 65 return rdev_set_ringparam(rdev, rp->tx_pending, rp->rx_pending); in cfg80211_set_ringparam()
|
/net/sunrpc/ |
D | cache.c | 768 struct cache_reader *rp = filp->private_data; in cache_read() local 781 while (rp->q.list.next != &cd->queue && in cache_read() 782 list_entry(rp->q.list.next, struct cache_queue, list) in cache_read() 784 struct list_head *next = rp->q.list.next; in cache_read() 785 list_move(&rp->q.list, next); in cache_read() 787 if (rp->q.list.next == &cd->queue) { in cache_read() 790 WARN_ON_ONCE(rp->offset); in cache_read() 793 rq = container_of(rp->q.list.next, struct cache_request, q.list); in cache_read() 795 if (rp->offset == 0) in cache_read() 806 if (rp->offset == 0 && !test_bit(CACHE_PENDING, &rq->item->flags)) { in cache_read() [all …]
|
/net/packet/ |
D | diag.c | 134 struct packet_diag_msg *rp; in sk_diag_fill() local 137 nlh = nlmsg_put(skb, portid, seq, SOCK_DIAG_BY_FAMILY, sizeof(*rp), flags); in sk_diag_fill() 141 rp = nlmsg_data(nlh); in sk_diag_fill() 142 rp->pdiag_family = AF_PACKET; in sk_diag_fill() 143 rp->pdiag_type = sk->sk_type; in sk_diag_fill() 144 rp->pdiag_num = ntohs(po->num); in sk_diag_fill() 145 rp->pdiag_ino = sk_ino; in sk_diag_fill() 146 sock_diag_save_cookie(sk, rp->pdiag_cookie); in sk_diag_fill()
|
/net/bridge/ |
D | br_forward.c | 230 struct hlist_node *rp; in br_multicast_flood() local 232 rp = rcu_dereference(hlist_first_rcu(&br->router_list)); in br_multicast_flood() 234 while (p || rp) { in br_multicast_flood() 238 rport = rp ? hlist_entry(rp, struct net_bridge_port, rlist) : in br_multicast_flood() 251 rp = rcu_dereference(hlist_next_rcu(rp)); in br_multicast_flood()
|
D | br_stp.c | 57 struct net_bridge_port *rp; in br_should_become_root_port() local 71 rp = br_get_port(br, root_port); in br_should_become_root_port() 73 t = memcmp(&p->designated_root, &rp->designated_root, 8); in br_should_become_root_port() 80 rp->designated_cost + rp->path_cost) in br_should_become_root_port() 83 rp->designated_cost + rp->path_cost) in br_should_become_root_port() 86 t = memcmp(&p->designated_bridge, &rp->designated_bridge, 8); in br_should_become_root_port() 92 if (p->designated_port < rp->designated_port) in br_should_become_root_port() 94 else if (p->designated_port > rp->designated_port) in br_should_become_root_port() 97 if (p->port_id < rp->port_id) in br_should_become_root_port()
|
/net/ceph/ |
D | debugfs.c | 92 struct rb_node *rp; in monc_show() local 103 for (rp = rb_first(&monc->generic_request_tree); rp; rp = rb_next(rp)) { in monc_show() 105 req = rb_entry(rp, struct ceph_mon_generic_request, node); in monc_show()
|
/net/ipv6/ |
D | raw.c | 406 struct raw6_sock *rp = raw6_sk(sk); in rawv6_rcv() local 414 if (!rp->checksum) in rawv6_rcv() 528 struct raw6_sock *rp) in rawv6_push_pending_frames() argument 538 if (!rp->checksum) in rawv6_push_pending_frames() 544 offset = rp->offset; in rawv6_push_pending_frames() 735 struct raw6_sock *rp = raw6_sk(sk); in rawv6_sendmsg() local 900 err = rawv6_push_pending_frames(sk, &fl6, rp); in rawv6_sendmsg() 963 struct raw6_sock *rp = raw6_sk(sk); in do_rawv6_setsockopt() local 989 rp->checksum = 0; in do_rawv6_setsockopt() 991 rp->checksum = 1; in do_rawv6_setsockopt() [all …]
|
/net/bluetooth/cmtp/ |
D | capi.c | 393 static void cmtp_register_appl(struct capi_ctr *ctrl, __u16 appl, capi_register_params *rp) in cmtp_register_appl() argument 400 int err = 0, nconn, want = rp->level3cnt; in cmtp_register_appl() 403 ctrl, appl, rp->level3cnt, rp->datablkcnt, rp->datablklen); in cmtp_register_appl() 420 capimsg_setu16(buf, 2, rp->datablkcnt); in cmtp_register_appl() 421 capimsg_setu16(buf, 4, rp->datablklen); in cmtp_register_appl()
|
/net/ipv6/netfilter/ |
D | ip6t_rt.c | 107 const u_int32_t *rp; in rt_mt6() local 109 rp = skb_header_pointer(skb, in rt_mt6() 115 ret = (*rp == 0); in rt_mt6()
|
/net/xfrm/ |
D | xfrm_user.c | 382 struct nlattr *rp) in xfrm_replay_verify_len() argument 387 if (!replay_esn || !rp) in xfrm_replay_verify_len() 390 up = nla_data(rp); in xfrm_replay_verify_len() 393 if (nla_len(rp) < ulen || xfrm_replay_state_esn_len(replay_esn) != ulen) in xfrm_replay_verify_len() 467 struct nlattr *rp = attrs[XFRMA_REPLAY_VAL]; in xfrm_update_ae_params() local 482 if (rp) { in xfrm_update_ae_params() 484 replay = nla_data(rp); in xfrm_update_ae_params() 1851 struct nlattr *rp = attrs[XFRMA_REPLAY_VAL]; in xfrm_new_ae() local 1855 if (!lt && !rp && !re) in xfrm_new_ae() 1871 err = xfrm_replay_verify_len(x->replay_esn, rp); in xfrm_new_ae()
|
/net/can/ |
D | af_can.c | 496 static void can_rx_delete_receiver(struct rcu_head *rp) in can_rx_delete_receiver() argument 498 struct receiver *r = container_of(rp, struct receiver, rcu); in can_rx_delete_receiver()
|
/net/ipv4/ |
D | raw.c | 737 struct raw_sock *rp = raw_sk(sk); in raw_init() local 740 memset(&rp->filter, 0, sizeof(rp->filter)); in raw_init()
|
/net/mac80211/ |
D | mesh_pathtbl.c | 747 static void mesh_path_node_reclaim(struct rcu_head *rp) in mesh_path_node_reclaim() argument 749 struct mpath_node *node = container_of(rp, struct mpath_node, rcu); in mesh_path_node_reclaim()
|
/net/decnet/ |
D | dn_route.c | 333 static int dn_insert_route(struct dn_route *rt, unsigned int hash, struct dn_route **rp) in dn_insert_route() argument 355 *rp = rth; in dn_insert_route() 366 *rp = rt; in dn_insert_route()
|