/Linux-v5.4/block/ |
D | blk-zoned.c | 123 struct blk_zone *zones, unsigned int *nr_zones) in blk_report_zones() argument 132 ret = disk->fops->report_zones(disk, sector, &zones[z], &n); in blk_report_zones() 164 struct blk_zone *zones, unsigned int *nr_zones) in blkdev_report_zones() argument 189 zones, &nrz); in blkdev_report_zones() 194 if (!blkdev_report_zone(bdev, zones)) in blkdev_report_zones() 196 zones++; in blkdev_report_zones() 320 struct blk_zone *zones; in blkdev_report_zones_ioctl() local 344 zones = kvmalloc_array(rep.nr_zones, sizeof(struct blk_zone), in blkdev_report_zones_ioctl() 346 if (!zones) in blkdev_report_zones_ioctl() 349 ret = blkdev_report_zones(bdev, rep.sector, zones, &rep.nr_zones); in blkdev_report_zones_ioctl() [all …]
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx4/ |
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() 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() 426 struct mlx4_zone_allocator *zones, u32 uid) in __mlx4_find_zone_by_uid() argument [all …]
|
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() 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() 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() [all …]
|
/Linux-v5.4/drivers/block/ |
D | null_blk_zoned.c | 27 dev->zones = kvmalloc_array(dev->nr_zones, sizeof(struct blk_zone), in null_zone_init() 29 if (!dev->zones) in null_zone_init() 39 struct blk_zone *zone = &dev->zones[i]; in null_zone_init() 51 struct blk_zone *zone = &dev->zones[i]; in null_zone_init() 66 kvfree(dev->zones); in null_zone_exit() 70 struct blk_zone *zones, unsigned int *nr_zones) in null_zone_report() argument 79 memcpy(zones, &dev->zones[zno], nrz * sizeof(struct blk_zone)); in null_zone_report() 92 struct blk_zone *zone = &dev->zones[zno]; in null_zone_write() 125 struct blk_zone *zone = &dev->zones[zno]; in null_zone_reset()
|
D | null_blk.h | 48 struct blk_zone *zones; member 95 struct blk_zone *zones, unsigned int *nr_zones); 107 struct blk_zone *zones, in null_zone_report() argument
|
/Linux-v5.4/Documentation/admin-guide/device-mapper/ |
D | dm-zoned.rst | 25 host-managed disk with 256 MB zones, dm-zoned memory usage per disk 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. 39 Conventional zones are used for caching as well as for storing internal 42 The zones of the device are separated into 2 types: 44 1) Metadata zones: these are conventional zones used to store metadata. 45 Metadata zones are not reported as useable capacity to the user. 47 2) Data zones: all remaining zones, the vast majority of which will be 48 sequential zones used exclusively to store user data. The conventional 49 zones of the device may be used also for buffering user random writes. [all …]
|
/Linux-v5.4/drivers/staging/uwb/ |
D | drp-ie.c | 132 struct uwb_drp_alloc *zones; in uwb_drp_ie_from_bm() local 137 zones = drp_ie->allocs; in uwb_drp_ie_from_bm() 148 if (current_bmp == zones[i].mas_bm) { in uwb_drp_ie_from_bm() 149 zones[i].zone_bm |= 1 << z; in uwb_drp_ie_from_bm() 156 zones[next].zone_bm = 1 << z; in uwb_drp_ie_from_bm() 157 zones[next].mas_bm = current_bmp; in uwb_drp_ie_from_bm() 166 drp_ie->allocs[i].zone_bm = cpu_to_le16(zones[i].zone_bm); in uwb_drp_ie_from_bm() 167 drp_ie->allocs[i].mas_bm = cpu_to_le16(zones[i].mas_bm); in uwb_drp_ie_from_bm()
|
/Linux-v5.4/drivers/thermal/tegra/ |
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()
|
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-v5.4/drivers/thermal/intel/ |
D | x86_pkg_temp_thermal.c | 64 static struct zone_device **zones; variable 101 return zones[id]; in pkg_temp_thermal_get_dev() 372 zones[id] = zonedev; in pkg_temp_thermal_device_add() 427 zones[topology_logical_die_id(cpu)] = NULL; in pkg_thermal_cpu_offline() 494 zones = kcalloc(max_id, sizeof(struct zone_device *), in pkg_temp_thermal_init() 496 if (!zones) in pkg_temp_thermal_init() 515 kfree(zones); in pkg_temp_thermal_init() 527 kfree(zones); in module_init()
|
/Linux-v5.4/fs/btrfs/ |
D | reada.c | 59 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() 436 dev = re->zones[nzones]->device; in reada_find_extent() 461 zone = re->zones[nzones]; in reada_find_extent() 497 struct reada_zone *zone = re->zones[i]; in reada_extent_put() 505 struct reada_zone *zone = re->zones[i]; in reada_extent_put() 728 if (re->zones[i]->device == dev) { in reada_start_machine_dev() 882 re->zones[i]->start, in dump_devs() 883 re->zones[i]->end); in dump_devs() [all …]
|
/Linux-v5.4/drivers/gpu/drm/ttm/ |
D | ttm_memory.c | 245 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() 570 zone = glob->zones[i]; in ttm_mem_global_reserve() 583 zone = glob->zones[i]; in ttm_mem_global_reserve()
|
/Linux-v5.4/Documentation/power/powercap/ |
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 240 enabled (rw): Enable/Disable controls at zone level or for all zones using
|
/Linux-v5.4/Documentation/vm/ |
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
|
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-v5.4/Documentation/devicetree/bindings/thermal/ |
D | zx2967-thermal.txt | 13 Please note: slope coefficient defined in thermal-zones section need to be 42 Example for thermal zones: 44 thermal-zones {
|
D | thermal.txt | 5 A thermal structure includes thermal zones and their components, 21 - thermal zones: used to describe thermal data within the hardware; 28 thermal zones. Typical devices are I2C ADC converters and bandgaps. These are 29 nodes providing temperature data to thermal zones. Thermal sensor devices may 181 * The thermal-zones node 183 The "thermal-zones" node is a container for all thermal zone nodes. It shall 184 contain only sub-nodes describing thermal zones as in the section 185 "Thermal zone nodes". The "thermal-zones" node appears under "/". 247 thermal-zones { 301 The example below describes how to deploy several thermal zones based off a [all …]
|
/Linux-v5.4/drivers/leds/ |
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-v5.4/drivers/mtd/ |
D | sm_ftl.c | 462 struct ftl_zone *zone = &ftl->zones[zone_num]; in sm_erase_block() 746 struct ftl_zone *zone = &ftl->zones[zone_num]; in sm_init_zone() 873 zone = &ftl->zones[zone_num]; in sm_get_zone() 933 zone = &ftl->zones[zone_num]; in sm_cache_flush() 1146 ftl->zones = kcalloc(ftl->zone_count, sizeof(struct ftl_zone), in sm_add_mtd() 1148 if (!ftl->zones) in sm_add_mtd() 1206 kfree(ftl->zones); in sm_add_mtd() 1226 if (!ftl->zones[i].initialized) in sm_remove_dev() 1229 kfree(ftl->zones[i].lba_to_phys_table); in sm_remove_dev() 1230 kfifo_free(&ftl->zones[i].free_sectors); in sm_remove_dev() [all …]
|
/Linux-v5.4/sound/synth/emux/ |
D | soundfont.c | 282 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; cur; cur = cur->next) { in rebuild_presets() [all …]
|
/Linux-v5.4/drivers/md/ |
D | dm-linear.c | 140 struct blk_zone *zones, unsigned int *nr_zones) in linear_report_zones() argument 147 zones, nr_zones); in linear_report_zones() 152 dm_remap_zone_report(ti, lc->start, zones, nr_zones); in linear_report_zones()
|
/Linux-v5.4/include/uapi/linux/ |
D | blkzoned.h | 119 struct blk_zone zones[0]; member
|
/Linux-v5.4/drivers/scsi/ |
D | sd_zbc.c | 164 struct blk_zone *zones, unsigned int *nr_zones) in sd_zbc_report_zones() argument 188 sd_zbc_parse_report(sdkp, buf + offset, zones); in sd_zbc_report_zones() 189 zones++; in sd_zbc_report_zones()
|
/Linux-v5.4/sound/soc/ |
D | soc-jack.c | 137 struct snd_soc_jack_zone *zones) in snd_soc_jack_add_zones() argument 142 INIT_LIST_HEAD(&zones[i].list); in snd_soc_jack_add_zones() 143 list_add(&(zones[i].list), &jack->jack_zones); in snd_soc_jack_add_zones()
|
/Linux-v5.4/Documentation/hwmon/ |
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)
|