/* et131x_align_allocated_memory - Align allocated memory on a given boundary @adapter: pointer to our adapter structure @phys_addr: pointer to Physical address @offset: pointer to the offset variable @mask: correct mask  */
void et131x_align_allocated_memory(struct et131x_adapter *adapter, uint64_t *phys_addr, uint64_t *offset, uint64_t mask)
/* et131x_align_allocated_memory - Align allocated memory on a given boundary @adapter: pointer to our adapter structure @phys_addr: pointer to Physical address @offset: pointer to the offset variable @mask: correct mask  */
void et131x_align_allocated_memory(struct et131x_adapter *adapter, uint64_t *phys_addr, uint64_t *offset, uint64_t mask)
{
	uint64_t new_addr;
	*offset = 0;
	new_addr = *phys_addr & ~mask;
	if (new_addr != *phys_addr) {
		new_addr += mask + 1;
		*offset = new_addr - *phys_addr;
		*phys_addr = new_addr;
	}
}