Searched refs:mbox_mem_alloc (Results 1 – 2 of 2) sorted by relevance
/linux-6.12.1/drivers/net/ethernet/emulex/benet/ |
D | be_main.c | 5628 struct be_dma_mem *mbox_mem_alloc = &adapter->mbox_mem_alloced; in be_drv_init() local 5635 mbox_mem_alloc->size = sizeof(struct be_mcc_mailbox) + 16; in be_drv_init() 5636 mbox_mem_alloc->va = dma_alloc_coherent(dev, mbox_mem_alloc->size, in be_drv_init() 5637 &mbox_mem_alloc->dma, in be_drv_init() 5639 if (!mbox_mem_alloc->va) in be_drv_init() 5643 mbox_mem_align->va = PTR_ALIGN(mbox_mem_alloc->va, 16); in be_drv_init() 5644 mbox_mem_align->dma = PTR_ALIGN(mbox_mem_alloc->dma, 16); in be_drv_init() 5695 dma_free_coherent(dev, mbox_mem_alloc->size, mbox_mem_alloc->va, in be_drv_init() 5696 mbox_mem_alloc->dma); in be_drv_init()
|
/linux-6.12.1/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()
|