Lines Matching refs:iwdev
20 struct irdma_device *iwdev;
27 iwdev = to_iwdev(ibdev);
29 if (iwdev->vsi.mtu != params->mtu) {
33 irdma_change_l2params(&iwdev->vsi, &l2params);
49 struct irdma_device *iwdev;
56 iwdev = to_iwdev(ibdev);
58 iwdev->rf->reset = true;
60 iwdev->iw_status = 0;
61 irdma_port_ibevent(iwdev);
73 static void i40iw_fill_device_info(struct irdma_device *iwdev, struct i40e_info *cdev_info)
75 struct irdma_pci_f *rf = iwdev->rf;
87 rf->iwdev = iwdev;
89 iwdev->init_state = INITIAL_STATE;
90 iwdev->rcv_wnd = IRDMA_CM_DEFAULT_RCV_WND_SCALED;
91 iwdev->rcv_wscale = IRDMA_CM_DEFAULT_RCV_WND_SCALE;
92 iwdev->netdev = cdev_info->netdev;
93 iwdev->vsi_num = 0;
109 struct irdma_device *iwdev;
116 iwdev = ib_alloc_device(irdma_device, ibdev);
117 if (!iwdev)
120 iwdev->rf = kzalloc(sizeof(*rf), GFP_KERNEL);
121 if (!iwdev->rf) {
122 ib_dealloc_device(&iwdev->ibdev);
126 i40iw_fill_device_info(iwdev, cdev_info);
127 rf = iwdev->rf;
142 iwdev->dcb_vlan_mode = true;
145 if (irdma_rt_init_hw(iwdev, &l2params)) {
150 err = irdma_ib_register_device(iwdev);
154 ibdev_dbg(&iwdev->ibdev, "INIT: Gen1 PF[%d] open success\n",
160 irdma_rt_deinit_hw(iwdev);
164 kfree(iwdev->rf);
165 ib_dealloc_device(&iwdev->ibdev);