Lines Matching refs:req_msg
349 struct cnss_plat_ipc_qmi_file_upload_req_msg_v01 *req_msg; in cnss_plat_ipc_qmi_file_upload_req_handler() local
355 req_msg = (struct cnss_plat_ipc_qmi_file_upload_req_msg_v01 *) in cnss_plat_ipc_qmi_file_upload_req_handler()
357 if (!req_msg) in cnss_plat_ipc_qmi_file_upload_req_handler()
359 cnss_plat_ipc_dbg("File ID: %d Seg Index: %d\n", req_msg->file_id, in cnss_plat_ipc_qmi_file_upload_req_handler()
360 req_msg->seg_index); in cnss_plat_ipc_qmi_file_upload_req_handler()
363 fd = idr_find(&svc->file_idr, req_msg->file_id); in cnss_plat_ipc_qmi_file_upload_req_handler()
366 cnss_plat_ipc_err("Invalid File ID %d\n", req_msg->file_id); in cnss_plat_ipc_qmi_file_upload_req_handler()
370 if (req_msg->seg_index != fd->seg_index) { in cnss_plat_ipc_qmi_file_upload_req_handler()
495 struct cnss_plat_ipc_qmi_file_download_req_msg_v01 *req_msg; in cnss_plat_ipc_qmi_file_download_req_handler() local
501 req_msg = (struct cnss_plat_ipc_qmi_file_download_req_msg_v01 *) in cnss_plat_ipc_qmi_file_download_req_handler()
503 if (!req_msg) in cnss_plat_ipc_qmi_file_download_req_handler()
506 req_msg->file_id, req_msg->file_size, in cnss_plat_ipc_qmi_file_download_req_handler()
507 req_msg->seg_buf_len, req_msg->seg_index, in cnss_plat_ipc_qmi_file_download_req_handler()
508 req_msg->end); in cnss_plat_ipc_qmi_file_download_req_handler()
511 fd = idr_find(&svc->file_idr, req_msg->file_id); in cnss_plat_ipc_qmi_file_download_req_handler()
514 cnss_plat_ipc_err("Invalid File ID: %d\n", req_msg->file_id); in cnss_plat_ipc_qmi_file_download_req_handler()
518 if (req_msg->file_size > fd->buf_size) { in cnss_plat_ipc_qmi_file_download_req_handler()
520 fd->name, req_msg->file_size, fd->buf_size); in cnss_plat_ipc_qmi_file_download_req_handler()
523 if (req_msg->seg_buf_len > CNSS_PLAT_IPC_QMI_MAX_DATA_SIZE_V01 || in cnss_plat_ipc_qmi_file_download_req_handler()
524 ((req_msg->seg_buf_len + fd->file_size) > fd->buf_size)) { in cnss_plat_ipc_qmi_file_download_req_handler()
526 req_msg->seg_index, req_msg->seg_buf_len); in cnss_plat_ipc_qmi_file_download_req_handler()
529 if (req_msg->seg_index != fd->seg_index) { in cnss_plat_ipc_qmi_file_download_req_handler()
535 memcpy(fd->buf, req_msg->seg_buf, req_msg->seg_buf_len); in cnss_plat_ipc_qmi_file_download_req_handler()
537 fd->buf += req_msg->seg_buf_len; in cnss_plat_ipc_qmi_file_download_req_handler()
538 fd->file_size += req_msg->seg_buf_len; in cnss_plat_ipc_qmi_file_download_req_handler()
552 if (req_msg->end) { in cnss_plat_ipc_qmi_file_download_req_handler()
580 struct cnss_plat_ipc_qmi_init_setup_req_msg_v01 *req_msg; in cnss_plat_ipc_qmi_init_setup_req_handler() local
586 req_msg = in cnss_plat_ipc_qmi_init_setup_req_handler()
589 req_msg->dms_mac_addr_supported, in cnss_plat_ipc_qmi_init_setup_req_handler()
590 req_msg->qdss_hw_trace_override, in cnss_plat_ipc_qmi_init_setup_req_handler()
591 req_msg->cal_file_available_bitmask); in cnss_plat_ipc_qmi_init_setup_req_handler()
593 cfg->dms_mac_addr_supported = req_msg->dms_mac_addr_supported; in cnss_plat_ipc_qmi_init_setup_req_handler()
594 cfg->qdss_hw_trace_override = req_msg->qdss_hw_trace_override; in cnss_plat_ipc_qmi_init_setup_req_handler()
595 cfg->cal_file_available_bitmask = req_msg->cal_file_available_bitmask; in cnss_plat_ipc_qmi_init_setup_req_handler()
624 struct cnss_plat_ipc_qmi_reg_client_req_msg_v01 *req_msg; in cnss_plat_ipc_qmi_reg_client_req_handler() local
630 req_msg = in cnss_plat_ipc_qmi_reg_client_req_handler()
633 if (req_msg->client_id_valid) { in cnss_plat_ipc_qmi_reg_client_req_handler()
634 if (req_msg->client_id <= CNSS_PLAT_IPC_MAX_QMI_CLIENTS && in cnss_plat_ipc_qmi_reg_client_req_handler()
635 !qmi_client[req_msg->client_id].client_connected) { in cnss_plat_ipc_qmi_reg_client_req_handler()
639 req_msg->client_id); in cnss_plat_ipc_qmi_reg_client_req_handler()
640 qmi_client[req_msg->client_id].client_sq = *sq; in cnss_plat_ipc_qmi_reg_client_req_handler()
641 qmi_client[req_msg->client_id].client_connected = true; in cnss_plat_ipc_qmi_reg_client_req_handler()
644 req_msg->client_id); in cnss_plat_ipc_qmi_reg_client_req_handler()