Lines Matching refs:sd_softc
111 static int sd_mode_sense(struct sd_softc *, u_int8_t, void *, size_t, int,
113 static int sd_mode_select(struct sd_softc *, u_int8_t, void *, size_t,
116 static u_int64_t sd_read_capacity(struct sd_softc *, int *, int flags);
117 static int sd_get_simplifiedparms(struct sd_softc *, struct disk_parms *,
119 static int sd_get_capacity(struct sd_softc *, struct disk_parms *, int);
120 static int sd_get_parms(struct sd_softc *, struct disk_parms *, int);
121 static int sd_get_parms_page4(struct sd_softc *, struct disk_parms *,
123 static int sd_get_parms_page5(struct sd_softc *, struct disk_parms *,
126 static int sd_flush(struct sd_softc *, int);
127 static int sd_getcache(struct sd_softc *, int *);
128 static int sd_setcache(struct sd_softc *, int);
133 static void sd_set_geometry(struct sd_softc *);
135 CFATTACH_DECL3_NEW(sd, sizeof(struct sd_softc), sdmatch, sdattach, sddetach,
254 struct sd_softc *sd = device_private(self);
389 struct sd_softc *sd = device_private(self);
444 struct sd_softc *sd = device_private(self);
532 struct sd_softc *sd;
577 struct sd_softc *sd = device_private(self);
618 struct sd_softc *sd;
637 struct sd_softc *sd = device_lookup_private(&sd_cd, SDUNIT(bp->b_dev));
671 struct sd_softc *sd = device_private(dev);
823 struct sd_softc *sd = v;
838 struct sd_softc *sd = device_private(periph->periph_dev);
860 struct sd_softc *sd = device_private(xs->xs_periph->periph_dev);
885 struct sd_softc *sd = device_lookup_private(&sd_cd, SDUNIT(bp->b_dev));
948 struct sd_softc *sd = device_lookup_private(&sd_cd, SDUNIT(dev));
1039 struct sd_softc *sd = device_private(self);
1048 sd_unmap(struct sd_softc *sd, off_t pos, off_t len)
1085 struct sd_softc *sd = device_private(self);
1095 struct sd_softc *sd = device_private(self);
1129 struct sd_softc *sd = device_private(periph->periph_dev);
1211 struct sd_softc *sd;
1237 struct sd_softc *sd;
1262 struct sd_softc *sd = device_private(dev);
1340 sd_mode_sense(struct sd_softc *sd, u_int8_t byte2, void *sense, size_t size,
1359 sd_mode_select(struct sd_softc *sd, u_int8_t byte2, void *sense, size_t size,
1410 sd_read_capacity(struct sd_softc *sd, int *blksize, int flags)
1492 sd_get_simplifiedparms(struct sd_softc *sd, struct disk_parms *dp, int flags)
1555 sd_get_capacity(struct sd_softc *sd, struct disk_parms *dp, int flags)
1671 sd_get_parms_page4(struct sd_softc *sd, struct disk_parms *dp, int flags)
1756 sd_get_parms_page5(struct sd_softc *sd, struct disk_parms *dp, int flags)
1834 sd_get_parms(struct sd_softc *sd, struct disk_parms *dp, int flags)
1891 sd_flush(struct sd_softc *sd, int flags)
1923 sd_getcache(struct sd_softc *sd, int *bitsp)
1987 sd_setcache(struct sd_softc *sd, int bits)
2036 sd_set_geometry(struct sd_softc *sd)
2057 struct sd_softc *sd;