Lines Matching refs:mbp
337 csio_wr_iq_create_rsp(struct csio_hw *hw, struct csio_mb *mbp, int iq_idx) in csio_wr_iq_create_rsp() argument
346 csio_mb_iq_alloc_write_rsp(hw, mbp, &retval, &iqp); in csio_wr_iq_create_rsp()
350 mempool_free(mbp, hw->mb_mempool); in csio_wr_iq_create_rsp()
368 mempool_free(mbp, hw->mb_mempool); in csio_wr_iq_create_rsp()
396 mempool_free(mbp, hw->mb_mempool); in csio_wr_iq_create_rsp()
419 struct csio_mb *mbp; in csio_wr_iq_create() local
426 mbp = mempool_alloc(hw->mb_mempool, GFP_ATOMIC); in csio_wr_iq_create()
427 if (!mbp) { in csio_wr_iq_create()
448 mempool_free(mbp, hw->mb_mempool); in csio_wr_iq_create()
496 csio_mb_iq_alloc_write(hw, mbp, priv, CSIO_MB_DEFAULT_TMO, &iqp, cbfn); in csio_wr_iq_create()
498 if (csio_mb_issue(hw, mbp)) { in csio_wr_iq_create()
500 mempool_free(mbp, hw->mb_mempool); in csio_wr_iq_create()
507 return csio_wr_iq_create_rsp(hw, mbp, iq_idx); in csio_wr_iq_create()
519 csio_wr_eq_cfg_rsp(struct csio_hw *hw, struct csio_mb *mbp, int eq_idx) in csio_wr_eq_cfg_rsp() argument
526 csio_mb_eq_ofld_alloc_write_rsp(hw, mbp, &retval, &eqp); in csio_wr_eq_cfg_rsp()
530 mempool_free(mbp, hw->mb_mempool); in csio_wr_eq_cfg_rsp()
539 mempool_free(mbp, hw->mb_mempool); in csio_wr_eq_cfg_rsp()
560 struct csio_mb *mbp; in csio_wr_eq_create() local
565 mbp = mempool_alloc(hw->mb_mempool, GFP_ATOMIC); in csio_wr_eq_create()
566 if (!mbp) { in csio_wr_eq_create()
583 csio_mb_eq_ofld_alloc_write(hw, mbp, priv, CSIO_MB_DEFAULT_TMO, in csio_wr_eq_create()
586 if (csio_mb_issue(hw, mbp)) { in csio_wr_eq_create()
588 mempool_free(mbp, hw->mb_mempool); in csio_wr_eq_create()
595 return csio_wr_eq_cfg_rsp(hw, mbp, eq_idx); in csio_wr_eq_create()
607 csio_wr_iq_destroy_rsp(struct csio_hw *hw, struct csio_mb *mbp, int iq_idx) in csio_wr_iq_destroy_rsp() argument
609 enum fw_retval retval = csio_mb_fw_retval(mbp); in csio_wr_iq_destroy_rsp()
615 mempool_free(mbp, hw->mb_mempool); in csio_wr_iq_destroy_rsp()
635 struct csio_mb *mbp; in csio_wr_iq_destroy() local
641 mbp = mempool_alloc(hw->mb_mempool, GFP_ATOMIC); in csio_wr_iq_destroy()
642 if (!mbp) in csio_wr_iq_destroy()
658 csio_mb_iq_free(hw, mbp, priv, CSIO_MB_DEFAULT_TMO, &iqp, cbfn); in csio_wr_iq_destroy()
660 rv = csio_mb_issue(hw, mbp); in csio_wr_iq_destroy()
662 mempool_free(mbp, hw->mb_mempool); in csio_wr_iq_destroy()
669 return csio_wr_iq_destroy_rsp(hw, mbp, iq_idx); in csio_wr_iq_destroy()
681 csio_wr_eq_destroy_rsp(struct csio_hw *hw, struct csio_mb *mbp, int eq_idx) in csio_wr_eq_destroy_rsp() argument
683 enum fw_retval retval = csio_mb_fw_retval(mbp); in csio_wr_eq_destroy_rsp()
689 mempool_free(mbp, hw->mb_mempool); in csio_wr_eq_destroy_rsp()
709 struct csio_mb *mbp; in csio_wr_eq_destroy() local
714 mbp = mempool_alloc(hw->mb_mempool, GFP_ATOMIC); in csio_wr_eq_destroy()
715 if (!mbp) in csio_wr_eq_destroy()
722 csio_mb_eq_ofld_free(hw, mbp, priv, CSIO_MB_DEFAULT_TMO, &eqp, cbfn); in csio_wr_eq_destroy()
724 rv = csio_mb_issue(hw, mbp); in csio_wr_eq_destroy()
726 mempool_free(mbp, hw->mb_mempool); in csio_wr_eq_destroy()
733 return csio_wr_eq_destroy_rsp(hw, mbp, eq_idx); in csio_wr_eq_destroy()