Lines Matching refs:target_reset_list
346 struct mptsas_target_reset_event *target_reset_list, *n; in mptsas_cleanup_fw_event_q() local
351 if (!list_empty(&hd->target_reset_list)) { in mptsas_cleanup_fw_event_q()
352 list_for_each_entry_safe(target_reset_list, n, in mptsas_cleanup_fw_event_q()
353 &hd->target_reset_list, list) { in mptsas_cleanup_fw_event_q()
357 target_reset_list->sas_event_data.TargetID)); in mptsas_cleanup_fw_event_q()
358 list_del(&target_reset_list->list); in mptsas_cleanup_fw_event_q()
359 kfree(target_reset_list); in mptsas_cleanup_fw_event_q()
1141 struct mptsas_target_reset_event *target_reset_list; in mptsas_target_reset_queue() local
1153 target_reset_list = kzalloc(sizeof(struct mptsas_target_reset_event), in mptsas_target_reset_queue()
1155 if (!target_reset_list) { in mptsas_target_reset_queue()
1162 memcpy(&target_reset_list->sas_event_data, sas_event_data, in mptsas_target_reset_queue()
1164 list_add_tail(&target_reset_list->list, &hd->target_reset_list); in mptsas_target_reset_queue()
1166 target_reset_list->time_count = jiffies; in mptsas_target_reset_queue()
1169 target_reset_list->target_reset_issued = 1; in mptsas_target_reset_queue()
1187 struct list_head *head = &hd->target_reset_list; in mptsas_schedule_target_reset()
1188 struct mptsas_target_reset_event *target_reset_list; in mptsas_schedule_target_reset() local
1197 target_reset_list = list_entry(head->next, in mptsas_schedule_target_reset()
1200 id = target_reset_list->sas_event_data.TargetID; in mptsas_schedule_target_reset()
1201 channel = target_reset_list->sas_event_data.Bus; in mptsas_schedule_target_reset()
1202 target_reset_list->time_count = jiffies; in mptsas_schedule_target_reset()
1205 target_reset_list->target_reset_issued = 1; in mptsas_schedule_target_reset()
1224 struct list_head *head = &hd->target_reset_list; in mptsas_taskmgmt_complete()
1226 struct mptsas_target_reset_event *target_reset_list; in mptsas_taskmgmt_complete() local
1272 target_reset_list = list_entry(head->next, in mptsas_taskmgmt_complete()
1278 target_reset_list->time_count)/1000)); in mptsas_taskmgmt_complete()
1282 target_reset_list->time_count = jiffies; in mptsas_taskmgmt_complete()
1287 if (!target_reset_list->target_reset_issued) { in mptsas_taskmgmt_complete()
1289 target_reset_list->target_reset_issued = 1; in mptsas_taskmgmt_complete()
1296 list_del(&target_reset_list->list); in mptsas_taskmgmt_complete()
1299 &target_reset_list->sas_event_data); in mptsas_taskmgmt_complete()
5312 INIT_LIST_HEAD(&hd->target_reset_list); in mptsas_probe()