| /freebsd/sys/cam/ |
| H A D | cam_periph.h | 49 extern struct cam_periph *xpt_periph; 94 TAILQ_HEAD(,cam_periph) units; 111 typedef void periph_start_t (struct cam_periph *periph, 113 typedef cam_status periph_ctor_t (struct cam_periph *periph, 115 typedef void periph_oninv_t (struct cam_periph *periph); 116 typedef void periph_dtor_t (struct cam_periph *periph); 117 struct cam_periph { struct 145 SLIST_ENTRY(cam_periph) periph_links; argument 146 TAILQ_ENTRY(cam_periph) unit_links; 168 struct cam_periph *cam_periph_find(struct cam_path *path, char *name); argument [all …]
|
| H A D | cam_xpt_periph.h | 42 void xpt_schedule(struct cam_periph *perph, uint32_t new_priority); 43 int32_t xpt_add_periph(struct cam_periph *periph); 44 void xpt_remove_periph(struct cam_periph *periph); 45 void xpt_announce_periph(struct cam_periph *periph, 47 void xpt_announce_periph_sbuf(struct cam_periph *periph, 50 void xpt_announce_quirks(struct cam_periph *periph, 52 void xpt_announce_quirks_sbuf(struct cam_periph *periph, 55 void xpt_denounce_periph(struct cam_periph *periph); 56 void xpt_denounce_periph_sbuf(struct cam_periph *periph, struct sbuf *sb);
|
| H A D | cam_xpt.h | 42 struct cam_periph; 71 SLIST_HEAD(periph_list, cam_periph); 88 struct cam_periph *perph, 92 struct cam_periph *perph, 112 struct cam_periph *xpt_path_periph(struct cam_path *path); 133 struct cam_periph *perph,
|
| H A D | cam_periph.c | 72 static void camperiphdone(struct cam_periph *periph, 74 static void camperiphfree(struct cam_periph *periph); 203 struct cam_periph *periph; in cam_periph_alloc() 204 struct cam_periph *cur_periph; in cam_periph_alloc() 236 periph = (struct cam_periph *)malloc(sizeof(*periph), M_CAMPERIPH, in cam_periph_alloc() 337 struct cam_periph * 341 struct cam_periph *periph; in cam_periph_find() 372 struct cam_periph *periph; in cam_periph_list() 411 cam_periph_acquire(struct cam_periph *periph) in cam_periph_acquire() 430 cam_periph_doacquire(struct cam_periph *periph) in cam_periph_doacquire() [all …]
|
| H A D | cam_iosched.h | 82 typedef void (*cam_iosched_schedule_t)(struct cam_periph *periph); 84 int cam_iosched_init(struct cam_iosched_softc **, struct cam_periph *periph, 93 void cam_iosched_schedule(struct cam_iosched_softc *isc, struct cam_periph *periph);
|
| /freebsd/sys/cam/scsi/ |
| H A D | scsi_pt.c | 96 static void ptdone(struct cam_periph *periph, 103 void (*cbfcnp)(struct cam_periph *, union ccb *), 135 struct cam_periph *periph; in ptopen() 139 periph = (struct cam_periph *)dev->si_drv1; in ptopen() 169 struct cam_periph *periph; in ptclose() 172 periph = (struct cam_periph *)dev->si_drv1; in ptclose() 191 struct cam_periph *periph; in ptstrategy() 194 periph = (struct cam_periph *)bp->bio_dev->si_drv1; in ptstrategy() 244 ptctor(struct cam_periph *periph, void *arg) in ptctor() 320 ptoninvalidate(struct cam_periph *periph) in ptoninvalidate() [all …]
|
| H A D | scsi_sg.c | 120 static void sgdone(struct cam_periph *periph, union ccb *done_ccb); 121 static int sgsendccb(struct cam_periph *periph, union ccb *ccb); 122 static int sgsendrdwr(struct cam_periph *periph, union ccb *ccb); 170 struct cam_periph *periph; in sgdevgonecb() 175 periph = (struct cam_periph *)arg; in sgdevgonecb() 209 sgoninvalidate(struct cam_periph *periph) in sgoninvalidate() 237 sgcleanup(struct cam_periph *periph) in sgcleanup() 251 struct cam_periph *periph; in sgasync() 253 periph = (struct cam_periph *)callback_arg; in sgasync() 293 sgregister(struct cam_periph *periph, void *arg) in sgregister() [all …]
|
| H A D | scsi_ch.c | 185 static void chdone(struct cam_periph *periph, 189 static int chmove(struct cam_periph *periph, 191 static int chexchange(struct cam_periph *periph, 193 static int chposition(struct cam_periph *periph, 195 static int chgetelemstatus(struct cam_periph *periph, 198 static int chsetvoltag(struct cam_periph *periph, 200 static int chielem(struct cam_periph *periph, 202 static int chgetparams(struct cam_periph *periph); 203 static int chscsiversion(struct cam_periph *periph); 245 struct cam_periph *periph; in chdevgonecb() [all …]
|
| H A D | scsi_sa.h | 974 void (*cbfcnp)(struct cam_periph *, union ccb *), 979 void (*cbfcnp)(struct cam_periph *, union ccb *), 986 void (*cbfcnp)(struct cam_periph *, union ccb *), 991 void (*cbfcnp)(struct cam_periph *, union ccb *), 996 void (*cbfcnp)(struct cam_periph *, union ccb *), 1002 void (*cbfcnp)(struct cam_periph *, union ccb *), 1008 void (*cbfcnp)(struct cam_periph *, 1015 void (*cbfcnp)(struct cam_periph *, union ccb *), 1025 void (*cbfcnp)(struct cam_periph *, union ccb *), 1030 void (*cbfcnp)(struct cam_periph *, union ccb *), [all …]
|
| H A D | scsi_pass.c | 144 struct cam_periph *periph; 170 static void passdone(struct cam_periph *periph, 172 static int passcreatezone(struct cam_periph *periph); 175 static int passcopysglist(struct cam_periph *periph, 178 static int passmemsetup(struct cam_periph *periph, 180 static int passmemdone(struct cam_periph *periph, 184 static int passsendccb(struct cam_periph *periph, union ccb *ccb, 236 passrejectios(struct cam_periph *periph) in passrejectios() 292 struct cam_periph *periph; in passdevgonecb() 297 periph = (struct cam_periph *)arg; in passdevgonecb() [all …]
|
| H A D | scsi_cd.c | 166 struct cam_periph *periph; 257 static void cddone(struct cam_periph *periph, 261 static void cdprevent(struct cam_periph *periph, int action); 262 static void cdmediaprobedone(struct cam_periph *periph); 263 static int cdcheckmedia(struct cam_periph *periph, bool do_wait); 267 static int cdreadtoc(struct cam_periph *periph, uint32_t mode, 270 static int cdgetmode(struct cam_periph *periph, 272 static int cdsetmode(struct cam_periph *periph, 274 static int cdplay(struct cam_periph *periph, uint32_t blk, 276 static int cdreadsubchannel(struct cam_periph *periph, [all …]
|
| H A D | scsi_da.c | 279 typedef void da_delete_func_t (struct cam_periph *periph, union ccb *ccb, 1513 static void daprobedone(struct cam_periph *periph, union ccb *ccb); 1519 static void dazonedone(struct cam_periph *periph, union ccb *ccb); 1520 static void dadone(struct cam_periph *periph, 1522 static void dadone_probewp(struct cam_periph *periph, 1524 static void dadone_proberc(struct cam_periph *periph, 1526 static void dadone_probelbp(struct cam_periph *periph, 1528 static void dadone_probeblklimits(struct cam_periph *periph, 1530 static void dadone_probebdc(struct cam_periph *periph, 1532 static void dadone_probecache(struct cam_periph *periph, [all …]
|
| H A D | scsi_sa.c | 382 struct cam_periph *periph; 598 static void sadone(struct cam_periph *periph, 602 static int samarkswanted(struct cam_periph *); 603 static int sacheckeod(struct cam_periph *periph); 604 static int sagetparams(struct cam_periph *periph, 615 static int sasetprot(struct cam_periph *periph, 617 static int sasetparams(struct cam_periph *periph, 622 static int sasetsili(struct cam_periph *periph, 624 static int saseteotwarn(struct cam_periph *periph, 633 static int sasetprotents(struct cam_periph *periph, [all …]
|
| H A D | scsi_ch.h | 472 void (*cbfcnp)(struct cam_periph *, union ccb *), 478 void (*cbfcnp)(struct cam_periph *, union ccb *), 484 void (*cbfcnp)(struct cam_periph *, union ccb *), 490 void (*cbfcnp)(struct cam_periph *, union ccb *), 498 void (*cbfcnp)(struct cam_periph *, union ccb *), 502 void (*cbfcnp)(struct cam_periph *, union ccb *),
|
| H A D | scsi_enc.c | 127 struct cam_periph *periph; in enc_devgonecb() 132 periph = (struct cam_periph *)arg; in enc_devgonecb() 163 enc_oninvalidate(struct cam_periph *periph) in enc_oninvalidate() 194 enc_dtor(struct cam_periph *periph) in enc_dtor() 212 struct cam_periph *periph; in enc_async() 214 periph = (struct cam_periph *)callback_arg; in enc_async() 277 struct cam_periph *periph; in enc_open() 281 periph = (struct cam_periph *)dev->si_drv1; in enc_open() 311 struct cam_periph *periph; in enc_close() 315 periph = (struct cam_periph *)dev->si_drv1; in enc_close() [all …]
|
| H A D | scsi_all.h | 3822 struct cam_periph; 3937 int scsi_vpd_supported_page(struct cam_periph *periph, 4100 void (*cbfcnp)(struct cam_periph *, 4106 void (*cbfcnp)(struct cam_periph *, 4113 void (*cbfcnp)(struct cam_periph *, union ccb *), 4119 void (*cbfcnp)(struct cam_periph *, union ccb *), 4125 void (*cbfcnp)(struct cam_periph *, union ccb *), 4132 void (*cbfcnp)(struct cam_periph *, union ccb *), 4139 void (*cbfcnp)(struct cam_periph *, 4147 void (*cbfcnp)(struct cam_periph *, [all …]
|
| H A D | scsi_targ_bh.c | 131 static cam_status targbhenlun(struct cam_periph *periph); 132 static cam_status targbhdislun(struct cam_periph *periph); 136 static void targbhdone(struct cam_periph *periph, 215 struct cam_periph *periph; in targbhasync() 229 targbhenlun(struct cam_periph *periph) in targbhenlun() 340 targbhdislun(struct cam_periph *periph) in targbhdislun() 391 targbhctor(struct cam_periph *periph, void *arg) in targbhctor() 418 targbhdtor(struct cam_periph *periph) in targbhdtor() 442 targbhstart(struct cam_periph *periph, union ccb *start_ccb) in targbhstart() 526 targbhdone(struct cam_periph *periph, union ccb *done_ccb) in targbhdone()
|
| H A D | scsi_da.h | 654 void (*cbfcnp)(struct cam_periph *, union ccb *), 660 void (*cbfcnp)(struct cam_periph *, union ccb *), 667 void (*cbfcnp)(struct cam_periph *, union ccb *), 675 void (*cbfcnp)(struct cam_periph *, union ccb *), 681 void (*cbfcnp)(struct cam_periph *, union ccb *), 688 void (*cbfcnp)(struct cam_periph *, union ccb *), 697 void (*cbfcnp)(struct cam_periph *, union ccb *),
|
| /freebsd/sys/cam/ata/ |
| H A D | ata_all.h | 35 struct cam_periph; 131 void (*cbfcnp)(struct cam_periph *, union ccb *), 161 uint32_t retries, void (*cbfcnp)(struct cam_periph *, union ccb*), 166 uint32_t retries, void (*cbfcnp)(struct cam_periph *, union ccb *), 171 uint32_t retries, void (*cbfcnp)(struct cam_periph *, union ccb*), 176 uint32_t retries, void (*cbfcnp)(struct cam_periph *, union ccb *), 181 void (*cbfcnp)(struct cam_periph *, union ccb *), 187 void (*cbfcnp)(struct cam_periph *, union ccb *),
|
| H A D | ata_pmp.c | 120 static void pmpdone(struct cam_periph *periph, 175 pmpfreeze(struct cam_periph *periph, int mask) in pmpfreeze() 197 pmprelease(struct cam_periph *periph, int mask) in pmprelease() 219 pmponinvalidate(struct cam_periph *periph) in pmponinvalidate() 241 pmpcleanup(struct cam_periph *periph) in pmpcleanup() 265 struct cam_periph *periph; in pmpasync() 268 periph = (struct cam_periph *)callback_arg; in pmpasync() 338 struct cam_periph *periph; in pmpsysctlinit() 342 periph = (struct cam_periph *)context; in pmpsysctlinit() 365 pmpregister(struct cam_periph *periph, void *arg) in pmpregister() [all …]
|
| /freebsd/sys/cam/mmc/ |
| H A D | mmc_da.c | 118 struct cam_periph *periph; 174 static void sddadone(struct cam_periph *periph, 180 static uint16_t get_rca(struct cam_periph *periph); 183 static void sdda_process_mmc_partitions(struct cam_periph *periph, union ccb *start_ccb); 184 static uint32_t sdda_get_host_caps(struct cam_periph *periph, union ccb *ccb); 185 static int mmc_select_card(struct cam_periph *periph, union ccb *ccb, uint32_t rca); 186 static inline uint32_t mmc_get_sector_size(struct cam_periph *periph) {return MMC_SECTOR_SIZE;} in mmc_get_sector_size() 196 static inline bool sdda_get_read_only(struct cam_periph *periph, union ccb *start_ccb) in sdda_get_read_only() 202 static uint32_t mmc_get_spec_vers(struct cam_periph *periph); 203 static uint64_t mmc_get_media_size(struct cam_periph *periph); [all …]
|
| H A D | mmc_xpt.c | 72 static void mmc_announce_periph_sbuf(struct cam_periph *periph, 74 static void mmc_scan_lun(struct cam_periph *periph, 78 static cam_status mmcprobe_register(struct cam_periph *periph, void *arg); 79 static void mmcprobe_start(struct cam_periph *periph, union ccb *start_ccb); 80 static void mmcprobe_cleanup(struct cam_periph *periph); 81 static void mmcprobe_done(struct cam_periph *periph, union ccb *done_ccb); 181 struct cam_periph *periph; 227 mmc_scan_lun(struct cam_periph *periph, struct cam_path *path, in mmc_scan_lun() 232 struct cam_periph *old_periph; in mmc_scan_lun() 377 mmc_announce_periph_sbuf(struct cam_periph *periph, struct sbuf *sb) in mmc_announce_periph_sbuf() [all …]
|
| /freebsd/sys/cam/nvme/ |
| H A D | nvme_da.c | 160 static void ndadone(struct cam_periph *periph, 291 ndasetgeom(struct nda_softc *softc, struct cam_periph *periph) in ndasetgeom() 324 ndaopen_rescan_done(struct cam_periph *periph, union ccb *ccb) in ndaopen_rescan_done() 341 struct cam_periph *periph; in ndaopen() 346 periph = (struct cam_periph *)dp->d_drv1; in ndaopen() 399 struct cam_periph *periph; in ndaclose() 404 periph = (struct cam_periph *)dp->d_drv1; in ndaclose() 439 ndaschedule(struct cam_periph *periph) in ndaschedule() 453 struct cam_periph *periph; in ndaioctl() 455 periph = (struct cam_periph *)dp->d_drv1; in ndaioctl() [all …]
|
| H A D | nvme_xpt.c | 118 struct cam_periph *periph; 135 static cam_status nvme_probe_register(struct cam_periph *periph, 137 static void nvme_probe_schedule(struct cam_periph *nvme_probe_periph); 138 static void nvme_probe_start(struct cam_periph *periph, union ccb *start_ccb); 139 static void nvme_probe_done(struct cam_periph *periph, union ccb *done_ccb); 140 static void nvme_probe_cleanup(struct cam_periph *periph); 142 static void nvme_scan_lun(struct cam_periph *periph, 155 static void nvme_announce_periph_sbuf(struct cam_periph *periph, 200 nvme_probe_register(struct cam_periph *periph, void *arg) in nvme_probe_register() 238 nvme_probe_schedule(struct cam_periph *periph) in nvme_probe_schedule() [all …]
|
| H A D | nvme_all.h | 49 const void *nvme_get_identify_cntrl(struct cam_periph *); 50 const void *nvme_get_identify_ns(struct cam_periph *);
|