/drivers/infiniband/hw/hns/ |
D | hns_roce_pd.c | 40 ida_init(&pd_ida->ida); in hns_roce_init_pd_table() 54 id = ida_alloc_range(&pd_ida->ida, pd_ida->min, pd_ida->max, in hns_roce_alloc_pd() 68 ida_free(&pd_ida->ida, id); in hns_roce_alloc_pd() 80 ida_free(&hr_dev->pd_ida.ida, (int)to_hr_pd(pd)->pdn); in hns_roce_dealloc_pd() 91 id = ida_alloc_range(&uar_ida->ida, uar_ida->min, uar_ida->max, in hns_roce_uar_alloc() 116 ida_init(&uar_ida->ida); in hns_roce_init_uar_table() 126 id = ida_alloc_range(&xrcd_ida->ida, xrcd_ida->min, xrcd_ida->max, in hns_roce_xrcd_alloc() 141 ida_init(&xrcd_ida->ida); in hns_roce_init_xrcd_table() 167 ida_free(&hr_dev->xrcd_ida.ida, (int)xrcdn); in hns_roce_dealloc_xrcd()
|
D | hns_roce_alloc.c | 177 ida_destroy(&hr_dev->xrcd_ida.ida); in hns_roce_cleanup_bitmap() 180 ida_destroy(&hr_dev->srq_table.srq_ida.ida); in hns_roce_cleanup_bitmap() 183 ida_destroy(&hr_dev->mr_table.mtpt_ida.ida); in hns_roce_cleanup_bitmap() 184 ida_destroy(&hr_dev->pd_ida.ida); in hns_roce_cleanup_bitmap() 185 ida_destroy(&hr_dev->uar_ida.ida); in hns_roce_cleanup_bitmap()
|
D | hns_roce_cq.c | 69 id = ida_alloc_range(&bank->ida, bank->min, bank->max, GFP_KERNEL); in alloc_cqn() 96 ida_free(&bank->ida, cqn >> CQ_BANKID_SHIFT); in free_cqn() 523 ida_init(&cq_table->bank[i].ida); in hns_roce_init_cq_table() 534 ida_destroy(&hr_dev->cq_table.bank[i].ida); in hns_roce_cleanup_cq_table()
|
D | hns_roce_mr.c | 59 id = ida_alloc_range(&mtpt_ida->ida, mtpt_ida->min, mtpt_ida->max, in alloc_mr_key() 77 ida_free(&mtpt_ida->ida, id); in alloc_mr_key() 86 ida_free(&hr_dev->mr_table.mtpt_ida.ida, (int)obj); in free_mr_key() 182 ida_init(&mtpt_ida->ida); in hns_roce_init_mr_table() 480 ida_free(&hr_dev->mr_table.mtpt_ida.ida, in hns_roce_mw_free() 542 id = ida_alloc_range(&mtpt_ida->ida, mtpt_ida->min, mtpt_ida->max, in hns_roce_alloc_mw()
|
D | hns_roce_srq.c | 67 id = ida_alloc_range(&srq_ida->ida, srq_ida->min, srq_ida->max, in alloc_srqn() 81 ida_free(&hr_dev->srq_table.srq_ida.ida, (int)srq->srqn); in free_srqn() 462 ida_init(&srq_ida->ida); in hns_roce_init_srq_table()
|
/drivers/dax/ |
D | dax-private.h | 37 struct ida ida; member 70 struct ida ida; member
|
D | bus.c | 474 ida_free(&dax_region->ida, dev_dax->id); in __free_dev_dax_id() 496 id = ida_alloc(&dax_region->ida, GFP_KERNEL); in alloc_dev_dax_id() 631 ida_init(&dax_region->ida); in alloc_dax_region() 655 ida_free(&dev_dax->ida, mapping->id); in dax_mapping_release() 787 mapping->id = ida_alloc(&dev_dax->ida, GFP_KERNEL); in devm_register_dax_mapping() 1401 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; 47 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/platform/x86/intel/ |
D | vsec.h | 45 struct ida *ida; member
|
D | vsec.c | 126 ida_free(intel_vsec_dev->ida, intel_vsec_dev->auxdev.id); in intel_vsec_dev_release() 149 id = ida_alloc(intel_vsec_dev->ida, GFP_KERNEL); in intel_vsec_add_aux() 239 intel_vsec_dev->ida = &intel_vsec_sdsi_ida; in intel_vsec_add_dev() 241 intel_vsec_dev->ida = &intel_vsec_ida; in intel_vsec_add_dev()
|
/drivers/hwmon/ |
D | coretemp.c | 92 struct ida ida; member 518 index = ida_alloc_max(&pdata->ida, NUM_REAL_CORES - 1, GFP_KERNEL); in create_core_data() 562 ida_free(&pdata->ida, index - BASE_SYSFS_ATTR_NO); in create_core_data() 588 ida_free(&pdata->ida, indx - BASE_SYSFS_ATTR_NO); in coretemp_remove_core() 603 ida_init(&pdata->ida); in coretemp_device_add() 631 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() 108 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/nvdimm/ |
D | nd.h | 405 struct ida ns_ida; 406 struct ida btt_ida; 407 struct ida pfn_ida; 408 struct ida dax_ida;
|
/drivers/tty/serial/ |
D | serial_base.h | 19 struct ida port_ida;
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_acl_tcam.h | 16 struct ida used_regions; 18 struct ida used_groups;
|
/drivers/target/iscsi/ |
D | iscsi_target.h | 57 extern struct ida sess_ida;
|
/drivers/media/platform/mediatek/mdp3/ |
D | mtk-mdp3-core.h | 84 struct ida mdp_ida;
|
/drivers/media/platform/chips-media/ |
D | coda.h | 101 struct ida ida; member
|
/drivers/gpu/drm/ |
D | drm_connector.c | 85 struct ida ida; member 120 ida_init(&drm_connector_enum_list[i].ida); in drm_connector_ida_init() 128 ida_destroy(&drm_connector_enum_list[i].ida); in drm_connector_ida_destroy() 229 struct ida *connector_ida = in __drm_connector_init() 230 &drm_connector_enum_list[connector_type].ida; in __drm_connector_init() 565 ida_free(&drm_connector_enum_list[connector->connector_type].ida, in drm_connector_cleanup()
|
/drivers/thermal/ |
D | thermal_core.c | 684 result = ida_alloc(&tz->ida, GFP_KERNEL); in thermal_zone_bind_cooling_device() 740 ida_free(&tz->ida, dev->id); in thermal_zone_bind_cooling_device() 789 ida_free(&tz->ida, pos->id); in thermal_zone_unbind_cooling_device() 1297 ida_init(&tz->ida); in thermal_zone_device_register_with_trips() 1474 ida_destroy(&tz->ida); in thermal_zone_device_unregister()
|
/drivers/gpu/drm/virtio/ |
D | virtgpu_drv.h | 231 struct ida resource_ida; 240 struct ida ctx_id_ida;
|