Lines Matching refs:handle

137 mpssas_find_target_by_handle(struct mpssas_softc *sassc, int start, uint16_t handle)  in mpssas_find_target_by_handle()  argument
144 if (target->handle == handle) in mpssas_find_target_by_handle()
340 uint16_t handle; in mpssas_remove_volume() local
345 handle = (uint16_t)(uintptr_t)tm->cm_complete_data; in mpssas_remove_volume()
352 handle); in mpssas_remove_volume()
361 le16toh(reply->IOCStatus), handle); in mpssas_remove_volume()
370 "clearing target %u handle 0x%04x\n", targ->tid, handle); in mpssas_remove_volume()
381 targ->handle = 0x0; in mpssas_remove_volume()
399 mpssas_prepare_volume_remove(struct mpssas_softc *sassc, uint16_t handle) in mpssas_prepare_volume_remove() argument
421 targ = mpssas_find_target_by_handle(sassc, 0, handle); in mpssas_prepare_volume_remove()
426 "%s %d : invalid handle 0x%x \n", __func__,__LINE__, handle); in mpssas_prepare_volume_remove()
442 req->DevHandle = targ->handle; in mpssas_prepare_volume_remove()
451 tm->cm_complete_data = (void *)(uintptr_t)handle; in mpssas_prepare_volume_remove()
470 mpssas_prepare_remove(struct mpssas_softc *sassc, uint16_t handle) in mpssas_prepare_remove() argument
481 targ = mpssas_find_target_by_handle(sassc, 0, handle); in mpssas_prepare_remove()
486 "%s : invalid handle 0x%x \n", __func__, handle); in mpssas_prepare_remove()
502 req->DevHandle = htole16(targ->handle); in mpssas_prepare_remove()
511 cm->cm_complete_data = (void *)(uintptr_t)handle; in mpssas_prepare_remove()
526 uint16_t handle; in mpssas_remove_device() local
531 handle = (uint16_t)(uintptr_t)tm->cm_complete_data; in mpssas_remove_device()
543 handle); in mpssas_remove_device()
550 handle); in mpssas_remove_device()
559 le16toh(reply->IOCStatus), handle); in mpssas_remove_device()
572 req->DevHandle = htole16(handle); in mpssas_remove_device()
576 tm->cm_complete_data = (void *)(uintptr_t)handle; in mpssas_remove_device()
586 targ->tid, handle); in mpssas_remove_device()
594 targ->tid, handle); in mpssas_remove_device()
601 uint16_t handle; in mpssas_remove_complete() local
608 handle = (uint16_t)(uintptr_t)tm->cm_complete_data; in mpssas_remove_complete()
627 handle); in mpssas_remove_complete()
635 "%s NULL reply removing device 0x%04x\n", __func__, handle); in mpssas_remove_complete()
642 handle, le16toh(reply->IOCStatus)); in mpssas_remove_complete()
652 targ->handle = 0x0; in mpssas_remove_complete()
963 if (targ->handle == 0x0) { in mpssas_action()
1137 sc->sassc->targets[i].handle = 0x0; in mpssas_handle_reinit()
1345 if (target->handle == 0) { in mpssas_send_reset()
1352 req->DevHandle = htole16(target->handle); in mpssas_send_reset()
1487 if (targ->handle == 0) { in mpssas_send_abort()
1498 req->DevHandle = htole16(targ->handle); in mpssas_send_abort()
1569 targ->tid, targ->handle, ccb->ccb_h.timeout, in mpssas_scsiio_timeout()
1634 if (targ->handle == 0x0) { in mpssas_action_scsiio()
1723 req->DevHandle = htole16(targ->handle); in mpssas_action_scsiio()
1860 cm->cm_desc.SCSIIO.DevHandle = htole16(targ->handle); in mpssas_action_scsiio()
2383 cm->cm_targ->tid, cm->cm_targ->handle); in mpssas_scsiio_complete()
2912 if (targ->handle == 0x0) { in mpssas_action_smpio()
2964 "parent handle!\n", __func__, targ->handle); in mpssas_action_smpio()
2975 "parent target!\n", __func__, targ->handle); in mpssas_action_smpio()
2985 targ->handle, parent_target->handle); in mpssas_action_smpio()
2997 targ->handle, targ->parent_handle); in mpssas_action_smpio()
3005 __func__, targ->handle, targ->parent_handle); in mpssas_action_smpio()
3017 __func__, targ->handle); in mpssas_action_smpio()
3056 req->DevHandle = htole16(targ->handle); in mpssas_action_resetdev()
3175 if (target->handle == 0) in mpssas_async()