Lines Matching refs:resp_cp
415 struct iwl_mcc_update_resp *resp_cp; in iwl_mvm_update_mcc() local
450 resp_cp = ERR_PTR(-EINVAL); in iwl_mvm_update_mcc()
455 resp_cp = kmemdup(mcc_resp, resp_len, GFP_KERNEL); in iwl_mvm_update_mcc()
456 if (!resp_cp) { in iwl_mvm_update_mcc()
457 resp_cp = ERR_PTR(-ENOMEM); in iwl_mvm_update_mcc()
466 resp_cp = ERR_PTR(-EINVAL); in iwl_mvm_update_mcc()
471 resp_cp = kzalloc(resp_len, GFP_KERNEL); in iwl_mvm_update_mcc()
472 if (!resp_cp) { in iwl_mvm_update_mcc()
473 resp_cp = ERR_PTR(-ENOMEM); in iwl_mvm_update_mcc()
477 resp_cp->status = mcc_resp_v3->status; in iwl_mvm_update_mcc()
478 resp_cp->mcc = mcc_resp_v3->mcc; in iwl_mvm_update_mcc()
479 resp_cp->cap = cpu_to_le16(mcc_resp_v3->cap); in iwl_mvm_update_mcc()
480 resp_cp->source_id = mcc_resp_v3->source_id; in iwl_mvm_update_mcc()
481 resp_cp->time = mcc_resp_v3->time; in iwl_mvm_update_mcc()
482 resp_cp->geo_info = mcc_resp_v3->geo_info; in iwl_mvm_update_mcc()
483 resp_cp->n_channels = mcc_resp_v3->n_channels; in iwl_mvm_update_mcc()
484 memcpy(resp_cp->channels, mcc_resp_v3->channels, in iwl_mvm_update_mcc()
488 status = le32_to_cpu(resp_cp->status); in iwl_mvm_update_mcc()
490 mcc = le16_to_cpu(resp_cp->mcc); in iwl_mvm_update_mcc()
495 resp_cp->mcc = cpu_to_le16(mcc); in iwl_mvm_update_mcc()
504 return resp_cp; in iwl_mvm_update_mcc()