Lines Matching refs:mailbox
257 struct mthca_mailbox *mailbox; in __mthca_write_mtt() local
263 mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); in __mthca_write_mtt()
264 if (IS_ERR(mailbox)) in __mthca_write_mtt()
265 return PTR_ERR(mailbox); in __mthca_write_mtt()
266 mtt_entry = mailbox->buf; in __mthca_write_mtt()
284 err = mthca_WRITE_MTT(dev, mailbox, (i + 1) & ~1, &status); in __mthca_write_mtt()
302 mthca_free_mailbox(dev, mailbox); in __mthca_write_mtt()
435 struct mthca_mailbox *mailbox; in mthca_mr_alloc() local
456 mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); in mthca_mr_alloc()
457 if (IS_ERR(mailbox)) { in mthca_mr_alloc()
458 err = PTR_ERR(mailbox); in mthca_mr_alloc()
461 mpt_entry = mailbox->buf; in mthca_mr_alloc()
495 err = mthca_SW2HW_MPT(dev, mailbox, in mthca_mr_alloc()
508 mthca_free_mailbox(dev, mailbox); in mthca_mr_alloc()
512 mthca_free_mailbox(dev, mailbox); in mthca_mr_alloc()
586 struct mthca_mailbox *mailbox; in mthca_fmr_alloc() local
639 mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); in mthca_fmr_alloc()
640 if (IS_ERR(mailbox)) { in mthca_fmr_alloc()
641 err = PTR_ERR(mailbox); in mthca_fmr_alloc()
645 mpt_entry = mailbox->buf; in mthca_fmr_alloc()
670 err = mthca_SW2HW_MPT(dev, mailbox, in mthca_fmr_alloc()
684 mthca_free_mailbox(dev, mailbox); in mthca_fmr_alloc()
688 mthca_free_mailbox(dev, mailbox); in mthca_fmr_alloc()