copp 130 sound/soc/qcom/qdsp6/q6adm.c struct q6copp *copp; copp 158 sound/soc/qcom/qdsp6/q6adm.c copp = q6adm_find_copp(adm, port_idx, copp_idx); copp 159 sound/soc/qcom/qdsp6/q6adm.c if (!copp) copp 162 sound/soc/qcom/qdsp6/q6adm.c copp->result = *result; copp 163 sound/soc/qcom/qdsp6/q6adm.c wake_up(&copp->wait); copp 164 sound/soc/qcom/qdsp6/q6adm.c kref_put(&copp->refcount, q6adm_free_copp); copp 185 sound/soc/qcom/qdsp6/q6adm.c copp = q6adm_find_copp(adm, port_idx, copp_idx); copp 186 sound/soc/qcom/qdsp6/q6adm.c if (!copp) copp 192 sound/soc/qcom/qdsp6/q6adm.c copp->result.status = ADSP_EBADPARAM; copp 193 sound/soc/qcom/qdsp6/q6adm.c wake_up(&copp->wait); copp 194 sound/soc/qcom/qdsp6/q6adm.c kref_put(&copp->refcount, q6adm_free_copp); copp 197 sound/soc/qcom/qdsp6/q6adm.c copp->result.opcode = hdr->opcode; copp 198 sound/soc/qcom/qdsp6/q6adm.c copp->id = open->copp_id; copp 199 sound/soc/qcom/qdsp6/q6adm.c wake_up(&copp->wait); copp 200 sound/soc/qcom/qdsp6/q6adm.c kref_put(&copp->refcount, q6adm_free_copp); copp 237 sound/soc/qcom/qdsp6/q6adm.c static int q6adm_apr_send_copp_pkt(struct q6adm *adm, struct q6copp *copp, copp 245 sound/soc/qcom/qdsp6/q6adm.c copp->result.opcode = 0; copp 246 sound/soc/qcom/qdsp6/q6adm.c copp->result.status = 0; copp 256 sound/soc/qcom/qdsp6/q6adm.c ret = wait_event_timeout(copp->wait, copp 257 sound/soc/qcom/qdsp6/q6adm.c (copp->result.opcode == opcode) || copp 258 sound/soc/qcom/qdsp6/q6adm.c (copp->result.opcode == rsp_opcode), copp 261 sound/soc/qcom/qdsp6/q6adm.c ret = wait_event_timeout(copp->wait, copp 262 sound/soc/qcom/qdsp6/q6adm.c (copp->result.opcode == opcode), copp 268 sound/soc/qcom/qdsp6/q6adm.c } else if (copp->result.status > 0) { copp 270 sound/soc/qcom/qdsp6/q6adm.c copp->result.status); copp 279 sound/soc/qcom/qdsp6/q6adm.c static int q6adm_device_close(struct q6adm *adm, struct q6copp *copp, copp 289 sound/soc/qcom/qdsp6/q6adm.c close.hdr.dest_port = copp->id; copp 293 sound/soc/qcom/qdsp6/q6adm.c return q6adm_apr_send_copp_pkt(adm, copp, &close, 0); copp 321 sound/soc/qcom/qdsp6/q6adm.c static int q6adm_device_open(struct q6adm *adm, struct q6copp *copp, copp 344 sound/soc/qcom/qdsp6/q6adm.c pkt->hdr.token = port_id << 16 | copp->copp_idx; copp 359 sound/soc/qcom/qdsp6/q6adm.c ret = q6adm_apr_send_copp_pkt(adm, copp, pkt, copp 388 sound/soc/qcom/qdsp6/q6adm.c struct q6copp *copp; copp 397 sound/soc/qcom/qdsp6/q6adm.c copp = q6adm_find_matching_copp(adm, port_id, topology, perf_mode, copp 399 sound/soc/qcom/qdsp6/q6adm.c if (copp) { copp 400 sound/soc/qcom/qdsp6/q6adm.c dev_err(dev, "Found Matching Copp 0x%x\n", copp->copp_idx); copp 401 sound/soc/qcom/qdsp6/q6adm.c return copp; copp 405 sound/soc/qcom/qdsp6/q6adm.c copp = q6adm_alloc_copp(adm, port_id); copp 406 sound/soc/qcom/qdsp6/q6adm.c if (IS_ERR_OR_NULL(copp)) { copp 408 sound/soc/qcom/qdsp6/q6adm.c return ERR_CAST(copp); copp 411 sound/soc/qcom/qdsp6/q6adm.c list_add_tail(&copp->node, &adm->copps_list); copp 414 sound/soc/qcom/qdsp6/q6adm.c kref_init(&copp->refcount); copp 415 sound/soc/qcom/qdsp6/q6adm.c copp->topology = topology; copp 416 sound/soc/qcom/qdsp6/q6adm.c copp->mode = perf_mode; copp 417 sound/soc/qcom/qdsp6/q6adm.c copp->rate = rate; copp 418 sound/soc/qcom/qdsp6/q6adm.c copp->channels = channel_mode; copp 419 sound/soc/qcom/qdsp6/q6adm.c copp->bit_width = bit_width; copp 420 sound/soc/qcom/qdsp6/q6adm.c copp->app_type = app_type; copp 423 sound/soc/qcom/qdsp6/q6adm.c ret = q6adm_device_open(adm, copp, port_id, path, topology, copp 426 sound/soc/qcom/qdsp6/q6adm.c kref_put(&copp->refcount, q6adm_free_copp); copp 430 sound/soc/qcom/qdsp6/q6adm.c return copp; copp 441 sound/soc/qcom/qdsp6/q6adm.c int q6adm_get_copp_id(struct q6copp *copp) copp 443 sound/soc/qcom/qdsp6/q6adm.c if (!copp) copp 446 sound/soc/qcom/qdsp6/q6adm.c return copp->copp_idx; copp 470 sound/soc/qcom/qdsp6/q6adm.c struct q6copp *copp; copp 519 sound/soc/qcom/qdsp6/q6adm.c copp = q6adm_find_copp(adm, port_idx, copp_idx); copp 520 sound/soc/qcom/qdsp6/q6adm.c if (!copp) { copp 525 sound/soc/qcom/qdsp6/q6adm.c copps_list[i] = copp->id; copp 526 sound/soc/qcom/qdsp6/q6adm.c kref_put(&copp->refcount, q6adm_free_copp); copp 569 sound/soc/qcom/qdsp6/q6adm.c int q6adm_close(struct device *dev, struct q6copp *copp) copp 574 sound/soc/qcom/qdsp6/q6adm.c ret = q6adm_device_close(adm, copp, copp->afe_port, copp->copp_idx); copp 580 sound/soc/qcom/qdsp6/q6adm.c kref_put(&copp->refcount, q6adm_free_copp); copp 22 sound/soc/qcom/qdsp6/q6adm.h int q6adm_close(struct device *dev, struct q6copp *copp); copp 23 sound/soc/qcom/qdsp6/q6adm.h int q6adm_get_copp_id(struct q6copp *copp); copp 313 sound/soc/qcom/qdsp6/q6routing.c struct q6copp *copp; copp 335 sound/soc/qcom/qdsp6/q6routing.c copp = q6adm_open(routing_data->dev, session->port_id, copp 340 sound/soc/qcom/qdsp6/q6routing.c if (IS_ERR_OR_NULL(copp)) { copp 345 sound/soc/qcom/qdsp6/q6routing.c copp_idx = q6adm_get_copp_id(copp); copp 347 sound/soc/qcom/qdsp6/q6routing.c session->copps[copp_idx] = copp;