Home
last modified time | relevance | path

Searched refs:us_ibdev (Results 1 – 4 of 4) sorted by relevance

/drivers/infiniband/hw/usnic/
Dusnic_ib_main.c104 static void usnic_ib_qp_grp_modify_active_to_err(struct usnic_ib_dev *us_ibdev) in usnic_ib_qp_grp_modify_active_to_err() argument
111 BUG_ON(!mutex_is_locked(&us_ibdev->usdev_lock)); in usnic_ib_qp_grp_modify_active_to_err()
113 list_for_each_entry(ctx, &us_ibdev->ctx_list, link) { in usnic_ib_qp_grp_modify_active_to_err()
135 static void usnic_ib_handle_usdev_event(struct usnic_ib_dev *us_ibdev, in usnic_ib_handle_usdev_event() argument
143 mutex_lock(&us_ibdev->usdev_lock); in usnic_ib_handle_usdev_event()
144 netdev = us_ibdev->netdev; in usnic_ib_handle_usdev_event()
147 usnic_info("PF Reset on %s\n", dev_name(&us_ibdev->ib_dev.dev)); in usnic_ib_handle_usdev_event()
148 usnic_ib_qp_grp_modify_active_to_err(us_ibdev); in usnic_ib_handle_usdev_event()
150 ib_event.device = &us_ibdev->ib_dev; in usnic_ib_handle_usdev_event()
157 if (!us_ibdev->ufdev->link_up && in usnic_ib_handle_usdev_event()
[all …]
Dusnic_ib_sysfs.c52 struct usnic_ib_dev *us_ibdev = in board_id_show() local
56 mutex_lock(&us_ibdev->usdev_lock); in board_id_show()
57 subsystem_device_id = us_ibdev->pdev->subsystem_device; in board_id_show()
58 mutex_unlock(&us_ibdev->usdev_lock); in board_id_show()
70 struct usnic_ib_dev *us_ibdev = in config_show() local
75 mutex_lock(&us_ibdev->usdev_lock); in config_show()
76 if (kref_read(&us_ibdev->vf_cnt) > 0) { in config_show()
83 busname = us_ibdev->pdev->bus->name; in config_show()
88 dev_name(&us_ibdev->ib_dev.dev), in config_show()
90 PCI_SLOT(us_ibdev->pdev->devfn), in config_show()
[all …]
Dusnic_ib_verbs.c86 struct usnic_ib_dev *us_ibdev; in usnic_ib_fill_create_qp_resp() local
96 us_ibdev = qp_grp->vf->pf; in usnic_ib_fill_create_qp_resp()
164 dev_name(&us_ibdev->ib_dev.dev)); in usnic_ib_fill_create_qp_resp()
176 struct usnic_ib_dev *us_ibdev = to_usdev(qp->device); in find_free_vf_and_create_qp_grp() local
184 BUG_ON(!mutex_is_locked(&us_ibdev->usdev_lock)); in find_free_vf_and_create_qp_grp()
186 if (list_empty(&us_ibdev->vf_dev_list)) { in find_free_vf_and_create_qp_grp()
203 dev_name(&us_ibdev->ib_dev.dev), in find_free_vf_and_create_qp_grp()
207 us_ibdev->ufdev, in find_free_vf_and_create_qp_grp()
222 list_for_each_entry(vf, &us_ibdev->vf_dev_list, link) { in find_free_vf_and_create_qp_grp()
227 ret = usnic_ib_qp_grp_create(qp_grp, us_ibdev->ufdev, in find_free_vf_and_create_qp_grp()
[all …]
Dusnic_ib_sysfs.h39 int usnic_ib_sysfs_register_usdev(struct usnic_ib_dev *us_ibdev);
40 void usnic_ib_sysfs_unregister_usdev(struct usnic_ib_dev *us_ibdev);