Lines Matching refs:req_data

753 	void *req_data = NULL;
800 req_data = dma_alloc_coherent(&ha->pdev->dev, req_data_len,
802 if (!req_data) {
804 "dma alloc failed for req_data.\n");
818 /* Copy the request buffer in req_data now */
820 bsg_job->request_payload.sg_cnt, req_data, req_data_len);
833 get_unaligned_le32(req_data) == ELS_OPCODE_BYTE &&
966 req_data, req_data_dma);
2563 struct ql_vnd_mng_host_stats_param *req_data;
2580 req_data = kzalloc(sizeof(*req_data), GFP_KERNEL);
2581 if (!req_data) {
2582 ql_log(ql_log_warn, vha, 0x0000, "req_data memory allocation failure.\n");
2586 /* Copy the request buffer in req_data */
2588 bsg_job->request_payload.sg_cnt, req_data,
2591 switch (req_data->action) {
2593 ret = qla2xxx_stop_stats(vha->host, req_data->stat_type);
2596 ret = qla2xxx_start_stats(vha->host, req_data->stat_type);
2599 ret = qla2xxx_reset_stats(vha->host, req_data->stat_type);
2607 kfree(req_data);
2632 struct ql_vnd_stats_param *req_data;
2650 req_data = kzalloc(sizeof(*req_data), GFP_KERNEL);
2651 if (!req_data) {
2652 ql_log(ql_log_warn, vha, 0x0000, "req_data memory allocation failure.\n");
2656 /* Copy the request buffer in req_data */
2658 bsg_job->request_payload.sg_cnt, req_data, req_data_len);
2661 tmp_stat_type = req_data->stat_type;
2701 ret = qla2xxx_get_ini_stats(fc_bsg_to_shost(bsg_job), req_data->stat_type,
2716 kfree(req_data);
2737 struct ql_vnd_tgt_stats_param *req_data;
2756 req_data = kzalloc(sizeof(*req_data), GFP_KERNEL);
2757 if (!req_data) {
2758 ql_log(ql_log_warn, vha, 0x0000, "req_data memory allocation failure.\n");
2762 /* Copy the request buffer in req_data */
2765 req_data, req_data_len);
2773 kfree(req_data);
2793 rport = qla2xxx_find_rport(vha, req_data->tgt_id);
2795 ql_log(ql_log_warn, vha, 0x0000, "target %d not found.\n", req_data->tgt_id);
2801 ret = qla2xxx_get_tgt_stats(fc_bsg_to_shost(bsg_job), req_data->stat_type,
2816 kfree(req_data);
2826 struct ql_vnd_mng_host_port_param *req_data;
2838 req_data = kzalloc(sizeof(*req_data), GFP_KERNEL);
2839 if (!req_data) {
2840 ql_log(ql_log_warn, vha, 0x0000, "req_data memory allocation failure.\n");
2844 /* Copy the request buffer in req_data */
2846 bsg_job->request_payload.sg_cnt, req_data, req_data_len);
2848 switch (req_data->action) {
2861 kfree(req_data);
3133 struct qla_mbx_passthru *req_data = NULL;
3141 req_data = kzalloc(ptsize, GFP_KERNEL);
3142 if (!req_data) {
3144 "req_data memory allocation failure.\n");
3148 /* Copy the request buffer in req_data */
3150 bsg_job->request_payload.sg_cnt, req_data, ptsize);
3151 ret = qla_mailbox_passthru(vha, req_data->mbx_in, req_data->mbx_out);
3153 /* Copy the req_data in request buffer */
3155 bsg_job->reply_payload.sg_cnt, req_data, ptsize);
3167 kfree(req_data);