Lines Matching refs:iq_pi
3525 pqi_index_t iq_pi; in pqi_send_event_ack() local
3537 iq_pi = queue_group->iq_pi_copy[RAID_PATH]; in pqi_send_event_ack()
3540 if (pqi_num_elements_free(iq_pi, iq_ci, in pqi_send_event_ack()
3552 (iq_pi * PQI_OPERATIONAL_IQ_ELEMENT_LENGTH); in pqi_send_event_ack()
3556 iq_pi = (iq_pi + 1) % ctrl_info->num_elements_per_iq; in pqi_send_event_ack()
3557 queue_group->iq_pi_copy[RAID_PATH] = iq_pi; in pqi_send_event_ack()
3563 writel(iq_pi, queue_group->iq_pi[RAID_PATH]); in pqi_send_event_ack()
4405 admin_queues->iq_pi = ctrl_info->iomem_base + in pqi_create_admin_queues()
4420 pqi_index_t iq_pi; in pqi_submit_admin_request() local
4423 iq_pi = admin_queues->iq_pi_copy; in pqi_submit_admin_request()
4426 (iq_pi * PQI_ADMIN_IQ_ELEMENT_LENGTH); in pqi_submit_admin_request()
4430 iq_pi = (iq_pi + 1) % PQI_ADMIN_IQ_NUM_ELEMENTS; in pqi_submit_admin_request()
4431 admin_queues->iq_pi_copy = iq_pi; in pqi_submit_admin_request()
4437 writel(iq_pi, admin_queues->iq_pi); in pqi_submit_admin_request()
4485 pqi_index_t iq_pi; in pqi_start_io() local
4502 iq_pi = queue_group->iq_pi_copy[path]; in pqi_start_io()
4517 if (num_elements_needed > pqi_num_elements_free(iq_pi, iq_ci, in pqi_start_io()
4525 (iq_pi * PQI_OPERATIONAL_IQ_ELEMENT_LENGTH); in pqi_start_io()
4528 ctrl_info->num_elements_per_iq - iq_pi; in pqi_start_io()
4541 iq_pi = (iq_pi + num_elements_needed) % in pqi_start_io()
4547 if (iq_pi != queue_group->iq_pi_copy[path]) { in pqi_start_io()
4548 queue_group->iq_pi_copy[path] = iq_pi; in pqi_start_io()
4553 writel(iq_pi, queue_group->iq_pi[path]); in pqi_start_io()
4927 queue_group->iq_pi[RAID_PATH] = ctrl_info->iomem_base + in pqi_create_queue_group()
4962 queue_group->iq_pi[AIO_PATH] = ctrl_info->iomem_base + in pqi_create_queue_group()
6123 pqi_index_t iq_pi; in pqi_nonempty_inbound_queue_count() local
6131 iq_pi = queue_group->iq_pi_copy[path]; in pqi_nonempty_inbound_queue_count()
6133 if (iq_ci != iq_pi) in pqi_nonempty_inbound_queue_count()