/net/bluetooth/ |
D | hci_event.c | 103 struct hci_rp_role_discovery *rp = (void *) skb->data; in hci_cc_role_discovery() local 106 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_role_discovery() 108 if (rp->status) in hci_cc_role_discovery() 113 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_role_discovery() 115 conn->role = rp->role; in hci_cc_role_discovery() 122 struct hci_rp_read_link_policy *rp = (void *) skb->data; in hci_cc_read_link_policy() local 125 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_link_policy() 127 if (rp->status) in hci_cc_read_link_policy() 132 conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(rp->handle)); in hci_cc_read_link_policy() 134 conn->link_policy = __le16_to_cpu(rp->policy); in hci_cc_read_link_policy() [all …]
|
D | mgmt.c | 281 struct mgmt_rp_read_version *rp = ver; in mgmt_fill_version_info() local 283 rp->version = MGMT_VERSION; in mgmt_fill_version_info() 284 rp->revision = cpu_to_le16(MGMT_REVISION); in mgmt_fill_version_info() 290 struct mgmt_rp_read_version rp; in read_version() local 294 mgmt_fill_version_info(&rp); in read_version() 297 &rp, sizeof(rp)); in read_version() 303 struct mgmt_rp_read_commands *rp; in read_commands() local 318 rp_size = sizeof(*rp) + ((num_commands + num_events) * sizeof(u16)); in read_commands() 320 rp = kmalloc(rp_size, GFP_KERNEL); in read_commands() 321 if (!rp) in read_commands() [all …]
|
D | amp.c | 227 struct hci_rp_read_local_amp_assoc *rp = (void *)skb->data; in read_local_amp_assoc_complete() local 231 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in read_local_amp_assoc_complete() 233 if (rp->status) in read_local_amp_assoc_complete() 236 frag_len = skb->len - sizeof(*rp); in read_local_amp_assoc_complete() 237 rem_len = __le16_to_cpu(rp->rem_len); in read_local_amp_assoc_complete() 242 memcpy(assoc->data + assoc->offset, rp->frag, frag_len); in read_local_amp_assoc_complete() 246 amp_read_loc_assoc_frag(hdev, rp->phy_handle); in read_local_amp_assoc_complete() 251 memcpy(assoc->data + assoc->offset, rp->frag, rem_len); in read_local_amp_assoc_complete() 257 a2mp_send_getampassoc_rsp(hdev, rp->status); in read_local_amp_assoc_complete() 258 a2mp_send_create_phy_link_req(hdev, rp->status); in read_local_amp_assoc_complete() [all …]
|
D | mgmt_util.c | 137 void *rp, size_t rp_len) in mgmt_cmd_complete() argument 160 if (rp) in mgmt_cmd_complete() 161 memcpy(ev->data, rp, rp_len); in mgmt_cmd_complete()
|
D | smp.c | 2265 struct smp_cmd_security_req *rp = (void *) skb->data; in smp_cmd_security_req() local 2274 if (skb->len < sizeof(*rp)) in smp_cmd_security_req() 2280 auth = rp->auth_req & AUTH_REQ_MASK(hdev); in smp_cmd_security_req() 2313 skb_pull(skb, sizeof(*rp)); in smp_cmd_security_req() 2462 struct smp_cmd_encrypt_info *rp = (void *) skb->data; in smp_cmd_encrypt_info() local 2468 if (skb->len < sizeof(*rp)) in smp_cmd_encrypt_info() 2473 skb_pull(skb, sizeof(*rp)); in smp_cmd_encrypt_info() 2475 memcpy(smp->tk, rp->ltk, sizeof(smp->tk)); in smp_cmd_encrypt_info() 2482 struct smp_cmd_master_ident *rp = (void *) skb->data; in smp_cmd_master_ident() local 2492 if (skb->len < sizeof(*rp)) in smp_cmd_master_ident() [all …]
|
D | mgmt_util.h | 38 void *rp, size_t rp_len);
|
/net/mac80211/ |
D | ethtool.c | 17 struct ethtool_ringparam *rp) in ieee80211_set_ringparam() argument 21 if (rp->rx_mini_pending != 0 || rp->rx_jumbo_pending != 0) in ieee80211_set_ringparam() 24 return drv_set_ringparam(local, rp->tx_pending, rp->rx_pending); in ieee80211_set_ringparam() 28 struct ethtool_ringparam *rp) in ieee80211_get_ringparam() argument 32 memset(rp, 0, sizeof(*rp)); in ieee80211_get_ringparam() 34 drv_get_ringparam(local, &rp->tx_pending, &rp->tx_max_pending, in ieee80211_get_ringparam() 35 &rp->rx_pending, &rp->rx_max_pending); in ieee80211_get_ringparam()
|
/net/sunrpc/ |
D | cache.c | 783 struct cache_reader *rp = filp->private_data; in cache_read() local 796 while (rp->q.list.next != &cd->queue && in cache_read() 797 list_entry(rp->q.list.next, struct cache_queue, list) in cache_read() 799 struct list_head *next = rp->q.list.next; in cache_read() 800 list_move(&rp->q.list, next); in cache_read() 802 if (rp->q.list.next == &cd->queue) { in cache_read() 805 WARN_ON_ONCE(rp->offset); in cache_read() 808 rq = container_of(rp->q.list.next, struct cache_request, q.list); in cache_read() 810 if (rp->offset == 0) in cache_read() 821 if (rp->offset == 0 && !test_bit(CACHE_PENDING, &rq->item->flags)) { in cache_read() [all …]
|
/net/packet/ |
D | diag.c | 135 struct packet_diag_msg *rp; in sk_diag_fill() local 138 nlh = nlmsg_put(skb, portid, seq, SOCK_DIAG_BY_FAMILY, sizeof(*rp), flags); in sk_diag_fill() 142 rp = nlmsg_data(nlh); in sk_diag_fill() 143 rp->pdiag_family = AF_PACKET; in sk_diag_fill() 144 rp->pdiag_type = sk->sk_type; in sk_diag_fill() 145 rp->pdiag_num = ntohs(po->num); in sk_diag_fill() 146 rp->pdiag_ino = sk_ino; in sk_diag_fill() 147 sock_diag_save_cookie(sk, rp->pdiag_cookie); in sk_diag_fill()
|
/net/bridge/ |
D | br_forward.c | 268 struct hlist_node *rp; in br_multicast_flood() local 270 rp = rcu_dereference(hlist_first_rcu(&br->router_list)); in br_multicast_flood() 272 while (p || rp) { in br_multicast_flood() 276 rport = rp ? hlist_entry(rp, struct net_bridge_port, rlist) : in br_multicast_flood() 302 rp = rcu_dereference(hlist_next_rcu(rp)); in br_multicast_flood()
|
D | br_stp.c | 72 struct net_bridge_port *rp; in br_should_become_root_port() local 86 rp = br_get_port(br, root_port); in br_should_become_root_port() 88 t = memcmp(&p->designated_root, &rp->designated_root, 8); in br_should_become_root_port() 95 rp->designated_cost + rp->path_cost) in br_should_become_root_port() 98 rp->designated_cost + rp->path_cost) in br_should_become_root_port() 101 t = memcmp(&p->designated_bridge, &rp->designated_bridge, 8); in br_should_become_root_port() 107 if (p->designated_port < rp->designated_port) in br_should_become_root_port() 109 else if (p->designated_port > rp->designated_port) in br_should_become_root_port() 112 if (p->port_id < rp->port_id) in br_should_become_root_port()
|
/net/ipv6/ |
D | raw.c | 424 struct raw6_sock *rp = raw6_sk(sk); in rawv6_rcv() local 432 if (!rp->checksum) in rawv6_rcv() 545 struct raw6_sock *rp) in rawv6_push_pending_frames() argument 555 if (!rp->checksum) in rawv6_push_pending_frames() 562 offset = rp->offset; in rawv6_push_pending_frames() 776 struct raw6_sock *rp = raw6_sk(sk); in rawv6_sendmsg() local 959 err = rawv6_push_pending_frames(sk, &fl6, rp); in rawv6_sendmsg() 1023 struct raw6_sock *rp = raw6_sk(sk); in do_rawv6_setsockopt() local 1054 rp->checksum = 0; in do_rawv6_setsockopt() 1056 rp->checksum = 1; in do_rawv6_setsockopt() [all …]
|
/net/bluetooth/cmtp/ |
D | capi.c | 379 static void cmtp_register_appl(struct capi_ctr *ctrl, __u16 appl, capi_register_params *rp) in cmtp_register_appl() argument 386 int err = 0, nconn, want = rp->level3cnt; in cmtp_register_appl() 389 ctrl, appl, rp->level3cnt, rp->datablkcnt, rp->datablklen); in cmtp_register_appl() 406 capimsg_setu16(buf, 2, rp->datablkcnt); in cmtp_register_appl() 407 capimsg_setu16(buf, 4, rp->datablklen); in cmtp_register_appl()
|
/net/ceph/ |
D | debugfs.c | 141 struct rb_node *rp; in monc_show() local 158 for (rp = rb_first(&monc->generic_request_tree); rp; rp = rb_next(rp)) { in monc_show() 160 req = rb_entry(rp, struct ceph_mon_generic_request, node); in monc_show()
|
/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/can/ |
D | af_can.c | 518 static void can_rx_delete_receiver(struct rcu_head *rp) in can_rx_delete_receiver() argument 520 struct receiver *r = container_of(rp, struct receiver, rcu); in can_rx_delete_receiver()
|
/net/ipv4/ |
D | raw.c | 804 struct raw_sock *rp = raw_sk(sk); in raw_init() local 807 memset(&rp->filter, 0, sizeof(rp->filter)); in raw_init()
|
/net/xfrm/ |
D | xfrm_user.c | 425 struct nlattr *rp) in xfrm_replay_verify_len() argument 430 if (!replay_esn || !rp) in xfrm_replay_verify_len() 433 up = nla_data(rp); in xfrm_replay_verify_len() 438 if (nla_len(rp) < ulen || in xfrm_replay_verify_len() 518 struct nlattr *rp = attrs[XFRMA_REPLAY_VAL]; in xfrm_update_ae_params() local 533 if (rp) { in xfrm_update_ae_params() 535 replay = nla_data(rp); in xfrm_update_ae_params() 2082 struct nlattr *rp = attrs[XFRMA_REPLAY_VAL]; in xfrm_new_ae() local 2088 if (!lt && !rp && !re && !et && !rt) in xfrm_new_ae()
|
/net/decnet/ |
D | dn_route.c | 325 static int dn_insert_route(struct dn_route *rt, unsigned int hash, struct dn_route **rp) in dn_insert_route() argument 347 *rp = rth; in dn_insert_route() 358 *rp = rt; in dn_insert_route()
|