Lines Matching refs:bsg_reply
25 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla2x00_bsg_job_done() local
29 bsg_reply->result = res; in qla2x00_bsg_job_done()
30 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_bsg_job_done()
31 bsg_reply->reply_payload_rcv_len); in qla2x00_bsg_job_done()
131 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla24xx_proc_fcp_prio_cfg_cmd() local
158 bsg_reply->result = DID_OK; in qla24xx_proc_fcp_prio_cfg_cmd()
161 bsg_reply->result = (DID_ERROR << 16); in qla24xx_proc_fcp_prio_cfg_cmd()
173 bsg_reply->result = DID_OK; in qla24xx_proc_fcp_prio_cfg_cmd()
176 bsg_reply->result = (DID_ERROR << 16); in qla24xx_proc_fcp_prio_cfg_cmd()
186 bsg_reply->result = (DID_ERROR << 16); in qla24xx_proc_fcp_prio_cfg_cmd()
190 bsg_reply->result = DID_OK; in qla24xx_proc_fcp_prio_cfg_cmd()
191 bsg_reply->reply_payload_rcv_len = in qla24xx_proc_fcp_prio_cfg_cmd()
202 bsg_reply->result = (DID_ERROR << 16); in qla24xx_proc_fcp_prio_cfg_cmd()
213 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_OK; in qla24xx_proc_fcp_prio_cfg_cmd()
249 bsg_job_done(bsg_job, bsg_reply->result, in qla24xx_proc_fcp_prio_cfg_cmd()
250 bsg_reply->reply_payload_rcv_len); in qla24xx_proc_fcp_prio_cfg_cmd()
719 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla2x00_process_loopback() local
919 bsg_reply->result = (DID_ERROR << 16); in qla2x00_process_loopback()
920 bsg_reply->reply_payload_rcv_len = 0; in qla2x00_process_loopback()
924 bsg_reply->result = (DID_OK << 16); in qla2x00_process_loopback()
953 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_process_loopback()
954 bsg_reply->reply_payload_rcv_len); in qla2x00_process_loopback()
963 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla84xx_reset() local
986 bsg_reply->result = DID_OK; in qla84xx_reset()
987 bsg_job_done(bsg_job, bsg_reply->result, in qla84xx_reset()
988 bsg_reply->reply_payload_rcv_len); in qla84xx_reset()
998 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla84xx_updatefw() local
1086 bsg_reply->result = DID_OK; in qla84xx_updatefw()
1099 bsg_job_done(bsg_job, bsg_reply->result, in qla84xx_updatefw()
1100 bsg_reply->reply_payload_rcv_len); in qla84xx_updatefw()
1108 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla84xx_mgmt_cmd() local
1267 bsg_reply->result = DID_OK; in qla84xx_mgmt_cmd()
1271 bsg_reply->reply_payload_rcv_len = in qla84xx_mgmt_cmd()
1295 bsg_job_done(bsg_job, bsg_reply->result, in qla84xx_mgmt_cmd()
1296 bsg_reply->reply_payload_rcv_len); in qla84xx_mgmt_cmd()
1304 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla24xx_iidma() local
1374 rsp_ptr = ((uint8_t *)bsg_reply) + in qla24xx_iidma()
1381 bsg_reply->result = DID_OK; in qla24xx_iidma()
1382 bsg_job_done(bsg_job, bsg_reply->result, in qla24xx_iidma()
1383 bsg_reply->reply_payload_rcv_len); in qla24xx_iidma()
1462 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla2x00_read_optrom() local
1485 bsg_reply->reply_payload_rcv_len = ha->optrom_region_size; in qla2x00_read_optrom()
1486 bsg_reply->result = DID_OK; in qla2x00_read_optrom()
1491 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_read_optrom()
1492 bsg_reply->reply_payload_rcv_len); in qla2x00_read_optrom()
1499 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla2x00_update_optrom() local
1523 bsg_reply->result = -EINVAL; in qla2x00_update_optrom()
1526 bsg_reply->result = DID_OK; in qla2x00_update_optrom()
1532 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_update_optrom()
1533 bsg_reply->reply_payload_rcv_len); in qla2x00_update_optrom()
1540 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla2x00_update_fru_versions() local
1553 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla2x00_update_fru_versions()
1569 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla2x00_update_fru_versions()
1576 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = 0; in qla2x00_update_fru_versions()
1583 bsg_reply->result = DID_OK << 16; in qla2x00_update_fru_versions()
1584 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_update_fru_versions()
1585 bsg_reply->reply_payload_rcv_len); in qla2x00_update_fru_versions()
1593 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla2x00_read_fru_status() local
1604 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla2x00_read_fru_status()
1618 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla2x00_read_fru_status()
1626 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = 0; in qla2x00_read_fru_status()
1633 bsg_reply->reply_payload_rcv_len = sizeof(*sr); in qla2x00_read_fru_status()
1634 bsg_reply->result = DID_OK << 16; in qla2x00_read_fru_status()
1635 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_read_fru_status()
1636 bsg_reply->reply_payload_rcv_len); in qla2x00_read_fru_status()
1644 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla2x00_write_fru_status() local
1655 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla2x00_write_fru_status()
1669 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla2x00_write_fru_status()
1674 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = 0; in qla2x00_write_fru_status()
1681 bsg_reply->result = DID_OK << 16; in qla2x00_write_fru_status()
1682 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_write_fru_status()
1683 bsg_reply->reply_payload_rcv_len); in qla2x00_write_fru_status()
1691 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla2x00_write_i2c() local
1702 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla2x00_write_i2c()
1715 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla2x00_write_i2c()
1720 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = 0; in qla2x00_write_i2c()
1727 bsg_reply->result = DID_OK << 16; in qla2x00_write_i2c()
1728 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_write_i2c()
1729 bsg_reply->reply_payload_rcv_len); in qla2x00_write_i2c()
1737 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla2x00_read_i2c() local
1748 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla2x00_read_i2c()
1760 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla2x00_read_i2c()
1769 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = 0; in qla2x00_read_i2c()
1776 bsg_reply->reply_payload_rcv_len = sizeof(*i2c); in qla2x00_read_i2c()
1777 bsg_reply->result = DID_OK << 16; in qla2x00_read_i2c()
1778 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_read_i2c()
1779 bsg_reply->reply_payload_rcv_len); in qla2x00_read_i2c()
1787 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla24xx_process_bidir_cmd() local
1952 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = rval; in qla24xx_process_bidir_cmd()
1954 bsg_reply->reply_payload_rcv_len = 0; in qla24xx_process_bidir_cmd()
1955 bsg_reply->result = (DID_OK) << 16; in qla24xx_process_bidir_cmd()
1956 bsg_job_done(bsg_job, bsg_reply->result, in qla24xx_process_bidir_cmd()
1957 bsg_reply->reply_payload_rcv_len); in qla24xx_process_bidir_cmd()
2088 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla26xx_serdes_op() local
2102 bsg_reply->reply_payload_rcv_len = 0; in qla26xx_serdes_op()
2108 bsg_reply->reply_payload_rcv_len = sizeof(sr); in qla26xx_serdes_op()
2117 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla26xx_serdes_op()
2121 bsg_reply->result = DID_OK << 16; in qla26xx_serdes_op()
2122 bsg_job_done(bsg_job, bsg_reply->result, in qla26xx_serdes_op()
2123 bsg_reply->reply_payload_rcv_len); in qla26xx_serdes_op()
2130 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla8044_serdes_op() local
2144 bsg_reply->reply_payload_rcv_len = 0; in qla8044_serdes_op()
2150 bsg_reply->reply_payload_rcv_len = sizeof(sr); in qla8044_serdes_op()
2159 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla8044_serdes_op()
2163 bsg_reply->result = DID_OK << 16; in qla8044_serdes_op()
2164 bsg_job_done(bsg_job, bsg_reply->result, in qla8044_serdes_op()
2165 bsg_reply->reply_payload_rcv_len); in qla8044_serdes_op()
2172 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla27xx_get_flash_upd_cap() local
2189 bsg_reply->reply_payload_rcv_len = sizeof(cap); in qla27xx_get_flash_upd_cap()
2191 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla27xx_get_flash_upd_cap()
2195 bsg_reply->result = DID_OK << 16; in qla27xx_get_flash_upd_cap()
2196 bsg_job_done(bsg_job, bsg_reply->result, in qla27xx_get_flash_upd_cap()
2197 bsg_reply->reply_payload_rcv_len); in qla27xx_get_flash_upd_cap()
2204 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla27xx_set_flash_upd_cap() local
2224 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla27xx_set_flash_upd_cap()
2230 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla27xx_set_flash_upd_cap()
2235 bsg_reply->reply_payload_rcv_len = 0; in qla27xx_set_flash_upd_cap()
2237 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla27xx_set_flash_upd_cap()
2241 bsg_reply->result = DID_OK << 16; in qla27xx_set_flash_upd_cap()
2242 bsg_job_done(bsg_job, bsg_reply->result, in qla27xx_set_flash_upd_cap()
2243 bsg_reply->reply_payload_rcv_len); in qla27xx_set_flash_upd_cap()
2250 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla27xx_get_bbcr_data() local
2295 bsg_reply->reply_payload_rcv_len = sizeof(bbcr); in qla27xx_get_bbcr_data()
2297 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = EXT_STATUS_OK; in qla27xx_get_bbcr_data()
2300 bsg_reply->result = DID_OK << 16; in qla27xx_get_bbcr_data()
2301 bsg_job_done(bsg_job, bsg_reply->result, in qla27xx_get_bbcr_data()
2302 bsg_reply->reply_payload_rcv_len); in qla27xx_get_bbcr_data()
2310 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla2x00_get_priv_stats() local
2350 bsg_reply->reply_payload_rcv_len = sizeof(*stats); in qla2x00_get_priv_stats()
2351 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla2x00_get_priv_stats()
2354 bsg_job->reply_len = sizeof(*bsg_reply); in qla2x00_get_priv_stats()
2355 bsg_reply->result = DID_OK << 16; in qla2x00_get_priv_stats()
2356 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_get_priv_stats()
2357 bsg_reply->reply_payload_rcv_len); in qla2x00_get_priv_stats()
2368 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla2x00_do_dport_diagnostics() local
2395 bsg_reply->reply_payload_rcv_len = sizeof(*dd); in qla2x00_do_dport_diagnostics()
2396 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = in qla2x00_do_dport_diagnostics()
2399 bsg_job->reply_len = sizeof(*bsg_reply); in qla2x00_do_dport_diagnostics()
2400 bsg_reply->result = DID_OK << 16; in qla2x00_do_dport_diagnostics()
2401 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_do_dport_diagnostics()
2402 bsg_reply->reply_payload_rcv_len); in qla2x00_do_dport_diagnostics()
2413 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla2x00_get_flash_image_status() local
2438 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = EXT_STATUS_OK; in qla2x00_get_flash_image_status()
2439 bsg_reply->reply_payload_rcv_len = sizeof(regions); in qla2x00_get_flash_image_status()
2440 bsg_reply->result = DID_OK << 16; in qla2x00_get_flash_image_status()
2442 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_get_flash_image_status()
2443 bsg_reply->reply_payload_rcv_len); in qla2x00_get_flash_image_status()
2533 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla24xx_bsg_request() local
2540 bsg_reply->reply_payload_rcv_len = 0; in qla24xx_bsg_request()
2585 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla24xx_bsg_timeout() local
2613 bsg_reply->result = -EIO; in qla24xx_bsg_timeout()
2618 bsg_reply->result = 0; in qla24xx_bsg_timeout()
2628 bsg_reply->result = -ENXIO; in qla24xx_bsg_timeout()