Lines Matching refs:fdctlr
115 #define SEC_SIZE_CODE (fdctlr.c_csb->csb_unit]->un_chars->medium ? 3 : 2)
158 static void quiesce_fd_interrupt(struct fdctlr *);
184 static int fd_attach_check_drive(struct fdctlr *fdc);
185 static int fd_attach_det_ctlr(dev_info_t *dip, struct fdctlr *fdc);
186 static int fd_attach_map_regs(dev_info_t *dip, struct fdctlr *fdc);
187 static int fd_attach_register_interrupts(dev_info_t *dip, struct fdctlr *fdc,
191 static int fdcheckdisk(struct fdctlr *fdc, int unit);
193 static void fd_cleanup(dev_info_t *dip, struct fdctlr *fdc, int hard,
195 static void fdeject(struct fdctlr *, int unit);
196 static int fdexec(struct fdctlr *fdc, int flags);
197 static void fdexec_turn_on_motor(struct fdctlr *fdc, int flags, uint_t unit);
198 static int fdformat(struct fdctlr *fdc, int unit, int cyl, int hd);
200 static struct fdctlr *fd_getctlr(dev_t);
201 static void fdgetcsb(struct fdctlr *);
202 static int fdgetlabel(struct fdctlr *fdc, int unit);
203 enum dkio_state fd_get_media_state(struct fdctlr *, int);
210 static int fdrawioctl(struct fdctlr *, int, intptr_t, int);
211 static int fdrecalseek(struct fdctlr *fdc, int unit, int arg, int execflg);
212 static int fdrecover(struct fdctlr *);
213 static void fdretcsb(struct fdctlr *);
214 static int fdreset(struct fdctlr *);
215 static int fdrw(struct fdctlr *fdc, int, int, int, int, int, caddr_t, uint_t);
216 static void fdselect(struct fdctlr *fdc, int unit, int onoff);
217 static int fdsensedrv(struct fdctlr *fdc, int unit);
218 static int fdsense_chng(struct fdctlr *, int unit);
219 static void fdstart(struct fdctlr *);
220 static int fdstart_dma(register struct fdctlr *fdc, caddr_t addr, uint_t len);
223 static int fd_unbind_handle(struct fdctlr *);
225 static void set_rotational_speed(struct fdctlr *, int);
227 static int fd_pm_lower_power(struct fdctlr *fdc);
228 static int fd_pm_raise_power(struct fdctlr *fdc);
230 static void set_data_count_register(struct fdctlr *fdc, uint32_t count);
231 static uint32_t get_data_count_register(struct fdctlr *fdc);
232 static void reset_dma_controller(struct fdctlr *fdc);
233 static void set_data_address_register(struct fdctlr *fdc, uint32_t address);
234 static uint32_t get_dma_control_register(struct fdctlr *fdc);
235 static void set_dma_mode(struct fdctlr *fdc, int val);
236 static void set_dma_control_register(struct fdctlr *fdc, uint32_t val);
237 static void release_sb_dma(struct fdctlr *fdc);
271 struct fdctlr *fdctlrs; /* linked list of controllers */
599 struct fdctlr *fdc; in fd_attach()
809 fd_attach_map_regs(dev_info_t *dip, struct fdctlr *fdc) in fd_attach_map_regs()
876 fd_attach_det_ctlr(dev_info_t *dip, struct fdctlr *fdc) in fd_attach_det_ctlr()
987 fd_attach_register_interrupts(dev_info_t *dip, struct fdctlr *fdc, int *hard) in fd_attach_register_interrupts()
1123 fd_attach_check_drive(struct fdctlr *fdc) in fd_attach_check_drive()
1236 fd_cleanup(dev_info_t *dip, struct fdctlr *fdc, int hard, int locks) in fd_cleanup()
1351 struct fdctlr *fdc = fd_getctlr(instance << FDINSTSHIFT); in fd_detach()
1408 register struct fdctlr *fdc; in fd_info()
1442 struct fdctlr *fdc; in fd_prop_op()
1479 struct fdctlr *fdc; in fd_open()
1654 register struct fdctlr *fdc; in fd_close()
1699 struct fdctlr *fdc; in fd_strategy()
1849 struct fdctlr *fdc = arg; in fdmotoff()
1888 struct fdctlr *fdc; in fd_ioctl()
2566 fdrawioctl(struct fdctlr *fdc, int unit, intptr_t arg, int mode) in fdrawioctl()
2950 fdformat(struct fdctlr *fdc, int unit, int cyl, int hd) in fdformat()
3085 fdstart(struct fdctlr *fdc) in fdstart()
3429 fdstart_dma(struct fdctlr *fdc, caddr_t addr, uint_t len) in fdstart_dma()
3542 fd_unbind_handle(struct fdctlr *fdc) in fd_unbind_handle()
3602 fdexec(struct fdctlr *fdc, int flags) in fdexec()
3950 fdexec_turn_on_motor(struct fdctlr *fdc, int flags, uint_t unit) in fdexec_turn_on_motor()
4003 fdrecover(struct fdctlr *fdc) in fdrecover()
4160 struct fdctlr *fdc; in fdintr_dma()
4604 struct fdctlr *fdc = (struct fdctlr *)arg; in fd_lointr()
4666 struct fdctlr *fdc = arg; in fdwatch()
4719 fdgetcsb(struct fdctlr *fdc) in fdgetcsb()
4735 fdretcsb(struct fdctlr *fdc) in fdretcsb()
4768 fdreset(struct fdctlr *fdc) in fdreset()
4927 fdrecalseek(struct fdctlr *fdc, int unit, int arg, int execflg) in fdrecalseek()
4987 fdsensedrv(struct fdctlr *fdc, int unit) in fdsensedrv()
5023 fdcheckdisk(struct fdctlr *fdc, int unit) in fdcheckdisk()
5092 fdselect(struct fdctlr *fdc, int unit, int on) in fdselect()
5128 fdeject(struct fdctlr *fdc, int unit) in fdeject()
5181 fdsense_chng(struct fdctlr *fdc, int unit) in fdsense_chng()
5239 fdgetlabel(struct fdctlr *fdc, int unit) in fdgetlabel()
5443 fdrw(struct fdctlr *fdc, int unit, int rw, int cyl, int head, in fdrw()
5634 static struct fdctlr *
5638 struct fdctlr *fdc = fdctlrs; in fd_getctlr()
5934 set_rotational_speed(struct fdctlr *fdc, int unit) in set_rotational_speed()
6008 struct fdctlr *fdc; in fd_media_watch()
6040 fd_get_media_state(struct fdctlr *fdc, int unit) in fd_get_media_state()
6063 struct fdctlr *fdc; in fd_check_media()
6158 struct fdctlr *fdc; in fd_power()
6190 fd_pm_lower_power(struct fdctlr *fdc) in fd_pm_lower_power()
6226 fd_pm_raise_power(struct fdctlr *fdc) in fd_pm_raise_power()
6296 set_data_count_register(struct fdctlr *fdc, uint32_t count) in set_data_count_register()
6342 get_data_count_register(struct fdctlr *fdc) in get_data_count_register()
6388 reset_dma_controller(struct fdctlr *fdc) in reset_dma_controller()
6412 get_dma_control_register(struct fdctlr *fdc) in get_dma_control_register()
6430 set_data_address_register(struct fdctlr *fdc, uint32_t address) in set_data_address_register()
6500 set_dma_mode(struct fdctlr *fdc, int val) in set_dma_mode()
6540 set_dma_control_register(struct fdctlr *fdc, uint32_t val) in set_dma_control_register()
6550 release_sb_dma(struct fdctlr *fdc) in release_sb_dma()
6561 quiesce_fd_interrupt(struct fdctlr *fdc) in quiesce_fd_interrupt()