• Home
  • Raw
  • Download

Lines Matching refs:mailbox

53 				  struct hns_roce_cmd_mailbox *mailbox,  in hns_roce_hw_create_mpt()  argument
56 return hns_roce_cmd_mbox(hr_dev, mailbox->dma, 0, mpt_index, 0, in hns_roce_hw_create_mpt()
62 struct hns_roce_cmd_mailbox *mailbox, in hns_roce_hw_destroy_mpt() argument
65 return hns_roce_cmd_mbox(hr_dev, 0, mailbox ? mailbox->dma : 0, in hns_roce_hw_destroy_mpt()
66 mpt_index, !mailbox, HNS_ROCE_CMD_DESTROY_MPT, in hns_roce_hw_destroy_mpt()
165 struct hns_roce_cmd_mailbox *mailbox; in hns_roce_mr_enable() local
170 mailbox = hns_roce_alloc_cmd_mailbox(hr_dev); in hns_roce_mr_enable()
171 if (IS_ERR(mailbox)) { in hns_roce_mr_enable()
172 ret = PTR_ERR(mailbox); in hns_roce_mr_enable()
177 ret = hr_dev->hw->write_mtpt(hr_dev, mailbox->buf, mr, in hns_roce_mr_enable()
180 ret = hr_dev->hw->frmr_write_mtpt(hr_dev, mailbox->buf, mr); in hns_roce_mr_enable()
186 ret = hns_roce_hw_create_mpt(hr_dev, mailbox, in hns_roce_mr_enable()
196 hns_roce_free_cmd_mailbox(hr_dev, mailbox); in hns_roce_mr_enable()
296 struct hns_roce_cmd_mailbox *mailbox; in hns_roce_rereg_user_mr() local
303 mailbox = hns_roce_alloc_cmd_mailbox(hr_dev); in hns_roce_rereg_user_mr()
304 if (IS_ERR(mailbox)) in hns_roce_rereg_user_mr()
305 return ERR_CAST(mailbox); in hns_roce_rereg_user_mr()
308 ret = hns_roce_cmd_mbox(hr_dev, 0, mailbox->dma, mtpt_idx, 0, in hns_roce_rereg_user_mr()
338 ret = hr_dev->hw->rereg_write_mtpt(hr_dev, mr, flags, mailbox->buf); in hns_roce_rereg_user_mr()
344 ret = hns_roce_hw_create_mpt(hr_dev, mailbox, mtpt_idx); in hns_roce_rereg_user_mr()
353 hns_roce_free_cmd_mailbox(hr_dev, mailbox); in hns_roce_rereg_user_mr()
507 struct hns_roce_cmd_mailbox *mailbox; in hns_roce_mw_enable() local
517 mailbox = hns_roce_alloc_cmd_mailbox(hr_dev); in hns_roce_mw_enable()
518 if (IS_ERR(mailbox)) { in hns_roce_mw_enable()
519 ret = PTR_ERR(mailbox); in hns_roce_mw_enable()
523 ret = hr_dev->hw->mw_write_mtpt(mailbox->buf, mw); in hns_roce_mw_enable()
529 ret = hns_roce_hw_create_mpt(hr_dev, mailbox, in hns_roce_mw_enable()
538 hns_roce_free_cmd_mailbox(hr_dev, mailbox); in hns_roce_mw_enable()
543 hns_roce_free_cmd_mailbox(hr_dev, mailbox); in hns_roce_mw_enable()