Changeset View
Changeset View
Standalone View
Standalone View
sys/cam/scsi/scsi_xpt.c
Show First 20 Lines • Show All 2,619 Lines • ▼ Show 20 Lines | xpt_async(AC_ADVINFO_CHANGED, start_ccb->ccb_h.path, | ||||
(void *)(uintptr_t)cdai->buftype); | (void *)(uintptr_t)cdai->buftype); | ||||
} | } | ||||
} | } | ||||
static void | static void | ||||
scsi_action(union ccb *start_ccb) | scsi_action(union ccb *start_ccb) | ||||
{ | { | ||||
if (start_ccb->ccb_h.func_code != XPT_SCSI_IO) { | |||||
KASSERT((start_ccb->ccb_h.alloc_flags & CAM_CCB_FROM_UMA) == 0, | |||||
("%s: ccb %p, func_code %#x should not be allocated " | |||||
"from UMA zone\n", | |||||
__func__, start_ccb, start_ccb->ccb_h.func_code)); | |||||
} | |||||
switch (start_ccb->ccb_h.func_code) { | switch (start_ccb->ccb_h.func_code) { | ||||
case XPT_SET_TRAN_SETTINGS: | case XPT_SET_TRAN_SETTINGS: | ||||
{ | { | ||||
scsi_set_transfer_settings(&start_ccb->cts, | scsi_set_transfer_settings(&start_ccb->cts, | ||||
start_ccb->ccb_h.path, | start_ccb->ccb_h.path, | ||||
/*async_update*/FALSE); | /*async_update*/FALSE); | ||||
break; | break; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 603 Lines • Show Last 20 Lines |