Home
last modified time | relevance | path

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

1234567

/kernel/linux/linux-5.10/net/netfilter/ipvs/
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 …]
/kernel/linux/linux-5.10/drivers/ntb/
Dntb_transport.c619 struct ntb_transport_mw *mw; in ntb_transport_setup_qp_mw() local
631 mw = &nt->mw_vec[mw_num]; in ntb_transport_setup_qp_mw()
633 if (!mw->virt_addr) in ntb_transport_setup_qp_mw()
641 rx_size = (unsigned int)mw->xlat_size / num_qps_mw; in ntb_transport_setup_qp_mw()
642 qp->rx_buff = mw->virt_addr + rx_size * (qp_num / mw_count); in ntb_transport_setup_qp_mw()
795 struct ntb_transport_mw *mw = &nt->mw_vec[num_mw]; in ntb_free_mw() local
798 if (!mw->virt_addr) in ntb_free_mw()
802 dma_free_coherent(&pdev->dev, mw->alloc_size, in ntb_free_mw()
803 mw->alloc_addr, mw->dma_addr); in ntb_free_mw()
804 mw->xlat_size = 0; in ntb_free_mw()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/
Dhns_roce_mr.c524 struct hns_roce_mw *mw) in hns_roce_mw_free() argument
529 if (mw->enabled) { in hns_roce_mw_free()
531 key_to_hw_index(mw->rkey) & in hns_roce_mw_free()
534 dev_warn(dev, "MW DESTROY_MPT failed (%d)\n", ret); in hns_roce_mw_free()
537 key_to_hw_index(mw->rkey)); in hns_roce_mw_free()
541 key_to_hw_index(mw->rkey), BITMAP_NO_RR); in hns_roce_mw_free()
545 struct hns_roce_mw *mw) in hns_roce_mw_enable() argument
550 unsigned long mtpt_idx = key_to_hw_index(mw->rkey); in hns_roce_mw_enable()
564 ret = hr_dev->hw->mw_write_mtpt(mailbox->buf, mw); in hns_roce_mw_enable()
566 dev_err(dev, "MW write mtpt fail!\n"); in hns_roce_mw_enable()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Dmr.c815 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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/af/
Drvu.c36 static int rvu_mbox_init(struct rvu *rvu, struct mbox_wq_info *mw,
1584 struct mbox_wq_info *mw; in __rvu_mbox_handler() local
1589 mw = &rvu->afpf_wq_info; in __rvu_mbox_handler()
1592 mw = &rvu->afvf_wq_info; in __rvu_mbox_handler()
1598 devid = mwork - mw->mbox_wrk; in __rvu_mbox_handler()
1599 mbox = &mw->mbox; in __rvu_mbox_handler()
1604 if (mw->mbox_wrk[devid].num_msgs == 0) in __rvu_mbox_handler()
1609 for (id = 0; id < mw->mbox_wrk[devid].num_msgs; id++) { in __rvu_mbox_handler()
1642 mw->mbox_wrk[devid].num_msgs = 0; in __rvu_mbox_handler()
1668 struct mbox_wq_info *mw; in __rvu_mbox_up_handler() local
[all …]
/kernel/linux/linux-5.10/drivers/clk/rockchip/
Dclk.h425 #define COMPOSITE(_id, cname, pnames, f, mo, ms, mw, mf, ds, dw,\ argument
436 .mux_width = mw, \
446 #define COMPOSITE_DIV_OFFSET(_id, cname, pnames, f, mo, ms, mw, \ argument
457 .mux_width = mw, \
505 #define COMPOSITE_NODIV(_id, cname, pnames, f, mo, ms, mw, mf, \ argument
516 .mux_width = mw, \
523 #define COMPOSITE_NOGATE(_id, cname, pnames, f, mo, ms, mw, mf, \ argument
534 .mux_width = mw, \
543 mw, mf, ds, dw, df, dt) \ argument
553 .mux_width = mw, \
[all …]
/kernel/linux/linux-5.10/fs/ocfs2/
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 …]
/kernel/linux/linux-5.10/include/linux/usb/
Dpd.h244 #define PDO_BATT_MAX_PWR_SHIFT 0 /* 250mW units */
248 #define PDO_BATT_MAX_POWER(mw) ((((mw) / 250) & PDO_PWR_MASK) << PDO_BATT_MAX_PWR_SHIFT) argument
370 #define RDO_BATT_OP_PWR_SHIFT 10 /* 250mW units */
371 #define RDO_BATT_MAX_PWR_SHIFT 0 /* 250mW units */
373 #define RDO_BATT_OP_PWR(mw) ((((mw) / 250) & RDO_PWR_MASK) << RDO_BATT_OP_PWR_SHIFT) argument
374 #define RDO_BATT_MAX_PWR(mw) ((((mw) / 250) & RDO_PWR_MASK) << RDO_BATT_MAX_PWR_SHIFT) argument
/kernel/linux/linux-5.10/Documentation/hwmon/
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)
/kernel/linux/linux-5.10/include/linux/
Ddevfreq_cooling.h20 * in mW. If NULL, the static power is assumed
23 * return the dynamic power draw in mW. If NULL,
26 * mW/(MHz mV mV).
/kernel/linux/linux-5.10/arch/mips/txx9/generic/
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()
/kernel/linux/linux-5.10/include/dt-bindings/usb/
Dpd.h40 #define PDO_BATT_MAX_PWR_SHIFT 0 /* 250mW units */
44 #define PDO_BATT_MAX_POWER(mw) ((((mw) / 250) & PDO_PWR_MASK) << PDO_BATT_MAX_PWR_SHIFT) argument
/kernel/linux/linux-5.10/Documentation/driver-api/
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
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/
Disp2400_input_system_global.h83 /* MW: uint16_t should be sufficient */
98 /* MW: tpg & prbs are exclusive */
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/
Dmr.c617 struct mlx4_ib_mw *mw = to_mmw(ibmw); in mlx4_ib_alloc_mw() local
621 to_mlx4_type(ibmw->type), &mw->mmw); in mlx4_ib_alloc_mw()
625 err = mlx4_mw_enable(dev->dev, &mw->mmw); in mlx4_ib_alloc_mw()
629 ibmw->rkey = mw->mmw.key; in mlx4_ib_alloc_mw()
633 mlx4_mw_free(dev->dev, &mw->mmw); in mlx4_ib_alloc_mw()
639 struct mlx4_ib_mw *mw = to_mmw(ibmw); in mlx4_ib_dealloc_mw() local
641 mlx4_mw_free(to_mdev(ibmw->device)->dev, &mw->mmw); in mlx4_ib_dealloc_mw()
/kernel/linux/linux-5.10/Documentation/driver-api/thermal/
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
236 most @power mW and store it in @state. It should return 0 on success,
Dcpu-cooling-api.rst89 mW/MHz/uVolt^2)
104 mW/MHz/uVolt^2. Typical values for mobile CPUs might lie in range
/kernel/linux/linux-5.10/tools/testing/selftests/ntb/
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) / " \
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/mwifiex/
Dcfp.c27 /* 100mW */
29 /* 100mW */
31 /* 50mW */
33 /* 100mW */
35 /* 10mW */
37 /* 100mW */
/kernel/linux/linux-5.10/drivers/infiniband/hw/bnxt_re/
Dib_verbs.c405 fence->bind_rkey = ib_inc_rkey(fence->mw->rkey); in bnxt_re_create_fence_wqe()
443 if (fence->mw) { in bnxt_re_destroy_fence_mr()
444 bnxt_re_dealloc_mw(fence->mw); in bnxt_re_destroy_fence_mr()
445 fence->mw = NULL; in bnxt_re_destroy_fence_mr()
471 struct ib_mw *mw; in bnxt_re_create_fence_mr() local
516 /* Create a fence MW only for kernel consumers */ in bnxt_re_create_fence_mr()
517 mw = bnxt_re_alloc_mw(&pd->ib_pd, IB_MW_TYPE_1, NULL); in bnxt_re_create_fence_mr()
518 if (IS_ERR(mw)) { in bnxt_re_create_fence_mr()
520 "Failed to create fence-MW for PD: %p\n", pd); in bnxt_re_create_fence_mr()
521 rc = PTR_ERR(mw); in bnxt_re_create_fence_mr()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/
Drxe_verbs.h431 static inline struct rxe_mem *to_rmw(struct ib_mw *mw) in to_rmw() argument
433 return mw ? container_of(mw, struct rxe_mem, ibmw) : NULL; in to_rmw()
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/runtime/isys/src/
Drx.c172 /* MW: Why do we remap the receiver bitmap */ in ia_css_isys_rx_clear_irq_info()
260 * MW: For some reason the mapping is not 1-to-1 in ia_css_isys_convert_stream_format_to_mipi_format()
521 /* MW: A bit of a hack, straight wiring of the capture in ia_css_isys_rx_configure()
528 /* MW: Like the integration test example we overwite, in ia_css_isys_rx_configure()
/kernel/linux/linux-5.10/drivers/mtd/maps/
Dphysmap-core.c154 map_word mw; in physmap_addr_gpios_read() local
162 mw.x[0] = word; in physmap_addr_gpios_read()
163 return mw; in physmap_addr_gpios_read()
188 static void physmap_addr_gpios_write(struct map_info *map, map_word mw, in physmap_addr_gpios_write() argument
199 word = mw.x[0]; in physmap_addr_gpios_write()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/inc/
Dsmu12_driver_if.h184 uint16_t Power[2]; //[mW] indices: VDDCR_VDD, VDDCR_SOC
190 uint16_t CorePower[8]; //[mW]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/thermal/
Dthermal-zones.yaml102 An estimate of the sustainable power (in mW) that this thermal zone
104 sustainable power of a 4-inch phone is typically 2000mW, while on a
105 10-inch tablet is around 4500mW.

1234567