Lines Matching refs:mbp

56 csio_mb_fw_retval(struct csio_mb *mbp)  in csio_mb_fw_retval()  argument
60 hdr = (struct fw_cmd_hdr *)(mbp->mb); in csio_mb_fw_retval()
76 csio_mb_hello(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, in csio_mb_hello() argument
80 struct fw_hello_cmd *cmdp = (struct fw_hello_cmd *)(mbp->mb); in csio_mb_hello()
82 CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); in csio_mb_hello()
108 csio_mb_process_hello_rsp(struct csio_hw *hw, struct csio_mb *mbp, in csio_mb_process_hello_rsp() argument
112 struct fw_hello_cmd *rsp = (struct fw_hello_cmd *)(mbp->mb); in csio_mb_process_hello_rsp()
140 csio_mb_bye(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, in csio_mb_bye() argument
143 struct fw_bye_cmd *cmdp = (struct fw_bye_cmd *)(mbp->mb); in csio_mb_bye()
145 CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); in csio_mb_bye()
162 csio_mb_reset(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, in csio_mb_reset() argument
166 struct fw_reset_cmd *cmdp = (struct fw_reset_cmd *)(mbp->mb); in csio_mb_reset()
168 CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); in csio_mb_reset()
193 csio_mb_params(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, in csio_mb_params() argument
200 struct fw_params_cmd *cmdp = (struct fw_params_cmd *)(mbp->mb); in csio_mb_params()
203 CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); in csio_mb_params()
240 csio_mb_process_read_params_rsp(struct csio_hw *hw, struct csio_mb *mbp, in csio_mb_process_read_params_rsp() argument
244 struct fw_params_cmd *rsp = (struct fw_params_cmd *)(mbp->mb); in csio_mb_process_read_params_rsp()
264 csio_mb_ldst(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, int reg) in csio_mb_ldst() argument
266 struct fw_ldst_cmd *ldst_cmd = (struct fw_ldst_cmd *)(mbp->mb); in csio_mb_ldst()
267 CSIO_INIT_MBP(mbp, ldst_cmd, tmo, hw, NULL, 1); in csio_mb_ldst()
300 csio_mb_caps_config(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, in csio_mb_caps_config() argument
305 (struct fw_caps_config_cmd *)(mbp->mb); in csio_mb_caps_config()
307 CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, wr ? 0 : 1); in csio_mb_caps_config()
346 csio_mb_port(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, in csio_mb_port() argument
350 struct fw_port_cmd *cmdp = (struct fw_port_cmd *)(mbp->mb); in csio_mb_port()
353 CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); in csio_mb_port()
392 csio_mb_process_read_port_rsp(struct csio_hw *hw, struct csio_mb *mbp, in csio_mb_process_read_port_rsp() argument
395 struct fw_port_cmd *rsp = (struct fw_port_cmd *)(mbp->mb); in csio_mb_process_read_port_rsp()
412 csio_mb_initialize(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, in csio_mb_initialize() argument
415 struct fw_initialize_cmd *cmdp = (struct fw_initialize_cmd *)(mbp->mb); in csio_mb_initialize()
417 CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); in csio_mb_initialize()
439 csio_mb_iq_alloc(struct csio_hw *hw, struct csio_mb *mbp, void *priv, in csio_mb_iq_alloc() argument
443 struct fw_iq_cmd *cmdp = (struct fw_iq_cmd *)(mbp->mb); in csio_mb_iq_alloc()
445 CSIO_INIT_MBP(mbp, cmdp, mb_tmo, priv, cbfn, 1); in csio_mb_iq_alloc()
484 csio_mb_iq_write(struct csio_hw *hw, struct csio_mb *mbp, void *priv, in csio_mb_iq_write() argument
489 struct fw_iq_cmd *cmdp = (struct fw_iq_cmd *)(mbp->mb); in csio_mb_iq_write()
501 CSIO_INIT_MBP(mbp, cmdp, mb_tmo, priv, cbfn, 1); in csio_mb_iq_write()
567 csio_mb_iq_alloc_write(struct csio_hw *hw, struct csio_mb *mbp, void *priv, in csio_mb_iq_alloc_write() argument
571 csio_mb_iq_alloc(hw, mbp, priv, mb_tmo, iq_params, cbfn); in csio_mb_iq_alloc_write()
572 csio_mb_iq_write(hw, mbp, priv, mb_tmo, true, iq_params, cbfn); in csio_mb_iq_alloc_write()
586 csio_mb_iq_alloc_write_rsp(struct csio_hw *hw, struct csio_mb *mbp, in csio_mb_iq_alloc_write_rsp() argument
590 struct fw_iq_cmd *rsp = (struct fw_iq_cmd *)(mbp->mb); in csio_mb_iq_alloc_write_rsp()
618 csio_mb_iq_free(struct csio_hw *hw, struct csio_mb *mbp, void *priv, in csio_mb_iq_free() argument
622 struct fw_iq_cmd *cmdp = (struct fw_iq_cmd *)(mbp->mb); in csio_mb_iq_free()
624 CSIO_INIT_MBP(mbp, cmdp, mb_tmo, priv, cbfn, 1); in csio_mb_iq_free()
654 csio_mb_eq_ofld_alloc(struct csio_hw *hw, struct csio_mb *mbp, void *priv, in csio_mb_eq_ofld_alloc() argument
658 struct fw_eq_ofld_cmd *cmdp = (struct fw_eq_ofld_cmd *)(mbp->mb); in csio_mb_eq_ofld_alloc()
660 CSIO_INIT_MBP(mbp, cmdp, mb_tmo, priv, cbfn, 1); in csio_mb_eq_ofld_alloc()
690 csio_mb_eq_ofld_write(struct csio_hw *hw, struct csio_mb *mbp, void *priv, in csio_mb_eq_ofld_write() argument
695 struct fw_eq_ofld_cmd *cmdp = (struct fw_eq_ofld_cmd *)(mbp->mb); in csio_mb_eq_ofld_write()
707 CSIO_INIT_MBP(mbp, cmdp, mb_tmo, priv, cbfn, 1); in csio_mb_eq_ofld_write()
751 csio_mb_eq_ofld_alloc_write(struct csio_hw *hw, struct csio_mb *mbp, in csio_mb_eq_ofld_alloc_write() argument
756 csio_mb_eq_ofld_alloc(hw, mbp, priv, mb_tmo, eq_ofld_params, cbfn); in csio_mb_eq_ofld_alloc_write()
757 csio_mb_eq_ofld_write(hw, mbp, priv, mb_tmo, true, in csio_mb_eq_ofld_alloc_write()
773 struct csio_mb *mbp, enum fw_retval *ret_val, in csio_mb_eq_ofld_alloc_write_rsp() argument
776 struct fw_eq_ofld_cmd *rsp = (struct fw_eq_ofld_cmd *)(mbp->mb); in csio_mb_eq_ofld_alloc_write_rsp()
804 csio_mb_eq_ofld_free(struct csio_hw *hw, struct csio_mb *mbp, void *priv, in csio_mb_eq_ofld_free() argument
808 struct fw_eq_ofld_cmd *cmdp = (struct fw_eq_ofld_cmd *)(mbp->mb); in csio_mb_eq_ofld_free()
810 CSIO_INIT_MBP(mbp, cmdp, mb_tmo, priv, cbfn, 1); in csio_mb_eq_ofld_free()
834 csio_write_fcoe_link_cond_init_mb(struct csio_lnode *ln, struct csio_mb *mbp, in csio_write_fcoe_link_cond_init_mb() argument
840 (struct fw_fcoe_link_cmd *)(mbp->mb); in csio_write_fcoe_link_cond_init_mb()
842 CSIO_INIT_MBP(mbp, cmdp, mb_tmo, ln, cbfn, 1); in csio_write_fcoe_link_cond_init_mb()
869 csio_fcoe_read_res_info_init_mb(struct csio_hw *hw, struct csio_mb *mbp, in csio_fcoe_read_res_info_init_mb() argument
874 (struct fw_fcoe_res_info_cmd *)(mbp->mb); in csio_fcoe_read_res_info_init_mb()
876 CSIO_INIT_MBP(mbp, cmdp, mb_tmo, hw, cbfn, 1); in csio_fcoe_read_res_info_init_mb()
903 csio_fcoe_vnp_alloc_init_mb(struct csio_lnode *ln, struct csio_mb *mbp, in csio_fcoe_vnp_alloc_init_mb() argument
909 (struct fw_fcoe_vnp_cmd *)(mbp->mb); in csio_fcoe_vnp_alloc_init_mb()
911 CSIO_INIT_MBP(mbp, cmdp, mb_tmo, ln, cbfn, 1); in csio_fcoe_vnp_alloc_init_mb()
945 csio_fcoe_vnp_read_init_mb(struct csio_lnode *ln, struct csio_mb *mbp, in csio_fcoe_vnp_read_init_mb() argument
950 (struct fw_fcoe_vnp_cmd *)(mbp->mb); in csio_fcoe_vnp_read_init_mb()
952 CSIO_INIT_MBP(mbp, cmdp, mb_tmo, ln, cbfn, 1); in csio_fcoe_vnp_read_init_mb()
974 csio_fcoe_vnp_free_init_mb(struct csio_lnode *ln, struct csio_mb *mbp, in csio_fcoe_vnp_free_init_mb() argument
979 (struct fw_fcoe_vnp_cmd *)(mbp->mb); in csio_fcoe_vnp_free_init_mb()
981 CSIO_INIT_MBP(mbp, cmdp, mb_tmo, ln, cbfn, 1); in csio_fcoe_vnp_free_init_mb()
1005 csio_fcoe_read_fcf_init_mb(struct csio_lnode *ln, struct csio_mb *mbp, in csio_fcoe_read_fcf_init_mb() argument
1010 (struct fw_fcoe_fcf_cmd *)(mbp->mb); in csio_fcoe_read_fcf_init_mb()
1012 CSIO_INIT_MBP(mbp, cmdp, mb_tmo, ln, cbfn, 1); in csio_fcoe_read_fcf_init_mb()
1023 csio_fcoe_read_portparams_init_mb(struct csio_hw *hw, struct csio_mb *mbp, in csio_fcoe_read_portparams_init_mb() argument
1029 struct fw_fcoe_stats_cmd *cmdp = (struct fw_fcoe_stats_cmd *)(mbp->mb); in csio_fcoe_read_portparams_init_mb()
1031 CSIO_INIT_MBP(mbp, cmdp, mb_tmo, hw, cbfn, 1); in csio_fcoe_read_portparams_init_mb()
1032 mbp->mb_size = 64; in csio_fcoe_read_portparams_init_mb()
1048 struct csio_mb *mbp, in csio_mb_process_portparams_rsp() argument
1053 struct fw_fcoe_stats_cmd *rsp = (struct fw_fcoe_stats_cmd *)(mbp->mb); in csio_mb_process_portparams_rsp()
1184 csio_mb_issue(struct csio_hw *hw, struct csio_mb *mbp) in csio_mb_issue() argument
1189 __be64 *cmd = mbp->mb; in csio_mb_issue()
1194 int size = mbp->mb_size; in csio_mb_issue()
1199 if (mbp->mb_cbfn == NULL) { in csio_mb_issue()
1201 if (mbp->tmo < CSIO_MB_POLL_FREQ) { in csio_mb_issue()
1202 csio_err(hw, "Invalid tmo: 0x%x\n", mbp->tmo); in csio_mb_issue()
1208 *((uint8_t *)mbp->mb)); in csio_mb_issue()
1214 if (mbp->mb_cbfn == NULL) { in csio_mb_issue()
1217 hw->pfn, *((uint8_t *)mbp->mb)); in csio_mb_issue()
1221 list_add_tail(&mbp->list, &mbm->req_q); in csio_mb_issue()
1240 if (mbp->mb_cbfn == NULL) { in csio_mb_issue()
1246 hw->pfn, *((uint8_t *)mbp->mb), owner); in csio_mb_issue()
1253 hw->pfn, *((uint8_t *)mbp->mb), in csio_mb_issue()
1273 if (mbp->mb_cbfn != NULL) { in csio_mb_issue()
1274 mbm->mcurrent = mbp; in csio_mb_issue()
1275 mod_timer(&mbm->timer, jiffies + msecs_to_jiffies(mbp->tmo)); in csio_mb_issue()
1288 if (mbp->mb_cbfn) in csio_mb_issue()
1292 cmd = mbp->mb; in csio_mb_issue()
1294 for (ii = 0; ii < mbp->tmo; ii += CSIO_MB_POLL_FREQ) { in csio_mb_issue()
1323 if (csio_mb_fw_retval(mbp) != FW_SUCCESS) in csio_mb_issue()
1352 struct csio_mb *mbp; in csio_mb_completions() local
1357 mbp = list_first_entry(cbfn_q, struct csio_mb, list); in csio_mb_completions()
1358 list_del_init(&mbp->list); in csio_mb_completions()
1360 rv = csio_mb_fw_retval(mbp); in csio_mb_completions()
1366 if (mbp->mb_cbfn) in csio_mb_completions()
1367 mbp->mb_cbfn(hw, mbp); in csio_mb_completions()
1458 struct csio_mb *mbp = mbm->mcurrent; in csio_mb_isr_handler() local
1514 CSIO_ASSERT(mbp != NULL); in csio_mb_isr_handler()
1516 cmd = mbp->mb; in csio_mb_isr_handler()
1517 size = mbp->mb_size; in csio_mb_isr_handler()
1530 list_add_tail(&mbp->list, &mbm->cbfn_q); in csio_mb_isr_handler()
1537 if (csio_enqueue_evt(hw, CSIO_EVT_MBX, mbp, sizeof(mbp))) in csio_mb_isr_handler()
1562 struct csio_mb *mbp = mbm->mcurrent; in csio_mb_tmo_handler() local
1569 if (mbp == NULL) { in csio_mb_tmo_handler()
1574 fw_hdr = (struct fw_cmd_hdr *)(mbp->mb); in csio_mb_tmo_handler()
1583 return mbp; in csio_mb_tmo_handler()
1596 struct csio_mb *mbp; in csio_mb_cancel_all() local
1602 mbp = mbm->mcurrent; in csio_mb_cancel_all()
1608 list_add_tail(&mbp->list, cbfn_q); in csio_mb_cancel_all()
1626 mbp = (struct csio_mb *)tmp; in csio_mb_cancel_all()
1627 hdr = (struct fw_cmd_hdr *)(mbp->mb); in csio_mb_cancel_all()