Lines Matching refs:slot_idx
177 static void hisi_sas_slot_index_clear(struct hisi_hba *hisi_hba, int slot_idx) in hisi_sas_slot_index_clear() argument
181 clear_bit(slot_idx, bitmap); in hisi_sas_slot_index_clear()
184 static void hisi_sas_slot_index_free(struct hisi_hba *hisi_hba, int slot_idx) in hisi_sas_slot_index_free() argument
186 hisi_sas_slot_index_clear(hisi_hba, slot_idx); in hisi_sas_slot_index_free()
189 static void hisi_sas_slot_index_set(struct hisi_hba *hisi_hba, int slot_idx) in hisi_sas_slot_index_set() argument
193 set_bit(slot_idx, bitmap); in hisi_sas_slot_index_set()
196 static int hisi_sas_slot_index_alloc(struct hisi_hba *hisi_hba, int *slot_idx) in hisi_sas_slot_index_alloc() argument
210 *slot_idx = index; in hisi_sas_slot_index_alloc()
297 int dlvry_queue_slot, dlvry_queue, rc, slot_idx; in hisi_sas_task_prep() local
386 rc = hisi_hba->hw->slot_index_alloc(hisi_hba, &slot_idx, in hisi_sas_task_prep()
389 rc = hisi_sas_slot_index_alloc(hisi_hba, &slot_idx); in hisi_sas_task_prep()
394 slot = &hisi_hba->slot_info[slot_idx]; in hisi_sas_task_prep()
455 hisi_sas_slot_index_free(hisi_hba, slot_idx); in hisi_sas_task_prep()
1695 int dlvry_queue_slot, dlvry_queue, n_elem = 0, rc, slot_idx; in hisi_sas_internal_abort_task_exec() local
1709 rc = hisi_sas_slot_index_alloc(hisi_hba, &slot_idx); in hisi_sas_internal_abort_task_exec()
1716 slot = &hisi_hba->slot_info[slot_idx]; in hisi_sas_internal_abort_task_exec()
1763 hisi_sas_slot_index_free(hisi_hba, slot_idx); in hisi_sas_internal_abort_task_exec()