/drivers/gpu/drm/ |
D | drm_mm.c | 143 unsigned long size, unsigned alignment) in drm_mm_get_block() argument 150 if (alignment) in drm_mm_get_block() 151 tmp = parent->start % alignment; in drm_mm_get_block() 154 align_splitoff = drm_mm_split_at_start(parent, alignment - tmp); in drm_mm_get_block() 225 unsigned alignment, int best_match) in drm_mm_search_free() argument 244 if (alignment) { in drm_mm_search_free() 245 register unsigned tmp = entry->start % alignment; in drm_mm_search_free() 247 wasted += alignment - tmp; in drm_mm_search_free()
|
D | drm_sman.c | 89 unsigned alignment) in drm_sman_mm_allocate() argument 94 tmp = drm_mm_search_free(mm, size, alignment, 1); in drm_sman_mm_allocate() 98 tmp = drm_mm_get_block(tmp, size, alignment); in drm_sman_mm_allocate() 198 unsigned long size, unsigned alignment, in drm_sman_alloc() argument 209 tmp = sman_mm->allocate(sman_mm->private, size, alignment); in drm_sman_alloc()
|
D | drm_bufs.c | 570 int alignment; in drm_addbufs_agp() local 584 alignment = (request->flags & _DRM_PAGE_ALIGN) in drm_addbufs_agp() 596 DRM_DEBUG("alignment: %d\n", alignment); in drm_addbufs_agp() 657 buf->total = alignment; in drm_addbufs_agp() 684 offset += alignment; in drm_addbufs_agp() 740 int alignment; in drm_addbufs_pci() local 769 alignment = (request->flags & _DRM_PAGE_ALIGN) in drm_addbufs_pci() 866 offset += alignment, ++entry->buf_count) { in drm_addbufs_pci() 869 buf->total = alignment; in drm_addbufs_pci() 965 int alignment; in drm_addbufs_sg() local [all …]
|
/drivers/mtd/ubi/ |
D | vmt.c | 49 __ATTR(alignment, S_IRUGO, vol_attribute_show, NULL); 105 ret = sprintf(buf, "%d\n", vol->alignment); in vol_attribute_show() 256 vol->usable_leb_size = ubi->leb_size - ubi->leb_size % req->alignment; in ubi_create_volume() 271 vol->alignment = req->alignment; in ubi_create_volume() 272 vol->data_pad = ubi->leb_size % vol->alignment; in ubi_create_volume() 343 vtbl_rec.alignment = cpu_to_be32(vol->alignment); in ubi_create_volume() 733 int reserved_pebs, alignment, data_pad, vol_type, name_len, upd_marker; in paranoid_check_volume() local 751 if (vol->reserved_pebs < 0 || vol->alignment < 0 || vol->data_pad < 0 || in paranoid_check_volume() 756 if (vol->alignment > ubi->leb_size || vol->alignment == 0) { in paranoid_check_volume() 761 n = vol->alignment & (ubi->min_io_size - 1); in paranoid_check_volume() [all …]
|
D | vtbl.c | 179 int i, n, reserved_pebs, alignment, data_pad, vol_type, name_len; in vtbl_check() local 188 alignment = be32_to_cpu(vtbl[i].alignment); in vtbl_check() 212 if (reserved_pebs < 0 || alignment < 0 || data_pad < 0 || in vtbl_check() 218 if (alignment > ubi->leb_size || alignment == 0) { in vtbl_check() 223 n = alignment & (ubi->min_io_size - 1); in vtbl_check() 224 if (alignment != 1 && n) { in vtbl_check() 229 n = ubi->leb_size % alignment; in vtbl_check() 567 vol->alignment = be32_to_cpu(vtbl[i].alignment); in init_volumes() 645 vol->alignment = 1; in init_volumes()
|
D | debug.c | 88 printk(KERN_DEBUG "\talignment %d\n", vol->alignment); in ubi_dbg_dump_vol_info() 121 printk(KERN_DEBUG "\talignment %d\n", be32_to_cpu(r->alignment)); in ubi_dbg_dump_vtbl_record() 187 printk(KERN_DEBUG "\talignment %d\n", req->alignment); in ubi_dbg_dump_mkvol_req()
|
D | cdev.c | 594 if (req->bytes < 0 || req->alignment < 0 || req->vol_type < 0 || in verify_mkvol_req() 602 if (req->alignment == 0) in verify_mkvol_req() 612 if (req->alignment > ubi->leb_size) in verify_mkvol_req() 615 n = req->alignment & (ubi->min_io_size - 1); in verify_mkvol_req() 616 if (req->alignment != 1 && n) in verify_mkvol_req()
|
D | ubi-media.h | 357 __be32 alignment; member
|
D | kapi.c | 76 vi->alignment = vol->alignment; in ubi_get_volume_info()
|
/drivers/ieee1394/ |
D | highlevel.c | 324 u64 size, u64 alignment, in hpsb_allocate_and_register_addrspace() argument 331 u64 align_mask = ~(alignment - 1); in hpsb_allocate_and_register_addrspace() 333 if ((alignment & 3) || (alignment > 0x800000000000ULL) || in hpsb_allocate_and_register_addrspace() 334 (hweight64(alignment) != 1)) { in hpsb_allocate_and_register_addrspace() 336 __func__, (unsigned long long)alignment); in hpsb_allocate_and_register_addrspace() 375 a1ea = (a1->end + alignment -1) & align_mask; in hpsb_allocate_and_register_addrspace() 377 a2ea = (a2->end + alignment -1) & align_mask; in hpsb_allocate_and_register_addrspace()
|
D | csr.c | 61 static u64 allocate_addr_range(u64 size, u32 alignment, void *__host); 806 static u64 allocate_addr_range(u64 size, u32 alignment, void *__host) in allocate_addr_range() argument 813 size, alignment, in allocate_addr_range()
|
D | highlevel.h | 123 u64 size, u64 alignment,
|
/drivers/ps3/ |
D | ps3stor_lib.c | 90 int error, res, alignment; in ps3stor_setup() local 118 alignment = min(__ffs(dev->bounce_size), in ps3stor_setup() 120 if (alignment < 12) { in ps3stor_setup() 126 } else if (alignment < 16) in ps3stor_setup()
|
/drivers/acpi/acpica/ |
D | amlresrc.h | 151 u8 alignment; member 181 u16 alignment; member 192 u32 alignment; member
|
D | rsio.c | 77 {ACPI_RSC_MOVE8, ACPI_RS_OFFSET(data.io.alignment), 78 AML_OFFSET(io.alignment),
|
D | rsdump.c | 143 {ACPI_RSD_UINT8, ACPI_RSD_OFFSET(io.alignment), "Alignment", NULL}, 178 {ACPI_RSD_UINT16, ACPI_RSD_OFFSET(memory24.alignment), "Alignment", 193 {ACPI_RSD_UINT32, ACPI_RSD_OFFSET(memory32.alignment), "Alignment",
|
/drivers/gpu/drm/i915/ |
D | i915_ioc32.c | 158 int alignment; member 175 || __put_user(req32.alignment, &request->alignment) in compat_i915_alloc()
|
D | i915_mem.c | 291 if (alloc->alignment < 12) in i915_mem_alloc() 292 alloc->alignment = 12; in i915_mem_alloc() 294 block = alloc_block(*heap, alloc->size, alloc->alignment, file_priv); in i915_mem_alloc()
|
D | i915_gem.c | 50 unsigned alignment); 1714 i915_gem_object_bind_to_gtt(struct drm_gem_object *obj, unsigned alignment) in i915_gem_object_bind_to_gtt() argument 1724 if (alignment == 0) in i915_gem_object_bind_to_gtt() 1725 alignment = i915_gem_get_gtt_alignment(obj); in i915_gem_object_bind_to_gtt() 1726 if (alignment & (PAGE_SIZE - 1)) { in i915_gem_object_bind_to_gtt() 1727 DRM_ERROR("Invalid object alignment requested %u\n", alignment); in i915_gem_object_bind_to_gtt() 1733 obj->size, alignment, 0); in i915_gem_object_bind_to_gtt() 1736 alignment); in i915_gem_object_bind_to_gtt() 2259 ret = i915_gem_object_pin(obj, (uint32_t) entry->alignment); in i915_gem_object_pin_and_relocate() 2764 i915_gem_object_pin(struct drm_gem_object *obj, uint32_t alignment) in i915_gem_object_pin() argument [all …]
|
/drivers/gpu/drm/radeon/ |
D | radeon_mem.c | 238 if (alloc->alignment < 12) in radeon_mem_alloc() 239 alloc->alignment = 12; in radeon_mem_alloc() 241 block = alloc_block(*heap, alloc->size, alloc->alignment, file_priv); in radeon_mem_alloc()
|
D | radeon_ioc32.c | 302 int alignment; member 319 || __put_user(req32.alignment, &request->alignment) in compat_radeon_mem_alloc()
|
/drivers/pnp/pnpacpi/ |
D | rsparser.c | 544 io->alignment, io->address_length, flags); in pnpacpi_parse_port_option() 570 p->alignment, p->address_length, flags); in pnpacpi_parse_mem24_option() 585 p->alignment, p->address_length, flags); in pnpacpi_parse_mem32_option() 955 io->alignment = 0; /* Correct? */ in pnpacpi_encode_io() 996 memory24->alignment = 0; in pnpacpi_encode_mem24() 1020 memory32->alignment = 0; in pnpacpi_encode_mem32() 1024 memory32->alignment = 0; in pnpacpi_encode_mem32()
|
/drivers/atm/ |
D | idt77252.h | 428 #define ALIGN_ADDRESS(addr, alignment) \ argument 429 ((((u32)(addr)) + (((u32)(alignment))-1)) & ~(((u32)(alignment)) - 1))
|
D | fore200e.c | 88 #define FORE200E_ALIGN(addr, alignment) \ argument 89 ((((unsigned long)(addr) + (alignment - 1)) & ~(alignment - 1)) - (unsigned long)(addr)) 178 fore200e_chunk_alloc(struct fore200e* fore200e, struct chunk* chunk, int size, int alignment, int d… in fore200e_chunk_alloc() argument 182 if (alignment <= sizeof(int)) in fore200e_chunk_alloc() 183 alignment = 0; in fore200e_chunk_alloc() 185 chunk->alloc_size = size + alignment; in fore200e_chunk_alloc() 193 if (alignment > 0) in fore200e_chunk_alloc() 194 offset = FORE200E_ALIGN(chunk->alloc_addr, alignment); in fore200e_chunk_alloc() 469 int size, int nbr, int alignment) in fore200e_pca_dma_chunk_alloc() argument 720 int size, int nbr, int alignment) in fore200e_sba_dma_chunk_alloc() argument
|
/drivers/pci/hotplug/ |
D | cpqphp_ctrl.c | 410 struct pci_resource **orig_head, u32 alignment) in do_pre_bridge_resource_split() argument 439 if (node->length & (alignment -1)) { in do_pre_bridge_resource_split() 447 temp_dword = (node->length | (alignment-1)) + 1 - alignment; in do_pre_bridge_resource_split() 460 if (node->length < alignment) in do_pre_bridge_resource_split() 484 static struct pci_resource *do_bridge_resource_split(struct pci_resource **head, u32 alignment) in do_bridge_resource_split() argument 504 if (node->length < alignment) in do_bridge_resource_split() 507 if (node->base & (alignment - 1)) { in do_bridge_resource_split() 509 temp_dword = (node->base | (alignment-1)) + 1; in do_bridge_resource_split() 510 if ((node->length - (temp_dword - node->base)) < alignment) in do_bridge_resource_split() 517 if (node->length & (alignment - 1)) in do_bridge_resource_split()
|