Home
last modified time | relevance | path

Searched refs:region (Results 1 – 25 of 302) sorted by relevance

12345678910>>...13

/linux-2.6.39/arch/um/kernel/
Dphysmem.c119 struct iomem_region *region = iomem_regions; in phys_mapping() local
121 while (region != NULL) { in phys_mapping()
122 if ((phys >= region->phys) && in phys_mapping()
123 (phys < region->phys + region->size)) { in phys_mapping()
124 fd = region->fd; in phys_mapping()
125 *offset_out = phys - region->phys; in phys_mapping()
128 region = region->next; in phys_mapping()
174 struct iomem_region *region = iomem_regions; in find_iomem() local
176 while (region != NULL) { in find_iomem()
177 if (!strcmp(region->driver, driver)) { in find_iomem()
[all …]
/linux-2.6.39/mm/
Dnommu.c529 struct vm_region *region, *last; in validate_nommu_regions() local
541 region = rb_entry(p, struct vm_region, vm_rb); in validate_nommu_regions()
544 BUG_ON(unlikely(region->vm_end <= region->vm_start)); in validate_nommu_regions()
545 BUG_ON(unlikely(region->vm_top < region->vm_end)); in validate_nommu_regions()
546 BUG_ON(unlikely(region->vm_start < last->vm_top)); in validate_nommu_regions()
560 static void add_nommu_region(struct vm_region *region) in add_nommu_region() argument
572 if (region->vm_start < pregion->vm_start) in add_nommu_region()
574 else if (region->vm_start > pregion->vm_start) in add_nommu_region()
576 else if (pregion == region) in add_nommu_region()
582 rb_link_node(&region->vm_rb, parent, p); in add_nommu_region()
[all …]
/linux-2.6.39/drivers/mtd/maps/
Dpismo.c118 struct pismo_mem *region, const char *name, void *pdata, size_t psize) in pismo_add_device() argument
122 phys_addr_t base = region->base; in pismo_add_device()
129 res.end = base + region->size - 1; in pismo_add_device()
159 struct pismo_mem *region) in pismo_add_nor() argument
162 .width = region->width, in pismo_add_nor()
168 return pismo_add_device(pismo, i, region, "physmap-flash", in pismo_add_nor()
173 struct pismo_mem *region) in pismo_add_sram() argument
176 .bankwidth = region->width, in pismo_add_sram()
179 return pismo_add_device(pismo, i, region, "mtd-ram", in pismo_add_sram()
187 struct pismo_mem region; in pismo_add_one() local
[all …]
Dscb2_flash.c107 struct mtd_erase_region_info *region = &mtd->eraseregions[i]; in scb2_fixup_mtd() local
108 region->erasesize /= 2; in scb2_fixup_mtd()
118 struct mtd_erase_region_info *region = &mtd->eraseregions[i]; in scb2_fixup_mtd() local
120 if (region->numblocks * region->erasesize > mtd->size) { in scb2_fixup_mtd()
121 region->numblocks = ((unsigned long)mtd->size / in scb2_fixup_mtd()
122 region->erasesize); in scb2_fixup_mtd()
125 region->numblocks = 0; in scb2_fixup_mtd()
127 region->offset = 0; in scb2_fixup_mtd()
/linux-2.6.39/arch/arm/mach-bcmring/
Ddma.c1723 DMA_Region_t *region, /* Region that the segment belongs to */ in dma_map_add_segment() argument
1735 if (((unsigned long)virtAddr < (unsigned long)region->virtAddr) in dma_map_add_segment()
1737 ((unsigned long)region->virtAddr + region->numBytes)) { in dma_map_add_segment()
1740 __func__, virtAddr, region->virtAddr, region->numBytes); in dma_map_add_segment()
1744 if (region->numSegmentsUsed > 0) { in dma_map_add_segment()
1747 segment = &region->segment[region->numSegmentsUsed - 1]; in dma_map_add_segment()
1763 if (region->numSegmentsUsed >= region->numSegmentsAllocated) { in dma_map_add_segment()
1766 region->numSegmentsAllocated * sizeof(*newSegment); in dma_map_add_segment()
1767 int newAlloc = region->numSegmentsAllocated + 4; in dma_map_add_segment()
1774 memcpy(newSegment, region->segment, oldSize); in dma_map_add_segment()
[all …]
/linux-2.6.39/drivers/video/savage/
Dsavagefb_accel.c30 void savagefb_copyarea(struct fb_info *info, const struct fb_copyarea *region) in savagefb_copyarea() argument
33 int sx = region->sx, dx = region->dx; in savagefb_copyarea()
34 int sy = region->sy, dy = region->dy; in savagefb_copyarea()
37 if (!region->width || !region->height) in savagefb_copyarea()
46 sx += region->width - 1; in savagefb_copyarea()
47 dx += region->width - 1; in savagefb_copyarea()
53 sy += region->height - 1; in savagefb_copyarea()
54 dy += region->height - 1; in savagefb_copyarea()
61 BCI_SEND(BCI_W_H(region->width, region->height)); in savagefb_copyarea()
/linux-2.6.39/arch/cris/arch-v32/mach-fs/
Darbiter.c68 static void crisv32_arbiter_config(int region, int unused_slots) in crisv32_arbiter_config() argument
105 if (!requested_slots[region][client]) { in crisv32_arbiter_config()
111 if (!active_clients[region][client] in crisv32_arbiter_config()
121 NBR_OF_SLOTS / requested_slots[region][client]; in crisv32_arbiter_config()
144 while (!active_clients[region][client]) { in crisv32_arbiter_config()
152 if (region == EXT_REGION) in crisv32_arbiter_config()
155 else if (region == INT_REGION) in crisv32_arbiter_config()
200 int crisv32_arbiter_allocate_bandwidth(int client, int region, in crisv32_arbiter_allocate_bandwidth() argument
211 total_assigned += requested_slots[region][i]; in crisv32_arbiter_allocate_bandwidth()
212 total_clients += active_clients[region][i]; in crisv32_arbiter_allocate_bandwidth()
[all …]
/linux-2.6.39/arch/mips/include/asm/sn/sn0/
Dhubmd.h449 #define MD_MEMORY_CONFIG_DIR_TYPE_GET(region) (\ argument
450 (REMOTE_HUB_L(region, MD_MEMORY_CONFIG) & MMC_DIR_PREMIUM_MASK) >> \
459 #define MD_MIG_DIFF_THRESH_GET(region) ( \ argument
460 REMOTE_HUB_L((region), MD_MIG_DIFF_THRESH) & \
463 #define MD_MIG_DIFF_THRESH_SET(region, value) ( \ argument
464 REMOTE_HUB_S((region), MD_MIG_DIFF_THRESH, \
467 #define MD_MIG_DIFF_THRESH_DISABLE(region) ( \ argument
468 REMOTE_HUB_S((region), MD_MIG_DIFF_THRESH, \
469 REMOTE_HUB_L((region), MD_MIG_DIFF_THRESH) \
472 #define MD_MIG_DIFF_THRESH_ENABLE(region) ( \ argument
[all …]
/linux-2.6.39/drivers/acpi/acpica/
Devregion.c295 acpi_ut_create_integer_object((u64) region_obj->region.space_id); in acpi_ev_execute_reg_method()
364 handler_desc = region_obj->region.handler; in acpi_ev_address_space_dispatch()
368 acpi_ut_get_node_name(region_obj->region.node), in acpi_ev_address_space_dispatch()
370 acpi_ut_get_region_name(region_obj->region. in acpi_ev_address_space_dispatch()
380 if (!(region_obj->region.flags & AOPOBJ_SETUP_COMPLETE)) { in acpi_ev_address_space_dispatch()
392 acpi_ut_get_region_name(region_obj->region. in acpi_ev_address_space_dispatch()
418 region. in acpi_ev_address_space_dispatch()
425 if (!(region_obj->region.flags & AOPOBJ_SETUP_COMPLETE)) { in acpi_ev_address_space_dispatch()
426 region_obj->region.flags |= AOPOBJ_SETUP_COMPLETE; in acpi_ev_address_space_dispatch()
450 &region_obj->region.handler->address_space, handler, in acpi_ev_address_space_dispatch()
[all …]
/linux-2.6.39/drivers/scsi/pm8001/
Dpm8001_init.c144 if (pm8001_ha->memoryMap.region[i].virt_ptr != NULL) { in pm8001_free()
146 pm8001_ha->memoryMap.region[i].element_size, in pm8001_free()
147 pm8001_ha->memoryMap.region[i].virt_ptr, in pm8001_free()
148 pm8001_ha->memoryMap.region[i].phys_addr); in pm8001_free()
216 pm8001_ha->memoryMap.region[AAP1].num_elements = 1; in pm8001_alloc()
217 pm8001_ha->memoryMap.region[AAP1].element_size = PM8001_EVENT_LOG_SIZE; in pm8001_alloc()
218 pm8001_ha->memoryMap.region[AAP1].total_len = PM8001_EVENT_LOG_SIZE; in pm8001_alloc()
219 pm8001_ha->memoryMap.region[AAP1].alignment = 32; in pm8001_alloc()
222 pm8001_ha->memoryMap.region[IOP].num_elements = 1; in pm8001_alloc()
223 pm8001_ha->memoryMap.region[IOP].element_size = PM8001_EVENT_LOG_SIZE; in pm8001_alloc()
[all …]
/linux-2.6.39/include/asm-generic/
Dpci.h18 pcibios_resource_to_bus(struct pci_dev *dev, struct pci_bus_region *region, in pcibios_resource_to_bus() argument
21 region->start = res->start; in pcibios_resource_to_bus()
22 region->end = res->end; in pcibios_resource_to_bus()
27 struct pci_bus_region *region) in pcibios_bus_to_resource() argument
29 res->start = region->start; in pcibios_bus_to_resource()
30 res->end = region->end; in pcibios_bus_to_resource()
/linux-2.6.39/include/linux/
Ddm-dirty-log.h57 int (*is_clean)(struct dm_dirty_log *log, region_t region);
70 int (*in_sync)(struct dm_dirty_log *log, region_t region,
85 void (*mark_region)(struct dm_dirty_log *log, region_t region);
86 void (*clear_region)(struct dm_dirty_log *log, region_t region);
100 int (*get_resync_work)(struct dm_dirty_log *log, region_t *region);
108 region_t region, int in_sync);
129 int (*is_remote_recovering)(struct dm_dirty_log *log, region_t region);
/linux-2.6.39/drivers/md/
Ddm-region-hash.c121 sector_t dm_rh_region_to_sector(struct dm_region_hash *rh, region_t region) in dm_rh_region_to_sector() argument
123 return region << rh->region_shift; in dm_rh_region_to_sector()
265 static unsigned rh_hash(struct dm_region_hash *rh, region_t region) in rh_hash() argument
267 return (unsigned) ((region * rh->prime) >> rh->shift) & rh->mask; in rh_hash()
270 static struct dm_region *__rh_lookup(struct dm_region_hash *rh, region_t region) in __rh_lookup() argument
273 struct list_head *bucket = rh->buckets + rh_hash(rh, region); in __rh_lookup()
276 if (reg->key == region) in __rh_lookup()
287 static struct dm_region *__rh_alloc(struct dm_region_hash *rh, region_t region) in __rh_alloc() argument
295 nreg->state = rh->log->type->in_sync(rh->log, region, 1) ? in __rh_alloc()
298 nreg->key = region; in __rh_alloc()
[all …]
Ddm-log-userspace-base.c19 region_t region; member
302 static int userspace_is_clean(struct dm_dirty_log *log, region_t region) in userspace_is_clean() argument
305 uint64_t region64 = (uint64_t)region; in userspace_is_clean()
329 static int userspace_in_sync(struct dm_dirty_log *log, region_t region, in userspace_in_sync() argument
333 uint64_t region64 = region; in userspace_in_sync()
368 (char *)&fe->region, in flush_one_by_one()
369 sizeof(fe->region), in flush_one_by_one()
394 group[count] = fe->region; in flush_by_group()
498 static void userspace_mark_region(struct dm_dirty_log *log, region_t region) in userspace_mark_region() argument
510 fe->region = region; in userspace_mark_region()
[all …]
/linux-2.6.39/arch/parisc/kernel/
Dpci.c200 struct pci_bus_region *region, struct resource *res) in pcibios_resource_to_bus() argument
214 region->start = PCI_PORT_ADDR(res->start); in pcibios_resource_to_bus()
215 region->end = PCI_PORT_ADDR(res->end); in pcibios_resource_to_bus()
218 region->start = PCI_BUS_ADDR(hba, res->start); in pcibios_resource_to_bus()
219 region->end = PCI_BUS_ADDR(hba, res->end); in pcibios_resource_to_bus()
224 region->start, region->end); in pcibios_resource_to_bus()
228 struct pci_bus_region *region) in pcibios_bus_to_resource() argument
235 res->start = PCI_HOST_ADDR(hba, region->start); in pcibios_bus_to_resource()
236 res->end = PCI_HOST_ADDR(hba, region->end); in pcibios_bus_to_resource()
240 res->start = region->start; in pcibios_bus_to_resource()
[all …]
/linux-2.6.39/fs/proc/
Dtask_nommu.c21 struct vm_region *region; in task_mem() local
31 region = vma->vm_region; in task_mem()
32 if (region) { in task_mem()
33 size = kobjsize(region); in task_mem()
34 size += region->vm_end - region->vm_start; in task_mem()
44 if (region) in task_mem()
45 slack = region->vm_end - vma->vm_end; in task_mem()
100 struct vm_region *region; in task_statm() local
108 region = vma->vm_region; in task_statm()
109 if (region) { in task_statm()
[all …]
Dnommu.c37 static int nommu_region_show(struct seq_file *m, struct vm_region *region) in nommu_region_show() argument
44 flags = region->vm_flags; in nommu_region_show()
45 file = region->vm_file; in nommu_region_show()
48 struct inode *inode = region->vm_file->f_path.dentry->d_inode; in nommu_region_show()
55 region->vm_start, in nommu_region_show()
56 region->vm_end, in nommu_region_show()
61 ((loff_t)region->vm_pgoff) << PAGE_SHIFT, in nommu_region_show()
/linux-2.6.39/drivers/media/video/omap3isp/
Disphist.c112 reg_hor[c] = conf->region[c].h_start << in hist_setup_regs()
114 reg_hor[c] = conf->region[c].h_end << in hist_setup_regs()
116 reg_ver[c] = conf->region[c].v_start << in hist_setup_regs()
118 reg_ver[c] = conf->region[c].v_end << in hist_setup_regs()
320 if (user_cfg->region[c].h_start & ~ISPHIST_REG_START_END_MASK) in hist_validate_params()
322 if (user_cfg->region[c].h_end & ~ISPHIST_REG_START_END_MASK) in hist_validate_params()
324 if (user_cfg->region[c].v_start & ~ISPHIST_REG_START_END_MASK) in hist_validate_params()
326 if (user_cfg->region[c].v_end & ~ISPHIST_REG_START_END_MASK) in hist_validate_params()
328 if (user_cfg->region[c].h_start > user_cfg->region[c].h_end) in hist_validate_params()
330 if (user_cfg->region[c].v_start > user_cfg->region[c].v_end) in hist_validate_params()
[all …]
/linux-2.6.39/drivers/staging/rt2860/common/
Dcmm_cfg.c85 long region, regionMax; in RT_CfgSetCountryRegion() local
88 region = simple_strtol(arg, 0, 10); in RT_CfgSetCountryRegion()
106 if ((region >= 0) && (region <= REGION_MAXIMUM_BG_BAND)) { in RT_CfgSetCountryRegion()
107 *pCountryRegion = (u8)region; in RT_CfgSetCountryRegion()
108 } else if ((region == REGION_31_BG_BAND) && (band == BAND_24G)) { in RT_CfgSetCountryRegion()
109 *pCountryRegion = (u8)region; in RT_CfgSetCountryRegion()
113 region)); in RT_CfgSetCountryRegion()
/linux-2.6.39/sound/soc/s6000/
Ds6000-i2s.c442 struct resource *scbmem, *sifmem, *region, *dma1, *dma2; in s6000_i2s_probe() local
453 region = request_mem_region(scbmem->start, resource_size(scbmem), in s6000_i2s_probe()
455 if (!region) { in s6000_i2s_probe()
475 region = request_mem_region(sifmem->start, resource_size(sifmem), in s6000_i2s_probe()
477 if (!region) { in s6000_i2s_probe()
490 region = request_mem_region(dma1->start, resource_size(dma1), in s6000_i2s_probe()
492 if (!region) { in s6000_i2s_probe()
500 region = request_mem_region(dma2->start, resource_size(dma2), in s6000_i2s_probe()
502 if (!region) { in s6000_i2s_probe()
572 struct resource *region; in s6000_i2s_remove() local
[all …]
/linux-2.6.39/arch/cris/arch-v32/mach-a3/
Darbiter.c131 static void crisv32_arbiter_config(int arbiter, int region, int unused_slots) in crisv32_arbiter_config() argument
168 if (!arbiters[arbiter].requested_slots[region][client]) { in crisv32_arbiter_config()
174 if (!arbiters[arbiter].active_clients[region][client] || in crisv32_arbiter_config()
184 arbiters[arbiter].requested_slots[region][client]; in crisv32_arbiter_config()
207 while (!arbiters[arbiter].active_clients[region][client]) { in crisv32_arbiter_config()
217 if (region == EXT_REGION) in crisv32_arbiter_config()
220 else if (region == INT_REGION) in crisv32_arbiter_config()
285 int crisv32_arbiter_allocate_bandwidth(int client, int region, in crisv32_arbiter_allocate_bandwidth() argument
302 total_assigned += arbiters[arbiter].requested_slots[region][i]; in crisv32_arbiter_allocate_bandwidth()
303 total_clients += arbiters[arbiter].active_clients[region][i]; in crisv32_arbiter_allocate_bandwidth()
[all …]
/linux-2.6.39/arch/mn10300/unit-asb2305/
Dpci.c83 void pcibios_resource_to_bus(struct pci_dev *dev, struct pci_bus_region *region, in pcibios_resource_to_bus() argument
87 region->start = (res->start & 0x00ffffff); in pcibios_resource_to_bus()
88 region->end = (res->end & 0x00ffffff); in pcibios_resource_to_bus()
92 region->start = (res->start & 0x03ffffff) | MEM_PAGING_REG; in pcibios_resource_to_bus()
93 region->end = (res->end & 0x03ffffff) | MEM_PAGING_REG; in pcibios_resource_to_bus()
98 res->start, res->end, region->start, region->end); in pcibios_resource_to_bus()
107 struct pci_bus_region *region) in pcibios_bus_to_resource() argument
110 res->start = (region->start & 0x00ffffff) | 0xbe000000; in pcibios_bus_to_resource()
111 res->end = (region->end & 0x00ffffff) | 0xbe000000; in pcibios_bus_to_resource()
115 res->start = (region->start & 0x03ffffff) | 0xb8000000; in pcibios_bus_to_resource()
[all …]
/linux-2.6.39/drivers/video/console/
Dbitblit.c65 struct fb_fillrect region; in bit_clear() local
67 region.color = attr_bgcol_ec(bgshift, vc, info); in bit_clear()
68 region.dx = sx * vc->vc_font.width; in bit_clear()
69 region.dy = sy * vc->vc_font.height; in bit_clear()
70 region.width = width * vc->vc_font.width; in bit_clear()
71 region.height = height * vc->vc_font.height; in bit_clear()
72 region.rop = ROP_COPY; in bit_clear()
74 info->fbops->fb_fillrect(info, &region); in bit_clear()
215 struct fb_fillrect region; in bit_clear_margins() local
217 region.color = attr_bgcol_ec(bgshift, vc, info); in bit_clear_margins()
[all …]
Dfbcon_ccw.c84 struct fb_fillrect region; in ccw_clear() local
88 region.color = attr_bgcol_ec(bgshift,vc,info); in ccw_clear()
89 region.dx = sy * vc->vc_font.height; in ccw_clear()
90 region.dy = vyres - ((sx + width) * vc->vc_font.width); in ccw_clear()
91 region.height = width * vc->vc_font.width; in ccw_clear()
92 region.width = height * vc->vc_font.height; in ccw_clear()
93 region.rop = ROP_COPY; in ccw_clear()
95 info->fbops->fb_fillrect(info, &region); in ccw_clear()
199 struct fb_fillrect region; in ccw_clear_margins() local
202 region.color = attr_bgcol_ec(bgshift,vc,info); in ccw_clear_margins()
[all …]
Dfbcon_cw.c70 struct fb_fillrect region; in cw_clear() local
74 region.color = attr_bgcol_ec(bgshift,vc,info); in cw_clear()
75 region.dx = vxres - ((sy + height) * vc->vc_font.height); in cw_clear()
76 region.dy = sx * vc->vc_font.width; in cw_clear()
77 region.height = width * vc->vc_font.width; in cw_clear()
78 region.width = height * vc->vc_font.height; in cw_clear()
79 region.rop = ROP_COPY; in cw_clear()
81 info->fbops->fb_fillrect(info, &region); in cw_clear()
183 struct fb_fillrect region; in cw_clear_margins() local
186 region.color = attr_bgcol_ec(bgshift,vc,info); in cw_clear_margins()
[all …]

12345678910>>...13