Home
last modified time | relevance | path

Searched refs:max_id (Results 1 – 25 of 124) sorted by relevance

12345

/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dmapping.c21 unsigned long max_id; member
64 err = xa_alloc(&ctx->xarray, &mi->id, mi, XA_LIMIT(1, ctx->max_id), in mapping_add()
195 mapping_create(size_t data_size, u32 max_id, bool delayed_removal) in mapping_create() argument
203 ctx->max_id = max_id ? max_id : UINT_MAX; in mapping_create()
223 mapping_create_for_id(u64 id, u8 type, size_t data_size, u32 max_id, bool delayed_removal) in mapping_create_for_id() argument
236 ctx = mapping_create(data_size, max_id, delayed_removal); in mapping_create_for_id()
H A Dmapping.h23 struct mapping_ctx *mapping_create(size_t data_size, u32 max_id,
30 mapping_create_for_id(u64 id, u8 type, size_t data_size, u32 max_id, bool delayed_removal);
/linux/drivers/pmdomain/ti/
H A Dti_sci_pm_domains.c137 u32 max_id = 0; in ti_sci_pm_domain_probe() local
164 if (args.args[0] > max_id) { in ti_sci_pm_domain_probe()
165 max_id = args.args[0]; in ti_sci_pm_domain_probe()
201 devm_kcalloc(dev, max_id + 1, in ti_sci_pm_domain_probe()
207 pd_provider->data.num_domains = max_id + 1; in ti_sci_pm_domain_probe()
/linux/arch/powerpc/mm/book3s64/
H A Dmmu_context.c29 static int alloc_context_id(int min_id, int max_id) in alloc_context_id() argument
31 return ida_alloc_range(&mmu_context_ida, min_id, max_id, GFP_KERNEL); in alloc_context_id()
167 int index, max_id; in radix__init_new_context() local
169 max_id = (1 << mmu_pid_bits) - 1; in radix__init_new_context()
170 index = alloc_context_id(mmu_base_pid, max_id); in radix__init_new_context()
/linux/drivers/pmdomain/tegra/
H A Dpowergate-bpmp.c112 return response.get_max_id.max_id; in tegra_bpmp_powergate_get_max_id()
216 unsigned int max_id, id, count = 0; in tegra_bpmp_probe_powergates() local
224 max_id = err; in tegra_bpmp_probe_powergates()
226 dev_dbg(bpmp->dev, "maximum powergate ID: %u\n", max_id); in tegra_bpmp_probe_powergates()
228 powergates = kcalloc(max_id + 1, sizeof(*powergates), GFP_KERNEL); in tegra_bpmp_probe_powergates()
232 for (id = 0; id <= max_id; id++) { in tegra_bpmp_probe_powergates()
/linux/drivers/pmdomain/bcm/
H A Dbcm-pmb.c279 int max_id; in bcm_pmb_probe() local
300 max_id = 0; in bcm_pmb_probe()
302 max_id = max(max_id, e->id); in bcm_pmb_probe()
304 pmb->genpd_onecell_data.num_domains = max_id + 1; in bcm_pmb_probe()
/linux/drivers/thermal/intel/
H A Dx86_pkg_temp_thermal.c64 static int max_id __read_mostly;
102 if (id >= 0 && id < max_id) in pkg_temp_thermal_get_dev()
319 if (id >= max_id) in pkg_temp_thermal_device_add()
489 max_id = topology_max_packages() * topology_max_dies_per_package(); in pkg_temp_thermal_init()
490 zones = kcalloc(max_id, sizeof(struct zone_device *), in pkg_temp_thermal_init()
/linux/drivers/s390/char/
H A Dsclp_early_core.c344 int rc, id, max_id = 0; in sclp_early_read_storage_info() local
358 for (id = 0; id <= max_id; id++) { in sclp_early_read_storage_info()
366 max_id = sccb->max_id; in sclp_early_read_storage_info()
/linux/drivers/misc/ocxl/
H A Dpasid.c24 static int range_alloc(struct list_head *head, u32 size, int max_id, in range_alloc() argument
47 if (new->end > max_id) { in range_alloc()
/linux/drivers/clk/tegra/
H A Dclk-bpmp.c346 if (response.max_id > INT_MAX) in tegra_bpmp_clk_get_max_id()
349 return response.max_id; in tegra_bpmp_clk_get_max_id()
425 unsigned int max_id, id, count = 0; in tegra_bpmp_probe_clocks() local
433 max_id = err; in tegra_bpmp_probe_clocks()
435 dev_dbg(bpmp->dev, "maximum clock ID: %u\n", max_id); in tegra_bpmp_probe_clocks()
437 clocks = kcalloc(max_id + 1, sizeof(*clocks), GFP_KERNEL); in tegra_bpmp_probe_clocks()
441 for (id = 0; id <= max_id; id++) { in tegra_bpmp_probe_clocks()
/linux/sound/soc/intel/avs/
H A Dutils.c196 int ret, idx, max_id; in avs_module_id_alloc() local
206 max_id = adev->mods_info->entries[idx].instance_max_count - 1; in avs_module_id_alloc()
207 ret = ida_alloc_max(adev->mod_idas[idx], max_id, GFP_KERNEL); in avs_module_id_alloc()
/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_rl.c512 int max_id, i, step, rp_per_leaf; in get_next_free_node_id() local
527 max_id = i + rp_per_leaf; in get_next_free_node_id()
533 max_id = RL_CLUSTER_MAX; in get_next_free_node_id()
542 while (i < max_id && sla_list[i]) in get_next_free_node_id()
545 if (i >= max_id) in get_next_free_node_id()
1061 u32 max_id; in adf_rl_remove_sla_all() local
1068 max_id = adf_rl_get_sla_arr_of_type(rl_data, j, &sla_type_arr); in adf_rl_remove_sla_all()
1070 for (i = 0; i < max_id; i++) { in adf_rl_remove_sla_all()
/linux/fs/ntfs3/
H A Drecord.c36 u16 free_id, max_id, t16; in mi_new_attt_id() local
50 max_id = 0; in mi_new_attt_id()
57 rec->next_attr_id = cpu_to_le16(max_id + 1); in mi_new_attt_id()
66 } else if (max_id < t16) in mi_new_attt_id()
67 max_id = t16; in mi_new_attt_id()
/linux/tools/perf/util/
H A Dsyscalltbl.h8 int max_id; member
H A Dsyscalltbl.c94 tbl->syscalls.max_id = syscalltbl_native_max_id; in syscalltbl__init_native()
/linux/drivers/scsi/
H A Dstex.c356 unsigned int max_id; member
646 if (id == host->max_id - 1) { in stex_queuecommand_lck()
658 if (id != host->max_id - 1) in stex_queuecommand_lck()
677 .console_id = host->max_id - 1, in stex_queuecommand_lck()
1540 .max_id = 17,
1553 .max_id = 129,
1566 .max_id = 2,
1579 .max_id = 129,
1592 .max_id = 129,
1605 .max_id = 129,
[all …]
H A Dvmw_pvscsi.c1356 u32 max_id; in pvscsi_probe() local
1418 max_id = pvscsi_get_max_targets(adapter); in pvscsi_probe()
1419 printk(KERN_INFO "vmw_pvscsi: max_id: %u\n", max_id); in pvscsi_probe()
1426 pvscsi_ring_pages = (max_id > 16) ? in pvscsi_probe()
1461 host->max_id = max_id; in pvscsi_probe()
H A Djazz_esp.c119 host->max_id = 8; in esp_jazz_probe()
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_debugfs.c1165 int aura, rc, max_id; in rvu_dbg_npa_ctx_display() local
1212 if (id < 0 || id >= max_id) { in rvu_dbg_npa_ctx_display()
1215 max_id - 1); in rvu_dbg_npa_ctx_display()
1222 max_id = id + 1; in rvu_dbg_npa_ctx_display()
1248 int max_id = 0; in write_npa_ctx() local
1270 if (id < 0 || id >= max_id) { in write_npa_ctx()
1273 max_id - 1); in write_npa_ctx()
1656 max_id = pfvf->sq_ctx->qsize; in rvu_dbg_nix_tm_tree_display()
2244 int qidx, rc, max_id = 0; in rvu_dbg_nix_queue_ctx_display() local
2308 max_id = id + 1; in rvu_dbg_nix_queue_ctx_display()
[all …]
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ulp.c350 u16 max_id) in bnxt_register_async_events() argument
360 ulp->max_async_event_id = max_id; in bnxt_register_async_events()
361 bnxt_hwrm_func_drv_rgtr(bp, events_bmap, max_id + 1, true); in bnxt_register_async_events()
H A Dbnxt_ulp.h127 unsigned long *events_bmap, u16 max_id);
/linux/drivers/tee/
H A Dtee_core.c886 int rc, max_id; in tee_device_alloc() local
900 max_id = TEE_NUM_DEVICES / 2; in tee_device_alloc()
904 max_id = TEE_NUM_DEVICES; in tee_device_alloc()
908 teedev->id = find_next_zero_bit(dev_mask, max_id, offs); in tee_device_alloc()
909 if (teedev->id < max_id) in tee_device_alloc()
913 if (teedev->id >= max_id) { in tee_device_alloc()
/linux/drivers/scsi/aacraid/
H A Dlinit.c1333 class_to_shost(device)->max_id); in aac_show_max_id()
1760 shost->max_id = aac->maximum_num_containers; in aac_probe_one()
1761 if (shost->max_id < aac->maximum_num_physicals) in aac_probe_one()
1762 shost->max_id = aac->maximum_num_physicals; in aac_probe_one()
1763 if (shost->max_id < MAXIMUM_NUM_CONTAINERS) in aac_probe_one()
1764 shost->max_id = MAXIMUM_NUM_CONTAINERS; in aac_probe_one()
1766 shost->this_id = shost->max_id; in aac_probe_one()
/linux/fs/
H A Dfs-writeback.c810 int max_id; in wbc_detach_inode() local
821 max_id = wbc->wb_id; in wbc_detach_inode()
824 max_id = wbc->wb_lcand_id; in wbc_detach_inode()
827 max_id = wbc->wb_tcand_id; in wbc_detach_inode()
860 if (wbc->wb_id != max_id) in wbc_detach_inode()
874 inode_switch_wbs(inode, max_id); in wbc_detach_inode()
881 inode->i_wb_frn_winner = max_id; in wbc_detach_inode()
/linux/include/soc/tegra/
H A Dbpmp-abi.h935 uint32_t max_id; member
1289 uint32_t max_id; member
1602 uint32_t max_id; member

12345