Home
last modified time | relevance | path

Searched refs:frag_threshold (Results 1 – 41 of 41) sorted by relevance

/linux-4.1.27/drivers/net/wireless/orinoco/
Dcfg.c92 wiphy->frag_threshold = priv->frag_thresh + 1; in orinoco_wiphy_register()
223 if (wiphy->frag_threshold < 0) in orinoco_set_wiphy_params()
233 if (wiphy->frag_threshold < 0) in orinoco_set_wiphy_params()
235 else if ((wiphy->frag_threshold < 257) || in orinoco_set_wiphy_params()
236 (wiphy->frag_threshold > 2347)) in orinoco_set_wiphy_params()
241 frag_value = wiphy->frag_threshold & ~0x1; in orinoco_set_wiphy_params()
/linux-4.1.27/drivers/net/wireless/ti/wl1251/
Dtx.c117 u16 payload_len, frag_threshold, mem_blocks; in wl1251_tx_frag_block_num() local
120 frag_threshold = IEEE80211_MAX_FRAG_THRESHOLD; in wl1251_tx_frag_block_num()
121 tx_hdr->frag_threshold = cpu_to_le16(frag_threshold); in wl1251_tx_frag_block_num()
125 if (payload_len > frag_threshold) { in wl1251_tx_frag_block_num()
127 ((frag_threshold + MAX_MPDU_HEADER_AND_SECURITY) / in wl1251_tx_frag_block_num()
129 num_mpdus = payload_len / frag_threshold; in wl1251_tx_frag_block_num()
131 payload_len -= num_mpdus * frag_threshold; in wl1251_tx_frag_block_num()
Dtx.h151 __le16 frag_threshold; member
/linux-4.1.27/drivers/staging/rtl8192u/
Dr819xU_firmware.c38 u16 frag_threshold; in fw_download_code() local
51 frag_threshold = pfirmware->cmdpacket_frag_thresold; in fw_download_code()
53 if ((buffer_len - frag_offset) > frag_threshold) { in fw_download_code()
54 frag_length = frag_threshold; in fw_download_code()
/linux-4.1.27/drivers/staging/rtl8192e/rtl8192e/
Dr8192E_firmware.c39 u16 frag_threshold; in fw_download_code() local
50 frag_threshold = pfirmware->cmdpacket_frag_thresold; in fw_download_code()
52 if ((buffer_len - frag_offset) > frag_threshold) { in fw_download_code()
53 frag_length = frag_threshold; in fw_download_code()
Dr8192E_cmdpkt.c33 u16 frag_threshold; in cmpk_message_handle_tx() local
45 frag_threshold = pfirmware->cmdpacket_frag_thresold; in cmpk_message_handle_tx()
48 if ((buffer_len - frag_offset) > frag_threshold) { in cmpk_message_handle_tx()
49 frag_length = frag_threshold; in cmpk_message_handle_tx()
/linux-4.1.27/drivers/net/wireless/mwifiex/
Duap_cmd.c297 config->frag_threshold = 0x7FFF; in mwifiex_set_sys_config_invalid_data()
462 struct host_cmd_tlv_frag_threshold *frag_threshold; in mwifiex_uap_bss_param_prepare() local
555 if ((bss_cfg->frag_threshold >= MWIFIEX_FRAG_MIN_VALUE) && in mwifiex_uap_bss_param_prepare()
556 (bss_cfg->frag_threshold <= MWIFIEX_FRAG_MAX_VALUE)) { in mwifiex_uap_bss_param_prepare()
557 frag_threshold = (struct host_cmd_tlv_frag_threshold *)tlv; in mwifiex_uap_bss_param_prepare()
558 frag_threshold->header.type = in mwifiex_uap_bss_param_prepare()
560 frag_threshold->header.len = in mwifiex_uap_bss_param_prepare()
563 frag_threshold->frag_thr = cpu_to_le16(bss_cfg->frag_threshold); in mwifiex_uap_bss_param_prepare()
Dioctl.h97 u16 frag_threshold; member
Dcfg80211.c614 bss_cfg->frag_threshold = wiphy->frag_threshold; in mwifiex_cfg80211_set_wiphy_params()
644 wiphy->frag_threshold); in mwifiex_cfg80211_set_wiphy_params()
3584 wiphy->frag_threshold = thr; in mwifiex_register_cfg80211()
/linux-4.1.27/net/wireless/
Ddebugfs.c37 wiphy->frag_threshold);
Dwext-compat.c328 u32 ofrag = wdev->wiphy->frag_threshold; in cfg80211_wext_siwfrag()
332 wdev->wiphy->frag_threshold = (u32) -1; in cfg80211_wext_siwfrag()
337 wdev->wiphy->frag_threshold = frag->value & ~0x1; in cfg80211_wext_siwfrag()
342 wdev->wiphy->frag_threshold = ofrag; in cfg80211_wext_siwfrag()
354 frag->value = wdev->wiphy->frag_threshold; in cfg80211_wext_giwfrag()
Dcore.c454 rdev->wiphy.frag_threshold = (u32) -1; in wiphy_new_nm()
Dnl80211.c1292 rdev->wiphy.frag_threshold) || in nl80211_send_wiphy()
2084 u32 frag_threshold = 0, rts_threshold = 0; in nl80211_set_wiphy() local
2252 frag_threshold = nla_get_u32( in nl80211_set_wiphy()
2254 if (frag_threshold < 256) in nl80211_set_wiphy()
2257 if (frag_threshold != (u32) -1) { in nl80211_set_wiphy()
2264 frag_threshold &= ~0x1; in nl80211_set_wiphy()
2301 old_frag_threshold = rdev->wiphy.frag_threshold; in nl80211_set_wiphy()
2310 rdev->wiphy.frag_threshold = frag_threshold; in nl80211_set_wiphy()
2320 rdev->wiphy.frag_threshold = old_frag_threshold; in nl80211_set_wiphy()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192se/
Dfw.c167 u16 frag_threshold = MAX_FIRMWARE_CODE_SIZE; in _rtl92s_firmware_downloadcode() local
184 if ((buffer_len - frag_offset) > frag_threshold) { in _rtl92s_firmware_downloadcode()
185 frag_length = frag_threshold + extra_descoffset; in _rtl92s_firmware_downloadcode()
/linux-4.1.27/drivers/net/wireless/
Dat76c50x-usb.h244 __le16 frag_threshold; member
413 int frag_threshold; /* threshold for fragmentation of tx packets */ member
Dat76c50x-usb.c891 priv->mib_buf.index = offsetof(struct mib_mac, frag_threshold); in at76_set_frag()
1064 le16_to_cpu(m->frag_threshold), le16_to_cpu(m->rts_threshold), in at76_dump_mib_mac()
1370 priv->short_retry_limit, priv->frag_threshold, in at76_startup_device()
1402 ccfg->fragmentation_threshold = cpu_to_le16(priv->frag_threshold); in at76_startup_device()
1441 ret = at76_set_frag(priv, priv->frag_threshold); in at76_startup_device()
2346 priv->frag_threshold = DEF_FRAG_THRESHOLD; in at76_init_new_device()
Drndis_wlan.c1248 static int set_frag_threshold(struct usbnet *usbdev, u32 frag_threshold) in set_frag_threshold() argument
1252 netdev_dbg(usbdev->net, "%s(): %i\n", __func__, frag_threshold); in set_frag_threshold()
1254 if (frag_threshold < 256 || frag_threshold > 2346) in set_frag_threshold()
1255 frag_threshold = 2346; in set_frag_threshold()
1257 tmp = cpu_to_le32(frag_threshold); in set_frag_threshold()
1890 err = set_frag_threshold(usbdev, wiphy->frag_threshold); in rndis_set_wiphy_params()
Datmel.c523 int frag_threshold; member
1575 priv->frag_threshold = 2346; in init_atmel_card()
2242 priv->frag_threshold = fthr; in atmel_set_frag()
2254 vwrq->value = priv->frag_threshold; in atmel_get_frag()
4030 atmel_set_mib16(priv, Mac_Mib_Type, MAC_MIB_FRAG_THRESHOLD_POS, priv->frag_threshold); in reset_atmel_card()
/linux-4.1.27/drivers/net/wireless/ti/wlcore/
Dacx.c911 int wl1271_acx_frag_threshold(struct wl1271 *wl, u32 frag_threshold) in wl1271_acx_frag_threshold() argument
920 if (frag_threshold > IEEE80211_MAX_FRAG_THRESHOLD) in wl1271_acx_frag_threshold()
921 frag_threshold = wl->conf.tx.frag_threshold; in wl1271_acx_frag_threshold()
923 wl1271_debug(DEBUG_ACX, "acx frag threshold: %d", frag_threshold); in wl1271_acx_frag_threshold()
932 acx->frag_threshold = cpu_to_le16((u16)frag_threshold); in wl1271_acx_frag_threshold()
Dacx.h461 __le16 frag_threshold; member
1087 int wl1271_acx_frag_threshold(struct wl1271 *wl, u32 frag_threshold);
Dconf.h670 u16 frag_threshold; member
Dinit.c730 ret = wl1271_acx_frag_threshold(wl, wl->hw->wiphy->frag_threshold); in wl1271_hw_init()
/linux-4.1.27/drivers/net/wireless/rsi/
Drsi_mgmt.h215 __le16 frag_threshold; member
Drsi_91x_mac80211.c1088 wiphy->frag_threshold = IEEE80211_MAX_FRAG_THRESHOLD; in rsi_mac80211_attach()
Drsi_91x_mgmt.c653 vap_caps->frag_threshold = cpu_to_le16(IEEE80211_MAX_FRAG_THRESHOLD); in rsi_set_vap_capabilities()
/linux-4.1.27/net/mac80211/
Dtx.c660 tx->local->hw.wiphy->frag_threshold); in ieee80211_tx_h_rate_ctrl()
843 int frag_threshold) in ieee80211_fragment() argument
848 int per_fragm = frag_threshold - hdrlen - FCS_LEN; in ieee80211_fragment()
864 frag_threshold + in ieee80211_fragment()
907 int frag_threshold = tx->local->hw.wiphy->frag_threshold; in ieee80211_tx_h_fragment() local
932 if (WARN_ON(skb->len + FCS_LEN <= frag_threshold)) in ieee80211_tx_h_fragment()
943 if (ieee80211_fragment(tx, skb, hdrlen, frag_threshold)) in ieee80211_tx_h_fragment()
1203 skb->len + FCS_LEN <= local->hw.wiphy->frag_threshold || in ieee80211_tx_prepare()
Dutil.c1806 drv_set_frag_threshold(local, hw->wiphy->frag_threshold); in ieee80211_reconfig()
Dcfg.c2102 err = drv_set_frag_threshold(local, wiphy->frag_threshold); in ieee80211_set_wiphy_params()
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/
Dcfg80211.h96 u32 frag_threshold; member
Dcfg80211.c1156 static s32 brcmf_set_frag(struct net_device *ndev, u32 frag_threshold) in brcmf_set_frag() argument
1161 frag_threshold); in brcmf_set_frag()
1200 (cfg->conf->frag_threshold != wiphy->frag_threshold)) { in brcmf_cfg80211_set_wiphy_params()
1201 cfg->conf->frag_threshold = wiphy->frag_threshold; in brcmf_cfg80211_set_wiphy_params()
1202 err = brcmf_set_frag(ndev, cfg->conf->frag_threshold); in brcmf_cfg80211_set_wiphy_params()
5054 conf->frag_threshold = (u32)-1; in brcmf_init_conf()
/linux-4.1.27/drivers/staging/wlan-ng/
Dcfg80211.c476 if (wiphy->frag_threshold == -1) in prism2_set_wiphy_params()
479 data = wiphy->frag_threshold; in prism2_set_wiphy_params()
/linux-4.1.27/drivers/net/wireless/ipw2x00/
Dipw2100.h529 u32 frag_threshold; member
Dipw2100.c5022 priv->frag_threshold = threshold;
6120 priv->frag_threshold = DEFAULT_FTS | FRAG_DISABLED; in ipw2100_alloc_device()
7312 priv->frag_threshold |= FRAG_DISABLED; in ipw2100_wx_set_frag()
7320 priv->frag_threshold = priv->ieee->fts; in ipw2100_wx_set_frag()
7337 wrqu->frag.value = priv->frag_threshold & ~FRAG_DISABLED; in ipw2100_wx_get_frag()
7339 wrqu->frag.disabled = (priv->frag_threshold & FRAG_DISABLED) ? 1 : 0; in ipw2100_wx_get_frag()
Dipw2200.h919 __le16 frag_threshold; member
Dipw2200.c2548 struct ipw_frag_threshold frag_threshold = { in ipw_send_frag_threshold() local
2549 .frag_threshold = cpu_to_le16(frag), in ipw_send_frag_threshold()
2558 sizeof(frag_threshold), &frag_threshold); in ipw_send_frag_threshold()
/linux-4.1.27/drivers/staging/vt6656/
Dmain_usb.c985 wiphy->frag_threshold = FRAG_THRESH_DEF; in vt6656_probe()
/linux-4.1.27/drivers/net/wireless/ti/wl12xx/
Dmain.c203 .frag_threshold = IEEE80211_MAX_FRAG_THRESHOLD,
/linux-4.1.27/drivers/net/wireless/ti/wl18xx/
Dmain.c333 .frag_threshold = IEEE80211_MAX_FRAG_THRESHOLD,
/linux-4.1.27/drivers/staging/vt6655/
Ddevice_main.c1805 wiphy->frag_threshold = FRAG_THRESH_DEF; in vt6655_probe()
/linux-4.1.27/include/net/
Dcfg80211.h3161 u32 frag_threshold; member
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
Dmac.c455 value = clamp_t(u32, arvif->ar->hw->wiphy->frag_threshold, in ath10k_mac_set_frag()
3398 ret = ath10k_mac_set_frag(arvif, ar->hw->wiphy->frag_threshold); in ath10k_add_interface()