/Linux-v6.1/drivers/infiniband/sw/rxe/ |
D | rxe_mw.c | 18 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) in rxe_check_bind_mw() argument 53 if (mw->ibmw.type == IB_MW_TYPE_1) { in rxe_check_bind_mw() [all …]
|
D | rxe_resp.c | 409 struct rxe_mw *mw = NULL; in check_rkey() local 451 mw = rxe_lookup_mw(qp, access, rkey); in check_rkey() 452 if (!mw) { in check_rkey() 453 pr_debug("%s: no MW matches rkey %#x\n", in check_rkey() 459 mr = mw->mr; in check_rkey() 461 pr_err("%s: MW doesn't have an MR\n", __func__); in check_rkey() 466 if (mw->access & IB_ZERO_BASED) in check_rkey() 467 qp->resp.offset = mw->addr; in check_rkey() 469 rxe_put(mw); in check_rkey() 515 if (mw) in check_rkey() [all …]
|
D | rxe_verbs.h | 453 static inline struct rxe_mw *to_rmw(struct ib_mw *mw) in to_rmw() argument 455 return mw ? container_of(mw, struct rxe_mw, ibmw) : NULL; in to_rmw() 468 static inline struct rxe_pd *rxe_mw_pd(struct rxe_mw *mw) in rxe_mw_pd() argument 470 return to_rpd(mw->ibmw.pd); in rxe_mw_pd()
|
/Linux-v6.1/Documentation/power/powercap/ |
D | dtpm.rst | 56 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-v6.1/net/netfilter/ipvs/ |
D | ip_vs_wrr.c | 28 * - 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-v6.1/drivers/ntb/ |
D | ntb_transport.c | 617 struct ntb_transport_mw *mw; in ntb_transport_setup_qp_mw() local 629 mw = &nt->mw_vec[mw_num]; in ntb_transport_setup_qp_mw() 631 if (!mw->virt_addr) in ntb_transport_setup_qp_mw() 639 rx_size = (unsigned int)mw->xlat_size / num_qps_mw; in ntb_transport_setup_qp_mw() 640 qp->rx_buff = mw->virt_addr + rx_size * (qp_num / mw_count); in ntb_transport_setup_qp_mw() 793 struct ntb_transport_mw *mw = &nt->mw_vec[num_mw]; in ntb_free_mw() local 796 if (!mw->virt_addr) in ntb_free_mw() 800 dma_free_coherent(&pdev->dev, mw->alloc_size, in ntb_free_mw() 801 mw->alloc_addr, mw->dma_addr); in ntb_free_mw() 802 mw->xlat_size = 0; in ntb_free_mw() [all …]
|
/Linux-v6.1/drivers/infiniband/hw/hns/ |
D | hns_roce_mr.c | 459 struct hns_roce_mw *mw) in hns_roce_mw_free() argument 464 if (mw->enabled) { in hns_roce_mw_free() 466 key_to_hw_index(mw->rkey) & in hns_roce_mw_free() 469 dev_warn(dev, "MW DESTROY_MPT failed (%d)\n", ret); in hns_roce_mw_free() 472 key_to_hw_index(mw->rkey)); in hns_roce_mw_free() 476 (int)key_to_hw_index(mw->rkey)); in hns_roce_mw_free() 480 struct hns_roce_mw *mw) in hns_roce_mw_enable() argument 485 unsigned long mtpt_idx = key_to_hw_index(mw->rkey); in hns_roce_mw_enable() 499 ret = hr_dev->hw->mw_write_mtpt(mailbox->buf, mw); in hns_roce_mw_enable() 501 dev_err(dev, "MW write mtpt fail!\n"); in hns_roce_mw_enable() [all …]
|
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx4/ |
D | mr.c | 815 struct mlx4_mw *mw) in mlx4_mw_alloc() argument 829 mw->key = hw_index_to_key(index); in mlx4_mw_alloc() 830 mw->pd = pd; in mlx4_mw_alloc() 831 mw->type = type; in mlx4_mw_alloc() 832 mw->enabled = MLX4_MPT_DISABLED; in mlx4_mw_alloc() 838 int mlx4_mw_enable(struct mlx4_dev *dev, struct mlx4_mw *mw) in mlx4_mw_enable() argument 844 err = mlx4_mpt_alloc_icm(dev, key_to_hw_index(mw->key)); in mlx4_mw_enable() 858 mpt_entry->key = cpu_to_be32(key_to_hw_index(mw->key)); in mlx4_mw_enable() 859 mpt_entry->pd_flags = cpu_to_be32(mw->pd); in mlx4_mw_enable() 860 if (mw->type == MLX4_MW_TYPE_2) { in mlx4_mw_enable() [all …]
|
/Linux-v6.1/fs/ocfs2/ |
D | dlmglue.c | 434 struct ocfs2_mask_waiter *mw, int ret) in ocfs2_update_lock_stats() argument 447 kt = ktime_sub(ktime_get(), mw->mw_lock_start); in ocfs2_update_lock_stats() 474 struct ocfs2_mask_waiter *mw; in ocfs2_track_lock_wait() local 481 mw = list_first_entry(&lockres->l_mask_waiters, in ocfs2_track_lock_wait() 484 ktime_to_us(ktime_mono_to_real(mw->mw_lock_start)); in ocfs2_track_lock_wait() 487 static inline void ocfs2_init_start_time(struct ocfs2_mask_waiter *mw) in ocfs2_init_start_time() argument 489 mw->mw_lock_start = ktime_get(); in ocfs2_init_start_time() 496 int level, struct ocfs2_mask_waiter *mw, int ret) in ocfs2_update_lock_stats() argument 505 static inline void ocfs2_init_start_time(struct ocfs2_mask_waiter *mw) in ocfs2_init_start_time() argument 891 struct ocfs2_mask_waiter *mw, *tmp; in lockres_set_flags() local [all …]
|
/Linux-v6.1/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/ |
D | smu13_driver_if_yellow_carp.h | 171 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]
|
D | smu11_driver_if_vangogh.h | 180 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]
|
D | smu11_driver_if_cyan_skillfish.h | 42 uint32_t CorePower[6]; //[mW] 61 uint32_t Power[2]; //[mW] indices: VDDCR_VDD, VDDCR_GFX 62 uint32_t CurrentSocketPower; //[mW]
|
D | smu13_driver_if_v13_0_4.h | 171 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]
|
/Linux-v6.1/include/linux/usb/ |
D | pd.h | 245 #define PDO_BATT_MAX_PWR_SHIFT 0 /* 250mW units */ 249 #define PDO_BATT_MAX_POWER(mw) ((((mw) / 250) & PDO_PWR_MASK) << PDO_BATT_MAX_PWR_SHIFT) argument 371 #define RDO_BATT_OP_PWR_SHIFT 10 /* 250mW units */ 372 #define RDO_BATT_MAX_PWR_SHIFT 0 /* 250mW units */ 374 #define RDO_BATT_OP_PWR(mw) ((((mw) / 250) & RDO_PWR_MASK) << RDO_BATT_OP_PWR_SHIFT) argument 375 #define RDO_BATT_MAX_PWR(mw) ((((mw) / 250) & RDO_PWR_MASK) << RDO_BATT_MAX_PWR_SHIFT) argument 496 #define PD_P_SNK_STDBY_MW 2500 /* 2500 mW */
|
/Linux-v6.1/drivers/clk/rockchip/ |
D | clk.h | 482 #define COMPOSITE(_id, cname, pnames, f, mo, ms, mw, mf, ds, dw,\ argument 493 .mux_width = mw, \ 503 #define COMPOSITE_DIV_OFFSET(_id, cname, pnames, f, mo, ms, mw, \ argument 514 .mux_width = mw, \ 562 #define COMPOSITE_NODIV(_id, cname, pnames, f, mo, ms, mw, mf, \ argument 573 .mux_width = mw, \ 580 #define COMPOSITE_NOGATE(_id, cname, pnames, f, mo, ms, mw, mf, \ argument 591 .mux_width = mw, \ 600 mw, mf, ds, dw, df, dt) \ argument 610 .mux_width = mw, \ [all …]
|
/Linux-v6.1/Documentation/hwmon/ |
D | ltc4245.rst | 86 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-v6.1/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu.c | 33 static int rvu_mbox_init(struct rvu *rvu, struct mbox_wq_info *mw, 2116 struct mbox_wq_info *mw; in __rvu_mbox_handler() local 2121 mw = &rvu->afpf_wq_info; in __rvu_mbox_handler() 2124 mw = &rvu->afvf_wq_info; in __rvu_mbox_handler() 2130 devid = mwork - mw->mbox_wrk; in __rvu_mbox_handler() 2131 mbox = &mw->mbox; in __rvu_mbox_handler() 2136 if (mw->mbox_wrk[devid].num_msgs == 0) in __rvu_mbox_handler() 2141 for (id = 0; id < mw->mbox_wrk[devid].num_msgs; id++) { in __rvu_mbox_handler() 2174 mw->mbox_wrk[devid].num_msgs = 0; in __rvu_mbox_handler() 2200 struct mbox_wq_info *mw; in __rvu_mbox_up_handler() local [all …]
|
/Linux-v6.1/arch/mips/txx9/generic/ |
D | mem_tx4927.c | 46 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-v6.1/drivers/platform/x86/amd/pmf/ |
D | pmf.h | 101 u16 power[2];/* in mW */ 103 u16 core_power[8]; /* in mW */ 110 u16 current_socketpower; /* in mW */ 113 u32 apu_power; /* in mW */ 114 u32 dgpu_power; /* in mW */
|
/Linux-v6.1/Documentation/driver-api/ |
D | ntb.rst | 52 | (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-v6.1/drivers/pci/endpoint/functions/ |
D | pci-epf-vntb.c | 181 * @mw: Index of the memory window (either 0, 1, 2 or 3) 199 static int epf_ntb_configure_mw(struct epf_ntb *ntb, u32 mw) in epf_ntb_configure_mw() argument 206 phys_addr = ntb->vpci_mw_phy[mw]; in epf_ntb_configure_mw() 216 "Failed to map memory window %d address\n", mw); in epf_ntb_configure_mw() 223 * @mw: Index of the memory window (either 0, 1, 2 or 3) 228 static void epf_ntb_teardown_mw(struct epf_ntb *ntb, u32 mw) in epf_ntb_teardown_mw() argument 233 ntb->vpci_mw_phy[mw]); in epf_ntb_teardown_mw() 613 dev_err(dev, "MW set failed\n"); in epf_ntb_mw_bar_init() 709 dev_dbg(dev, "BAR not available for > MW%d\n", i + 1); in epf_ntb_init_epc_bar() 759 dev_err(dev, "MW BAR init failed\n"); in epf_ntb_epc_init() [all …]
|
/Linux-v6.1/drivers/infiniband/hw/mlx4/ |
D | mr.c | 616 struct mlx4_ib_mw *mw = to_mmw(ibmw); in mlx4_ib_alloc_mw() local 620 to_mlx4_type(ibmw->type), &mw->mmw); in mlx4_ib_alloc_mw() 624 err = mlx4_mw_enable(dev->dev, &mw->mmw); in mlx4_ib_alloc_mw() 628 ibmw->rkey = mw->mmw.key; in mlx4_ib_alloc_mw() 632 mlx4_mw_free(dev->dev, &mw->mmw); in mlx4_ib_alloc_mw() 638 struct mlx4_ib_mw *mw = to_mmw(ibmw); in mlx4_ib_dealloc_mw() local 640 mlx4_mw_free(to_mdev(ibmw->device)->dev, &mw->mmw); in mlx4_ib_dealloc_mw()
|
/Linux-v6.1/drivers/staging/media/atomisp/pci/ |
D | isp2400_input_system_global.h | 83 /* MW: uint16_t should be sufficient */ 98 /* MW: tpg & prbs are exclusive */
|
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/ |
D | dcn31_smu.h | 180 uint16_t Power[2]; //[mW] indices: VDDCR_VDD, VDDCR_SOC 184 uint16_t CorePower[8]; //[mW] 193 uint16_t CurrentSocketPower; //[mW]
|
/Linux-v6.1/Documentation/driver-api/thermal/ |
D | power_allocator.rst | 63 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,
|