Home
last modified time | relevance | path

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

/linux/net/netfilter/ipvs/
H A Dip_vs_wrr.c62 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 || !mark->cw) in ip_vs_wrr_dest_changed()
147 mark->cw = mark->mw; in ip_vs_wrr_dest_changed()
171 if (mark->mw == 0) in ip_vs_wrr_schedule()
187 mark->cw = mark->mw; in ip_vs_wrr_schedule()
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/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/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.c236 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()
295 enum pci_epc_interface_type type, u32 mw) in epf_ntb_teardown_mw() argument
309 peer_barno = peer_ntb_epc->epf_ntb_bar[mw + NTB_MW_OFFSET]; in epf_ntb_teardown_mw()
314 if (mw + NTB_MW_OFFSET == BAR_DB_MW1) in epf_ntb_teardown_mw()
H A Dpci-epf-vntb.c226 static int epf_ntb_configure_mw(struct epf_ntb *ntb, u32 mw) in epf_ntb_configure_mw() argument
233 phys_addr = ntb->vpci_mw_phy[mw]; in epf_ntb_configure_mw()
243 "Failed to map memory window %d address\n", mw); in epf_ntb_configure_mw()
255 static void epf_ntb_teardown_mw(struct epf_ntb *ntb, u32 mw) in epf_ntb_teardown_mw() argument
260 ntb->vpci_mw_phy[mw]); in epf_ntb_teardown_mw()
/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.c299 void otx2_queue_vf_work(struct mbox *mw, struct workqueue_struct *mbox_wq, in otx2_queue_vf_work() argument
312 mbox = &mw->mbox; in otx2_queue_vf_work()
323 mw[i].num_msgs = hdr->num_msgs; in otx2_queue_vf_work()
325 queue_work(mbox_wq, &mw[i].mbox_wrk); in otx2_queue_vf_work()
328 mbox = &mw->mbox_up; in otx2_queue_vf_work()
332 mw[i].up_num_msgs = hdr->num_msgs; in otx2_queue_vf_work()
334 queue_work(mbox_wq, &mw[i].mbox_up_wrk); in otx2_queue_vf_work()
1047 struct mbox *mw = &pf->mbox; in otx2_pfaf_mbox_intr_handler() local
1062 mbox = &mw->mbox_up; in otx2_pfaf_mbox_intr_handler()
1068 queue_work(pf->mbox_wq, &mw->mbox_up_wrk); in otx2_pfaf_mbox_intr_handler()
[all …]
/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; in smu_v15_0_0_compute_all_metrics() local
478 mw = div_u64(div64_u64(val, counter) * 1000, 1024); in smu_v15_0_0_compute_all_metrics()
479 avg_metric[METRICS_AVERAGE_SOCKETPOWER] = mw; in smu_v15_0_0_compute_all_metrics()
482 mw = div_u64(div64_u64(val, counter) * 1000, 1024); in smu_v15_0_0_compute_all_metrics()
483 avg_metric[METRICS_CURR_SOCKETPOWER] = mw; in smu_v15_0_0_compute_all_metrics()
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu.h482 void (*rvu_queue_work_hdlr)(struct mbox_wq_info *mw, int first,
484 void (*afvf_queue_work_hdlr)(struct mbox_wq_info *mw, int first,
995 void rvu_queue_work(struct mbox_wq_info *mw, int first,
/linux/drivers/ntb/test/
H A Dntb_tool.c227 struct tool_mw *mw; member
869 struct tool_mw *outmw = outmw_wrap->mw; in tool_peer_mw_trans_read()
927 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/infiniband/hw/ocrdma/
H A Docrdma_sli.h1951 u32 mw; member