Lines Matching refs:copp_idx
39 int copp_idx; member
91 int copp_idx) in q6adm_find_copp() argument
99 if ((port_idx == c->afe_port) && (copp_idx == c->copp_idx)) { in q6adm_find_copp()
119 clear_bit(c->copp_idx, &adm->copp_bitmap[c->afe_port]); in q6adm_free_copp()
128 int port_idx, copp_idx; in q6adm_callback() local
136 copp_idx = (hdr->token) & 0XFF; in q6adm_callback()
143 if (copp_idx < 0 || copp_idx >= MAX_COPPS_PER_PORT) { in q6adm_callback()
145 copp_idx, hdr->token); in q6adm_callback()
158 copp = q6adm_find_copp(adm, port_idx, copp_idx); in q6adm_callback()
185 copp = q6adm_find_copp(adm, port_idx, copp_idx); in q6adm_callback()
228 c->copp_idx = idx; in q6adm_alloc_copp()
280 int port_id, int copp_idx) in q6adm_device_close() argument
290 close.hdr.token = port_id << 16 | copp_idx; in q6adm_device_close()
344 pkt->hdr.token = port_id << 16 | copp->copp_idx; in q6adm_device_open()
400 dev_err(dev, "Found Matching Copp 0x%x\n", copp->copp_idx); in q6adm_open()
445 return copp->copp_idx; in q6adm_get_copp_id()
467 int pkt_size, ret, i, copp_idx; in q6adm_matrix_map() local
516 copp_idx = payload_map.copp_idx[i]; in q6adm_matrix_map()
518 copp = q6adm_find_copp(adm, port_idx, copp_idx); in q6adm_matrix_map()
573 ret = q6adm_device_close(adm, copp, copp->afe_port, copp->copp_idx); in q6adm_close()