Lines Matching refs:wrb
92 struct be_mcc_wrb *wrb = NULL; in alloc_mcc_wrb() local
129 wrb = queue_head_node(mccq); in alloc_mcc_wrb()
130 memset(wrb, 0, sizeof(*wrb)); in alloc_mcc_wrb()
131 wrb->tag0 = tag; in alloc_mcc_wrb()
132 wrb->tag0 |= (mccq->head << MCC_Q_WRB_IDX_SHIFT) & MCC_Q_WRB_IDX_MASK; in alloc_mcc_wrb()
138 return wrb; in alloc_mcc_wrb()
170 struct be_mcc_wrb **wrb, in __beiscsi_mcc_compl_status() argument
194 if (wrb) in __beiscsi_mcc_compl_status()
195 *wrb = temp_wrb; in __beiscsi_mcc_compl_status()
236 struct be_mcc_wrb **wrb, in beiscsi_mccq_compl_wait() argument
302 rc = __beiscsi_mcc_compl_status(phba, tag, wrb, mbx_cmd_mem); in beiscsi_mccq_compl_wait()
322 struct be_mcc_wrb *wrb = wrb_from_mbox(&ctrl->mbox_mem); in beiscsi_process_mbox_compl() local
324 struct be_cmd_req_hdr *hdr = embedded_payload(wrb); in beiscsi_process_mbox_compl()
673 void be_wrb_hdr_prepare(struct be_mcc_wrb *wrb, u32 payload_len, in be_wrb_hdr_prepare() argument
677 wrb->emb_sgecnt_special |= MCC_WRB_EMBEDDED_MASK; in be_wrb_hdr_prepare()
679 wrb->emb_sgecnt_special |= (sge_cnt & MCC_WRB_SGE_CNT_MASK) << in be_wrb_hdr_prepare()
681 wrb->payload_length = payload_len; in be_wrb_hdr_prepare()
682 be_dws_cpu_to_le(wrb, 8); in be_wrb_hdr_prepare()
732 return &((struct be_mcc_mailbox *)(mbox_mem->va))->wrb; in wrb_from_mbox()
738 struct be_mcc_wrb *wrb = wrb_from_mbox(&ctrl->mbox_mem); in beiscsi_cmd_eq_create() local
739 struct be_cmd_req_eq_create *req = embedded_payload(wrb); in beiscsi_cmd_eq_create()
740 struct be_cmd_resp_eq_create *resp = embedded_payload(wrb); in beiscsi_cmd_eq_create()
745 memset(wrb, 0, sizeof(*wrb)); in beiscsi_cmd_eq_create()
747 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in beiscsi_cmd_eq_create()
779 struct be_mcc_wrb *wrb = wrb_from_mbox(&ctrl->mbox_mem); in beiscsi_cmd_cq_create() local
780 struct be_cmd_req_cq_create *req = embedded_payload(wrb); in beiscsi_cmd_cq_create()
781 struct be_cmd_resp_cq_create *resp = embedded_payload(wrb); in beiscsi_cmd_cq_create()
788 memset(wrb, 0, sizeof(*wrb)); in beiscsi_cmd_cq_create()
790 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in beiscsi_cmd_cq_create()
854 struct be_mcc_wrb *wrb; in beiscsi_cmd_mccq_create() local
863 wrb = wrb_from_mbox(&ctrl->mbox_mem); in beiscsi_cmd_mccq_create()
864 memset(wrb, 0, sizeof(*wrb)); in beiscsi_cmd_mccq_create()
865 req = embedded_payload(wrb); in beiscsi_cmd_mccq_create()
868 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in beiscsi_cmd_mccq_create()
891 struct be_cmd_resp_mcc_create *resp = embedded_payload(wrb); in beiscsi_cmd_mccq_create()
903 struct be_mcc_wrb *wrb = wrb_from_mbox(&ctrl->mbox_mem); in beiscsi_cmd_q_destroy() local
904 struct be_cmd_req_q_destroy *req = embedded_payload(wrb); in beiscsi_cmd_q_destroy()
914 memset(wrb, 0, sizeof(*wrb)); in beiscsi_cmd_q_destroy()
915 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in beiscsi_cmd_q_destroy()
980 struct be_mcc_wrb *wrb = wrb_from_mbox(&ctrl->mbox_mem); in be_cmd_create_default_pdu_queue() local
981 struct be_defq_create_req *req = embedded_payload(wrb); in be_cmd_create_default_pdu_queue()
988 memset(wrb, 0, sizeof(*wrb)); in be_cmd_create_default_pdu_queue()
990 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in be_cmd_create_default_pdu_queue()
1039 struct be_defq_create_resp *resp = embedded_payload(wrb); in be_cmd_create_default_pdu_queue()
1081 struct be_mcc_wrb *wrb = wrb_from_mbox(&ctrl->mbox_mem); in be_cmd_wrbq_create() local
1082 struct be_wrbq_create_req *req = embedded_payload(wrb); in be_cmd_wrbq_create()
1083 struct be_wrbq_create_resp *resp = embedded_payload(wrb); in be_cmd_wrbq_create()
1088 memset(wrb, 0, sizeof(*wrb)); in be_cmd_wrbq_create()
1090 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in be_cmd_wrbq_create()
1125 struct be_mcc_wrb *wrb = wrb_from_mbox(&ctrl->mbox_mem); in be_cmd_iscsi_post_template_hdr() local
1126 struct be_post_template_pages_req *req = embedded_payload(wrb); in be_cmd_iscsi_post_template_hdr()
1131 memset(wrb, 0, sizeof(*wrb)); in be_cmd_iscsi_post_template_hdr()
1132 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in be_cmd_iscsi_post_template_hdr()
1148 struct be_mcc_wrb *wrb = wrb_from_mbox(&ctrl->mbox_mem); in be_cmd_iscsi_remove_template_hdr() local
1149 struct be_remove_template_pages_req *req = embedded_payload(wrb); in be_cmd_iscsi_remove_template_hdr()
1154 memset(wrb, 0, sizeof(*wrb)); in be_cmd_iscsi_remove_template_hdr()
1155 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in be_cmd_iscsi_remove_template_hdr()
1171 struct be_mcc_wrb *wrb = wrb_from_mbox(&ctrl->mbox_mem); in be_cmd_iscsi_post_sgl_pages() local
1172 struct be_post_sgl_pages_req *req = embedded_payload(wrb); in be_cmd_iscsi_post_sgl_pages()
1184 memset(wrb, 0, sizeof(*wrb)); in be_cmd_iscsi_post_sgl_pages()
1185 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in be_cmd_iscsi_post_sgl_pages()
1231 struct be_mcc_wrb *wrb; in be_cmd_set_vlan() local
1237 wrb = alloc_mcc_wrb(phba, &tag); in be_cmd_set_vlan()
1238 if (!wrb) { in be_cmd_set_vlan()
1243 req = embedded_payload(wrb); in be_cmd_set_vlan()
1244 be_wrb_hdr_prepare(wrb, sizeof(*wrb), true, 0); in be_cmd_set_vlan()
1262 struct be_mcc_wrb *wrb = wrb_from_mbox(&ctrl->mbox_mem); in beiscsi_check_supported_fw() local
1264 struct be_sge *sge = nonembedded_sgl(wrb); in beiscsi_check_supported_fw()
1280 memset(wrb, 0, sizeof(*wrb)); in beiscsi_check_supported_fw()
1281 be_wrb_hdr_prepare(wrb, sizeof(*req), false, 1); in beiscsi_check_supported_fw()
1333 struct be_mcc_wrb *wrb = wrb_from_mbox(&ctrl->mbox_mem); in beiscsi_get_fw_config() local
1334 struct be_fw_cfg *pfw_cfg = embedded_payload(wrb); in beiscsi_get_fw_config()
1340 memset(wrb, 0, sizeof(*wrb)); in beiscsi_get_fw_config()
1341 be_wrb_hdr_prepare(wrb, sizeof(*pfw_cfg), true, 0); in beiscsi_get_fw_config()
1489 struct be_mcc_wrb *wrb; in beiscsi_get_port_name() local
1493 wrb = wrb_from_mbox(&ctrl->mbox_mem); in beiscsi_get_port_name()
1494 memset(wrb, 0, sizeof(*wrb)); in beiscsi_get_port_name()
1495 ioctl = embedded_payload(wrb); in beiscsi_get_port_name()
1497 be_wrb_hdr_prepare(wrb, sizeof(*ioctl), true, 0); in beiscsi_get_port_name()
1523 struct be_mcc_wrb *wrb; in beiscsi_set_host_data() local
1530 wrb = wrb_from_mbox(&ctrl->mbox_mem); in beiscsi_set_host_data()
1531 memset(wrb, 0, sizeof(*wrb)); in beiscsi_set_host_data()
1532 ioctl = embedded_payload(wrb); in beiscsi_set_host_data()
1534 be_wrb_hdr_prepare(wrb, sizeof(*ioctl), true, 0); in beiscsi_set_host_data()
1569 struct be_mcc_wrb *wrb; in beiscsi_set_uer_feature() local
1573 wrb = wrb_from_mbox(&ctrl->mbox_mem); in beiscsi_set_uer_feature()
1574 memset(wrb, 0, sizeof(*wrb)); in beiscsi_set_uer_feature()
1575 ioctl = embedded_payload(wrb); in beiscsi_set_uer_feature()
1577 be_wrb_hdr_prepare(wrb, sizeof(*ioctl), true, 0); in beiscsi_set_uer_feature()
1644 struct be_mcc_wrb *wrb = wrb_from_mbox(&ctrl->mbox_mem); in beiscsi_cmd_function_reset() local
1650 req = embedded_payload(wrb); in beiscsi_cmd_function_reset()
1651 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in beiscsi_cmd_function_reset()
1662 struct be_mcc_wrb *wrb = wrb_from_mbox(&ctrl->mbox_mem); in beiscsi_cmd_special_wrb() local
1668 memset(wrb, 0, sizeof(*wrb)); in beiscsi_cmd_special_wrb()
1670 endian_check = (u8 *) wrb; in beiscsi_cmd_special_wrb()
1692 be_dws_cpu_to_le(wrb, sizeof(*wrb)); in beiscsi_cmd_special_wrb()
1747 struct be_mcc_wrb *wrb; in beiscsi_cmd_iscsi_cleanup() local
1751 wrb = wrb_from_mbox(&ctrl->mbox_mem); in beiscsi_cmd_iscsi_cleanup()
1756 req = embedded_payload(wrb); in beiscsi_cmd_iscsi_cleanup()
1757 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in beiscsi_cmd_iscsi_cleanup()
1765 req_v1 = embedded_payload(wrb); in beiscsi_cmd_iscsi_cleanup()
1766 be_wrb_hdr_prepare(wrb, sizeof(*req_v1), true, 0); in beiscsi_cmd_iscsi_cleanup()