/net/mac80211/ |
D | debugfs_sta.c | 445 p += scnprintf(p, sizeof(buf)+buf-p, "cap: %#.4x\n", htc->cap); in sta_ht_capa_read() 447 PRINT_HT_CAP((htc->cap & BIT(0)), "RX LDPC"); in sta_ht_capa_read() 448 PRINT_HT_CAP((htc->cap & BIT(1)), "HT20/HT40"); in sta_ht_capa_read() 449 PRINT_HT_CAP(!(htc->cap & BIT(1)), "HT20"); in sta_ht_capa_read() 451 PRINT_HT_CAP(((htc->cap >> 2) & 0x3) == 0, "Static SM Power Save"); in sta_ht_capa_read() 452 PRINT_HT_CAP(((htc->cap >> 2) & 0x3) == 1, "Dynamic SM Power Save"); in sta_ht_capa_read() 453 PRINT_HT_CAP(((htc->cap >> 2) & 0x3) == 3, "SM Power Save disabled"); in sta_ht_capa_read() 455 PRINT_HT_CAP((htc->cap & BIT(4)), "RX Greenfield"); in sta_ht_capa_read() 456 PRINT_HT_CAP((htc->cap & BIT(5)), "RX HT20 SGI"); in sta_ht_capa_read() 457 PRINT_HT_CAP((htc->cap & BIT(6)), "RX HT40 SGI"); in sta_ht_capa_read() [all …]
|
D | vht.c | 25 vht_cap->cap &= ~flag; in __check_vhtcap_disable() 60 u32 cap, n; in ieee80211_apply_vhtcap_overrides() local 65 cap = vht_cap->cap & IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK; in ieee80211_apply_vhtcap_overrides() 66 cap >>= IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_SHIFT; in ieee80211_apply_vhtcap_overrides() 68 if (n < cap) { in ieee80211_apply_vhtcap_overrides() 69 vht_cap->cap &= in ieee80211_apply_vhtcap_overrides() 71 vht_cap->cap |= in ieee80211_apply_vhtcap_overrides() 170 vht_cap->cap = cap_info; in ieee80211_vht_cap_ie_to_sta_vht_cap() 171 vht_cap->cap &= IEEE80211_VHT_CAP_RXLDPC | in ieee80211_vht_cap_ie_to_sta_vht_cap() 180 vht_cap->cap |= min_t(u32, cap_info & IEEE80211_VHT_CAP_MAX_MPDU_MASK, in ieee80211_vht_cap_ie_to_sta_vht_cap() [all …]
|
D | ht.c | 29 ht_cap->cap &= ~flag; in __check_htcap_disable() 42 ht_cap->cap |= flag; in __check_htcap_enable() 114 ht_cap->cap |= le16_to_cpu(ht_capa->cap_info) & in ieee80211_apply_htcap_overrides() 174 ht_cap.cap = le16_to_cpu(ht_cap_ie->cap_info) & in ieee80211_ht_cap_ie_to_sta_ht_cap() 175 (own_cap.cap | ~(IEEE80211_HT_CAP_LDPC_CODING | in ieee80211_ht_cap_ie_to_sta_ht_cap() 186 if (!(own_cap.cap & IEEE80211_HT_CAP_TX_STBC)) in ieee80211_ht_cap_ie_to_sta_ht_cap() 187 ht_cap.cap &= ~IEEE80211_HT_CAP_RX_STBC; in ieee80211_ht_cap_ie_to_sta_ht_cap() 188 if (!(own_cap.cap & IEEE80211_HT_CAP_RX_STBC)) in ieee80211_ht_cap_ie_to_sta_ht_cap() 189 ht_cap.cap &= ~IEEE80211_HT_CAP_TX_STBC; in ieee80211_ht_cap_ie_to_sta_ht_cap() 240 if (ht_cap.cap & IEEE80211_HT_CAP_MAX_AMSDU) in ieee80211_ht_cap_ie_to_sta_ht_cap() [all …]
|
D | util.c | 1766 static u8 *ieee80211_write_he_6ghz_cap(u8 *pos, __le16 cap, u8 *end) in ieee80211_write_he_6ghz_cap() argument 1772 *pos++ = 1 + sizeof(cap); in ieee80211_write_he_6ghz_cap() 1774 memcpy(pos, &cap, sizeof(cap)); in ieee80211_write_he_6ghz_cap() 1894 sband->ht_cap.cap); in ieee80211_build_preq_ies_band() 1936 sband->vht_cap.cap); in ieee80211_build_preq_ies_band() 1982 __le16 cap = ieee80211_get_he_6ghz_capa(sband, iftype); in ieee80211_build_preq_ies_band() local 1984 pos = ieee80211_write_he_6ghz_cap(pos, cap, end); in ieee80211_build_preq_ies_band() 2833 u16 cap) in ieee80211_ie_build_ht_cap() argument 2842 tmp = cpu_to_le16(cap); in ieee80211_ie_build_ht_cap() 2868 u32 cap) in ieee80211_ie_build_vht_cap() argument [all …]
|
D | mlme.c | 224 if (sta_ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40) { in ieee80211_determine_chantype() 477 u16 cap; in ieee80211_add_ht_ie() local 486 cap = ht_cap.cap; in ieee80211_add_ht_ie() 491 cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40; in ieee80211_add_ht_ie() 492 cap &= ~IEEE80211_HT_CAP_SGI_40; in ieee80211_add_ht_ie() 497 cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40; in ieee80211_add_ht_ie() 498 cap &= ~IEEE80211_HT_CAP_SGI_40; in ieee80211_add_ht_ie() 509 cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40; in ieee80211_add_ht_ie() 510 cap &= ~IEEE80211_HT_CAP_SGI_40; in ieee80211_add_ht_ie() 514 cap &= ~IEEE80211_HT_CAP_SM_PS; in ieee80211_add_ht_ie() [all …]
|
D | mesh.c | 441 ieee80211_ie_build_ht_cap(pos, &sband->ht_cap, sband->ht_cap.cap); in mesh_add_ht_cap_ie() 513 ieee80211_ie_build_vht_cap(pos, &sband->vht_cap, sband->vht_cap.cap); in mesh_add_vht_cap_ie() 675 const struct element *cap; in ieee80211_mesh_update_bss_params() local 690 cap = cfg80211_find_ext_elem(WLAN_EID_EXT_HE_OPERATION, ie, ie_len); in ieee80211_mesh_update_bss_params() 691 if (cap && cap->datalen >= 1 + sizeof(*he_oper) && in ieee80211_mesh_update_bss_params() 692 cap->datalen >= 1 + ieee80211_he_oper_size(cap->data + 1)) in ieee80211_mesh_update_bss_params() 693 he_oper = (void *)(cap->data + 1); in ieee80211_mesh_update_bss_params()
|
D | tdls.c | 456 ht_cap.cap |= WLAN_HT_CAP_SM_PS_DISABLED in ieee80211_tdls_add_setup_start_ies() 460 ieee80211_ie_build_ht_cap(pos, &ht_cap, ht_cap.cap); in ieee80211_tdls_add_setup_start_ies() 467 ieee80211_ie_build_ht_cap(pos, &ht_cap, ht_cap.cap); in ieee80211_tdls_add_setup_start_ies() 471 (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 | 185 pos = ieee80211_ie_build_ht_cap(pos, &ht_cap, ht_cap.cap); in ieee80211_ibss_build_presp() 199 sband->vht_cap.cap); in ieee80211_ibss_build_presp() 1065 struct ieee80211_sta_vht_cap cap = sta->sta.vht_cap; in ieee80211_update_sta_info() local 1076 if (memcmp(&cap, &sta->sta.vht_cap, sizeof(cap))) in ieee80211_update_sta_info()
|
D | rc80211_minstrel_ht.c | 1585 u16 ht_cap = sta->ht_cap.cap; in minstrel_ht_update_caps() 1629 stbc = (vht_cap->cap & IEEE80211_VHT_CAP_RXSTBC_MASK) >> in minstrel_ht_update_caps() 1632 ldpc = vht_cap->cap & IEEE80211_VHT_CAP_RXLDPC; in minstrel_ht_update_caps() 1687 !(vht_cap->cap & IEEE80211_VHT_CAP_SHORT_GI_80))) { in minstrel_ht_update_caps()
|
/net/sunrpc/xprtrdma/ |
D | frwr_ops.c | 198 ep->re_attr.cap.max_send_sge = max_sge; in frwr_query_device() 199 ep->re_attr.cap.max_recv_sge = 1; in frwr_query_device() 245 ep->re_attr.cap.max_send_wr = ep->re_max_requests * depth; in frwr_query_device() 246 if (ep->re_attr.cap.max_send_wr > max_qp_wr) { in frwr_query_device() 250 ep->re_attr.cap.max_send_wr = ep->re_max_requests * depth; in frwr_query_device() 252 ep->re_attr.cap.max_send_wr += RPCRDMA_BACKWARD_WRS; in frwr_query_device() 253 ep->re_attr.cap.max_send_wr += 1; /* for ib_drain_sq */ in frwr_query_device() 254 ep->re_attr.cap.max_recv_wr = ep->re_max_requests; in frwr_query_device() 255 ep->re_attr.cap.max_recv_wr += RPCRDMA_BACKWARD_WRS; in frwr_query_device() 256 ep->re_attr.cap.max_recv_wr += RPCRDMA_MAX_RECV_BATCH; in frwr_query_device() [all …]
|
D | svc_rdma_transport.c | 447 qp_attr.cap.max_rdma_ctxs = ctxts; in svc_rdma_accept() 448 qp_attr.cap.max_send_wr = newxprt->sc_sq_depth - ctxts; in svc_rdma_accept() 449 qp_attr.cap.max_recv_wr = rq_depth; in svc_rdma_accept() 450 qp_attr.cap.max_send_sge = newxprt->sc_max_send_sges; in svc_rdma_accept() 451 qp_attr.cap.max_recv_sge = 1; in svc_rdma_accept() 459 qp_attr.cap.max_send_wr, qp_attr.cap.max_recv_wr); in svc_rdma_accept() 461 qp_attr.cap.max_send_sge, qp_attr.cap.max_recv_sge); in svc_rdma_accept()
|
D | verbs.c | 419 ep->re_attr.cap.max_inline_data = 0; in rpcrdma_ep_create() 427 ep->re_attr.cap.max_send_wr, in rpcrdma_ep_create() 428 ep->re_attr.cap.max_recv_wr, in rpcrdma_ep_create() 429 ep->re_attr.cap.max_send_sge, in rpcrdma_ep_create() 430 ep->re_attr.cap.max_recv_sge); in rpcrdma_ep_create() 437 ep->re_attr.cap.max_send_wr, in rpcrdma_ep_create() 446 ep->re_attr.cap.max_recv_wr, in rpcrdma_ep_create() 632 sc = kzalloc(struct_size(sc, sc_sges, ep->re_attr.cap.max_send_sge), in rpcrdma_sendctx_create()
|
/net/wireless/ |
D | chan.c | 1048 u32 width, control_freq, cap; in cfg80211_chandef_usable() local 1111 if (!(ht_cap->cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40) || in cfg80211_chandef_usable() 1112 ht_cap->cap & IEEE80211_HT_CAP_40MHZ_INTOLERANT) in cfg80211_chandef_usable() 1122 cap = vht_cap->cap; in cfg80211_chandef_usable() 1124 (cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ) || in cfg80211_chandef_usable() 1125 (cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ && in cfg80211_chandef_usable() 1126 cap & IEEE80211_VHT_CAP_EXT_NSS_BW_MASK) || in cfg80211_chandef_usable() 1128 u32_get_bits(cap, IEEE80211_VHT_CAP_EXT_NSS_BW_MASK) > 1); in cfg80211_chandef_usable() 1147 cap = vht_cap->cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK; in cfg80211_chandef_usable() 1148 if (cap != IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ && in cfg80211_chandef_usable() [all …]
|
D | nl80211.c | 1891 sband->ht_cap.cap) || in nl80211_send_band_rateinfo() 1904 sband->vht_cap.cap))) in nl80211_send_band_rateinfo() 2119 nl80211_send_pmsr_ftm_capa(const struct cfg80211_pmsr_capabilities *cap, in nl80211_send_pmsr_ftm_capa() argument 2124 if (!cap->ftm.supported) in nl80211_send_pmsr_ftm_capa() 2131 if (cap->ftm.asap && nla_put_flag(msg, NL80211_PMSR_FTM_CAPA_ATTR_ASAP)) in nl80211_send_pmsr_ftm_capa() 2133 if (cap->ftm.non_asap && in nl80211_send_pmsr_ftm_capa() 2136 if (cap->ftm.request_lci && in nl80211_send_pmsr_ftm_capa() 2139 if (cap->ftm.request_civicloc && in nl80211_send_pmsr_ftm_capa() 2143 cap->ftm.preambles)) in nl80211_send_pmsr_ftm_capa() 2146 cap->ftm.bandwidths)) in nl80211_send_pmsr_ftm_capa() [all …]
|
D | util.c | 2323 int ieee80211_get_vht_max_nss(struct ieee80211_vht_cap *cap, in ieee80211_get_vht_max_nss() argument 2328 u16 map = le16_to_cpu(cap->supp_mcs.rx_mcs_map); in ieee80211_get_vht_max_nss() 2360 if (!(cap->supp_mcs.tx_mcs_map & in ieee80211_get_vht_max_nss() 2364 ext_nss_bw = le32_get_bits(cap->vht_cap_info, in ieee80211_get_vht_max_nss() 2366 supp_width = le32_get_bits(cap->vht_cap_info, in ieee80211_get_vht_max_nss()
|
/net/9p/ |
D | trans_rdma.c | 715 qp_attr.cap.max_send_wr = opts.sq_depth; in rdma_create_trans() 716 qp_attr.cap.max_recv_wr = opts.rq_depth; in rdma_create_trans() 717 qp_attr.cap.max_send_sge = P9_RDMA_SEND_SGE; in rdma_create_trans() 718 qp_attr.cap.max_recv_sge = P9_RDMA_RECV_SGE; in rdma_create_trans()
|
/net/ncsi/ |
D | ncsi-rsp.c | 808 nc->caps[NCSI_CAP_GENERIC].cap = ntohl(rsp->cap) & in ncsi_rsp_handler_gc() 810 nc->caps[NCSI_CAP_BC].cap = ntohl(rsp->bc_cap) & in ncsi_rsp_handler_gc() 812 nc->caps[NCSI_CAP_MC].cap = ntohl(rsp->mc_cap) & in ncsi_rsp_handler_gc() 814 nc->caps[NCSI_CAP_BUFFER].cap = ntohl(rsp->buf_cap); in ncsi_rsp_handler_gc() 815 nc->caps[NCSI_CAP_AEN].cap = ntohl(rsp->aen_cap) & in ncsi_rsp_handler_gc() 817 nc->caps[NCSI_CAP_VLAN].cap = rsp->vlan_mode & in ncsi_rsp_handler_gc()
|
D | ncsi-manage.c | 1117 nca.dwords[0] = nc->caps[NCSI_CAP_BC].cap; in ncsi_configure_channel() 1122 if (nc->caps[NCSI_CAP_GENERIC].cap & in ncsi_configure_channel() 1147 if (!(nc->caps[NCSI_CAP_AEN].cap & NCSI_CAP_AEN_MASK)) in ncsi_configure_channel() 1152 nca.dwords[1] = nc->caps[NCSI_CAP_AEN].cap; in ncsi_configure_channel() 1320 unsigned int cap; in ncsi_check_hwa() local 1330 cap = nc->caps[NCSI_CAP_GENERIC].cap; in ncsi_check_hwa() 1331 if (!(cap & NCSI_CAP_GENERIC_HWA) || in ncsi_check_hwa() 1332 (cap & NCSI_CAP_GENERIC_HWA_MASK) != in ncsi_check_hwa()
|
D | ncsi-pkt.h | 216 __be32 cap; /* Capabilities */ member
|
D | internal.h | 121 u32 cap; /* NCSI channel capability */ member
|
/net/netfilter/ |
D | xt_hashlimit.c | 533 u64 cap, cpj; in rateinfo_recalc() local 558 cap = CREDITS_PER_JIFFY_BYTES * HZ; in rateinfo_recalc() 560 dh->rateinfo.credit = cap; in rateinfo_recalc() 567 cap = dh->rateinfo.credit_cap; in rateinfo_recalc() 569 if (dh->rateinfo.credit > cap) in rateinfo_recalc() 570 dh->rateinfo.credit = cap; in rateinfo_recalc()
|
/net/netlink/ |
D | af_netlink.c | 871 struct user_namespace *user_ns, int cap) in __netlink_ns_capable() argument 874 file_ns_capable(nsp->sk->sk_socket->file, user_ns, cap)) && in __netlink_ns_capable() 875 ns_capable(user_ns, cap); in __netlink_ns_capable() 890 struct user_namespace *user_ns, int cap) in netlink_ns_capable() argument 892 return __netlink_ns_capable(&NETLINK_CB(skb), user_ns, cap); in netlink_ns_capable() 905 bool netlink_capable(const struct sk_buff *skb, int cap) in netlink_capable() argument 907 return netlink_ns_capable(skb, &init_user_ns, cap); in netlink_capable() 921 bool netlink_net_capable(const struct sk_buff *skb, int cap) in netlink_net_capable() argument 923 return netlink_ns_capable(skb, sock_net(skb->sk)->user_ns, cap); in netlink_net_capable()
|
/net/rds/ |
D | ib_cm.c | 587 attr.cap.max_send_wr = ic->i_send_ring.w_nr + fr_queue_space + 1; in rds_ib_setup_qp() 588 attr.cap.max_recv_wr = ic->i_recv_ring.w_nr + 1; in rds_ib_setup_qp() 589 attr.cap.max_send_sge = rds_ibdev->max_sge; in rds_ib_setup_qp() 590 attr.cap.max_recv_sge = RDS_IB_RECV_SGE; in rds_ib_setup_qp()
|
/net/core/ |
D | sock.c | 162 struct user_namespace *user_ns, int cap) in sk_ns_capable() argument 164 return file_ns_capable(sk->sk_socket->file, user_ns, cap) && in sk_ns_capable() 165 ns_capable(user_ns, cap); in sk_ns_capable() 178 bool sk_capable(const struct sock *sk, int cap) in sk_capable() argument 180 return sk_ns_capable(sk, &init_user_ns, cap); in sk_capable() 193 bool sk_net_capable(const struct sock *sk, int cap) in sk_net_capable() argument 195 return sk_ns_capable(sk, sock_net(sk)->user_ns, cap); in sk_net_capable()
|
/net/smc/ |
D | smc_wr.c | 483 lnk->qp_attr.cap.max_send_wr); in smc_wr_remember_qp_attr() 485 lnk->qp_attr.cap.max_recv_wr); in smc_wr_remember_qp_attr()
|