Home
last modified time | relevance | path

Searched refs:aligned_addr (Results 1 – 11 of 11) sorted by relevance

/openbmc/u-boot/drivers/misc/
H A Dqfw.c38 unsigned long aligned_addr; in bios_linker_allocate() local
62 aligned_addr = (unsigned long)memalign(align, size); in bios_linker_allocate()
63 if (!aligned_addr) { in bios_linker_allocate()
68 aligned_addr = ALIGN(*addr, align); in bios_linker_allocate()
75 file->cfg.name, size, entry->alloc.zone, align, aligned_addr); in bios_linker_allocate()
78 size, (void *)aligned_addr); in bios_linker_allocate()
79 file->addr = aligned_addr; in bios_linker_allocate()
83 *addr = (aligned_addr + size); in bios_linker_allocate()
/openbmc/linux/sound/hda/
H A Dhdac_bus.c243 void __iomem *aligned_addr = in snd_hdac_aligned_read() local
248 v = readl(aligned_addr); in snd_hdac_aligned_read()
256 void __iomem *aligned_addr = in snd_hdac_aligned_write() local
261 v = readl(aligned_addr); in snd_hdac_aligned_write()
264 writel(v, aligned_addr); in snd_hdac_aligned_write()
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Dcommon.h51 int aligned_addr; in qmem_alloc() local
70 aligned_addr = ALIGN((u64)qmem->iova, OTX2_ALIGN); in qmem_alloc()
71 qmem->align = (aligned_addr - qmem->iova); in qmem_alloc()
/openbmc/linux/mm/kasan/
H A Dreport_generic.c298 unsigned long aligned_addr; in get_address_stack_frame_info() local
306 aligned_addr = round_down((unsigned long)addr, sizeof(long)); in get_address_stack_frame_info()
307 mem_ptr = round_down(aligned_addr, KASAN_GRANULE_SIZE); in get_address_stack_frame_info()
308 shadow_ptr = kasan_mem_to_shadow((void *)aligned_addr); in get_address_stack_frame_info()
/openbmc/linux/drivers/pci/controller/cadence/
H A Dpcie-cadence.h398 void __iomem *aligned_addr = PTR_ALIGN_DOWN(addr, 0x4); in cdns_pcie_read_sz() local
400 u32 val = readl(aligned_addr); in cdns_pcie_read_sz()
415 void __iomem *aligned_addr = PTR_ALIGN_DOWN(addr, 0x4); in cdns_pcie_write_sz() local
431 val = readl(aligned_addr) & mask; in cdns_pcie_write_sz()
433 writel(val, aligned_addr); in cdns_pcie_write_sz()
/openbmc/linux/drivers/net/wireless/realtek/rtw88/
H A Dsdio.c839 unsigned long data_addr, aligned_addr; in rtw_sdio_tx_skb_prepare() local
846 aligned_addr = ALIGN(data_addr, RTW_SDIO_DATA_PTR_ALIGN); in rtw_sdio_tx_skb_prepare()
848 if (data_addr != aligned_addr) { in rtw_sdio_tx_skb_prepare()
852 offset = RTW_SDIO_DATA_PTR_ALIGN - (aligned_addr - data_addr); in rtw_sdio_tx_skb_prepare()
/openbmc/linux/arch/powerpc/platforms/pseries/
H A Dpapr_scm.c1339 u64 aligned_addr = ALIGN_DOWN(phys_addr, L1_CACHE_BYTES); in papr_scm_add_badblock() local
1341 if (nvdimm_bus_add_badrange(bus, aligned_addr, L1_CACHE_BYTES)) { in papr_scm_add_badblock()
1347 aligned_addr, aligned_addr + L1_CACHE_BYTES); in papr_scm_add_badblock()
/openbmc/linux/drivers/net/wireless/intel/ipw2x00/
H A Dipw2100.c424 u32 aligned_addr; in write_nic_memory() local
430 aligned_addr = addr & (~0x3); in write_nic_memory()
431 dif_len = addr - aligned_addr; in write_nic_memory()
435 aligned_addr); in write_nic_memory()
442 aligned_addr += 4; in write_nic_memory()
446 write_register(dev, IPW_REG_AUTOINCREMENT_ADDRESS, aligned_addr); in write_nic_memory()
462 u32 aligned_addr; in read_nic_memory() local
468 aligned_addr = addr & (~0x3); in read_nic_memory()
469 dif_len = addr - aligned_addr; in read_nic_memory()
473 aligned_addr); in read_nic_memory()
[all …]
H A Dipw2200.c422 u32 dif_len = reg - aligned_addr; in _ipw_write_reg8()
425 _ipw_write32(priv, IPW_INDIRECT_ADDR, aligned_addr); in _ipw_write_reg8()
433 u32 dif_len = (reg - aligned_addr) & (~0x1ul); in _ipw_write_reg16()
436 _ipw_write32(priv, IPW_INDIRECT_ADDR, aligned_addr); in _ipw_write_reg16()
469 u32 dif_len = addr - aligned_addr; in _ipw_read_indirect()
480 _ipw_write32(priv, IPW_INDIRECT_ADDR, aligned_addr); in _ipw_read_indirect()
484 aligned_addr += 4; in _ipw_read_indirect()
488 _ipw_write32(priv, IPW_AUTOINC_ADDR, aligned_addr); in _ipw_read_indirect()
506 u32 dif_len = addr - aligned_addr; in _ipw_write_indirect()
521 aligned_addr += 4; in _ipw_write_indirect()
[all …]
/openbmc/linux/drivers/staging/rts5208/
H A Drtsx_chip.c1440 u16 aligned_addr = addr - offset; in rtsx_write_cfg_seq() local
1480 retval = rtsx_write_cfg_dw(chip, func, aligned_addr + i * 4, in rtsx_write_cfg_seq()
1500 u16 aligned_addr = addr - offset; in rtsx_read_cfg_seq() local
1516 retval = rtsx_read_cfg_dw(chip, func, aligned_addr + i * 4, in rtsx_read_cfg_seq()
/openbmc/linux/mm/
H A Dpercpu.c1349 unsigned long aligned_addr; in pcpu_alloc_first_chunk() local
1354 aligned_addr = tmp_addr & PAGE_MASK; in pcpu_alloc_first_chunk()
1356 start_offset = tmp_addr - aligned_addr; in pcpu_alloc_first_chunk()
1369 chunk->base_addr = (void *)aligned_addr; in pcpu_alloc_first_chunk()