Home
last modified time | relevance | path

Searched refs:mw (Results 1 – 21 of 21) sorted by relevance

/linux/net/netfilter/ipvs/
H A Dip_vs_wrr.c27 * - mw: maximum weight
30 * As result, all weights are in the [di..mw] range with a step=di.
32 * First, we start with cw = mw and select dests with weight >= cw.
34 * Last pass should be with cw = di. We have mw/di passes in total:
46 * So, we modify how mw is calculated, now it is reduced with (di - 1),
62 int mw; /* maximum weight */ member
118 mark->mw = ip_vs_wrr_max_weight(svc) - (mark->di - 1); in ip_vs_wrr_init_svc()
119 mark->cw = mark->mw; in ip_vs_wrr_init_svc()
145 mark->mw = ip_vs_wrr_max_weight(svc) - (mark->di - 1); in ip_vs_wrr_dest_changed()
146 if (mark->cw > mark->mw || !mar in ip_vs_wrr_dest_changed()
[all...]
H A Dip_vs_mh.c345 int mw, shift; in ip_vs_mh_shift_weight() local
363 mw = weight / gcd; in ip_vs_mh_shift_weight()
366 shift = fls(mw) - IP_VS_MH_TAB_BITS; in ip_vs_mh_shift_weight()
/linux/drivers/ntb/
H A Dntb_transport.c586 struct ntb_transport_mw *mw; in ntb_transport_setup_qp_mw() local
598 mw = &nt->mw_vec[mw_num]; in ntb_transport_setup_qp_mw()
600 if (!mw->virt_addr) in ntb_transport_setup_qp_mw()
608 rx_size = (unsigned int)mw->xlat_size / num_qps_mw; in ntb_transport_setup_qp_mw()
609 qp->rx_buff = mw->virt_addr + rx_size * (qp_num / mw_count); in ntb_transport_setup_qp_mw()
762 struct ntb_transport_mw *mw = &nt->mw_vec[num_mw]; in ntb_free_mw() local
765 if (!mw->virt_addr) in ntb_free_mw()
769 dma_free_attrs(dma_dev, mw->alloc_size, mw->alloc_addr, in ntb_free_mw()
770 mw->original_dma_addr, DMA_ATTR_FORCE_CONTIGUOUS); in ntb_free_mw()
771 mw->xlat_size = 0; in ntb_free_mw()
[all …]
/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/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu.c36 static int rvu_mbox_init(struct rvu *rvu, struct mbox_wq_info *mw,
2310 struct mbox_wq_info *mw; in __rvu_mbox_handler()
2315 mw = &rvu->afpf_wq_info; in __rvu_mbox_handler()
2318 mw = &rvu->afvf_wq_info; in __rvu_mbox_handler()
2324 devid = mwork - mw->mbox_wrk; in __rvu_mbox_handler()
2325 mbox = &mw->mbox; in __rvu_mbox_handler()
2330 if (mw->mbox_wrk[devid].num_msgs == 0) in __rvu_mbox_handler()
2337 req_hdr->opt_msg = mw->mbox_wrk[devid].num_msgs; in __rvu_mbox_handler()
2352 for (id = 0; id < mw->mbox_wrk[devid].num_msgs; id++) { in __rvu_mbox_handler()
2385 mw in __rvu_mbox_handler()
2314 struct mbox_wq_info *mw; __rvu_mbox_handler() local
2421 struct mbox_wq_info *mw; __rvu_mbox_up_handler() local
2570 rvu_mbox_init(struct rvu * rvu,struct mbox_wq_info * mw,int type,int num,void (mbox_handler)(struct work_struct *),void (mbox_up_handler)(struct work_struct *)) rvu_mbox_init() argument
2718 rvu_mbox_destroy(struct mbox_wq_info * mw) rvu_mbox_destroy() argument
2739 rvu_queue_work(struct mbox_wq_info * mw,int first,int mdevs,u64 intr) rvu_queue_work() argument
[all...]
H A Drvu.h480 void (*rvu_queue_work_hdlr)(struct mbox_wq_info *mw, int first,
482 void (*afvf_queue_work_hdlr)(struct mbox_wq_info *mw, int first,
990 void rvu_queue_work(struct mbox_wq_info *mw, int first,
/linux/drivers/clk/rockchip/
H A Dclk.h845 #define COMPOSITE(_id, cname, pnames, f, mo, ms, mw, mf, ds, dw,\ argument
856 .mux_width = mw, \
866 #define COMPOSITE_DIV_OFFSET(_id, cname, pnames, f, mo, ms, mw, \ argument
877 .mux_width = mw, \
925 #define COMPOSITE_NODIV(_id, cname, pnames, f, mo, ms, mw, mf, \ argument
936 .mux_width = mw, \
943 #define COMPOSITE_NOGATE(_id, cname, pnames, f, mo, ms, mw, mf, \ argument
954 .mux_width = mw, \
963 mw, mf, ds, dw, df, dt) \ argument
973 .mux_width = mw, \
[all …]
/linux/drivers/pci/endpoint/functions/
H A Dpci-epf-ntb.c180 * @mw: Index of the memory window (either 0, 1, 2 or 3)
236 enum pci_epc_interface_type type, u32 mw) in epf_ntb_configure_mw() argument
252 peer_barno = peer_ntb_epc->epf_ntb_bar[mw + NTB_MW_OFFSET]; in epf_ntb_configure_mw()
259 if (mw + NTB_MW_OFFSET == BAR_DB_MW1) in epf_ntb_configure_mw()
262 if (size > ntb->mws_size[mw]) { in epf_ntb_configure_mw()
265 pci_epc_interface_string(type), mw, size, in epf_ntb_configure_mw()
266 ntb->mws_size[mw]); in epf_ntb_configure_mw()
278 pci_epc_interface_string(type), mw); in epf_ntb_configure_mw()
289 * @mw: Index of the memory window (either 0, 1, 2 or 3)
295 enum pci_epc_interface_type type, u32 mw) in epf_ntb_teardown_mw() argument
[all...]
H A Dpci-epf-vntb.c251 * @mw: Index of the memory window (either 0, 1, 2 or 3)
271 static int epf_ntb_configure_mw(struct epf_ntb *ntb, u32 mw)
278 phys_addr = ntb->vpci_mw_phy[mw]; in epf_ntb_cmd_handler()
288 "Failed to map memory window %d address\n", mw); in epf_ntb_cmd_handler()
295 * @mw: Index of the memory window (either 0, 1, 2 or 3) in epf_ntb_cmd_handler()
300 static void epf_ntb_teardown_mw(struct epf_ntb *ntb, u32 mw) in epf_ntb_cmd_handler()
305 ntb->vpci_mw_phy[mw]); in epf_ntb_cmd_handler()
1143 if (sscanf(#_name, "mw%d", &win_no) != 1) \
1174 if (sscanf(#_name, "mw%d", &win_no) != 1) \ in epf_ntb_db_count_store()
1514 dev_err(dev, "failure set mw tran in vntb_epf_peer_db_work()
226 epf_ntb_configure_mw(struct epf_ntb * ntb,u32 mw) epf_ntb_configure_mw() argument
255 epf_ntb_teardown_mw(struct epf_ntb * ntb,u32 mw) epf_ntb_teardown_mw() argument
[all...]
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dcn20k.c17 struct mbox *mw = &pf->mbox; in cn20k_pfaf_mbox_intr_handler() local
29 mbox = &mw->mbox_up; in cn20k_pfaf_mbox_intr_handler()
35 queue_work(pf->mbox_wq, &mw->mbox_up_wrk); in cn20k_pfaf_mbox_intr_handler()
42 mbox = &mw->mbox; in cn20k_pfaf_mbox_intr_handler()
48 queue_work(pf->mbox_wq, &mw->mbox_wrk); in cn20k_pfaf_mbox_intr_handler()
H A Dotx2_pf.c298 void otx2_queue_vf_work(struct mbox *mw, struct workqueue_struct *mbox_wq,
311 mbox = &mw->mbox; in otx2_queue_vf_work()
316 * when the interrupt handler is called. pf->mw[i].num_msgs in otx2_queue_vf_work()
318 * pf->mw[i].up_num_msgs holds the data for use in in otx2_queue_vf_work()
322 mw[i].num_msgs = hdr->num_msgs; in otx2_queue_vf_work()
324 queue_work(mbox_wq, &mw[i].mbox_wrk); in otx2_queue_vf_work()
327 mbox = &mw->mbox_up; in otx2_queue_vf_work()
331 mw[i].up_num_msgs = hdr->num_msgs; in otx2_queue_vf_work()
333 queue_work(mbox_wq, &mw[i].mbox_up_wrk); in otx2_queue_vf_work()
1046 struct mbox *mw in otx2_pfaf_mbox_intr_handler()
299 otx2_queue_vf_work(struct mbox * mw,struct workqueue_struct * mbox_wq,int first,int mdevs,u64 intr) otx2_queue_vf_work() argument
1047 struct mbox *mw = &pf->mbox; otx2_pfaf_mbox_intr_handler() local
[all...]
H A Dotx2_common.h477 void (*pf_queue_work_hdlr)(struct mbox *mb, struct workqueue_struct *mw,
1258 void otx2_queue_vf_work(struct mbox *mw, struct workqueue_struct *mbox_wq,
/linux/drivers/infiniband/core/
H A Duverbs_main.c95 int uverbs_dealloc_mw(struct ib_mw *mw) in uverbs_dealloc_mw() argument
97 struct ib_pd *pd = mw->pd; in uverbs_dealloc_mw()
100 ret = mw->device->ops.dealloc_mw(mw); in uverbs_dealloc_mw()
105 kfree(mw); in uverbs_dealloc_mw()
/linux/include/uapi/rdma/
H A Drdma_user_rxe.h120 } mw; member
/linux/drivers/gpu/drm/amd/pm/swsmu/smu15/
H A Dsmu_v15_0_0_ppt.c438 uint32_t mw; smu_v15_0_0_compute_all_metrics() local
/linux/drivers/ntb/test/
H A Dntb_tool.c227 struct tool_mw *mw; member
601 snprintf(buf, sizeof(buf), "mw%d", widx); in tool_setup_mw()
868 struct tool_mw *outmw = outmw_wrap->mw; in tool_peer_mw_trans_read()
926 struct tool_mw *outmw = outmw_wrap->mw; in tool_peer_mw_trans_write()
999 tc->peers[pidx].outmws[widx].mw = &tc->outmws[widx]; in tool_init_mws()
/linux/include/linux/mlx4/
H A Ddevice.h1130 struct mlx4_mw *mw);
1131 void mlx4_mw_free(struct mlx4_dev *dev, struct mlx4_mw *mw);
1132 int mlx4_mw_enable(struct mlx4_dev *dev, struct mlx4_mw *mw);
/linux/Documentation/driver-api/
H A Dntb.rst246 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/drivers/usb/typec/tcpm/
H A Dtcpm.c4705 unsigned int mv, ma, mw, flags; in tcpm_pd_build_request()
4736 mw = min_power(pdo, matching_snk_pdo); in tcpm_pd_build_request()
4737 ma = 1000 * mw / mv; in tcpm_pd_build_request()
4740 mw = ma * mv / 1000; in tcpm_pd_build_request()
4747 max_mw = mw; in tcpm_pd_build_request()
4748 if (mw < port->operating_snk_mw) { in tcpm_pd_build_request()
4764 *rdo = RDO_BATT(src_pdo_index + 1, mw, max_mw, flags); in tcpm_pd_send_request()
4767 src_pdo_index, mv, mw, in tcpm_pd_send_request()
4684 unsigned int mv, ma, mw, flags; tcpm_pd_build_request() local
/linux/drivers/infiniband/hw/ocrdma/
H A Docrdma_sli.h1951 u32 mw; member
/linux/Documentation/filesystems/
H A Dproc.rst476 VmFlags: rd ex mr mw me dw
583 mw may write