Lines Matching refs:sim
58 int mrsas_find_io_type(struct cam_sim *sim, union ccb *ccb);
60 int mrsas_bus_scan_sim(struct mrsas_softc *sc, struct cam_sim *sim);
72 union ccb *ccb, struct cam_sim *sim, u_int8_t fp_possible);
91 static void mrsas_freeze_simq(struct mrsas_mpt_cmd *cmd, struct cam_sim *sim);
92 static void mrsas_cam_poll(struct cam_sim *sim);
93 static void mrsas_action(struct cam_sim *sim, union ccb *ccb);
104 mrsas_startio(struct mrsas_softc *sc, struct cam_sim *sim,
262 mrsas_action(struct cam_sim *sim, union ccb *ccb) in mrsas_action() argument
264 struct mrsas_softc *sc = (struct mrsas_softc *)cam_sim_softc(sim); in mrsas_action()
287 if (cam_sim_bus(sim) == 1 && in mrsas_action()
292 if (mrsas_startio(sc, sim, ccb)) { in mrsas_action()
344 ccb->cpi.unit_number = cam_sim_unit(sim); in mrsas_action()
345 ccb->cpi.bus_id = cam_sim_bus(sim); in mrsas_action()
350 strlcpy(ccb->cpi.dev_name, cam_sim_name(sim), DEV_IDLEN); in mrsas_action()
435 mrsas_startio(struct mrsas_softc *sc, struct cam_sim *sim, in mrsas_startio() argument
527 cmd_type = mrsas_find_io_type(sim, ccb); in mrsas_startio()
552 if (mrsas_build_syspdio(sc, cmd, ccb, sim, 0)) { in mrsas_startio()
561 if (mrsas_build_syspdio(sc, cmd, ccb, sim, 1)) { in mrsas_startio()
634 mrsas_find_io_type(struct cam_sim *sim, union ccb *ccb) in mrsas_find_io_type() argument
647 return (cam_sim_bus(sim) ? in mrsas_find_io_type()
650 return (cam_sim_bus(sim) ? in mrsas_find_io_type()
1198 union ccb *ccb, struct cam_sim *sim, u_int8_t fp_possible) in mrsas_build_syspdio() argument
1388 struct cam_sim *sim; in mrsas_map_request() local
1390 sim = xpt_path_sim(cmd->ccb_ptr->ccb_h.path); in mrsas_map_request()
1402 mrsas_freeze_simq(cmd, sim); in mrsas_map_request()
1654 mrsas_freeze_simq(struct mrsas_mpt_cmd *cmd, struct cam_sim *sim) in mrsas_freeze_simq() argument
1658 xpt_freeze_simq(sim, 1); in mrsas_freeze_simq()
1706 mrsas_cam_poll(struct cam_sim *sim) in mrsas_cam_poll() argument
1709 struct mrsas_softc *sc = (struct mrsas_softc *)cam_sim_softc(sim); in mrsas_cam_poll()
1771 mrsas_bus_scan_sim(struct mrsas_softc *sc, struct cam_sim *sim) in mrsas_bus_scan_sim() argument
1779 if (xpt_create_path(&ccb->ccb_h.path, xpt_periph, cam_sim_path(sim), in mrsas_bus_scan_sim()