FreeBSD kernel CAM code
|
Go to the source code of this file.
Functions | |
void | xpt_release_ccb (union ccb *released_ccb) |
void | xpt_schedule (struct cam_periph *perph, u_int32_t new_priority) |
int32_t | xpt_add_periph (struct cam_periph *periph) |
void | xpt_remove_periph (struct cam_periph *periph) |
void | xpt_announce_periph (struct cam_periph *periph, char *announce_string) |
void | xpt_announce_periph_sbuf (struct cam_periph *periph, struct sbuf *sb, char *announce_string) |
void | xpt_announce_quirks (struct cam_periph *periph, int quirks, char *bit_string) |
void | xpt_announce_quirks_sbuf (struct cam_periph *periph, struct sbuf *sb, int quirks, char *bit_string) |
void | xpt_denounce_periph (struct cam_periph *periph) |
void | xpt_denounce_periph_sbuf (struct cam_periph *periph, struct sbuf *sb) |
int32_t xpt_add_periph | ( | struct cam_periph * | periph | ) |
Definition at line 1014 of file cam_xpt.c.
References cam_et::bus, CAM_REQ_CMP, cam_path::device, cam_eb::eb_mtx, cam_ed::generation, cam_periph::path, cam_periph::periph_run_task, cam_ed::periphs, cam_ed::target, xpt_softc::xpt_generation, xpt_run_allocq_task(), and xsoftc.
Referenced by cam_periph_alloc().
void xpt_announce_periph | ( | struct cam_periph * | periph, |
char * | announce_string | ||
) |
Definition at line 1049 of file cam_xpt.c.
References xpt_xport_ops::announce, cam_path::bus, cam_sim::bus_id, CAM_DEV_TAG_AFTER_COUNT, CAM_PERIPH_ANNOUNCED, cam_periph_assert, cam_path::device, cam_periph::flags, cam_ed::flags, cam_ed::inq_flags, cam_ed::lun_id, xpt_xport::ops, cam_periph::path, cam_eb::path_id, cam_path::periph, cam_periph::periph_name, xpt_proto::proto, cam_ed::protocol, cam_ed::serial_num, cam_ed::serial_num_len, SID_CmdQue, cam_eb::sim, cam_sim::sim_name, cam_path::target, cam_et::target_id, cam_periph::unit_number, cam_sim::unit_number, cam_eb::xport, and xpt_proto_find().
Referenced by chdone(), ndaregister(), passregister(), pmpregister(), ptctor(), sadone(), saregister(), sastart(), sdda_start_init(), sgregister(), xpt_announce_periph_sbuf(), and xptpassannouncefunc().
void xpt_announce_periph_sbuf | ( | struct cam_periph * | periph, |
struct sbuf * | sb, | ||
char * | announce_string | ||
) |
Definition at line 1093 of file cam_xpt.c.
References xpt_xport_ops::announce_sbuf, cam_path::bus, cam_sim::bus_id, CAM_DEV_TAG_AFTER_COUNT, CAM_PERIPH_ANNOUNCED, cam_periph_assert, cam_path::device, cam_periph::flags, cam_ed::flags, cam_ed::inq_flags, cam_ed::lun_id, xpt_xport::ops, cam_periph::path, cam_eb::path_id, cam_path::periph, cam_periph::periph_name, xpt_proto::proto, cam_ed::protocol, cam_ed::serial_num, cam_ed::serial_num_len, SID_CmdQue, cam_eb::sim, cam_sim::sim_name, cam_path::target, cam_et::target_id, cam_periph::unit_number, cam_sim::unit_number, cam_eb::xport, xpt_announce_periph(), xpt_proto_find(), and xsoftc.
Referenced by adaregister(), cddone(), dadone_proberc(), and enc_ctor().
void xpt_announce_quirks | ( | struct cam_periph * | periph, |
int | quirks, | ||
char * | bit_string | ||
) |
Definition at line 1151 of file cam_xpt.c.
References cam_periph::periph_name, and cam_periph::unit_number.
Referenced by chdone(), ndaregister(), sadone(), saregister(), sastart(), and xpt_announce_quirks_sbuf().
void xpt_announce_quirks_sbuf | ( | struct cam_periph * | periph, |
struct sbuf * | sb, | ||
int | quirks, | ||
char * | bit_string | ||
) |
Definition at line 1160 of file cam_xpt.c.
References cam_periph::periph_name, cam_periph::unit_number, xpt_announce_quirks(), and xsoftc.
Referenced by adaregister(), cddone(), and dadone_proberc().
void xpt_denounce_periph | ( | struct cam_periph * | periph | ) |
Definition at line 1175 of file cam_xpt.c.
References cam_path::bus, cam_sim::bus_id, cam_periph_assert, cam_path::device, cam_ed::lun_id, cam_periph::path, cam_eb::path_id, cam_path::periph, cam_periph::periph_name, xpt_proto::proto, cam_ed::protocol, cam_ed::serial_num, cam_ed::serial_num_len, cam_eb::sim, cam_sim::sim_name, cam_path::target, cam_et::target_id, cam_periph::unit_number, cam_sim::unit_number, and xpt_proto_find().
Referenced by xpt_denounce_periph_sbuf().
void xpt_denounce_periph_sbuf | ( | struct cam_periph * | periph, |
struct sbuf * | sb | ||
) |
Definition at line 1203 of file cam_xpt.c.
References cam_path::bus, cam_sim::bus_id, cam_periph_assert, cam_path::device, cam_ed::lun_id, cam_periph::path, cam_eb::path_id, cam_path::periph, cam_periph::periph_name, xpt_proto::proto, cam_ed::protocol, cam_ed::serial_num, cam_ed::serial_num_len, cam_eb::sim, cam_sim::sim_name, cam_path::target, cam_et::target_id, cam_periph::unit_number, cam_sim::unit_number, xpt_denounce_periph(), xpt_proto_find(), and xsoftc.
Referenced by cam_periph_invalidate().
void xpt_release_ccb | ( | union ccb * | released_ccb | ) |
Definition at line 3924 of file cam_xpt.c.
References cam_ccbq_release_opening(), CAM_DEBUG_PRINT, CAM_DEBUG_XPT, ccb::ccb_h, cam_ed::ccbq, cam_path::device, ccb_hdr::path, cam_path::periph, cam_periph::periph_allocated, xpt_free_ccb(), xpt_path_assert, and xpt_run_allocq().
Referenced by adaclose(), adadone(), adaflush(), adaprobedone(), adastart(), aprobedone(), cam_periph_ioctl(), cddone(), cdgetmode(), cdpause(), cdplay(), cdplaymsf(), cdplaytracks(), cdprevent(), cdreaddvdstructure(), cdreadsubchannel(), cdreadtoc(), cdreportkey(), cdsendkey(), cdsetmode(), cdsetspeed(), cdstart(), cdstartunit(), cdstopunit(), chdone(), chexchange(), chgetelemstatus(), chgetparams(), chielem(), chmove(), chposition(), chsetvoltag(), chstart(), ctlfedone(), ctlfestart(), daclose(), dadone(), dadone_probeata(), dadone_probeataiddir(), dadone_probeatalogdir(), dadone_probeatasup(), dadone_probebdc(), dadone_probeblklimits(), dadone_probelbp(), dadone_proberc(), dadone_probewp(), dadone_tur(), daprevent(), daprobedone(), dashutdown(), dastart(), enc_fsm_step(), enc_runcmd(), mmcprobe_done(), ndaclose(), ndadone(), ndaflush(), ndaioctl(), ndastart(), nvme_probe_done(), passdoioctl(), passdone(), passstart(), pmpdone(), probedone(), ptdone(), ptstart(), sadone(), saerase(), sagetparams(), sagetpos(), saloadunload(), samount(), saprevent(), sardpos(), sareservereleaseunit(), saretension(), sarewind(), sasetparams(), sasetpos(), sasetprot(), saspace(), sastart(), sawritefilemarks(), sddadone(), sddastart(), ses_set_timed_completion(), sgioctl(), targbhdone(), targbhstart(), targfreeccb(), targstart(), and xpt_run_allocq().
void xpt_remove_periph | ( | struct cam_periph * | periph | ) |
Definition at line 1034 of file cam_xpt.c.
References cam_et::bus, cam_path::device, cam_eb::eb_mtx, cam_ed::generation, cam_periph::path, cam_ed::periphs, cam_ed::target, xpt_softc::xpt_generation, and xsoftc.
Referenced by cam_periph_alloc(), and camperiphfree().
void xpt_schedule | ( | struct cam_periph * | perph, |
u_int32_t | new_priority | ||
) |
Definition at line 3243 of file cam_xpt.c.
References CAM_DEBUG, CAM_DEBUG_TRACE, cam_periph_assert, cam_periph::path, cam_periph::scheduled_priority, and xpt_run_allocq().
Referenced by adaasync(), adadone(), adaregister(), aprobedone(), aprobeschedule(), cam_iosched_schedule(), cdasync(), cdcheckmedia(), cddone(), cdmediapoll(), cdregister(), cdstart(), cdstrategy(), chregister(), ctlfe_datamove(), ctlfe_done(), ctlfedone(), ctlfestart(), dadone_probeata(), dadone_probeataiddir(), dadone_probeatalogdir(), dadone_probeatasup(), dadone_probebdc(), dadone_probeblklimits(), dadone_probelbp(), dadone_proberc(), dadone_probewp(), daregister(), dareprobe(), mmcprobe_done(), mmcprobe_register(), nvme_probe_done(), nvme_probe_schedule(), passdoioctl(), passstart(), pmpasync(), pmpdone(), pmpregister(), probedone(), probeschedule(), ptstart(), ptstrategy(), saregister(), sastart(), sastrategy(), sddadone(), sddaregister(), sddaschedule(), targbhdone(), targbhstart(), targstart(), and targwrite().