Lines Matching refs:mib_buf
855 priv->mib_buf.type = MIB_MAC_MGMT; in at76_set_pm_mode()
856 priv->mib_buf.size = 1; in at76_set_pm_mode()
857 priv->mib_buf.index = offsetof(struct mib_mac_mgmt, power_mgmt_mode); in at76_set_pm_mode()
858 priv->mib_buf.data.byte = priv->pm_mode; in at76_set_pm_mode()
860 ret = at76_set_mib(priv, &priv->mib_buf); in at76_set_pm_mode()
872 priv->mib_buf.type = MIB_LOCAL; in at76_set_preamble()
873 priv->mib_buf.size = 1; in at76_set_preamble()
874 priv->mib_buf.index = offsetof(struct mib_local, preamble_type); in at76_set_preamble()
875 priv->mib_buf.data.byte = type; in at76_set_preamble()
877 ret = at76_set_mib(priv, &priv->mib_buf); in at76_set_preamble()
889 priv->mib_buf.type = MIB_MAC; in at76_set_frag()
890 priv->mib_buf.size = 2; in at76_set_frag()
891 priv->mib_buf.index = offsetof(struct mib_mac, frag_threshold); in at76_set_frag()
892 priv->mib_buf.data.word = cpu_to_le16(size); in at76_set_frag()
894 ret = at76_set_mib(priv, &priv->mib_buf); in at76_set_frag()
906 priv->mib_buf.type = MIB_MAC; in at76_set_rts()
907 priv->mib_buf.size = 2; in at76_set_rts()
908 priv->mib_buf.index = offsetof(struct mib_mac, rts_threshold); in at76_set_rts()
909 priv->mib_buf.data.word = cpu_to_le16(size); in at76_set_rts()
911 ret = at76_set_mib(priv, &priv->mib_buf); in at76_set_rts()
922 priv->mib_buf.type = MIB_LOCAL; in at76_set_autorate_fallback()
923 priv->mib_buf.size = 1; in at76_set_autorate_fallback()
924 priv->mib_buf.index = offsetof(struct mib_local, txautorate_fallback); in at76_set_autorate_fallback()
925 priv->mib_buf.data.byte = onoff; in at76_set_autorate_fallback()
927 ret = at76_set_mib(priv, &priv->mib_buf); in at76_set_autorate_fallback()
1483 priv->mib_buf.type = MIB_LOCAL; in at76_work_set_promisc()
1484 priv->mib_buf.size = 1; in at76_work_set_promisc()
1485 priv->mib_buf.index = offsetof(struct mib_local, promiscuous_mode); in at76_work_set_promisc()
1486 priv->mib_buf.data.byte = priv->promisc ? 1 : 0; in at76_work_set_promisc()
1488 ret = at76_set_mib(priv, &priv->mib_buf); in at76_work_set_promisc()
2099 struct mib_mac_wep *mib_data = &priv->mib_buf.data.wep_mib; in at76_set_wep()
2101 priv->mib_buf.type = MIB_MAC_WEP; in at76_set_wep()
2102 priv->mib_buf.size = sizeof(struct mib_mac_wep); in at76_set_wep()
2103 priv->mib_buf.index = 0; in at76_set_wep()
2125 ret = at76_set_mib(priv, &priv->mib_buf); in at76_set_wep()