/net/bluetooth/ |
D | hci_event.c | 90 struct hci_ev_status *rp = data; in hci_cc_inquiry_cancel() local 92 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status); in hci_cc_inquiry_cancel() 101 if (rp->status == 0x0c && !test_bit(HCI_INQUIRY, &hdev->flags)) { in hci_cc_inquiry_cancel() 103 rp->status = 0x00; in hci_cc_inquiry_cancel() 106 if (rp->status) in hci_cc_inquiry_cancel() 107 return rp->status; in hci_cc_inquiry_cancel() 124 return rp->status; in hci_cc_inquiry_cancel() 130 struct hci_ev_status *rp = data; in hci_cc_periodic_inq() local 132 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status); in hci_cc_periodic_inq() 134 if (rp->status) in hci_cc_periodic_inq() [all …]
|
D | hci_codec.c | 11 struct hci_rp_read_local_codec_caps *rp, in hci_codec_list_add() argument 29 if (rp) { in hci_codec_list_add() 30 entry->num_caps = rp->num_caps; in hci_codec_list_add() 56 struct hci_rp_read_local_codec_caps *rp; in hci_read_codec_capabilities() local 83 if (skb->len < sizeof(*rp)) in hci_read_codec_capabilities() 86 rp = (void *)skb->data; in hci_read_codec_capabilities() 88 if (rp->status) in hci_read_codec_capabilities() 91 if (!rp->num_caps) { in hci_read_codec_capabilities() 97 skb_pull(skb, sizeof(*rp)); in hci_read_codec_capabilities() 99 for (j = 0, len = 0; j < rp->num_caps; j++) { in hci_read_codec_capabilities() [all …]
|
D | mgmt.c | 360 struct mgmt_rp_read_version *rp = ver; in mgmt_fill_version_info() local 362 rp->version = MGMT_VERSION; in mgmt_fill_version_info() 363 rp->revision = cpu_to_le16(MGMT_REVISION); in mgmt_fill_version_info() 369 struct mgmt_rp_read_version rp; in read_version() local 373 mgmt_fill_version_info(&rp); in read_version() 376 &rp, sizeof(rp)); in read_version() 382 struct mgmt_rp_read_commands *rp; in read_commands() local 397 rp_size = sizeof(*rp) + ((num_commands + num_events) * sizeof(u16)); in read_commands() 399 rp = kmalloc(rp_size, GFP_KERNEL); in read_commands() 400 if (!rp) in read_commands() [all …]
|
D | msft.c | 116 struct msft_rp_read_supported_features *rp; in read_supported_features() local 132 if (skb->len < sizeof(*rp)) { in read_supported_features() 137 rp = (struct msft_rp_read_supported_features *)skb->data; in read_supported_features() 139 if (rp->sub_opcode != MSFT_OP_READ_SUPPORTED_FEATURES) in read_supported_features() 142 if (rp->evt_prefix_len > 0) { in read_supported_features() 143 msft->evt_prefix = kmemdup(rp->evt_prefix, rp->evt_prefix_len, in read_supported_features() 149 msft->evt_prefix_len = rp->evt_prefix_len; in read_supported_features() 150 msft->features = __le64_to_cpu(rp->features); in read_supported_features() 218 struct msft_rp_le_monitor_advertisement *rp; in msft_le_monitor_advertisement_cb() local 225 rp = (struct msft_rp_le_monitor_advertisement *)skb->data; in msft_le_monitor_advertisement_cb() [all …]
|
D | amp.c | 219 struct hci_rp_read_local_amp_assoc *rp = (void *)skb->data; in read_local_amp_assoc_complete() local 223 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in read_local_amp_assoc_complete() 225 if (rp->status) in read_local_amp_assoc_complete() 228 frag_len = skb->len - sizeof(*rp); in read_local_amp_assoc_complete() 229 rem_len = __le16_to_cpu(rp->rem_len); in read_local_amp_assoc_complete() 234 memcpy(assoc->data + assoc->offset, rp->frag, frag_len); in read_local_amp_assoc_complete() 238 amp_read_loc_assoc_frag(hdev, rp->phy_handle); in read_local_amp_assoc_complete() 243 memcpy(assoc->data + assoc->offset, rp->frag, rem_len); in read_local_amp_assoc_complete() 249 a2mp_send_getampassoc_rsp(hdev, rp->status); in read_local_amp_assoc_complete() 250 a2mp_send_create_phy_link_req(hdev, rp->status); in read_local_amp_assoc_complete() [all …]
|
D | aosp.c | 46 struct aosp_rp_le_get_vendor_capa *rp; in aosp_do_open() local 70 rp = (struct aosp_rp_le_get_vendor_capa *)skb->data; in aosp_do_open() 72 version_supported = le16_to_cpu(rp->version_supported); in aosp_do_open() 97 if (rp->bluetooth_quality_report_support) { in aosp_do_open()
|
D | mgmt_config.c | 81 } __packed rp = { in read_def_system_config() local 120 0, &rp, sizeof(rp)); in read_def_system_config()
|
D | mgmt_util.c | 170 void *rp, size_t rp_len) in mgmt_cmd_complete() argument 193 if (rp) in mgmt_cmd_complete() 194 memcpy(ev->data, rp, rp_len); in mgmt_cmd_complete()
|
D | smp.c | 2294 struct smp_cmd_security_req *rp = (void *) skb->data; in smp_cmd_security_req() local 2303 if (skb->len < sizeof(*rp)) in smp_cmd_security_req() 2309 auth = rp->auth_req & AUTH_REQ_MASK(hdev); in smp_cmd_security_req() 2342 skb_pull(skb, sizeof(*rp)); in smp_cmd_security_req() 2497 struct smp_cmd_encrypt_info *rp = (void *) skb->data; in smp_cmd_encrypt_info() local 2503 if (skb->len < sizeof(*rp)) in smp_cmd_encrypt_info() 2508 rp->ltk)) { in smp_cmd_encrypt_info() 2517 skb_pull(skb, sizeof(*rp)); in smp_cmd_encrypt_info() 2519 memcpy(smp->tk, rp->ltk, sizeof(smp->tk)); in smp_cmd_encrypt_info() 2526 struct smp_cmd_initiator_ident *rp = (void *)skb->data; in smp_cmd_initiator_ident() local [all …]
|
D | mgmt_util.h | 53 void *rp, size_t rp_len);
|
/net/mac80211/ |
D | ethtool.c | 17 struct ethtool_ringparam *rp, in ieee80211_set_ringparam() argument 23 if (rp->rx_mini_pending != 0 || rp->rx_jumbo_pending != 0) in ieee80211_set_ringparam() 26 return drv_set_ringparam(local, rp->tx_pending, rp->rx_pending); in ieee80211_set_ringparam() 30 struct ethtool_ringparam *rp, in ieee80211_get_ringparam() argument 36 memset(rp, 0, sizeof(*rp)); in ieee80211_get_ringparam() 38 drv_get_ringparam(local, &rp->tx_pending, &rp->tx_max_pending, in ieee80211_get_ringparam() 39 &rp->rx_pending, &rp->rx_max_pending); in ieee80211_get_ringparam()
|
/net/sunrpc/ |
D | cache.c | 829 struct cache_reader *rp = filp->private_data; in cache_read() local 842 while (rp->q.list.next != &cd->queue && in cache_read() 843 list_entry(rp->q.list.next, struct cache_queue, list) in cache_read() 845 struct list_head *next = rp->q.list.next; in cache_read() 846 list_move(&rp->q.list, next); in cache_read() 848 if (rp->q.list.next == &cd->queue) { in cache_read() 851 WARN_ON_ONCE(rp->offset); in cache_read() 854 rq = container_of(rp->q.list.next, struct cache_request, q.list); in cache_read() 856 if (rp->offset == 0) in cache_read() 867 if (rp->offset == 0 && !test_bit(CACHE_PENDING, &rq->item->flags)) { in cache_read() [all …]
|
/net/packet/ |
D | diag.c | 136 struct packet_diag_msg *rp; in sk_diag_fill() local 139 nlh = nlmsg_put(skb, portid, seq, SOCK_DIAG_BY_FAMILY, sizeof(*rp), flags); in sk_diag_fill() 143 rp = nlmsg_data(nlh); in sk_diag_fill() 144 rp->pdiag_family = AF_PACKET; in sk_diag_fill() 145 rp->pdiag_type = sk->sk_type; in sk_diag_fill() 146 rp->pdiag_num = ntohs(READ_ONCE(po->num)); in sk_diag_fill() 147 rp->pdiag_ino = sk_ino; in sk_diag_fill() 148 sock_diag_save_cookie(sk, rp->pdiag_cookie); in sk_diag_fill()
|
/net/ipv6/ |
D | raw.c | 381 struct raw6_sock *rp = raw6_sk(sk); in rawv6_rcv() local 390 if (!rp->checksum) in rawv6_rcv() 503 struct raw6_sock *rp) in rawv6_push_pending_frames() argument 514 if (!rp->checksum) in rawv6_push_pending_frames() 521 offset = rp->offset; in rawv6_push_pending_frames() 741 struct raw6_sock *rp = raw6_sk(sk); in rawv6_sendmsg() local 924 err = rawv6_push_pending_frames(sk, &fl6, rp); in rawv6_sendmsg() 988 struct raw6_sock *rp = raw6_sk(sk); in do_rawv6_setsockopt() local 1022 rp->checksum = 0; in do_rawv6_setsockopt() 1024 rp->checksum = 1; in do_rawv6_setsockopt() [all …]
|
/net/bridge/ |
D | br_stp.c | 106 struct net_bridge_port *rp; in br_should_become_root_port() local 120 rp = br_get_port(br, root_port); in br_should_become_root_port() 122 t = memcmp(&p->designated_root, &rp->designated_root, 8); in br_should_become_root_port() 129 rp->designated_cost + rp->path_cost) in br_should_become_root_port() 132 rp->designated_cost + rp->path_cost) in br_should_become_root_port() 135 t = memcmp(&p->designated_bridge, &rp->designated_bridge, 8); in br_should_become_root_port() 141 if (p->designated_port < rp->designated_port) in br_should_become_root_port() 143 else if (p->designated_port > rp->designated_port) in br_should_become_root_port() 146 if (p->port_id < rp->port_id) in br_should_become_root_port()
|
D | br_forward.c | 285 struct hlist_node *rp; in br_multicast_flood() local 287 rp = br_multicast_get_first_rport_node(brmctx, skb); in br_multicast_flood() 298 while (p || rp) { in br_multicast_flood() 302 rport = br_multicast_rport_from_node_skb(rp, skb); in br_multicast_flood() 327 rp = rcu_dereference(hlist_next_rcu(rp)); in br_multicast_flood()
|
D | br_private.h | 1015 br_multicast_rport_from_node_skb(struct hlist_node *rp, struct sk_buff *skb) in br_multicast_rport_from_node_skb() argument 1021 mctx = hlist_entry_safe(rp, struct net_bridge_mcast_port, in br_multicast_rport_from_node_skb() 1025 mctx = hlist_entry_safe(rp, struct net_bridge_mcast_port, in br_multicast_rport_from_node_skb()
|
/net/ipv6/netfilter/ |
D | ip6t_rt.c | 74 const u_int32_t *rp; in rt_mt6() local 76 rp = skb_header_pointer(skb, in rt_mt6() 81 if (!rp) { in rt_mt6() 86 ret = (*rp == 0); in rt_mt6()
|
/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 | 143 struct rb_node *rp; in monc_show() local 160 for (rp = rb_first(&monc->generic_request_tree); rp; rp = rb_next(rp)) { in monc_show() 162 req = rb_entry(rp, struct ceph_mon_generic_request, node); in monc_show()
|
/net/netfilter/ |
D | nft_set_pipapo_avx2.c | 1122 const u8 *rp = (const u8 *)key; in nft_pipapo_avx2_lookup() local 1163 ret, rp, \ in nft_pipapo_avx2_lookup() 1179 ret, rp, in nft_pipapo_avx2_lookup() 1195 ret, rp, in nft_pipapo_avx2_lookup() 1218 rp += NFT_PIPAPO_GROUPS_PADDED_SIZE(f); in nft_pipapo_avx2_lookup()
|
D | nft_set_pipapo.c | 415 const u8 *rp = (const u8 *)key; in nft_pipapo_lookup() local 445 pipapo_and_field_buckets_8bit(f, res_map, rp); in nft_pipapo_lookup() 447 pipapo_and_field_buckets_4bit(f, res_map, rp); in nft_pipapo_lookup() 450 rp += f->groups / NFT_PIPAPO_GROUPS_PER_BYTE(f); in nft_pipapo_lookup() 493 rp += NFT_PIPAPO_GROUPS_PADDING(f); in nft_pipapo_lookup()
|
/net/can/ |
D | af_can.c | 489 static void can_rx_delete_receiver(struct rcu_head *rp) in can_rx_delete_receiver() argument 491 struct receiver *rcv = container_of(rp, struct receiver, rcu); in can_rx_delete_receiver()
|
/net/ipv4/ |
D | raw.c | 786 struct raw_sock *rp = raw_sk(sk); in raw_sk_init() local 789 memset(&rp->filter, 0, sizeof(rp->filter)); in raw_sk_init()
|
/net/xfrm/ |
D | xfrm_user.c | 518 struct nlattr *rp) in xfrm_replay_verify_len() argument 523 if (!replay_esn || !rp) in xfrm_replay_verify_len() 526 up = nla_data(rp); in xfrm_replay_verify_len() 531 if (nla_len(rp) < (int)ulen || in xfrm_replay_verify_len() 611 struct nlattr *rp = attrs[XFRMA_REPLAY_VAL]; in xfrm_update_ae_params() local 627 if (rp) { in xfrm_update_ae_params() 629 replay = nla_data(rp); in xfrm_update_ae_params() 2480 struct nlattr *rp = attrs[XFRMA_REPLAY_VAL]; in xfrm_new_ae() local 2486 if (!lt && !rp && !re && !et && !rt) in xfrm_new_ae()
|