Lines Matching refs:ptr
82 struct vf_id_map *ptr = in adf_find_vf() local
85 if (ptr->bdf == bdf) in adf_find_vf()
86 return ptr; in adf_find_vf()
96 struct vf_id_map *ptr = in adf_get_vf_real_id() local
98 if (ptr->fake_id == fake) in adf_get_vf_real_id()
99 return ptr->id; in adf_get_vf_real_id()
114 struct list_head *ptr, *tmp; in adf_clean_vf_map() local
117 list_for_each_safe(ptr, tmp, &vfs_table) { in adf_clean_vf_map()
118 map = list_entry(ptr, struct vf_id_map, list); in adf_clean_vf_map()
125 list_del(ptr); in adf_clean_vf_map()
145 struct adf_accel_dev *ptr = in adf_devmgr_update_class_index() local
148 if (ptr->hw_device->dev_class == class) in adf_devmgr_update_class_index()
149 ptr->hw_device->instance_id = i++; in adf_devmgr_update_class_index()
187 struct adf_accel_dev *ptr = in adf_devmgr_add_dev() local
190 if (ptr == accel_dev) { in adf_devmgr_add_dev()
322 struct adf_accel_dev *ptr = in adf_devmgr_pci_to_accel_dev() local
325 if (ptr->accel_pci_dev.pci_dev == pci_dev) { in adf_devmgr_pci_to_accel_dev()
327 return ptr; in adf_devmgr_pci_to_accel_dev()
348 struct adf_accel_dev *ptr = in adf_devmgr_get_dev_by_id() local
350 if (ptr->accel_id == id) { in adf_devmgr_get_dev_by_id()
352 return ptr; in adf_devmgr_get_dev_by_id()
378 struct vf_id_map *ptr = in adf_get_num_dettached_vfs() local
380 if (ptr->bdf != ~0 && !ptr->attached) in adf_get_num_dettached_vfs()