Home
last modified time | relevance | path

Searched refs:regions (Results 1 – 25 of 53) sorted by relevance

123

/drivers/mtd/chips/
Djedec_probe.c272 const uint32_t regions[6]; member
304 .regions = {
316 .regions = {
331 .regions = {
346 .regions = {
361 .regions = {
376 .regions = {
392 .regions = {
409 .regions = {
426 .regions = {
[all …]
Dcfi_util.c172 struct mtd_erase_region_info *regions = mtd->eraseregions; in cfi_varsize_frob() local
186 while (i < mtd->numeraseregions && ofs >= regions[i].offset) in cfi_varsize_frob()
196 if (ofs & (regions[i].erasesize-1)) in cfi_varsize_frob()
206 while (i<mtd->numeraseregions && (ofs + len) >= regions[i].offset) in cfi_varsize_frob()
214 if ((ofs + len) & (regions[i].erasesize-1)) in cfi_varsize_frob()
223 int size = regions[i].erasesize; in cfi_varsize_frob()
234 if (ofs == regions[i].offset + size * regions[i].numblocks) in cfi_varsize_frob()
Dcfi_cmdset_0020.c896 struct mtd_erase_region_info *regions = mtd->eraseregions; in cfi_staa_erase_varsize() local
910 while (i < mtd->numeraseregions && instr->addr >= regions[i].offset) in cfi_staa_erase_varsize()
920 if (instr->addr & (regions[i].erasesize-1)) in cfi_staa_erase_varsize()
930 while (i<mtd->numeraseregions && (instr->addr + instr->len) >= regions[i].offset) in cfi_staa_erase_varsize()
938 if ((instr->addr + instr->len) & (regions[i].erasesize-1)) in cfi_staa_erase_varsize()
953 adr += regions[i].erasesize; in cfi_staa_erase_varsize()
954 len -= regions[i].erasesize; in cfi_staa_erase_varsize()
956 …if (adr % (1<< cfi->chipshift) == (((unsigned long)regions[i].offset + (regions[i].erasesize * reg… in cfi_staa_erase_varsize()
/drivers/video/console/
Dsticore.c460 REGION_OFFSET_TO_PHYS(sti->regions[i], newhpa); in sti_init_glob_cfg()
462 len = sti->regions[i].region_desc.length * 4096; in sti_init_glob_cfg()
470 sti->regions[i].region_desc.btlb, in sti_init_glob_cfg()
471 sti->regions[i].region_desc.sys_only, in sti_init_glob_cfg()
472 sti->regions[i].region_desc.cache, in sti_init_glob_cfg()
473 sti->regions[i].region_desc.last)); in sti_init_glob_cfg()
476 if (sti->regions[i].region_desc.last) in sti_init_glob_cfg()
480 if (++i<8 && sti->regions[i].region) in sti_init_glob_cfg()
482 __FILE__, sti->regions[i].region); in sti_init_glob_cfg()
754 memcpy(sti->regions, ((void *)raw)+raw->region_list, sizeof(sti->regions)); in sti_read_rom()
/drivers/gpu/drm/nouveau/core/subdev/fb/
Dnv04.c70 priv->base.tile.regions = impl->tile.regions; in nv04_fb_ctor()
Dramnv50.c231 while (!list_empty(&mem->regions)) { in __nv50_ram_put()
232 this = list_first_entry(&mem->regions, typeof(*this), rl_entry); in __nv50_ram_put()
292 INIT_LIST_HEAD(&mem->regions); in nv50_ram_get()
308 list_add_tail(&r->rl_entry, &mem->regions); in nv50_ram_get()
313 r = list_first_entry(&mem->regions, struct nouveau_mm_node, rl_entry); in nv50_ram_get()
Dbase.c87 for (i = 0; i < pfb->tile.regions; i++) in _nouveau_fb_init()
99 for (i = 0; i < pfb->tile.regions; i++) in _nouveau_fb_dtor()
Dnv4e.c40 .tile.regions = 12,
Dnv1a.c40 .tile.regions = 8,
Dnv49.c40 .tile.regions = 15,
Dnv47.c40 .tile.regions = 15,
Dnv46.c54 .tile.regions = 15,
Dnv25.c56 .tile.regions = 8,
Dnv41.c64 .tile.regions = 12,
Dnv35.c57 .tile.regions = 8,
Dnv36.c57 .tile.regions = 8,
/drivers/char/
Dps3flash.c102 dev->regions[dev->region_idx].size*dev->blk_size); in ps3flash_llseek()
119 size = dev->regions[dev->region_idx].size*dev->blk_size; in ps3flash_read()
188 size = dev->regions[dev->region_idx].size*dev->blk_size; in ps3flash_write()
349 tmp = dev->regions[dev->region_idx].start*dev->blk_size; in ps3flash_probe()
356 tmp = dev->regions[dev->region_idx].size*dev->blk_size; in ps3flash_probe()
/drivers/soc/ti/
Dknav_qmss.h302 struct list_head regions; member
348 list_for_each_entry(region, &kdev->regions, list)
351 list_first_entry(&kdev->regions, \
Dknav_qmss_queue.c1049 struct device_node *regions) in knav_queue_setup_regions() argument
1057 for_each_child_of_node(regions, child) { in knav_queue_setup_regions()
1091 list_add_tail(&region->list, &kdev->regions); in knav_queue_setup_regions()
1093 if (list_empty(&kdev->regions)) { in knav_queue_setup_regions()
1664 struct device_node *qmgrs, *queue_pools, *regions, *pdsps; in knav_queue_probe() local
1685 INIT_LIST_HEAD(&kdev->regions); in knav_queue_probe()
1758 regions = of_get_child_by_name(node, "descriptor-regions"); in knav_queue_probe()
1759 if (!regions) { in knav_queue_probe()
1763 ret = knav_queue_setup_regions(kdev, regions); in knav_queue_probe()
1764 of_node_put(regions); in knav_queue_probe()
/drivers/gpu/drm/nouveau/core/include/subdev/
Dfb.h35 struct list_head regions; member
63 int regions; member
/drivers/ps3/
Dps3stor_lib.c134 dev->region_idx, dev->regions[dev->region_idx].start, in ps3stor_probe_access()
135 dev->regions[dev->region_idx].size); in ps3stor_probe_access()
279 unsigned int region_id = dev->regions[dev->region_idx].id; in ps3stor_read_write_sectors()
/drivers/uio/
DKconfig47 Memory regions can be specified with the same platform device
48 resources as the UIO_PDRV drivers, but dynamic regions can also
50 The number and size of these regions is static,
/drivers/scsi/
Dscsi_trace.c184 unsigned int regions = cdb[7] << 8 | cdb[8]; in scsi_trace_unmap() local
186 trace_seq_printf(p, "regions=%u", (regions - 8) / 16); in scsi_trace_unmap()
/drivers/vhost/
Dvhost.c412 return kmalloc(offsetof(struct vhost_memory, regions), GFP_KERNEL); in vhost_dev_reset_owner_prepare()
509 struct vhost_memory_region *m = mem->regions + i; in vq_memory_access_ok()
596 unsigned long size = offsetof(struct vhost_memory, regions); in vhost_set_memory()
605 newmem = kmalloc(size + mem.nregions * sizeof *m->regions, GFP_KERNEL); in vhost_set_memory()
610 if (copy_from_user(newmem->regions, m->regions, in vhost_set_memory()
611 mem.nregions * sizeof *m->regions)) { in vhost_set_memory()
919 reg = mem->regions + i; in find_region()
/drivers/mtd/
Dmtdpart.c491 struct mtd_erase_region_info *regions = master->eraseregions; in allocate_partition() local
495 for (i = 0; i < max && regions[i].offset <= slave->offset; i++) in allocate_partition()
502 for (; i < max && regions[i].offset < end; i++) { in allocate_partition()
503 if (slave->mtd.erasesize < regions[i].erasesize) { in allocate_partition()
504 slave->mtd.erasesize = regions[i].erasesize; in allocate_partition()

123