p_iov 1620 drivers/net/ethernet/qlogic/qed/qed_cxt.c struct qed_hw_sriov_info *p_iov = p_hwfn->cdev->p_iov_info; p_iov 1624 drivers/net/ethernet/qlogic/qed/qed_cxt.c p_iov->first_vf_in_pf); p_iov 1627 drivers/net/ethernet/qlogic/qed/qed_cxt.c p_iov->first_vf_in_pf + p_iov->total_vfs); p_iov 2176 drivers/net/ethernet/qlogic/qed/qed_int.c struct qed_hw_sriov_info *p_iov = p_hwfn->cdev->p_iov_info; p_iov 2178 drivers/net/ethernet/qlogic/qed/qed_int.c min_vf = p_iov->first_vf_in_pf; p_iov 2179 drivers/net/ethernet/qlogic/qed/qed_int.c max_vf = p_iov->first_vf_in_pf + p_iov->total_vfs; p_iov 1626 drivers/net/ethernet/qlogic/qed/qed_l2.c struct qed_vf_iov *p_iov = p_hwfn->vf_iov_info; p_iov 1627 drivers/net/ethernet/qlogic/qed/qed_l2.c struct pfvf_acquire_resp_tlv *p_resp = &p_iov->acquire_resp; p_iov 1675 drivers/net/ethernet/qlogic/qed/qed_l2.c struct qed_vf_iov *p_iov = p_hwfn->vf_iov_info; p_iov 1676 drivers/net/ethernet/qlogic/qed/qed_l2.c struct pfvf_acquire_resp_tlv *p_resp = &p_iov->acquire_resp; p_iov 1702 drivers/net/ethernet/qlogic/qed/qed_l2.c struct qed_vf_iov *p_iov = p_hwfn->vf_iov_info; p_iov 1703 drivers/net/ethernet/qlogic/qed/qed_l2.c struct pfvf_acquire_resp_tlv *p_resp = &p_iov->acquire_resp; p_iov 1743 drivers/net/ethernet/qlogic/qed/qed_l2.c struct qed_vf_iov *p_iov = p_hwfn->vf_iov_info; p_iov 1744 drivers/net/ethernet/qlogic/qed/qed_l2.c struct pfvf_acquire_resp_tlv *p_resp = &p_iov->acquire_resp; p_iov 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 427 drivers/net/ethernet/qlogic/qed/qed_sp_commands.c p_ramrod->base_vf_id = (u8) p_iov->first_vf_in_pf; p_iov 428 drivers/net/ethernet/qlogic/qed/qed_sp_commands.c p_ramrod->num_vfs = (u8) p_iov->total_vfs; p_iov 429 drivers/net/ethernet/qlogic/qed/qed_sriov.c struct qed_hw_sriov_info *p_iov = p_hwfn->cdev->p_iov_info; p_iov 451 drivers/net/ethernet/qlogic/qed/qed_sriov.c for (idx = 0; idx < p_iov->total_vfs; idx++) { p_iov 470 drivers/net/ethernet/qlogic/qed/qed_sriov.c vf->abs_vf_id = idx + p_iov->first_vf_in_pf; p_iov 4082 drivers/net/ethernet/qlogic/qed/qed_sriov.c struct qed_hw_sriov_info *p_iov = p_hwfn->cdev->p_iov_info; p_iov 4085 drivers/net/ethernet/qlogic/qed/qed_sriov.c if (!p_iov) p_iov 4088 drivers/net/ethernet/qlogic/qed/qed_sriov.c for (i = rel_vf_id; i < p_iov->total_vfs; i++) p_iov 41 drivers/net/ethernet/qlogic/qed/qed_vf.c struct qed_vf_iov *p_iov = p_hwfn->vf_iov_info; p_iov 49 drivers/net/ethernet/qlogic/qed/qed_vf.c mutex_lock(&(p_iov->mutex)); p_iov 57 drivers/net/ethernet/qlogic/qed/qed_vf.c p_iov->offset = (u8 *)p_iov->vf2pf_request; p_iov 60 drivers/net/ethernet/qlogic/qed/qed_vf.c memset(p_iov->vf2pf_request, 0, sizeof(union vfpf_tlvs)); p_iov 61 drivers/net/ethernet/qlogic/qed/qed_vf.c memset(p_iov->pf2vf_reply, 0, sizeof(union pfvf_tlvs)); p_iov 64 drivers/net/ethernet/qlogic/qed/qed_vf.c p_tlv = qed_add_tlv(p_hwfn, &p_iov->offset, type, length); p_iov 68 drivers/net/ethernet/qlogic/qed/qed_vf.c (u64)p_iov->pf2vf_reply_phys; p_iov 159 drivers/net/ethernet/qlogic/qed/qed_vf.c struct qed_vf_iov *p_iov = p_hwfn->vf_iov_info; p_iov 163 drivers/net/ethernet/qlogic/qed/qed_vf.c if (!(p_iov->acquire_resp.pfdev_info.capabilities & p_iov 167 drivers/net/ethernet/qlogic/qed/qed_vf.c p_qid_tlv = qed_add_tlv(p_hwfn, &p_iov->offset, p_iov 174 drivers/net/ethernet/qlogic/qed/qed_vf.c struct qed_vf_iov *p_iov = p_hwfn->vf_iov_info; p_iov 184 drivers/net/ethernet/qlogic/qed/qed_vf.c qed_add_tlv(p_hwfn, &p_iov->offset, p_iov 187 drivers/net/ethernet/qlogic/qed/qed_vf.c resp = &p_iov->pf2vf_reply->default_resp; p_iov 199 drivers/net/ethernet/qlogic/qed/qed_vf.c if (p_iov->vf2pf_request) p_iov 202 drivers/net/ethernet/qlogic/qed/qed_vf.c p_iov->vf2pf_request, p_iov 203 drivers/net/ethernet/qlogic/qed/qed_vf.c p_iov->vf2pf_request_phys); p_iov 204 drivers/net/ethernet/qlogic/qed/qed_vf.c if (p_iov->pf2vf_reply) p_iov 207 drivers/net/ethernet/qlogic/qed/qed_vf.c p_iov->pf2vf_reply, p_iov->pf2vf_reply_phys); p_iov 209 drivers/net/ethernet/qlogic/qed/qed_vf.c if (p_iov->bulletin.p_virt) { p_iov 213 drivers/net/ethernet/qlogic/qed/qed_vf.c p_iov->bulletin.p_virt, p_iov->bulletin.phys); p_iov 260 drivers/net/ethernet/qlogic/qed/qed_vf.c struct qed_vf_iov *p_iov = p_hwfn->vf_iov_info; p_iov 261 drivers/net/ethernet/qlogic/qed/qed_vf.c struct pfvf_acquire_resp_tlv *resp = &p_iov->pf2vf_reply->acquire_resp; p_iov 295 drivers/net/ethernet/qlogic/qed/qed_vf.c if (p_iov->b_doorbell_bar) { p_iov 302 drivers/net/ethernet/qlogic/qed/qed_vf.c req->bulletin_addr = p_iov->bulletin.phys; p_iov 303 drivers/net/ethernet/qlogic/qed/qed_vf.c req->bulletin_size = p_iov->bulletin.size; p_iov 306 drivers/net/ethernet/qlogic/qed/qed_vf.c qed_add_tlv(p_hwfn, &p_iov->offset, p_iov 314 drivers/net/ethernet/qlogic/qed/qed_vf.c memset(p_iov->pf2vf_reply, 0, sizeof(union pfvf_tlvs)); p_iov 331 drivers/net/ethernet/qlogic/qed/qed_vf.c memcpy(&p_iov->acquire_resp, resp, sizeof(p_iov->acquire_resp)); p_iov 399 drivers/net/ethernet/qlogic/qed/qed_vf.c p_iov->b_pre_fp_hsi = true; p_iov 409 drivers/net/ethernet/qlogic/qed/qed_vf.c p_iov->bulletin.size = resp->bulletin_size; p_iov 425 drivers/net/ethernet/qlogic/qed/qed_vf.c if (!p_iov->b_pre_fp_hsi && p_iov 456 drivers/net/ethernet/qlogic/qed/qed_vf.c struct qed_vf_iov *p_iov; p_iov 473 drivers/net/ethernet/qlogic/qed/qed_vf.c p_iov = kzalloc(sizeof(*p_iov), GFP_KERNEL); p_iov 474 drivers/net/ethernet/qlogic/qed/qed_vf.c if (!p_iov) p_iov 489 drivers/net/ethernet/qlogic/qed/qed_vf.c p_iov->b_doorbell_bar = true; p_iov 495 drivers/net/ethernet/qlogic/qed/qed_vf.c p_iov->b_doorbell_bar = true; p_iov 502 drivers/net/ethernet/qlogic/qed/qed_vf.c p_iov->vf2pf_request = dma_alloc_coherent(&p_hwfn->cdev->pdev->dev, p_iov 504 drivers/net/ethernet/qlogic/qed/qed_vf.c &p_iov->vf2pf_request_phys, p_iov 506 drivers/net/ethernet/qlogic/qed/qed_vf.c if (!p_iov->vf2pf_request) p_iov 509 drivers/net/ethernet/qlogic/qed/qed_vf.c p_iov->pf2vf_reply = dma_alloc_coherent(&p_hwfn->cdev->pdev->dev, p_iov 511 drivers/net/ethernet/qlogic/qed/qed_vf.c &p_iov->pf2vf_reply_phys, p_iov 513 drivers/net/ethernet/qlogic/qed/qed_vf.c if (!p_iov->pf2vf_reply) p_iov 519 drivers/net/ethernet/qlogic/qed/qed_vf.c p_iov->vf2pf_request, p_iov 520 drivers/net/ethernet/qlogic/qed/qed_vf.c (u64) p_iov->vf2pf_request_phys, p_iov 521 drivers/net/ethernet/qlogic/qed/qed_vf.c p_iov->pf2vf_reply, (u64)p_iov->pf2vf_reply_phys); p_iov 524 drivers/net/ethernet/qlogic/qed/qed_vf.c p_iov->bulletin.size = sizeof(struct qed_bulletin_content); p_iov 525 drivers/net/ethernet/qlogic/qed/qed_vf.c p_iov->bulletin.p_virt = dma_alloc_coherent(&p_hwfn->cdev->pdev->dev, p_iov 526 drivers/net/ethernet/qlogic/qed/qed_vf.c p_iov->bulletin.size, p_iov 527 drivers/net/ethernet/qlogic/qed/qed_vf.c &p_iov->bulletin.phys, p_iov 531 drivers/net/ethernet/qlogic/qed/qed_vf.c p_iov->bulletin.p_virt, p_iov 532 drivers/net/ethernet/qlogic/qed/qed_vf.c (u64)p_iov->bulletin.phys, p_iov->bulletin.size); p_iov 534 drivers/net/ethernet/qlogic/qed/qed_vf.c mutex_init(&p_iov->mutex); p_iov 536 drivers/net/ethernet/qlogic/qed/qed_vf.c p_hwfn->vf_iov_info = p_iov; p_iov 549 drivers/net/ethernet/qlogic/qed/qed_vf.c if (!rc && p_iov->b_doorbell_bar && p_iov 556 drivers/net/ethernet/qlogic/qed/qed_vf.c p_iov->b_doorbell_bar = false; p_iov 571 drivers/net/ethernet/qlogic/qed/qed_vf.c p_iov->vf2pf_request, p_iov->vf2pf_request_phys); p_iov 573 drivers/net/ethernet/qlogic/qed/qed_vf.c kfree(p_iov); p_iov 679 drivers/net/ethernet/qlogic/qed/qed_vf.c struct qed_vf_iov *p_iov = p_hwfn->vf_iov_info; p_iov 708 drivers/net/ethernet/qlogic/qed/qed_vf.c qed_add_tlv(p_hwfn, &p_iov->offset, p_iov 712 drivers/net/ethernet/qlogic/qed/qed_vf.c p_resp = &p_iov->pf2vf_reply->tunn_param_resp; p_iov 738 drivers/net/ethernet/qlogic/qed/qed_vf.c struct qed_vf_iov *p_iov = p_hwfn->vf_iov_info; p_iov 759 drivers/net/ethernet/qlogic/qed/qed_vf.c if (p_iov->b_pre_fp_hsi) { p_iov 760 drivers/net/ethernet/qlogic/qed/qed_vf.c u8 hw_qid = p_iov->acquire_resp.resc.hw_qid[rx_qid]; p_iov 776 drivers/net/ethernet/qlogic/qed/qed_vf.c qed_add_tlv(p_hwfn, &p_iov->offset, p_iov 779 drivers/net/ethernet/qlogic/qed/qed_vf.c resp = &p_iov->pf2vf_reply->queue_start; p_iov 790 drivers/net/ethernet/qlogic/qed/qed_vf.c if (!p_iov->b_pre_fp_hsi) { p_iov 811 drivers/net/ethernet/qlogic/qed/qed_vf.c struct qed_vf_iov *p_iov = p_hwfn->vf_iov_info; p_iov 826 drivers/net/ethernet/qlogic/qed/qed_vf.c qed_add_tlv(p_hwfn, &p_iov->offset, p_iov 829 drivers/net/ethernet/qlogic/qed/qed_vf.c resp = &p_iov->pf2vf_reply->default_resp; p_iov 851 drivers/net/ethernet/qlogic/qed/qed_vf.c struct qed_vf_iov *p_iov = p_hwfn->vf_iov_info; p_iov 871 drivers/net/ethernet/qlogic/qed/qed_vf.c qed_add_tlv(p_hwfn, &p_iov->offset, p_iov 874 drivers/net/ethernet/qlogic/qed/qed_vf.c resp = &p_iov->pf2vf_reply->queue_start; p_iov 887 drivers/net/ethernet/qlogic/qed/qed_vf.c if (!p_iov->b_pre_fp_hsi) { p_iov 890 drivers/net/ethernet/qlogic/qed/qed_vf.c u8 cid = p_iov->acquire_resp.resc.cid[qid]; p_iov 908 drivers/net/ethernet/qlogic/qed/qed_vf.c struct qed_vf_iov *p_iov = p_hwfn->vf_iov_info; p_iov 922 drivers/net/ethernet/qlogic/qed/qed_vf.c qed_add_tlv(p_hwfn, &p_iov->offset, p_iov 925 drivers/net/ethernet/qlogic/qed/qed_vf.c resp = &p_iov->pf2vf_reply->default_resp; p_iov 948 drivers/net/ethernet/qlogic/qed/qed_vf.c struct qed_vf_iov *p_iov = p_hwfn->vf_iov_info; p_iov 972 drivers/net/ethernet/qlogic/qed/qed_vf.c qed_add_tlv(p_hwfn, &p_iov->offset, p_iov 975 drivers/net/ethernet/qlogic/qed/qed_vf.c resp = &p_iov->pf2vf_reply->default_resp; p_iov 993 drivers/net/ethernet/qlogic/qed/qed_vf.c struct qed_vf_iov *p_iov = p_hwfn->vf_iov_info; p_iov 994 drivers/net/ethernet/qlogic/qed/qed_vf.c struct pfvf_def_resp_tlv *resp = &p_iov->pf2vf_reply->default_resp; p_iov 1002 drivers/net/ethernet/qlogic/qed/qed_vf.c qed_add_tlv(p_hwfn, &p_iov->offset, p_iov 1055 drivers/net/ethernet/qlogic/qed/qed_vf.c struct qed_vf_iov *p_iov = p_hwfn->vf_iov_info; p_iov 1065 drivers/net/ethernet/qlogic/qed/qed_vf.c qed_iov_search_list_tlvs(p_hwfn, p_iov->pf2vf_reply, p_iov 1079 drivers/net/ethernet/qlogic/qed/qed_vf.c struct qed_vf_iov *p_iov = p_hwfn->vf_iov_info; p_iov 1087 drivers/net/ethernet/qlogic/qed/qed_vf.c resp = &p_iov->pf2vf_reply->default_resp; p_iov 1101 drivers/net/ethernet/qlogic/qed/qed_vf.c p_act_tlv = qed_add_tlv(p_hwfn, &p_iov->offset, p_iov 1122 drivers/net/ethernet/qlogic/qed/qed_vf.c p_tx_switch_tlv = qed_add_tlv(p_hwfn, &p_iov->offset, p_iov 1133 drivers/net/ethernet/qlogic/qed/qed_vf.c p_mcast_tlv = qed_add_tlv(p_hwfn, &p_iov->offset, p_iov 1149 drivers/net/ethernet/qlogic/qed/qed_vf.c p_accept_tlv = qed_add_tlv(p_hwfn, &p_iov->offset, tlv, size); p_iov 1172 drivers/net/ethernet/qlogic/qed/qed_vf.c &p_iov->offset, p_iov 1209 drivers/net/ethernet/qlogic/qed/qed_vf.c p_any_vlan_tlv = qed_add_tlv(p_hwfn, &p_iov->offset, tlv, size); p_iov 1218 drivers/net/ethernet/qlogic/qed/qed_vf.c qed_add_tlv(p_hwfn, &p_iov->offset, p_iov 1240 drivers/net/ethernet/qlogic/qed/qed_vf.c struct qed_vf_iov *p_iov = p_hwfn->vf_iov_info; p_iov 1249 drivers/net/ethernet/qlogic/qed/qed_vf.c qed_add_tlv(p_hwfn, &p_iov->offset, p_iov 1252 drivers/net/ethernet/qlogic/qed/qed_vf.c resp = &p_iov->pf2vf_reply->default_resp; p_iov 1294 drivers/net/ethernet/qlogic/qed/qed_vf.c struct qed_vf_iov *p_iov = p_hwfn->vf_iov_info; p_iov 1307 drivers/net/ethernet/qlogic/qed/qed_vf.c qed_add_tlv(p_hwfn, &p_iov->offset, p_iov 1310 drivers/net/ethernet/qlogic/qed/qed_vf.c resp = &p_iov->pf2vf_reply->default_resp; p_iov 1328 drivers/net/ethernet/qlogic/qed/qed_vf.c struct qed_vf_iov *p_iov = p_hwfn->vf_iov_info; p_iov 1329 drivers/net/ethernet/qlogic/qed/qed_vf.c struct pfvf_def_resp_tlv *resp = &p_iov->pf2vf_reply->default_resp; p_iov 1337 drivers/net/ethernet/qlogic/qed/qed_vf.c qed_add_tlv(p_hwfn, &p_iov->offset, p_iov 1358 drivers/net/ethernet/qlogic/qed/qed_vf.c struct qed_vf_iov *p_iov = p_hwfn->vf_iov_info; p_iov 1368 drivers/net/ethernet/qlogic/qed/qed_vf.c qed_add_tlv(p_hwfn, &p_iov->offset, CHANNEL_TLV_LIST_END, p_iov 1370 drivers/net/ethernet/qlogic/qed/qed_vf.c resp = &p_iov->pf2vf_reply->read_coal_resp; p_iov 1390 drivers/net/ethernet/qlogic/qed/qed_vf.c struct qed_vf_iov *p_iov = p_hwfn->vf_iov_info; p_iov 1406 drivers/net/ethernet/qlogic/qed/qed_vf.c qed_add_tlv(p_hwfn, &p_iov->offset, CHANNEL_TLV_LIST_END, p_iov 1409 drivers/net/ethernet/qlogic/qed/qed_vf.c p_resp = &p_iov->pf2vf_reply->default_resp; p_iov 1419 drivers/net/ethernet/qlogic/qed/qed_vf.c struct qed_vf_iov *p_iov = p_hwfn->vf_iov_info; p_iov 1437 drivers/net/ethernet/qlogic/qed/qed_vf.c qed_add_tlv(p_hwfn, &p_iov->offset, CHANNEL_TLV_LIST_END, p_iov 1440 drivers/net/ethernet/qlogic/qed/qed_vf.c resp = &p_iov->pf2vf_reply->default_resp; p_iov 1461 drivers/net/ethernet/qlogic/qed/qed_vf.c struct qed_vf_iov *p_iov = p_hwfn->vf_iov_info; p_iov 1463 drivers/net/ethernet/qlogic/qed/qed_vf.c if (!p_iov) { p_iov 1468 drivers/net/ethernet/qlogic/qed/qed_vf.c return p_iov->acquire_resp.resc.hw_sbs[sb_id].hw_sb_id; p_iov 1474 drivers/net/ethernet/qlogic/qed/qed_vf.c struct qed_vf_iov *p_iov = p_hwfn->vf_iov_info; p_iov 1476 drivers/net/ethernet/qlogic/qed/qed_vf.c if (!p_iov) { p_iov 1486 drivers/net/ethernet/qlogic/qed/qed_vf.c p_iov->sbs_info[sb_id] = p_sb; p_iov 1491 drivers/net/ethernet/qlogic/qed/qed_vf.c struct qed_vf_iov *p_iov = p_hwfn->vf_iov_info; p_iov 1495 drivers/net/ethernet/qlogic/qed/qed_vf.c crc_size = sizeof(p_iov->bulletin.p_virt->crc); p_iov 1499 drivers/net/ethernet/qlogic/qed/qed_vf.c memcpy(&shadow, p_iov->bulletin.p_virt, p_iov->bulletin.size); p_iov 1502 drivers/net/ethernet/qlogic/qed/qed_vf.c if (shadow.version == p_iov->bulletin_shadow.version) p_iov 1507 drivers/net/ethernet/qlogic/qed/qed_vf.c p_iov->bulletin.size - crc_size); p_iov 1512 drivers/net/ethernet/qlogic/qed/qed_vf.c memcpy(&p_iov->bulletin_shadow, &shadow, p_iov->bulletin.size);