Home
last modified time | relevance | path

Searched refs:nr_sets (Results 1 – 11 of 11) sorted by relevance

/linux-6.6.21/arch/powerpc/kernel/
Dcacheinfo.c261 const __be32 *nr_sets; in cache_nr_sets() local
265 nr_sets = of_get_property(cache->ofnode, propname, NULL); in cache_nr_sets()
266 if (!nr_sets) in cache_nr_sets()
269 *ret = of_read_number(nr_sets, 1); in cache_nr_sets()
276 unsigned int nr_sets; in cache_associativity() local
279 if (cache_nr_sets(cache, &nr_sets)) in cache_associativity()
285 if (nr_sets == 1) { in cache_associativity()
295 if (!(nr_sets > 0 && size > 0 && line_size > 0)) in cache_associativity()
298 *ret = (size / nr_sets) / line_size; in cache_associativity()
624 unsigned int nr_sets; in nr_sets_show() local
[all …]
/linux-6.6.21/kernel/irq/
Daffinity.c14 affd->nr_sets = 1; in default_calc_sets()
52 if (WARN_ON_ONCE(affd->nr_sets > IRQ_AFFINITY_MAX_SETS)) in irq_create_affinity_masks()
71 for (i = 0, usedvecs = 0; i < affd->nr_sets; i++) { in irq_create_affinity_masks()
/linux-6.6.21/drivers/mtd/nand/raw/
Ds3c2410.c985 pdata->nr_sets = of_get_child_count(np); in s3c24xx_nand_probe_dt()
986 if (!pdata->nr_sets) in s3c24xx_nand_probe_dt()
989 sets = devm_kcalloc(&pdev->dev, pdata->nr_sets, sizeof(*sets), in s3c24xx_nand_probe_dt()
1034 int nr_sets; in s3c24xx_nand_probe() local
1086 if (!plat->sets || plat->nr_sets < 1) { in s3c24xx_nand_probe()
1092 nr_sets = plat->nr_sets; in s3c24xx_nand_probe()
1094 info->mtd_count = nr_sets; in s3c24xx_nand_probe()
1098 size = nr_sets * sizeof(*info->mtds); in s3c24xx_nand_probe()
1109 for (setno = 0; setno < nr_sets; setno++, nmtd++, sets++) { in s3c24xx_nand_probe()
/linux-6.6.21/include/linux/platform_data/
Dmtd-nand-s3c2410.h54 int nr_sets; member
/linux-6.6.21/drivers/base/
Dcacheinfo.c169 unsigned int nr_sets = this_leaf->number_of_sets; in cache_associativity() local
176 if (!(nr_sets == 1) && (nr_sets > 0 && size > 0 && line_size > 0)) in cache_associativity()
177 this_leaf->ways_of_associativity = (size / nr_sets) / line_size; in cache_associativity()
/linux-6.6.21/drivers/net/wireless/marvell/libertas/
Dcfg.c557 scanresp->nr_sets, bsssize, le16_to_cpu(resp->size)); in lbs_ret_scan()
559 if (scanresp->nr_sets == 0) { in lbs_ret_scan()
595 tsfsize = 4 + 8 * scanresp->nr_sets; in lbs_ret_scan()
612 if (i / 8 != scanresp->nr_sets) { in lbs_ret_scan()
614 "sets (expected %d got %d)\n", scanresp->nr_sets, in lbs_ret_scan()
619 for (i = 0; i < scanresp->nr_sets; i++) { in lbs_ret_scan()
Dhost.h473 uint8_t nr_sets; member
/linux-6.6.21/drivers/scsi/csiostor/
Dcsio_isr.c486 affd->nr_sets = 1; in csio_calc_sets()
491 affd->nr_sets = hw->num_pports; in csio_calc_sets()
/linux-6.6.21/drivers/virtio/
Dvirtio_vdpa.c298 affd->nr_sets = 1; in default_calc_sets()
327 for (i = 0, usedvecs = 0; i < affd->nr_sets; i++) { in create_affinity_masks()
/linux-6.6.21/include/linux/
Dinterrupt.h288 unsigned int nr_sets; member
/linux-6.6.21/drivers/nvme/host/
Dpci.c2207 affd->nr_sets = nr_read_queues ? 2 : 1; in nvme_calc_irq_sets()