/drivers/gpu/drm/ttm/ |
H A D | ttm_memory.c | 76 struct ttm_mem_zone *zone = local 80 zone->name, (unsigned long long)zone->used_mem >> 10); 81 kfree(zone); 88 struct ttm_mem_zone *zone = local 92 spin_lock(&zone->glob->lock); 94 val = zone->zone_mem; 96 val = zone->emer_mem; 98 val = zone->max_mem; 100 val = zone 116 struct ttm_mem_zone *zone = local 185 struct ttm_mem_zone *zone; local 248 struct ttm_mem_zone *zone = kzalloc(sizeof(*zone), GFP_KERNEL); local 280 struct ttm_mem_zone *zone; local 316 struct ttm_mem_zone *zone = kzalloc(sizeof(*zone), GFP_KERNEL); local 366 struct ttm_mem_zone *zone; local 409 struct ttm_mem_zone *zone; local 432 struct ttm_mem_zone *zone; local 455 struct ttm_mem_zone *zone; local 481 struct ttm_mem_zone *zone; local 553 struct ttm_mem_zone *zone = NULL; local 573 struct ttm_mem_zone *zone = NULL; local [all...] |
/drivers/mtd/ |
H A D | sm_ftl.c | 195 static loff_t sm_mkoffset(struct sm_ftl *ftl, int zone, int block, int boffset) argument 198 WARN_ON(zone < 0 || zone >= ftl->zone_count); 205 return (zone * SM_MAX_ZONE_SIZE + block) * ftl->block_size + boffset; 210 int *zone, int *block, int *boffset) 214 *zone = offset >= ftl->zone_count ? -1 : offset; 237 int zone, int block, int boffset, 267 if (zone == 0 && block == ftl->cis_block && boffset == 278 ret = mtd_read_oob(mtd, sm_mkoffset(ftl, zone, block, boffset), &ops); 282 dbg("read of block %d at zone 209 sm_break_offset(struct sm_ftl *ftl, loff_t offset, int *zone, int *block, int *boffset) argument 236 sm_read_sector(struct sm_ftl *ftl, int zone, int block, int boffset, uint8_t *buffer, struct sm_oob *oob) argument 318 sm_write_sector(struct sm_ftl *ftl, int zone, int block, int boffset, uint8_t *buffer, struct sm_oob *oob) argument 365 sm_write_block(struct sm_ftl *ftl, uint8_t *buf, int zone, int block, int lba, unsigned long invalid_bitmap) argument 428 sm_mark_block_bad(struct sm_ftl *ftl, int zone, int block) argument 458 struct ftl_zone *zone = &ftl->zones[zone_num]; local 510 sm_check_block(struct sm_ftl *ftl, int zone, int block) argument 760 struct ftl_zone *zone = &ftl->zones[zone_num]; local 880 struct ftl_zone *zone; local 930 struct ftl_zone *zone; local 1014 struct ftl_zone *zone; local 1060 struct ftl_zone *zone; local [all...] |
/drivers/thermal/int340x_thermal/ |
H A D | int3402_thermal.c | 39 static int int3402_thermal_get_zone_temp(struct thermal_zone_device *zone, argument 42 struct int3402_thermal_data *d = zone->devdata; 56 static int int3402_thermal_get_trip_temp(struct thermal_zone_device *zone, argument 59 struct int3402_thermal_data *d = zone->devdata; 84 static int int3402_thermal_get_trip_type(struct thermal_zone_device *zone, argument 87 struct int3402_thermal_data *d = zone->devdata; 112 static int int3402_thermal_set_trip_temp(struct thermal_zone_device *zone, int trip, argument 115 struct int3402_thermal_data *d = zone->devdata; 159 struct thermal_zone_device *zone; local 202 zone 216 struct thermal_zone_device *zone = platform_get_drvdata(pdev); local [all...] |
/drivers/thermal/samsung/ |
H A D | exynos_thermal_common.h | 43 #define GET_TRIP(zone) (zone - 2)
|
/drivers/thermal/ |
H A D | rcar_thermal.c | 61 struct thermal_zone_device *zone; member in struct:rcar_thermal_priv 73 #define rcar_zone_to_priv(zone) ((zone)->devdata) 142 * zone device functions 203 static int rcar_thermal_get_temp(struct thermal_zone_device *zone, argument 206 struct rcar_thermal_priv *priv = rcar_zone_to_priv(zone); 218 static int rcar_thermal_get_trip_type(struct thermal_zone_device *zone, argument 221 struct rcar_thermal_priv *priv = rcar_zone_to_priv(zone); 237 static int rcar_thermal_get_trip_temp(struct thermal_zone_device *zone, argument 240 struct rcar_thermal_priv *priv = rcar_zone_to_priv(zone); 256 rcar_thermal_notify(struct thermal_zone_device *zone, int trip, enum thermal_trip_type type) argument [all...] |
H A D | of-thermal.c | 71 * struct __thermal_zone - internal representation of a thermal zone 72 * @mode: current thermal zone device mode (enabled/disabled) 74 * @polling_delay: zone polling interval 103 /*** DT thermal zone device callbacks ***/ 325 thermal_zone_of_add_sensor(struct device_node *zone, argument 333 tzd = thermal_zone_get_zone_by_name(zone->name); 352 * thermal_zone_of_sensor_register - registers a sensor to a DT thermal zone 363 * tree and look for the zone that refer to the sensor device pointed by 364 * @dev->of_node as temperature providers. For the zone pointing to the 365 * sensor node, the sensor will be added to the DT thermal zone devic 795 struct thermal_zone_device *zone; local 870 struct thermal_zone_device *zone; local [all...] |
/drivers/staging/rts5208/ |
H A D | xd.c | 748 xd_card->zone = vmalloc(size); 749 if (!xd_card->zone) 753 xd_card->zone[i].build_flag = 0; 754 xd_card->zone[i].l2p_table = NULL; 755 xd_card->zone[i].free_table = NULL; 756 xd_card->zone[i].get_index = 0; 757 xd_card->zone[i].set_index = 0; 758 xd_card->zone[i].unused_blk_cnt = 0; 764 static inline void free_zone(struct zone_entry *zone) argument 766 if (!zone) 786 struct zone_entry *zone; local 821 struct zone_entry *zone; local 860 struct zone_entry *zone; local 869 struct zone_entry *zone; local 1244 struct zone_entry *zone; local [all...] |
H A D | rtsx_chip.h | 377 /* To indicate whether the L2P table of this zone has been built. */ 529 struct zone_entry *zone; member in struct:xd_info
|
/drivers/md/ |
H A D | raid0.c | 58 printk(KERN_INFO "md: RAID0 configuration for %s - %d zone%s\n", 62 printk(KERN_INFO "md: zone%d=[", j); 70 printk(KERN_INFO " zone-offset=%10lluKB, " 85 struct strip_zone *zone; local 152 /* The first zone must contain all devices, so here we check that 155 zone = &conf->strip_zone[0]; 213 zone->nb_dev = cnt; 214 zone->zone_end = smallest->sectors * cnt; 216 curr_zone_end = zone->zone_end; 223 zone 324 map_sector(struct mddev *mddev, struct strip_zone *zone, sector_t sector, sector_t *sector_offset) argument 376 struct strip_zone *zone; local 515 struct strip_zone *zone; local [all...] |
/drivers/uwb/ |
H A D | drp-ie.c | 260 * Set MAS bits from given MAS bitmap in a single zone of large bitmap. 262 * We are given a zone id and the MAS bitmap of bits that need to be set in 263 * this zone. Note that this zone may already have bits set and this only 265 * zone contents. We iterate over the the bits (MAS) in the zone and set the 269 void uwb_drp_ie_single_zone_to_bm(struct uwb_mas_bm *bm, u8 zone, u16 mas_bm) argument 277 set_bit(zone * UWB_NUM_ZONES + mas, bm->bm); 294 * each zone. 302 u8 zone; local [all...] |
/drivers/iio/light/ |
H A D | lm3533-als.c | 61 atomic_t zone; member in struct:lm3533_als 90 static int _lm3533_als_get_zone(struct iio_dev *indio_dev, u8 *zone) argument 98 dev_err(&indio_dev->dev, "failed to read zone\n"); 103 *zone = min_t(u8, val, LM3533_ALS_ZONE_MAX); 108 static int lm3533_als_get_zone(struct iio_dev *indio_dev, u8 *zone) argument 114 *zone = atomic_read(&als->zone); 116 ret = _lm3533_als_get_zone(indio_dev, zone); 126 * zone zone 128 lm3533_als_get_target_reg(unsigned channel, unsigned zone) argument 133 lm3533_als_get_target(struct iio_dev *indio_dev, unsigned channel, unsigned zone, u8 *val) argument 154 lm3533_als_set_target(struct iio_dev *indio_dev, unsigned channel, unsigned zone, u8 val) argument 178 u8 zone; local 255 u8 zone; local 435 u8 zone; local 474 u8 zone; local [all...] |
H A D | Kconfig | 125 light zone through sysfs. A threshold event can be generated on zone 126 changes. The ALS-control output values can be set per zone for the
|
/drivers/usb/storage/ |
H A D | alauda.c | 98 unsigned int uzonesize; /* number of usable blocks per zone */ 99 unsigned int zonesize; /* number of blocks per zone */ 181 unsigned char zoneshift; /* 1<<zs blocks per zone */ 542 * Finds the first unused PBA in a zone 546 unsigned int zone) 548 u16 *pba_to_lba = info->pba_to_lba[zone]; 553 return (zone << info->zoneshift) + i; 559 * Reads the redundancy data for all PBA's in a zone 562 static int alauda_read_map(struct us_data *us, unsigned int zone) argument 570 unsigned int zone_base_lba = zone * uzonesiz 545 alauda_find_unused_pba(struct alauda_media_info *info, unsigned int zone) argument 686 alauda_ensure_map_for_zone(struct us_data *us, unsigned int zone) argument 818 unsigned int zone = lba / uzonesize; local 947 unsigned int zone = lba / uzonesize; /* integer division */ local [all...] |
H A D | sddr55.c | 381 /* set pba to first block in zone lba is in */ 718 int zone = i / 1024; local 722 /* Every 1024 physical blocks ("zone"), the LBA numbers 725 * 1000 LBA's per zone. In other words, in PBA 728 * physical blocks per zone. Go figure. 744 if (info->lba_to_pba[lba + zone * 1000] != NOT_ALLOCATED && 748 lba + zone * 1000); 755 info->lba_to_pba[lba + zone * 1000] = i;
|
/drivers/firmware/efi/libstub/ |
H A D | Makefile | 10 -fPIC -fno-strict-aliasing -mno-red-zone \
|
/drivers/hwmon/ |
H A D | lm85.c | 185 /* These are the zone temperature range encodings in .001 degree C */ 245 static int ZONE_TO_REG(int zone) argument 250 if (zone == lm85_zone_map[i]) 334 struct lm85_zone zone[3]; member in struct:lm85_data 527 data->zone[i].range = val >> 4; 530 data->zone[i].limit = 532 data->zone[i].critical = 538 data->zone[i].limit -= 64; 539 data->zone[i].critical -= 64; 550 data->zone[ [all...] |
H A D | dme1737.c | 146 * The layout of the hysteresis registers is different from the other zone 420 * 000: 2 fan on zone 1 auto 421 * 001: 2 fan on zone 2 auto 422 * 010: 2 fan on zone 3 auto 444 * PWM auto channels zone 445 * Register to auto channels zone mapping (ACZ is a bitfield with bit x 446 * corresponding to zone x+1): 447 * 000: 001 fan on zone 1 auto 448 * 001: 010 fan on zone 2 auto 449 * 010: 100 fan on zone [all...] |
/drivers/base/ |
H A D | memory.c | 384 struct zone *zone; local 390 /* The block contains more than one zone can not be offlined. */ 394 zone = page_zone(first_page); 396 if (zone_idx(zone) == ZONE_MOVABLE - 1) { 397 /*The mem block is the last memoryblock of this zone.*/ 398 if (end_pfn == zone_end_pfn(zone)) 400 zone->name, (zone + 1)->name); 403 if (zone_idx(zone) [all...] |
/drivers/platform/x86/ |
H A D | alienware-wmi.c | 173 * Helpers used for zone control 175 static int parse_rgb(const char *buf, struct platform_zone *zone) argument 195 zone->colors = repackager.cp; 204 pr_debug("alienware-wmi: matched zone location: %d\n", 213 * Individual RGB zone control 215 static int alienware_update_led(struct platform_zone *zone) argument 224 wmax_args.led_mask = 1 << zone->location; 225 wmax_args.colors = zone->colors; 233 legacy_args.colors = zone->colors; 242 method_id = zone [all...] |
/drivers/net/wireless/rsi/ |
H A D | rsi_91x_main.c | 38 * @zone: Zone of interest for output message. 43 void rsi_dbg(u32 zone, const char *fmt, ...) argument 53 if (zone & rsi_zone_enabled)
|
H A D | rsi_main.h | 43 extern __printf(2, 3) void rsi_dbg(u32 zone, const char *fmt, ...);
|
/drivers/block/ |
H A D | pktcdvd.c | 951 * new write request for the same zone. 1047 pkt_dbg(2, pd, "zone %llx cached\n", 1082 pkt_dbg(2, pd, "need %d frames for zone %llx\n", 1089 * Find a packet matching zone, or the least recently used packet if 1092 static struct packet_data *pkt_get_packet_data(struct pktcdvd_device *pd, int zone) argument 1097 if (pkt->sector == zone || pkt->list.next == &pd->cdrw.pkt_free_list) { 1099 if (pkt->sector != zone) 1198 sector_t zone = 0; /* Suppress gcc warning */ local 1211 * Try to find a zone we are not already working on. 1223 zone 2362 sector_t zone; local 2482 sector_t zone = get_zone(bio->bi_iter.bi_sector, pd); local 2510 sector_t zone = get_zone(bmd->bi_sector, pd); local [all...] |
/drivers/memstick/core/ |
H A D | ms_block.c | 131 /* Get zone at which block with logical address 'lba' lives 133 * Each zone consists of 512 eraseblocks, out of which in first 134 * zone 494 are used and 496 are for all following zones. 135 * Therefore zone #0 hosts blocks 0-493, zone #1 blocks 494-988, etc... 144 /* Get zone of physical block. Trivial */ 174 int zone = msb_get_zone_from_pba(pba); local 188 msb->free_block_count[zone]--; 194 int zone = msb_get_zone_from_pba(pba); local 207 msb->free_block_count[zone] 1078 msb_get_free_block(struct msb_data *msb, int zone) argument [all...] |
/drivers/misc/ |
H A D | lkdtm.c | 207 struct zone *zone, 206 jp_shrink_inactive_list(unsigned long max_scan, struct zone *zone, struct scan_control *sc) argument
|