Searched refs:mbox_mem_alloc (Results 1 – 2 of 2) sorted by relevance
/Linux-v5.10/drivers/net/ethernet/emulex/benet/ |
D | be_main.c | 5639 struct be_dma_mem *mbox_mem_alloc = &adapter->mbox_mem_alloced; in be_drv_init() local 5646 mbox_mem_alloc->size = sizeof(struct be_mcc_mailbox) + 16; in be_drv_init() 5647 mbox_mem_alloc->va = dma_alloc_coherent(dev, mbox_mem_alloc->size, in be_drv_init() 5648 &mbox_mem_alloc->dma, in be_drv_init() 5650 if (!mbox_mem_alloc->va) in be_drv_init() 5654 mbox_mem_align->va = PTR_ALIGN(mbox_mem_alloc->va, 16); in be_drv_init() 5655 mbox_mem_align->dma = PTR_ALIGN(mbox_mem_alloc->dma, 16); in be_drv_init() 5706 dma_free_coherent(dev, mbox_mem_alloc->size, mbox_mem_alloc->va, in be_drv_init() 5707 mbox_mem_alloc->dma); in be_drv_init()
|
/Linux-v5.10/drivers/scsi/be2iscsi/ |
D | be_main.c | 528 struct be_dma_mem *mbox_mem_alloc = &ctrl->mbox_mem_alloced; in be_ctrl_init() local 536 mbox_mem_alloc->size = sizeof(struct be_mcc_mailbox) + 16; in be_ctrl_init() 537 mbox_mem_alloc->va = dma_alloc_coherent(&pdev->dev, in be_ctrl_init() 538 mbox_mem_alloc->size, &mbox_mem_alloc->dma, GFP_KERNEL); in be_ctrl_init() 539 if (!mbox_mem_alloc->va) { in be_ctrl_init() 545 mbox_mem_align->va = PTR_ALIGN(mbox_mem_alloc->va, 16); in be_ctrl_init() 546 mbox_mem_align->dma = PTR_ALIGN(mbox_mem_alloc->dma, 16); in be_ctrl_init()
|