Lines Matching refs:resp
350 struct cnss_plat_ipc_qmi_file_upload_resp_msg_v01 *resp; in cnss_plat_ipc_qmi_file_upload_req_handler() local
375 resp = kzalloc(sizeof(*resp), GFP_KERNEL); in cnss_plat_ipc_qmi_file_upload_req_handler()
376 if (!resp) in cnss_plat_ipc_qmi_file_upload_req_handler()
379 resp->file_id = fd->id; in cnss_plat_ipc_qmi_file_upload_req_handler()
380 resp->seg_index = fd->seg_index++; in cnss_plat_ipc_qmi_file_upload_req_handler()
381 resp->seg_buf_len = in cnss_plat_ipc_qmi_file_upload_req_handler()
384 resp->end = (fd->seg_index == fd->seg_len); in cnss_plat_ipc_qmi_file_upload_req_handler()
385 memcpy(resp->seg_buf, fd->buf, resp->seg_buf_len); in cnss_plat_ipc_qmi_file_upload_req_handler()
387 cnss_plat_ipc_dbg("ID: %d Seg ID: %d Len: %d End: %d\n", resp->file_id, in cnss_plat_ipc_qmi_file_upload_req_handler()
388 resp->seg_index, resp->seg_buf_len, resp->end); in cnss_plat_ipc_qmi_file_upload_req_handler()
395 resp); in cnss_plat_ipc_qmi_file_upload_req_handler()
402 fd->buf_size -= resp->seg_buf_len; in cnss_plat_ipc_qmi_file_upload_req_handler()
403 fd->buf += resp->seg_buf_len; in cnss_plat_ipc_qmi_file_upload_req_handler()
404 if (resp->end) { in cnss_plat_ipc_qmi_file_upload_req_handler()
409 kfree(resp); in cnss_plat_ipc_qmi_file_upload_req_handler()
496 struct cnss_plat_ipc_qmi_file_download_resp_msg_v01 resp = {0}; in cnss_plat_ipc_qmi_file_download_req_handler() local
540 resp.file_id = fd->id; in cnss_plat_ipc_qmi_file_download_req_handler()
541 resp.seg_index = fd->seg_index; in cnss_plat_ipc_qmi_file_download_req_handler()
547 &resp); in cnss_plat_ipc_qmi_file_download_req_handler()
581 struct cnss_plat_ipc_qmi_init_setup_resp_msg_v01 resp = {0}; in cnss_plat_ipc_qmi_init_setup_req_handler() local
602 cnss_plat_ipc_qmi_init_setup_resp_msg_v01_ei, &resp); in cnss_plat_ipc_qmi_init_setup_req_handler()
625 struct cnss_plat_ipc_qmi_reg_client_resp_msg_v01 resp = {0}; in cnss_plat_ipc_qmi_reg_client_req_handler() local
655 cnss_plat_ipc_qmi_reg_client_resp_msg_v01_ei, &resp); in cnss_plat_ipc_qmi_reg_client_req_handler()