/drivers/gpu/drm/ |
D | drm_mm.c | 95 unsigned alignment, 100 unsigned alignment, 108 u64 size, unsigned alignment, in drm_mm_insert_helper() argument 126 if (alignment) { in drm_mm_insert_helper() 130 rem = do_div(tmp, alignment); in drm_mm_insert_helper() 135 adj_start += alignment - rem; in drm_mm_insert_helper() 233 u64 size, unsigned alignment, in drm_mm_insert_node_generic() argument 240 hole_node = drm_mm_search_free_generic(mm, size, alignment, in drm_mm_insert_node_generic() 245 drm_mm_insert_helper(hole_node, node, size, alignment, color, aflags); in drm_mm_insert_node_generic() 252 u64 size, unsigned alignment, in drm_mm_insert_helper_range() argument [all …]
|
D | drm_bufs.c | 611 int alignment; in drm_legacy_addbufs_agp() local 625 alignment = (request->flags & _DRM_PAGE_ALIGN) in drm_legacy_addbufs_agp() 637 DRM_DEBUG("alignment: %d\n", alignment); in drm_legacy_addbufs_agp() 694 buf->total = alignment; in drm_legacy_addbufs_agp() 719 offset += alignment; in drm_legacy_addbufs_agp() 775 int alignment; in drm_legacy_addbufs_pci() local 802 alignment = (request->flags & _DRM_PAGE_ALIGN) in drm_legacy_addbufs_pci() 890 offset += alignment, ++entry->buf_count) { in drm_legacy_addbufs_pci() 893 buf->total = alignment; in drm_legacy_addbufs_pci() 979 int alignment; in drm_legacy_addbufs_sg() local [all …]
|
/drivers/mtd/ubi/ |
D | vmt.c | 47 __ATTR(alignment, S_IRUGO, vol_attribute_show, NULL); 103 ret = sprintf(buf, "%d\n", vol->alignment); in vol_attribute_show() 210 vol->usable_leb_size = ubi->leb_size - ubi->leb_size % req->alignment; in ubi_create_volume() 229 vol->alignment = req->alignment; in ubi_create_volume() 230 vol->data_pad = ubi->leb_size % vol->alignment; in ubi_create_volume() 300 vtbl_rec.alignment = cpu_to_be32(vol->alignment); in ubi_create_volume() 666 int reserved_pebs, alignment, data_pad, vol_type, name_len, upd_marker; in self_check_volume() local 684 if (vol->reserved_pebs < 0 || vol->alignment < 0 || vol->data_pad < 0 || in self_check_volume() 689 if (vol->alignment > ubi->leb_size || vol->alignment == 0) { in self_check_volume() 694 n = vol->alignment & (ubi->min_io_size - 1); in self_check_volume() [all …]
|
D | vtbl.c | 173 int i, n, reserved_pebs, alignment, data_pad, vol_type, name_len; in vtbl_check() local 182 alignment = be32_to_cpu(vtbl[i].alignment); in vtbl_check() 206 if (reserved_pebs < 0 || alignment < 0 || data_pad < 0 || in vtbl_check() 212 if (alignment > ubi->leb_size || alignment == 0) { in vtbl_check() 217 n = alignment & (ubi->min_io_size - 1); in vtbl_check() 218 if (alignment != 1 && n) { in vtbl_check() 223 n = ubi->leb_size % alignment; in vtbl_check() 549 vol->alignment = be32_to_cpu(vtbl[i].alignment); in init_volumes() 628 vol->alignment = UBI_LAYOUT_VOLUME_ALIGN; in init_volumes()
|
D | cdev.c | 607 if (req->bytes < 0 || req->alignment < 0 || req->vol_type < 0 || in verify_mkvol_req() 615 if (req->alignment == 0) in verify_mkvol_req() 625 if (req->alignment > ubi->leb_size) in verify_mkvol_req() 628 n = req->alignment & (ubi->min_io_size - 1); in verify_mkvol_req() 629 if (req->alignment != 1 && n) in verify_mkvol_req()
|
/drivers/gpu/drm/qxl/ |
D | qxl_gem.c | 46 int alignment, int initial_domain, in qxl_gem_object_create() argument 56 if (alignment < PAGE_SIZE) in qxl_gem_object_create() 57 alignment = PAGE_SIZE; in qxl_gem_object_create() 63 size, initial_domain, alignment, r); in qxl_gem_object_create()
|
/drivers/gpu/drm/i915/ |
D | i915_gem_evict.c | 75 int min_size, unsigned alignment, unsigned cache_level, in i915_gem_evict_something() argument 84 trace_i915_gem_evict(dev, min_size, alignment, flags); in i915_gem_evict_something() 112 alignment, cache_level, in i915_gem_evict_something() 115 drm_mm_init_scan(&vm->mm, min_size, alignment, cache_level); in i915_gem_evict_something()
|
D | i915_gem_stolen.c | 50 unsigned alignment, u64 start, u64 end) in i915_gem_stolen_insert_node_in_range() argument 64 alignment, start, end, in i915_gem_stolen_insert_node_in_range() 73 unsigned alignment) in i915_gem_stolen_insert_node() argument 76 alignment, 0, in i915_gem_stolen_insert_node()
|
D | i915_gem_execbuffer.c | 606 ret = i915_gem_object_pin(obj, vma->vm, entry->alignment, flags); in i915_gem_execbuffer_reserve_vma() 610 entry->alignment, in i915_gem_execbuffer_reserve_vma() 669 if (entry->alignment && in eb_vma_misplaced() 670 vma->node.start & (entry->alignment - 1)) in eb_vma_misplaced() 986 if (exec[i].alignment && !is_power_of_2(exec[i].alignment)) in validate_exec_list() 1710 exec2_list[i].alignment = exec_list[i].alignment; in i915_gem_execbuffer()
|
D | i915_gem.c | 3509 unsigned alignment, in i915_gem_object_bind_to_vm() argument 3564 if (alignment == 0) in i915_gem_object_bind_to_vm() 3565 alignment = flags & PIN_MAPPABLE ? fence_alignment : in i915_gem_object_bind_to_vm() 3567 if (flags & PIN_MAPPABLE && alignment & (fence_alignment - 1)) { in i915_gem_object_bind_to_vm() 3570 alignment); in i915_gem_object_bind_to_vm() 3609 size, alignment, in i915_gem_object_bind_to_vm() 3615 ret = i915_gem_evict_something(dev, vm, size, alignment, in i915_gem_object_bind_to_vm() 4018 u32 alignment, in i915_gem_object_pin_to_display_plane() argument 4053 ret = i915_gem_object_ggtt_pin(obj, view, alignment, in i915_gem_object_pin_to_display_plane() 4204 i915_vma_misplaced(struct i915_vma *vma, uint32_t alignment, uint64_t flags) in i915_vma_misplaced() argument [all …]
|
/drivers/crypto/nx/ |
D | nx-842.c | 192 if (adj_slen > slen || (u64)src % c->alignment) { in compress() 206 if ((u64)dst % c->alignment) { in compress() 207 dskip = (int)(PTR_ALIGN(dst, c->alignment) - dst); in compress() 291 (u64)p.in % c.alignment || in nx842_crypto_compress() 295 (u64)p.out % c.alignment); in nx842_crypto_compress() 376 if (slen < adj_slen || (u64)src % c->alignment) { in decompress() 392 if (dlen < required_len || (u64)dst % c->alignment) { in decompress()
|
/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/gpu/drm/amd/amdgpu/ |
D | amdgpu_gem.c | 46 int alignment, u32 initial_domain, in amdgpu_gem_object_create() argument 56 if (alignment < PAGE_SIZE) { in amdgpu_gem_object_create() 57 alignment = PAGE_SIZE; in amdgpu_gem_object_create() 72 r = amdgpu_bo_create(adev, size, alignment, kernel, initial_domain, in amdgpu_gem_object_create() 81 size, initial_domain, alignment, r); in amdgpu_gem_object_create() 197 r = amdgpu_gem_object_create(adev, size, args->in.alignment, in amdgpu_gem_create_ioctl() 633 info.alignment = robj->tbo.mem.page_alignment << PAGE_SHIFT; in amdgpu_gem_op_ioctl()
|
/drivers/scsi/pm8001/ |
D | pm8001_init.c | 157 pm8001_ha->memoryMap.region[i].alignment), in pm8001_free() 270 pm8001_ha->memoryMap.region[AAP1].alignment = 32; in pm8001_alloc() 276 pm8001_ha->memoryMap.region[IOP].alignment = 32; in pm8001_alloc() 283 pm8001_ha->memoryMap.region[CI+i].alignment = 4; in pm8001_alloc() 292 pm8001_ha->memoryMap.region[IB+i].alignment = 128; in pm8001_alloc() 299 pm8001_ha->memoryMap.region[IB+i].alignment = 64; in pm8001_alloc() 308 pm8001_ha->memoryMap.region[PI+i].alignment = 4; in pm8001_alloc() 317 pm8001_ha->memoryMap.region[OB+i].alignment = 128; in pm8001_alloc() 325 pm8001_ha->memoryMap.region[OB+i].alignment = 64; in pm8001_alloc() 353 pm8001_ha->memoryMap.region[FORENSIC_MEM].alignment = 0x10000; in pm8001_alloc() [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_gem.c | 45 int alignment, int initial_domain, in radeon_gem_object_create() argument 55 if (alignment < PAGE_SIZE) { in radeon_gem_object_create() 56 alignment = PAGE_SIZE; in radeon_gem_object_create() 70 r = radeon_bo_create(rdev, size, alignment, kernel, initial_domain, in radeon_gem_object_create() 79 size, initial_domain, alignment, r); in radeon_gem_object_create() 260 r = radeon_gem_object_create(rdev, args->size, args->alignment, in radeon_gem_create_ioctl()
|
D | radeon_ioc32.c | 294 int alignment; member 311 || __put_user(req32.alignment, &request->alignment) in compat_radeon_mem_alloc()
|
/drivers/pnp/pnpacpi/ |
D | rsparser.c | 349 io->alignment, io->address_length, flags); in pnpacpi_parse_port_option() 369 p->alignment, p->address_length, flags); in pnpacpi_parse_mem24_option() 381 p->alignment, p->address_length, flags); in pnpacpi_parse_mem32_option() 769 io->alignment = 0; /* Correct? */ in pnpacpi_encode_io() 810 memory24->alignment = 0; in pnpacpi_encode_mem24() 834 memory32->alignment = 0; in pnpacpi_encode_mem32() 838 memory32->alignment = 0; in pnpacpi_encode_mem32()
|
/drivers/acpi/acpica/ |
D | rsio.c | 77 {ACPI_RSC_MOVE8, ACPI_RS_OFFSET(data.io.alignment), 78 AML_OFFSET(io.alignment),
|
D | amlresrc.h | 176 u8 alignment; member 218 u16 alignment; member 229 u32 alignment; member
|
/drivers/staging/rtl8723au/hal/ |
D | rtl8723au_recv.c | 32 unsigned long alignment; in rtl8723au_init_recv_priv() local 80 alignment = tmpaddr & (RECVBUFF_ALIGN_SZ-1); in rtl8723au_init_recv_priv() 81 skb_reserve(pskb, (RECVBUFF_ALIGN_SZ - alignment)); in rtl8723au_init_recv_priv()
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_alloc.h | 49 u64 size, u32 alignment);
|
/drivers/net/ethernet/intel/i40evf/ |
D | i40e_alloc.h | 49 u64 size, u32 alignment);
|
/drivers/clk/tegra/ |
D | cvb.h | 52 struct rail_alignment alignment; member
|
/drivers/atm/ |
D | idt77252.h | 428 #define ALIGN_ADDRESS(addr, alignment) \ argument 429 ((((u32)(addr)) + (((u32)(alignment))-1)) & ~(((u32)(alignment)) - 1))
|