mbm 599 drivers/net/ieee802154/adf7242.c static int adf7242_set_txpower(struct ieee802154_hw *hw, int mbm) mbm 603 drivers/net/ieee802154/adf7242.c int db = mbm / 100; mbm 820 drivers/net/ieee802154/adf7242.c static int adf7242_set_cca_ed_level(struct ieee802154_hw *hw, s32 mbm) mbm 823 drivers/net/ieee802154/adf7242.c s8 level = clamp_t(s8, mbm / 100, S8_MIN, S8_MAX); mbm 1168 drivers/net/ieee802154/at86rf230.c at86rf23x_set_txpower(struct at86rf230_local *lp, s32 mbm) mbm 1173 drivers/net/ieee802154/at86rf230.c if (lp->hw->phy->supported.tx_powers[i] == mbm) mbm 1181 drivers/net/ieee802154/at86rf230.c at86rf212_set_txpower(struct at86rf230_local *lp, s32 mbm) mbm 1186 drivers/net/ieee802154/at86rf230.c if (lp->hw->phy->supported.tx_powers[i] == mbm) mbm 1194 drivers/net/ieee802154/at86rf230.c at86rf230_set_txpower(struct ieee802154_hw *hw, s32 mbm) mbm 1198 drivers/net/ieee802154/at86rf230.c return lp->data->set_txpower(lp, mbm); mbm 1244 drivers/net/ieee802154/at86rf230.c at86rf230_set_cca_ed_level(struct ieee802154_hw *hw, s32 mbm) mbm 1250 drivers/net/ieee802154/at86rf230.c if (hw->phy->supported.cca_ed_levels[i] == mbm) mbm 484 drivers/net/ieee802154/atusb.c atusb_txpower(struct ieee802154_hw *hw, s32 mbm) mbm 489 drivers/net/ieee802154/atusb.c return atusb->data->set_txpower(hw, mbm); mbm 495 drivers/net/ieee802154/atusb.c atusb_set_txpower(struct ieee802154_hw *hw, s32 mbm) mbm 501 drivers/net/ieee802154/atusb.c if (hw->phy->supported.tx_powers[i] == mbm) mbm 509 drivers/net/ieee802154/atusb.c hulusb_set_txpower(struct ieee802154_hw *hw, s32 mbm) mbm 514 drivers/net/ieee802154/atusb.c if (hw->phy->supported.tx_powers[i] == mbm) mbm 603 drivers/net/ieee802154/atusb.c atusb_set_cca_ed_level(struct ieee802154_hw *hw, s32 mbm) mbm 609 drivers/net/ieee802154/atusb.c if (hw->phy->supported.cca_ed_levels[i] == mbm) mbm 2197 drivers/net/ieee802154/ca8210.c static int ca8210_set_tx_power(struct ieee802154_hw *hw, s32 mbm) mbm 2201 drivers/net/ieee802154/ca8210.c mbm /= 100; mbm 2203 drivers/net/ieee802154/ca8210.c mlme_set_request_sync(PHY_TRANSMIT_POWER, 0, 1, &mbm, priv->spi) mbm 701 drivers/net/ieee802154/cc2520.c static inline int cc2520_set_tx_power(struct cc2520_private *priv, s32 mbm) mbm 705 drivers/net/ieee802154/cc2520.c switch (mbm) { mbm 741 drivers/net/ieee802154/cc2520.c s32 mbm) mbm 745 drivers/net/ieee802154/cc2520.c switch (mbm) { mbm 782 drivers/net/ieee802154/cc2520.c cc2520_set_txpower(struct ieee802154_hw *hw, s32 mbm) mbm 787 drivers/net/ieee802154/cc2520.c return cc2520_set_tx_power(priv, mbm); mbm 789 drivers/net/ieee802154/cc2520.c return cc2520_cc2591_set_tx_power(priv, mbm); mbm 617 drivers/net/ieee802154/mcr20a.c mcr20a_set_txpower(struct ieee802154_hw *hw, s32 mbm) mbm 622 drivers/net/ieee802154/mcr20a.c dev_dbg(printdev(lp), "%s(%d)\n", __func__, mbm); mbm 625 drivers/net/ieee802154/mcr20a.c if (lp->hw->phy->supported.tx_powers[i] == mbm) mbm 697 drivers/net/ieee802154/mcr20a.c mcr20a_set_cca_ed_level(struct ieee802154_hw *hw, s32 mbm) mbm 705 drivers/net/ieee802154/mcr20a.c if (hw->phy->supported.cca_ed_levels[i] == mbm) mbm 910 drivers/net/ieee802154/mrf24j40.c static int mrf24j40_set_cca_ed_level(struct ieee802154_hw *hw, s32 mbm) mbm 916 drivers/net/ieee802154/mrf24j40.c if (mrf24j40_ed_levels_map[i][0] == mbm) mbm 930 drivers/net/ieee802154/mrf24j40.c static int mrf24j40_set_txpower(struct ieee802154_hw *hw, s32 mbm) mbm 936 drivers/net/ieee802154/mrf24j40.c if (0 >= mbm && mbm > -1000) { mbm 938 drivers/net/ieee802154/mrf24j40.c small_scale = mbm; mbm 939 drivers/net/ieee802154/mrf24j40.c } else if (-1000 >= mbm && mbm > -2000) { mbm 941 drivers/net/ieee802154/mrf24j40.c small_scale = mbm + 1000; mbm 942 drivers/net/ieee802154/mrf24j40.c } else if (-2000 >= mbm && mbm > -3000) { mbm 944 drivers/net/ieee802154/mrf24j40.c small_scale = mbm + 2000; mbm 945 drivers/net/ieee802154/mrf24j40.c } else if (-3000 >= mbm && mbm > -4000) { mbm 947 drivers/net/ieee802154/mrf24j40.c small_scale = mbm + 3000; mbm 1409 drivers/net/wireless/ath/ath6kl/cfg80211.c int mbm) mbm 1413 drivers/net/wireless/ath/ath6kl/cfg80211.c int dbm = MBM_TO_DBM(mbm); mbm 2132 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c enum nl80211_tx_power_setting type, s32 mbm) mbm 2142 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c brcmf_dbg(TRACE, "Enter %d %d\n", type, mbm); mbm 2151 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (mbm < 0) { mbm 2156 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c qdbm = MBM_TO_DBM(4 * mbm); mbm 372 drivers/net/wireless/marvell/mwifiex/cfg80211.c int mbm) mbm 377 drivers/net/wireless/marvell/mwifiex/cfg80211.c int dbm = MBM_TO_DBM(mbm); mbm 481 drivers/net/wireless/rndis_wlan.c int mbm); mbm 1893 drivers/net/wireless/rndis_wlan.c int mbm) mbm 1899 drivers/net/wireless/rndis_wlan.c __func__, type, mbm); mbm 1901 drivers/net/wireless/rndis_wlan.c if (mbm < 0 || (mbm % 100)) mbm 1909 drivers/net/wireless/rndis_wlan.c MBM_TO_DBM(mbm) == get_bcm4320_power_dbm(priv)) { mbm 3699 drivers/scsi/csiostor/csio_hw.c struct csio_mbm *mbm = &hw->mbm; mbm 3704 drivers/scsi/csiostor/csio_hw.c del_timer_sync(&mbm->timer); mbm 3707 drivers/scsi/csiostor/csio_hw.c if (list_empty(&mbm->cbfn_q)) { mbm 3712 drivers/scsi/csiostor/csio_hw.c list_splice_tail_init(&mbm->cbfn_q, &cbfn_q); mbm 3713 drivers/scsi/csiostor/csio_hw.c mbm->stats.n_cbfnq = 0; mbm 3716 drivers/scsi/csiostor/csio_hw.c if (!list_empty(&mbm->req_q)) { mbm 3717 drivers/scsi/csiostor/csio_hw.c mbp_next = list_first_entry(&mbm->req_q, struct csio_mb, list); mbm 3722 drivers/scsi/csiostor/csio_hw.c list_add_tail(&mbp_next->list, &mbm->req_q); mbm 3724 drivers/scsi/csiostor/csio_hw.c CSIO_DEC_STATS(mbm, n_activeq); mbm 3741 drivers/scsi/csiostor/csio_hw.c struct csio_mbm *mbm = from_timer(mbm, t, timer); mbm 3742 drivers/scsi/csiostor/csio_hw.c struct csio_hw *hw = mbm->hw; mbm 478 drivers/scsi/csiostor/csio_hw.h struct csio_mbm mbm; /* Mailbox module */ mbm 593 drivers/scsi/csiostor/csio_hw.h #define csio_hw_to_mbm(hw) ((struct csio_mbm *)(&(hw)->mbm)) mbm 1195 drivers/scsi/csiostor/csio_mb.c struct csio_mbm *mbm = &hw->mbm; mbm 1216 drivers/scsi/csiostor/csio_mb.c if (mbm->mcurrent != NULL) { mbm 1225 drivers/scsi/csiostor/csio_mb.c list_add_tail(&mbp->list, &mbm->req_q); mbm 1226 drivers/scsi/csiostor/csio_mb.c CSIO_INC_STATS(mbm, n_activeq); mbm 1253 drivers/scsi/csiostor/csio_mb.c if (mbm->mcurrent == NULL) { mbm 1278 drivers/scsi/csiostor/csio_mb.c mbm->mcurrent = mbp; mbm 1279 drivers/scsi/csiostor/csio_mb.c mod_timer(&mbm->timer, jiffies + msecs_to_jiffies(mbp->tmo)); mbm 1290 drivers/scsi/csiostor/csio_mb.c CSIO_INC_STATS(mbm, n_req); mbm 1328 drivers/scsi/csiostor/csio_mb.c CSIO_INC_STATS(mbm, n_err); mbm 1330 drivers/scsi/csiostor/csio_mb.c CSIO_INC_STATS(mbm, n_rsp); mbm 1335 drivers/scsi/csiostor/csio_mb.c CSIO_INC_STATS(mbm, n_tmo); mbm 1343 drivers/scsi/csiostor/csio_mb.c CSIO_INC_STATS(mbm, n_err); mbm 1357 drivers/scsi/csiostor/csio_mb.c struct csio_mbm *mbm = &hw->mbm; mbm 1366 drivers/scsi/csiostor/csio_mb.c CSIO_INC_STATS(mbm, n_err); mbm 1368 drivers/scsi/csiostor/csio_mb.c CSIO_INC_STATS(mbm, n_rsp); mbm 1474 drivers/scsi/csiostor/csio_mb.c struct csio_mbm *mbm = &hw->mbm; mbm 1475 drivers/scsi/csiostor/csio_mb.c struct csio_mb *mbp = mbm->mcurrent; mbm 1544 drivers/scsi/csiostor/csio_mb.c mbm->mcurrent = NULL; mbm 1547 drivers/scsi/csiostor/csio_mb.c list_add_tail(&mbp->list, &mbm->cbfn_q); mbm 1548 drivers/scsi/csiostor/csio_mb.c CSIO_INC_STATS(mbm, n_cbfnq); mbm 1578 drivers/scsi/csiostor/csio_mb.c struct csio_mbm *mbm = &hw->mbm; mbm 1579 drivers/scsi/csiostor/csio_mb.c struct csio_mb *mbp = mbm->mcurrent; mbm 1596 drivers/scsi/csiostor/csio_mb.c mbm->mcurrent = NULL; mbm 1597 drivers/scsi/csiostor/csio_mb.c CSIO_INC_STATS(mbm, n_tmo); mbm 1614 drivers/scsi/csiostor/csio_mb.c struct csio_mbm *mbm = &hw->mbm; mbm 1618 drivers/scsi/csiostor/csio_mb.c if (mbm->mcurrent) { mbm 1619 drivers/scsi/csiostor/csio_mb.c mbp = mbm->mcurrent; mbm 1622 drivers/scsi/csiostor/csio_mb.c del_timer_sync(&mbm->timer); mbm 1626 drivers/scsi/csiostor/csio_mb.c mbm->mcurrent = NULL; mbm 1629 drivers/scsi/csiostor/csio_mb.c if (!list_empty(&mbm->req_q)) { mbm 1630 drivers/scsi/csiostor/csio_mb.c list_splice_tail_init(&mbm->req_q, cbfn_q); mbm 1631 drivers/scsi/csiostor/csio_mb.c mbm->stats.n_activeq = 0; mbm 1634 drivers/scsi/csiostor/csio_mb.c if (!list_empty(&mbm->cbfn_q)) { mbm 1635 drivers/scsi/csiostor/csio_mb.c list_splice_tail_init(&mbm->cbfn_q, cbfn_q); mbm 1636 drivers/scsi/csiostor/csio_mb.c mbm->stats.n_cbfnq = 0; mbm 1649 drivers/scsi/csiostor/csio_mb.c CSIO_INC_STATS(mbm, n_cancel); mbm 1663 drivers/scsi/csiostor/csio_mb.c csio_mbm_init(struct csio_mbm *mbm, struct csio_hw *hw, mbm 1666 drivers/scsi/csiostor/csio_mb.c mbm->hw = hw; mbm 1667 drivers/scsi/csiostor/csio_mb.c timer_setup(&mbm->timer, timer_fn, 0); mbm 1669 drivers/scsi/csiostor/csio_mb.c INIT_LIST_HEAD(&mbm->req_q); mbm 1670 drivers/scsi/csiostor/csio_mb.c INIT_LIST_HEAD(&mbm->cbfn_q); mbm 1671 drivers/scsi/csiostor/csio_mb.c csio_set_mb_intr_idx(mbm, -1); mbm 1683 drivers/scsi/csiostor/csio_mb.c csio_mbm_exit(struct csio_mbm *mbm) mbm 1685 drivers/scsi/csiostor/csio_mb.c del_timer_sync(&mbm->timer); mbm 1687 drivers/scsi/csiostor/csio_mb.c CSIO_DB_ASSERT(mbm->mcurrent == NULL); mbm 1688 drivers/scsi/csiostor/csio_mb.c CSIO_DB_ASSERT(list_empty(&mbm->req_q)); mbm 1689 drivers/scsi/csiostor/csio_mb.c CSIO_DB_ASSERT(list_empty(&mbm->cbfn_q)); mbm 2262 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c enum nl80211_tx_power_setting type, int mbm) mbm 1720 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c enum nl80211_tx_power_setting type, int mbm) mbm 1723 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c s32 tx_power = MBM_TO_DBM(mbm); mbm 575 drivers/staging/wlan-ng/cfg80211.c enum nl80211_tx_power_setting type, int mbm) mbm 586 drivers/staging/wlan-ng/cfg80211.c data = MBM_TO_DBM(mbm); mbm 3761 include/net/cfg80211.h enum nl80211_tx_power_setting type, int mbm); mbm 222 include/net/mac802154.h int (*set_txpower)(struct ieee802154_hw *hw, s32 mbm); mbm 226 include/net/mac802154.h int (*set_cca_ed_level)(struct ieee802154_hw *hw, s32 mbm); mbm 2482 net/mac80211/cfg.c enum nl80211_tx_power_setting type, int mbm) mbm 2506 net/mac80211/cfg.c if (mbm < 0 || (mbm % 100)) mbm 2508 net/mac80211/cfg.c sdata->user_power_level = MBM_TO_DBM(mbm); mbm 2529 net/mac80211/cfg.c if (mbm < 0 || (mbm % 100)) mbm 2531 net/mac80211/cfg.c local->user_power_level = MBM_TO_DBM(mbm); mbm 71 net/mac802154/driver-ops.h static inline int drv_set_tx_power(struct ieee802154_local *local, s32 mbm) mbm 82 net/mac802154/driver-ops.h trace_802154_drv_set_tx_power(local, mbm); mbm 83 net/mac802154/driver-ops.h ret = local->ops->set_txpower(&local->hw, mbm); mbm 124 net/mac802154/driver-ops.h drv_set_cca_ed_level(struct ieee802154_local *local, s32 mbm) mbm 135 net/mac802154/driver-ops.h trace_802154_drv_set_cca_ed_level(local, mbm); mbm 136 net/mac802154/driver-ops.h ret = local->ops->set_cca_ed_level(&local->hw, mbm); mbm 112 net/mac802154/trace.h TP_PROTO(struct ieee802154_local *local, s32 mbm), mbm 113 net/mac802154/trace.h TP_ARGS(local, mbm), mbm 116 net/mac802154/trace.h __field(s32, mbm) mbm 120 net/mac802154/trace.h __entry->mbm = mbm; mbm 123 net/mac802154/trace.h __entry->mbm) mbm 2969 net/wireless/nl80211.c int idx, mbm = 0; mbm 2986 net/wireless/nl80211.c mbm = nla_get_u32(info->attrs[idx]); mbm 2989 net/wireless/nl80211.c result = rdev_set_tx_power(rdev, txp_wdev, type, mbm); mbm 553 net/wireless/rdev-ops.h enum nl80211_tx_power_setting type, int mbm) mbm 556 net/wireless/rdev-ops.h trace_rdev_set_tx_power(&rdev->wiphy, wdev, type, mbm); mbm 557 net/wireless/rdev-ops.h ret = rdev->ops->set_tx_power(&rdev->wiphy, wdev, type, mbm); mbm 1487 net/wireless/trace.h enum nl80211_tx_power_setting type, int mbm), mbm 1488 net/wireless/trace.h TP_ARGS(wiphy, wdev, type, mbm), mbm 1493 net/wireless/trace.h __field(int, mbm) mbm 1499 net/wireless/trace.h __entry->mbm = mbm; mbm 1502 net/wireless/trace.h WIPHY_PR_ARG, WDEV_PR_ARG,__entry->type, __entry->mbm)