Lines Matching refs:pg
208 struct pg { struct
223 static struct pg devices[PG_UNITS]; argument
225 static int pg_identify(struct pg *dev, int log);
250 struct pg *dev = &devices[unit]; in pg_init_units()
263 static inline int status_reg(struct pg *dev) in status_reg()
268 static inline int read_reg(struct pg *dev, int reg) in read_reg()
273 static inline void write_reg(struct pg *dev, int reg, int val) in write_reg()
278 static inline u8 DRIVE(struct pg *dev) in DRIVE()
288 static int pg_wait(struct pg *dev, int go, int stop, unsigned long tmo, char *msg) in pg_wait()
320 static int pg_command(struct pg *dev, char *cmd, int dlen, unsigned long tmo) in pg_command()
357 static int pg_completion(struct pg *dev, char *buf, unsigned long tmo) in pg_completion()
388 static int pg_reset(struct pg *dev) in pg_reset()
437 static int pg_identify(struct pg *dev, int log) in pg_identify()
465 static int pg_probe(struct pg *dev) in pg_probe()
480 struct pg *dev = &devices[0]; in pg_detect()
529 struct pg *dev = &devices[unit]; in pg_open()
567 struct pg *dev = file->private_data; in pg_release()
578 struct pg *dev = filp->private_data; in pg_write()
626 struct pg *dev = filp->private_data; in pg_read()
686 struct pg *dev = &devices[unit]; in pg_init()
699 struct pg *dev = &devices[unit]; in pg_init()
718 struct pg *dev = &devices[unit]; in pg_exit()
726 struct pg *dev = &devices[unit]; in pg_exit()