| /linux/net/netfilter/ipvs/ |
| H A D | ip_vs_wrr.c | 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 || !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 D | ip_vs_mh.c | 345 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 D | ntb_transport.c | 586 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 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/drivers/net/ethernet/marvell/octeontx2/af/ |
| H A D | rvu.c | 36 static int rvu_mbox_init(struct rvu *rvu, struct mbox_wq_info *mw, 2314 struct mbox_wq_info *mw; in __rvu_mbox_handler() local 2319 mw = &rvu->afpf_wq_info; in __rvu_mbox_handler() 2322 mw = &rvu->afvf_wq_info; in __rvu_mbox_handler() 2328 devid = mwork - mw->mbox_wrk; in __rvu_mbox_handler() 2329 mbox = &mw->mbox; in __rvu_mbox_handler() 2334 if (mw->mbox_wrk[devid].num_msgs == 0) in __rvu_mbox_handler() 2341 req_hdr->opt_msg = mw->mbox_wrk[devid].num_msgs; in __rvu_mbox_handler() 2356 for (id = 0; id < mw->mbox_wrk[devid].num_msgs; id++) { in __rvu_mbox_handler() 2389 mw->mbox_wrk[devid].num_msgs = 0; in __rvu_mbox_handler() [all …]
|
| H A D | rvu.h | 482 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/clk/rockchip/ |
| H A D | clk.h | 845 #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 D | pci-epf-ntb.c | 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() 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 D | pci-epf-vntb.c | 226 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 D | cn20k.c | 17 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 D | otx2_pf.c | 299 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/drivers/infiniband/core/ |
| H A D | uverbs_main.c | 95 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 D | rdma_user_rxe.h | 120 } mw; member
|
| /linux/drivers/gpu/drm/amd/pm/swsmu/smu15/ |
| H A D | smu_v15_0_0_ppt.c | 438 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/ntb/test/ |
| H A D | ntb_tool.c | 227 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 D | device.h | 1130 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 D | ntb.rst | 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/drivers/usb/typec/tcpm/ |
| H A D | tcpm.c | 4684 unsigned int mv, ma, mw, flags; in tcpm_pd_build_request() 4715 mw = min_power(pdo, matching_snk_pdo); in tcpm_pd_build_request() 4716 ma = 1000 * mw / mv; in tcpm_pd_build_request() 4719 mw = ma * mv / 1000; in tcpm_pd_build_request() 4726 max_mw = mw; in tcpm_pd_build_request() 4727 if (mw < port->operating_snk_mw) { in tcpm_pd_build_request() 4743 *rdo = RDO_BATT(src_pdo_index + 1, mw, max_mw, flags); in tcpm_pd_build_request() 4746 src_pdo_index, mv, mw, in tcpm_pd_build_request() 4683 unsigned int mv, ma, mw, flags; tcpm_pd_build_request() local
|
| /linux/drivers/infiniband/hw/ocrdma/ |
| H A D | ocrdma_sli.h | 1951 u32 mw; member
|