/drivers/infiniband/hw/hns/ |
D | hns_roce_pd.c | 41 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()
|
D | hns_roce_alloc.c | 178 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()
|
D | hns_roce_srq.c | 89 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()
|
D | hns_roce_cq.c | 70 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()
|
D | hns_roce_mr.c | 78 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()
|
D | hns_roce_device.h | 258 struct ida ida; member 493 struct ida ida; member
|
/drivers/dax/ |
D | dax-private.h | 37 struct ida ida; member 70 struct ida ida; member
|
D | bus.c | 431 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/ |
D | gid.c | 43 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/ |
D | class.h | 16 struct ida mode_ids; 35 struct ida mode_ids; 45 struct ida mode_ids;
|
/drivers/greybus/ |
D | hd.c | 22 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/ |
D | coretemp.c | 92 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/ |
D | driver.c | 16 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/ |
D | ipvlan.h | 100 struct ida ida; member
|
D | ipvlan_main.c | 79 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/ |
D | atomisp_acc.c | 114 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()
|
D | atomisp_subdev.h | 331 struct ida ida; member
|
/drivers/nvdimm/ |
D | nd.h | 290 struct ida ns_ida; 291 struct ida btt_ida; 292 struct ida pfn_ida; 293 struct ida dax_ida;
|
/drivers/gpu/drm/ |
D | drm_connector.c | 71 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/ |
D | iscsi_target.h | 57 extern struct ida sess_ida;
|
/drivers/media/platform/coda/ |
D | coda.h | 101 struct ida ida; member
|
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | ipsec.h | 86 struct ida halloc;
|
/drivers/thermal/ |
D | thermal_core.c | 667 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/ |
D | main.h | 104 struct ida mac_off_ids; 141 struct ida ida_handle;
|
/drivers/gpu/drm/virtio/ |
D | virtgpu_drv.h | 219 struct ida resource_ida; 228 struct ida ctx_id_ida;
|