Home
last modified time | relevance | path

Searched refs:ALIGN (Results 1 – 200 of 675) sorted by relevance

1234

/linux-4.4.14/arch/blackfin/kernel/
Dvmlinux.lds.S68 . = ALIGN(4);
78 . = ALIGN(4);
93 . = ALIGN(32);
101 . = ALIGN(32);
121 . = ALIGN(PAGE_SIZE);
137 . = ALIGN(16);
158 . = ALIGN(PAGE_SIZE);
172 . = ALIGN(4);
179 . = ALIGN(4);
188 . = ALIGN(4);
[all …]
/linux-4.4.14/arch/s390/include/asm/
Dkexec.h51 (ALIGN(sizeof(struct elf_note), 4) * 8 + \
52 ALIGN(sizeof("CORE"), 4) * 7 + \
53 ALIGN(sizeof(struct elf_prstatus), 4) + \
54 ALIGN(sizeof(elf_fpregset_t), 4) + \
55 ALIGN(sizeof(u64), 4) + \
56 ALIGN(sizeof(u64), 4) + \
57 ALIGN(sizeof(u32), 4) + \
58 ALIGN(sizeof(u64) * 16, 4) + \
59 ALIGN(sizeof(u32), 4) \
/linux-4.4.14/arch/arm/kernel/
Dvmlinux.lds.S16 . = ALIGN(4); \
26 . = ALIGN(PAGE_SIZE); \
98 . = ALIGN(1<<SECTION_SHIFT);
115 . = ALIGN(4);
121 . = ALIGN(1<<SECTION_SHIFT);
125 . = ALIGN(4);
138 . = ALIGN(8);
157 . = ALIGN(1<<SECTION_SHIFT);
159 . = ALIGN(PAGE_SIZE);
231 __data_loc = ALIGN(4); /* location in binary */
[all …]
/linux-4.4.14/arch/x86/kernel/
Dvmlinux.lds.S57 #define X64_ALIGN_DEBUG_RODATA_BEGIN . = ALIGN(HPAGE_SIZE);
60 . = ALIGN(HPAGE_SIZE); \
97 . = ALIGN(8);
117 . = ALIGN(PAGE_SIZE);
151 . = ALIGN(PAGE_SIZE);
174 . = ALIGN(__vvar_page + PAGE_SIZE, PAGE_SIZE);
177 . = ALIGN(PAGE_SIZE);
221 . = ALIGN(8);
233 . = ALIGN(8);
261 . = ALIGN(8);
[all …]
/linux-4.4.14/include/asm-generic/
Dvmlinux.lds.h60 #define ALIGN_FUNCTION() . = ALIGN(8)
67 #define STRUCT_ALIGN() . = ALIGN(STRUCT_ALIGNMENT)
90 #define MCOUNT_REC() . = ALIGN(8); \
115 #define KPROBE_BLACKLIST() . = ALIGN(8); \
124 #define FTRACE_EVENTS() . = ALIGN(8); \
148 #define TRACE_SYSCALLS() . = ALIGN(8); \
170 . = ALIGN(8); \
186 . = ALIGN(8); \
211 . = ALIGN(8); \
215 . = ALIGN(8); \
[all …]
/linux-4.4.14/arch/microblaze/kernel/
Dvmlinux.lds.S39 . = ALIGN (4) ;
43 . = ALIGN (4) ;
51 . = ALIGN(16);
62 . = ALIGN(PAGE_SIZE); /* page aligned when MMU used */
64 . = ALIGN(8);
75 . = ALIGN(8);
90 . = ALIGN(PAGE_SIZE);
99 . = ALIGN(4);
128 .bss ALIGN (PAGE_SIZE) : AT(ADDR(.bss) - LOAD_OFFSET) {
133 . = ALIGN (4) ;
[all …]
/linux-4.4.14/arch/arm64/kernel/
Dvmlinux.lds.S35 . = ALIGN(SZ_4K); \
44 . = ALIGN(SZ_4K); \
60 .pecoff_edata_padding : { BYTE(0); . = ALIGN(PECOFF_FILE_ALIGNMENT); }
66 #define ALIGN_DEBUG_RO . = ALIGN(1<<SECTION_SHIFT);
69 #define ALIGN_DEBUG_RO . = ALIGN(1<<PAGE_SHIFT);
73 #define ALIGN_DEBUG_RO_MIN(min) . = ALIGN(min);
112 . = ALIGN(16);
146 . = ALIGN(PAGE_SIZE);
149 . = ALIGN(4);
159 . = ALIGN(PAGE_SIZE);
[all …]
Dstacktrace.c44 high = ALIGN(low, THREAD_SIZE); in unwind_frame()
/linux-4.4.14/arch/c6x/kernel/
Dvmlinux.lds.S22 . = ALIGN(128); \
36 . = ALIGN(0x400);
50 . = ALIGN(PAGE_SIZE);
64 . = ALIGN(PAGE_SIZE);
90 . = ALIGN (8) ;
122 .neardata ALIGN(8) : AT(ADDR(.neardata) - LOAD_OFFSET)
126 . = ALIGN(8);
136 . = ALIGN(8);
139 . = ALIGN(8);
/linux-4.4.14/arch/powerpc/kernel/
Dvmlinux.lds.S68 . = ALIGN(PAGE_SIZE);
90 . = ALIGN(PAGE_SIZE);
125 . = ALIGN(8);
131 . = ALIGN(8);
137 . = ALIGN(8);
144 . = ALIGN(8);
157 . = ALIGN(8);
164 . = ALIGN(8);
194 . = ALIGN(PAGE_SIZE);
201 . = ALIGN(PAGE_SIZE);
[all …]
/linux-4.4.14/arch/parisc/kernel/
Dvmlinux.lds.S51 . = ALIGN(PAGE_SIZE);
63 . = ALIGN(HUGEPAGE_SIZE);
69 .text ALIGN(PAGE_SIZE) : {
84 . = ALIGN(PAGE_SIZE);
94 . = ALIGN(16);
119 . = ALIGN(HUGEPAGE_SIZE);
129 . = ALIGN(16);
142 . = ALIGN(HUGEPAGE_SIZE);
Dprocess.c227 usp = ALIGN(usp, 4); in copy_thread()
/linux-4.4.14/arch/frv/kernel/
Dvmlinux.lds.S24 . = ALIGN(PAGE_SIZE); /* Init code and data */
42 . = ALIGN(PAGE_SIZE);
47 . = ALIGN(8192);
51 . = ALIGN(4096);
56 . = ALIGN(4);
105 . = ALIGN(L1_CACHE_BYTES);
112 . = ALIGN(L1_CACHE_BYTES);
121 . = ALIGN(PAGE_SIZE);
/linux-4.4.14/arch/x86/realmode/rm/
Drealmode.lds.S24 . = ALIGN(4);
28 . = ALIGN(16);
34 . = ALIGN(PAGE_SIZE);
52 . = ALIGN(PAGE_SIZE);
58 . = ALIGN(128);
64 . = ALIGN(4);
/linux-4.4.14/arch/powerpc/boot/
DzImage.ps3.lds.S10 . = ALIGN(4096);
15 . = ALIGN(4096);
27 . = ALIGN(4096);
38 . = ALIGN(4096);
41 . = ALIGN(4096);
48 . = ALIGN(4096);
DzImage.lds.S19 . = ALIGN(4096);
46 . = ALIGN(8);
54 . = ALIGN(4096);
62 . = ALIGN(4096);
79 . = ALIGN(4096);
DzImage.coff.lds.S13 . = ALIGN(4096);
35 . = ALIGN(4096);
/linux-4.4.14/arch/ia64/kernel/
Dvmlinux.lds.S75 . = ALIGN(16);
94 . = ALIGN(8);
115 . = ALIGN(PAGE_SIZE);
141 . = ALIGN(16);
150 . = ALIGN(PERCPU_PAGE_SIZE);
155 . = ALIGN(PAGE_SIZE);
160 . = ALIGN(PAGE_SIZE);
169 . = ALIGN(PAGE_SIZE);
172 . = ALIGN(PERCPU_PAGE_SIZE);
194 . = ALIGN(16); /* gp must be 16-byte aligned for exc. table */
Dgate.lds.S57 . = ALIGN(PERCPU_PAGE_SIZE) + (. & (PERCPU_PAGE_SIZE - 1));
/linux-4.4.14/arch/arc/kernel/
Dvmlinux.lds.S36 . = ALIGN(PAGE_SIZE);
42 . = ALIGN(CONFIG_ARC_ICCM_SZ * 1024);
62 . = ALIGN(PAGE_SIZE);
93 . = ALIGN(PAGE_SIZE);
122 . = ALIGN(PAGE_SIZE);
139 . = ALIGN(PAGE_SIZE);
169 . = ALIGN(CONFIG_ARC_DCCM_SZ * 1024);
/linux-4.4.14/arch/m32r/boot/compressed/
Dvmlinux.lds.S13 . = ALIGN(32 / 8);
15 . = ALIGN(32 / 8);
20 . = ALIGN(32 / 8);
23 . = ALIGN(32 / 8);
25 . = ALIGN(4096);
/linux-4.4.14/arch/score/kernel/
Dvmlinux.lds.S47 . = ALIGN (4) ;
51 . = ALIGN(16);
62 . = ALIGN(8);
69 . = ALIGN(PAGE_SIZE); /* Init code and data */
84 . = ALIGN(PAGE_SIZE);
/linux-4.4.14/arch/powerpc/kernel/vdso64/
Dvdso64.lds.S29 . = ALIGN(16);
38 . = ALIGN(8);
41 . = ALIGN(8);
44 . = ALIGN(8);
47 . = ALIGN(8);
61 .rela.dyn ALIGN(8) : { *(.rela.dyn) }
63 .opd ALIGN(8) : { KEEP (*(.opd)) }
64 .got ALIGN(8) : { *(.got .toc) }
/linux-4.4.14/arch/s390/kernel/
Dvmlinux.lds.S44 . = ALIGN(0x100000); /* VM shared segments are 1MB aligned */
47 . = ALIGN(PAGE_SIZE);
58 . = ALIGN(PAGE_SIZE); /* Init code and data */
76 . = ALIGN(PAGE_SIZE);
80 . = ALIGN(PAGE_SIZE);
/linux-4.4.14/arch/mn10300/kernel/
Dvmlinux.lds.S52 . = ALIGN(PAGE_SIZE);
60 . = ALIGN(PAGE_SIZE); /* Init code and data */
64 . = ALIGN(4);
75 . = ALIGN(PAGE_SIZE);
84 . = ALIGN(PAGE_SIZE);
/linux-4.4.14/arch/nios2/boot/compressed/
Dvmlinux.lds.S36 . = ALIGN(32 / 8);
38 . = ALIGN(32 / 8);
49 . = ALIGN(32 / 8);
52 . = ALIGN(32 / 8);
Dvmlinux.scr25 . = ALIGN(4);
/linux-4.4.14/arch/um/include/asm/
Dcommon.lds.S7 . = ALIGN(4096);
14 . = ALIGN(4096);
17 . = ALIGN(4096);
75 . = ALIGN(4);
103 . = ALIGN(4096);
/linux-4.4.14/arch/openrisc/kernel/
Dvmlinux.lds.S42 . = ALIGN(PAGE_SIZE);
78 . = ALIGN(PAGE_SIZE);
93 . = ALIGN(PAGE_SIZE);
100 . = ALIGN (PAGE_SIZE);
/linux-4.4.14/drivers/media/platform/s5p-mfc/
Ds5p_mfc_opr_v5.c77 enc_ref_y_size = ALIGN(ctx->img_width, S5P_FIMV_NV12MT_HALIGN) in s5p_mfc_alloc_codec_buffers_v5()
78 * ALIGN(ctx->img_height, S5P_FIMV_NV12MT_VALIGN); in s5p_mfc_alloc_codec_buffers_v5()
79 enc_ref_y_size = ALIGN(enc_ref_y_size, S5P_FIMV_NV12MT_SALIGN); in s5p_mfc_alloc_codec_buffers_v5()
82 enc_ref_c_size = ALIGN(ctx->img_width, in s5p_mfc_alloc_codec_buffers_v5()
84 * ALIGN(ctx->img_height >> 1, in s5p_mfc_alloc_codec_buffers_v5()
86 enc_ref_c_size = ALIGN(enc_ref_c_size, in s5p_mfc_alloc_codec_buffers_v5()
89 guard_width = ALIGN(ctx->img_width + 16, in s5p_mfc_alloc_codec_buffers_v5()
91 guard_height = ALIGN((ctx->img_height >> 1) + 4, in s5p_mfc_alloc_codec_buffers_v5()
93 enc_ref_c_size = ALIGN(guard_width * guard_height, in s5p_mfc_alloc_codec_buffers_v5()
105 ALIGN(S5P_FIMV_DEC_NB_IP_SIZE + in s5p_mfc_alloc_codec_buffers_v5()
[all …]
Ds5p_mfc_opr_v6.c79 ALIGN(S5P_FIMV_TMV_BUFFER_SIZE_V8(mb_width, mb_height), in s5p_mfc_alloc_codec_buffers_v6()
83 ALIGN(S5P_FIMV_TMV_BUFFER_SIZE_V6(mb_width, mb_height), in s5p_mfc_alloc_codec_buffers_v6()
86 ctx->luma_dpb_size = ALIGN((mb_width * mb_height) * in s5p_mfc_alloc_codec_buffers_v6()
89 ctx->chroma_dpb_size = ALIGN((mb_width * mb_height) * in s5p_mfc_alloc_codec_buffers_v6()
93 ctx->me_buffer_size = ALIGN(S5P_FIMV_ME_BUFFER_SIZE_V8( in s5p_mfc_alloc_codec_buffers_v6()
98 ctx->me_buffer_size = ALIGN(S5P_FIMV_ME_BUFFER_SIZE_V6( in s5p_mfc_alloc_codec_buffers_v6()
123 ctx->scratch_buf_size = ALIGN(ctx->scratch_buf_size, in s5p_mfc_alloc_codec_buffers_v6()
142 ctx->scratch_buf_size = ALIGN(ctx->scratch_buf_size, in s5p_mfc_alloc_codec_buffers_v6()
152 ctx->scratch_buf_size = ALIGN(ctx->scratch_buf_size, in s5p_mfc_alloc_codec_buffers_v6()
165 ctx->scratch_buf_size = ALIGN(ctx->scratch_buf_size, in s5p_mfc_alloc_codec_buffers_v6()
[all …]
/linux-4.4.14/arch/um/kernel/
Ddyn.lds.S15 . = ALIGN(4096); /* Init code and data */
19 . = ALIGN(PAGE_SIZE);
77 . = ALIGN(PAGE_SIZE);
79 . = ALIGN(PAGE_SIZE);
101 . = ALIGN(32 / 8);
107 . = ALIGN(KERNEL_STACK_SIZE);
156 . = ALIGN(32 / 8);
157 . = ALIGN(32 / 8);
Duml.lds.S24 . = ALIGN(PAGE_SIZE);
38 . = ALIGN(PAGE_SIZE);
71 . = ALIGN(KERNEL_STACK_SIZE);
97 . = ALIGN(PAGE_SIZE);
/linux-4.4.14/arch/tile/kernel/
Dvmlinux.lds.S34 . = ALIGN(0x10000);
40 . = ALIGN(0x20000);
67 . = ALIGN(PAGE_SIZE);
71 . = ALIGN(PAGE_SIZE);
Dvdso.c163 vdso_base = ALIGN(vdso_base, VDSO_ALIGNMENT); in setup_vdso_pages()
/linux-4.4.14/arch/cris/kernel/
Dvmlinux.lds.S58 . = ALIGN (4);
71 . = ALIGN(PAGE_SIZE); /* Init code and data. */
118 . = ALIGN(PAGE_SIZE);
125 . = ALIGN (0x20);
Dstacktrace.c10 unsigned long high = ALIGN(sp, THREAD_SIZE); in walk_stackframe()
/linux-4.4.14/arch/powerpc/platforms/44x/
Dppc476_modules.lds3 .text : ALIGN(4096)
7 .init.text : ALIGN(4096)
11 .exit.text : ALIGN(4096)
/linux-4.4.14/arch/x86/boot/
Dsetup.ld26 . = ALIGN(16);
35 . = ALIGN(16);
44 . = ALIGN(16);
51 . = ALIGN(16);
/linux-4.4.14/arch/powerpc/kernel/vdso32/
Dvdso32.lds.S29 . = ALIGN(16);
37 . = ALIGN(8);
40 . = ALIGN(8);
43 . = ALIGN(8);
47 . = ALIGN(8);
/linux-4.4.14/arch/sparc/kernel/
Dvmlinux.lds.S80 . = ALIGN(PAGE_SIZE);
81 __init_begin = ALIGN(PAGE_SIZE);
86 . = ALIGN(4);
152 . = ALIGN(PAGE_SIZE);
Diommu_common.h26 #define IO_PAGE_ALIGN(addr) ALIGN(addr, IO_PAGE_SIZE)
/linux-4.4.14/arch/xtensa/kernel/
Dvmlinux.lds.S70 . = ALIGN(4); \
104 . = ALIGN(16);
121 . = ALIGN(PAGE_SIZE);
128 . = ALIGN(0x4);
133 . = ALIGN(16);
187 . = ALIGN(4);
293 . = ALIGN(PAGE_SIZE);
/linux-4.4.14/arch/xtensa/boot/boot-redboot/
Dboot.ld15 .rodata ALIGN(0x04):
21 .data ALIGN(0x04):
34 . = ALIGN(0x10);
/linux-4.4.14/arch/x86/boot/compressed/
Dvmlinux.lds.S56 . = ALIGN(L1_CACHE_BYTES);
62 . = ALIGN(8); /* For convenience during zeroing */
66 . = ALIGN(PAGE_SIZE);
Daslr.c258 region.start = ALIGN(region.start, CONFIG_PHYSICAL_ALIGN); in process_e820_entry()
288 minimum = ALIGN(minimum, CONFIG_PHYSICAL_ALIGN); in find_random_addr()
/linux-4.4.14/arch/m32r/kernel/
Dvmlinux.lds.S39 . = ALIGN(65536);
53 . = ALIGN(PAGE_SIZE); /* Init code and data */
58 . = ALIGN(PAGE_SIZE);
Dentry.S152 ALIGN
223 ALIGN
Dhead.S272 ALIGN
278 ALIGN
/linux-4.4.14/arch/arm/boot/compressed/
Dvmlinux.lds.S55 . = ALIGN(4);
65 .pad : { BYTE(0); . = ALIGN(8); }
77 . = ALIGN(8); /* the stack must be 64-bit aligned */
/linux-4.4.14/arch/s390/kernel/vdso64/
Dvdso64.lds.S25 . = ALIGN(16);
45 .rela.dyn ALIGN(8) : { *(.rela.dyn) }
46 .got ALIGN(8) : { *(.got .toc) }
94 . = ALIGN(4096);
/linux-4.4.14/arch/s390/kernel/vdso32/
Dvdso32.lds.S25 . = ALIGN(16);
45 .rela.dyn ALIGN(8) : { *(.rela.dyn) }
46 .got ALIGN(8) : { *(.got .toc) }
94 . = ALIGN(4096);
/linux-4.4.14/arch/sh/kernel/
Dvmlinux.lds.S57 . = ALIGN(PAGE_SIZE); /* Init code and data */
62 . = ALIGN(4);
78 . = ALIGN(PAGE_SIZE);
/linux-4.4.14/net/netfilter/
Dnf_conntrack_extend.c57 off = ALIGN(sizeof(struct nf_ct_ext), t->align); in nf_ct_ext_create()
93 newoff = ALIGN(old->len, t->align); in __nf_ct_ext_add_length()
144 t1->alloc_size = ALIGN(sizeof(struct nf_ct_ext), t1->align) + in update_alloc_size()
153 t1->alloc_size = ALIGN(t1->alloc_size, t2->align) in update_alloc_size()
172 type->alloc_size = ALIGN(sizeof(struct nf_ct_ext), type->align) in nf_ct_extend_register()
/linux-4.4.14/fs/gfs2/
Dxattr.h20 ALIGN(sizeof(struct gfs2_ea_header) + (ea)->ea_name_len + \
28 ALIGN(sizeof(struct gfs2_ea_header) + (er)->er_name_len + (er)->er_data_len, 8)
34 ((__be64 *)(GFS2_EA2NAME(ea) + ALIGN((ea)->ea_name_len, 8)))
/linux-4.4.14/arch/m68k/kernel/
Dvmlinux-std.lds39 . = ALIGN(PAGE_SIZE); /* Init code and data */
50 /* This ALIGN be in a section so that _end is at the end of the
52 . = ALIGN(PAGE_SIZE);
Dvmlinux-nommu.lds50 . = ALIGN(16);
66 . = ALIGN(PAGE_SIZE);
77 . = ALIGN(PAGE_SIZE);
Dvmlinux-sun3.lds35 . = ALIGN(PAGE_SIZE); /* Init code and data */
44 . = ALIGN(PAGE_SIZE);
/linux-4.4.14/fs/ubifs/
Dsb.c158 tmp = ALIGN(UBIFS_SB_NODE_SZ, c->min_io_size); in create_default_filesystem()
219 mst->ihead_offs = cpu_to_le32(ALIGN(tmp, c->min_io_size)); in create_default_filesystem()
220 mst->index_size = cpu_to_le64(ALIGN(tmp, 8)); in create_default_filesystem()
236 tmp64 -= ALIGN(ubifs_idx_node_sz(c, 1), c->min_io_size); in create_default_filesystem()
237 tmp64 -= ALIGN(UBIFS_INO_NODE_SZ, c->min_io_size); in create_default_filesystem()
240 tmp64 = ALIGN(ubifs_idx_node_sz(c, 1), c->min_io_size); in create_default_filesystem()
241 ino_waste = ALIGN(UBIFS_INO_NODE_SZ, c->min_io_size) - in create_default_filesystem()
244 tmp64 -= ALIGN(ubifs_idx_node_sz(c, 1), 8); in create_default_filesystem()
268 idx = kzalloc(ALIGN(tmp, c->min_io_size), GFP_KERNEL); in create_default_filesystem()
291 tmp = ALIGN(UBIFS_INO_NODE_SZ, c->min_io_size); in create_default_filesystem()
[all …]
Dtnc_commit.c84 c->calc_idx_sz += ALIGN(len, 8); in make_idx_node()
129 const int alen = ALIGN(len, 8); in fill_gap()
147 c->ileb_len = ALIGN(gap_pos, c->min_io_size); in fill_gap()
273 dirt += ALIGN(snod->len, 8); in layout_leb_in_gaps()
288 gap_start = ALIGN(snod->offs + snod->len, 8); in layout_leb_in_gaps()
427 buf_len = ALIGN(buf_len, c->min_io_size); in layout_in_empty_space()
475 c->calc_idx_sz += ALIGN(len, 8); in layout_in_empty_space()
495 used += ALIGN(len, 8); in layout_in_empty_space()
496 avail -= ALIGN(len, 8); in layout_in_empty_space()
507 blen = ALIGN(wlen, c->min_io_size); in layout_in_empty_space()
[all …]
Dlog.c371 max_len = ALIGN(max_len, c->min_io_size); in ubifs_log_start_commit()
407 ubifs_pad(c, buf + len, ALIGN(len, c->min_io_size) - len); in ubifs_log_start_commit()
421 len = ALIGN(len, c->min_io_size); in ubifs_log_start_commit()
609 int sz = ALIGN(*offs, c->min_io_size), err; in add_node()
619 *offs += ALIGN(len, 8); in add_node()
688 int sz = ALIGN(offs, c->min_io_size); in ubifs_consolidate_log()
694 offs = ALIGN(offs, c->min_io_size); in ubifs_consolidate_log()
Djournal.c572 aligned_dlen = ALIGN(dlen, 8); in ubifs_jnl_update()
573 aligned_ilen = ALIGN(ilen, 8); in ubifs_jnl_update()
958 aligned_dlen1 = ALIGN(dlen1, 8); in ubifs_jnl_rename()
959 aligned_dlen2 = ALIGN(dlen2, 8); in ubifs_jnl_rename()
960 len = aligned_dlen1 + aligned_dlen2 + ALIGN(ilen, 8) + ALIGN(plen, 8); in ubifs_jnl_rename()
999 p += ALIGN(ilen, 8); in ubifs_jnl_rename()
1006 p += ALIGN(plen, 8); in ubifs_jnl_rename()
1053 offs += ALIGN(ilen, 8); in ubifs_jnl_rename()
1062 offs += ALIGN(plen, 8); in ubifs_jnl_rename()
1307 aligned_xlen = ALIGN(xlen, 8); in ubifs_jnl_delete_xattr()
[all …]
Drecovery.c422 empty_offs = ALIGN(offs + 1, c->max_write_size); in is_last_write()
449 empty_offs = ALIGN(*offs, c->min_io_size); in clean_buf()
477 skip = ALIGN(offs + UBIFS_CH_SZ, c->max_write_size) - offs; in no_more_nodes()
489 skip = ALIGN(offs + dlen, c->max_write_size) - offs; in no_more_nodes()
540 int len = ALIGN(endpt, c->min_io_size); in fix_unclean_leb()
550 int pad_len = len - ALIGN(endpt, 8); in fix_unclean_leb()
668 node_len = ALIGN(le32_to_cpu(ch->len), 8); in ubifs_recover_leb()
1024 node_len = ALIGN(le32_to_cpu(ch->len), 8); in clean_an_unclean_leb()
1056 len = ALIGN(ucleb->endpt, c->min_io_size); in clean_an_unclean_leb()
1058 int pad_len = len - ALIGN(ucleb->endpt, 8); in clean_an_unclean_leb()
[all …]
Dscan.c119 lnum, offs, ALIGN(offs + node_len + pad_len, 8)); in ubifs_scan_a_node()
182 sleb->endpt = ALIGN(offs, c->min_io_size); in ubifs_end_scan()
320 node_len = ALIGN(le32_to_cpu(ch->len), 8); in ubifs_scan()
Dxattr.c107 .new_ino_d = ALIGN(size, 8), .dirtied_ino = 1, in create_xattr()
108 .dirtied_ino_d = ALIGN(host_ui->data_len, 8) }; in create_xattr()
205 .dirtied_ino_d = ALIGN(size, 8) + ALIGN(host_ui->data_len, 8) }; in change_xattr()
509 .dirtied_ino_d = ALIGN(host_ui->data_len, 8) }; in remove_xattr()
Dio.c396 len = ALIGN(len, 8); in ubifs_prepare_node()
397 pad = ALIGN(len, c->min_io_size) - len; in ubifs_prepare_node()
521 sync_len = ALIGN(wbuf->used, c->min_io_size); in ubifs_wbuf_sync_nolock()
544 wbuf->size = ALIGN(wbuf->offs, c->max_write_size) - wbuf->offs; in ubifs_wbuf_sync_nolock()
585 wbuf->size = ALIGN(wbuf->offs, c->max_write_size) - wbuf->offs; in ubifs_wbuf_seek_nolock()
678 int err, written, n, aligned_len = ALIGN(len, 8); in ubifs_wbuf_write_nolock()
861 int err, buf_len = ALIGN(len, c->min_io_size); in ubifs_write_node()
Dlpt_commit.c234 alen = ALIGN(offs, c->min_io_size); in layout_cnodes()
277 alen = ALIGN(offs, c->min_io_size); in layout_cnodes()
297 alen = ALIGN(offs, c->min_io_size); in layout_cnodes()
313 alen = ALIGN(offs, c->min_io_size); in layout_cnodes()
415 alen = ALIGN(wlen, c->min_io_size); in write_cnodes()
474 alen = ALIGN(wlen, c->min_io_size); in write_cnodes()
500 alen = ALIGN(wlen, c->min_io_size); in write_cnodes()
523 alen = ALIGN(wlen, c->min_io_size); in write_cnodes()
530 err = dbg_chk_lpt_sz(c, 3, ALIGN(offs, c->min_io_size)); in write_cnodes()
535 c->nhead_offs = ALIGN(offs, c->min_io_size); in write_cnodes()
[all …]
Dlpt.c127 tot_wastage += ALIGN(sz, c->min_io_size) - sz; in do_calc_lpt_geom()
661 node_sz = ALIGN(ubifs_idx_node_sz(c, 1), 8); in ubifs_create_dflt_lpt()
662 iopos = ALIGN(node_sz, c->min_io_size); in ubifs_create_dflt_lpt()
668 iopos = ALIGN(node_sz, c->min_io_size); in ubifs_create_dflt_lpt()
701 alen = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt()
730 alen = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt()
778 alen = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt()
803 alen = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt()
818 alen = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt()
831 c->nhead_offs = ALIGN(len, c->min_io_size); in ubifs_create_dflt_lpt()
Dsuper.c565 c->ref_node_alsz = ALIGN(UBIFS_REF_NODE_SZ, c->min_io_size); in init_constants_early()
566 c->mst_node_alsz = ALIGN(UBIFS_MST_NODE_SZ, c->min_io_size); in init_constants_early()
605 c->dead_wm = ALIGN(MIN_WRITE_SZ, c->min_io_size); in init_constants_early()
606 c->dark_wm = ALIGN(UBIFS_MAX_NODE_SZ, c->min_io_size); in init_constants_early()
662 c->min_idx_node_sz = ALIGN(tmp, 8); in init_constants_sb()
666 c->max_idx_node_sz = ALIGN(tmp, 8); in init_constants_sb()
670 tmp = ALIGN(tmp, c->min_io_size); in init_constants_sb()
1239 sz = ALIGN(c->max_idx_node_sz, c->min_io_size); in mount_ubifs()
1240 sz = ALIGN(sz + c->max_idx_node_sz, c->min_io_size); in mount_ubifs()
Ddir.c508 .dirtied_ino_d = ALIGN(ui->data_len, 8) }; in ubifs_link()
781 .new_ino_d = ALIGN(devlen, 8), in ubifs_mknod()
857 .new_ino_d = ALIGN(len, 8), in ubifs_symlink()
983 .dirtied_ino_d = ALIGN(old_inode_ui->data_len, 8) }; in ubifs_rename()
1161 size = ALIGN(size, UBIFS_BLOCK_SIZE); in ubifs_getattr()
/linux-4.4.14/arch/xtensa/lib/
Dusercopy.S59 #define ALIGN(R, W0, W1) src R, W0, W1 macro
62 #define ALIGN(R, W0, W1) src R, W1, W0 macro
231 ALIGN( a6, a6, a7)
234 ALIGN( a7, a7, a8)
237 ALIGN( a8, a8, a9)
240 ALIGN( a9, a9, a6)
251 ALIGN( a6, a6, a7)
254 ALIGN( a7, a7, a8)
263 ALIGN( a6, a6, a7)
/linux-4.4.14/arch/h8300/boot/compressed/
Dvmlinux.lds25 . = ALIGN(0x4) ;
28 . = ALIGN(0x4) ;
/linux-4.4.14/tools/virtio/
Dvringh_test.c24 #define ALIGN 4096 macro
153 mapsize = vring_size(RINGSIZE, ALIGN) in parallel_test()
187 vring_init(&vrh.vring, RINGSIZE, host_map, ALIGN); in parallel_test()
299 data = guest_map + vring_size(RINGSIZE, ALIGN); in parallel_test()
316 vq = vring_new_virtqueue(0, RINGSIZE, ALIGN, &gvdev.vdev, true, in parallel_test()
479 memset(__user_addr_min, 0, vring_size(RINGSIZE, ALIGN)); in main()
482 vq = vring_new_virtqueue(0, RINGSIZE, ALIGN, &vdev, true, in main()
488 vring_init(&vrh.vring, RINGSIZE, __user_addr_min, ALIGN); in main()
507 __kmalloc_fake = __user_addr_min + vring_size(RINGSIZE, ALIGN); in main()
557 __kfree_ignore_start = __user_addr_min + vring_size(RINGSIZE, ALIGN); in main()
[all …]
/linux-4.4.14/arch/mips/kernel/
Dvmlinux.lds.S114 . = ALIGN(PAGE_SIZE); /* Init code and data */
119 . = ALIGN(4);
154 . = ALIGN(0x10000);
/linux-4.4.14/mm/
Dcma.c74 return (ALIGN(cma->base_pfn, (1UL << align_order)) in cma_bitmap_aligned_offset()
81 return ALIGN(pages, 1UL << cma->order_per_bit) >> cma->order_per_bit; in cma_bitmap_pages_to_bits()
192 if (ALIGN(base, alignment) != base || ALIGN(size, alignment) != size) in cma_init_reserved_mem()
271 base = ALIGN(base, alignment); in cma_declare_contiguous()
272 size = ALIGN(size, alignment); in cma_declare_contiguous()
Dbootmem.c61 return ALIGN(bytes, sizeof(long)); in bootmap_bytes()
219 start = ALIGN(start + 1, BITS_PER_LONG); in free_all_bootmem_core()
487 return ALIGN(base + idx, step) - base; in align_idx()
497 return ALIGN(base + off, align) - base; in align_off()
532 start = ALIGN(goal, step); in alloc_bootmem_bdata()
534 start = ALIGN(min, step); in alloc_bootmem_bdata()
Dpage_idle.c133 end_pfn = ALIGN(max_pfn, BITMAP_CHUNK_BITS); in page_idle_bitmap_read()
178 end_pfn = ALIGN(max_pfn, BITMAP_CHUNK_BITS); in page_idle_bitmap_write()
Dsparse-vmemmap.c81 ptr = (void *)ALIGN((unsigned long)vmemmap_buf, size); in vmemmap_alloc_block_buf()
204 size = ALIGN(size, PMD_SIZE); in sparse_mem_maps_populate_node()
Dpage_owner.c232 pfn = ALIGN(pfn + 1, MAX_ORDER_NR_PAGES); in init_pages_in_zone()
236 block_end_pfn = ALIGN(pfn + 1, pageblock_nr_pages); in init_pages_in_zone()
Dmemtest.c41 start_phys_aligned = ALIGN(start_phys, incr); in memtest()
Dcompaction.c561 block_end_pfn = ALIGN(pfn + 1, pageblock_nr_pages); in isolate_freepages_range()
576 block_end_pfn = ALIGN(pfn + 1, pageblock_nr_pages); in isolate_freepages_range()
870 block_end_pfn = ALIGN(pfn + 1, pageblock_nr_pages); in isolate_migratepages_range()
958 low_pfn = ALIGN(cc->migrate_pfn + 1, pageblock_nr_pages); in isolate_freepages()
1112 end_pfn = ALIGN(low_pfn + 1, pageblock_nr_pages); in isolate_migratepages()
/linux-4.4.14/arch/s390/boot/compressed/
Dvmlinux.lds.S40 . = ALIGN(256);
46 . = ALIGN(8); /* For convenience during zeroing */
/linux-4.4.14/arch/metag/kernel/
Dvmlinux.lds.S41 . = ALIGN(PAGE_SIZE); /* Init code and data */
60 . = ALIGN(PAGE_SIZE);
/linux-4.4.14/arch/alpha/kernel/
Dvmlinux.lds.S41 __init_begin = ALIGN(PAGE_SIZE);
47 . = ALIGN(THREAD_SIZE);
Dpci.c167 start = ALIGN(start, alignto); in pcibios_align_resource()
172 start = ALIGN(start, alignto); in pcibios_align_resource()
177 start = ALIGN(start, alignto); in pcibios_align_resource()
/linux-4.4.14/arch/avr32/kernel/
Dvmlinux.lds.S38 . = ALIGN(4);
44 . = ALIGN(PAGE_SIZE);
/linux-4.4.14/arch/mn10300/mm/
Dcache-inv-by-reg.S56 ALIGN
78 ALIGN
102 ALIGN
Dcache-dbg-flush-by-tag.S29 ALIGN
84 ALIGN
Dcache-flush-by-reg.S48 ALIGN
97 ALIGN
184 ALIGN
230 ALIGN
Dcache-inv-by-tag.S64 ALIGN
86 ALIGN
110 ALIGN
Dcache-dbg-inv.S31 ALIGN
Dcache-flush-by-tag.S48 ALIGN
Dcache-dbg-flush-by-reg.S28 ALIGN
/linux-4.4.14/arch/mips/boot/compressed/
Dld.script32 . = ALIGN(16);
45 . = ALIGN(16);
/linux-4.4.14/include/linux/
Dlinkage.h78 #define ALIGN __ALIGN macro
84 ALIGN ASM_NL \
Dkexec.h63 #define KEXEC_NOTE_HEAD_BYTES ALIGN(sizeof(struct elf_note), 4)
65 #define KEXEC_CORE_NOTE_NAME_BYTES ALIGN(sizeof(KEXEC_CORE_NOTE_NAME), 4)
66 #define KEXEC_CORE_NOTE_DESC_BYTES ALIGN(sizeof(struct elf_prstatus), 4)
294 #define VMCOREINFO_NOTE_NAME_BYTES ALIGN(sizeof(VMCOREINFO_NOTE_NAME), 4)
Diova.h58 return ALIGN(size, iovad->granule); in iova_align()
Dpercpu.h23 (ALIGN(__per_cpu_end - __per_cpu_start, SMP_CACHE_BYTES) + \
/linux-4.4.14/include/scsi/
Dscsi_transport.h96 t->target_private_offset = ALIGN(t->target_size, sizeof(void *)); in scsi_transport_reserve_target()
103 t->device_private_offset = ALIGN(t->device_size, sizeof(void *)); in scsi_transport_reserve_device()
Dosd_protocol.h363 return ALIGN(len + sizeof(struct osdv1_attributes_list_element), in osdv1_attr_list_elem_size()
369 return ALIGN(len + sizeof(struct osdv2_attributes_list_element), in osdv2_attr_list_elem_size()
/linux-4.4.14/drivers/s390/cio/
Dfcx.c111 offset += sizeof(struct dcw) + ALIGN((int) dcw->cd_count, 4); in calc_dcw_count()
131 cbc_data = 4 + ALIGN(data_count, 4) - data_count; in calc_cbc_size()
175 tcat->count = ALIGN(count, 4) + 4; in tcw_finalize()
303 size = ALIGN(sizeof(struct dcw) + cd_count, 4); in tccb_add_dcw()
Ditcw.c141 addr = ALIGN(*start, align); in fit_chunk()
143 addr = ALIGN(addr, 4096); in fit_chunk()
144 addr = ALIGN(addr, align); in fit_chunk()
/linux-4.4.14/include/video/
Dudlfb.h94 #define DL_ALIGN_UP(x, a) ALIGN(x, a)
95 #define DL_ALIGN_DOWN(x, a) ALIGN(x-(a-1), a)
/linux-4.4.14/lib/
Dswiotlb.c105 io_tlb_nslabs = ALIGN(io_tlb_nslabs, IO_TLB_SEGSIZE); in setup_io_tlb_npages()
220 io_tlb_nslabs = ALIGN(io_tlb_nslabs, IO_TLB_SEGSIZE); in swiotlb_init()
252 io_tlb_nslabs = ALIGN(io_tlb_nslabs, IO_TLB_SEGSIZE); in swiotlb_late_init_with_default_size()
445 offset_slots = ALIGN(tbl_dma_addr, 1 << IO_TLB_SHIFT) >> IO_TLB_SHIFT; in swiotlb_tbl_map_single()
451 ? ALIGN(mask + 1, 1 << IO_TLB_SHIFT) >> IO_TLB_SHIFT in swiotlb_tbl_map_single()
458 nslots = ALIGN(size, 1 << IO_TLB_SHIFT) >> IO_TLB_SHIFT; in swiotlb_tbl_map_single()
471 index = ALIGN(io_tlb_index, stride); in swiotlb_tbl_map_single()
556 int i, count, nslots = ALIGN(size, 1 << IO_TLB_SHIFT) >> IO_TLB_SHIFT; in swiotlb_tbl_unmap_single()
575 count = ((index + nslots) < ALIGN(index + 1, IO_TLB_SEGSIZE) ? in swiotlb_tbl_unmap_single()
Diommu-common.c170 boundary_size = ALIGN(dma_get_seg_boundary(dev) + 1, in iommu_tbl_range_alloc()
173 boundary_size = ALIGN(1ULL << 32, 1 << iommu->table_shift); in iommu_tbl_range_alloc()
/linux-4.4.14/arch/x86/entry/vdso/vdso32/
Dsigreturn.S21 ALIGN
33 ALIGN
Dsystem_call.S18 ALIGN
/linux-4.4.14/crypto/
Dblkcipher.c79 addr = (u8 *)ALIGN((unsigned long)walk->buffer, walk->alignmask + 1); in blkcipher_done_slow()
153 unsigned aligned_bsize = ALIGN(bsize, alignmask + 1); in blkcipher_next_slow()
169 walk->dst.virt.addr = (u8 *)ALIGN((unsigned long)walk->buffer, in blkcipher_next_slow()
279 unsigned aligned_bs = ALIGN(bs, walk->alignmask + 1); in blkcipher_copy_iv()
290 iv = (u8 *)ALIGN((unsigned long)walk->buffer, walk->alignmask + 1); in blkcipher_copy_iv()
389 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in setkey_unaligned()
454 len = ALIGN(len, (unsigned long)alg->cra_alignmask + 1); in crypto_blkcipher_ctxsize()
491 addr = ALIGN(addr, align); in crypto_init_blkcipher_ops_sync()
492 addr += ALIGN(tfm->__crt_alg->cra_ctxsize, align); in crypto_init_blkcipher_ops_sync()
Dcipher.c37 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in setkey_unaligned()
71 u8 *tmp = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in cipher_crypt_unaligned()
Dhmac.c34 return (void *)ALIGN((unsigned long)p, align); in align_ptr()
220 ss = ALIGN(ss, alg->cra_alignmask + 1); in hmac_create()
225 ALIGN(ss * 2, crypto_tfm_ctx_alignment()); in hmac_create()
Dablkcipher.c155 unsigned aligned_bsize = ALIGN(bsize, alignmask + 1); in ablkcipher_next_slow()
160 n = ALIGN(sizeof(struct ablkcipher_buffer), alignmask + 1); in ablkcipher_next_slow()
170 dst = (u8 *)ALIGN((unsigned long)base, alignmask + 1); in ablkcipher_next_slow()
195 unsigned aligned_bs = ALIGN(bs, alignmask + 1); in ablkcipher_copy_iv()
205 iv = (u8 *)ALIGN((unsigned long)walk->iv_buffer, alignmask + 1); in ablkcipher_copy_iv()
321 alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); in setkey_unaligned()
Dxcbc.c239 inst->alg.descsize = ALIGN(sizeof(struct xcbc_desc_ctx), in xcbc_create()
245 inst->alg.base.cra_ctxsize = ALIGN(sizeof(struct xcbc_tfm_ctx), in xcbc_create()
Dcmac.c267 ALIGN(sizeof(struct cmac_desc_ctx), crypto_tfm_ctx_alignment()) in cmac_create()
272 ALIGN(sizeof(struct cmac_tfm_ctx), alignmask + 1) in cmac_create()
Dauthenc.c150 hash = (u8 *)ALIGN((unsigned long)hash + crypto_ahash_alignmask(auth), in crypto_authenc_genicv()
299 hash = (u8 *)ALIGN((unsigned long)hash + crypto_ahash_alignmask(auth), in crypto_authenc_decrypt()
432 ctx->reqoff = ALIGN(2 * auth->digestsize + auth_base->cra_alignmask, in crypto_authenc_create()
/linux-4.4.14/arch/ia64/hp/sim/boot/
Dbootloader.lds17 __gp = ALIGN (8) + 0x200000;
28 . = ALIGN(64 / 8);
/linux-4.4.14/drivers/video/fbdev/omap2/
Dvrfb.c141 *width = ALIGN(*width * bytespp, VRFB_PAGE_WIDTH) / bytespp; in omap_vrfb_adjust_size()
142 *height = ALIGN(*height, VRFB_PAGE_HEIGHT); in omap_vrfb_adjust_size()
211 vrfb_width = ALIGN(width * bytespp, VRFB_PAGE_WIDTH) / bytespp; in omap_vrfb_setup()
212 vrfb_height = ALIGN(height, VRFB_PAGE_HEIGHT); in omap_vrfb_setup()
/linux-4.4.14/arch/arm64/mm/
Dinit.c252 start = min(start, ALIGN(prev_end, PAGES_PER_SECTION)); in free_unused_memmap()
266 prev_end = ALIGN(__phys_to_pfn(reg->base + reg->size), in free_unused_memmap()
272 free_memmap(prev_end, ALIGN(prev_end, PAGES_PER_SECTION)); in free_unused_memmap()
/linux-4.4.14/net/ipv6/
Desp6.c76 len = ALIGN(len, crypto_tfm_ctx_alignment()); in esp_alloc_tmp()
80 len = ALIGN(len, __alignof__(struct scatterlist)); in esp_alloc_tmp()
112 return (void *)ALIGN((unsigned long)(req + 1) + in esp_req_sg()
186 blksize = ALIGN(crypto_aead_blocksize(aead), 4); in esp6_output()
187 clen = ALIGN(skb->len + 2 + tfclen, blksize); in esp6_output()
447 u32 blksize = ALIGN(crypto_aead_blocksize(aead), 4); in esp6_get_mtu()
657 align = ALIGN(crypto_aead_blocksize(aead), 4); in esp6_init_state()
/linux-4.4.14/drivers/gpu/drm/sti/
Dsti_vid.c59 dst_w = ALIGN(dst_w, 2); in sti_vid_commit()
60 dst_h = ALIGN(dst_h, 2); in sti_vid_commit()
/linux-4.4.14/net/openvswitch/
Dvport.h166 return (u8 *)(uintptr_t)vport + ALIGN(sizeof(struct vport), VPORT_ALIGN); in vport_priv()
181 return (struct vport *)((u8 *)priv - ALIGN(sizeof(struct vport), VPORT_ALIGN)); in vport_from_priv()
/linux-4.4.14/drivers/parisc/
Diommu-helpers.h148 if (unlikely(ALIGN(dma_len + dma_offset + startsg->length, IOVP_SIZE) > in iommu_coalesce_chunks()
171 dma_len = ALIGN(dma_len + dma_offset, IOVP_SIZE); in iommu_coalesce_chunks()
/linux-4.4.14/net/ipv4/
Desp4.c49 len = ALIGN(len, crypto_tfm_ctx_alignment()); in esp_alloc_tmp()
53 len = ALIGN(len, __alignof__(struct scatterlist)); in esp_alloc_tmp()
84 return (void *)ALIGN((unsigned long)(req + 1) + in esp_req_sg()
159 blksize = ALIGN(crypto_aead_blocksize(aead), 4); in esp_output()
160 clen = ALIGN(skb->len + 2 + tfclen, blksize); in esp_output()
493 u32 blksize = ALIGN(crypto_aead_blocksize(aead), 4); in esp4_get_mtu()
716 align = ALIGN(crypto_aead_blocksize(aead), 4); in esp_init_state()
/linux-4.4.14/scripts/dtc/
Dfdtdump.c16 #define ALIGN(x, a) (((x) + ((a) - 1)) & ~((a) - 1)) macro
17 #define PALIGN(p, a) ((void *)(ALIGN((unsigned long)(p), (a))))
/linux-4.4.14/arch/mips/lasat/image/
Dromscript.normal12 .data ALIGN(0x10) :
/linux-4.4.14/arch/powerpc/platforms/embedded6xx/
Dwii.c83 memblock_remove(ALIGN(p[1].base + p[1].size, PAGE_SIZE), in wii_memory_fixups()
87 wii_hole_start = ALIGN(p[0].base + p[0].size, PAGE_SIZE); in wii_memory_fixups()
/linux-4.4.14/arch/parisc/include/asm/
Dlinkage.h17 ALIGN !\
/linux-4.4.14/arch/cris/boot/compressed/
Ddecompress_v32.lds28 _end = ALIGN( 0x10 ) ;
Ddecompress_v10.lds28 _end = ALIGN( 0x10 ) ;
/linux-4.4.14/drivers/gpu/drm/i915/
Di915_gem_gtt.h400 temp = ALIGN(start+1, 1 << GEN6_PDE_SHIFT) - start, \
466 temp = ALIGN(start+1, 1 << GEN8_PDE_SHIFT) - start, \
475 temp = ALIGN(start+1, 1 << GEN8_PDPE_SHIFT) - start, \
484 temp = ALIGN(start+1, 1ULL << GEN8_PML4E_SHIFT) - start, \
/linux-4.4.14/drivers/dma/
Dste_dma40_ll.c197 u32 seg_max = ALIGN(STEDMA40_MAX_SEG_SIZE * min_w, max_w); in d40_seg_size()
206 return ALIGN(size / 2, max_w); in d40_seg_size()
245 next = ALIGN(next + sizeof(struct d40_phy_lli), in d40_phy_buf_to_lli()
294 l_phys = ALIGN(lli_phys + (lli - lli_sg) * in d40_phy_sg_to_lli()
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
Damdgpu_uvd.c387 unsigned height_in_mb = ALIGN(height / 16, 2); in amdgpu_uvd_cs_msg_decode()
395 image_size = ALIGN(image_size, 1024); in amdgpu_uvd_cs_msg_decode()
456 min_dpb_size += ALIGN(tmp * 7 * 16, 64); in amdgpu_uvd_cs_msg_decode()
474 min_dpb_size += ALIGN(width_in_mb * height_in_mb * 32, 64); in amdgpu_uvd_cs_msg_decode()
478 image_size = (ALIGN(width, 16) * ALIGN(height, 16) * 3) / 2; in amdgpu_uvd_cs_msg_decode()
479 image_size = ALIGN(image_size, 256); in amdgpu_uvd_cs_msg_decode()
Dcz_smc.c826 ALIGN(UCODE_ID_RLC_SCRATCH_SIZE_BYTE, 32) + in cz_smu_init()
827 ALIGN(UCODE_ID_RLC_SRM_ARAM_SIZE_BYTE, 32) + in cz_smu_init()
828 ALIGN(UCODE_ID_RLC_SRM_DRAM_SIZE_BYTE, 32) + in cz_smu_init()
829 ALIGN(sizeof(struct SMU8_MultimediaPowerLogData), 32) + in cz_smu_init()
830 ALIGN(sizeof(struct SMU8_Fusion_ClkTable), 32); in cz_smu_init()
Damdgpu_fb.c124 height = ALIGN(mode_cmd->height, 8); in amdgpufb_create_pinned_object()
126 aligned_size = ALIGN(size, PAGE_SIZE); in amdgpufb_create_pinned_object()
/linux-4.4.14/arch/tile/include/asm/
Dlinkage.h47 ALIGN; \
/linux-4.4.14/drivers/mtd/ubi/
Dupd.c196 vol->upd_buf = vmalloc(ALIGN((int)req->bytes, ubi->min_io_size)); in ubi_start_leb_change()
238 int l = ALIGN(len, ubi->min_io_size); in write_leb()
414 int len = ALIGN((int)vol->upd_bytes, ubi->min_io_size); in ubi_more_leb_change_data()
Dmisc.c47 length = ALIGN(i + 1, ubi->min_io_size); in ubi_calc_data_len()
/linux-4.4.14/sound/pci/ctxfi/
Dctvmem.h34 #define CT_PAGE_ALIGN(addr) ALIGN(addr, CT_PAGE_SIZE)
/linux-4.4.14/arch/hexagon/kernel/
Dvmlinux.lds.S47 . = ALIGN(_PAGE_SIZE);
/linux-4.4.14/arch/nios2/kernel/
Dvmlinux.lds.S55 . = ALIGN(PAGE_SIZE);
/linux-4.4.14/arch/h8300/kernel/
Dvmlinux.lds.S53 . = ALIGN(0x4) ;
/linux-4.4.14/net/mac802154/
Dmain.c83 priv_size = ALIGN(sizeof(*local), NETDEV_ALIGN) + priv_data_len; in ieee802154_alloc_hw()
96 local->hw.priv = (char *)local + ALIGN(sizeof(*local), NETDEV_ALIGN); in ieee802154_alloc_hw()
/linux-4.4.14/drivers/staging/android/ion/
Dion_chunk_heap.c52 allocated_size = ALIGN(size, chunk_heap->chunk_size); in ion_chunk_heap_allocate()
103 allocated_size = ALIGN(buffer->size, chunk_heap->chunk_size); in ion_chunk_heap_free()
/linux-4.4.14/scripts/
Dmodule-common.lds20 . = ALIGN(8);
/linux-4.4.14/drivers/crypto/qce/
Ddma.h36 ALIGN(sizeof(struct qce_result_dump), QCE_BAM_BURST_SIZE)
/linux-4.4.14/arch/cris/boot/rescue/
Drescue_v32.lds34 _end = ALIGN( 0x10 ) ;
/linux-4.4.14/drivers/gpu/drm/msm/
Dmsm_ringbuffer.c26 size = ALIGN(size, 4); /* size should be dword aligned */ in msm_ringbuffer_new()
/linux-4.4.14/kernel/
Dkexec_file.c432 temp_start = ALIGN(temp_start, kbuf->buf_align); in locate_mem_hole_bottom_up()
517 kbuf->memsz = ALIGN(memsz, PAGE_SIZE); in kexec_add_buffer()
751 buf_sz = ALIGN(buf_sz, align); in __kexec_load_purgatory()
757 bss_sz = ALIGN(bss_sz, align); in __kexec_load_purgatory()
797 curr_load_addr = ALIGN(curr_load_addr, align); in __kexec_load_purgatory()
815 bss_addr = ALIGN(bss_addr, align); in __kexec_load_purgatory()
/linux-4.4.14/drivers/media/i2c/
Dmt9t001.c382 width = clamp_t(unsigned int, ALIGN(format->format.width, 2), in mt9t001_set_format()
386 height = clamp_t(unsigned int, ALIGN(format->format.height, 2), in mt9t001_set_format()
432 rect.left = clamp(ALIGN(sel->r.left, 2), in mt9t001_set_selection()
435 rect.top = clamp(ALIGN(sel->r.top, 2), in mt9t001_set_selection()
438 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), in mt9t001_set_selection()
441 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), in mt9t001_set_selection()
Dmt9v032.c530 width = clamp(ALIGN(format->format.width, 2), in mt9v032_set_format()
534 height = clamp(ALIGN(format->format.height, 2), in mt9v032_set_format()
586 rect.left = clamp(ALIGN(sel->r.left + 1, 2) - 1, in mt9v032_set_selection()
589 rect.top = clamp(ALIGN(sel->r.top + 1, 2) - 1, in mt9v032_set_selection()
592 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), in mt9v032_set_selection()
595 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), in mt9v032_set_selection()
Dmt9p031.c562 width = clamp_t(unsigned int, ALIGN(format->format.width, 2), in mt9p031_set_format()
566 height = clamp_t(unsigned int, ALIGN(format->format.height, 2), in mt9p031_set_format()
612 rect.left = clamp(ALIGN(sel->r.left, 2), MT9P031_COLUMN_START_MIN, in mt9p031_set_selection()
614 rect.top = clamp(ALIGN(sel->r.top, 2), MT9P031_ROW_START_MIN, in mt9p031_set_selection()
616 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), in mt9p031_set_selection()
619 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), in mt9p031_set_selection()
Dmt9m032.c464 rect.left = clamp(ALIGN(sel->r.left, 2), MT9M032_COLUMN_START_MIN, in mt9m032_set_pad_selection()
466 rect.top = clamp(ALIGN(sel->r.top, 2), MT9M032_ROW_START_MIN, in mt9m032_set_pad_selection()
468 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), in mt9m032_set_pad_selection()
470 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), in mt9m032_set_pad_selection()
/linux-4.4.14/drivers/gpu/drm/gma500/
Dframebuffer.c368 mode_cmd.pitches[0] = ALIGN(mode_cmd.width * ((bpp + 7) / 8), 4096 >> pitch_lines); in psbfb_create()
371 size = ALIGN(size, PAGE_SIZE); in psbfb_create()
396 mode_cmd.pitches[0] = ALIGN(mode_cmd.width * ((bpp + 7) / 8), 64); in psbfb_create()
399 size = ALIGN(size, PAGE_SIZE); in psbfb_create()
545 if (ALIGN(sizes->fb_width * bytespp, 64) * sizes->fb_height > in psbfb_probe()
/linux-4.4.14/arch/x86/um/vdso/
Dvdso-layout.lds.S44 . = ALIGN(0x100);
/linux-4.4.14/drivers/staging/gdm724x/
DTODO7 - Use ALIGN() macro for dummy_cnt in up_to_host()
/linux-4.4.14/arch/x86/include/asm/
Dpage_types.h41 #define __PHYSICAL_START ALIGN(CONFIG_PHYSICAL_START, \
/linux-4.4.14/arch/mips/netlogic/common/
Dnlm-dma.c92 swiotlb_nslabs = ALIGN(swiotlb_nslabs, IO_TLB_SEGSIZE); in plat_swiotlb_setup()
/linux-4.4.14/arch/mips/cavium-octeon/executive/
Dcvmx-bootmem.c256 address_min = ALIGN(address_min, alignment); in cvmx_bootmem_phy_alloc()
294 ALIGN(max(address_min, ent_addr), alignment); in cvmx_bootmem_phy_alloc()
674 size = ALIGN(size, CVMX_BOOTMEM_ALIGNMENT_SIZE); in cvmx_bootmem_phy_named_block_alloc()
/linux-4.4.14/arch/arm64/kernel/vdso/
Dvdso.lds.S44 . = ALIGN(16);
/linux-4.4.14/drivers/gpu/drm/qxl/
Dqxl_dumb.c43 args->size = ALIGN(args->size, PAGE_SIZE); in qxl_mode_dumb_create()
/linux-4.4.14/drivers/media/platform/vsp1/
Dvsp1_rwpf.c205 sel->r.left = ALIGN(sel->r.left, 2); in vsp1_rwpf_set_selection()
206 sel->r.top = ALIGN(sel->r.top, 2); in vsp1_rwpf_set_selection()
/linux-4.4.14/drivers/misc/mic/scif/
Dscif_rma.c381 window->nr_lookup = ALIGN(nr_pages * PAGE_SIZE, in scif_create_remote_lookup()
844 nr_lookup = ALIGN(nr_contig_chunks, SCIF_NR_ADDR_IN_PAGE) in scif_prep_remote_window()
1345 (ALIGN((u64)addr, PAGE_SIZE) != (u64)addr) || in __scif_pin_pages()
1346 (ALIGN((u64)len, PAGE_SIZE) != (u64)len)) in __scif_pin_pages()
1512 ((ALIGN(offset, PAGE_SIZE) != offset) || in scif_register_pinned_pages()
1615 ((ALIGN(offset, PAGE_SIZE) != offset) || in scif_register()
1625 if (!len || (ALIGN((u64)addr, PAGE_SIZE) != (u64)addr) || in scif_register()
1626 (ALIGN(len, PAGE_SIZE) != len)) in scif_register()
1730 (ALIGN((u64)len, PAGE_SIZE) != (u64)len)) in scif_unregister()
1734 if ((ALIGN(offset, PAGE_SIZE) != offset) || in scif_unregister()
Dscif_rma.h402 size_t align = ALIGN(size, PAGE_SIZE); in scif_zalloc()
418 size_t align = ALIGN(size, PAGE_SIZE); in scif_free()
/linux-4.4.14/drivers/scsi/fnic/
Dfnic_res.c77 c->wq_enet_desc_count = ALIGN(c->wq_enet_desc_count, 16); in fnic_get_vnic_config()
83 c->wq_copy_desc_count = ALIGN(c->wq_copy_desc_count, 16); in fnic_get_vnic_config()
89 c->rq_desc_count = ALIGN(c->rq_desc_count, 16); in fnic_get_vnic_config()
/linux-4.4.14/arch/xtensa/mm/
Dmmu.c28 n_pages = ALIGN(n_pages, PTRS_PER_PTE); in init_pmd()
/linux-4.4.14/drivers/gpu/drm/armada/
Darmada_drm.h37 return ALIGN(pitch, 128); in armada_pitch()
/linux-4.4.14/drivers/gpu/drm/udl/
Dudl_fb.c40 #define DL_ALIGN_UP(x, a) ALIGN(x, a)
41 #define DL_ALIGN_DOWN(x, a) ALIGN(x-(a-1), a)
496 size = ALIGN(size, PAGE_SIZE); in udlfb_create()
639 size = ALIGN(size, PAGE_SIZE); in udl_fb_user_fb_create()
/linux-4.4.14/net/netlink/
Daf_netlink.h8 #define NLGRPSZ(x) (ALIGN(x, sizeof(unsigned long) * 8) / 8)
/linux-4.4.14/block/
Dblk-tag.c105 nr_ulongs = ALIGN(depth, BITS_PER_LONG) / BITS_PER_LONG; in init_tag_map()
242 nr_ulongs = ALIGN(max_depth, BITS_PER_LONG) / BITS_PER_LONG; in blk_queue_resize_tags()
/linux-4.4.14/drivers/net/wimax/i2400m/
Dtx.c645 hdr_size = ALIGN(hdr_size, I2400M_PL_ALIGN); in i2400m_tx_close()
654 aligned_size = ALIGN(tx_msg_moved->size, i2400m->bus_tx_block_size); in i2400m_tx_close()
729 padded_len = ALIGN(buf_len, I2400M_PL_ALIGN); in i2400m_tx()
/linux-4.4.14/arch/unicore32/boot/compressed/
Dvmlinux.lds.in39 . = ALIGN(4);
DMakefile63 ZBSSADDR := ALIGN(4)
/linux-4.4.14/arch/arm/mach-omap2/
Domap-secure.c65 size = ALIGN(size, SECTION_SIZE); in omap_secure_ram_reserve_memblock()
/linux-4.4.14/arch/m32r/include/asm/
Dassembler.h35 ALIGN
188 ALIGN
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
Den_tx.c92 ring->buf_size = ALIGN(size * ring->stride, MLX4_EN_PAGE_SIZE); in mlx4_en_create_tx_ring()
584 return ALIGN(skb->len + CTRL_SIZE + in inline_size()
587 return ALIGN(skb->len + CTRL_SIZE + 2 * in inline_size()
608 ALIGN(*lso_header_size + 4, DS_SIZE); in get_real_size()
748 desc_size = ALIGN(real_size, TXBB_SIZE); in mlx4_en_xmit()
787 data = ((void *)&tx_desc->lso + ALIGN(lso_header_size + 4, in mlx4_en_xmit()
/linux-4.4.14/drivers/media/i2c/soc_camera/
Dmt9m001.c187 rect.height = ALIGN(rect.height, 2); in mt9m001_s_crop()
190 rect.width = ALIGN(rect.width, 2); in mt9m001_s_crop()
191 rect.left = ALIGN(rect.left, 2); in mt9m001_s_crop()
319 mf->height = ALIGN(mf->height - 1, 2); in mt9m001_set_fmt()
/linux-4.4.14/arch/mips/lantiq/xway/
Dxrx200_phy_fw.c68 dev_addr = ALIGN(dev_addr, XRX200_GPHY_FW_ALIGN); in xway_gphy_load()
/linux-4.4.14/arch/unicore32/kernel/
Dstacktrace.c42 high = ALIGN(low, THREAD_SIZE); in unwind_frame()
/linux-4.4.14/arch/x86/lib/
Dcopy_page_64.S13 ALIGN
/linux-4.4.14/arch/x86/kernel/acpi/
Dwakeup_32.S9 ALIGN
/linux-4.4.14/include/trace/
Dperf.h55 __entry_size = ALIGN(__data_size + sizeof(*entry) + sizeof(u32),\
/linux-4.4.14/fs/
Dreaddir.c159 int reclen = ALIGN(offsetof(struct linux_dirent, d_name) + namlen + 2, in filldir()
243 int reclen = ALIGN(offsetof(struct linux_dirent64, d_name) + namlen + 1, in filldir64()
/linux-4.4.14/arch/arm/mm/
Dinit.c381 ALIGN(prev_end, PAGES_PER_SECTION)); in free_unused_memmap()
402 prev_end = ALIGN(memblock_region_memory_end_pfn(reg), in free_unused_memmap()
409 ALIGN(prev_end, PAGES_PER_SECTION)); in free_unused_memmap()
/linux-4.4.14/drivers/block/drbd/
Ddrbd_bitmap.c601 do_now = min_t(size_t, ALIGN(offset + 1, LWPP), end) - offset; in bm_memset()
673 bits = BM_SECT_TO_BIT(ALIGN(capacity, BM_SECT_PER_BIT)); in drbd_bm_resize()
680 words = ALIGN(bits, 64) >> LN2_BPL; in drbd_bm_resize()
693 want = ALIGN(words*sizeof(long), PAGE_SIZE) >> PAGE_SHIFT; in drbd_bm_resize()
837 do_now = min_t(size_t, ALIGN(offset+1, LWPP), end) - offset; in drbd_bm_merge_lel()
888 do_now = min_t(size_t, ALIGN(offset+1, LWPP), end) - offset; in drbd_bm_get_lel()
1453 unsigned long sl = ALIGN(s,BITS_PER_LONG); in _drbd_bm_set_bits()
/linux-4.4.14/arch/arm/mach-nspire/
Dclcd.c91 panel_size = ALIGN(panel_size, PAGE_SIZE); in nspire_clcd_setup()
/linux-4.4.14/net/mpls/
Dinternal.h29 #define MAX_VIA_ALEN (ALIGN(MAX_ADDR_LEN, VIA_ALEN_ALIGN))
/linux-4.4.14/include/linux/iio/
Diio.h596 return (char *)indio_dev + ALIGN(sizeof(struct iio_dev), IIO_ALIGN); in iio_priv()
602 ALIGN(sizeof(struct iio_dev), IIO_ALIGN)); in iio_priv_to_dev()
/linux-4.4.14/drivers/gpu/drm/nouveau/
Dnv04_fbcon.c96 width = ALIGN(image->width, 8); in nv04_fbcon_imageblit()
97 dsize = ALIGN(width * image->height, 32) >> 5; in nv04_fbcon_imageblit()
/linux-4.4.14/drivers/net/ethernet/intel/ixgb/
Dixgb_param.c286 tx_ring->count = ALIGN(tx_ring->count, IXGB_REQ_TX_DESCRIPTOR_MULTIPLE); in ixgb_check_options()
305 rx_ring->count = ALIGN(rx_ring->count, IXGB_REQ_RX_DESCRIPTOR_MULTIPLE); in ixgb_check_options()
/linux-4.4.14/drivers/soc/qcom/
Dsmem.c322 alloc_size = sizeof(*hdr) + ALIGN(size, 8); in qcom_smem_alloc_private()
330 hdr->size = cpu_to_le32(ALIGN(size, 8)); in qcom_smem_alloc_private()
360 size = ALIGN(size, 8); in qcom_smem_alloc_global()
/linux-4.4.14/drivers/gpu/drm/radeon/
Dradeon_uvd.c319 unsigned height_in_mb = ALIGN(height / 16, 2); in radeon_uvd_cs_msg_decode()
325 image_size = ALIGN(image_size, 1024); in radeon_uvd_cs_msg_decode()
356 min_dpb_size += ALIGN(tmp * 7 * 16, 64); in radeon_uvd_cs_msg_decode()
374 min_dpb_size += ALIGN(width_in_mb * height_in_mb * 32, 64); in radeon_uvd_cs_msg_decode()
Dradeon_fb.c125 height = ALIGN(mode_cmd->height, 8); in radeonfb_create_pinned_object()
127 aligned_size = ALIGN(size, PAGE_SIZE); in radeonfb_create_pinned_object()
/linux-4.4.14/drivers/hv/
Dchannel.c599 u32 packetlen_aligned = ALIGN(packetlen, sizeof(u64)); in vmbus_sendpacket_ctl()
712 packetlen_aligned = ALIGN(packetlen, sizeof(u64)); in vmbus_sendpacket_pagebuffer_ctl()
800 packetlen_aligned = ALIGN(packetlen, sizeof(u64)); in vmbus_sendpacket_mpb_desc()
856 packetlen_aligned = ALIGN(packetlen, sizeof(u64)); in vmbus_sendpacket_multipagebuffer()
/linux-4.4.14/drivers/net/wireless/ath/ath10k/
Dcore.c748 if (buf_len < ALIGN(board_ie_len, 4)) { in ath10k_core_parse_bd_ie_board()
750 buf_len, ALIGN(board_ie_len, 4)); in ath10k_core_parse_bd_ie_board()
793 board_ie_len = ALIGN(board_ie_len, 4); in ath10k_core_parse_bd_ie_board()
838 magic_len = ALIGN(magic_len, 4); in ath10k_core_fetch_board_data_api_n()
857 if (len < ALIGN(ie_len, 4)) { in ath10k_core_fetch_board_data_api_n()
880 ie_len = ALIGN(ie_len, 4); in ath10k_core_fetch_board_data_api_n()
1035 magic_len = ALIGN(magic_len, 4); in ath10k_core_fetch_firmware_api_n()
1156 ie_len = ALIGN(ie_len, 4); in ath10k_core_fetch_firmware_api_n()
/linux-4.4.14/arch/metag/include/asm/
Dpage.h53 # define ALIGN_HUGEPT(x) ALIGN(x, HUGEPT_ALIGN)
/linux-4.4.14/drivers/gpu/drm/mga/
Dmga_warp.c47 #define WARP_UCODE_SIZE(size) ALIGN(size, MGA_WARP_CODE_ALIGN)
/linux-4.4.14/security/apparmor/include/
Dmatch.h116 return ALIGN(sizeof(struct table_header) + len * el_size, 8); in table_size()
/linux-4.4.14/arch/powerpc/kvm/
Dbook3s_64_vio.c44 return ALIGN((window_size >> SPAPR_TCE_SHIFT) in kvmppc_stt_npages()
/linux-4.4.14/sound/pci/ymfpci/
Dymfpci_main.c2122 size = ALIGN(playback_ctrl_size, 0x100) + in snd_ymfpci_memalloc()
2123 ALIGN(chip->bank_size_playback * 2 * YDSXG_PLAYBACK_VOICES, 0x100) + in snd_ymfpci_memalloc()
2124 ALIGN(chip->bank_size_capture * 2 * YDSXG_CAPTURE_VOICES, 0x100) + in snd_ymfpci_memalloc()
2125 ALIGN(chip->bank_size_effect * 2 * YDSXG_EFFECT_VOICES, 0x100) + in snd_ymfpci_memalloc()
2140 ptr += ALIGN(playback_ctrl_size, 0x100); in snd_ymfpci_memalloc()
2141 ptr_addr += ALIGN(playback_ctrl_size, 0x100); in snd_ymfpci_memalloc()
2152 ptr = (char *)ALIGN((unsigned long)ptr, 0x100); in snd_ymfpci_memalloc()
2153 ptr_addr = ALIGN(ptr_addr, 0x100); in snd_ymfpci_memalloc()
2162 ptr = (char *)ALIGN((unsigned long)ptr, 0x100); in snd_ymfpci_memalloc()
2163 ptr_addr = ALIGN(ptr_addr, 0x100); in snd_ymfpci_memalloc()
[all …]
/linux-4.4.14/fs/logfs/
Djournal.c287 h_ofs += ALIGN(len, sizeof(*jh)) - sizeof(*jh); in logfs_read_segment()
393 unsigned char c[ALIGN(sizeof(struct logfs_segment_header), 16)]; in journal_erase_segment()
434 return ALIGN(len, 16) + sizeof(*jh); in __logfs_write_header()
622 pad_len = ALIGN(compr_len, 16); in __logfs_write_je()
643 area->a_used_bytes = ALIGN(area->a_used_bytes, writesize); in logfs_get_free_bytes()
/linux-4.4.14/drivers/scsi/snic/
Dvnic_dev.c208 ring->desc_count = ALIGN(desc_count, count_align); in svnic_dev_desc_ring_size()
210 ring->desc_size = ALIGN(desc_size, desc_align); in svnic_dev_desc_ring_size()
239 ring->base_addr = ALIGN(ring->base_addr_unaligned, in svnic_dev_alloc_desc_ring()

1234