Home
last modified time | relevance | path

Searched refs:mbox_mem_alloc (Results 1 – 2 of 2) sorted by relevance

/drivers/net/ethernet/emulex/benet/
Dbe_main.c5631 struct be_dma_mem *mbox_mem_alloc = &adapter->mbox_mem_alloced; in be_drv_init() local
5638 mbox_mem_alloc->size = sizeof(struct be_mcc_mailbox) + 16; in be_drv_init()
5639 mbox_mem_alloc->va = dma_alloc_coherent(dev, mbox_mem_alloc->size, in be_drv_init()
5640 &mbox_mem_alloc->dma, in be_drv_init()
5642 if (!mbox_mem_alloc->va) in be_drv_init()
5646 mbox_mem_align->va = PTR_ALIGN(mbox_mem_alloc->va, 16); in be_drv_init()
5647 mbox_mem_align->dma = PTR_ALIGN(mbox_mem_alloc->dma, 16); in be_drv_init()
5698 dma_free_coherent(dev, mbox_mem_alloc->size, mbox_mem_alloc->va, in be_drv_init()
5699 mbox_mem_alloc->dma); in be_drv_init()
/drivers/scsi/be2iscsi/
Dbe_main.c546 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()