zones 123 block/blk-zoned.c struct blk_zone *zones, unsigned int *nr_zones) zones 132 block/blk-zoned.c ret = disk->fops->report_zones(disk, sector, &zones[z], &n); zones 164 block/blk-zoned.c struct blk_zone *zones, unsigned int *nr_zones) zones 189 block/blk-zoned.c zones, &nrz); zones 194 block/blk-zoned.c if (!blkdev_report_zone(bdev, zones)) zones 196 block/blk-zoned.c zones++; zones 320 block/blk-zoned.c struct blk_zone *zones; zones 344 block/blk-zoned.c zones = kvmalloc_array(rep.nr_zones, sizeof(struct blk_zone), zones 346 block/blk-zoned.c if (!zones) zones 349 block/blk-zoned.c ret = blkdev_report_zones(bdev, rep.sector, zones, &rep.nr_zones); zones 359 block/blk-zoned.c if (copy_to_user(argp + sizeof(struct blk_zone_report), zones, zones 365 block/blk-zoned.c kvfree(zones); zones 417 block/blk-zoned.c struct blk_zone *zones; zones 425 block/blk-zoned.c zones = kvcalloc(nrz, sizeof(struct blk_zone), GFP_KERNEL); zones 426 block/blk-zoned.c if (!zones) { zones 433 block/blk-zoned.c return zones; zones 459 block/blk-zoned.c struct blk_zone *zones = NULL; zones 495 block/blk-zoned.c zones = blk_alloc_zones(&rep_nr_zones); zones 496 block/blk-zoned.c if (!zones) zones 501 block/blk-zoned.c ret = blk_report_zones(disk, sector, zones, &nrz); zones 507 block/blk-zoned.c if (zones[i].type != BLK_ZONE_TYPE_CONVENTIONAL) zones 534 block/blk-zoned.c kvfree(zones); zones 48 drivers/block/null_blk.h struct blk_zone *zones; zones 95 drivers/block/null_blk.h struct blk_zone *zones, unsigned int *nr_zones); zones 107 drivers/block/null_blk.h struct blk_zone *zones, zones 31 drivers/block/null_blk_zoned.c dev->zones = kvmalloc_array(dev->nr_zones, sizeof(struct blk_zone), zones 33 drivers/block/null_blk_zoned.c if (!dev->zones) zones 43 drivers/block/null_blk_zoned.c struct blk_zone *zone = &dev->zones[i]; zones 55 drivers/block/null_blk_zoned.c struct blk_zone *zone = &dev->zones[i]; zones 70 drivers/block/null_blk_zoned.c kvfree(dev->zones); zones 74 drivers/block/null_blk_zoned.c struct blk_zone *zones, unsigned int *nr_zones) zones 83 drivers/block/null_blk_zoned.c memcpy(zones, &dev->zones[zno], nrz * sizeof(struct blk_zone)); zones 96 drivers/block/null_blk_zoned.c struct blk_zone *zone = &dev->zones[zno]; zones 129 drivers/block/null_blk_zoned.c struct blk_zone *zone = &dev->zones[zno]; zones 245 drivers/gpu/drm/ttm/ttm_memory.c zone = glob->zones[i]; zones 326 drivers/gpu/drm/ttm/ttm_memory.c glob->zones[glob->num_zones++] = zone; zones 363 drivers/gpu/drm/ttm/ttm_memory.c glob->zones[glob->num_zones++] = zone; zones 410 drivers/gpu/drm/ttm/ttm_memory.c glob->zones[glob->num_zones++] = zone; zones 450 drivers/gpu/drm/ttm/ttm_memory.c zone = glob->zones[i]; zones 475 drivers/gpu/drm/ttm/ttm_memory.c zone = glob->zones[i]; zones 492 drivers/gpu/drm/ttm/ttm_memory.c zone = glob->zones[i]; zones 515 drivers/gpu/drm/ttm/ttm_memory.c zone = glob->zones[i]; zones 570 drivers/gpu/drm/ttm/ttm_memory.c zone = glob->zones[i]; zones 583 drivers/gpu/drm/ttm/ttm_memory.c zone = glob->zones[i]; zones 124 drivers/leds/leds-lm3530.c u8 zones[LM3530_ALS_ZB_MAX]; zones 176 drivers/leds/leds-lm3530.c als->zones[i] = (((als_vmin + LM3530_ALS_OFFSET_mV) + zones 271 drivers/leds/leds-lm3530.c reg_val[5] = als.zones[0]; /* LM3530_ALS_ZB0_REG */ zones 272 drivers/leds/leds-lm3530.c reg_val[6] = als.zones[1]; /* LM3530_ALS_ZB1_REG */ zones 273 drivers/leds/leds-lm3530.c reg_val[7] = als.zones[2]; /* LM3530_ALS_ZB2_REG */ zones 274 drivers/leds/leds-lm3530.c reg_val[8] = als.zones[3]; /* LM3530_ALS_ZB3_REG */ zones 464 drivers/md/dm-flakey.c struct blk_zone *zones, unsigned int *nr_zones) zones 471 drivers/md/dm-flakey.c zones, nr_zones); zones 476 drivers/md/dm-flakey.c dm_remap_zone_report(ti, fc->start, zones, nr_zones); zones 140 drivers/md/dm-linear.c struct blk_zone *zones, unsigned int *nr_zones) zones 147 drivers/md/dm-linear.c zones, nr_zones); zones 152 drivers/md/dm-linear.c dm_remap_zone_report(ti, lc->start, zones, nr_zones); zones 151 drivers/md/dm-zoned-metadata.c struct dm_zone *zones; zones 192 drivers/md/dm-zoned-metadata.c return ((unsigned int)(zone - zmd->zones)); zones 1145 drivers/md/dm-zoned-metadata.c kfree(zmd->zones); zones 1146 drivers/md/dm-zoned-metadata.c zmd->zones = NULL; zones 1176 drivers/md/dm-zoned-metadata.c zmd->zones = kcalloc(dev->nr_zones, sizeof(struct dm_zone), GFP_KERNEL); zones 1177 drivers/md/dm-zoned-metadata.c if (!zmd->zones) zones 1197 drivers/md/dm-zoned-metadata.c zone = zmd->zones; zones 1305 drivers/md/dm-zoned-metadata.c return &zmd->zones[zone_id]; zones 444 drivers/md/dm.c struct blk_zone *zones, unsigned int *nr_zones) zones 482 drivers/md/dm.c ret = tgt->type->report_zones(tgt, sector, zones, nr_zones); zones 1224 drivers/md/dm.c struct blk_zone *zones, unsigned int *nr_zones) zones 1238 drivers/md/dm.c zone = zones + i; zones 577 drivers/media/tuners/mt2063.c struct MT2063_FIFZone_t zones[MT2063_MAX_ZONES]; zones 621 drivers/media/tuners/mt2063.c if ((j > 0) && (tmpMin < zones[j - 1].max_)) zones 622 drivers/media/tuners/mt2063.c zones[j - 1].max_ = tmpMax; zones 625 drivers/media/tuners/mt2063.c zones[j].min_ = tmpMin; zones 626 drivers/media/tuners/mt2063.c zones[j].max_ = tmpMax; zones 645 drivers/media/tuners/mt2063.c bestDiff = zones[0].min_; zones 647 drivers/media/tuners/mt2063.c if (abs(zones[i].min_) < abs(bestDiff)) zones 648 drivers/media/tuners/mt2063.c bestDiff = zones[i].min_; zones 649 drivers/media/tuners/mt2063.c if (abs(zones[i].max_) < abs(bestDiff)) zones 650 drivers/media/tuners/mt2063.c bestDiff = zones[i].max_; zones 462 drivers/mtd/sm_ftl.c struct ftl_zone *zone = &ftl->zones[zone_num]; zones 746 drivers/mtd/sm_ftl.c struct ftl_zone *zone = &ftl->zones[zone_num]; zones 873 drivers/mtd/sm_ftl.c zone = &ftl->zones[zone_num]; zones 933 drivers/mtd/sm_ftl.c zone = &ftl->zones[zone_num]; zones 1146 drivers/mtd/sm_ftl.c ftl->zones = kcalloc(ftl->zone_count, sizeof(struct ftl_zone), zones 1148 drivers/mtd/sm_ftl.c if (!ftl->zones) zones 1206 drivers/mtd/sm_ftl.c kfree(ftl->zones); zones 1226 drivers/mtd/sm_ftl.c if (!ftl->zones[i].initialized) zones 1229 drivers/mtd/sm_ftl.c kfree(ftl->zones[i].lba_to_phys_table); zones 1230 drivers/mtd/sm_ftl.c kfifo_free(&ftl->zones[i].free_sectors); zones 1235 drivers/mtd/sm_ftl.c kfree(ftl->zones); zones 29 drivers/mtd/sm_ftl.h struct ftl_zone *zones; /* FTL tables for each zone */ zones 226 drivers/net/ethernet/mellanox/mlx4/alloc.c struct mlx4_zone_allocator *zones = kmalloc(sizeof(*zones), GFP_KERNEL); zones 228 drivers/net/ethernet/mellanox/mlx4/alloc.c if (NULL == zones) zones 231 drivers/net/ethernet/mellanox/mlx4/alloc.c INIT_LIST_HEAD(&zones->entries); zones 232 drivers/net/ethernet/mellanox/mlx4/alloc.c INIT_LIST_HEAD(&zones->prios); zones 233 drivers/net/ethernet/mellanox/mlx4/alloc.c spin_lock_init(&zones->lock); zones 234 drivers/net/ethernet/mellanox/mlx4/alloc.c zones->last_uid = 0; zones 235 drivers/net/ethernet/mellanox/mlx4/alloc.c zones->mask = 0; zones 236 drivers/net/ethernet/mellanox/mlx4/alloc.c zones->flags = flags; zones 238 drivers/net/ethernet/mellanox/mlx4/alloc.c return zones; zones 426 drivers/net/ethernet/mellanox/mlx4/alloc.c struct mlx4_zone_allocator *zones, u32 uid) zones 430 drivers/net/ethernet/mellanox/mlx4/alloc.c list_for_each_entry(zone, &zones->entries, list) { zones 438 drivers/net/ethernet/mellanox/mlx4/alloc.c struct mlx4_bitmap *mlx4_zone_get_bitmap(struct mlx4_zone_allocator *zones, u32 uid) zones 443 drivers/net/ethernet/mellanox/mlx4/alloc.c spin_lock(&zones->lock); zones 445 drivers/net/ethernet/mellanox/mlx4/alloc.c zone = __mlx4_find_zone_by_uid(zones, uid); zones 449 drivers/net/ethernet/mellanox/mlx4/alloc.c spin_unlock(&zones->lock); zones 454 drivers/net/ethernet/mellanox/mlx4/alloc.c int mlx4_zone_remove_one(struct mlx4_zone_allocator *zones, u32 uid) zones 459 drivers/net/ethernet/mellanox/mlx4/alloc.c spin_lock(&zones->lock); zones 461 drivers/net/ethernet/mellanox/mlx4/alloc.c zone = __mlx4_find_zone_by_uid(zones, uid); zones 471 drivers/net/ethernet/mellanox/mlx4/alloc.c spin_unlock(&zones->lock); zones 479 drivers/net/ethernet/mellanox/mlx4/alloc.c struct mlx4_zone_allocator *zones, u32 obj) zones 490 drivers/net/ethernet/mellanox/mlx4/alloc.c list_for_each_entry(zone, &zones->entries, list) { zones 492 drivers/net/ethernet/mellanox/mlx4/alloc.c u32 mobj = (obj - zone->offset) & zones->mask; zones 508 drivers/net/ethernet/mellanox/mlx4/alloc.c u32 mlx4_zone_alloc_entries(struct mlx4_zone_allocator *zones, u32 uid, int count, zones 514 drivers/net/ethernet/mellanox/mlx4/alloc.c spin_lock(&zones->lock); zones 516 drivers/net/ethernet/mellanox/mlx4/alloc.c zone = __mlx4_find_zone_by_uid(zones, uid); zones 524 drivers/net/ethernet/mellanox/mlx4/alloc.c spin_unlock(&zones->lock); zones 529 drivers/net/ethernet/mellanox/mlx4/alloc.c u32 mlx4_zone_free_entries(struct mlx4_zone_allocator *zones, u32 uid, u32 obj, u32 count) zones 534 drivers/net/ethernet/mellanox/mlx4/alloc.c spin_lock(&zones->lock); zones 536 drivers/net/ethernet/mellanox/mlx4/alloc.c zone = __mlx4_find_zone_by_uid(zones, uid); zones 546 drivers/net/ethernet/mellanox/mlx4/alloc.c spin_unlock(&zones->lock); zones 551 drivers/net/ethernet/mellanox/mlx4/alloc.c u32 mlx4_zone_free_entries_unique(struct mlx4_zone_allocator *zones, u32 obj, u32 count) zones 556 drivers/net/ethernet/mellanox/mlx4/alloc.c if (!(zones->flags & MLX4_ZONE_ALLOC_FLAGS_NO_OVERLAP)) zones 559 drivers/net/ethernet/mellanox/mlx4/alloc.c spin_lock(&zones->lock); zones 561 drivers/net/ethernet/mellanox/mlx4/alloc.c zone = __mlx4_find_zone_by_uid_unique(zones, obj); zones 572 drivers/net/ethernet/mellanox/mlx4/alloc.c spin_unlock(&zones->lock); zones 717 drivers/net/ethernet/mellanox/mlx4/mlx4.h struct mlx4_zone_allocator *zones; zones 1467 drivers/net/ethernet/mellanox/mlx4/mlx4.h u32 mlx4_zone_alloc_entries(struct mlx4_zone_allocator *zones, u32 uid, int count, zones 1473 drivers/net/ethernet/mellanox/mlx4/mlx4.h u32 mlx4_zone_free_entries(struct mlx4_zone_allocator *zones, zones 1480 drivers/net/ethernet/mellanox/mlx4/mlx4.h u32 mlx4_zone_free_entries_unique(struct mlx4_zone_allocator *zones, u32 obj, u32 count); zones 1483 drivers/net/ethernet/mellanox/mlx4/mlx4.h struct mlx4_bitmap *mlx4_zone_get_bitmap(struct mlx4_zone_allocator *zones, u32 uid); zones 239 drivers/net/ethernet/mellanox/mlx4/qp.c *base = mlx4_zone_alloc_entries(qp_table->zones, uid, cnt, align, zones 282 drivers/net/ethernet/mellanox/mlx4/qp.c mlx4_zone_free_entries_unique(qp_table->zones, base_qpn, cnt); zones 558 drivers/net/ethernet/mellanox/mlx4/qp.c qp_table->zones = mlx4_zone_allocator_create(MLX4_ZONE_ALLOC_FLAGS_NO_OVERLAP); zones 560 drivers/net/ethernet/mellanox/mlx4/qp.c if (NULL == qp_table->zones) zones 579 drivers/net/ethernet/mellanox/mlx4/qp.c err = mlx4_zone_add_one(qp_table->zones, *bitmap + MLX4_QP_TABLE_ZONE_GENERAL, zones 598 drivers/net/ethernet/mellanox/mlx4/qp.c err = mlx4_zone_add_one(qp_table->zones, *bitmap + MLX4_QP_TABLE_ZONE_RSS, zones 708 drivers/net/ethernet/mellanox/mlx4/qp.c err = mlx4_zone_add_one(qp_table->zones, *bitmap + k, zones 730 drivers/net/ethernet/mellanox/mlx4/qp.c mlx4_zone_allocator_destroy(qp_table->zones); zones 738 drivers/net/ethernet/mellanox/mlx4/qp.c if (qp_table->zones) { zones 745 drivers/net/ethernet/mellanox/mlx4/qp.c mlx4_zone_get_bitmap(qp_table->zones, zones 748 drivers/net/ethernet/mellanox/mlx4/qp.c mlx4_zone_remove_one(qp_table->zones, qp_table->zones_uids[i]); zones 754 drivers/net/ethernet/mellanox/mlx4/qp.c mlx4_zone_allocator_destroy(qp_table->zones); zones 757 drivers/net/ethernet/mellanox/mlx4/qp.c qp_table->zones = NULL; zones 216 drivers/scsi/sd.h struct blk_zone *zones, unsigned int *nr_zones); zones 164 drivers/scsi/sd_zbc.c struct blk_zone *zones, unsigned int *nr_zones) zones 188 drivers/scsi/sd_zbc.c sd_zbc_parse_report(sdkp, buf + offset, zones); zones 189 drivers/scsi/sd_zbc.c zones++; zones 132 drivers/staging/uwb/drp-ie.c struct uwb_drp_alloc *zones; zones 137 drivers/staging/uwb/drp-ie.c zones = drp_ie->allocs; zones 148 drivers/staging/uwb/drp-ie.c if (current_bmp == zones[i].mas_bm) { zones 149 drivers/staging/uwb/drp-ie.c zones[i].zone_bm |= 1 << z; zones 156 drivers/staging/uwb/drp-ie.c zones[next].zone_bm = 1 << z; zones 157 drivers/staging/uwb/drp-ie.c zones[next].mas_bm = current_bmp; zones 166 drivers/staging/uwb/drp-ie.c drp_ie->allocs[i].zone_bm = cpu_to_le16(zones[i].zone_bm); zones 167 drivers/staging/uwb/drp-ie.c drp_ie->allocs[i].mas_bm = cpu_to_le16(zones[i].mas_bm); zones 64 drivers/thermal/intel/x86_pkg_temp_thermal.c static struct zone_device **zones; zones 101 drivers/thermal/intel/x86_pkg_temp_thermal.c return zones[id]; zones 372 drivers/thermal/intel/x86_pkg_temp_thermal.c zones[id] = zonedev; zones 427 drivers/thermal/intel/x86_pkg_temp_thermal.c zones[topology_logical_die_id(cpu)] = NULL; zones 494 drivers/thermal/intel/x86_pkg_temp_thermal.c zones = kcalloc(max_id, sizeof(struct zone_device *), zones 496 drivers/thermal/intel/x86_pkg_temp_thermal.c if (!zones) zones 515 drivers/thermal/intel/x86_pkg_temp_thermal.c kfree(zones); zones 527 drivers/thermal/intel/x86_pkg_temp_thermal.c kfree(zones); zones 30 drivers/thermal/tegra/tegra-bpmp-thermal.c struct tegra_bpmp_thermal_zone **zones; zones 109 drivers/thermal/tegra/tegra-bpmp-thermal.c if (tegra->zones[i]->idx != req->host_trip_reached.zone) zones 112 drivers/thermal/tegra/tegra-bpmp-thermal.c schedule_work(&tegra->zones[i]->tz_device_update_work); zones 176 drivers/thermal/tegra/tegra-bpmp-thermal.c tegra->zones = devm_kcalloc(&pdev->dev, max_num_zones, zones 177 drivers/thermal/tegra/tegra-bpmp-thermal.c sizeof(*tegra->zones), GFP_KERNEL); zones 178 drivers/thermal/tegra/tegra-bpmp-thermal.c if (!tegra->zones) zones 211 drivers/thermal/tegra/tegra-bpmp-thermal.c tegra->zones[tegra->num_zones++] = zone; zones 59 fs/btrfs/reada.c struct reada_zone *zones[BTRFS_MAX_MIRRORS]; zones 365 fs/btrfs/reada.c re->zones[re->nzones++] = zone; zones 409 fs/btrfs/reada.c dev = re->zones[nzones]->device; zones 436 fs/btrfs/reada.c dev = re->zones[nzones]->device; zones 461 fs/btrfs/reada.c zone = re->zones[nzones]; zones 497 fs/btrfs/reada.c struct reada_zone *zone = re->zones[i]; zones 505 fs/btrfs/reada.c struct reada_zone *zone = re->zones[i]; zones 728 fs/btrfs/reada.c if (re->zones[i]->device == dev) { zones 879 fs/btrfs/reada.c re->zones[i]->start, zones 880 fs/btrfs/reada.c re->zones[i]->end); zones 881 fs/btrfs/reada.c for (j = 0; j < re->zones[i]->ndevs; ++j) { zones 883 fs/btrfs/reada.c re->zones[i]->devs[j]->devid); zones 911 fs/btrfs/reada.c re->zones[i]->start, zones 912 fs/btrfs/reada.c re->zones[i]->end); zones 913 fs/btrfs/reada.c for (j = 0; j < re->zones[i]->ndevs; ++j) { zones 915 fs/btrfs/reada.c re->zones[i]->devs[j]->devid); zones 2870 fs/f2fs/super.c struct blk_zone *zones; zones 2900 fs/f2fs/super.c zones = f2fs_kzalloc(sbi, zones 2904 fs/f2fs/super.c if (!zones) zones 2908 fs/f2fs/super.c while (zones && sector < nr_sectors) { zones 2911 fs/f2fs/super.c err = blkdev_report_zones(bdev, sector, zones, &nr_zones); zones 2920 fs/f2fs/super.c if (zones[i].type != BLK_ZONE_TYPE_CONVENTIONAL) zones 2922 fs/f2fs/super.c sector += zones[i].len; zones 2927 fs/f2fs/super.c kvfree(zones); zones 73 include/drm/ttm/ttm_memory.h struct ttm_mem_zone *zones[TTM_MEM_MAX_ZONES]; zones 361 include/linux/blkdev.h sector_t sector, struct blk_zone *zones, zones 1712 include/linux/blkdev.h struct blk_zone *zones, unsigned int *nr_zones); zones 97 include/linux/device-mapper.h struct blk_zone *zones, zones 426 include/linux/device-mapper.h struct blk_zone *zones, unsigned int *nr_zones); zones 506 include/sound/soc.h struct snd_soc_jack_zone *zones); zones 50 include/sound/soundfont.h struct snd_sf_zone *zones; /* Font information */ zones 119 include/uapi/linux/blkzoned.h struct blk_zone zones[0]; zones 378 kernel/power/snapshot.c struct list_head zones; zones 550 kernel/power/snapshot.c bm->cur.zone = list_entry(bm->zones.next, struct mem_zone_bm_rtree, zones 652 kernel/power/snapshot.c INIT_LIST_HEAD(&bm->zones); zones 667 kernel/power/snapshot.c list_add_tail(&zone->list, &bm->zones); zones 690 kernel/power/snapshot.c list_for_each_entry(zone, &bm->zones, list) zones 695 kernel/power/snapshot.c INIT_LIST_HEAD(&bm->zones); zones 722 kernel/power/snapshot.c list_for_each_entry(curr, &bm->zones, list) { zones 857 kernel/power/snapshot.c if (!list_is_last(&bm->cur.zone->list, &bm->zones)) { zones 930 kernel/power/snapshot.c list_for_each_entry(zone, &bm->zones, list) zones 962 mm/vmstat.c struct zone *zones = NODE_DATA(node)->node_zones; zones 967 mm/vmstat.c count += zone_page_state(zones + i, item); zones 979 mm/vmstat.c struct zone *zones = NODE_DATA(node)->node_zones; zones 984 mm/vmstat.c count += zone_numa_state_snapshot(zones + i, item); zones 136 sound/soc/soc-jack.c struct snd_soc_jack_zone *zones) zones 141 sound/soc/soc-jack.c INIT_LIST_HEAD(&zones[i].list); zones 142 sound/soc/soc-jack.c list_add(&(zones[i].list), &jack->jack_zones); zones 282 sound/synth/emux/soundfont.c sf->zones = NULL; zones 354 sound/synth/emux/soundfont.c zp->next = sf->zones; zones 355 sound/synth/emux/soundfont.c sf->zones = zp; zones 432 sound/synth/emux/soundfont.c for (zp = sf->zones; zp; prevp = zp, zp = zp->next) { zones 444 sound/synth/emux/soundfont.c zp->next = sf->zones; zones 445 sound/synth/emux/soundfont.c sf->zones = zp; zones 484 sound/synth/emux/soundfont.c for (p = sf->zones; p; p = next) { zones 492 sound/synth/emux/soundfont.c sf->zones = next; zones 550 sound/synth/emux/soundfont.c for (zone = sf->zones; zone; zone = zone->next) { zones 1145 sound/synth/emux/soundfont.c for (cur = sf->zones; cur; cur = cur->next) { zones 1363 sound/synth/emux/soundfont.c for (zp = sf->zones; zp; zp = nextzp) { zones 1458 sound/synth/emux/soundfont.c for (zp = sf->zones; zp; zp = nextzp) { zones 1462 sound/synth/emux/soundfont.c sf->zones = nextzp;