Lines Matching refs:iq_pi

3490 	pqi_index_t iq_pi;  in pqi_send_event_ack()  local
3502 iq_pi = queue_group->iq_pi_copy[RAID_PATH]; in pqi_send_event_ack()
3505 if (pqi_num_elements_free(iq_pi, iq_ci, in pqi_send_event_ack()
3517 (iq_pi * PQI_OPERATIONAL_IQ_ELEMENT_LENGTH); in pqi_send_event_ack()
3521 iq_pi = (iq_pi + 1) % ctrl_info->num_elements_per_iq; in pqi_send_event_ack()
3522 queue_group->iq_pi_copy[RAID_PATH] = iq_pi; in pqi_send_event_ack()
3528 writel(iq_pi, queue_group->iq_pi[RAID_PATH]); in pqi_send_event_ack()
4355 admin_queues->iq_pi = ctrl_info->iomem_base + in pqi_create_admin_queues()
4370 pqi_index_t iq_pi; in pqi_submit_admin_request() local
4373 iq_pi = admin_queues->iq_pi_copy; in pqi_submit_admin_request()
4376 (iq_pi * PQI_ADMIN_IQ_ELEMENT_LENGTH); in pqi_submit_admin_request()
4380 iq_pi = (iq_pi + 1) % PQI_ADMIN_IQ_NUM_ELEMENTS; in pqi_submit_admin_request()
4381 admin_queues->iq_pi_copy = iq_pi; in pqi_submit_admin_request()
4387 writel(iq_pi, admin_queues->iq_pi); in pqi_submit_admin_request()
4435 pqi_index_t iq_pi; in pqi_start_io() local
4452 iq_pi = queue_group->iq_pi_copy[path]; in pqi_start_io()
4467 if (num_elements_needed > pqi_num_elements_free(iq_pi, iq_ci, in pqi_start_io()
4475 (iq_pi * PQI_OPERATIONAL_IQ_ELEMENT_LENGTH); in pqi_start_io()
4478 ctrl_info->num_elements_per_iq - iq_pi; in pqi_start_io()
4491 iq_pi = (iq_pi + num_elements_needed) % in pqi_start_io()
4497 if (iq_pi != queue_group->iq_pi_copy[path]) { in pqi_start_io()
4498 queue_group->iq_pi_copy[path] = iq_pi; in pqi_start_io()
4503 writel(iq_pi, queue_group->iq_pi[path]); in pqi_start_io()
4877 queue_group->iq_pi[RAID_PATH] = ctrl_info->iomem_base + in pqi_create_queue_group()
4912 queue_group->iq_pi[AIO_PATH] = ctrl_info->iomem_base + in pqi_create_queue_group()
6085 pqi_index_t iq_pi; in pqi_nonempty_inbound_queue_count() local
6093 iq_pi = queue_group->iq_pi_copy[path]; in pqi_nonempty_inbound_queue_count()
6095 if (iq_ci != iq_pi) in pqi_nonempty_inbound_queue_count()