/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 …]
|
D | mlx4.h | 717 struct mlx4_zone_allocator *zones; member 1467 u32 mlx4_zone_alloc_entries(struct mlx4_zone_allocator *zones, u32 uid, int count, 1473 u32 mlx4_zone_free_entries(struct mlx4_zone_allocator *zones, 1480 u32 mlx4_zone_free_entries_unique(struct mlx4_zone_allocator *zones, u32 obj, u32 count); 1483 struct mlx4_bitmap *mlx4_zone_get_bitmap(struct mlx4_zone_allocator *zones, u32 uid);
|
/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() 90 memcpy(&zone, &dev->zones[first_zone + i], in null_report_zones() 104 struct blk_zone *zone = &dev->zones[null_zone_no(dev, sector)]; in null_zone_valid_read_len() 123 struct blk_zone *zone = &dev->zones[zno]; in null_zone_write() 155 struct blk_zone *zone = &dev->zones[null_zone_no(dev, sector)]; in null_zone_reset()
|
D | null_blk.h | 48 struct blk_zone *zones; member
|
/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()
|
/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
|
/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()
|
/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()
|
/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()
|
/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 …]
|
D | sm_ftl.h | 29 struct ftl_zone *zones; /* FTL tables for each zone */ member
|
/drivers/media/tuners/ |
D | mt2063.c | 577 struct MT2063_FIFZone_t zones[MT2063_MAX_ZONES]; in MT2063_ChooseFirstIF() local 621 if ((j > 0) && (tmpMin < zones[j - 1].max_)) in MT2063_ChooseFirstIF() 622 zones[j - 1].max_ = tmpMax; in MT2063_ChooseFirstIF() 625 zones[j].min_ = tmpMin; in MT2063_ChooseFirstIF() 626 zones[j].max_ = tmpMax; in MT2063_ChooseFirstIF() 645 bestDiff = zones[0].min_; in MT2063_ChooseFirstIF() 647 if (abs(zones[i].min_) < abs(bestDiff)) in MT2063_ChooseFirstIF() 648 bestDiff = zones[i].min_; in MT2063_ChooseFirstIF() 649 if (abs(zones[i].max_) < abs(bestDiff)) in MT2063_ChooseFirstIF() 650 bestDiff = zones[i].max_; in MT2063_ChooseFirstIF()
|
/drivers/of/unittest-data/ |
D | overlay.dts | 42 hvac-zones = < 12 5 >;
|
D | overlay_base.dts | 55 hvac-zones = < 14 >;
|
/drivers/md/ |
D | dm-zoned-metadata.c | 150 struct dm_zone *zones; member 191 return ((unsigned int)(zone - zmd->zones)); in dmz_id() 1094 struct dm_zone *zone = &zmd->zones[idx]; in dmz_init_zone() 1149 kfree(zmd->zones); in dmz_drop_zones() 1150 zmd->zones = NULL; in dmz_drop_zones() 1167 zmd->zones = kcalloc(dev->nr_zones, sizeof(struct dm_zone), GFP_KERNEL); in dmz_init_zones() 1168 if (!zmd->zones) in dmz_init_zones() 1267 return &zmd->zones[zone_id]; in dmz_get()
|
/drivers/powercap/ |
D | Kconfig | 12 power zones representing parts of the system that can be subject to power
|
/drivers/acpi/ |
D | Kconfig | 314 This driver supports ACPI thermal zones. Most mobile and 315 some desktop systems support ACPI thermal zones. It is HIGHLY
|
/drivers/iio/light/ |
D | Kconfig | 258 of the chip through defining five light zones and three sets of
|
/drivers/platform/x86/ |
D | Kconfig | 84 zones on Alienware machines that don't contain a dedicated AlienFX
|