FreeBSD kernel CAM code
|
Go to the source code of this file.
Functions | |
int | xpt_bus_register (struct cam_sim *sim, device_t parent, uint32_t bus) |
int | xpt_bus_deregister (path_id_t path_id) |
u_int32_t | xpt_freeze_simq (struct cam_sim *sim, u_int count) |
void | xpt_release_simq (struct cam_sim *sim, int run_queue) |
u_int32_t | xpt_freeze_devq (struct cam_path *path, u_int count) |
void | xpt_release_devq (struct cam_path *path, u_int count, int run_queue) |
void | xpt_done (union ccb *done_ccb) |
void | xpt_done_direct (union ccb *done_ccb) |
int xpt_bus_deregister | ( | path_id_t | path_id | ) |
Definition at line 4065 of file cam_xpt.c.
References AC_LOST_DEVICE, AC_PATH_DEREGISTERED, cam_path::bus, CAM_LUN_WILDCARD, CAM_REQ_CMP, CAM_SUCCESS, CAM_TARGET_WILDCARD, xpt_async(), xpt_compile_path(), xpt_release_bus(), and xpt_release_path().
Referenced by cfcs_init(), cfcs_shutdown(), and mmc_cam_sim_free().
int xpt_bus_register | ( | struct cam_sim * | sim, |
device_t | parent, | ||
uint32_t | bus | ||
) |
Definition at line 3965 of file cam_xpt.c.
References AC_PATH_REGISTERED, cam_path::bus, cam_sim::bus_id, CAM_LUN_WILDCARD, CAM_REQ_CMP, cam_sim_hold(), CAM_SUCCESS, CAM_TARGET_WILDCARD, CAM_XPT_PATH_ID, ccb_pathinq::ccb_h, ccb::ccb_h, ccb::crcn, cam_eb::eb_mtx, ccb_rescan::flags, cam_eb::flags, ccb_hdr::func_code, cam_eb::generation, ccb_pathinq::hba_misc, cam_eb::last_reset, cam_eb::parent_dev, ccb_hdr::path, cam_sim::path_id, cam_eb::path_id, PIM_NOSCAN, cam_eb::refcount, cam_eb::sim, cam_sim::sim_name, ccb_hdr::status, ccb_pathinq::transport, cam_sim::unit_number, cam_eb::xport, xport_default, xpt_alloc_ccb_nowait(), xpt_async(), xpt_create_path(), xpt_free_path(), xpt_lock_buses(), xpt_path_inq(), xpt_print(), xpt_release_bus(), xpt_rescan(), XPT_SCAN_BUS, xpt_unlock_buses(), xptpathid(), and xsoftc.
Referenced by cfcs_init(), mmc_cam_sim_alloc(), and xpt_init().
void xpt_done | ( | union ccb * | done_ccb | ) |
Definition at line 4562 of file cam_xpt.c.
References CAM_DEBUG, CAM_DEBUG_TRACE, CAM_DONEQ_INDEX, cam_doneq::cam_doneq_mtx, cam_doneqs, cam_iosched_delta_t(), cam_num_doneqs, CAM_QOS_VALID, ccb::ccb_h, ccb::csio, ccb_hdr::func_code, cam_pinfo::index, ccb_hdr::path, ccb_hdr::path_id, ccb_qos_area::periph_data, ccb_hdr::pinfo, ccb_hdr::qos, ccb_hdr::status, ccb_hdr::target_id, ccb_hdr::target_lun, xpt_action_name(), XPT_FC_QUEUED, and XPT_SCSI_IO.
Referenced by aprobedone(), ata_action(), ata_scan_bus(), ata_scan_lun(), ata_set_transfer_settings(), cfcs_action(), cfcs_datamove(), cfcs_done(), mmc_cam_sim_default_action(), mmc_scan_lun(), mmc_sim_task(), nvme_probe_done(), nvme_scan_lun(), probedone(), scsi_scan_bus(), scsi_scan_lun(), scsi_set_transfer_settings(), xpt_action_default(), and xptaction().
void xpt_done_direct | ( | union ccb * | done_ccb | ) |
Definition at line 4597 of file cam_xpt.c.
References CAM_DEBUG, CAM_DEBUG_TRACE, cam_iosched_delta_t(), CAM_QOS_VALID, ccb::ccb_h, ccb_hdr::func_code, ccb_hdr::path, ccb_qos_area::periph_data, ccb_hdr::qos, ccb_hdr::status, xpt_done_process(), and XPT_FC_QUEUED.
u_int32_t xpt_freeze_devq | ( | struct cam_path * | path, |
u_int | count | ||
) |
Definition at line 4438 of file cam_xpt.c.
References CAM_DEBUG, CAM_DEBUG_TRACE, cam_path::device, cam_sim::devq, cam_devq::send_mtx, cam_ed::sim, and xpt_freeze_devq_device().
Referenced by cfcs_action(), cfcs_done(), xpt_action_default(), xpt_async(), xpt_run_devq(), xpt_start_tags(), and xpt_stop_tags().
u_int32_t xpt_freeze_simq | ( | struct cam_sim * | sim, |
u_int | count | ||
) |
Definition at line 4453 of file cam_xpt.c.
References cam_sim::devq, camq::qfrozen_cnt, cam_devq::send_mtx, and cam_devq::send_queue.
Referenced by xpt_async().
void xpt_release_devq | ( | struct cam_path * | path, |
u_int | count, | ||
int | run_queue | ||
) |
Definition at line 4480 of file cam_xpt.c.
References CAM_DEBUG, CAM_DEBUG_TRACE, cam_path::device, cam_sim::devq, cam_devq::send_mtx, cam_ed::sim, xpt_release_devq_device(), and xpt_run_devq().
Referenced by aprobedone(), nvme_probe_done(), probedone(), xpt_action_default(), xpt_async_process(), and xpt_done_process().
void xpt_release_simq | ( | struct cam_sim * | sim, |
int | run_queue | ||
) |
Definition at line 4537 of file cam_xpt.c.
References cam_sim::devq, camq::qfrozen_cnt, cam_devq::send_mtx, cam_devq::send_queue, and xpt_run_devq().
Referenced by xpt_async_process(), and xpt_done_process().