Lines Matching refs:rf

98 			irdma_log_invalid_mtu(l2params.mtu, &iwdev->rf->sc_dev);  in irdma_iidc_event_handler()
116 if (iwdev->rf->protocol_used != IRDMA_IWARP_PROTOCOL_ONLY) in irdma_iidc_event_handler()
125 pe_criterr = readl(iwdev->rf->sc_dev.hw_regs[IRDMA_GLPE_CRITERR]); in irdma_iidc_event_handler()
130 iwdev->rf->reset = true; in irdma_iidc_event_handler()
137 iwdev->rf->reset = true; in irdma_iidc_event_handler()
141 iwdev->rf->reset = true; in irdma_iidc_event_handler()
143 if (iwdev->rf->reset) in irdma_iidc_event_handler()
144 iwdev->rf->gen_ops.request_reset(iwdev->rf); in irdma_iidc_event_handler()
152 static void irdma_request_reset(struct irdma_pci_f *rf) in irdma_request_reset() argument
154 struct ice_pf *pf = rf->cdev; in irdma_request_reset()
156 ibdev_warn(&rf->iwdev->ibdev, "Requesting a reset\n"); in irdma_request_reset()
169 struct ice_pf *pf = iwdev->rf->cdev; in irdma_lan_register_qset()
197 struct ice_pf *pf = iwdev->rf->cdev; in irdma_lan_unregister_qset()
226 struct irdma_pci_f *rf = iwdev->rf; in irdma_fill_device_info() local
228 rf->cdev = pf; in irdma_fill_device_info()
229 rf->gen_ops.register_qset = irdma_lan_register_qset; in irdma_fill_device_info()
230 rf->gen_ops.unregister_qset = irdma_lan_unregister_qset; in irdma_fill_device_info()
231 rf->hw.hw_addr = pf->hw.hw_addr; in irdma_fill_device_info()
232 rf->pcidev = pf->pdev; in irdma_fill_device_info()
233 rf->msix_count = pf->num_rdma_msix; in irdma_fill_device_info()
234 rf->pf_id = pf->hw.pf_id; in irdma_fill_device_info()
235 rf->msix_entries = &pf->msix_entries[pf->rdma_base_vector]; in irdma_fill_device_info()
236 rf->default_vsi.vsi_idx = vsi->vsi_num; in irdma_fill_device_info()
237 rf->protocol_used = pf->rdma_mode & IIDC_RDMA_PROTOCOL_ROCEV2 ? in irdma_fill_device_info()
239 rf->rdma_ver = IRDMA_GEN_2; in irdma_fill_device_info()
240 rf->rsrc_profile = IRDMA_HMC_PROFILE_DEFAULT; in irdma_fill_device_info()
241 rf->rst_to = IRDMA_RST_TIMEOUT_HZ; in irdma_fill_device_info()
242 rf->gen_ops.request_reset = irdma_request_reset; in irdma_fill_device_info()
243 rf->limits_sel = 7; in irdma_fill_device_info()
244 rf->iwdev = iwdev; in irdma_fill_device_info()
253 if (rf->protocol_used == IRDMA_ROCE_PROTOCOL_ONLY) in irdma_fill_device_info()
266 struct irdma_pci_f *rf; in irdma_probe() local
275 iwdev->rf = kzalloc(sizeof(*rf), GFP_KERNEL); in irdma_probe()
276 if (!iwdev->rf) { in irdma_probe()
282 rf = iwdev->rf; in irdma_probe()
284 err = irdma_ctrl_init_hw(rf); in irdma_probe()
291 if (iwdev->rf->protocol_used != IRDMA_IWARP_PROTOCOL_ONLY) in irdma_probe()
304 ibdev_dbg(&iwdev->ibdev, "INIT: Gen2 PF[%d] device probe success\n", PCI_FUNC(rf->pcidev->devfn)); in irdma_probe()
312 irdma_ctrl_deinit_hw(rf); in irdma_probe()
314 kfree(iwdev->rf); in irdma_probe()