Home
last modified time | relevance | path

Searched refs:zones (Results 1 - 25 of 55) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
H A Dalloc.c226 struct mlx4_zone_allocator *zones = kmalloc(sizeof(*zones), GFP_KERNEL); in mlx4_zone_allocator_create() local
228 if (NULL == zones) in mlx4_zone_allocator_create()
231 INIT_LIST_HEAD(&zones->entries); in mlx4_zone_allocator_create()
232 INIT_LIST_HEAD(&zones->prios); in mlx4_zone_allocator_create()
233 spin_lock_init(&zones->lock); in mlx4_zone_allocator_create()
234 zones->last_uid = 0; in mlx4_zone_allocator_create()
235 zones->mask = 0; in mlx4_zone_allocator_create()
236 zones->flags = flags; in mlx4_zone_allocator_create()
238 return zones; in mlx4_zone_allocator_create()
425 __mlx4_find_zone_by_uid( struct mlx4_zone_allocator *zones, u32 uid) __mlx4_find_zone_by_uid() argument
438 mlx4_zone_get_bitmap(struct mlx4_zone_allocator *zones, u32 uid) mlx4_zone_get_bitmap() argument
454 mlx4_zone_remove_one(struct mlx4_zone_allocator *zones, u32 uid) mlx4_zone_remove_one() argument
478 __mlx4_find_zone_by_uid_unique( struct mlx4_zone_allocator *zones, u32 obj) __mlx4_find_zone_by_uid_unique() argument
508 mlx4_zone_alloc_entries(struct mlx4_zone_allocator *zones, u32 uid, int count, int align, u32 skip_mask, u32 *puid) mlx4_zone_alloc_entries() argument
529 mlx4_zone_free_entries(struct mlx4_zone_allocator *zones, u32 uid, u32 obj, u32 count) mlx4_zone_free_entries() argument
551 mlx4_zone_free_entries_unique(struct mlx4_zone_allocator *zones, u32 obj, u32 count) mlx4_zone_free_entries_unique() argument
[all...]
H A Dqp.c239 *base = mlx4_zone_alloc_entries(qp_table->zones, uid, cnt, align, in __mlx4_qp_reserve_range()
282 mlx4_zone_free_entries_unique(qp_table->zones, base_qpn, cnt); in __mlx4_qp_release_range()
558 qp_table->zones = mlx4_zone_allocator_create(MLX4_ZONE_ALLOC_FLAGS_NO_OVERLAP); in mlx4_create_zones()
560 if (NULL == qp_table->zones) in mlx4_create_zones()
579 err = mlx4_zone_add_one(qp_table->zones, *bitmap + MLX4_QP_TABLE_ZONE_GENERAL, in mlx4_create_zones()
598 err = mlx4_zone_add_one(qp_table->zones, *bitmap + MLX4_QP_TABLE_ZONE_RSS, in mlx4_create_zones()
694 /* Add an empty bitmap, we'll allocate from different zones (since in mlx4_create_zones()
709 err = mlx4_zone_add_one(qp_table->zones, *bitmap + k, in mlx4_create_zones()
731 mlx4_zone_allocator_destroy(qp_table->zones); in mlx4_create_zones()
739 if (qp_table->zones) { in mlx4_cleanup_qp_zones()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx4/
H A Dalloc.c226 struct mlx4_zone_allocator *zones = kmalloc(sizeof(*zones), GFP_KERNEL); in mlx4_zone_allocator_create() local
228 if (NULL == zones) in mlx4_zone_allocator_create()
231 INIT_LIST_HEAD(&zones->entries); in mlx4_zone_allocator_create()
232 INIT_LIST_HEAD(&zones->prios); in mlx4_zone_allocator_create()
233 spin_lock_init(&zones->lock); in mlx4_zone_allocator_create()
234 zones->last_uid = 0; in mlx4_zone_allocator_create()
235 zones->mask = 0; in mlx4_zone_allocator_create()
236 zones->flags = flags; in mlx4_zone_allocator_create()
238 return zones; in mlx4_zone_allocator_create()
425 __mlx4_find_zone_by_uid( struct mlx4_zone_allocator *zones, u32 uid) __mlx4_find_zone_by_uid() argument
438 mlx4_zone_get_bitmap(struct mlx4_zone_allocator *zones, u32 uid) mlx4_zone_get_bitmap() argument
454 mlx4_zone_remove_one(struct mlx4_zone_allocator *zones, u32 uid) mlx4_zone_remove_one() argument
478 __mlx4_find_zone_by_uid_unique( struct mlx4_zone_allocator *zones, u32 obj) __mlx4_find_zone_by_uid_unique() argument
508 mlx4_zone_alloc_entries(struct mlx4_zone_allocator *zones, u32 uid, int count, int align, u32 skip_mask, u32 *puid) mlx4_zone_alloc_entries() argument
529 mlx4_zone_free_entries(struct mlx4_zone_allocator *zones, u32 uid, u32 obj, u32 count) mlx4_zone_free_entries() argument
551 mlx4_zone_free_entries_unique(struct mlx4_zone_allocator *zones, u32 obj, u32 count) mlx4_zone_free_entries_unique() argument
[all...]
H A Dqp.c244 *base = mlx4_zone_alloc_entries(qp_table->zones, uid, cnt, align, in __mlx4_qp_reserve_range()
287 mlx4_zone_free_entries_unique(qp_table->zones, base_qpn, cnt); in __mlx4_qp_release_range()
562 qp_table->zones = mlx4_zone_allocator_create(MLX4_ZONE_ALLOC_FLAGS_NO_OVERLAP); in mlx4_create_zones()
564 if (NULL == qp_table->zones) in mlx4_create_zones()
583 err = mlx4_zone_add_one(qp_table->zones, *bitmap + MLX4_QP_TABLE_ZONE_GENERAL, in mlx4_create_zones()
602 err = mlx4_zone_add_one(qp_table->zones, *bitmap + MLX4_QP_TABLE_ZONE_RSS, in mlx4_create_zones()
698 /* Add an empty bitmap, we'll allocate from different zones (since in mlx4_create_zones()
713 err = mlx4_zone_add_one(qp_table->zones, *bitmap + k, in mlx4_create_zones()
735 mlx4_zone_allocator_destroy(qp_table->zones); in mlx4_create_zones()
743 if (qp_table->zones) { in mlx4_cleanup_qp_zones()
[all...]
/kernel/linux/linux-6.6/fs/btrfs/
H A Dzoned.c23 /* Maximum number of zones to report per blkdev_report_zones() call */
44 /* Number of superblock log zones */
48 * Minimum of active zones we need:
50 * - BTRFS_SUPER_MIRROR_MAX zones for superblock mirrors
51 * - 3 zones to ensure at least one zone per SYSTEM, META and DATA block group
79 struct blk_zone *zones = data; in copy_zone_info_cb() local
81 memcpy(&zones[idx], zone, sizeof(*zone)); in copy_zone_info_cb()
86 static int sb_write_pointer(struct block_device *bdev, struct blk_zone *zones, in sb_write_pointer() argument
95 ASSERT(zones[i].type != BLK_ZONE_TYPE_CONVENTIONAL); in sb_write_pointer()
96 empty[i] = (zones[ in sb_write_pointer()
198 emulate_report_zones(struct btrfs_device *device, u64 pos, struct blk_zone *zones, unsigned int nr_zones) emulate_report_zones() argument
223 btrfs_get_dev_zones(struct btrfs_device *device, u64 pos, struct blk_zone *zones, unsigned int *nr_zones) btrfs_get_dev_zones() argument
369 struct blk_zone *zones = NULL; btrfs_get_dev_zone_info() local
817 sb_log_location(struct block_device *bdev, struct blk_zone *zones, int rw, u64 *bytenr_ret) sb_log_location() argument
878 struct blk_zone zones[BTRFS_NR_SB_LOG_ZONES]; btrfs_sb_log_location_bdev() local
[all...]
/kernel/linux/linux-5.10/drivers/block/null_blk/
H A Dzoned.c47 dev->zones = kvmalloc_array(dev->nr_zones, sizeof(struct blk_zone), in null_init_zoned_dev()
49 if (!dev->zones) in null_init_zoned_dev()
55 * information protection, use a bitmap to lock zones with in null_init_zoned_dev()
63 kvfree(dev->zones); in null_init_zoned_dev()
70 pr_info("changed the number of conventional zones to %u", in null_init_zoned_dev()
74 /* Max active zones has to be < nbr of seq zones in order to be enforceable */ in null_init_zoned_dev()
80 /* Max open zones has to be <= max active zones */ in null_init_zoned_dev()
83 pr_info("changed the maximum number of open zones t in null_init_zoned_dev()
[all...]
/kernel/linux/linux-6.6/drivers/block/null_blk/
H A Dzoned.c92 dev->zones = kvmalloc_array(dev->nr_zones, sizeof(struct nullb_zone), in null_init_zoned_dev()
94 if (!dev->zones) in null_init_zoned_dev()
101 pr_info("changed the number of conventional zones to %u", in null_init_zoned_dev()
105 /* Max active zones has to be < nbr of seq zones in order to be enforceable */ in null_init_zoned_dev()
111 /* Max open zones has to be <= max active zones */ in null_init_zoned_dev()
114 pr_info("changed the maximum number of open zones to %u\n", in null_init_zoned_dev()
124 zone = &dev->zones[i]; in null_init_zoned_dev()
138 zone = &dev->zones[ in null_init_zoned_dev()
[all...]
/kernel/linux/linux-5.10/drivers/thermal/tegra/
H A Dtegra-bpmp-thermal.c30 struct tegra_bpmp_thermal_zone **zones; member
109 if (tegra->zones[i]->idx != req->host_trip_reached.zone) in bpmp_mrq_thermal()
112 schedule_work(&tegra->zones[i]->tz_device_update_work); in bpmp_mrq_thermal()
171 dev_err(&pdev->dev, "failed to get the number of zones: %d\n", in tegra_bpmp_thermal_probe()
176 tegra->zones = devm_kcalloc(&pdev->dev, max_num_zones, in tegra_bpmp_thermal_probe()
177 sizeof(*tegra->zones), GFP_KERNEL); in tegra_bpmp_thermal_probe()
178 if (!tegra->zones) in tegra_bpmp_thermal_probe()
211 tegra->zones[tegra->num_zones++] = zone; in tegra_bpmp_thermal_probe()
/kernel/linux/linux-5.10/fs/btrfs/
H A Dreada.c59 struct reada_zone *zones[BTRFS_MAX_MIRRORS]; member
365 re->zones[re->nzones++] = zone; in reada_find_extent()
409 dev = re->zones[nzones]->device; in reada_find_extent()
439 dev = re->zones[nzones]->device; in reada_find_extent()
466 zone = re->zones[nzones]; in reada_find_extent()
502 struct reada_zone *zone = re->zones[i]; in reada_extent_put()
510 struct reada_zone *zone = re->zones[i]; in reada_extent_put()
733 if (re->zones[i]->device == dev) { in reada_start_machine_dev()
892 re->zones[i]->start, in dump_devs()
893 re->zones[ in dump_devs()
[all...]
/kernel/linux/linux-6.6/drivers/thermal/tegra/
H A Dtegra-bpmp-thermal.c30 struct tegra_bpmp_thermal_zone **zones; member
128 if (tegra->zones[i]->idx != req.host_trip_reached.zone) in bpmp_mrq_thermal()
131 schedule_work(&tegra->zones[i]->tz_device_update_work); in bpmp_mrq_thermal()
242 dev_err(&pdev->dev, "failed to get the number of zones: %d\n", in tegra_bpmp_thermal_probe()
247 tegra->zones = devm_kcalloc(&pdev->dev, max_num_zones, in tegra_bpmp_thermal_probe()
248 sizeof(*tegra->zones), GFP_KERNEL); in tegra_bpmp_thermal_probe()
249 if (!tegra->zones) in tegra_bpmp_thermal_probe()
287 tegra->zones[tegra->num_zones++] = zone; in tegra_bpmp_thermal_probe()
/kernel/linux/linux-5.10/fs/pstore/
H A Dzone.c4 * allocated zones that are then mapped and flushed into a single
92 * @kpszs: kmsg dump storage zones
95 * @fpszs: ftrace storage zones
260 /* flush dirty zones nicely */ in psz_zone_write()
285 static int psz_flush_dirty_zones(struct pstore_zone **zones, unsigned int cnt) in psz_flush_dirty_zones() argument
290 if (!zones) in psz_flush_dirty_zones()
294 zone = zones[i]; in psz_flush_dirty_zones()
575 struct pstore_zone **zones, unsigned int cnt) in psz_recover_zones()
581 if (!zones) in psz_recover_zones()
585 zone = zones[ in psz_recover_zones()
574 psz_recover_zones(struct psz_context *cxt, struct pstore_zone **zones, unsigned int cnt) psz_recover_zones() argument
1148 struct pstore_zone **zones = *pszones; psz_free_zones() local
1223 struct pstore_zone **zones, *zone; psz_init_zones() local
[all...]
/kernel/linux/linux-6.6/fs/pstore/
H A Dzone.c4 * allocated zones that are then mapped and flushed into a single
92 * @kpszs: kmsg dump storage zones
95 * @fpszs: ftrace storage zones
256 /* flush dirty zones nicely */ in psz_zone_write()
281 static int psz_flush_dirty_zones(struct pstore_zone **zones, unsigned int cnt) in psz_flush_dirty_zones() argument
286 if (!zones) in psz_flush_dirty_zones()
290 zone = zones[i]; in psz_flush_dirty_zones()
569 struct pstore_zone **zones, unsigned int cnt) in psz_recover_zones()
575 if (!zones) in psz_recover_zones()
579 zone = zones[ in psz_recover_zones()
568 psz_recover_zones(struct psz_context *cxt, struct pstore_zone **zones, unsigned int cnt) psz_recover_zones() argument
1125 struct pstore_zone **zones = *pszones; psz_free_zones() local
1198 struct pstore_zone **zones, *zone; psz_init_zones() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/ttm/
H A Dttm_memory.c245 zone = glob->zones[i]; in ttm_zones_above_swap_target()
326 glob->zones[glob->num_zones++] = zone; in ttm_mem_init_kernel_zone()
363 glob->zones[glob->num_zones++] = zone; in ttm_mem_init_highmem_zone()
410 glob->zones[glob->num_zones++] = zone; in ttm_mem_init_dma32_zone()
450 zone = glob->zones[i]; in ttm_mem_global_init()
475 zone = glob->zones[i]; in ttm_mem_global_release()
492 zone = glob->zones[i]; in ttm_check_swapping()
515 zone = glob->zones[i]; in ttm_mem_global_free_zone()
569 zone = glob->zones[i]; in ttm_mem_global_reserve()
582 zone = glob->zones[ in ttm_mem_global_reserve()
[all...]
/kernel/linux/linux-5.10/drivers/thermal/intel/
H A Dx86_pkg_temp_thermal.c64 static struct zone_device **zones; variable
101 return zones[id]; in pkg_temp_thermal_get_dev()
378 zones[id] = zonedev; in pkg_temp_thermal_device_add()
433 zones[topology_logical_die_id(cpu)] = NULL; in pkg_thermal_cpu_offline()
500 zones = kcalloc(max_id, sizeof(struct zone_device *), in pkg_temp_thermal_init()
502 if (!zones) in pkg_temp_thermal_init()
521 kfree(zones); in pkg_temp_thermal_init()
533 kfree(zones); in pkg_temp_thermal_exit()
/kernel/linux/linux-6.6/drivers/thermal/intel/
H A Dx86_pkg_temp_thermal.c67 static struct zone_device **zones; variable
104 return zones[id]; in pkg_temp_thermal_get_dev()
365 zones[id] = zonedev; in pkg_temp_thermal_device_add()
429 zones[topology_logical_die_id(cpu)] = NULL; in pkg_thermal_cpu_offline()
498 zones = kcalloc(max_id, sizeof(struct zone_device *), in pkg_temp_thermal_init()
500 if (!zones) in pkg_temp_thermal_init()
519 kfree(zones); in pkg_temp_thermal_init()
531 kfree(zones); in pkg_temp_thermal_exit()
/kernel/linux/linux-6.6/tools/testing/selftests/netfilter/
H A Dnft_zones_many.sh4 # that are all placed in distinct conntrack zones.
12 zones=2000
152 test_zones $zones
155 test_conntrack_tool $zones
/kernel/linux/linux-5.10/drivers/leds/
H A Dleds-lm3530.c124 u8 zones[LM3530_ALS_ZB_MAX]; member
172 /* n zone boundary makes n+1 zones */ in lm3530_als_configure()
176 als->zones[i] = (((als_vmin + LM3530_ALS_OFFSET_mV) + in lm3530_als_configure()
271 reg_val[5] = als.zones[0]; /* LM3530_ALS_ZB0_REG */ in lm3530_init_registers()
272 reg_val[6] = als.zones[1]; /* LM3530_ALS_ZB1_REG */ in lm3530_init_registers()
273 reg_val[7] = als.zones[2]; /* LM3530_ALS_ZB2_REG */ in lm3530_init_registers()
274 reg_val[8] = als.zones[3]; /* LM3530_ALS_ZB3_REG */ in lm3530_init_registers()
/kernel/linux/linux-6.6/drivers/leds/
H A Dleds-lm3530.c124 u8 zones[LM3530_ALS_ZB_MAX]; member
172 /* n zone boundary makes n+1 zones */ in lm3530_als_configure()
176 als->zones[i] = (((als_vmin + LM3530_ALS_OFFSET_mV) + in lm3530_als_configure()
271 reg_val[5] = als.zones[0]; /* LM3530_ALS_ZB0_REG */ in lm3530_init_registers()
272 reg_val[6] = als.zones[1]; /* LM3530_ALS_ZB1_REG */ in lm3530_init_registers()
273 reg_val[7] = als.zones[2]; /* LM3530_ALS_ZB2_REG */ in lm3530_init_registers()
274 reg_val[8] = als.zones[3]; /* LM3530_ALS_ZB3_REG */ in lm3530_init_registers()
/kernel/linux/linux-5.10/sound/synth/emux/
H A Dsoundfont.c282 sf->zones = NULL; in newsf()
354 zp->next = sf->zones; in sf_zone_new()
355 sf->zones = zp; in sf_zone_new()
432 for (zp = sf->zones; zp; prevp = zp, zp = zp->next) { in load_map()
444 zp->next = sf->zones; in load_map()
445 sf->zones = zp; in load_map()
484 for (p = sf->zones; p; p = next) { in remove_info()
492 sf->zones = next; in remove_info()
550 for (zone = sf->zones; zone; zone = zone->next) { in load_info()
1145 for (cur = sf->zones; cu in rebuild_presets()
[all...]
/kernel/linux/linux-6.6/sound/synth/emux/
H A Dsoundfont.c282 sf->zones = NULL; in newsf()
355 zp->next = sf->zones; in sf_zone_new()
356 sf->zones = zp; in sf_zone_new()
434 for (zp = sf->zones; zp; prevp = zp, zp = zp->next) { in load_map()
446 zp->next = sf->zones; in load_map()
447 sf->zones = zp; in load_map()
487 for (p = sf->zones; p; p = next) { in remove_info()
495 sf->zones = next; in remove_info()
554 for (zone = sf->zones; zone; zone = zone->next) { in load_info()
1153 for (cur = sf->zones; cu in rebuild_presets()
[all...]
/kernel/linux/linux-5.10/drivers/mtd/
H A Dsm_ftl.c463 struct ftl_zone *zone = &ftl->zones[zone_num]; in sm_erase_block()
747 struct ftl_zone *zone = &ftl->zones[zone_num]; in sm_init_zone()
874 zone = &ftl->zones[zone_num]; in sm_get_zone()
934 zone = &ftl->zones[zone_num]; in sm_cache_flush()
1147 ftl->zones = kcalloc(ftl->zone_count, sizeof(struct ftl_zone), in sm_add_mtd()
1149 if (!ftl->zones) in sm_add_mtd()
1207 kfree(ftl->zones); in sm_add_mtd()
1227 if (!ftl->zones[i].initialized) in sm_remove_dev()
1230 kfree(ftl->zones[i].lba_to_phys_table); in sm_remove_dev()
1231 kfifo_free(&ftl->zones[ in sm_remove_dev()
[all...]
/kernel/linux/linux-6.6/drivers/mtd/
H A Dsm_ftl.c467 struct ftl_zone *zone = &ftl->zones[zone_num]; in sm_erase_block()
754 struct ftl_zone *zone = &ftl->zones[zone_num]; in sm_init_zone()
886 zone = &ftl->zones[zone_num]; in sm_get_zone()
946 zone = &ftl->zones[zone_num]; in sm_cache_flush()
1160 ftl->zones = kcalloc(ftl->zone_count, sizeof(struct ftl_zone), in sm_add_mtd()
1162 if (!ftl->zones) in sm_add_mtd()
1220 kfree(ftl->zones); in sm_add_mtd()
1240 if (!ftl->zones[i].initialized) in sm_remove_dev()
1243 kfree(ftl->zones[i].lba_to_phys_table); in sm_remove_dev()
1244 kfifo_free(&ftl->zones[ in sm_remove_dev()
[all...]
/kernel/linux/linux-5.10/sound/soc/
H A Dsoc-jack.c88 * snd_soc_jack_add_zones - Associate voltage zones with jack
91 * @count: Number of zones
92 * @zones: Array of zones
94 * After this function has been called the zones specified in the
98 struct snd_soc_jack_zone *zones) in snd_soc_jack_add_zones()
103 INIT_LIST_HEAD(&zones[i].list); in snd_soc_jack_add_zones()
104 list_add(&(zones[i].list), &jack->jack_zones); in snd_soc_jack_add_zones()
112 * the type of jack from the zones declared in the jack type
118 * the type of jack from the already declared jack zones
97 snd_soc_jack_add_zones(struct snd_soc_jack *jack, int count, struct snd_soc_jack_zone *zones) snd_soc_jack_add_zones() argument
[all...]
/kernel/linux/linux-6.6/sound/soc/
H A Dsoc-jack.c81 * snd_soc_jack_add_zones - Associate voltage zones with jack
84 * @count: Number of zones
85 * @zones: Array of zones
87 * After this function has been called the zones specified in the
91 struct snd_soc_jack_zone *zones) in snd_soc_jack_add_zones()
96 INIT_LIST_HEAD(&zones[i].list); in snd_soc_jack_add_zones()
97 list_add(&(zones[i].list), &jack->jack_zones); in snd_soc_jack_add_zones()
105 * the type of jack from the zones declared in the jack type
111 * the type of jack from the already declared jack zones
90 snd_soc_jack_add_zones(struct snd_soc_jack *jack, int count, struct snd_soc_jack_zone *zones) snd_soc_jack_add_zones() argument
[all...]
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
H A Dblkzoned.h39 struct blk_zone zones[0]; member

Completed in 22 milliseconds

123