Lines Matching refs:mbp
336 csio_wr_iq_create_rsp(struct csio_hw *hw, struct csio_mb *mbp, int iq_idx) in csio_wr_iq_create_rsp() argument
345 csio_mb_iq_alloc_write_rsp(hw, mbp, &retval, &iqp); in csio_wr_iq_create_rsp()
349 mempool_free(mbp, hw->mb_mempool); in csio_wr_iq_create_rsp()
367 mempool_free(mbp, hw->mb_mempool); in csio_wr_iq_create_rsp()
395 mempool_free(mbp, hw->mb_mempool); in csio_wr_iq_create_rsp()
418 struct csio_mb *mbp; in csio_wr_iq_create() local
425 mbp = mempool_alloc(hw->mb_mempool, GFP_ATOMIC); in csio_wr_iq_create()
426 if (!mbp) { in csio_wr_iq_create()
447 mempool_free(mbp, hw->mb_mempool); in csio_wr_iq_create()
493 csio_mb_iq_alloc_write(hw, mbp, priv, CSIO_MB_DEFAULT_TMO, &iqp, cbfn); in csio_wr_iq_create()
495 if (csio_mb_issue(hw, mbp)) { in csio_wr_iq_create()
497 mempool_free(mbp, hw->mb_mempool); in csio_wr_iq_create()
504 return csio_wr_iq_create_rsp(hw, mbp, iq_idx); in csio_wr_iq_create()
516 csio_wr_eq_cfg_rsp(struct csio_hw *hw, struct csio_mb *mbp, int eq_idx) in csio_wr_eq_cfg_rsp() argument
523 csio_mb_eq_ofld_alloc_write_rsp(hw, mbp, &retval, &eqp); in csio_wr_eq_cfg_rsp()
527 mempool_free(mbp, hw->mb_mempool); in csio_wr_eq_cfg_rsp()
536 mempool_free(mbp, hw->mb_mempool); in csio_wr_eq_cfg_rsp()
557 struct csio_mb *mbp; in csio_wr_eq_create() local
562 mbp = mempool_alloc(hw->mb_mempool, GFP_ATOMIC); in csio_wr_eq_create()
563 if (!mbp) { in csio_wr_eq_create()
580 csio_mb_eq_ofld_alloc_write(hw, mbp, priv, CSIO_MB_DEFAULT_TMO, in csio_wr_eq_create()
583 if (csio_mb_issue(hw, mbp)) { in csio_wr_eq_create()
585 mempool_free(mbp, hw->mb_mempool); in csio_wr_eq_create()
592 return csio_wr_eq_cfg_rsp(hw, mbp, eq_idx); in csio_wr_eq_create()
604 csio_wr_iq_destroy_rsp(struct csio_hw *hw, struct csio_mb *mbp, int iq_idx) in csio_wr_iq_destroy_rsp() argument
606 enum fw_retval retval = csio_mb_fw_retval(mbp); in csio_wr_iq_destroy_rsp()
612 mempool_free(mbp, hw->mb_mempool); in csio_wr_iq_destroy_rsp()
632 struct csio_mb *mbp; in csio_wr_iq_destroy() local
638 mbp = mempool_alloc(hw->mb_mempool, GFP_ATOMIC); in csio_wr_iq_destroy()
639 if (!mbp) in csio_wr_iq_destroy()
655 csio_mb_iq_free(hw, mbp, priv, CSIO_MB_DEFAULT_TMO, &iqp, cbfn); in csio_wr_iq_destroy()
657 rv = csio_mb_issue(hw, mbp); in csio_wr_iq_destroy()
659 mempool_free(mbp, hw->mb_mempool); in csio_wr_iq_destroy()
666 return csio_wr_iq_destroy_rsp(hw, mbp, iq_idx); in csio_wr_iq_destroy()
678 csio_wr_eq_destroy_rsp(struct csio_hw *hw, struct csio_mb *mbp, int eq_idx) in csio_wr_eq_destroy_rsp() argument
680 enum fw_retval retval = csio_mb_fw_retval(mbp); in csio_wr_eq_destroy_rsp()
686 mempool_free(mbp, hw->mb_mempool); in csio_wr_eq_destroy_rsp()
706 struct csio_mb *mbp; in csio_wr_eq_destroy() local
711 mbp = mempool_alloc(hw->mb_mempool, GFP_ATOMIC); in csio_wr_eq_destroy()
712 if (!mbp) in csio_wr_eq_destroy()
719 csio_mb_eq_ofld_free(hw, mbp, priv, CSIO_MB_DEFAULT_TMO, &eqp, cbfn); in csio_wr_eq_destroy()
721 rv = csio_mb_issue(hw, mbp); in csio_wr_eq_destroy()
723 mempool_free(mbp, hw->mb_mempool); in csio_wr_eq_destroy()
730 return csio_wr_eq_destroy_rsp(hw, mbp, eq_idx); in csio_wr_eq_destroy()