/net/mac80211/ |
D | vht.c | 27 vht_cap->cap &= ~flag; in __check_vhtcap_disable() 62 u32 cap, n; in ieee80211_apply_vhtcap_overrides() local 67 cap = vht_cap->cap & IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK; in ieee80211_apply_vhtcap_overrides() 68 cap >>= IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_SHIFT; in ieee80211_apply_vhtcap_overrides() 70 if (n < cap) { in ieee80211_apply_vhtcap_overrides() 71 vht_cap->cap &= in ieee80211_apply_vhtcap_overrides() 73 vht_cap->cap |= in ieee80211_apply_vhtcap_overrides() 172 vht_cap->cap = cap_info; in ieee80211_vht_cap_ie_to_sta_vht_cap() 173 vht_cap->cap &= IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_3895 | in ieee80211_vht_cap_ie_to_sta_vht_cap() 186 switch (own_cap.cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK) { in ieee80211_vht_cap_ie_to_sta_vht_cap() [all …]
|
D | debugfs_sta.c | 311 p += scnprintf(p, sizeof(buf)+buf-p, "cap: %#.4x\n", htc->cap); in sta_ht_capa_read() 313 PRINT_HT_CAP((htc->cap & BIT(0)), "RX LDPC"); in sta_ht_capa_read() 314 PRINT_HT_CAP((htc->cap & BIT(1)), "HT20/HT40"); in sta_ht_capa_read() 315 PRINT_HT_CAP(!(htc->cap & BIT(1)), "HT20"); in sta_ht_capa_read() 317 PRINT_HT_CAP(((htc->cap >> 2) & 0x3) == 0, "Static SM Power Save"); in sta_ht_capa_read() 318 PRINT_HT_CAP(((htc->cap >> 2) & 0x3) == 1, "Dynamic SM Power Save"); in sta_ht_capa_read() 319 PRINT_HT_CAP(((htc->cap >> 2) & 0x3) == 3, "SM Power Save disabled"); in sta_ht_capa_read() 321 PRINT_HT_CAP((htc->cap & BIT(4)), "RX Greenfield"); in sta_ht_capa_read() 322 PRINT_HT_CAP((htc->cap & BIT(5)), "RX HT20 SGI"); in sta_ht_capa_read() 323 PRINT_HT_CAP((htc->cap & BIT(6)), "RX HT40 SGI"); in sta_ht_capa_read() [all …]
|
D | ht.c | 30 ht_cap->cap &= ~flag; in __check_htcap_disable() 43 ht_cap->cap |= flag; in __check_htcap_enable() 167 ht_cap.cap = le16_to_cpu(ht_cap_ie->cap_info) & in ieee80211_ht_cap_ie_to_sta_ht_cap() 168 (own_cap.cap | ~(IEEE80211_HT_CAP_LDPC_CODING | in ieee80211_ht_cap_ie_to_sta_ht_cap() 179 if (!(own_cap.cap & IEEE80211_HT_CAP_TX_STBC)) in ieee80211_ht_cap_ie_to_sta_ht_cap() 180 ht_cap.cap &= ~IEEE80211_HT_CAP_RX_STBC; in ieee80211_ht_cap_ie_to_sta_ht_cap() 181 if (!(own_cap.cap & IEEE80211_HT_CAP_RX_STBC)) in ieee80211_ht_cap_ie_to_sta_ht_cap() 182 ht_cap.cap &= ~IEEE80211_HT_CAP_TX_STBC; in ieee80211_ht_cap_ie_to_sta_ht_cap() 233 if (ht_cap.cap & IEEE80211_HT_CAP_MAX_AMSDU) in ieee80211_ht_cap_ie_to_sta_ht_cap() 255 bw = ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 ? in ieee80211_ht_cap_ie_to_sta_ht_cap() [all …]
|
D | mlme.c | 199 if (sta_ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40) { in ieee80211_determine_chantype() 441 u16 cap; in ieee80211_add_ht_ie() local 450 cap = ht_cap.cap; in ieee80211_add_ht_ie() 455 cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40; in ieee80211_add_ht_ie() 456 cap &= ~IEEE80211_HT_CAP_SGI_40; in ieee80211_add_ht_ie() 461 cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40; in ieee80211_add_ht_ie() 462 cap &= ~IEEE80211_HT_CAP_SGI_40; in ieee80211_add_ht_ie() 473 cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40; in ieee80211_add_ht_ie() 474 cap &= ~IEEE80211_HT_CAP_SGI_40; in ieee80211_add_ht_ie() 478 cap &= ~IEEE80211_HT_CAP_SM_PS; in ieee80211_add_ht_ie() [all …]
|
D | tdls.c | 455 ht_cap.cap |= WLAN_HT_CAP_SM_PS_DISABLED in ieee80211_tdls_add_setup_start_ies() 459 ieee80211_ie_build_ht_cap(pos, &ht_cap, ht_cap.cap); in ieee80211_tdls_add_setup_start_ies() 466 ieee80211_ie_build_ht_cap(pos, &ht_cap, ht_cap.cap); in ieee80211_tdls_add_setup_start_ies() 470 (ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40)) in ieee80211_tdls_add_setup_start_ies() 511 ieee80211_ie_build_vht_cap(pos, &vht_cap, vht_cap.cap); in ieee80211_tdls_add_setup_start_ies() 521 ieee80211_ie_build_vht_cap(pos, &vht_cap, vht_cap.cap); in ieee80211_tdls_add_setup_start_ies()
|
D | ibss.c | 187 pos = ieee80211_ie_build_ht_cap(pos, &ht_cap, ht_cap.cap); in ieee80211_ibss_build_presp() 201 sband->vht_cap.cap); in ieee80211_ibss_build_presp() 1072 struct ieee80211_sta_vht_cap cap = sta->sta.vht_cap; in ieee80211_update_sta_info() local 1079 if (memcmp(&cap, &sta->sta.vht_cap, sizeof(cap))) in ieee80211_update_sta_info()
|
D | util.c | 1413 sband->ht_cap.cap); in ieee80211_build_preq_ies_band() 1463 sband->vht_cap.cap); in ieee80211_build_preq_ies_band() 2309 u16 cap) in ieee80211_ie_build_ht_cap() argument 2318 tmp = cpu_to_le16(cap); in ieee80211_ie_build_ht_cap() 2344 u32 cap) in ieee80211_ie_build_vht_cap() argument 2353 tmp = cpu_to_le32(cap); in ieee80211_ie_build_vht_cap() 2389 if (ht_cap->cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 && in ieee80211_ie_build_ht_oper()
|
D | iface.c | 1883 __le16 cap; in ieee80211_if_add() local 1890 cap = sband->vht_cap.vht_mcs.rx_mcs_map; in ieee80211_if_add() 1892 ieee80211_get_vht_mask_from_cap(cap, vht_rate_mask); in ieee80211_if_add()
|
D | agg-rx.c | 294 (!(sta->sta.ht_cap.cap & IEEE80211_HT_CAP_DELAY_BA))) || in __ieee80211_start_rx_ba_session()
|
D | mesh.c | 424 ieee80211_ie_build_ht_cap(pos, &sband->ht_cap, sband->ht_cap.cap); in mesh_add_ht_cap_ie() 488 ieee80211_ie_build_vht_cap(pos, &sband->vht_cap, sband->vht_cap.cap); in mesh_add_vht_cap_ie()
|
D | rc80211_minstrel_ht.c | 1169 u16 sta_cap = sta->ht_cap.cap; in minstrel_ht_update_caps() 1274 !(vht_cap->cap & IEEE80211_VHT_CAP_SHORT_GI_80))) { in minstrel_ht_update_caps()
|
/net/wireless/ |
D | chan.c | 608 u32 width, control_freq, cap; in cfg80211_chandef_usable() local 637 if (!(ht_cap->cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40) || in cfg80211_chandef_usable() 638 ht_cap->cap & IEEE80211_HT_CAP_40MHZ_INTOLERANT) in cfg80211_chandef_usable() 648 cap = vht_cap->cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK; in cfg80211_chandef_usable() 649 if (cap != IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ) in cfg80211_chandef_usable() 660 cap = vht_cap->cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK; in cfg80211_chandef_usable() 661 if (cap != IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ && in cfg80211_chandef_usable() 662 cap != IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ) in cfg80211_chandef_usable()
|
D | core.c | 712 sband->ht_cap.cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40; in wiphy_register() 713 sband->ht_cap.cap &= ~IEEE80211_HT_CAP_SGI_40; in wiphy_register()
|
/net/sunrpc/xprtrdma/ |
D | verbs.c | 511 ep->rep_attr.cap.max_send_wr = cdata->max_requests; in rpcrdma_ep_create() 512 ep->rep_attr.cap.max_send_wr += RPCRDMA_BACKWARD_WRS; in rpcrdma_ep_create() 513 ep->rep_attr.cap.max_send_wr += 1; /* drain cqe */ in rpcrdma_ep_create() 517 ep->rep_attr.cap.max_recv_wr = cdata->max_requests; in rpcrdma_ep_create() 518 ep->rep_attr.cap.max_recv_wr += RPCRDMA_BACKWARD_WRS; in rpcrdma_ep_create() 519 ep->rep_attr.cap.max_recv_wr += 1; /* drain cqe */ in rpcrdma_ep_create() 520 ep->rep_attr.cap.max_send_sge = max_sge; in rpcrdma_ep_create() 521 ep->rep_attr.cap.max_recv_sge = 1; in rpcrdma_ep_create() 522 ep->rep_attr.cap.max_inline_data = 0; in rpcrdma_ep_create() 530 ep->rep_attr.cap.max_send_wr, in rpcrdma_ep_create() [all …]
|
D | svc_rdma_transport.c | 1047 qp_attr.cap.max_send_wr = newxprt->sc_sq_depth; in svc_rdma_accept() 1048 qp_attr.cap.max_recv_wr = newxprt->sc_rq_depth; in svc_rdma_accept() 1049 qp_attr.cap.max_send_sge = newxprt->sc_max_sge; in svc_rdma_accept() 1050 qp_attr.cap.max_recv_sge = newxprt->sc_max_sge; in svc_rdma_accept() 1063 qp_attr.cap.max_send_wr, in svc_rdma_accept() 1064 qp_attr.cap.max_recv_wr, in svc_rdma_accept() 1065 qp_attr.cap.max_send_sge, in svc_rdma_accept() 1066 qp_attr.cap.max_recv_sge); in svc_rdma_accept()
|
D | frwr_ops.c | 243 ep->rep_attr.cap.max_send_wr *= depth; in frwr_op_open() 244 if (ep->rep_attr.cap.max_send_wr > ia->ri_device->attrs.max_qp_wr) { in frwr_op_open() 248 ep->rep_attr.cap.max_send_wr = cdata->max_requests * in frwr_op_open()
|
/net/ncsi/ |
D | ncsi-manage.c | 715 nca.dwords[0] = nc->caps[NCSI_CAP_BC].cap; in ncsi_configure_channel() 719 (nc->caps[NCSI_CAP_GENERIC].cap & in ncsi_configure_channel() 726 nca.dwords[0] = nc->caps[NCSI_CAP_MC].cap; in ncsi_configure_channel() 736 if (!(nc->caps[NCSI_CAP_AEN].cap & NCSI_CAP_AEN_MASK)) in ncsi_configure_channel() 741 nca.dwords[1] = nc->caps[NCSI_CAP_AEN].cap; in ncsi_configure_channel() 841 unsigned int cap; in ncsi_check_hwa() local 848 cap = nc->caps[NCSI_CAP_GENERIC].cap; in ncsi_check_hwa() 849 if (!(cap & NCSI_CAP_GENERIC_HWA) || in ncsi_check_hwa() 850 (cap & NCSI_CAP_GENERIC_HWA_MASK) != in ncsi_check_hwa() 1171 if (!(nc->caps[NCSI_CAP_GENERIC].cap & NCSI_CAP_GENERIC_MC)) in ncsi_inet6addr_event() [all …]
|
D | ncsi-rsp.c | 648 nc->caps[NCSI_CAP_GENERIC].cap = ntohl(rsp->cap) & in ncsi_rsp_handler_gc() 650 nc->caps[NCSI_CAP_BC].cap = ntohl(rsp->bc_cap) & in ncsi_rsp_handler_gc() 652 nc->caps[NCSI_CAP_MC].cap = ntohl(rsp->mc_cap) & in ncsi_rsp_handler_gc() 654 nc->caps[NCSI_CAP_BUFFER].cap = ntohl(rsp->buf_cap); in ncsi_rsp_handler_gc() 655 nc->caps[NCSI_CAP_AEN].cap = ntohl(rsp->aen_cap) & in ncsi_rsp_handler_gc() 657 nc->caps[NCSI_CAP_VLAN].cap = rsp->vlan_mode & in ncsi_rsp_handler_gc()
|
D | internal.h | 91 u32 cap; /* NCSI channel capability */ member
|
D | ncsi-pkt.h | 180 __be32 cap; /* Capabilities */ member
|
/net/9p/ |
D | trans_rdma.c | 691 qp_attr.cap.max_send_wr = opts.sq_depth; in rdma_create_trans() 692 qp_attr.cap.max_recv_wr = opts.rq_depth; in rdma_create_trans() 693 qp_attr.cap.max_send_sge = P9_RDMA_SEND_SGE; in rdma_create_trans() 694 qp_attr.cap.max_recv_sge = P9_RDMA_RECV_SGE; in rdma_create_trans()
|
/net/netfilter/ |
D | xt_hashlimit.c | 496 u64 cap, cpj; in rateinfo_recalc() local 506 cap = CREDITS_PER_JIFFY_BYTES * HZ; in rateinfo_recalc() 508 dh->rateinfo.credit = cap; in rateinfo_recalc() 515 cap = dh->rateinfo.credit_cap; in rateinfo_recalc() 517 if (dh->rateinfo.credit > cap) in rateinfo_recalc() 518 dh->rateinfo.credit = cap; in rateinfo_recalc()
|
/net/rds/ |
D | ib_cm.c | 439 attr.cap.max_send_wr = ic->i_send_ring.w_nr + fr_queue_space + 1; in rds_ib_setup_qp() 440 attr.cap.max_recv_wr = ic->i_recv_ring.w_nr + 1; in rds_ib_setup_qp() 441 attr.cap.max_send_sge = rds_ibdev->max_sge; in rds_ib_setup_qp() 442 attr.cap.max_recv_sge = RDS_IB_RECV_SGE; in rds_ib_setup_qp()
|
/net/netlink/ |
D | af_netlink.c | 840 struct user_namespace *user_ns, int cap) in __netlink_ns_capable() argument 843 file_ns_capable(nsp->sk->sk_socket->file, user_ns, cap)) && in __netlink_ns_capable() 844 ns_capable(user_ns, cap); in __netlink_ns_capable() 859 struct user_namespace *user_ns, int cap) in netlink_ns_capable() argument 861 return __netlink_ns_capable(&NETLINK_CB(skb), user_ns, cap); in netlink_ns_capable() 874 bool netlink_capable(const struct sk_buff *skb, int cap) in netlink_capable() argument 876 return netlink_ns_capable(skb, &init_user_ns, cap); in netlink_capable() 890 bool netlink_net_capable(const struct sk_buff *skb, int cap) in netlink_net_capable() argument 892 return netlink_ns_capable(skb, sock_net(skb->sk)->user_ns, cap); in netlink_net_capable()
|
/net/core/ |
D | sock.c | 158 struct user_namespace *user_ns, int cap) in sk_ns_capable() argument 160 return file_ns_capable(sk->sk_socket->file, user_ns, cap) && in sk_ns_capable() 161 ns_capable(user_ns, cap); in sk_ns_capable() 174 bool sk_capable(const struct sock *sk, int cap) in sk_capable() argument 176 return sk_ns_capable(sk, &init_user_ns, cap); in sk_capable() 189 bool sk_net_capable(const struct sock *sk, int cap) in sk_net_capable() argument 191 return sk_ns_capable(sk, sock_net(sk)->user_ns, cap); in sk_net_capable()
|