vf_dev 3469 drivers/infiniband/hw/i40iw/i40iw_ctrl.c struct i40iw_vfdev *vf_dev = NULL; vf_dev 3487 drivers/infiniband/hw/i40iw/i40iw_ctrl.c vf_dev = i40iw_vfdev_from_fpm(dev, hmc_fn_id); vf_dev 3488 drivers/infiniband/hw/i40iw/i40iw_ctrl.c if (!vf_dev) vf_dev 3491 drivers/infiniband/hw/i40iw/i40iw_ctrl.c hmc_info = &vf_dev->hmc_info; vf_dev 3492 drivers/infiniband/hw/i40iw/i40iw_ctrl.c iw_vf_idx = vf_dev->iw_vf_idx; vf_dev 3493 drivers/infiniband/hw/i40iw/i40iw_ctrl.c i40iw_debug(dev, I40IW_DEBUG_HMC, "vf_dev %p, hmc_info %p, hmc_obj %p\n", vf_dev, vf_dev 3495 drivers/infiniband/hw/i40iw/i40iw_ctrl.c if (!vf_dev->fpm_query_buf) { vf_dev 3502 drivers/infiniband/hw/i40iw/i40iw_ctrl.c vf_dev->fpm_query_buf = dev->vf_fpm_query_buf[iw_vf_idx].va; vf_dev 3503 drivers/infiniband/hw/i40iw/i40iw_ctrl.c vf_dev->fpm_query_buf_pa = dev->vf_fpm_query_buf[iw_vf_idx].pa; vf_dev 3505 drivers/infiniband/hw/i40iw/i40iw_ctrl.c query_fpm_mem.pa = vf_dev->fpm_query_buf_pa; vf_dev 3506 drivers/infiniband/hw/i40iw/i40iw_ctrl.c query_fpm_mem.va = vf_dev->fpm_query_buf; vf_dev 230 drivers/infiniband/hw/i40iw/i40iw_hmc.c struct i40iw_vfdev *vf_dev = NULL; vf_dev 234 drivers/infiniband/hw/i40iw/i40iw_hmc.c if (dev->vf_dev[idx] && vf_dev 235 drivers/infiniband/hw/i40iw/i40iw_hmc.c ((u8)dev->vf_dev[idx]->pmf_index == hmc_fn_id)) { vf_dev 236 drivers/infiniband/hw/i40iw/i40iw_hmc.c vf_dev = dev->vf_dev[idx]; vf_dev 240 drivers/infiniband/hw/i40iw/i40iw_hmc.c return vf_dev; vf_dev 255 drivers/infiniband/hw/i40iw/i40iw_hmc.c if (dev->vf_dev[idx] && vf_dev 256 drivers/infiniband/hw/i40iw/i40iw_hmc.c ((u8)dev->vf_dev[idx]->pmf_index == hmc_fn_id)) { vf_dev 257 drivers/infiniband/hw/i40iw/i40iw_hmc.c hmc_info = &dev->vf_dev[idx]->hmc_info; vf_dev 1840 drivers/infiniband/hw/i40iw/i40iw_main.c if (!dev->vf_dev[i] || (dev->vf_dev[i]->vf_id != vf_id)) vf_dev 1843 drivers/infiniband/hw/i40iw/i40iw_main.c tmp_vfdev = dev->vf_dev[i]; vf_dev 1845 drivers/infiniband/hw/i40iw/i40iw_main.c dev->vf_dev[i] = NULL; vf_dev 1911 drivers/infiniband/hw/i40iw/i40iw_main.c if (!dev->vf_dev[i] || (dev->vf_dev[i]->vf_id == vf_id)) vf_dev 485 drivers/infiniband/hw/i40iw/i40iw_type.h struct i40iw_vfdev *vf_dev[I40IW_MAX_PE_ENABLED_VF_COUNT]; vf_dev 1354 drivers/infiniband/hw/i40iw/i40iw_type.h void (*callback_fcn)(void *vf_dev); vf_dev 1522 drivers/infiniband/hw/i40iw/i40iw_utils.c if (pf_dev->vf_dev[iw_vf_idx]) { vf_dev 1523 drivers/infiniband/hw/i40iw/i40iw_utils.c if (pf_dev->vf_dev[iw_vf_idx]->stats_initialized) { vf_dev 1524 drivers/infiniband/hw/i40iw/i40iw_utils.c vf_devstat = &pf_dev->vf_dev[iw_vf_idx]->pestat; vf_dev 306 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c struct i40iw_vfdev *vf_dev = callback_param; vf_dev 313 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c dev->vf_dev[vf_dev->iw_vf_idx] = NULL; vf_dev 314 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c vchnl_pf_send_error_resp(dev, vf_dev->vf_id, &vf_dev->vf_msg_buffer.vchnl_msg, vf_dev 316 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c vf_dev_mem.va = vf_dev; vf_dev 317 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c vf_dev_mem.size = sizeof(*vf_dev); vf_dev 323 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c vf_dev->pmf_index = (u16)cqe_info->op_ret_val; vf_dev 324 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c vf_dev->msg_count--; vf_dev 326 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c vf_dev->vf_id, vf_dev 327 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c &vf_dev->vf_msg_buffer.vchnl_msg, vf_dev 328 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c vf_dev->pmf_index); vf_dev 338 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c struct i40iw_vfdev *vf_dev = (struct i40iw_vfdev *)work_vf_dev; vf_dev 339 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c struct i40iw_hmc_info *hmc_info = &vf_dev->hmc_info; vf_dev 340 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c struct i40iw_virtchnl_op_buf *vchnl_msg = &vf_dev->vf_msg_buffer.vchnl_msg; vf_dev 345 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c if (!vf_dev->pf_hmc_initialized) { vf_dev 346 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c ret_code = i40iw_pf_init_vfhmc(vf_dev->pf_dev, (u8)vf_dev->pmf_index, NULL); vf_dev 349 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c vf_dev->pf_hmc_initialized = true; vf_dev 361 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c i40iw_debug(vf_dev->pf_dev, I40IW_DEBUG_VIRT, vf_dev 364 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c ret_code = i40iw_sc_create_hmc_obj(vf_dev->pf_dev, &info); vf_dev 366 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c vf_dev->hmc_info.hmc_obj[add_hmc_obj->obj_type].cnt = add_hmc_obj->obj_count; vf_dev 368 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c vf_dev->msg_count--; vf_dev 369 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c vchnl_pf_send_error_resp(vf_dev->pf_dev, vf_dev->vf_id, vchnl_msg, (u16)ret_code); vf_dev 378 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c struct i40iw_vfdev *vf_dev = (struct i40iw_vfdev *)work_vf_dev; vf_dev 379 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c struct i40iw_hmc_info *hmc_info = &vf_dev->hmc_info; vf_dev 380 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c struct i40iw_virtchnl_op_buf *vchnl_msg = &vf_dev->vf_msg_buffer.vchnl_msg; vf_dev 385 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c if (!vf_dev->pf_hmc_initialized) vf_dev 396 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c i40iw_debug(vf_dev->pf_dev, I40IW_DEBUG_VIRT, vf_dev 399 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c ret_code = i40iw_sc_del_hmc_obj(vf_dev->pf_dev, &info, false); vf_dev 401 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c vf_dev->msg_count--; vf_dev 402 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c vchnl_pf_send_error_resp(vf_dev->pf_dev, vf_dev->vf_id, vchnl_msg, (u16)ret_code); vf_dev 431 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c struct i40iw_vfdev *vf_dev = NULL; vf_dev 450 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c if (!dev->vf_dev[iw_vf_idx]) { vf_dev 455 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c if (dev->vf_dev[iw_vf_idx]->vf_id == vf_id) { vf_dev 456 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c vf_dev = dev->vf_dev[iw_vf_idx]; vf_dev 460 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c if (vf_dev) { vf_dev 461 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c if (!vf_dev->msg_count) { vf_dev 462 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c vf_dev->msg_count++; vf_dev 472 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c if (!vf_dev && vf_dev 477 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c vf_dev = vf_dev_mem.va; vf_dev 478 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c vf_dev->stats_initialized = false; vf_dev 479 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c vf_dev->pf_dev = dev; vf_dev 480 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c vf_dev->msg_count = 1; vf_dev 481 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c vf_dev->vf_id = vf_id; vf_dev 482 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c vf_dev->iw_vf_idx = first_avail_iw_vf; vf_dev 483 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c vf_dev->pf_hmc_initialized = false; vf_dev 484 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c vf_dev->hmc_info.hmc_obj = (struct i40iw_hmc_obj_info *)(&vf_dev[1]); vf_dev 487 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c vf_dev, &vf_dev->hmc_info, vf_dev->hmc_info.hmc_obj); vf_dev 488 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c dev->vf_dev[first_avail_iw_vf] = vf_dev; vf_dev 497 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c memcpy(&vf_dev->vf_msg_buffer.vchnl_msg, vchnl_msg, len); vf_dev 500 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c hmc_fcn_info.iw_vf_idx = vf_dev->iw_vf_idx; vf_dev 501 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c hmc_fcn_info.cqp_callback_param = vf_dev; vf_dev 508 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c i40iw_vf_init_pestat(dev, &vf_dev->pestat, vf_dev->pmf_index); vf_dev 509 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c vf_dev->stats_initialized = true; vf_dev 511 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c if (vf_dev) { vf_dev 512 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c vf_dev->msg_count--; vf_dev 513 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c vchnl_pf_send_get_hmc_fcn_resp(dev, vf_id, vchnl_msg, vf_dev->pmf_index); vf_dev 521 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c if (!vf_dev) vf_dev 523 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c work_info.worker_vf_dev = vf_dev; vf_dev 525 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c memcpy(&vf_dev->vf_msg_buffer.vchnl_msg, vchnl_msg, len); vf_dev 526 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c i40iw_cqp_spawn_worker(dev, &work_info, vf_dev->iw_vf_idx); vf_dev 529 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c if (!vf_dev) vf_dev 531 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c work_info.worker_vf_dev = vf_dev; vf_dev 533 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c memcpy(&vf_dev->vf_msg_buffer.vchnl_msg, vchnl_msg, len); vf_dev 534 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c i40iw_cqp_spawn_worker(dev, &work_info, vf_dev->iw_vf_idx); vf_dev 537 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c if (!vf_dev) vf_dev 539 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c stats = &vf_dev->pestat; vf_dev 541 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c vf_dev->msg_count--;