Searched refs:mbox_mem_alloc (Results 1 – 2 of 2) sorted by relevance
/linux-6.1.9/drivers/net/ethernet/emulex/benet/ |
D | be_main.c | 5632 struct be_dma_mem *mbox_mem_alloc = &adapter->mbox_mem_alloced; in be_drv_init() local 5639 mbox_mem_alloc->size = sizeof(struct be_mcc_mailbox) + 16; in be_drv_init() 5640 mbox_mem_alloc->va = dma_alloc_coherent(dev, mbox_mem_alloc->size, in be_drv_init() 5641 &mbox_mem_alloc->dma, in be_drv_init() 5643 if (!mbox_mem_alloc->va) in be_drv_init() 5647 mbox_mem_align->va = PTR_ALIGN(mbox_mem_alloc->va, 16); in be_drv_init() 5648 mbox_mem_align->dma = PTR_ALIGN(mbox_mem_alloc->dma, 16); in be_drv_init() 5699 dma_free_coherent(dev, mbox_mem_alloc->size, mbox_mem_alloc->va, in be_drv_init() 5700 mbox_mem_alloc->dma); in be_drv_init()
|
/linux-6.1.9/drivers/scsi/be2iscsi/ |
D | be_main.c | 546 struct be_dma_mem *mbox_mem_alloc = &ctrl->mbox_mem_alloced; in be_ctrl_init() local 554 mbox_mem_alloc->size = sizeof(struct be_mcc_mailbox) + 16; in be_ctrl_init() 555 mbox_mem_alloc->va = dma_alloc_coherent(&pdev->dev, in be_ctrl_init() 556 mbox_mem_alloc->size, &mbox_mem_alloc->dma, GFP_KERNEL); in be_ctrl_init() 557 if (!mbox_mem_alloc->va) { in be_ctrl_init() 563 mbox_mem_align->va = PTR_ALIGN(mbox_mem_alloc->va, 16); in be_ctrl_init() 564 mbox_mem_align->dma = PTR_ALIGN(mbox_mem_alloc->dma, 16); in be_ctrl_init()
|