Home
last modified time | relevance | path

Searched refs:zone (Results 1 – 25 of 35) sorted by relevance

12

/drivers/gpu/drm/ttm/
Dttm_memory.c76 struct ttm_mem_zone *zone = in ttm_mem_zone_kobj_release() local
80 zone->name, (unsigned long long)zone->used_mem >> 10); in ttm_mem_zone_kobj_release()
81 kfree(zone); in ttm_mem_zone_kobj_release()
88 struct ttm_mem_zone *zone = in ttm_mem_zone_show() local
92 spin_lock(&zone->glob->lock); in ttm_mem_zone_show()
94 val = zone->zone_mem; in ttm_mem_zone_show()
96 val = zone->emer_mem; in ttm_mem_zone_show()
98 val = zone->max_mem; in ttm_mem_zone_show()
100 val = zone->swap_limit; in ttm_mem_zone_show()
102 val = zone->used_mem; in ttm_mem_zone_show()
[all …]
/drivers/net/ethernet/mellanox/mlx4/
Dalloc.c251 struct mlx4_zone_entry *zone = kmalloc(sizeof(*zone), GFP_KERNEL); in mlx4_zone_add_one() local
253 if (NULL == zone) in mlx4_zone_add_one()
256 zone->flags = flags; in mlx4_zone_add_one()
257 zone->bitmap = bitmap; in mlx4_zone_add_one()
258 zone->use_rr = (flags & MLX4_ZONE_USE_RR) ? MLX4_USE_RR : 0; in mlx4_zone_add_one()
259 zone->priority = priority; in mlx4_zone_add_one()
260 zone->offset = offset; in mlx4_zone_add_one()
264 zone->uid = zone_alloc->last_uid++; in mlx4_zone_add_one()
265 zone->allocator = zone_alloc; in mlx4_zone_add_one()
275 list_add_tail(&zone->prio_list, &it->prio_list); in mlx4_zone_add_one()
[all …]
/drivers/mtd/
Dsm_ftl.c195 static loff_t sm_mkoffset(struct sm_ftl *ftl, int zone, int block, int boffset) in sm_mkoffset() argument
198 WARN_ON(zone < 0 || zone >= ftl->zone_count); in sm_mkoffset()
205 return (zone * SM_MAX_ZONE_SIZE + block) * ftl->block_size + boffset; in sm_mkoffset()
210 int *zone, int *block, int *boffset) in sm_break_offset() argument
215 *zone = offset >= ftl->zone_count ? -1 : offset; in sm_break_offset()
238 int zone, int block, int boffset, in sm_read_sector() argument
268 if (zone == 0 && block == ftl->cis_block && boffset == in sm_read_sector()
279 ret = mtd_read_oob(mtd, sm_mkoffset(ftl, zone, block, boffset), &ops); in sm_read_sector()
284 block, zone, ret); in sm_read_sector()
302 " as bad" , block, zone); in sm_read_sector()
[all …]
/drivers/thermal/int340x_thermal/
Dint340x_thermal_zone.c22 static int int340x_thermal_get_zone_temp(struct thermal_zone_device *zone, in int340x_thermal_get_zone_temp() argument
25 struct int34x_thermal_zone *d = zone->devdata; in int340x_thermal_get_zone_temp()
30 return d->override_ops->get_temp(zone, temp); in int340x_thermal_get_zone_temp()
51 static int int340x_thermal_get_trip_temp(struct thermal_zone_device *zone, in int340x_thermal_get_trip_temp() argument
54 struct int34x_thermal_zone *d = zone->devdata; in int340x_thermal_get_trip_temp()
58 return d->override_ops->get_trip_temp(zone, trip, temp); in int340x_thermal_get_trip_temp()
83 static int int340x_thermal_get_trip_type(struct thermal_zone_device *zone, in int340x_thermal_get_trip_type() argument
87 struct int34x_thermal_zone *d = zone->devdata; in int340x_thermal_get_trip_type()
91 return d->override_ops->get_trip_type(zone, trip, type); in int340x_thermal_get_trip_type()
116 static int int340x_thermal_set_trip_temp(struct thermal_zone_device *zone, in int340x_thermal_set_trip_temp() argument
[all …]
Dint340x_thermal_zone.h40 struct thermal_zone_device *zone; member
67 thermal_zone_device_update(tzone->zone, event); in int340x_thermal_zone_device_update()
/drivers/staging/rts5208/
Dxd.c878 xd_card->zone = vmalloc(size); in xd_init_l2p_tbl()
879 if (!xd_card->zone) { in xd_init_l2p_tbl()
885 xd_card->zone[i].build_flag = 0; in xd_init_l2p_tbl()
886 xd_card->zone[i].l2p_table = NULL; in xd_init_l2p_tbl()
887 xd_card->zone[i].free_table = NULL; in xd_init_l2p_tbl()
888 xd_card->zone[i].get_index = 0; in xd_init_l2p_tbl()
889 xd_card->zone[i].set_index = 0; in xd_init_l2p_tbl()
890 xd_card->zone[i].unused_blk_cnt = 0; in xd_init_l2p_tbl()
896 static inline void free_zone(struct zone_entry *zone) in free_zone() argument
898 if (!zone) in free_zone()
[all …]
/drivers/iio/light/
Dlm3533-als.c61 atomic_t zone; member
90 static int _lm3533_als_get_zone(struct iio_dev *indio_dev, u8 *zone) in _lm3533_als_get_zone() argument
103 *zone = min_t(u8, val, LM3533_ALS_ZONE_MAX); in _lm3533_als_get_zone()
108 static int lm3533_als_get_zone(struct iio_dev *indio_dev, u8 *zone) in lm3533_als_get_zone() argument
114 *zone = atomic_read(&als->zone); in lm3533_als_get_zone()
116 ret = _lm3533_als_get_zone(indio_dev, zone); in lm3533_als_get_zone()
128 static inline u8 lm3533_als_get_target_reg(unsigned channel, unsigned zone) in lm3533_als_get_target_reg() argument
130 return LM3533_REG_ALS_TARGET_BASE + 5 * channel + zone; in lm3533_als_get_target_reg()
134 unsigned zone, u8 *val) in lm3533_als_get_target() argument
143 if (zone > LM3533_ALS_ZONE_MAX) in lm3533_als_get_target()
[all …]
/drivers/thermal/
Drcar_thermal.c64 struct thermal_zone_device *zone; member
76 #define rcar_zone_to_priv(zone) ((zone)->devdata) argument
243 static int rcar_thermal_get_temp(struct thermal_zone_device *zone, int *temp) in rcar_thermal_get_temp() argument
245 struct rcar_thermal_priv *priv = rcar_zone_to_priv(zone); in rcar_thermal_get_temp()
250 static int rcar_thermal_get_trip_type(struct thermal_zone_device *zone, in rcar_thermal_get_trip_type() argument
253 struct rcar_thermal_priv *priv = rcar_zone_to_priv(zone); in rcar_thermal_get_trip_type()
269 static int rcar_thermal_get_trip_temp(struct thermal_zone_device *zone, in rcar_thermal_get_trip_temp() argument
272 struct rcar_thermal_priv *priv = rcar_zone_to_priv(zone); in rcar_thermal_get_trip_temp()
288 static int rcar_thermal_notify(struct thermal_zone_device *zone, in rcar_thermal_notify() argument
291 struct rcar_thermal_priv *priv = rcar_zone_to_priv(zone); in rcar_thermal_notify()
[all …]
Dof-thermal.c402 thermal_zone_of_add_sensor(struct device_node *zone, in thermal_zone_of_add_sensor() argument
409 tzd = thermal_zone_get_zone_by_name(zone->name); in thermal_zone_of_add_sensor()
974 struct thermal_zone_device *zone; in of_parse_thermal_zones() local
1010 zone = thermal_zone_device_register(child->name, tz->ntrips, in of_parse_thermal_zones()
1015 if (IS_ERR(zone)) { in of_parse_thermal_zones()
1017 PTR_ERR(zone)); in of_parse_thermal_zones()
1057 struct thermal_zone_device *zone; in of_thermal_destroy_zones() local
1059 zone = thermal_zone_get_zone_by_name(child->name); in of_thermal_destroy_zones()
1060 if (IS_ERR(zone)) in of_thermal_destroy_zones()
1063 thermal_zone_device_unregister(zone); in of_thermal_destroy_zones()
[all …]
DKconfig10 zone and cooling device.
11 Each thermal zone contains its own temperature, trip points,
51 thermal zone but the choice here takes precedence.
75 devices based on their 'contribution' to a zone. The
169 Enable this option to make a emul_temp sysfs node in thermal zone
270 management framework. A thermal zone with several trip points will be
272 thermal zone if trip points reached.
291 bound to thermal zone trip points. When a trip point reached, the
313 thermal zone. Each package will have its own thermal zone. There are
336 thermal zone. There are two trip points. One of the trip point can
[all …]
/drivers/hwmon/
Dscpi-hwmon.c49 struct scpi_thermal_zone *zone = dev; in scpi_read_temp() local
50 struct scpi_sensors *scpi_sensors = zone->scpi_sensors; in scpi_read_temp()
52 struct sensor_data *sensor = &scpi_sensors->data[zone->sensor_id]; in scpi_read_temp()
220 struct scpi_thermal_zone *zone; in scpi_hwmon_probe() local
225 zone = devm_kzalloc(dev, sizeof(*zone), GFP_KERNEL); in scpi_hwmon_probe()
226 if (!zone) in scpi_hwmon_probe()
229 zone->sensor_id = i; in scpi_hwmon_probe()
230 zone->scpi_sensors = scpi_sensors; in scpi_hwmon_probe()
233 zone, in scpi_hwmon_probe()
242 devm_kfree(dev, zone); in scpi_hwmon_probe()
Dlm85.c234 static int ZONE_TO_REG(int zone) in ZONE_TO_REG() argument
239 if (zone == lm85_zone_map[i]) in ZONE_TO_REG()
323 struct lm85_zone zone[3]; member
516 data->zone[i].range = val >> 4; in lm85_update_device()
519 data->zone[i].limit = in lm85_update_device()
521 data->zone[i].critical = in lm85_update_device()
527 data->zone[i].limit -= 64; in lm85_update_device()
528 data->zone[i].critical -= 64; in lm85_update_device()
539 data->zone[0].hyst = i >> 4; in lm85_update_device()
540 data->zone[1].hyst = i & 0x0f; in lm85_update_device()
[all …]
/drivers/md/
Draid0.c80 struct strip_zone *zone; in create_strip_zones() local
166 zone = &conf->strip_zone[0]; in create_strip_zones()
215 zone->nb_dev = cnt; in create_strip_zones()
216 zone->zone_end = smallest->sectors * cnt; in create_strip_zones()
218 curr_zone_end = zone->zone_end; in create_strip_zones()
225 zone = conf->strip_zone + i; in create_strip_zones()
229 zone->dev_start = smallest->sectors; in create_strip_zones()
235 if (rdev->sectors <= zone->dev_start) { in create_strip_zones()
255 zone->nb_dev = c; in create_strip_zones()
256 sectors = (smallest->sectors - zone->dev_start) * c; in create_strip_zones()
[all …]
/drivers/usb/storage/
Dalauda.c554 unsigned int zone) in alauda_find_unused_pba() argument
556 u16 *pba_to_lba = info->pba_to_lba[zone]; in alauda_find_unused_pba()
561 return (zone << info->zoneshift) + i; in alauda_find_unused_pba()
570 static int alauda_read_map(struct us_data *us, unsigned int zone) in alauda_read_map() argument
578 unsigned int zone_base_lba = zone * uzonesize; in alauda_read_map()
579 unsigned int zone_base_pba = zone * zonesize; in alauda_read_map()
587 usb_stor_dbg(us, "Mapping blocks for zone %d\n", zone); in alauda_read_map()
678 MEDIA_INFO(us).lba_to_pba[zone] = lba_to_pba; in alauda_read_map()
679 MEDIA_INFO(us).pba_to_lba[zone] = pba_to_lba; in alauda_read_map()
694 static void alauda_ensure_map_for_zone(struct us_data *us, unsigned int zone) in alauda_ensure_map_for_zone() argument
[all …]
Dsddr55.c725 int zone = i / 1024; in sddr55_read_map() local
753 if (info->lba_to_pba[lba + zone * 1000] != NOT_ALLOCATED && in sddr55_read_map()
757 lba + zone * 1000); in sddr55_read_map()
764 info->lba_to_pba[lba + zone * 1000] = i; in sddr55_read_map()
/drivers/uwb/
Ddrp-ie.c269 void uwb_drp_ie_single_zone_to_bm(struct uwb_mas_bm *bm, u8 zone, u16 mas_bm) in uwb_drp_ie_single_zone_to_bm() argument
277 set_bit(zone * UWB_NUM_ZONES + mas, bm->bm); in uwb_drp_ie_single_zone_to_bm()
302 u8 zone; in uwb_drp_ie_to_bm() local
311 for (zone = 0; zone < UWB_NUM_ZONES; zone++) { in uwb_drp_ie_to_bm()
312 zone_mask = 1 << zone; in uwb_drp_ie_to_bm()
314 uwb_drp_ie_single_zone_to_bm(bm, zone, mas_bm); in uwb_drp_ie_to_bm()
/drivers/net/fjes/
Dfjes_hw.c689 (hw->ep_shm_info[hw->my_epid].zone == in fjes_hw_epid_is_same_zone()
693 return (hw->ep_shm_info[epid].zone == in fjes_hw_epid_is_same_zone()
694 hw->ep_shm_info[hw->my_epid].zone); in fjes_hw_epid_is_same_zone()
942 struct my_s {u8 es_status; u8 zone; } *info; in fjes_hw_update_zone_task() member
981 hw->ep_shm_info[epidx].zone = in fjes_hw_update_zone_task()
982 info[epidx].zone; in fjes_hw_update_zone_task()
990 if ((info[epidx].zone != in fjes_hw_update_zone_task()
994 (info[epidx].zone == in fjes_hw_update_zone_task()
995 info[hw->my_epid].zone)) in fjes_hw_update_zone_task()
1003 if ((info[epidx].zone == in fjes_hw_update_zone_task()
[all …]
Dfjes_hw.h150 u8 zone; member
245 u8 zone; member
/drivers/thermal/tegra/
Dsoctherm.c334 struct tegra_thermctl_zone *zone = data; in tegra_thermctl_get_temp() local
337 val = readl(zone->reg); in tegra_thermctl_get_temp()
338 val = REG_GET_MASK(val, zone->sg->sensor_temp_mask); in tegra_thermctl_get_temp()
355 struct tegra_thermctl_zone *zone = data; in tegra_thermctl_set_trip_temp() local
356 struct thermal_zone_device *tz = zone->tz; in tegra_thermctl_set_trip_temp()
357 struct tegra_soctherm *ts = zone->ts; in tegra_thermctl_set_trip_temp()
358 const struct tegra_tsensor_group *sg = zone->sg; in tegra_thermctl_set_trip_temp()
359 struct device *dev = zone->dev; in tegra_thermctl_set_trip_temp()
1390 struct tegra_thermctl_zone *zone = in tegra_soctherm_probe() local
1391 devm_kzalloc(&pdev->dev, sizeof(*zone), GFP_KERNEL); in tegra_soctherm_probe()
[all …]
/drivers/thermal/qcom/
DKconfig8 up in Sysfs as a thermal zone with multiple trip points. Disabling the
9 thermal zone device via the mode file results in disabling the sensor.
/drivers/platform/x86/
Dalienware-wmi.c233 static int parse_rgb(const char *buf, struct platform_zone *zone) in parse_rgb() argument
253 zone->colors = repackager.cp; in parse_rgb()
273 static int alienware_update_led(struct platform_zone *zone) in alienware_update_led() argument
282 wmax_basic_args.led_mask = 1 << zone->location; in alienware_update_led()
283 wmax_basic_args.colors = zone->colors; in alienware_update_led()
291 legacy_args.colors = zone->colors; in alienware_update_led()
300 method_id = zone->location + 1; in alienware_update_led()
/drivers/base/
Dmemory.c396 struct zone *zone; in show_valid_zones() local
406 zone = page_zone(pfn_to_page(valid_start)); in show_valid_zones()
410 sprintf(buf, "%s", zone->name); in show_valid_zones()
416 strcat(buf, (zone + zone_shift)->name); in show_valid_zones()
423 strcat(buf, (zone + zone_shift)->name); in show_valid_zones()
/drivers/block/
Dpktcdvd.c1093 static struct packet_data *pkt_get_packet_data(struct pktcdvd_device *pd, int zone) in pkt_get_packet_data() argument
1098 if (pkt->sector == zone || pkt->list.next == &pd->cdrw.pkt_free_list) { in pkt_get_packet_data()
1100 if (pkt->sector != zone) in pkt_get_packet_data()
1199 sector_t zone = 0; /* Suppress gcc warning */ in pkt_handle_queue() local
1224 zone = get_zone(bio->bi_iter.bi_sector, pd); in pkt_handle_queue()
1226 if (p->sector == zone) { in pkt_handle_queue()
1248 pkt = pkt_get_packet_data(pd, zone); in pkt_handle_queue()
1250 pd->current_sector = zone + pd->settings.size; in pkt_handle_queue()
1251 pkt->sector = zone; in pkt_handle_queue()
1260 pkt_dbg(2, pd, "looking for zone %llx\n", (unsigned long long)zone); in pkt_handle_queue()
[all …]
/drivers/net/wireless/rsi/
Drsi_91x_main.c43 void rsi_dbg(u32 zone, const char *fmt, ...) in rsi_dbg() argument
53 if (zone & rsi_zone_enabled) in rsi_dbg()
/drivers/memstick/core/
Dms_block.c174 int zone = msb_get_zone_from_pba(pba); in msb_mark_block_used() local
188 msb->free_block_count[zone]--; in msb_mark_block_used()
194 int zone = msb_get_zone_from_pba(pba); in msb_mark_block_unused() local
207 msb->free_block_count[zone]++; in msb_mark_block_unused()
1078 static u16 msb_get_free_block(struct msb_data *msb, int zone) in msb_get_free_block() argument
1081 int pba = zone * MS_BLOCKS_IN_ZONE; in msb_get_free_block()
1086 if (!msb->free_block_count[zone]) { in msb_get_free_block()
1087 …O free blocks in the zone %d, to use for a write, (media is WORN out) switching to RO mode", zone); in msb_get_free_block()
1092 pos %= msb->free_block_count[zone]; in msb_get_free_block()
1095 msb->free_block_count[zone], pos); in msb_get_free_block()
[all …]

12