/drivers/gpu/drm/ |
D | drm_mm.c | 121 unsigned long size, unsigned alignment) in drm_mm_insert_helper() argument 130 if (alignment) in drm_mm_insert_helper() 131 tmp = hole_start % alignment; in drm_mm_insert_helper() 137 wasted = alignment - tmp; in drm_mm_insert_helper() 159 unsigned alignment, in drm_mm_get_block_generic() argument 168 drm_mm_insert_helper(hole_node, node, size, alignment); in drm_mm_get_block_generic() 180 unsigned long size, unsigned alignment) in drm_mm_insert_node() argument 184 hole_node = drm_mm_search_free(mm, size, alignment, 0); in drm_mm_insert_node() 188 drm_mm_insert_helper(hole_node, node, size, alignment); in drm_mm_insert_node() 196 unsigned long size, unsigned alignment, in drm_mm_insert_helper_range() argument [all …]
|
D | drm_bufs.c | 612 int alignment; in drm_addbufs_agp() local 626 alignment = (request->flags & _DRM_PAGE_ALIGN) in drm_addbufs_agp() 638 DRM_DEBUG("alignment: %d\n", alignment); in drm_addbufs_agp() 697 buf->total = alignment; in drm_addbufs_agp() 723 offset += alignment; in drm_addbufs_agp() 778 int alignment; in drm_addbufs_pci() local 807 alignment = (request->flags & _DRM_PAGE_ALIGN) in drm_addbufs_pci() 895 offset += alignment, ++entry->buf_count) { in drm_addbufs_pci() 898 buf->total = alignment; in drm_addbufs_pci() 984 int alignment; in drm_addbufs_sg() local [all …]
|
/drivers/mtd/ubi/ |
D | vmt.c | 51 __ATTR(alignment, S_IRUGO, vol_attribute_show, NULL); 107 ret = sprintf(buf, "%d\n", vol->alignment); in vol_attribute_show() 258 vol->usable_leb_size = ubi->leb_size - ubi->leb_size % req->alignment; in ubi_create_volume() 276 vol->alignment = req->alignment; in ubi_create_volume() 277 vol->data_pad = ubi->leb_size % vol->alignment; in ubi_create_volume() 344 vtbl_rec.alignment = cpu_to_be32(vol->alignment); in ubi_create_volume() 727 int reserved_pebs, alignment, data_pad, vol_type, name_len, upd_marker; in paranoid_check_volume() local 745 if (vol->reserved_pebs < 0 || vol->alignment < 0 || vol->data_pad < 0 || in paranoid_check_volume() 750 if (vol->alignment > ubi->leb_size || vol->alignment == 0) { in paranoid_check_volume() 755 n = vol->alignment & (ubi->min_io_size - 1); in paranoid_check_volume() [all …]
|
D | vtbl.c | 180 int i, n, reserved_pebs, alignment, data_pad, vol_type, name_len; in vtbl_check() local 189 alignment = be32_to_cpu(vtbl[i].alignment); in vtbl_check() 213 if (reserved_pebs < 0 || alignment < 0 || data_pad < 0 || in vtbl_check() 219 if (alignment > ubi->leb_size || alignment == 0) { in vtbl_check() 224 n = alignment & (ubi->min_io_size - 1); in vtbl_check() 225 if (alignment != 1 && n) { in vtbl_check() 230 n = ubi->leb_size % alignment; in vtbl_check() 556 vol->alignment = be32_to_cpu(vtbl[i].alignment); in init_volumes() 635 vol->alignment = UBI_LAYOUT_VOLUME_ALIGN; in init_volumes()
|
D | debug.c | 93 printk(KERN_DEBUG "\talignment %d\n", vol->alignment); in ubi_dbg_dump_vol_info() 126 printk(KERN_DEBUG "\talignment %d\n", be32_to_cpu(r->alignment)); in ubi_dbg_dump_vtbl_record() 192 printk(KERN_DEBUG "\talignment %d\n", req->alignment); in ubi_dbg_dump_mkvol_req()
|
D | cdev.c | 610 if (req->bytes < 0 || req->alignment < 0 || req->vol_type < 0 || in verify_mkvol_req() 618 if (req->alignment == 0) in verify_mkvol_req() 628 if (req->alignment > ubi->leb_size) in verify_mkvol_req() 631 n = req->alignment & (ubi->min_io_size - 1); in verify_mkvol_req() 632 if (req->alignment != 1 && n) in verify_mkvol_req()
|
D | ubi-media.h | 367 __be32 alignment; member
|
/drivers/gpu/drm/i915/ |
D | i915_gem_evict.c | 44 unsigned alignment, bool mappable) in i915_gem_evict_something() argument 51 trace_i915_gem_evict(dev, min_size, alignment, mappable); in i915_gem_evict_something() 79 alignment, 0, in i915_gem_evict_something() 82 drm_mm_init_scan(&dev_priv->mm.gtt_space, min_size, alignment); in i915_gem_evict_something()
|
D | i915_ioc32.c | 157 int alignment; member 174 || __put_user(req32.alignment, &request->alignment) in compat_i915_alloc()
|
D | i915_gem.c | 49 unsigned alignment, 2654 unsigned alignment, in i915_gem_object_bind_to_gtt() argument 2681 if (alignment == 0) in i915_gem_object_bind_to_gtt() 2682 alignment = map_and_fenceable ? fence_alignment : in i915_gem_object_bind_to_gtt() 2684 if (map_and_fenceable && alignment & (fence_alignment - 1)) { in i915_gem_object_bind_to_gtt() 2685 DRM_ERROR("Invalid object alignment requested %u\n", alignment); in i915_gem_object_bind_to_gtt() 2704 size, alignment, 0, in i915_gem_object_bind_to_gtt() 2709 size, alignment, 0); in i915_gem_object_bind_to_gtt() 2715 size, alignment, 0, in i915_gem_object_bind_to_gtt() 2720 drm_mm_get_block(free_space, size, alignment); in i915_gem_object_bind_to_gtt() [all …]
|
D | i915_gem_execbuffer.c | 483 ret = i915_gem_object_pin(obj, entry->alignment, need_mappable); in pin_and_fence_object() 582 if ((entry->alignment && obj->gtt_offset & (entry->alignment - 1)) || in i915_gem_execbuffer_reserve() 1389 exec2_list[i].alignment = exec_list[i].alignment; in i915_gem_execbuffer()
|
/drivers/gpu/drm/radeon/ |
D | radeon_gem.c | 50 int alignment, int initial_domain, in radeon_gem_object_create() argument 59 if (alignment < PAGE_SIZE) { in radeon_gem_object_create() 60 alignment = PAGE_SIZE; in radeon_gem_object_create() 62 r = radeon_bo_create(rdev, size, alignment, kernel, initial_domain, &robj); in radeon_gem_object_create() 66 size, initial_domain, alignment, r); in radeon_gem_object_create() 209 r = radeon_gem_object_create(rdev, args->size, args->alignment, in radeon_gem_create_ioctl()
|
D | radeon_mem.c | 237 if (alloc->alignment < 12) in radeon_mem_alloc() 238 alloc->alignment = 12; in radeon_mem_alloc() 240 block = alloc_block(*heap, alloc->size, alloc->alignment, file_priv); in radeon_mem_alloc()
|
D | radeon_ioc32.c | 295 int alignment; member 312 || __put_user(req32.alignment, &request->alignment) in compat_radeon_mem_alloc()
|
/drivers/ps3/ |
D | ps3stor_lib.c | 150 int error, res, alignment; in ps3stor_setup() local 178 alignment = min(__ffs(dev->bounce_size), in ps3stor_setup() 180 if (alignment < 12) { in ps3stor_setup() 186 } else if (alignment < 16) in ps3stor_setup()
|
/drivers/iommu/ |
D | omap-iovmm.c | 260 u32 start, prev_end, alignment; in alloc_iovm_area() local 266 alignment = PAGE_SIZE; in alloc_iovm_area() 270 start = obj->da_start ? obj->da_start : alignment; in alloc_iovm_area() 273 alignment = iopgsz_max(bytes); in alloc_iovm_area() 274 start = roundup(start, alignment); in alloc_iovm_area() 294 start = roundup(tmp->da_end + 1, alignment); in alloc_iovm_area()
|
/drivers/acpi/acpica/ |
D | amlresrc.h | 171 u8 alignment; member 207 u16 alignment; member 218 u32 alignment; member
|
D | rsio.c | 77 {ACPI_RSC_MOVE8, ACPI_RS_OFFSET(data.io.alignment), 78 AML_OFFSET(io.alignment),
|
D | rsdump.c | 145 {ACPI_RSD_UINT8, ACPI_RSD_OFFSET(io.alignment), "Alignment", NULL}, 180 {ACPI_RSD_UINT16, ACPI_RSD_OFFSET(memory24.alignment), "Alignment", 195 {ACPI_RSD_UINT32, ACPI_RSD_OFFSET(memory32.alignment), "Alignment",
|
/drivers/scsi/pm8001/ |
D | pm8001_init.c | 217 pm8001_ha->memoryMap.region[AAP1].alignment = 32; in pm8001_alloc() 223 pm8001_ha->memoryMap.region[IOP].alignment = 32; in pm8001_alloc() 229 pm8001_ha->memoryMap.region[CI].alignment = 4; in pm8001_alloc() 235 pm8001_ha->memoryMap.region[PI].alignment = 4; in pm8001_alloc() 241 pm8001_ha->memoryMap.region[IB].alignment = 64; in pm8001_alloc() 247 pm8001_ha->memoryMap.region[OB].alignment = 64; in pm8001_alloc() 274 pm8001_ha->memoryMap.region[i].alignment) != 0) { in pm8001_alloc()
|
/drivers/pnp/pnpacpi/ |
D | rsparser.c | 571 io->alignment, io->address_length, flags); in pnpacpi_parse_port_option() 591 p->alignment, p->address_length, flags); in pnpacpi_parse_mem24_option() 603 p->alignment, p->address_length, flags); in pnpacpi_parse_mem32_option() 990 io->alignment = 0; /* Correct? */ in pnpacpi_encode_io() 1031 memory24->alignment = 0; in pnpacpi_encode_mem24() 1055 memory32->alignment = 0; in pnpacpi_encode_mem32() 1059 memory32->alignment = 0; in pnpacpi_encode_mem32()
|
/drivers/staging/tidspbridge/include/dspbridge/ |
D | cmmdefs.h | 32 u32 alignment; /* 0,1,2,4....min_block_size */ member
|
/drivers/atm/ |
D | idt77252.h | 428 #define ALIGN_ADDRESS(addr, alignment) \ argument 429 ((((u32)(addr)) + (((u32)(alignment))-1)) & ~(((u32)(alignment)) - 1))
|
/drivers/staging/rtl8712/ |
D | usb_ops_linux.c | 260 int alignment = 0; in r8712_usb_read_port() local 287 alignment = tmpaddr & (RECVBUFF_ALIGN_SZ-1); in r8712_usb_read_port() 289 (RECVBUFF_ALIGN_SZ - alignment)); in r8712_usb_read_port()
|
/drivers/pci/hotplug/ |
D | cpqphp_ctrl.c | 411 struct pci_resource **orig_head, u32 alignment) in do_pre_bridge_resource_split() argument 441 if (node->length & (alignment -1)) { in do_pre_bridge_resource_split() 450 temp_dword = (node->length | (alignment-1)) + 1 - alignment; in do_pre_bridge_resource_split() 463 if (node->length < alignment) in do_pre_bridge_resource_split() 487 static struct pci_resource *do_bridge_resource_split(struct pci_resource **head, u32 alignment) in do_bridge_resource_split() argument 507 if (node->length < alignment) in do_bridge_resource_split() 510 if (node->base & (alignment - 1)) { in do_bridge_resource_split() 512 temp_dword = (node->base | (alignment-1)) + 1; in do_bridge_resource_split() 513 if ((node->length - (temp_dword - node->base)) < alignment) in do_bridge_resource_split() 520 if (node->length & (alignment - 1)) in do_bridge_resource_split()
|