Lines Matching refs:fdctlr
113 #define SEC_SIZE_CODE (fdctlr.c_csb->csb_unit]->un_chars->medium ? 3 : 2)
156 static void quiesce_fd_interrupt(struct fdctlr *);
182 static int fd_attach_check_drive(struct fdctlr *fdc);
183 static int fd_attach_det_ctlr(dev_info_t *dip, struct fdctlr *fdc);
184 static int fd_attach_map_regs(dev_info_t *dip, struct fdctlr *fdc);
185 static int fd_attach_register_interrupts(dev_info_t *dip, struct fdctlr *fdc,
189 static int fdcheckdisk(struct fdctlr *fdc, int unit);
191 static void fd_cleanup(dev_info_t *dip, struct fdctlr *fdc, int hard,
193 static void fdeject(struct fdctlr *, int unit);
194 static int fdexec(struct fdctlr *fdc, int flags);
195 static void fdexec_turn_on_motor(struct fdctlr *fdc, int flags, uint_t unit);
196 static int fdformat(struct fdctlr *fdc, int unit, int cyl, int hd);
198 static struct fdctlr *fd_getctlr(dev_t);
199 static void fdgetcsb(struct fdctlr *);
200 static int fdgetlabel(struct fdctlr *fdc, int unit);
201 enum dkio_state fd_get_media_state(struct fdctlr *, int);
208 static int fdrawioctl(struct fdctlr *, int, intptr_t, int);
209 static int fdrecalseek(struct fdctlr *fdc, int unit, int arg, int execflg);
210 static int fdrecover(struct fdctlr *);
211 static void fdretcsb(struct fdctlr *);
212 static int fdreset(struct fdctlr *);
213 static int fdrw(struct fdctlr *fdc, int, int, int, int, int, caddr_t, uint_t);
214 static void fdselect(struct fdctlr *fdc, int unit, int onoff);
215 static int fdsensedrv(struct fdctlr *fdc, int unit);
216 static int fdsense_chng(struct fdctlr *, int unit);
217 static void fdstart(struct fdctlr *);
218 static int fdstart_dma(register struct fdctlr *fdc, caddr_t addr, uint_t len);
221 static int fd_unbind_handle(struct fdctlr *);
223 static void set_rotational_speed(struct fdctlr *, int);
225 static int fd_pm_lower_power(struct fdctlr *fdc);
226 static int fd_pm_raise_power(struct fdctlr *fdc);
228 static void set_data_count_register(struct fdctlr *fdc, uint32_t count);
229 static uint32_t get_data_count_register(struct fdctlr *fdc);
230 static void reset_dma_controller(struct fdctlr *fdc);
231 static void set_data_address_register(struct fdctlr *fdc, uint32_t address);
232 static uint32_t get_dma_control_register(struct fdctlr *fdc);
233 static void set_dma_mode(struct fdctlr *fdc, int val);
234 static void set_dma_control_register(struct fdctlr *fdc, uint32_t val);
235 static void release_sb_dma(struct fdctlr *fdc);
269 struct fdctlr *fdctlrs; /* linked list of controllers */
597 struct fdctlr *fdc; in fd_attach()
807 fd_attach_map_regs(dev_info_t *dip, struct fdctlr *fdc) in fd_attach_map_regs()
874 fd_attach_det_ctlr(dev_info_t *dip, struct fdctlr *fdc) in fd_attach_det_ctlr()
985 fd_attach_register_interrupts(dev_info_t *dip, struct fdctlr *fdc, int *hard) in fd_attach_register_interrupts()
1121 fd_attach_check_drive(struct fdctlr *fdc) in fd_attach_check_drive()
1234 fd_cleanup(dev_info_t *dip, struct fdctlr *fdc, int hard, int locks) in fd_cleanup()
1348 struct fdctlr *fdc = fd_getctlr(instance << FDINSTSHIFT); in fd_detach()
1405 register struct fdctlr *fdc; in fd_info()
1439 struct fdctlr *fdc; in fd_prop_op()
1476 struct fdctlr *fdc; in fd_open()
1651 register struct fdctlr *fdc; in fd_close()
1696 struct fdctlr *fdc; in fd_strategy()
1846 struct fdctlr *fdc = arg; in fdmotoff()
1885 struct fdctlr *fdc; in fd_ioctl()
2563 fdrawioctl(struct fdctlr *fdc, int unit, intptr_t arg, int mode) in fdrawioctl()
2947 fdformat(struct fdctlr *fdc, int unit, int cyl, int hd) in fdformat()
3082 fdstart(struct fdctlr *fdc) in fdstart()
3426 fdstart_dma(struct fdctlr *fdc, caddr_t addr, uint_t len) in fdstart_dma()
3539 fd_unbind_handle(struct fdctlr *fdc) in fd_unbind_handle()
3599 fdexec(struct fdctlr *fdc, int flags) in fdexec()
3947 fdexec_turn_on_motor(struct fdctlr *fdc, int flags, uint_t unit) in fdexec_turn_on_motor()
4000 fdrecover(struct fdctlr *fdc) in fdrecover()
4157 struct fdctlr *fdc; in fdintr_dma()
4601 struct fdctlr *fdc = (struct fdctlr *)arg; in fd_lointr()
4663 struct fdctlr *fdc = arg; in fdwatch()
4716 fdgetcsb(struct fdctlr *fdc) in fdgetcsb()
4732 fdretcsb(struct fdctlr *fdc) in fdretcsb()
4765 fdreset(struct fdctlr *fdc) in fdreset()
4924 fdrecalseek(struct fdctlr *fdc, int unit, int arg, int execflg) in fdrecalseek()
4984 fdsensedrv(struct fdctlr *fdc, int unit) in fdsensedrv()
5020 fdcheckdisk(struct fdctlr *fdc, int unit) in fdcheckdisk()
5089 fdselect(struct fdctlr *fdc, int unit, int on) in fdselect()
5125 fdeject(struct fdctlr *fdc, int unit) in fdeject()
5178 fdsense_chng(struct fdctlr *fdc, int unit) in fdsense_chng()
5236 fdgetlabel(struct fdctlr *fdc, int unit) in fdgetlabel()
5440 fdrw(struct fdctlr *fdc, int unit, int rw, int cyl, int head, in fdrw()
5631 static struct fdctlr *
5635 struct fdctlr *fdc = fdctlrs; in fd_getctlr()
5931 set_rotational_speed(struct fdctlr *fdc, int unit) in set_rotational_speed()
6005 struct fdctlr *fdc; in fd_media_watch()
6037 fd_get_media_state(struct fdctlr *fdc, int unit) in fd_get_media_state()
6060 struct fdctlr *fdc; in fd_check_media()
6155 struct fdctlr *fdc; in fd_power()
6187 fd_pm_lower_power(struct fdctlr *fdc) in fd_pm_lower_power()
6223 fd_pm_raise_power(struct fdctlr *fdc) in fd_pm_raise_power()
6293 set_data_count_register(struct fdctlr *fdc, uint32_t count) in set_data_count_register()
6339 get_data_count_register(struct fdctlr *fdc) in get_data_count_register()
6385 reset_dma_controller(struct fdctlr *fdc) in reset_dma_controller()
6409 get_dma_control_register(struct fdctlr *fdc) in get_dma_control_register()
6427 set_data_address_register(struct fdctlr *fdc, uint32_t address) in set_data_address_register()
6497 set_dma_mode(struct fdctlr *fdc, int val) in set_dma_mode()
6537 set_dma_control_register(struct fdctlr *fdc, uint32_t val) in set_dma_control_register()
6547 release_sb_dma(struct fdctlr *fdc) in release_sb_dma()
6558 quiesce_fd_interrupt(struct fdctlr *fdc) in quiesce_fd_interrupt()