| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| A D | alloc.c | 226 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() 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() 443 spin_lock(&zones->lock); in mlx4_zone_get_bitmap() 459 spin_lock(&zones->lock); in mlx4_zone_remove_one() 514 spin_lock(&zones->lock); in mlx4_zone_alloc_entries() 534 spin_lock(&zones->lock); in mlx4_zone_free_entries() [all …]
|
| A D | qp.c | 239 *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() 560 if (NULL == qp_table->zones) in mlx4_create_zones() 598 err = mlx4_zone_add_one(qp_table->zones, *bitmap + MLX4_QP_TABLE_ZONE_RSS, in mlx4_create_zones() 708 err = mlx4_zone_add_one(qp_table->zones, *bitmap + k, in mlx4_create_zones() 730 mlx4_zone_allocator_destroy(qp_table->zones); in mlx4_create_zones() 738 if (qp_table->zones) { in mlx4_cleanup_qp_zones() 745 mlx4_zone_get_bitmap(qp_table->zones, in mlx4_cleanup_qp_zones() 748 mlx4_zone_remove_one(qp_table->zones, qp_table->zones_uids[i]); in mlx4_cleanup_qp_zones() 754 mlx4_zone_allocator_destroy(qp_table->zones); in mlx4_cleanup_qp_zones() [all …]
|
| /linux/Documentation/admin-guide/device-mapper/ |
| A D | dm-zoned.rst | 26 instance is at most 4.5 MB and as little as 5 zones will be used 38 write accesses to the sequential zones of a zoned block device. 42 in zones with the same size as the zoned block device. These zones will be 44 just like conventional zones. 46 The zones of the device(s) are separated into 2 types: 48 1) Metadata zones: these are conventional zones used to store metadata. 49 Metadata zones are not reported as useable capacity to the user. 51 2) Data zones: all remaining zones, the vast majority of which will be 180 of unmapped (ie free) random zones, <nr_rnd> the total number of zones, 182 total number of sequential zones. [all …]
|
| /linux/fs/btrfs/ |
| A D | zoned.c | 121 bytenr = ((zones[i].start + zones[i].len) in sb_write_pointer() 142 sector = zones[0].wp; in sb_write_pointer() 144 sector = zones[1].wp; in sb_write_pointer() 200 zones[i].wp = zones[i].start + zone_sectors; in emulate_report_zones() 405 if (!zones) { in btrfs_get_dev_zone_info() 435 sector = zones[nr_zones - 1].start + zones[nr_zones - 1].len; in btrfs_get_dev_zone_info() 506 kfree(zones); in btrfs_get_dev_zone_info() 540 kfree(zones); in btrfs_get_dev_zone_info() 749 zone_end = zones[1].start + zones[1].capacity; in sb_log_location() 751 zone_end = zones[0].start + zones[0].capacity; in sb_log_location() [all …]
|
| A D | reada.c | 373 re->zones[re->nzones++] = zone; in reada_find_extent() 417 dev = re->zones[nzones]->device; in reada_find_extent() 447 dev = re->zones[nzones]->device; in reada_find_extent() 474 zone = re->zones[nzones]; in reada_find_extent() 510 struct reada_zone *zone = re->zones[i]; in reada_extent_put() 746 if (re->zones[i]->device == dev) { in reada_start_machine_dev() 906 re->zones[i]->start, in dump_devs() 907 re->zones[i]->end); in dump_devs() 910 re->zones[i]->devs[j]->devid); in dump_devs() 938 re->zones[i]->start, in dump_devs() [all …]
|
| /linux/Documentation/filesystems/ |
| A D | zonefs.rst | 14 write zones of the device must be written sequentially starting from the end 37 * Conventional zones: there are no access constraints to LBAs belonging to 40 * Sequential zones: these zones accept random reads but must be written 60 Zonefs exposes the zones of a zoned block device as files. The files 94 For sequential write zones, the sub-directory "seq" is used. 195 on an HDD causing all zones on the platter under the broken head to be 330 the number of zones that can be active, that is, zones that are in the 358 The following formats a 15TB host-managed SMR HDD with 256 MB zones 359 with the conventional zones aggregation feature enabled:: 369 existing for each type of zones. In this example, there is only one [all …]
|
| /linux/drivers/thermal/tegra/ |
| A D | tegra-bpmp-thermal.c | 30 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() 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()
|
| A D | Kconfig | 9 Tegra systems-on-chip. The driver supports four thermal zones 11 zones to manage temperatures. This option is also required for the
|
| /linux/drivers/block/null_blk/ |
| A D | zoned.c | 91 if (!dev->zones) in null_init_zoned_dev() 121 zone = &dev->zones[i]; in null_init_zoned_dev() 135 zone = &dev->zones[i]; in null_init_zoned_dev() 182 kvfree(dev->zones); in null_free_zoned_dev() 183 dev->zones = NULL; in null_free_zoned_dev() 204 zone = &dev->zones[first_zone]; in null_report_zones() 290 zone = &dev->zones[zno]; in null_close_imp_open_zone() 371 struct nullb_zone *zone = &dev->zones[zno]; in null_zone_write() 611 zone = &dev->zones[i]; in null_zone_mgmt() 623 zone = &dev->zones[zone_no]; in null_zone_mgmt() [all …]
|
| /linux/drivers/thermal/intel/ |
| A D | x86_pkg_temp_thermal.c | 66 static struct zone_device **zones; variable 103 return zones[id]; in pkg_temp_thermal_get_dev() 380 zones[id] = zonedev; in pkg_temp_thermal_device_add() 435 zones[topology_logical_die_id(cpu)] = NULL; in pkg_thermal_cpu_offline() 502 zones = kcalloc(max_id, sizeof(struct zone_device *), in pkg_temp_thermal_init() 504 if (!zones) in pkg_temp_thermal_init() 523 kfree(zones); in pkg_temp_thermal_init() 535 kfree(zones); in module_init()
|
| /linux/Documentation/power/powercap/ |
| A D | powercap.rst | 19 Power zones represent different parts of the system, which can be controlled and 23 the system represented by different power zones are hierarchical (that is, one 25 controls), those power zones may also be organized in a hierarchy with one 150 control type called intel-rapl which contains two power zones, intel-rapl:0 and 151 intel-rapl:1, representing CPU packages. Each of these power zones contains 154 the zones and subzones contain energy monitoring attributes (energy_uj, 156 to be applied (the constraints in the 'package' power zones apply to the whole 170 Depending on different power zones, the Intel RAPL technology allows 173 All the zones contain attributes representing the constraint names, 245 enabled (rw): Enable/Disable controls at zone level or for all zones using
|
| /linux/drivers/gpu/drm/vmwgfx/ |
| A D | ttm_memory.c | 248 zone = glob->zones[i]; in ttm_zones_above_swap_target() 329 glob->zones[glob->num_zones++] = zone; in ttm_mem_init_kernel_zone() 366 glob->zones[glob->num_zones++] = zone; in ttm_mem_init_highmem_zone() 413 glob->zones[glob->num_zones++] = zone; in ttm_mem_init_dma32_zone() 456 zone = glob->zones[i]; in ttm_mem_global_init() 474 zone = glob->zones[i]; in ttm_mem_global_release() 491 zone = glob->zones[i]; in ttm_check_swapping() 514 zone = glob->zones[i]; in ttm_mem_global_free_zone() 569 zone = glob->zones[i]; in ttm_mem_global_reserve() 582 zone = glob->zones[i]; in ttm_mem_global_reserve()
|
| /linux/fs/pstore/ |
| A D | zone.c | 286 if (!zones) in psz_flush_dirty_zones() 290 zone = zones[i]; in psz_flush_dirty_zones() 575 if (!zones) in psz_recover_zones() 579 zone = zones[i]; in psz_recover_zones() 1127 if (!zones) in psz_free_zones() 1134 kfree(zones); in psz_free_zones() 1213 zones = kcalloc(c, sizeof(*zones), GFP_KERNEL); in psz_init_zones() 1214 if (!zones) { in psz_init_zones() 1218 memset(zones, 0, c * sizeof(*zones)); in psz_init_zones() 1227 zones[i] = zone; in psz_init_zones() [all …]
|
| /linux/Documentation/vm/ |
| A D | balance.rst | 43 zone size (and possibly of the size of lower class zones), we can decide 46 of lower class zones, the bad part is, we might do too frequent balancing 47 due to ignoring possibly lower usage in the lower class zones. Also, 52 of a zone _and_ all its lower class zones falls below 1/64th of the 53 total memory in the zone and its lower class zones. This fixes the 2.2 56 which have different numbers and types of zones. If we wanted to get 58 zones in the future. 74 kswapd also needs to know about the zones it should balance. kswapd is
|
| A D | numa.rst | 76 an ordered "zonelist". A zonelist specifies the zones/nodes to visit when a 81 Because some nodes contain multiple zones containing different types of 84 type on the same node. This is an important consideration because some zones, 86 a default Node ordered zonelist. This means it tries to fallback to other zones 94 nodes' zones in the selected zonelist looking for the first zone in the list 120 zones [nodes] with memory in the zonelists. This means that for a memoryless
|
| /linux/drivers/leds/ |
| A D | leds-lm3530.c | 124 u8 zones[LM3530_ALS_ZB_MAX]; member 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()
|
| /linux/tools/testing/selftests/netfilter/ |
| A D | nft_zones_many.sh | 12 zones=20000 152 test_zones $zones 155 test_conntrack_tool $zones
|
| /linux/drivers/mtd/ |
| A D | sm_ftl.c | 467 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[i].free_sectors); in sm_remove_dev() [all …]
|
| /linux/sound/synth/emux/ |
| A D | soundfont.c | 282 sf->zones = NULL; in newsf() 355 zp->next = sf->zones; in sf_zone_new() 356 sf->zones = zp; in sf_zone_new() 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() 1153 for (cur = sf->zones; cur; cur = cur->next) { in rebuild_presets() 1374 for (zp = sf->zones; zp; zp = nextzp) { in snd_sf_clear() 1470 for (zp = sf->zones; zp; zp = nextzp) { in snd_soundfont_remove_unlocked() [all …]
|
| /linux/Documentation/devicetree/bindings/thermal/ |
| A D | thermal-zones.yaml | 5 $id: http://devicetree.org/schemas/thermal/thermal-zones.yaml# 15 and the software abstraction of cooling devices and thermal zones required to 22 - thermal-zones: a container of the following node types used to describe all 25 This binding describes the thermal-zones. 42 const: thermal-zones 44 A /thermal-zones node is required in order to use the thermal framework to 45 manage input from the various thermal zones in the system in order to 260 thermal-zones {
|
| A D | thermal-sensor.yaml | 15 and the software abstraction of thermal zones required to take appropriate 22 - thermal-zones: a container of the following node types used to describe all 28 zones. Typical devices are I2C ADC converters and bandgaps. Thermal sensor
|
| A D | thermal-cooling-devices.yaml | 15 and the software abstraction of cooling devices and thermal zones required to 22 - thermal-zones: a container of the following node types used to describe all 92 thermal-zones {
|
| /linux/Documentation/admin-guide/mm/ |
| A D | memory-hotplug.rst | 399 using the ``contig-zones`` online policy. When 441 ``contig-zones`` has been the kernel default 447 When set to ``contig-zones``, the kernel will 448 try keeping zones contiguous. If a memory block 449 intersects multiple zones or no zone, the 494 in the zones combined with accounting per 497 residing on one of the kernel zones. The 543 can only be served from the kernel zones. 609 allocated from the kernel zones. 625 zones and ZONE_MOVABLE is not used. [all …]
|
| /linux/sound/soc/ |
| A D | soc-jack.c | 91 struct snd_soc_jack_zone *zones) in snd_soc_jack_add_zones() argument 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()
|
| /linux/Documentation/hwmon/ |
| A D | asc7621.rst | 51 We offer flexible mapping of temperature readings to thermal zones. Any 56 a set of zones to control the PWM of an individual fan, but there is no 91 Using temperature information from these four zones, an automatic fan speed 97 temperature zones. Both high- and low-frequency PWM ranges are supported. 223 Only the following combination of zones (and their corresponding masks)
|