Home
last modified time | relevance | path

Searched refs:zones (Results 1 – 14 of 14) sorted by relevance

/drivers/net/ethernet/mellanox/mlx4/
Dalloc.c227 struct mlx4_zone_allocator *zones = kmalloc(sizeof(*zones), GFP_KERNEL); in mlx4_zone_allocator_create() local
229 if (NULL == zones) in mlx4_zone_allocator_create()
232 INIT_LIST_HEAD(&zones->entries); in mlx4_zone_allocator_create()
233 INIT_LIST_HEAD(&zones->prios); in mlx4_zone_allocator_create()
234 spin_lock_init(&zones->lock); in mlx4_zone_allocator_create()
235 zones->last_uid = 0; in mlx4_zone_allocator_create()
236 zones->mask = 0; in mlx4_zone_allocator_create()
237 zones->flags = flags; in mlx4_zone_allocator_create()
239 return zones; in mlx4_zone_allocator_create()
429 struct mlx4_zone_allocator *zones, u32 uid) in __mlx4_find_zone_by_uid() argument
[all …]
Dqp.c239 *base = mlx4_zone_alloc_entries(qp_table->zones, uid, cnt, align, in __mlx4_qp_reserve_range()
281 mlx4_zone_free_entries_unique(qp_table->zones, base_qpn, cnt); in __mlx4_qp_release_range()
557 qp_table->zones = mlx4_zone_allocator_create(MLX4_ZONE_ALLOC_FLAGS_NO_OVERLAP); in mlx4_create_zones()
559 if (NULL == qp_table->zones) in mlx4_create_zones()
578 err = mlx4_zone_add_one(qp_table->zones, *bitmap + MLX4_QP_TABLE_ZONE_GENERAL, in mlx4_create_zones()
597 err = mlx4_zone_add_one(qp_table->zones, *bitmap + MLX4_QP_TABLE_ZONE_RSS, in mlx4_create_zones()
707 err = mlx4_zone_add_one(qp_table->zones, *bitmap + k, in mlx4_create_zones()
729 mlx4_zone_allocator_destroy(qp_table->zones); in mlx4_create_zones()
737 if (qp_table->zones) { in mlx4_cleanup_qp_zones()
744 mlx4_zone_get_bitmap(qp_table->zones, in mlx4_cleanup_qp_zones()
[all …]
Dmlx4.h718 struct mlx4_zone_allocator *zones; member
1459 u32 mlx4_zone_alloc_entries(struct mlx4_zone_allocator *zones, u32 uid, int count,
1465 u32 mlx4_zone_free_entries(struct mlx4_zone_allocator *zones,
1472 u32 mlx4_zone_free_entries_unique(struct mlx4_zone_allocator *zones, u32 obj, u32 count);
1475 struct mlx4_bitmap *mlx4_zone_get_bitmap(struct mlx4_zone_allocator *zones, u32 uid);
/drivers/uwb/
Ddrp-ie.c145 struct uwb_drp_alloc *zones; in uwb_drp_ie_from_bm() local
150 zones = drp_ie->allocs; in uwb_drp_ie_from_bm()
161 if (current_bmp == zones[i].mas_bm) { in uwb_drp_ie_from_bm()
162 zones[i].zone_bm |= 1 << z; in uwb_drp_ie_from_bm()
169 zones[next].zone_bm = 1 << z; in uwb_drp_ie_from_bm()
170 zones[next].mas_bm = current_bmp; in uwb_drp_ie_from_bm()
179 drp_ie->allocs[i].zone_bm = cpu_to_le16(zones[i].zone_bm); in uwb_drp_ie_from_bm()
180 drp_ie->allocs[i].mas_bm = cpu_to_le16(zones[i].mas_bm); in uwb_drp_ie_from_bm()
/drivers/gpu/drm/ttm/
Dttm_memory.c189 zone = glob->zones[i]; in ttm_zones_above_swap_target()
272 glob->zones[glob->num_zones++] = zone; in ttm_mem_init_kernel_zone()
309 glob->zones[glob->num_zones++] = zone; in ttm_mem_init_highmem_zone()
356 glob->zones[glob->num_zones++] = zone; in ttm_mem_init_dma32_zone()
393 zone = glob->zones[i]; in ttm_mem_global_init()
419 zone = glob->zones[i]; in ttm_mem_global_release()
436 zone = glob->zones[i]; in ttm_check_swapping()
459 zone = glob->zones[i]; in ttm_mem_global_free_zone()
485 zone = glob->zones[i]; in ttm_mem_global_reserve()
498 zone = glob->zones[i]; in ttm_mem_global_reserve()
/drivers/leds/
Dleds-lm3530.c125 u8 zones[LM3530_ALS_ZB_MAX]; member
177 als->zones[i] = (((als_vmin + LM3530_ALS_OFFSET_mV) + in lm3530_als_configure()
272 reg_val[5] = als.zones[0]; /* LM3530_ALS_ZB0_REG */ in lm3530_init_registers()
273 reg_val[6] = als.zones[1]; /* LM3530_ALS_ZB1_REG */ in lm3530_init_registers()
274 reg_val[7] = als.zones[2]; /* LM3530_ALS_ZB2_REG */ in lm3530_init_registers()
275 reg_val[8] = als.zones[3]; /* LM3530_ALS_ZB3_REG */ in lm3530_init_registers()
/drivers/thermal/tegra/
DKconfig8 Tegra systems-on-chip. The driver supports four thermal zones
10 zones to manage temperatures. This option is also required for the
/drivers/mtd/
Dsm_ftl.c459 struct ftl_zone *zone = &ftl->zones[zone_num]; in sm_erase_block()
761 struct ftl_zone *zone = &ftl->zones[zone_num]; in sm_init_zone()
885 zone = &ftl->zones[zone_num]; in sm_get_zone()
945 zone = &ftl->zones[zone_num]; in sm_cache_flush()
1159 ftl->zones = kzalloc(sizeof(struct ftl_zone) * ftl->zone_count, in sm_add_mtd()
1161 if (!ftl->zones) in sm_add_mtd()
1219 kfree(ftl->zones); in sm_add_mtd()
1239 if (!ftl->zones[i].initialized) in sm_remove_dev()
1242 kfree(ftl->zones[i].lba_to_phys_table); in sm_remove_dev()
1243 kfifo_free(&ftl->zones[i].free_sectors); in sm_remove_dev()
[all …]
Dsm_ftl.h32 struct ftl_zone *zones; /* FTL tables for each zone */ member
/drivers/media/tuners/
Dmt2063.c586 struct MT2063_FIFZone_t zones[MT2063_MAX_ZONES]; in MT2063_ChooseFirstIF() local
630 if ((j > 0) && (tmpMin < zones[j - 1].max_)) in MT2063_ChooseFirstIF()
631 zones[j - 1].max_ = tmpMax; in MT2063_ChooseFirstIF()
634 zones[j].min_ = tmpMin; in MT2063_ChooseFirstIF()
635 zones[j].max_ = tmpMax; in MT2063_ChooseFirstIF()
654 bestDiff = zones[0].min_; in MT2063_ChooseFirstIF()
656 if (abs(zones[i].min_) < abs(bestDiff)) in MT2063_ChooseFirstIF()
657 bestDiff = zones[i].min_; in MT2063_ChooseFirstIF()
658 if (abs(zones[i].max_) < abs(bestDiff)) in MT2063_ChooseFirstIF()
659 bestDiff = zones[i].max_; in MT2063_ChooseFirstIF()
/drivers/powercap/
DKconfig11 power zones representing parts of the system that can be subject to power
/drivers/acpi/
DKconfig292 This driver supports ACPI thermal zones. Most mobile and
293 some desktop systems support ACPI thermal zones. It is HIGHLY
/drivers/iio/light/
DKconfig214 of the chip through defining five light zones and three sets of
/drivers/platform/x86/
DKconfig66 zones on Alienware machines that don't contain a dedicated AlienFX