Lines Matching refs:mailbox
257 struct mthca_mailbox *mailbox; in __mthca_write_mtt() local
262 mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); in __mthca_write_mtt()
263 if (IS_ERR(mailbox)) in __mthca_write_mtt()
264 return PTR_ERR(mailbox); in __mthca_write_mtt()
265 mtt_entry = mailbox->buf; in __mthca_write_mtt()
283 err = mthca_WRITE_MTT(dev, mailbox, (i + 1) & ~1); in __mthca_write_mtt()
295 mthca_free_mailbox(dev, mailbox); in __mthca_write_mtt()
432 struct mthca_mailbox *mailbox; in mthca_mr_alloc() local
452 mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); in mthca_mr_alloc()
453 if (IS_ERR(mailbox)) { in mthca_mr_alloc()
454 err = PTR_ERR(mailbox); in mthca_mr_alloc()
457 mpt_entry = mailbox->buf; in mthca_mr_alloc()
491 err = mthca_SW2HW_MPT(dev, mailbox, in mthca_mr_alloc()
498 mthca_free_mailbox(dev, mailbox); in mthca_mr_alloc()
502 mthca_free_mailbox(dev, mailbox); in mthca_mr_alloc()
571 struct mthca_mailbox *mailbox; in mthca_fmr_alloc() local
623 mailbox = mthca_alloc_mailbox(dev, GFP_KERNEL); in mthca_fmr_alloc()
624 if (IS_ERR(mailbox)) { in mthca_fmr_alloc()
625 err = PTR_ERR(mailbox); in mthca_fmr_alloc()
629 mpt_entry = mailbox->buf; in mthca_fmr_alloc()
654 err = mthca_SW2HW_MPT(dev, mailbox, in mthca_fmr_alloc()
661 mthca_free_mailbox(dev, mailbox); in mthca_fmr_alloc()
665 mthca_free_mailbox(dev, mailbox); in mthca_fmr_alloc()