Home
last modified time | relevance | path

Searched full:mw (Results 1 – 25 of 118) sorted by relevance

12345

/linux/drivers/infiniband/sw/rxe/
H A Drxe_mw.c18 struct rxe_mw *mw = to_rmw(ibmw); in rxe_alloc_mw() local
25 ret = rxe_add_to_pool(&rxe->mw_pool, mw); in rxe_alloc_mw()
31 mw->rkey = ibmw->rkey = (mw->elem.index << 8) | rxe_get_next_key(-1); in rxe_alloc_mw()
32 mw->state = (mw->ibmw.type == IB_MW_TYPE_2) ? in rxe_alloc_mw()
34 spin_lock_init(&mw->lock); in rxe_alloc_mw()
36 rxe_finalize(mw); in rxe_alloc_mw()
43 struct rxe_mw *mw = to_rmw(ibmw); in rxe_dealloc_mw() local
45 rxe_cleanup(mw); in rxe_dealloc_mw()
51 struct rxe_mw *mw, struct rxe_mr *mr, int access) in rxe_check_bind_mw() argument
53 if (mw->ibmw.type == IB_MW_TYPE_1) { in rxe_check_bind_mw()
[all …]
H A Drxe_resp.c434 struct rxe_mw *mw = NULL; in check_rkey() local
486 mw = rxe_lookup_mw(qp, access, rkey); in check_rkey()
487 if (!mw) { in check_rkey()
488 rxe_dbg_qp(qp, "no MW matches rkey %#x\n", rkey); in check_rkey()
493 mr = mw->mr; in check_rkey()
495 rxe_dbg_qp(qp, "MW doesn't have an MR\n"); in check_rkey()
500 if (mw->access & IB_ZERO_BASED) in check_rkey()
501 qp->resp.offset = mw->addr; in check_rkey()
504 rxe_put(mw); in check_rkey()
505 mw = NULL; in check_rkey()
[all …]
/linux/drivers/platform/x86/amd/pmf/
H A Dauto-mode.c36 pr_debug("pfloor_perf: %u mW\n", data->mode_set[AUTO_PERFORMANCE].power_floor); in amd_pmf_dump_auto_mode_defaults()
37 pr_debug("pfloor_balanced: %u mW\n", data->mode_set[AUTO_BALANCE].power_floor); in amd_pmf_dump_auto_mode_defaults()
38 pr_debug("pfloor_quiet: %u mW\n", data->mode_set[AUTO_QUIET].power_floor); in amd_pmf_dump_auto_mode_defaults()
41 pr_debug("pd_balanced_to_perf: %u mW\n", in amd_pmf_dump_auto_mode_defaults()
43 pr_debug("pd_perf_to_balanced: %u mW\n", in amd_pmf_dump_auto_mode_defaults()
45 pr_debug("pd_quiet_to_balanced: %u mW\n", in amd_pmf_dump_auto_mode_defaults()
47 pr_debug("pd_balanced_to_quiet: %u mW\n", in amd_pmf_dump_auto_mode_defaults()
56 pr_debug("stt_min_limit_perf_on_lap: %u mW\n", its_mode->power_control.stt_min); in amd_pmf_dump_auto_mode_defaults()
61 pr_debug("stt_min_limit_perf: %u mW\n", its_mode->power_control.stt_min); in amd_pmf_dump_auto_mode_defaults()
66 pr_debug("stt_min_limit_balanced: %u mW\n", its_mode->power_control.stt_min); in amd_pmf_dump_auto_mode_defaults()
[all …]
H A Dcnqf.c51 pr_debug("pfloor_%s: %u mW\n", state_as_str_cnqf(i), data->ps[i].pfloor); in amd_pmf_cnqf_dump_defaults()
52 pr_debug("fppt_%s: %u mW\n", state_as_str_cnqf(i), data->ps[i].fppt); in amd_pmf_cnqf_dump_defaults()
53 pr_debug("sppt_%s: %u mW\n", state_as_str_cnqf(i), data->ps[i].sppt); in amd_pmf_cnqf_dump_defaults()
54 pr_debug("sppt_apuonly_%s: %u mW\n", in amd_pmf_cnqf_dump_defaults()
56 pr_debug("spl_%s: %u mW\n", state_as_str_cnqf(i), data->ps[i].spl); in amd_pmf_cnqf_dump_defaults()
57 pr_debug("stt_minlimit_%s: %u mW\n", in amd_pmf_cnqf_dump_defaults()
181 dev_dbg(dev->dev, "avg_power: %u mW total_power: %u mW count: %u timer: %u ms\n", in amd_pmf_trans_cnqf()
203 dev_dbg(dev->dev, "[CNQF] Avg power: %u mW socket power: %u mW mode:%s\n", in amd_pmf_trans_cnqf()
/linux/Documentation/power/powercap/
H A Ddtpm.rst56 SoC (400mW - 3100mW)
58 `-- pkg (400mW - 3100mW)
60 |-- pd0 (100mW - 700mW)
62 `-- pd1 (300mW - 2400mW)
66 SoC (600mW - 5900mW)
68 |-- pkg (400mW - 3100mW)
70 | |-- pd0 (100mW - 700mW)
72 | `-- pd1 (300mW - 2400mW)
74 `-- pd2 (200mW - 2800mW)
90 …dren given their weights. For example, if we set a power limitation of 3200mW at the 'SoC' root no…
[all …]
/linux/net/netfilter/ipvs/
H A Dip_vs_wrr.c28 * - mw: maximum weight
31 * As result, all weights are in the [di..mw] range with a step=di.
33 * First, we start with cw = mw and select dests with weight >= cw.
35 * Last pass should be with cw = di. We have mw/di passes in total:
47 * So, we modify how mw is calculated, now it is reduced with (di - 1),
63 int mw; /* maximum weight */ member
119 mark->mw = ip_vs_wrr_max_weight(svc) - (mark->di - 1); in ip_vs_wrr_init_svc()
120 mark->cw = mark->mw; in ip_vs_wrr_init_svc()
146 mark->mw = ip_vs_wrr_max_weight(svc) - (mark->di - 1); in ip_vs_wrr_dest_changed()
147 if (mark->cw > mark->mw || !mark->cw) in ip_vs_wrr_dest_changed()
[all …]
/linux/drivers/ntb/
H A Dntb_transport.c623 struct ntb_transport_mw *mw; in ntb_transport_setup_qp_mw() local
635 mw = &nt->mw_vec[mw_num]; in ntb_transport_setup_qp_mw()
637 if (!mw->virt_addr) in ntb_transport_setup_qp_mw()
645 rx_size = (unsigned int)mw->xlat_size / num_qps_mw; in ntb_transport_setup_qp_mw()
646 qp->rx_buff = mw->virt_addr + rx_size * (qp_num / mw_count); in ntb_transport_setup_qp_mw()
799 struct ntb_transport_mw *mw = &nt->mw_vec[num_mw]; in ntb_free_mw() local
802 if (!mw->virt_addr) in ntb_free_mw()
806 dma_free_coherent(&pdev->dev, mw->alloc_size, in ntb_free_mw()
807 mw->alloc_addr, mw->dma_addr); in ntb_free_mw()
808 mw->xlat_size = 0; in ntb_free_mw()
[all …]
/linux/fs/ocfs2/
H A Ddlmglue.c435 struct ocfs2_mask_waiter *mw, int ret) in ocfs2_update_lock_stats() argument
448 kt = ktime_sub(ktime_get(), mw->mw_lock_start); in ocfs2_update_lock_stats()
475 struct ocfs2_mask_waiter *mw; in ocfs2_track_lock_wait() local
482 mw = list_first_entry(&lockres->l_mask_waiters, in ocfs2_track_lock_wait()
485 ktime_to_us(ktime_mono_to_real(mw->mw_lock_start)); in ocfs2_track_lock_wait()
488 static inline void ocfs2_init_start_time(struct ocfs2_mask_waiter *mw) in ocfs2_init_start_time() argument
490 mw->mw_lock_start = ktime_get(); in ocfs2_init_start_time()
497 int level, struct ocfs2_mask_waiter *mw, int ret) in ocfs2_update_lock_stats() argument
506 static inline void ocfs2_init_start_time(struct ocfs2_mask_waiter *mw) in ocfs2_init_start_time() argument
892 struct ocfs2_mask_waiter *mw, *tmp; in lockres_set_flags() local
[all …]
/linux/include/uapi/linux/
H A Dpsp-dbc.h121 * @PARAM_GET_PWR_CAP: Get socket power cap (mW)
122 * @PARAM_SET_PWR_CAP: Set socket power cap (mW)
128 * @PARAM_GET_SOC_PWR_MAX: Get maximum allowed value for SoC power (mw)
129 * @PARAM_GET_SOC_PWR_MIN: Get minimum allowed value for SoC power (mw)
130 * @PARAM_GET_SOC_PWR_CUR: Get current value for SoC Power (mW)
/linux/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/
H A Dsmu13_driver_if_yellow_carp.h171 uint16_t Power[2]; //[mW] indices: VDDCR_VDD, VDDCR_SOC
175 uint16_t CorePower[8]; //[mW]
184 uint16_t CurrentSocketPower; //[mW]
187 uint32_t ApuPower; //[mW]
188 uint32_t dGpuPower; //[mW]
H A Dsmu11_driver_if_vangogh.h180 uint16_t Power[3]; //[mW] indices: VDDCR_VDD, VDDCR_SOC, VDDCR_GFX
181 uint16_t CurrentSocketPower; //[mW]
185 uint16_t CorePower[8]; //[mW]
210 uint16_t Power[3]; //[mW] indices: VDDCR_VDD, VDDCR_SOC, VDDCR_GFX
211 uint16_t CurrentSocketPower; //[mW]
215 uint16_t CorePower[4]; //[mW]
H A Dsmu13_driver_if_v13_0_4.h171 uint16_t Power[2]; //[mW] indices: VDDCR_VDD, VDDCR_SOC
175 uint16_t CorePower[8]; //[mW]
184 uint16_t CurrentSocketPower; //[mW]
187 uint32_t ApuPower; //[mW]
188 uint32_t dGpuPower; //[mW]
H A Dsmu11_driver_if_cyan_skillfish.h42 uint32_t CorePower[6]; //[mW]
61 uint32_t Power[2]; //[mW] indices: VDDCR_VDD, VDDCR_GFX
62 uint32_t CurrentSocketPower; //[mW]
H A Dsmu13_driver_if_v13_0_5.h99 uint16_t Power[2]; //[mW] indices: VDDCR_VDD, VDDCR_SOC
105 uint16_t CurrentSocketPower; //[mW]
/linux/Documentation/hwmon/
H A Dltc4245.rst86 power1_input 12v power usage (mW)
87 power2_input 5v power usage (mW)
88 power3_input 3v power usage (mW)
89 power4_input Vee (-12v) power usage (mW)
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dcn20k.c28 struct mbox *mw = &pf->mbox; in cn20k_pfaf_mbox_intr_handler() local
40 mbox = &mw->mbox_up; in cn20k_pfaf_mbox_intr_handler()
46 queue_work(pf->mbox_wq, &mw->mbox_up_wrk); in cn20k_pfaf_mbox_intr_handler()
53 mbox = &mw->mbox; in cn20k_pfaf_mbox_intr_handler()
59 queue_work(pf->mbox_wq, &mw->mbox_wrk); in cn20k_pfaf_mbox_intr_handler()
/linux/arch/mips/txx9/generic/
H A Dmem_tx4927.c46 unsigned int mw = 0; in tx4927_process_sdccr() local
61 mw = 8 >> sdccr_mw; in tx4927_process_sdccr()
64 return rs * cs * mw * bs; in tx4927_process_sdccr()
/linux/include/linux/pse-pd/
H A Dpse.h17 /* Maximum power in mW according to IEEE 802.3-2022 Table 145-16 */
130 * @c33_actual_pw: power currently delivered by the PSE in mW
133 * @c33_avail_pw_limit: available power limit of the PSE in mW
175 * @pi_get_actual_pw: Get actual power of the PSE PI in mW.
180 * @pi_get_pw_limit: Get the configured power limit of the PSE PI in mW.
181 * @pi_set_pw_limit: Configure the power limit of the PSE PI in mW.
/linux/Documentation/driver-api/
H A Dntb.rst52 | (addr) |<======| MW xlat addr |<====| MW base addr |<== memory-mapped IO
68 | dma-mapped | | | MW base addr |<== memory-mapped IO
70 | (addr) |<===================| MW xlat addr |<-ntb_peer_mw_set_trans(addr)
246 starts from the first mw idx, and a negative value starts from the last
247 mw idx. Both sides MUST set the same value here! The default value is
/linux/tools/testing/selftests/ntb/
H A Dntb_test.sh335 echo "MW $IDX size aligned to $MW_ALIGNED_SIZE"
357 write_mw "$LOC/mw$IDX"
359 split_remote "$LOC/mw$IDX"
377 echo "Memory window $MW did not match!" >&2
408 echo "Running mw$i tests on: $(subdirname $LOC) / " \
/linux/Documentation/driver-api/thermal/
H A Dpower_allocator.rst63 An estimate of the sustainable dissipatable power (in mW) should be
73 is typically 2000mW, while on a 10" tablet is around 4500mW (may vary
238 most @power mW and store it in @state. It should return 0 on success,
H A Dcpu-cooling-api.rst89 mW/MHz/uVolt^2)
104 mW/MHz/uVolt^2. Typical values for mobile CPUs might lie in range
/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/
H A Ddcn31_smu.h180 uint16_t Power[2]; //[mW] indices: VDDCR_VDD, VDDCR_SOC
184 uint16_t CorePower[8]; //[mW]
193 uint16_t CurrentSocketPower; //[mW]
/linux/drivers/pci/endpoint/functions/
H A Dpci-epf-vntb.c184 * @mw: Index of the memory window (either 0, 1, 2 or 3)
204 static int epf_ntb_configure_mw(struct epf_ntb *ntb, u32 mw) in epf_ntb_configure_mw() argument
211 phys_addr = ntb->vpci_mw_phy[mw]; in epf_ntb_configure_mw()
221 "Failed to map memory window %d address\n", mw); in epf_ntb_configure_mw()
228 * @mw: Index of the memory window (either 0, 1, 2 or 3)
233 static void epf_ntb_teardown_mw(struct epf_ntb *ntb, u32 mw) in epf_ntb_teardown_mw() argument
238 ntb->vpci_mw_phy[mw]); in epf_ntb_teardown_mw()
596 dev_err(dev, "MW set failed\n"); in epf_ntb_mw_bar_init()
751 dev_dbg(dev, "BAR not available for > MW%d\n", i + 1); in epf_ntb_init_epc_bar()
802 dev_err(dev, "MW BAR init failed\n"); in epf_ntb_epc_init()
[all …]
/linux/drivers/net/pse-pd/
H A Dpse_core.c542 * @pw_req: power requested in mW
582 * @pw_req: power requested in mW
749 int id, uV, mW, ret; in pse_pi_get_current_limit() local
761 mW = ret; in pse_pi_get_current_limit()
773 tmp_64 = mW; in pse_pi_get_current_limit()
775 /* uA = mW * 1000000000 / uV */ in pse_pi_get_current_limit()
788 int id, mW, ret; in pse_pi_set_current_limit() local
811 /* mW = uA * uV / 1000000000 */ in pse_pi_set_current_limit()
812 mW = DIV_ROUND_CLOSEST_ULL(tmp_64, 1000000000); in pse_pi_set_current_limit()
813 ret = ops->pi_set_pw_limit(pcdev, id, mW); in pse_pi_set_current_limit()
[all …]

12345