| /linux/drivers/infiniband/sw/rxe/ |
| H A 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, int access) in rxe_check_bind_mw() argument 53 if (mw->ibmw.type == IB_MW_TYPE_1) { in rxe_check_bind_mw() [all …]
|
| /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/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 in __rvu_mbox_handler() 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 2713 rvu_mbox_destroy(struct mbox_wq_info * mw) rvu_mbox_destroy() argument 2734 rvu_queue_work(struct mbox_wq_info * mw,int first,int mdevs,u64 intr) rvu_queue_work() argument [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/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() 317 * when the interrupt handler is called. pf->mw[i].num_msgs in otx2_queue_vf_work() 319 * pf->mw[i].up_num_msgs holds the data for use in 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 in otx2_pfaf_mbox_intr_handler() local [all...] |
| /linux/drivers/infiniband/hw/bnxt_re/ |
| H A D | ib_verbs.c | 510 fence->bind_rkey = ib_inc_rkey(fence->mw->rkey); in bnxt_re_bind_fence_mw() 551 if (fence->mw) { in bnxt_re_destroy_fence_mr() 552 bnxt_re_dealloc_mw(fence->mw); in bnxt_re_destroy_fence_mr() 553 fence->mw = NULL; in bnxt_re_destroy_fence_mr() 579 struct ib_mw *mw; in bnxt_re_create_fence_mr() 631 mw = bnxt_re_alloc_mw(&pd->ib_pd, IB_MW_TYPE_1, NULL); in bnxt_re_create_fence_mr() 632 if (IS_ERR(mw)) { in bnxt_re_create_fence_mr() 635 rc = PTR_ERR(mw); in bnxt_re_create_fence_mr() 638 fence->mw = mw; in bnxt_re_create_fence_mr() 576 struct ib_mw *mw; bnxt_re_create_fence_mr() local 4436 struct bnxt_re_mw *mw; bnxt_re_alloc_mw() local 4472 struct bnxt_re_mw *mw = container_of(ib_mw, struct bnxt_re_mw, ib_mw); bnxt_re_dealloc_mw() local [all...] |
| /linux/include/uapi/rdma/ |
| H A D | rdma_user_rxe.h | 120 } mw; member
|
| /linux/drivers/infiniband/core/ |
| H A D | uverbs.h | 227 int uverbs_dealloc_mw(struct ib_mw *mw);
|
| /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/infiniband/hw/ocrdma/ |
| H A D | ocrdma_stats.c | 161 (u64)rsrc_stats->mw); in ocrdma_resource_stats() 215 (u64)rsrc_stats->mw); in ocrdma_resource_stats()
|
| H A D | ocrdma_sli.h | 1951 u32 mw; member
|
| /linux/drivers/usb/typec/tcpm/ |
| H A D | tcpm.c | 4460 unsigned int mv, ma, mw, flags; in tcpm_pd_build_request() local 4491 mw = min_power(pdo, matching_snk_pdo); in tcpm_pd_build_request() 4492 ma = 1000 * mw / mv; in tcpm_pd_build_request() 4495 mw = ma * mv / 1000; in tcpm_pd_build_request() 4502 max_mw = mw; in tcpm_pd_build_request() 4503 if (mw < port->operating_snk_mw) { in tcpm_pd_build_request() 4519 *rdo = RDO_BATT(src_pdo_index + 1, mw, max_mw, flags); in tcpm_pd_build_request() 4522 src_pdo_index, mv, mw, in tcpm_pd_build_request()
|