Home
last modified time | relevance | path

Searched refs:ida (Results 1 – 25 of 60) sorted by relevance

123

/drivers/infiniband/hw/hns/
Dhns_roce_pd.c41 ida_init(&pd_ida->ida); in hns_roce_init_pd_table()
55 id = ida_alloc_range(&pd_ida->ida, pd_ida->min, pd_ida->max, in hns_roce_alloc_pd()
69 ida_free(&pd_ida->ida, id); in hns_roce_alloc_pd()
81 ida_free(&hr_dev->pd_ida.ida, (int)to_hr_pd(pd)->pdn); in hns_roce_dealloc_pd()
93 id = ida_alloc_range(&uar_ida->ida, uar_ida->min, uar_ida->max, in hns_roce_uar_alloc()
110 ida_free(&uar_ida->ida, id); in hns_roce_uar_alloc()
127 ida_init(&uar_ida->ida); in hns_roce_init_uar_table()
137 id = ida_alloc_range(&xrcd_ida->ida, xrcd_ida->min, xrcd_ida->max, in hns_roce_xrcd_alloc()
152 ida_init(&xrcd_ida->ida); in hns_roce_init_xrcd_table()
178 ida_free(&hr_dev->xrcd_ida.ida, (int)xrcdn); in hns_roce_dealloc_xrcd()
Dhns_roce_alloc.c178 ida_destroy(&hr_dev->xrcd_ida.ida); in hns_roce_cleanup_bitmap()
181 ida_destroy(&hr_dev->srq_table.srq_ida.ida); in hns_roce_cleanup_bitmap()
184 ida_destroy(&hr_dev->mr_table.mtpt_ida.ida); in hns_roce_cleanup_bitmap()
185 ida_destroy(&hr_dev->pd_ida.ida); in hns_roce_cleanup_bitmap()
186 ida_destroy(&hr_dev->uar_ida.ida); in hns_roce_cleanup_bitmap()
Dhns_roce_srq.c89 id = ida_alloc_range(&srq_ida->ida, srq_ida->min, srq_ida->max, in alloc_srqc()
139 ida_free(&srq_ida->ida, id); in alloc_srqc()
161 ida_free(&srq_table->srq_ida.ida, (int)srq->srqn); in free_srqc()
454 ida_init(&srq_ida->ida); in hns_roce_init_srq_table()
Dhns_roce_cq.c70 id = ida_alloc_range(&bank->ida, bank->min, bank->max, GFP_KERNEL); in alloc_cqn()
97 ida_free(&bank->ida, cqn >> CQ_BANKID_SHIFT); in free_cqn()
527 ida_init(&cq_table->bank[i].ida); in hns_roce_init_cq_table()
538 ida_destroy(&hr_dev->cq_table.bank[i].ida); in hns_roce_cleanup_cq_table()
Dhns_roce_mr.c78 id = ida_alloc_range(&mtpt_ida->ida, mtpt_ida->min, mtpt_ida->max, in alloc_mr_key()
96 ida_free(&mtpt_ida->ida, id); in alloc_mr_key()
105 ida_free(&hr_dev->mr_table.mtpt_ida.ida, (int)obj); in free_mr_key()
205 ida_init(&mtpt_ida->ida); in hns_roce_init_mr_table()
499 ida_free(&hr_dev->mr_table.mtpt_ida.ida, in hns_roce_mw_free()
561 id = ida_alloc_range(&mtpt_ida->ida, mtpt_ida->min, mtpt_ida->max, in hns_roce_alloc_mw()
Dhns_roce_device.h258 struct ida ida; member
493 struct ida ida; member
/drivers/dax/
Ddax-private.h37 struct ida ida; member
70 struct ida ida; member
Dbus.c431 ida_free(&dax_region->ida, dev_dax->id); in __free_dev_dax_id()
453 id = ida_alloc(&dax_region->ida, GFP_KERNEL); in alloc_dev_dax_id()
588 ida_init(&dax_region->ida); in alloc_dax_region()
613 ida_free(&dev_dax->ida, mapping->id); in dax_mapping_release()
746 mapping->id = ida_alloc(&dev_dax->ida, GFP_KERNEL); in devm_register_dax_mapping()
1357 ida_init(&dev_dax->ida); in devm_create_dev_dax()
/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dgid.c43 ida_init(&dev->roce.reserved_gids.ida); in mlx5_init_reserved_gids()
50 WARN_ON(!ida_is_empty(&dev->roce.reserved_gids.ida)); in mlx5_cleanup_reserved_gids()
53 ida_destroy(&dev->roce.reserved_gids.ida); in mlx5_cleanup_reserved_gids()
94 index = ida_alloc_range(&dev->roce.reserved_gids.ida, in mlx5_core_reserved_gid_alloc()
108 ida_free(&dev->roce.reserved_gids.ida, gid_index); in mlx5_core_reserved_gid_free()
/drivers/usb/typec/
Dclass.h16 struct ida mode_ids;
35 struct ida mode_ids;
45 struct ida mode_ids;
/drivers/greybus/
Dhd.c22 static struct ida gb_hd_bus_id_map;
50 struct ida *id_map = &hd->cport_id_map; in gb_hd_cport_reserve()
65 struct ida *id_map = &hd->cport_id_map; in gb_hd_cport_release_reserved()
75 struct ida *id_map = &hd->cport_id_map; in gb_hd_cport_allocate()
/drivers/hwmon/
Dcoretemp.c92 struct ida ida; member
476 index = ida_alloc_max(&pdata->ida, NUM_REAL_CORES - 1, GFP_KERNEL); in create_core_data()
526 ida_free(&pdata->ida, index - BASE_SYSFS_ATTR_NO); in create_core_data()
552 ida_free(&pdata->ida, indx - BASE_SYSFS_ATTR_NO); in coretemp_remove_core()
567 ida_init(&pdata->ida); in coretemp_device_add()
595 ida_destroy(&pdata->ida); in coretemp_device_remove()
/drivers/pnp/
Ddriver.c16 static int compare_func(const char *ida, const char *idb) in compare_func() argument
22 if (ida[i] != 'X' && in compare_func()
23 idb[i] != 'X' && toupper(ida[i]) != toupper(idb[i])) in compare_func()
/drivers/net/ipvlan/
Dipvlan.h100 struct ida ida; member
Dipvlan_main.c79 ida_init(&port->ida); in ipvlan_port_create()
107 ida_destroy(&port->ida); in ipvlan_port_destroy()
607 err = ida_simple_get(&port->ida, port->dev_id_start, 0xFFFE, in ipvlan_link_new()
610 err = ida_simple_get(&port->ida, 0x1, port->dev_id_start, in ipvlan_link_new()
643 ida_simple_remove(&port->ida, dev->dev_id); in ipvlan_link_new()
663 ida_simple_remove(&ipvlan->port->ida, dev->dev_id); in ipvlan_link_delete()
/drivers/staging/media/atomisp/pci/
Datomisp_acc.c114 ida_destroy(&isp->asd[i].acc.ida); in atomisp_acc_cleanup()
129 ida_free(&asd->acc.ida, acc_fw->handle); in atomisp_acc_release()
179 handle = ida_alloc(&asd->acc.ida, GFP_KERNEL); in atomisp_acc_load_to_pipe()
238 ida_free(&asd->acc.ida, acc_fw->handle); in atomisp_acc_unload()
Datomisp_subdev.h331 struct ida ida; member
/drivers/nvdimm/
Dnd.h290 struct ida ns_ida;
291 struct ida btt_ida;
292 struct ida pfn_ida;
293 struct ida dax_ida;
/drivers/gpu/drm/
Ddrm_connector.c71 struct ida ida; member
106 ida_init(&drm_connector_enum_list[i].ida); in drm_connector_ida_init()
114 ida_destroy(&drm_connector_enum_list[i].ida); in drm_connector_ida_destroy()
226 struct ida *connector_ida = in drm_connector_init()
227 &drm_connector_enum_list[connector_type].ida; in drm_connector_init()
467 ida_simple_remove(&drm_connector_enum_list[connector->connector_type].ida, in drm_connector_cleanup()
/drivers/target/iscsi/
Discsi_target.h57 extern struct ida sess_ida;
/drivers/media/platform/coda/
Dcoda.h101 struct ida ida; member
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec.h86 struct ida halloc;
/drivers/thermal/
Dthermal_core.c667 result = ida_simple_get(&tz->ida, 0, 0, GFP_KERNEL); in thermal_zone_bind_cooling_device()
723 ida_simple_remove(&tz->ida, dev->id); in thermal_zone_bind_cooling_device()
770 ida_simple_remove(&tz->ida, pos->id); in thermal_zone_unbind_cooling_device()
1241 ida_init(&tz->ida); in thermal_zone_device_register()
1396 ida_destroy(&tz->ida); in thermal_zone_device_unregister()
/drivers/net/ethernet/netronome/nfp/flower/
Dmain.h104 struct ida mac_off_ids;
141 struct ida ida_handle;
/drivers/gpu/drm/virtio/
Dvirtgpu_drv.h219 struct ida resource_ida;
228 struct ida ctx_id_ida;

123