Lines Matching refs:bsg_reply

26 	struct fc_bsg_reply *bsg_reply = bsg_job->reply;  in qla2x00_bsg_job_done()  local
35 bsg_reply->result = res; in qla2x00_bsg_job_done()
36 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_bsg_job_done()
37 bsg_reply->reply_payload_rcv_len); in qla2x00_bsg_job_done()
145 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla24xx_proc_fcp_prio_cfg_cmd() local
172 bsg_reply->result = DID_OK; in qla24xx_proc_fcp_prio_cfg_cmd()
175 bsg_reply->result = (DID_ERROR << 16); in qla24xx_proc_fcp_prio_cfg_cmd()
187 bsg_reply->result = DID_OK; in qla24xx_proc_fcp_prio_cfg_cmd()
190 bsg_reply->result = (DID_ERROR << 16); in qla24xx_proc_fcp_prio_cfg_cmd()
200 bsg_reply->result = (DID_ERROR << 16); in qla24xx_proc_fcp_prio_cfg_cmd()
204 bsg_reply->result = DID_OK; in qla24xx_proc_fcp_prio_cfg_cmd()
205 bsg_reply->reply_payload_rcv_len = in qla24xx_proc_fcp_prio_cfg_cmd()
216 bsg_reply->result = (DID_ERROR << 16); in qla24xx_proc_fcp_prio_cfg_cmd()
227 bsg_reply->result = (DID_ERROR << 16); in qla24xx_proc_fcp_prio_cfg_cmd()
241 bsg_reply->result = (DID_ERROR << 16); in qla24xx_proc_fcp_prio_cfg_cmd()
255 bsg_reply->result = DID_OK; in qla24xx_proc_fcp_prio_cfg_cmd()
263 bsg_job_done(bsg_job, bsg_reply->result, in qla24xx_proc_fcp_prio_cfg_cmd()
264 bsg_reply->reply_payload_rcv_len); in qla24xx_proc_fcp_prio_cfg_cmd()
738 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla2x00_process_loopback() local
938 bsg_reply->result = (DID_ERROR << 16); in qla2x00_process_loopback()
939 bsg_reply->reply_payload_rcv_len = 0; in qla2x00_process_loopback()
943 bsg_reply->result = (DID_OK << 16); in qla2x00_process_loopback()
972 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_process_loopback()
973 bsg_reply->reply_payload_rcv_len); in qla2x00_process_loopback()
982 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla84xx_reset() local
1005 bsg_reply->result = DID_OK; in qla84xx_reset()
1006 bsg_job_done(bsg_job, bsg_reply->result, in qla84xx_reset()
1007 bsg_reply->reply_payload_rcv_len); in qla84xx_reset()
1017 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla84xx_updatefw() local
1105 bsg_reply->result = DID_OK; in qla84xx_updatefw()
1118 bsg_job_done(bsg_job, bsg_reply->result, in qla84xx_updatefw()
1119 bsg_reply->reply_payload_rcv_len); in qla84xx_updatefw()
1127 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla84xx_mgmt_cmd() local
1286 bsg_reply->result = DID_OK; in qla84xx_mgmt_cmd()
1290 bsg_reply->reply_payload_rcv_len = in qla84xx_mgmt_cmd()
1314 bsg_job_done(bsg_job, bsg_reply->result, in qla84xx_mgmt_cmd()
1315 bsg_reply->reply_payload_rcv_len); in qla84xx_mgmt_cmd()
1323 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla24xx_iidma() local
1393 rsp_ptr = ((uint8_t *)bsg_reply) + in qla24xx_iidma()
1400 bsg_reply->result = DID_OK; in qla24xx_iidma()
1401 bsg_job_done(bsg_job, bsg_reply->result, in qla24xx_iidma()
1402 bsg_reply->reply_payload_rcv_len); in qla24xx_iidma()
1481 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla2x00_read_optrom() local
1504 bsg_reply->reply_payload_rcv_len = ha->optrom_region_size; in qla2x00_read_optrom()
1505 bsg_reply->result = DID_OK; in qla2x00_read_optrom()
1510 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_read_optrom()
1511 bsg_reply->reply_payload_rcv_len); in qla2x00_read_optrom()
1518 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla2x00_update_optrom() local
1542 bsg_reply->result = -EINVAL; in qla2x00_update_optrom()
1545 bsg_reply->result = DID_OK; in qla2x00_update_optrom()
1551 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_update_optrom()
1552 bsg_reply->reply_payload_rcv_len); in qla2x00_update_optrom()
1559 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla2x00_update_fru_versions() local
1572 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla2x00_update_fru_versions()
1588 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla2x00_update_fru_versions()
1595 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = 0; in qla2x00_update_fru_versions()
1602 bsg_reply->result = DID_OK << 16; in qla2x00_update_fru_versions()
1603 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_update_fru_versions()
1604 bsg_reply->reply_payload_rcv_len); in qla2x00_update_fru_versions()
1612 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla2x00_read_fru_status() local
1623 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla2x00_read_fru_status()
1637 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla2x00_read_fru_status()
1645 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = 0; in qla2x00_read_fru_status()
1652 bsg_reply->reply_payload_rcv_len = sizeof(*sr); in qla2x00_read_fru_status()
1653 bsg_reply->result = DID_OK << 16; in qla2x00_read_fru_status()
1654 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_read_fru_status()
1655 bsg_reply->reply_payload_rcv_len); in qla2x00_read_fru_status()
1663 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla2x00_write_fru_status() local
1674 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla2x00_write_fru_status()
1688 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla2x00_write_fru_status()
1693 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = 0; in qla2x00_write_fru_status()
1700 bsg_reply->result = DID_OK << 16; in qla2x00_write_fru_status()
1701 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_write_fru_status()
1702 bsg_reply->reply_payload_rcv_len); in qla2x00_write_fru_status()
1710 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla2x00_write_i2c() local
1721 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla2x00_write_i2c()
1734 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla2x00_write_i2c()
1739 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = 0; in qla2x00_write_i2c()
1746 bsg_reply->result = DID_OK << 16; in qla2x00_write_i2c()
1747 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_write_i2c()
1748 bsg_reply->reply_payload_rcv_len); in qla2x00_write_i2c()
1756 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla2x00_read_i2c() local
1767 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla2x00_read_i2c()
1779 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla2x00_read_i2c()
1788 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = 0; in qla2x00_read_i2c()
1795 bsg_reply->reply_payload_rcv_len = sizeof(*i2c); in qla2x00_read_i2c()
1796 bsg_reply->result = DID_OK << 16; in qla2x00_read_i2c()
1797 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_read_i2c()
1798 bsg_reply->reply_payload_rcv_len); in qla2x00_read_i2c()
1806 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla24xx_process_bidir_cmd() local
1971 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = rval; in qla24xx_process_bidir_cmd()
1973 bsg_reply->reply_payload_rcv_len = 0; in qla24xx_process_bidir_cmd()
1974 bsg_reply->result = (DID_OK) << 16; in qla24xx_process_bidir_cmd()
1975 bsg_job_done(bsg_job, bsg_reply->result, in qla24xx_process_bidir_cmd()
1976 bsg_reply->reply_payload_rcv_len); in qla24xx_process_bidir_cmd()
2107 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla26xx_serdes_op() local
2121 bsg_reply->reply_payload_rcv_len = 0; in qla26xx_serdes_op()
2127 bsg_reply->reply_payload_rcv_len = sizeof(sr); in qla26xx_serdes_op()
2136 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla26xx_serdes_op()
2140 bsg_reply->result = DID_OK << 16; in qla26xx_serdes_op()
2141 bsg_job_done(bsg_job, bsg_reply->result, in qla26xx_serdes_op()
2142 bsg_reply->reply_payload_rcv_len); in qla26xx_serdes_op()
2149 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla8044_serdes_op() local
2163 bsg_reply->reply_payload_rcv_len = 0; in qla8044_serdes_op()
2169 bsg_reply->reply_payload_rcv_len = sizeof(sr); in qla8044_serdes_op()
2178 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla8044_serdes_op()
2182 bsg_reply->result = DID_OK << 16; in qla8044_serdes_op()
2183 bsg_job_done(bsg_job, bsg_reply->result, in qla8044_serdes_op()
2184 bsg_reply->reply_payload_rcv_len); in qla8044_serdes_op()
2191 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla27xx_get_flash_upd_cap() local
2208 bsg_reply->reply_payload_rcv_len = sizeof(cap); in qla27xx_get_flash_upd_cap()
2210 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla27xx_get_flash_upd_cap()
2214 bsg_reply->result = DID_OK << 16; in qla27xx_get_flash_upd_cap()
2215 bsg_job_done(bsg_job, bsg_reply->result, in qla27xx_get_flash_upd_cap()
2216 bsg_reply->reply_payload_rcv_len); in qla27xx_get_flash_upd_cap()
2223 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla27xx_set_flash_upd_cap() local
2243 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla27xx_set_flash_upd_cap()
2249 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla27xx_set_flash_upd_cap()
2254 bsg_reply->reply_payload_rcv_len = 0; in qla27xx_set_flash_upd_cap()
2256 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla27xx_set_flash_upd_cap()
2260 bsg_reply->result = DID_OK << 16; in qla27xx_set_flash_upd_cap()
2261 bsg_job_done(bsg_job, bsg_reply->result, in qla27xx_set_flash_upd_cap()
2262 bsg_reply->reply_payload_rcv_len); in qla27xx_set_flash_upd_cap()
2269 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla27xx_get_bbcr_data() local
2314 bsg_reply->reply_payload_rcv_len = sizeof(bbcr); in qla27xx_get_bbcr_data()
2316 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = EXT_STATUS_OK; in qla27xx_get_bbcr_data()
2319 bsg_reply->result = DID_OK << 16; in qla27xx_get_bbcr_data()
2320 bsg_job_done(bsg_job, bsg_reply->result, in qla27xx_get_bbcr_data()
2321 bsg_reply->reply_payload_rcv_len); in qla27xx_get_bbcr_data()
2329 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla2x00_get_priv_stats() local
2369 bsg_reply->reply_payload_rcv_len = sizeof(*stats); in qla2x00_get_priv_stats()
2370 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla2x00_get_priv_stats()
2373 bsg_job->reply_len = sizeof(*bsg_reply); in qla2x00_get_priv_stats()
2374 bsg_reply->result = DID_OK << 16; in qla2x00_get_priv_stats()
2375 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_get_priv_stats()
2376 bsg_reply->reply_payload_rcv_len); in qla2x00_get_priv_stats()
2387 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla2x00_do_dport_diagnostics() local
2414 bsg_reply->reply_payload_rcv_len = sizeof(*dd); in qla2x00_do_dport_diagnostics()
2415 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla2x00_do_dport_diagnostics()
2418 bsg_job->reply_len = sizeof(*bsg_reply); in qla2x00_do_dport_diagnostics()
2419 bsg_reply->result = DID_OK << 16; in qla2x00_do_dport_diagnostics()
2420 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_do_dport_diagnostics()
2421 bsg_reply->reply_payload_rcv_len); in qla2x00_do_dport_diagnostics()
2431 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla2x00_do_dport_diagnostics_v2() local
2455 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla2x00_do_dport_diagnostics_v2()
2470 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla2x00_do_dport_diagnostics_v2()
2478 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla2x00_do_dport_diagnostics_v2()
2492 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla2x00_do_dport_diagnostics_v2()
2500 bsg_reply->reply_payload_rcv_len = sizeof(*dd); in qla2x00_do_dport_diagnostics_v2()
2501 bsg_job->reply_len = sizeof(*bsg_reply); in qla2x00_do_dport_diagnostics_v2()
2502 bsg_reply->result = DID_OK << 16; in qla2x00_do_dport_diagnostics_v2()
2503 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_do_dport_diagnostics_v2()
2504 bsg_reply->reply_payload_rcv_len); in qla2x00_do_dport_diagnostics_v2()
2515 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla2x00_get_flash_image_status() local
2544 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = EXT_STATUS_OK; in qla2x00_get_flash_image_status()
2545 bsg_reply->reply_payload_rcv_len = sizeof(regions); in qla2x00_get_flash_image_status()
2546 bsg_reply->result = DID_OK << 16; in qla2x00_get_flash_image_status()
2548 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_get_flash_image_status()
2549 bsg_reply->reply_payload_rcv_len); in qla2x00_get_flash_image_status()
2558 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla2x00_manage_host_stats() local
2609 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = EXT_STATUS_OK; in qla2x00_manage_host_stats()
2610 bsg_reply->reply_payload_rcv_len = in qla2x00_manage_host_stats()
2616 bsg_reply->result = DID_OK; in qla2x00_manage_host_stats()
2617 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_manage_host_stats()
2618 bsg_reply->reply_payload_rcv_len); in qla2x00_manage_host_stats()
2627 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla2x00_get_host_stats() local
2677 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = EXT_STATUS_BUFFER_TOO_SMALL; in qla2x00_get_host_stats()
2680 bsg_reply->reply_payload_rcv_len = in qla2x00_get_host_stats()
2685 bsg_reply->result = DID_OK; in qla2x00_get_host_stats()
2686 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_get_host_stats()
2687 bsg_reply->reply_payload_rcv_len); in qla2x00_get_host_stats()
2701 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = EXT_STATUS_OK; in qla2x00_get_host_stats()
2703 bsg_reply->reply_payload_rcv_len = sg_copy_from_buffer(bsg_job->reply_payload.sg_list, in qla2x00_get_host_stats()
2706 bsg_reply->result = DID_OK; in qla2x00_get_host_stats()
2707 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_get_host_stats()
2708 bsg_reply->reply_payload_rcv_len); in qla2x00_get_host_stats()
2732 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla2x00_get_tgt_stats() local
2775 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = EXT_STATUS_BUFFER_TOO_SMALL; in qla2x00_get_tgt_stats()
2778 bsg_reply->reply_payload_rcv_len = in qla2x00_get_tgt_stats()
2783 bsg_reply->result = DID_OK; in qla2x00_get_tgt_stats()
2784 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_get_tgt_stats()
2785 bsg_reply->reply_payload_rcv_len); in qla2x00_get_tgt_stats()
2800 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = EXT_STATUS_OK; in qla2x00_get_tgt_stats()
2802 bsg_reply->reply_payload_rcv_len = in qla2x00_get_tgt_stats()
2806 bsg_reply->result = DID_OK; in qla2x00_get_tgt_stats()
2807 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_get_tgt_stats()
2808 bsg_reply->reply_payload_rcv_len); in qla2x00_get_tgt_stats()
2821 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla2x00_manage_host_port() local
2861 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = EXT_STATUS_OK; in qla2x00_manage_host_port()
2864 bsg_reply->reply_payload_rcv_len = in qla2x00_manage_host_port()
2868 bsg_reply->result = DID_OK; in qla2x00_manage_host_port()
2869 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_manage_host_port()
2870 bsg_reply->reply_payload_rcv_len); in qla2x00_manage_host_port()
2984 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla24xx_bsg_request() local
2991 bsg_reply->reply_payload_rcv_len = 0; in qla24xx_bsg_request()
3008 bsg_reply->result = DID_ERROR; in qla24xx_bsg_request()
3017 SET_DID_STATUS(bsg_reply->result, DID_ERROR); in qla24xx_bsg_request()
3022 SET_DID_STATUS(bsg_reply->result, DID_ERROR); in qla24xx_bsg_request()
3059 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla24xx_bsg_timeout() local
3097 bsg_reply->result = -EIO; in qla24xx_bsg_timeout()
3101 bsg_reply->result = 0; in qla24xx_bsg_timeout()
3111 bsg_reply->result = -ENXIO; in qla24xx_bsg_timeout()
3123 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla2x00_mailbox_passthru() local
3151 bsg_reply->reply_payload_rcv_len = ptsize; in qla2x00_mailbox_passthru()
3153 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = EXT_STATUS_OK; in qla2x00_mailbox_passthru()
3155 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = EXT_STATUS_ERR; in qla2x00_mailbox_passthru()
3158 bsg_reply->result = DID_OK << 16; in qla2x00_mailbox_passthru()
3159 bsg_job_done(bsg_job, bsg_reply->result, bsg_reply->reply_payload_rcv_len); in qla2x00_mailbox_passthru()