Searched refs:ncpus (Results 1 – 6 of 6) sorted by relevance
/drivers/clk/mvebu/ |
D | clk-cpu.c | 172 int ncpus = 0; in of_cpu_clk_setup() local 186 ncpus++; in of_cpu_clk_setup() 188 cpuclk = kzalloc(ncpus * sizeof(*cpuclk), GFP_KERNEL); in of_cpu_clk_setup() 192 clks = kzalloc(ncpus * sizeof(*clks), GFP_KERNEL); in of_cpu_clk_setup() 239 while(ncpus--) in of_cpu_clk_setup() 240 kfree(cpuclk[ncpus].clk_name); in of_cpu_clk_setup()
|
/drivers/xen/ |
D | mcelog.c | 58 static uint32_t ncpus; variable 240 for (i = 0; i < ncpus; i++) in convert_log() 243 if (unlikely(i == ncpus)) { in convert_log() 370 ncpus = mc_op.u.mc_physcpuinfo.ncpus; in bind_virq_for_mce() 371 g_physinfo = kcalloc(ncpus, sizeof(struct mcinfo_logical_cpu), in bind_virq_for_mce()
|
/drivers/misc/sgi-gru/ |
D | grukservices.c | 157 int ctxnum, ncpus; in gru_load_kernel_context() local 170 ncpus = uv_blade_nr_possible_cpus(blade_id); in gru_load_kernel_context() 172 GRU_NUM_KERNEL_CBR * ncpus + bs->bs_async_cbrs); in gru_load_kernel_context() 174 GRU_NUM_KERNEL_DSR_BYTES * ncpus + in gru_load_kernel_context() 370 int ncpus; in gru_lock_async_resource() local 373 ncpus = uv_blade_nr_possible_cpus(blade_id); in gru_lock_async_resource() 375 *cb = bs->kernel_cb + ncpus * GRU_HANDLE_STRIDE; in gru_lock_async_resource() 377 *dsr = bs->kernel_dsr + ncpus * GRU_NUM_KERNEL_DSR_BYTES; in gru_lock_async_resource()
|
/drivers/block/aoe/ |
D | aoecmd.c | 45 static int ncpus; variable 1273 actual_id = f->t->d->aoeminor % ncpus; in ktio() 1346 id = f->t->d->aoeminor % ncpus; in ktcomplete() 1708 for (i = 0; i < ncpus; i++) { in aoe_flush_iocq() 1758 ncpus = num_online_cpus(); in aoecmd_init() 1760 iocq = kcalloc(ncpus, sizeof(struct iocq_ktio), GFP_KERNEL); in aoecmd_init() 1764 kts = kcalloc(ncpus, sizeof(struct ktstate), GFP_KERNEL); in aoecmd_init() 1770 ktiowq = kcalloc(ncpus, sizeof(wait_queue_head_t), GFP_KERNEL); in aoecmd_init() 1778 for (i = 0; i < ncpus; i++) { in aoecmd_init() 1811 for (i = 0; i < ncpus; i++) in aoecmd_exit()
|
/drivers/infiniband/hw/ipath/ |
D | ipath_file_ops.c | 1692 int ncpus = num_online_cpus(), curcpu = -1, nset = 0; in find_best_unit() local 1698 current->pid, i, ncpus); in find_best_unit() 1703 if (curcpu != -1 && nset != ncpus) { in find_best_unit() 1705 prefunit = curcpu / (ncpus / npresent); in find_best_unit() 1709 npresent, ncpus, ncpus / npresent, in find_best_unit()
|
/drivers/net/ethernet/myricom/myri10ge/ |
D | myri10ge.c | 3848 int i, status, ncpus; in myri10ge_probe_slices() local 3851 ncpus = netif_get_num_default_rss_queues(); in myri10ge_probe_slices() 3854 (myri10ge_max_slices == -1 && ncpus < 2)) in myri10ge_probe_slices() 3913 myri10ge_max_slices = ncpus; in myri10ge_probe_slices()
|