/Linux-v6.6/fs/ubifs/ |
D | io.c | 743 int err, n, written = 0, aligned_len = ALIGN(len, 8); in ubifs_wbuf_write_nolock() local 761 if (c->leb_size - wbuf->offs - wbuf->used < aligned_len) { in ubifs_wbuf_write_nolock() 771 if (aligned_len <= wbuf->avail) { in ubifs_wbuf_write_nolock() 777 if (aligned_len > len) { in ubifs_wbuf_write_nolock() 778 ubifs_assert(c, aligned_len - len < 8); in ubifs_wbuf_write_nolock() 779 ubifs_pad(c, wbuf->buf + wbuf->used + len, aligned_len - len); in ubifs_wbuf_write_nolock() 782 if (aligned_len == wbuf->avail) { in ubifs_wbuf_write_nolock() 802 wbuf->avail -= aligned_len; in ubifs_wbuf_write_nolock() 803 wbuf->used += aligned_len; in ubifs_wbuf_write_nolock() 826 aligned_len -= wbuf->avail; in ubifs_wbuf_write_nolock() [all …]
|
D | journal.c | 1842 int err, len1, len2, aligned_len, aligned_len1, lnum, offs; in ubifs_jnl_change_xattr() local 1857 aligned_len = aligned_len1 + ALIGN(len2, 8); in ubifs_jnl_change_xattr() 1859 aligned_len += ubifs_auth_node_sz(c); in ubifs_jnl_change_xattr() 1861 ino = kzalloc(aligned_len, GFP_NOFS); in ubifs_jnl_change_xattr() 1866 err = make_reservation(c, BASEHD, aligned_len); in ubifs_jnl_change_xattr() 1879 err = write_head(c, BASEHD, ino, aligned_len, &lnum, &offs, 0); in ubifs_jnl_change_xattr()
|
/Linux-v6.6/drivers/gpu/drm/msm/disp/ |
D | msm_disp_snapshot_util.c | 12 static void msm_disp_state_dump_regs(u32 **reg, u32 aligned_len, void __iomem *base_addr) in msm_disp_state_dump_regs() argument 22 len_padded = aligned_len * REG_DUMP_ALIGN; in msm_disp_state_dump_regs() 23 num_rows = aligned_len / REG_DUMP_ALIGN; in msm_disp_state_dump_regs() 26 end_addr = base_addr + aligned_len; in msm_disp_state_dump_regs()
|
/Linux-v6.6/arch/powerpc/platforms/ps3/ |
D | mm.c | 402 unsigned long aligned_len = ALIGN(len+bus_addr-aligned_bus, in dma_find_chunk() local 408 aligned_bus + aligned_len <= c->bus_addr + c->len) in dma_find_chunk() 412 if (aligned_bus + aligned_len <= c->bus_addr) in dma_find_chunk() 431 unsigned long aligned_len = ALIGN(len + lpar_addr - aligned_lpar, in dma_find_chunk_lpar() local 438 if (aligned_lpar + aligned_len <= c->lpar_addr + c->len) in dma_find_chunk_lpar() 446 if (aligned_lpar + aligned_len <= c->lpar_addr) { in dma_find_chunk_lpar() 783 unsigned long aligned_len = ALIGN(len + phys_addr - aligned_phys, in dma_sb_map_area() local 812 result = dma_sb_map_pages(r, aligned_phys, aligned_len, &c, iopte_flag); in dma_sb_map_area() 838 unsigned long aligned_len = ALIGN(len + phys_addr - aligned_phys, in dma_ioc0_map_area() local 844 phys_addr, aligned_phys, aligned_len); in dma_ioc0_map_area() [all …]
|
/Linux-v6.6/fs/nfs/ |
D | read.c | 296 unsigned int len, aligned_len; in nfs_read_add_folio() local 303 aligned_len = min_t(unsigned int, ALIGN(len, rsize), fsize); in nfs_read_add_folio() 305 new = nfs_page_create_from_folio(ctx, folio, 0, aligned_len); in nfs_read_add_folio()
|
/Linux-v6.6/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_ethtool.c | 1236 u32 aligned_offset, aligned_len, *p; in set_eeprom() local 1243 aligned_len = (eeprom->len + (eeprom->offset & 3) + 3) & ~3; in set_eeprom() 1249 aligned_offset + aligned_len > start + EEPROMPFSIZE) in set_eeprom() 1253 if (aligned_offset != eeprom->offset || aligned_len != eeprom->len) { in set_eeprom() 1256 buf = kvzalloc(aligned_len, GFP_KERNEL); in set_eeprom() 1260 if (!err && aligned_len > 4) in set_eeprom() 1262 aligned_offset + aligned_len - 4, in set_eeprom() 1263 (u32 *)&buf[aligned_len - 4]); in set_eeprom() 1275 for (p = (u32 *)buf; !err && aligned_len; aligned_len -= 4, p++) { in set_eeprom()
|
/Linux-v6.6/drivers/net/wireless/ti/wl12xx/ |
D | main.c | 1310 u32 aligned_len = wlcore_calc_packet_alignment(wl, skb->len); in wl12xx_set_tx_desc_data_len() local 1313 desc->wl128x_mem.extra_bytes = aligned_len - skb->len; in wl12xx_set_tx_desc_data_len() 1314 desc->length = cpu_to_le16(aligned_len >> 2); in wl12xx_set_tx_desc_data_len() 1325 int pad = aligned_len - skb->len; in wl12xx_set_tx_desc_data_len() 1330 desc->length = cpu_to_le16(aligned_len >> 2); in wl12xx_set_tx_desc_data_len()
|
/Linux-v6.6/drivers/net/ethernet/chelsio/cxgb3/ |
D | cxgb3_main.c | 2060 u32 aligned_offset, aligned_len; in set_eeprom() local 2068 aligned_len = (eeprom->len + (eeprom->offset & 3) + 3) & ~3; in set_eeprom() 2070 if (aligned_offset != eeprom->offset || aligned_len != eeprom->len) { in set_eeprom() 2071 buf = kmalloc(aligned_len, GFP_KERNEL); in set_eeprom() 2074 err = pci_read_vpd(adapter->pdev, aligned_offset, aligned_len, in set_eeprom() 2086 err = pci_write_vpd(adapter->pdev, aligned_offset, aligned_len, buf); in set_eeprom()
|
/Linux-v6.6/drivers/net/wireless/ath/ath12k/ |
D | wmi.c | 1722 size_t aligned_len = roundup(bcn->len, 4); in ath12k_wmi_bcn_tmpl() local 1724 len = sizeof(*cmd) + sizeof(*bcn_prb_info) + TLV_HDR_SIZE + aligned_len; in ath12k_wmi_bcn_tmpl() 1751 tlv->header = ath12k_wmi_tlv_hdr(WMI_TAG_ARRAY_BYTE, aligned_len); in ath12k_wmi_bcn_tmpl() 3051 size_t aligned_len; in ath12k_wmi_fils_discovery_tmpl() local 3054 aligned_len = roundup(tmpl->len, 4); in ath12k_wmi_fils_discovery_tmpl() 3055 len = sizeof(*cmd) + TLV_HDR_SIZE + aligned_len; in ath12k_wmi_fils_discovery_tmpl() 3072 tlv->header = ath12k_wmi_tlv_hdr(WMI_TAG_ARRAY_BYTE, aligned_len); in ath12k_wmi_fils_discovery_tmpl() 3094 size_t aligned_len = roundup(tmpl->len, 4); in ath12k_wmi_probe_resp_tmpl() local 3099 len = sizeof(*cmd) + sizeof(*probe_info) + TLV_HDR_SIZE + aligned_len; in ath12k_wmi_probe_resp_tmpl() 3123 tlv->header = ath12k_wmi_tlv_hdr(WMI_TAG_ARRAY_BYTE, aligned_len); in ath12k_wmi_probe_resp_tmpl()
|
/Linux-v6.6/drivers/net/wireless/intel/ipw2x00/ |
D | ipw2100.c | 425 u32 aligned_len; in write_nic_memory() local 447 aligned_len = len & (~0x3); in write_nic_memory() 448 for (i = 0; i < aligned_len; i += 4, buf += 4, aligned_addr += 4) in write_nic_memory() 452 dif_len = len - aligned_len; in write_nic_memory() 463 u32 aligned_len; in read_nic_memory() local 485 aligned_len = len & (~0x3); in read_nic_memory() 486 for (i = 0; i < aligned_len; i += 4, buf += 4, aligned_addr += 4) in read_nic_memory() 490 dif_len = len - aligned_len; in read_nic_memory()
|
/Linux-v6.6/drivers/crypto/ |
D | talitos.c | 1152 int aligned_len = ALIGN(len, align); in talitos_sg_map_ext() local 1160 to_talitos_ptr(ptr, sg_dma_address(src) + offset, aligned_len, is_sec1); in talitos_sg_map_ext() 1164 to_talitos_ptr(ptr, edesc->dma_link_tbl + offset, aligned_len, is_sec1); in talitos_sg_map_ext() 1175 tbl_off * sizeof(struct talitos_ptr), aligned_len, is_sec1); in talitos_sg_map_ext()
|
/Linux-v6.6/drivers/mtd/nand/raw/ |
D | nand_base.c | 3072 int datafrag_len, eccfrag_len, aligned_len, aligned_pos; in nand_read_subpage() local 3122 aligned_len = eccfrag_len; in nand_read_subpage() 3124 aligned_len++; in nand_read_subpage() 3127 aligned_len++; in nand_read_subpage() 3132 aligned_len, false); in nand_read_subpage()
|
/Linux-v6.6/drivers/net/wireless/ath/ath11k/ |
D | wmi.c | 1718 size_t aligned_len = roundup(bcn->len, 4); in ath11k_wmi_bcn_tmpl() local 1729 len = sizeof(*cmd) + sizeof(*bcn_prb_info) + TLV_HDR_SIZE + aligned_len; in ath11k_wmi_bcn_tmpl() 1764 FIELD_PREP(WMI_TLV_LEN, aligned_len); in ath11k_wmi_bcn_tmpl() 3789 size_t aligned_len; in ath11k_wmi_fils_discovery_tmpl() local 3792 aligned_len = roundup(tmpl->len, 4); in ath11k_wmi_fils_discovery_tmpl() 3793 len = sizeof(*cmd) + TLV_HDR_SIZE + aligned_len; in ath11k_wmi_fils_discovery_tmpl() 3812 FIELD_PREP(WMI_TLV_LEN, aligned_len); in ath11k_wmi_fils_discovery_tmpl() 3838 size_t aligned_len = roundup(tmpl->len, 4); in ath11k_wmi_probe_resp_tmpl() local 3843 len = sizeof(*cmd) + sizeof(*probe_info) + TLV_HDR_SIZE + aligned_len; in ath11k_wmi_probe_resp_tmpl() 3869 FIELD_PREP(WMI_TLV_LEN, aligned_len); in ath11k_wmi_probe_resp_tmpl()
|
/Linux-v6.6/drivers/crypto/caam/ |
D | caamhash.c | 438 unsigned int aligned_len = in ahash_setkey() local 441 if (aligned_len < keylen) in ahash_setkey()
|
D | caamalg_qi2.c | 3321 unsigned int aligned_len = in ahash_setkey() local 3324 if (aligned_len < keylen) in ahash_setkey() 3327 hashed_key = kmemdup(key, aligned_len, GFP_KERNEL); in ahash_setkey()
|