Home
last modified time | relevance | path

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

/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/mtd/
Dsm_ftl.c198 static loff_t sm_mkoffset(struct sm_ftl *ftl, int zone, int block, int boffset) in sm_mkoffset() argument
201 WARN_ON(zone < 0 || zone >= ftl->zone_count); in sm_mkoffset()
208 return (zone * SM_MAX_ZONE_SIZE + block) * ftl->block_size + boffset; in sm_mkoffset()
213 int *zone, int *block, int *boffset) in sm_break_offset() argument
217 *zone = offset >= ftl->zone_count ? -1 : offset; in sm_break_offset()
240 int zone, int block, int boffset, in sm_read_sector() argument
270 if (zone == 0 && block == ftl->cis_block && boffset == in sm_read_sector()
281 ret = mtd_read_oob(mtd, sm_mkoffset(ftl, zone, block, boffset), &ops); in sm_read_sector()
286 block, zone, ret); in sm_read_sector()
304 " as bad" , block, zone); in sm_read_sector()
[all …]
/drivers/staging/rts5139/
Dxd.c739 xd_card->zone = vmalloc(size); in xd_init_l2p_tbl()
740 if (!xd_card->zone) in xd_init_l2p_tbl()
744 xd_card->zone[i].build_flag = 0; in xd_init_l2p_tbl()
745 xd_card->zone[i].l2p_table = NULL; in xd_init_l2p_tbl()
746 xd_card->zone[i].free_table = NULL; in xd_init_l2p_tbl()
747 xd_card->zone[i].get_index = 0; in xd_init_l2p_tbl()
748 xd_card->zone[i].set_index = 0; in xd_init_l2p_tbl()
749 xd_card->zone[i].unused_blk_cnt = 0; in xd_init_l2p_tbl()
755 static inline void free_zone(struct zone_entry *zone) in free_zone() argument
758 if (!zone) in free_zone()
[all …]
Drts51x_chip.h381 struct zone_entry *zone; member
/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 …]
DKconfig31 light zone through sysfs. A threshold event can be generated on zone
32 changes. The ALS-control output values can be set per zone for the
/drivers/md/
Draid0.c86 struct strip_zone *zone; in create_strip_zones() local
156 zone = &conf->strip_zone[0]; in create_strip_zones()
214 zone->nb_dev = cnt; in create_strip_zones()
215 zone->zone_end = smallest->sectors * cnt; in create_strip_zones()
217 curr_zone_end = zone->zone_end; in create_strip_zones()
224 zone = conf->strip_zone + i; in create_strip_zones()
228 zone->dev_start = smallest->sectors; in create_strip_zones()
234 if (rdev->sectors <= zone->dev_start) { in create_strip_zones()
254 zone->nb_dev = c; in create_strip_zones()
255 sectors = (smallest->sectors - zone->dev_start) * c; in create_strip_zones()
[all …]
/drivers/thermal/
Drcar_thermal.c61 struct thermal_zone_device *zone; member
73 #define rcar_zone_to_priv(zone) ((zone)->devdata) argument
203 static int rcar_thermal_get_temp(struct thermal_zone_device *zone, in rcar_thermal_get_temp() argument
206 struct rcar_thermal_priv *priv = rcar_zone_to_priv(zone); in rcar_thermal_get_temp()
218 static int rcar_thermal_get_trip_type(struct thermal_zone_device *zone, in rcar_thermal_get_trip_type() argument
221 struct rcar_thermal_priv *priv = rcar_zone_to_priv(zone); in rcar_thermal_get_trip_type()
237 static int rcar_thermal_get_trip_temp(struct thermal_zone_device *zone, in rcar_thermal_get_trip_temp() argument
240 struct rcar_thermal_priv *priv = rcar_zone_to_priv(zone); in rcar_thermal_get_trip_temp()
256 static int rcar_thermal_notify(struct thermal_zone_device *zone, in rcar_thermal_notify() argument
259 struct rcar_thermal_priv *priv = rcar_zone_to_priv(zone); in rcar_thermal_notify()
[all …]
DKconfig10 zone and cooling device.
11 Each thermal zone contains its own temperature, trip points,
42 devices based on their 'contribution' to a zone. The
85 Enable this option to make a emul_temp sysfs node in thermal zone
139 management framework. A thermal zone with several trip points will be
141 thermal zone if trip points reached.
158 bound to thermal zone trip points. When a trip point reached, the
Dexynos_thermal.c116 #define GET_TRIP(zone) (zone - 2) argument
/drivers/usb/storage/
Dalauda.c553 unsigned int zone) in alauda_find_unused_pba() argument
555 u16 *pba_to_lba = info->pba_to_lba[zone]; in alauda_find_unused_pba()
560 return (zone << info->zoneshift) + i; in alauda_find_unused_pba()
569 static int alauda_read_map(struct us_data *us, unsigned int zone) in alauda_read_map() argument
577 unsigned int zone_base_lba = zone * uzonesize; in alauda_read_map()
578 unsigned int zone_base_pba = zone * zonesize; in alauda_read_map()
586 usb_stor_dbg(us, "Mapping blocks for zone %d\n", zone); in alauda_read_map()
677 MEDIA_INFO(us).lba_to_pba[zone] = lba_to_pba; in alauda_read_map()
678 MEDIA_INFO(us).pba_to_lba[zone] = pba_to_lba; in alauda_read_map()
693 static void alauda_ensure_map_for_zone(struct us_data *us, unsigned int zone) in alauda_ensure_map_for_zone() argument
[all …]
Dsddr55.c718 int zone = i / 1024; in sddr55_read_map() local
744 if (info->lba_to_pba[lba + zone * 1000] != NOT_ALLOCATED && in sddr55_read_map()
748 lba + zone * 1000); in sddr55_read_map()
755 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/hwmon/
Dlm85.c249 static int ZONE_TO_REG(int zone) in ZONE_TO_REG() argument
254 if (zone == lm85_zone_map[i]) in ZONE_TO_REG()
337 struct lm85_zone zone[3]; member
642 (data->zone[nr].range << 4) in set_pwm_freq()
951 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->zone[nr].limit) - in show_temp_auto_temp_off()
952 HYST_FROM_REG(data->zone[nr].hyst)); in show_temp_auto_temp_off()
970 min = TEMP_FROM_REG(data->zone[nr].limit); in set_temp_auto_temp_off()
971 data->zone[nr].hyst = HYST_TO_REG(min - val); in set_temp_auto_temp_off()
974 (data->zone[0].hyst << 4) in set_temp_auto_temp_off()
975 | data->zone[1].hyst); in set_temp_auto_temp_off()
[all …]
Ddme1737.c1559 static SENSOR_DEVICE_ATTR_2(zone##ix##_auto_channels_temp, S_IRUGO, \
1561 static SENSOR_DEVICE_ATTR_2(zone##ix##_auto_point1_temp_hyst, S_IRUGO, \
1563 static SENSOR_DEVICE_ATTR_2(zone##ix##_auto_point1_temp, S_IRUGO, \
1565 static SENSOR_DEVICE_ATTR_2(zone##ix##_auto_point2_temp, S_IRUGO, \
1567 static SENSOR_DEVICE_ATTR_2(zone##ix##_auto_point3_temp, S_IRUGO, \
/drivers/staging/csr/
Dcsr_wifi_hip_dump.c47 u16 *zone[HIP_CDUMP_NUM_ZONES]; member
65 static CsrResult unifi_coredump_read_zone(card_t *card, u16 *zone,
311 r = (s32) * (coreDump->zone[i] + offset_in_zone); in get_value_from_coredump()
544 r = unifi_coredump_read_zone(card, dump_buf->zone[i], &zonedef_table[i]); in unifi_coredump_read_zones()
660 newnode->zone[i] = newzone; in new_coredump_node()
672 for (i = 0; newnode->zone[i] != NULL; i++) in new_coredump_node()
674 kfree(newnode->zone[i]); in new_coredump_node()
675 newnode->zone[i] = NULL; in new_coredump_node()
817 kfree(node->zone[j]); in unifi_coredump_free()
818 node->zone[j] = NULL; in unifi_coredump_free()
/drivers/base/
Ddma-contiguous.c143 struct zone *zone; in cma_activate_area() local
151 zone = page_zone(pfn_to_page(pfn)); in cma_activate_area()
158 if (page_zone(pfn_to_page(pfn)) != zone) in cma_activate_area()
/drivers/block/
Dpktcdvd.c1095 static struct packet_data *pkt_get_packet_data(struct pktcdvd_device *pd, int zone) in pkt_get_packet_data() argument
1100 if (pkt->sector == zone || pkt->list.next == &pd->cdrw.pkt_free_list) { in pkt_get_packet_data()
1102 if (pkt->sector != zone) in pkt_get_packet_data()
1200 sector_t zone = 0; /* Suppress gcc warning */ in pkt_handle_queue() local
1227 zone = ZONE(bio->bi_sector, pd); in pkt_handle_queue()
1229 if (p->sector == zone) { in pkt_handle_queue()
1251 pkt = pkt_get_packet_data(pd, zone); in pkt_handle_queue()
1253 pd->current_sector = zone + pd->settings.size; in pkt_handle_queue()
1254 pkt->sector = zone; in pkt_handle_queue()
1263 VPRINTK("pkt_handle_queue: looking for zone %llx\n", (unsigned long long)zone); in pkt_handle_queue()
[all …]
/drivers/staging/keucr/
Dsmilsub.c185 BYTE zone, sector; in Ssfdc_D_ReadCisSect() local
188 zone = Media.Zone; block = Media.PhyBlock; sector = Media.Sector; in Ssfdc_D_ReadCisSect()
194 Media.Zone = zone; Media.PhyBlock = block; Media.Sector = sector; in Ssfdc_D_ReadCisSect()
198 Media.Zone = zone; Media.PhyBlock = block; Media.Sector = sector; in Ssfdc_D_ReadCisSect()
/drivers/misc/
Dlkdtm.c167 struct zone *zone, in jp_shrink_inactive_list() argument