Lines Matching refs:iq_pi
3481 pqi_index_t iq_pi; in pqi_send_event_ack() local
3493 iq_pi = queue_group->iq_pi_copy[RAID_PATH]; in pqi_send_event_ack()
3496 if (pqi_num_elements_free(iq_pi, iq_ci, in pqi_send_event_ack()
3508 (iq_pi * PQI_OPERATIONAL_IQ_ELEMENT_LENGTH); in pqi_send_event_ack()
3512 iq_pi = (iq_pi + 1) % ctrl_info->num_elements_per_iq; in pqi_send_event_ack()
3513 queue_group->iq_pi_copy[RAID_PATH] = iq_pi; in pqi_send_event_ack()
3519 writel(iq_pi, queue_group->iq_pi[RAID_PATH]); in pqi_send_event_ack()
4346 admin_queues->iq_pi = ctrl_info->iomem_base + in pqi_create_admin_queues()
4361 pqi_index_t iq_pi; in pqi_submit_admin_request() local
4364 iq_pi = admin_queues->iq_pi_copy; in pqi_submit_admin_request()
4367 (iq_pi * PQI_ADMIN_IQ_ELEMENT_LENGTH); in pqi_submit_admin_request()
4371 iq_pi = (iq_pi + 1) % PQI_ADMIN_IQ_NUM_ELEMENTS; in pqi_submit_admin_request()
4372 admin_queues->iq_pi_copy = iq_pi; in pqi_submit_admin_request()
4378 writel(iq_pi, admin_queues->iq_pi); in pqi_submit_admin_request()
4426 pqi_index_t iq_pi; in pqi_start_io() local
4443 iq_pi = queue_group->iq_pi_copy[path]; in pqi_start_io()
4458 if (num_elements_needed > pqi_num_elements_free(iq_pi, iq_ci, in pqi_start_io()
4466 (iq_pi * PQI_OPERATIONAL_IQ_ELEMENT_LENGTH); in pqi_start_io()
4469 ctrl_info->num_elements_per_iq - iq_pi; in pqi_start_io()
4482 iq_pi = (iq_pi + num_elements_needed) % in pqi_start_io()
4488 if (iq_pi != queue_group->iq_pi_copy[path]) { in pqi_start_io()
4489 queue_group->iq_pi_copy[path] = iq_pi; in pqi_start_io()
4494 writel(iq_pi, queue_group->iq_pi[path]); in pqi_start_io()
4868 queue_group->iq_pi[RAID_PATH] = ctrl_info->iomem_base + in pqi_create_queue_group()
4903 queue_group->iq_pi[AIO_PATH] = ctrl_info->iomem_base + in pqi_create_queue_group()
6076 pqi_index_t iq_pi; in pqi_nonempty_inbound_queue_count() local
6084 iq_pi = queue_group->iq_pi_copy[path]; in pqi_nonempty_inbound_queue_count()
6086 if (iq_ci != iq_pi) in pqi_nonempty_inbound_queue_count()