p_iov_info 812 drivers/net/ethernet/qlogic/qed/qed.h struct qed_hw_sriov_info *p_iov_info; p_iov_info 813 drivers/net/ethernet/qlogic/qed/qed.h #define IS_QED_SRIOV(cdev) (!!(cdev)->p_iov_info) p_iov_info 1248 drivers/net/ethernet/qlogic/qed/qed_cxt.c if (p_hwfn->cdev->p_iov_info) p_iov_info 1249 drivers/net/ethernet/qlogic/qed/qed_cxt.c p_mngr->vf_count = p_hwfn->cdev->p_iov_info->total_vfs; p_iov_info 1619 drivers/net/ethernet/qlogic/qed/qed_cxt.c if (p_hwfn->cdev->p_iov_info) { p_iov_info 1620 drivers/net/ethernet/qlogic/qed/qed_cxt.c struct qed_hw_sriov_info *p_iov = p_hwfn->cdev->p_iov_info; p_iov_info 1782 drivers/net/ethernet/qlogic/qed/qed_cxt.c (p_hwfn->cdev->p_iov_info->first_vf_in_pf + i); p_iov_info 1816 drivers/net/ethernet/qlogic/qed/qed_cxt.c (p_hwfn->cdev->p_iov_info->first_vf_in_pf + i); p_iov_info 1475 drivers/net/ethernet/qlogic/qed/qed_dev.c p_hwfn->cdev->p_iov_info->total_vfs : 0; p_iov_info 2033 drivers/net/ethernet/qlogic/qed/qed_int.c u16 vfs = p_hwfn->cdev->p_iov_info->total_vfs; p_iov_info 2099 drivers/net/ethernet/qlogic/qed/qed_int.c p_hwfn->cdev->p_iov_info->first_vf_in_pf + p_iov_info 2175 drivers/net/ethernet/qlogic/qed/qed_int.c if (p_hwfn->cdev->p_iov_info) { p_iov_info 2176 drivers/net/ethernet/qlogic/qed/qed_int.c struct qed_hw_sriov_info *p_iov = p_hwfn->cdev->p_iov_info; p_iov_info 2245 drivers/net/ethernet/qlogic/qed/qed_l2.c max_vf_vlan_filters = cdev->p_iov_info->total_vfs * p_iov_info 2247 drivers/net/ethernet/qlogic/qed/qed_l2.c max_vf_mac_filters = cdev->p_iov_info->total_vfs * p_iov_info 424 drivers/net/ethernet/qlogic/qed/qed_sp_commands.c if (p_hwfn->cdev->p_iov_info) { p_iov_info 425 drivers/net/ethernet/qlogic/qed/qed_sp_commands.c struct qed_hw_sriov_info *p_iov = p_hwfn->cdev->p_iov_info; p_iov_info 166 drivers/net/ethernet/qlogic/qed/qed_sriov.c if ((rel_vf_id >= p_hwfn->cdev->p_iov_info->total_vfs) || p_iov_info 364 drivers/net/ethernet/qlogic/qed/qed_sriov.c struct qed_hw_sriov_info *iov = cdev->p_iov_info; p_iov_info 429 drivers/net/ethernet/qlogic/qed/qed_sriov.c struct qed_hw_sriov_info *p_iov = p_hwfn->cdev->p_iov_info; p_iov_info 430 drivers/net/ethernet/qlogic/qed/qed_sriov.c struct qed_pf_iov *p_iov_info = p_hwfn->pf_iov_info; p_iov_info 437 drivers/net/ethernet/qlogic/qed/qed_sriov.c memset(p_iov_info->vfs_array, 0, sizeof(p_iov_info->vfs_array)); p_iov_info 439 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_req_virt_addr = p_iov_info->mbx_msg_virt_addr; p_iov_info 440 drivers/net/ethernet/qlogic/qed/qed_sriov.c req_p = p_iov_info->mbx_msg_phys_addr; p_iov_info 441 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_reply_virt_addr = p_iov_info->mbx_reply_virt_addr; p_iov_info 442 drivers/net/ethernet/qlogic/qed/qed_sriov.c rply_p = p_iov_info->mbx_reply_phys_addr; p_iov_info 443 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_bulletin_virt = p_iov_info->p_bulletins; p_iov_info 444 drivers/net/ethernet/qlogic/qed/qed_sriov.c bulletin_p = p_iov_info->bulletins_phys; p_iov_info 452 drivers/net/ethernet/qlogic/qed/qed_sriov.c struct qed_vf_info *vf = &p_iov_info->vfs_array[idx]; p_iov_info 484 drivers/net/ethernet/qlogic/qed/qed_sriov.c struct qed_pf_iov *p_iov_info = p_hwfn->pf_iov_info; p_iov_info 488 drivers/net/ethernet/qlogic/qed/qed_sriov.c num_vfs = p_hwfn->cdev->p_iov_info->total_vfs; p_iov_info 494 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_iov_info->mbx_msg_size = sizeof(union vfpf_tlvs) * num_vfs; p_iov_info 495 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_v_addr = &p_iov_info->mbx_msg_virt_addr; p_iov_info 497 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_iov_info->mbx_msg_size, p_iov_info 498 drivers/net/ethernet/qlogic/qed/qed_sriov.c &p_iov_info->mbx_msg_phys_addr, p_iov_info 504 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_iov_info->mbx_reply_size = sizeof(union pfvf_tlvs) * num_vfs; p_iov_info 505 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_v_addr = &p_iov_info->mbx_reply_virt_addr; p_iov_info 507 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_iov_info->mbx_reply_size, p_iov_info 508 drivers/net/ethernet/qlogic/qed/qed_sriov.c &p_iov_info->mbx_reply_phys_addr, p_iov_info 513 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_iov_info->bulletins_size = sizeof(struct qed_bulletin_content) * p_iov_info 515 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_v_addr = &p_iov_info->p_bulletins; p_iov_info 517 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_iov_info->bulletins_size, p_iov_info 518 drivers/net/ethernet/qlogic/qed/qed_sriov.c &p_iov_info->bulletins_phys, p_iov_info 526 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_iov_info->mbx_msg_virt_addr, p_iov_info 527 drivers/net/ethernet/qlogic/qed/qed_sriov.c (u64) p_iov_info->mbx_msg_phys_addr, p_iov_info 528 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_iov_info->mbx_reply_virt_addr, p_iov_info 529 drivers/net/ethernet/qlogic/qed/qed_sriov.c (u64) p_iov_info->mbx_reply_phys_addr, p_iov_info 530 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_iov_info->p_bulletins, (u64) p_iov_info->bulletins_phys); p_iov_info 537 drivers/net/ethernet/qlogic/qed/qed_sriov.c struct qed_pf_iov *p_iov_info = p_hwfn->pf_iov_info; p_iov_info 541 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_iov_info->mbx_msg_size, p_iov_info 542 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_iov_info->mbx_msg_virt_addr, p_iov_info 543 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_iov_info->mbx_msg_phys_addr); p_iov_info 547 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_iov_info->mbx_reply_size, p_iov_info 548 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_iov_info->mbx_reply_virt_addr, p_iov_info 549 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_iov_info->mbx_reply_phys_addr); p_iov_info 551 drivers/net/ethernet/qlogic/qed/qed_sriov.c if (p_iov_info->p_bulletins) p_iov_info 553 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_iov_info->bulletins_size, p_iov_info 554 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_iov_info->p_bulletins, p_iov_info 555 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_iov_info->bulletins_phys); p_iov_info 600 drivers/net/ethernet/qlogic/qed/qed_sriov.c kfree(cdev->p_iov_info); p_iov_info 601 drivers/net/ethernet/qlogic/qed/qed_sriov.c cdev->p_iov_info = NULL; p_iov_info 622 drivers/net/ethernet/qlogic/qed/qed_sriov.c cdev->p_iov_info = kzalloc(sizeof(*cdev->p_iov_info), GFP_KERNEL); p_iov_info 623 drivers/net/ethernet/qlogic/qed/qed_sriov.c if (!cdev->p_iov_info) p_iov_info 626 drivers/net/ethernet/qlogic/qed/qed_sriov.c cdev->p_iov_info->pos = pos; p_iov_info 636 drivers/net/ethernet/qlogic/qed/qed_sriov.c if (!cdev->p_iov_info->total_vfs) { p_iov_info 639 drivers/net/ethernet/qlogic/qed/qed_sriov.c kfree(cdev->p_iov_info); p_iov_info 640 drivers/net/ethernet/qlogic/qed/qed_sriov.c cdev->p_iov_info = NULL; p_iov_info 654 drivers/net/ethernet/qlogic/qed/qed_sriov.c if (p_hwfn->cdev->p_iov_info->offset < (256 - p_hwfn->abs_pf_id)) { p_iov_info 655 drivers/net/ethernet/qlogic/qed/qed_sriov.c u32 first = p_hwfn->cdev->p_iov_info->offset + p_iov_info 658 drivers/net/ethernet/qlogic/qed/qed_sriov.c cdev->p_iov_info->first_vf_in_pf = first; p_iov_info 661 drivers/net/ethernet/qlogic/qed/qed_sriov.c cdev->p_iov_info->first_vf_in_pf -= MAX_NUM_VFS_BB; p_iov_info 663 drivers/net/ethernet/qlogic/qed/qed_sriov.c u32 first = p_hwfn->cdev->p_iov_info->offset + p_iov_info 666 drivers/net/ethernet/qlogic/qed/qed_sriov.c cdev->p_iov_info->first_vf_in_pf = first; p_iov_info 671 drivers/net/ethernet/qlogic/qed/qed_sriov.c cdev->p_iov_info->first_vf_in_pf); p_iov_info 720 drivers/net/ethernet/qlogic/qed/qed_sriov.c for (i = 0; i < cdev->p_iov_info->total_vfs; i++) p_iov_info 1099 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_hwfn->cdev->p_iov_info->num_vfs++; p_iov_info 1153 drivers/net/ethernet/qlogic/qed/qed_sriov.c p_hwfn->cdev->p_iov_info->num_vfs--; p_iov_info 3747 drivers/net/ethernet/qlogic/qed/qed_sriov.c for (i = 0; i < p_hwfn->cdev->p_iov_info->total_vfs; i++) p_iov_info 3765 drivers/net/ethernet/qlogic/qed/qed_sriov.c if (!p_hwfn->cdev->p_iov_info) { p_iov_info 3771 drivers/net/ethernet/qlogic/qed/qed_sriov.c for (i = 0; i < p_hwfn->cdev->p_iov_info->total_vfs; i++) { p_iov_info 4004 drivers/net/ethernet/qlogic/qed/qed_sriov.c u8 min = (u8) p_hwfn->cdev->p_iov_info->first_vf_in_pf; p_iov_info 4082 drivers/net/ethernet/qlogic/qed/qed_sriov.c struct qed_hw_sriov_info *p_iov = p_hwfn->cdev->p_iov_info; p_iov_info 4450 drivers/net/ethernet/qlogic/qed/qed_sriov.c if (cdev->p_iov_info && cdev->p_iov_info->num_vfs && pci_enabled) p_iov_info 4731 drivers/net/ethernet/qlogic/qed/qed_sriov.c for (i = 0; i < hwfn->cdev->p_iov_info->total_vfs; i++) { p_iov_info 4936 drivers/net/ethernet/qlogic/qed/qed_sriov.c i, hwfn->cdev->p_iov_info->first_vf_in_pf + i); p_iov_info 4999 drivers/net/ethernet/qlogic/qed/qed_sriov.c hwfn->cdev->p_iov_info->first_vf_in_pf + i); p_iov_info 5013 drivers/net/ethernet/qlogic/qed/qed_sriov.c hwfn->cdev->p_iov_info->first_vf_in_pf + i); p_iov_info 45 drivers/net/ethernet/qlogic/qed/qed_sriov.h #define IS_PF_SRIOV(p_hwfn) (!!((p_hwfn)->cdev->p_iov_info))