Lines Matching refs:pf

84 	struct i40e_pf *pf = vsi->back;
85 struct i40e_client_instance *cdev = pf->cinst;
90 dev_dbg(&pf->pdev->dev,
95 dev_dbg(&pf->pdev->dev, "Client is not open, abort virtchnl_receive\n");
110 struct i40e_pf *pf = vsi->back;
111 struct i40e_client_instance *cdev = pf->cinst;
146 struct i40e_pf *pf = ldev->pf;
152 wr32(&pf->hw, reg_idx, I40E_PFINT_LNKLSTN_FIRSTQ_INDX_MASK);
167 struct i40e_pf *pf = vsi->back;
168 struct i40e_client_instance *cdev = pf->cinst;
178 dev_dbg(&pf->pdev->dev, "Client is not open, abort close\n");
188 * @pf: PF device pointer
193 void i40e_notify_client_of_vf_reset(struct i40e_pf *pf, u32 vf_id)
195 struct i40e_client_instance *cdev = pf->cinst;
200 dev_dbg(&pf->pdev->dev,
205 dev_dbg(&pf->pdev->dev, "Client is not open, abort vf-reset\n");
213 * @pf: PF device pointer
218 void i40e_notify_client_of_vf_enable(struct i40e_pf *pf, u32 num_vfs)
220 struct i40e_client_instance *cdev = pf->cinst;
225 dev_dbg(&pf->pdev->dev,
231 dev_dbg(&pf->pdev->dev, "Client is not open, abort vf-enable\n");
239 * @pf: PF device pointer
245 int i40e_vf_client_capable(struct i40e_pf *pf, u32 vf_id)
247 struct i40e_client_instance *cdev = pf->cinst;
253 dev_dbg(&pf->pdev->dev,
267 void i40e_client_update_msix_info(struct i40e_pf *pf)
269 struct i40e_client_instance *cdev = pf->cinst;
274 cdev->lan_info.msix_count = pf->num_iwarp_msix;
275 cdev->lan_info.msix_entries = &pf->msix_entries[pf->iwarp_base_vector];
331 * @pf: pointer to the board struct
334 static void i40e_client_add_instance(struct i40e_pf *pf)
338 struct i40e_vsi *vsi = pf->vsi[pf->lan_vsi];
344 cdev->lan_info.pf = (void *)pf;
346 cdev->lan_info.pcidev = pf->pdev;
347 cdev->lan_info.fid = pf->hw.pf_id;
349 cdev->lan_info.hw_addr = pf->hw.hw_addr;
354 cdev->lan_info.fw_maj_ver = pf->hw.aq.fw_maj_ver;
355 cdev->lan_info.fw_min_ver = pf->hw.aq.fw_min_ver;
356 cdev->lan_info.fw_build = pf->hw.aq.fw_build;
367 dev_err(&pf->pdev->dev, "MAC address list is empty!\n");
369 pf->cinst = cdev;
371 cdev->lan_info.msix_count = pf->num_iwarp_msix;
372 cdev->lan_info.msix_entries = &pf->msix_entries[pf->iwarp_base_vector];
381 pf->cinst = NULL;
386 * @pf: pointer to the board struct
390 void i40e_client_del_instance(struct i40e_pf *pf)
392 kfree(pf->cinst);
393 pf->cinst = NULL;
398 * @pf: board private structure
400 void i40e_client_subtask(struct i40e_pf *pf)
404 struct i40e_vsi *vsi = pf->vsi[pf->lan_vsi];
407 if (!test_and_clear_bit(__I40E_CLIENT_SERVICE_REQUESTED, pf->state))
409 cdev = pf->cinst;
412 if (test_bit(__I40E_DOWN, pf->state) ||
413 test_bit(__I40E_CONFIG_BUSY, pf->state))
453 * @pf: pointer to the board struct
457 int i40e_lan_add_device(struct i40e_pf *pf)
464 if (ldev->pf == pf) {
474 ldev->pf = pf;
477 dev_info(&pf->pdev->dev, "Added LAN device PF%d bus=0x%02x dev=0x%02x func=0x%02x\n",
478 pf->hw.pf_id, pf->hw.bus.bus_id,
479 pf->hw.bus.device, pf->hw.bus.func);
481 i40e_client_add_instance(pf);
483 set_bit(__I40E_CLIENT_SERVICE_REQUESTED, pf->state);
484 i40e_service_event_schedule(pf);
493 * @pf: pointer to the board struct
497 int i40e_lan_del_device(struct i40e_pf *pf)
499 struct auxiliary_device *aux_dev = pf->cinst->lan_info.aux_dev;
507 i40e_client_del_instance(pf);
511 if (ldev->pf == pf) {
512 dev_info(&pf->pdev->dev, "Deleted LAN device PF%d bus=0x%02x dev=0x%02x func=0x%02x\n",
513 pf->hw.pf_id, pf->hw.bus.bus_id,
514 pf->hw.bus.device, pf->hw.bus.func);
539 struct i40e_pf *pf = ldev->pf;
540 struct i40e_hw *hw = &pf->hw;
546 dev_err(&pf->pdev->dev, "Unable to send iWarp message to VF, error %d, aq status %d\n",
564 struct i40e_pf *pf = ldev->pf;
565 struct i40e_hw *hw = &pf->hw;
580 if ((v_idx >= (pf->iwarp_base_vector + pf->num_iwarp_msix)) ||
581 (v_idx < pf->iwarp_base_vector))
633 struct i40e_pf *pf = ldev->pf;
637 set_bit(__I40E_PF_RESET_REQUESTED, pf->state);
640 set_bit(__I40E_PF_RESET_REQUESTED, pf->state);
643 dev_warn(&pf->pdev->dev,
645 pf->hw.pf_id, reset_level);
649 i40e_service_event_schedule(pf);
668 struct i40e_pf *pf = ldev->pf;
669 struct i40e_vsi *vsi = pf->vsi[pf->lan_vsi];
678 ctxt.seid = pf->main_vsi_seid;
679 ctxt.pf_num = pf->hw.pf_id;
680 err = i40e_aq_get_vsi_params(&pf->hw, &ctxt, NULL);
683 dev_info(&pf->pdev->dev,
686 i40e_aq_str(&pf->hw,
687 pf->hw.aq.asq_last_status));
703 dev_warn(&pf->pdev->dev,
705 pf->hw.pf_id, flag);
711 dev_info(&pf->pdev->dev,
714 i40e_aq_str(&pf->hw,
715 pf->hw.aq.asq_last_status));
723 struct i40e_pf *pf = ldev->pf;
725 pf->cinst->client = client;
726 set_bit(__I40E_CLIENT_SERVICE_REQUESTED, pf->state);
727 i40e_service_event_schedule(pf);
733 struct i40e_pf *pf = ldev->pf;
734 struct i40e_client_instance *cdev = pf->cinst;
739 while (test_and_set_bit(__I40E_SERVICE_SCHED, pf->state))
748 pf->cinst->client = NULL;
749 clear_bit(__I40E_SERVICE_SCHED, pf->state);