Lines Matching refs:mbp
615 csio_ln_vnp_read_cbfn(struct csio_hw *hw, struct csio_mb *mbp) in csio_ln_vnp_read_cbfn() argument
617 struct csio_lnode *ln = ((struct csio_lnode *)mbp->priv); in csio_ln_vnp_read_cbfn()
618 struct fw_fcoe_vnp_cmd *rsp = (struct fw_fcoe_vnp_cmd *)(mbp->mb); in csio_ln_vnp_read_cbfn()
627 mempool_free(mbp, hw->mb_mempool); in csio_ln_vnp_read_cbfn()
666 mempool_free(mbp, hw->mb_mempool); in csio_ln_vnp_read_cbfn()
684 struct csio_mb *mbp; in csio_ln_vnp_read() local
687 mbp = mempool_alloc(hw->mb_mempool, GFP_ATOMIC); in csio_ln_vnp_read()
688 if (!mbp) { in csio_ln_vnp_read()
694 csio_fcoe_vnp_read_init_mb(ln, mbp, in csio_ln_vnp_read()
701 if (csio_mb_issue(hw, mbp)) { in csio_ln_vnp_read()
703 mempool_free(mbp, hw->mb_mempool); in csio_ln_vnp_read()
721 struct csio_mb *mbp; in csio_fcoe_enable_link() local
728 mbp = mempool_alloc(hw->mb_mempool, GFP_ATOMIC); in csio_fcoe_enable_link()
729 if (!mbp) { in csio_fcoe_enable_link()
740 csio_write_fcoe_link_cond_init_mb(ln, mbp, CSIO_MB_DEFAULT_TMO, in csio_fcoe_enable_link()
743 if (csio_mb_issue(hw, mbp)) { in csio_fcoe_enable_link()
746 mempool_free(mbp, hw->mb_mempool); in csio_fcoe_enable_link()
750 retval = csio_mb_fw_retval(mbp); in csio_fcoe_enable_link()
755 mempool_free(mbp, hw->mb_mempool); in csio_fcoe_enable_link()
762 lcmd = (struct fw_fcoe_link_cmd *)mbp->mb; in csio_fcoe_enable_link()
772 mempool_free(mbp, hw->mb_mempool); in csio_fcoe_enable_link()
783 csio_ln_read_fcf_cbfn(struct csio_hw *hw, struct csio_mb *mbp) in csio_ln_read_fcf_cbfn() argument
785 struct csio_lnode *ln = (struct csio_lnode *)mbp->priv; in csio_ln_read_fcf_cbfn()
788 (struct fw_fcoe_fcf_cmd *)(mbp->mb); in csio_ln_read_fcf_cbfn()
795 mempool_free(mbp, hw->mb_mempool); in csio_ln_read_fcf_cbfn()
820 mempool_free(mbp, hw->mb_mempool); in csio_ln_read_fcf_cbfn()
835 struct csio_mb *mbp; in csio_ln_read_fcf_entry() local
837 mbp = mempool_alloc(hw->mb_mempool, GFP_ATOMIC); in csio_ln_read_fcf_entry()
838 if (!mbp) { in csio_ln_read_fcf_entry()
844 csio_fcoe_read_fcf_init_mb(ln, mbp, CSIO_MB_DEFAULT_TMO, in csio_ln_read_fcf_entry()
847 if (csio_mb_issue(hw, mbp)) { in csio_ln_read_fcf_entry()
849 mempool_free(mbp, hw->mb_mempool); in csio_ln_read_fcf_entry()
1389 struct csio_mb *mbp; in csio_get_phy_port_stats() local
1394 mbp = mempool_alloc(hw->mb_mempool, GFP_ATOMIC); in csio_get_phy_port_stats()
1395 if (!mbp) { in csio_get_phy_port_stats()
1406 csio_fcoe_read_portparams_init_mb(hw, mbp, CSIO_MB_DEFAULT_TMO, in csio_get_phy_port_stats()
1408 if (csio_mb_issue(hw, mbp)) { in csio_get_phy_port_stats()
1410 mempool_free(mbp, hw->mb_mempool); in csio_get_phy_port_stats()
1413 csio_mb_process_portparams_rsp(hw, mbp, &retval, in csio_get_phy_port_stats()
1417 mempool_free(mbp, hw->mb_mempool); in csio_get_phy_port_stats()