/linux-master/kernel/dma/ |
H A D | swiotlb.c | 190 ALIGN(simple_strtoul(str, &str, 0), IO_TLB_SEGSIZE); 222 size = ALIGN(size, IO_TLB_SIZE); 223 default_nslabs = ALIGN(size >> IO_TLB_SHIFT, IO_TLB_SEGSIZE); 388 nslabs = ALIGN(nslabs >> 1, IO_TLB_SEGSIZE); 434 unsigned long nslabs = ALIGN(size >> IO_TLB_SHIFT, IO_TLB_SEGSIZE); 485 nslabs = ALIGN(nslabs >> 1, IO_TLB_SEGSIZE); 708 nslabs = ALIGN(nslabs >> 1, IO_TLB_SEGSIZE); 1431 if (index + nslots < ALIGN(index + 1, IO_TLB_SEGSIZE))
|
/linux-master/drivers/media/platform/ti/cal/ |
H A D | cal-video.c | 172 max_width = CAL_MAX_WIDTH_BYTES / (ALIGN(fmtinfo->bpp, 8) >> 3); 177 bpl = (f->fmt.pix.width * ALIGN(fmtinfo->bpp, 8)) >> 3; 178 f->fmt.pix.bytesperline = ALIGN(bpl, 16); 484 bpp = ALIGN(fmtinfo->bpp, 8); 501 format->bytesperline = ALIGN(clamp(format->bytesperline, 563 bpp = ALIGN(fmtinfo->bpp, 8);
|
/linux-master/fs/btrfs/ |
H A D | reflink.c | 179 const u64 aligned_end = ALIGN(new_key->offset + datal, 555 last_dest_end = ALIGN(new_key.offset + datal, 674 ret = btrfs_clone(src, dst, loff, len, ALIGN(len, bs), dst_loff, 1); 742 len = ALIGN(src->i_size, bs) - off; 833 wb_len = ALIGN(inode_in->i_size, bs) - ALIGN_DOWN(pos_in, bs); 835 wb_len = ALIGN(*len, bs);
|
/linux-master/drivers/net/wireless/ath/ath12k/ |
H A D | core.c | 224 if (buf_len < ALIGN(board_ie_len, 4)) { 227 buf_len, ALIGN(board_ie_len, 4)); 270 board_ie_len = ALIGN(board_ie_len, 4); 327 magic_len = ALIGN(magic_len, 4); 346 if (len < ALIGN(ie_len, 4)) { 371 ie_len = ALIGN(ie_len, 4);
|
/linux-master/drivers/media/i2c/ |
H A D | mt9v032.c | 514 width = clamp(ALIGN(format->format.width, 2), 518 height = clamp(ALIGN(format->format.height, 2), 571 rect.left = clamp(ALIGN(sel->r.left + 1, 2) - 1, 574 rect.top = clamp(ALIGN(sel->r.top + 1, 2) - 1, 577 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), 580 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2),
|
H A D | mt9p031.c | 602 width = clamp_t(unsigned int, ALIGN(format->format.width, 2), 606 height = clamp_t(unsigned int, ALIGN(format->format.height, 2), 663 rect.left = clamp(ALIGN(sel->r.left, 2), MT9P031_COLUMN_START_MIN, 665 rect.top = clamp(ALIGN(sel->r.top, 2), MT9P031_ROW_START_MIN, 667 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), 670 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2),
|
H A D | mt9m114.c | 1285 crop->left = ALIGN(sel->r.left, 4); 1286 crop->top = ALIGN(sel->r.top, 2); 1287 crop->width = clamp_t(unsigned int, ALIGN(sel->r.width, 4), 1290 crop->height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), 1804 format->width = clamp(ALIGN(fmt->format.width, 8), 1807 format->height = clamp(ALIGN(fmt->format.height, 8), 1909 crop->left = clamp_t(unsigned int, ALIGN(sel->r.left, 2), 4, 1912 crop->top = clamp_t(unsigned int, ALIGN(sel->r.top, 2), 4, 1915 crop->width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), 1918 crop->height = clamp_t(unsigned int, ALIGN(se [all...] |
/linux-master/drivers/android/ |
H A D | binder_alloc.c | 539 tmp = ALIGN(data_size, sizeof(void *)) + 540 ALIGN(offsets_size, sizeof(void *)); 543 total = tmp + ALIGN(extra_buffers_size, sizeof(void *)); 666 size = ALIGN(buffer->data_size, sizeof(void *)) + 667 ALIGN(buffer->offsets_size, sizeof(void *)) + 668 ALIGN(buffer->extra_buffers_size, sizeof(void *));
|
/linux-master/drivers/infiniband/hw/mlx5/ |
H A D | wr.c | 82 stride = ALIGN(sizeof(struct mlx5_wqe_eth_seg) - 193 int ndescs = ALIGN(mr->mmkey.ndescs + mr->meta_ndescs, 8) >> 1; 224 dseg->byte_count = cpu_to_be32(ALIGN(bcount, 64)); 302 *wqe_sz += ALIGN(inl + sizeof(seg->byte_count), 16) / 16; 462 wqe_size = ALIGN(sizeof(*data_klm), 64); 508 wqe_size = ALIGN(sizeof(*sblock_ctrl) + sizeof(*data_sentry) + 683 *size = ALIGN(*size, MLX5_SEND_WQE_BB >> 4);
|
/linux-master/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
H A D | smu8_smumgr.c | 769 ALIGN(UCODE_ID_RLC_SCRATCH_SIZE_BYTE, 32) + 770 ALIGN(UCODE_ID_RLC_SRM_ARAM_SIZE_BYTE, 32) + 771 ALIGN(UCODE_ID_RLC_SRM_DRAM_SIZE_BYTE, 32) + 772 ALIGN(sizeof(struct SMU8_MultimediaPowerLogData), 32) + 773 ALIGN(sizeof(struct SMU8_Fusion_ClkTable), 32);
|
/linux-master/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_fdma.c | 118 size = ALIGN(size, PAGE_SIZE); 163 size = ALIGN(size, PAGE_SIZE); 255 size = ALIGN(size, PAGE_SIZE); 288 size = ALIGN(size, PAGE_SIZE); 935 size = ALIGN(size, PAGE_SIZE);
|
/linux-master/drivers/soc/qcom/ |
H A D | smem.c | 306 return p + le32_to_cpu(phdr->size) - ALIGN(sizeof(*e), cacheline); 339 return p - le32_to_cpu(e->size) - ALIGN(sizeof(*e), cacheline); 407 alloc_size = sizeof(*hdr) + ALIGN(size, 8); 415 hdr->size = cpu_to_le32(ALIGN(size, 8)); 447 size = ALIGN(size, 8);
|
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_gmc.c | 288 size_af = max_mc_address + 1 - ALIGN(mc->fb_end + 1, four_gb); 337 ALIGN(mc->gart_end + 1, sixteen_gb); 338 size_af = mc->mc_mask + 1 - ALIGN(mc->fb_end + 1, sixteen_gb); 342 ALIGN(mc->fb_end + 1, sixteen_gb); 349 mc->agp_start = ALIGN(mc->fb_end + 1, sixteen_gb);
|
/linux-master/drivers/crypto/marvell/octeontx/ |
H A D | otx_cptvf_reqmgr.c | 191 align_dlen = ALIGN(dlen, align); 192 info_len = ALIGN(sizeof(*info), align); 193 rlen = ALIGN(sizeof(union otx_cpt_res_s), align);
|
/linux-master/arch/powerpc/mm/book3s64/ |
H A D | slice.c | 79 unsigned long align_end = ALIGN(end, (1UL << SLICE_HIGH_SHIFT)); 157 unsigned long align_end = ALIGN(end, (1UL << SLICE_HIGH_SHIFT)); 477 addr = ALIGN(addr, page_size);
|
/linux-master/drivers/scsi/snic/ |
H A D | vnic_dev.c | 194 ring->desc_count = ALIGN(desc_count, count_align); 196 ring->desc_size = ALIGN(desc_size, desc_align); 224 ring->base_addr = ALIGN(ring->base_addr_unaligned,
|
/linux-master/arch/x86/xen/ |
H A D | p2m.c | 295 xen_p2m_size = ALIGN(xen_start_info->nr_pages, P2M_PER_PAGE); 415 vm.size = ALIGN(sizeof(unsigned long) * max(xen_max_p2m_pfn, p2m_limit), 617 xen_p2m_last_pfn = ALIGN(pfn + 1, P2M_PER_PAGE);
|
/linux-master/sound/pci/ymfpci/ |
H A D | ymfpci_main.c | 2107 size = ALIGN(playback_ctrl_size, 0x100) + 2108 ALIGN(chip->bank_size_playback * 2 * YDSXG_PLAYBACK_VOICES, 0x100) + 2109 ALIGN(chip->bank_size_capture * 2 * YDSXG_CAPTURE_VOICES, 0x100) + 2110 ALIGN(chip->bank_size_effect * 2 * YDSXG_EFFECT_VOICES, 0x100) + 2126 ptr += ALIGN(playback_ctrl_size, 0x100); 2127 ptr_addr += ALIGN(playback_ctrl_size, 0x100); 2138 ptr = (char *)ALIGN((unsigned long)ptr, 0x100); 2139 ptr_addr = ALIGN(ptr_addr, 0x100); 2148 ptr = (char *)ALIGN((unsigned long)ptr, 0x100); 2149 ptr_addr = ALIGN(ptr_add [all...] |
/linux-master/arch/x86/boot/compressed/ |
H A D | kaslr.c | 523 pud_start = ALIGN(region->start, PUD_SIZE); 594 region.start = ALIGN(region.start, CONFIG_PHYSICAL_ALIGN); 872 min_addr = ALIGN(min_addr, CONFIG_PHYSICAL_ALIGN);
|
/linux-master/fs/ |
H A D | readdir.c | 269 int reclen = ALIGN(offsetof(struct linux_dirent, d_name) + namlen + 2, 356 int reclen = ALIGN(offsetof(struct linux_dirent64, d_name) + namlen + 1, 521 int reclen = ALIGN(offsetof(struct compat_linux_dirent, d_name) +
|
/linux-master/drivers/crypto/marvell/octeontx2/ |
H A D | otx2_cptpf_mbox.c | 394 offset = mbox->rx_start + ALIGN(sizeof(*req_hdr), MBOX_MSG_ALIGN); 579 offset = ALIGN(sizeof(*rsp_hdr), MBOX_MSG_ALIGN); 656 offset = mbox->rx_start + ALIGN(sizeof(*rsp_hdr), MBOX_MSG_ALIGN);
|
/linux-master/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | rvu_cn10k.c | 329 hw->sdp_chan_base = ALIGN(sdp_chan_base, nr_sdp_chans); 332 hw->cgx_chan_base = ALIGN(cgx_chan_base, nr_cgx_chans); 335 hw->cpt_chan_base = ALIGN(cpt_chan_base, nr_cpt_chans);
|
/linux-master/net/vmw_vsock/ |
H A D | hyperv_transport.c | 78 ALIGN((payload_len), 8) + \ 378 sndbuf = ALIGN(sndbuf, HV_HYP_PAGE_SIZE); 381 rcvbuf = ALIGN(rcvbuf, HV_HYP_PAGE_SIZE);
|
/linux-master/net/ipv4/ |
H A D | ah4.c | 32 len = ALIGN(len, crypto_tfm_ctx_alignment()); 35 len = ALIGN(len, __alignof__(struct scatterlist)); 68 return (void *)ALIGN((unsigned long)(req + 1) +
|
/linux-master/net/ipv6/ |
H A D | ah6.c | 56 len = ALIGN(len, crypto_tfm_ctx_alignment()); 59 len = ALIGN(len, __alignof__(struct scatterlist)); 97 return (void *)ALIGN((unsigned long)(req + 1) +
|