Home
last modified time | relevance | path

Searched refs:aligned_len (Results 1 – 9 of 9) sorted by relevance

/Linux-v5.4/arch/powerpc/platforms/ps3/
Dmm.c398 unsigned long aligned_len = _ALIGN_UP(len+bus_addr-aligned_bus, in dma_find_chunk() local
404 aligned_bus + aligned_len <= c->bus_addr + c->len) in dma_find_chunk()
408 if (aligned_bus + aligned_len <= c->bus_addr) in dma_find_chunk()
427 unsigned long aligned_len = _ALIGN_UP(len + lpar_addr - aligned_lpar, in dma_find_chunk_lpar() local
434 if (aligned_lpar + aligned_len <= c->lpar_addr + c->len) in dma_find_chunk_lpar()
442 if (aligned_lpar + aligned_len <= c->lpar_addr) { in dma_find_chunk_lpar()
779 unsigned long aligned_len = _ALIGN_UP(len + phys_addr - aligned_phys, in dma_sb_map_area() local
808 result = dma_sb_map_pages(r, aligned_phys, aligned_len, &c, iopte_flag); in dma_sb_map_area()
834 unsigned long aligned_len = _ALIGN_UP(len + phys_addr - aligned_phys, in dma_ioc0_map_area() local
840 phys_addr, aligned_phys, aligned_len); in dma_ioc0_map_area()
[all …]
/Linux-v5.4/fs/ubifs/
Dio.c721 int err, written, n, aligned_len = ALIGN(len, 8); in ubifs_wbuf_write_nolock() local
739 if (c->leb_size - wbuf->offs - wbuf->used < aligned_len) { in ubifs_wbuf_write_nolock()
749 if (aligned_len <= wbuf->avail) { in ubifs_wbuf_write_nolock()
756 if (aligned_len == wbuf->avail) { in ubifs_wbuf_write_nolock()
776 wbuf->avail -= aligned_len; in ubifs_wbuf_write_nolock()
777 wbuf->used += aligned_len; in ubifs_wbuf_write_nolock()
802 aligned_len -= wbuf->avail; in ubifs_wbuf_write_nolock()
821 aligned_len -= wbuf->size; in ubifs_wbuf_write_nolock()
831 n = aligned_len >> c->max_write_shift; in ubifs_wbuf_write_nolock()
841 aligned_len -= n; in ubifs_wbuf_write_nolock()
[all …]
Djournal.c1789 int err, len1, len2, aligned_len, aligned_len1, lnum, offs; in ubifs_jnl_change_xattr() local
1805 aligned_len = aligned_len1 + ALIGN(len2, 8); in ubifs_jnl_change_xattr()
1807 aligned_len += ubifs_auth_node_sz(c); in ubifs_jnl_change_xattr()
1809 ino = kzalloc(aligned_len, GFP_NOFS); in ubifs_jnl_change_xattr()
1814 err = make_reservation(c, BASEHD, aligned_len); in ubifs_jnl_change_xattr()
1827 err = write_head(c, BASEHD, ino, aligned_len, &lnum, &offs, 0); in ubifs_jnl_change_xattr()
/Linux-v5.4/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_ethtool.c1158 u32 aligned_offset, aligned_len, *p; in set_eeprom() local
1165 aligned_len = (eeprom->len + (eeprom->offset & 3) + 3) & ~3; in set_eeprom()
1171 aligned_offset + aligned_len > start + EEPROMPFSIZE) in set_eeprom()
1175 if (aligned_offset != eeprom->offset || aligned_len != eeprom->len) { in set_eeprom()
1178 buf = kvzalloc(aligned_len, GFP_KERNEL); in set_eeprom()
1182 if (!err && aligned_len > 4) in set_eeprom()
1184 aligned_offset + aligned_len - 4, in set_eeprom()
1185 (u32 *)&buf[aligned_len - 4]); in set_eeprom()
1197 for (p = (u32 *)buf; !err && aligned_len; aligned_len -= 4, p++) { in set_eeprom()
/Linux-v5.4/drivers/net/wireless/ti/wl12xx/
Dmain.c1313 u32 aligned_len = wlcore_calc_packet_alignment(wl, skb->len); in wl12xx_set_tx_desc_data_len() local
1316 desc->wl128x_mem.extra_bytes = aligned_len - skb->len; in wl12xx_set_tx_desc_data_len()
1317 desc->length = cpu_to_le16(aligned_len >> 2); in wl12xx_set_tx_desc_data_len()
1328 int pad = aligned_len - skb->len; in wl12xx_set_tx_desc_data_len()
1333 desc->length = cpu_to_le16(aligned_len >> 2); in wl12xx_set_tx_desc_data_len()
/Linux-v5.4/drivers/net/ethernet/chelsio/cxgb3/
Dcxgb3_main.c2058 u32 aligned_offset, aligned_len; in set_eeprom() local
2067 aligned_len = (eeprom->len + (eeprom->offset & 3) + 3) & ~3; in set_eeprom()
2069 if (aligned_offset != eeprom->offset || aligned_len != eeprom->len) { in set_eeprom()
2070 buf = kmalloc(aligned_len, GFP_KERNEL); in set_eeprom()
2074 if (!err && aligned_len > 4) in set_eeprom()
2076 aligned_offset + aligned_len - 4, in set_eeprom()
2077 (__le32 *) & buf[aligned_len - 4]); in set_eeprom()
2088 for (p = (__le32 *) buf; !err && aligned_len; aligned_len -= 4, p++) { in set_eeprom()
/Linux-v5.4/drivers/misc/mic/scif/
Dscif_dma.c348 size_t aligned_len; in scif_register_temp() local
350 aligned_len = ALIGN(len, PAGE_SIZE); in scif_register_temp()
353 aligned_len, &prot, 0, &pinned_pages); in scif_register_temp()
361 aligned_len >> PAGE_SHIFT, in scif_register_temp()
367 *out_window = scif_create_window(ep, aligned_len >> PAGE_SHIFT, in scif_register_temp()
/Linux-v5.4/drivers/net/wireless/intel/ipw2x00/
Dipw2100.c437 u32 aligned_len; in write_nic_memory() local
459 aligned_len = len & (~0x3); in write_nic_memory()
460 for (i = 0; i < aligned_len; i += 4, buf += 4, aligned_addr += 4) in write_nic_memory()
464 dif_len = len - aligned_len; in write_nic_memory()
475 u32 aligned_len; in read_nic_memory() local
497 aligned_len = len & (~0x3); in read_nic_memory()
498 for (i = 0; i < aligned_len; i += 4, buf += 4, aligned_addr += 4) in read_nic_memory()
502 dif_len = len - aligned_len; in read_nic_memory()
/Linux-v5.4/drivers/mtd/nand/raw/
Dnand_base.c2748 int datafrag_len, eccfrag_len, aligned_len, aligned_pos; in nand_read_subpage() local
2798 aligned_len = eccfrag_len; in nand_read_subpage()
2800 aligned_len++; in nand_read_subpage()
2803 aligned_len++; in nand_read_subpage()
2808 aligned_len, false); in nand_read_subpage()