Lines Matching refs:hdl
108 struct i40iw_handler *hdl; in i40iw_find_i40e_handler() local
112 list_for_each_entry(hdl, &i40iw_handlers, list) { in i40iw_find_i40e_handler()
113 if (hdl->ldev.netdev == ldev->netdev) { in i40iw_find_i40e_handler()
115 return hdl; in i40iw_find_i40e_handler()
128 struct i40iw_handler *hdl; in i40iw_find_netdev() local
132 list_for_each_entry(hdl, &i40iw_handlers, list) { in i40iw_find_netdev()
133 if (hdl->ldev.netdev == netdev) { in i40iw_find_netdev()
135 return hdl; in i40iw_find_netdev()
146 static void i40iw_add_handler(struct i40iw_handler *hdl) in i40iw_add_handler() argument
151 list_add(&hdl->list, &i40iw_handlers); in i40iw_add_handler()
159 static int i40iw_del_handler(struct i40iw_handler *hdl) in i40iw_del_handler() argument
164 list_del(&hdl->list); in i40iw_del_handler()
1532 kfree(iwdev->hdl); in i40iw_deinit_device()
1545 static enum i40iw_status_code i40iw_setup_init_state(struct i40iw_handler *hdl, in i40iw_setup_init_state() argument
1549 struct i40iw_device *iwdev = &hdl->device; in i40iw_setup_init_state()
1553 memcpy(&hdl->ldev, ldev, sizeof(*ldev)); in i40iw_setup_init_state()
1563 hdl->client = client; in i40iw_setup_init_state()
1623 struct i40iw_handler *hdl; in i40iw_open() local
1625 hdl = i40iw_find_netdev(ldev->netdev); in i40iw_open()
1626 if (hdl) in i40iw_open()
1629 hdl = kzalloc(sizeof(*hdl), GFP_KERNEL); in i40iw_open()
1630 if (!hdl) in i40iw_open()
1632 iwdev = &hdl->device; in i40iw_open()
1633 iwdev->hdl = hdl; in i40iw_open()
1636 kfree(iwdev->hdl); in i40iw_open()
1641 iwdev->ldev = &hdl->ldev; in i40iw_open()
1644 i40iw_add_handler(hdl); in i40iw_open()
1647 status = i40iw_setup_init_state(hdl, ldev, client); in i40iw_open()
1744 struct i40iw_handler *hdl; in i40iw_l2param_change() local
1750 hdl = i40iw_find_i40e_handler(ldev); in i40iw_l2param_change()
1751 if (!hdl) in i40iw_l2param_change()
1754 iwdev = &hdl->device; in i40iw_l2param_change()
1788 struct i40iw_handler *hdl; in i40iw_close() local
1790 hdl = i40iw_find_i40e_handler(ldev); in i40iw_close()
1791 if (!hdl) in i40iw_close()
1794 iwdev = &hdl->device; in i40iw_close()
1816 struct i40iw_handler *hdl; in i40iw_vf_reset() local
1825 hdl = i40iw_find_i40e_handler(ldev); in i40iw_vf_reset()
1826 if (!hdl) in i40iw_vf_reset()
1829 dev = &hdl->device.sc_dev; in i40iw_vf_reset()
1868 struct i40iw_handler *hdl; in i40iw_vf_enable() local
1870 hdl = i40iw_find_i40e_handler(ldev); in i40iw_vf_enable()
1871 if (!hdl) in i40iw_vf_enable()
1875 hdl->device.max_enabled_vfs = I40IW_MAX_PE_ENABLED_VF_COUNT; in i40iw_vf_enable()
1877 hdl->device.max_enabled_vfs = num_vfs; in i40iw_vf_enable()
1893 struct i40iw_handler *hdl; in i40iw_vf_capable() local
1897 hdl = i40iw_find_i40e_handler(ldev); in i40iw_vf_capable()
1898 if (!hdl) in i40iw_vf_capable()
1901 dev = &hdl->device.sc_dev; in i40iw_vf_capable()
1903 for (i = 0; i < hdl->device.max_enabled_vfs; i++) { in i40iw_vf_capable()
1928 struct i40iw_handler *hdl; in i40iw_virtchnl_receive() local
1936 hdl = i40iw_find_i40e_handler(ldev); in i40iw_virtchnl_receive()
1937 if (!hdl) in i40iw_virtchnl_receive()
1940 dev = &hdl->device.sc_dev; in i40iw_virtchnl_receive()