Lines Matching refs:ahc_softc

323 ahc_print_path(struct ahc_softc *ahc, struct scb *scb)  in ahc_print_path()
484 static void ahc_linux_handle_scsi_status(struct ahc_softc *,
487 static void ahc_linux_queue_cmd_complete(struct ahc_softc *ahc,
489 static void ahc_linux_filter_inquiry(struct ahc_softc*, struct ahc_devinfo*);
491 static void ahc_linux_freeze_simq(struct ahc_softc *ahc);
495 static void ahc_linux_initialize_scsi_bus(struct ahc_softc *ahc);
497 static void ahc_linux_thread_run_complete_queue(struct ahc_softc *ahc);
498 static void ahc_linux_start_dv(struct ahc_softc *ahc);
501 static void ahc_linux_kill_dv_thread(struct ahc_softc *ahc);
502 static void ahc_linux_dv_target(struct ahc_softc *ahc, u_int target);
503 static void ahc_linux_dv_transition(struct ahc_softc *ahc,
507 static void ahc_linux_dv_fill_cmd(struct ahc_softc *ahc,
510 static void ahc_linux_dv_inq(struct ahc_softc *ahc,
515 static void ahc_linux_dv_tur(struct ahc_softc *ahc,
518 static void ahc_linux_dv_rebd(struct ahc_softc *ahc,
522 static void ahc_linux_dv_web(struct ahc_softc *ahc,
526 static void ahc_linux_dv_reb(struct ahc_softc *ahc,
530 static void ahc_linux_dv_su(struct ahc_softc *ahc,
534 static int ahc_linux_fallback(struct ahc_softc *ahc,
538 static u_int ahc_linux_user_tagdepth(struct ahc_softc *ahc,
540 static u_int ahc_linux_user_dv_setting(struct ahc_softc *ahc);
541 static void ahc_linux_device_queue_depth(struct ahc_softc *ahc,
543 static struct ahc_linux_target* ahc_linux_alloc_target(struct ahc_softc*,
545 static void ahc_linux_free_target(struct ahc_softc*,
547 static struct ahc_linux_device* ahc_linux_alloc_device(struct ahc_softc*,
550 static void ahc_linux_free_device(struct ahc_softc*,
552 static void ahc_linux_run_device_queue(struct ahc_softc*,
560 static struct ahc_cmd *ahc_linux_run_complete_queue(struct ahc_softc *ahc);
563 static __inline void ahc_schedule_runq(struct ahc_softc *ahc);
565 ahc_linux_get_device(struct ahc_softc *ahc, u_int channel,
567 static __inline void ahc_schedule_completeq(struct ahc_softc *ahc);
568 static __inline void ahc_linux_check_device_queue(struct ahc_softc *ahc,
571 ahc_linux_next_device_to_run(struct ahc_softc *ahc);
572 static __inline void ahc_linux_run_device_queues(struct ahc_softc *ahc);
573 static __inline void ahc_linux_unmap_scb(struct ahc_softc*, struct scb*);
575 static __inline int ahc_linux_map_seg(struct ahc_softc *ahc, struct scb *scb,
580 ahc_schedule_completeq(struct ahc_softc *ahc) in ahc_schedule_completeq()
593 ahc_schedule_runq(struct ahc_softc *ahc) in ahc_schedule_runq()
606 ahc_linux_get_device(struct ahc_softc *ahc, u_int channel, u_int target, in ahc_linux_get_device()
633 ahc_linux_run_complete_queue(struct ahc_softc *ahc) in ahc_linux_run_complete_queue()
671 ahc_linux_check_device_queue(struct ahc_softc *ahc, in ahc_linux_check_device_queue()
688 ahc_linux_next_device_to_run(struct ahc_softc *ahc) in ahc_linux_next_device_to_run()
699 ahc_linux_run_device_queues(struct ahc_softc *ahc) in ahc_linux_run_device_queues()
711 ahc_linux_unmap_scb(struct ahc_softc *ahc, struct scb *scb) in ahc_linux_unmap_scb()
732 ahc_linux_map_seg(struct ahc_softc *ahc, struct scb *scb, in ahc_linux_map_seg()
845 struct ahc_softc *ahc; in ahc_linux_detect()
927 struct ahc_softc *ahc; in ahc_linux_release()
938 ahc = ahc_find_softc(*(struct ahc_softc **)host->hostdata); in ahc_linux_release()
962 struct ahc_softc *ahc; in ahc_linux_info()
965 ahc = *(struct ahc_softc **)host->hostdata; in ahc_linux_info()
987 struct ahc_softc *ahc; in ahc_linux_queue()
991 ahc = *(struct ahc_softc **)cmd->device->host->hostdata; in ahc_linux_queue()
1041 struct ahc_softc *ahc; in ahc_linux_slave_alloc()
1043 ahc = *((struct ahc_softc **)device->host->hostdata); in ahc_linux_slave_alloc()
1052 struct ahc_softc *ahc; in ahc_linux_slave_configure()
1056 ahc = *((struct ahc_softc **)device->host->hostdata); in ahc_linux_slave_configure()
1080 struct ahc_softc *ahc; in ahc_linux_slave_destroy()
1084 ahc = *((struct ahc_softc **)device->host->hostdata); in ahc_linux_slave_destroy()
1118 struct ahc_softc *ahc; in ahc_linux_select_queue_depth()
1121 ahc = *((struct ahc_softc **)host->hostdata); in ahc_linux_select_queue_depth()
1198 struct ahc_softc *ahc;
1201 ahc = *((struct ahc_softc **)sdev->host->hostdata);
1279 struct ahc_softc *ahc;
1283 ahc = *(struct ahc_softc **)cmd->device->host->hostdata;
1353 struct ahc_softc* ahc;
1359 ahc = (struct ahc_softc *)data;
1387 ahc_dma_tag_create(struct ahc_softc *ahc, bus_dma_tag_t parent,
1415 ahc_dma_tag_destroy(struct ahc_softc *ahc, bus_dma_tag_t dmat)
1421 ahc_dmamem_alloc(struct ahc_softc *ahc, bus_dma_tag_t dmat, void** vaddr,
1461 ahc_dmamem_free(struct ahc_softc *ahc, bus_dma_tag_t dmat,
1473 ahc_dmamap_load(struct ahc_softc *ahc, bus_dma_tag_t dmat, bus_dmamap_t map,
1495 ahc_dmamap_destroy(struct ahc_softc *ahc, bus_dma_tag_t dmat, bus_dmamap_t map)
1505 ahc_dmamap_unload(struct ahc_softc *ahc, bus_dma_tag_t dmat, bus_dmamap_t map)
1519 ahc_softc_comp(struct ahc_softc *lahc, struct ahc_softc *rahc)
1726 ahc_linux_register_host(struct ahc_softc *ahc, Scsi_Host_Template *template)
1735 host = scsi_register(template, sizeof(struct ahc_softc *));
1739 *((struct ahc_softc **)host->hostdata) = ahc;
1844 struct ahc_softc *ahc;
1864 ahc_linux_initialize_scsi_bus(struct ahc_softc *ahc)
1932 ahc_platform_alloc(struct ahc_softc *ahc, void *platform_arg)
1972 ahc_platform_free(struct ahc_softc *ahc)
2045 ahc_platform_freeze_devq(struct ahc_softc *ahc, struct scb *scb)
2054 ahc_platform_set_tags(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
2146 ahc_platform_abort_scbs(struct ahc_softc *ahc, int target, char channel,
2217 ahc_linux_thread_run_complete_queue(struct ahc_softc *ahc)
2229 ahc_linux_start_dv(struct ahc_softc *ahc)
2251 ahc_linux_kill_dv_thread(struct ahc_softc *ahc)
2295 struct ahc_softc *ahc;
2299 ahc = (struct ahc_softc *)data;
2392 ahc_set_dv_state(struct ahc_softc *ahc, struct ahc_linux_target *targ,
2412 ahc_linux_dv_target(struct ahc_softc *ahc, u_int target_offset)
2604 ahc_linux_dv_transition(struct ahc_softc *ahc, struct scsi_cmnd *cmd,
3079 ahc_linux_dv_fill_cmd(struct ahc_softc *ahc, struct scsi_cmnd *cmd,
3092 ahc_linux_dv_inq(struct ahc_softc *ahc, struct scsi_cmnd *cmd,
3127 ahc_linux_dv_tur(struct ahc_softc *ahc, struct scsi_cmnd *cmd,
3147 ahc_linux_dv_rebd(struct ahc_softc *ahc, struct scsi_cmnd *cmd,
3172 ahc_linux_dv_web(struct ahc_softc *ahc, struct scsi_cmnd *cmd,
3194 ahc_linux_dv_reb(struct ahc_softc *ahc, struct scsi_cmnd *cmd,
3216 ahc_linux_dv_su(struct ahc_softc *ahc, struct scsi_cmnd *cmd,
3238 ahc_linux_fallback(struct ahc_softc *ahc, struct ahc_devinfo *devinfo)
3422 struct ahc_softc *ahc;
3426 ahc = *((struct ahc_softc **)cmd->device->host->hostdata);
3478 struct ahc_softc *ahc;
3480 ahc = *((struct ahc_softc **)cmd->device->host->hostdata);
3553 ahc_linux_user_tagdepth(struct ahc_softc *ahc, struct ahc_devinfo *devinfo)
3584 ahc_linux_user_dv_setting(struct ahc_softc *ahc)
3629 ahc_linux_device_queue_depth(struct ahc_softc *ahc,
3655 ahc_linux_run_device_queue(struct ahc_softc *ahc, struct ahc_linux_device *dev)
3873 struct ahc_softc *ahc;
3877 ahc = (struct ahc_softc *) dev_id;
3888 ahc_platform_flushwork(struct ahc_softc *ahc)
3896 ahc_linux_alloc_target(struct ahc_softc *ahc, u_int channel, u_int target)
3918 ahc_linux_free_target(struct ahc_softc *ahc, struct ahc_linux_target *targ)
3959 ahc_linux_alloc_device(struct ahc_softc *ahc,
3993 ahc_linux_free_device(struct ahc_softc *ahc, struct ahc_linux_device *dev)
4008 ahc_send_async(struct ahc_softc *ahc, char channel,
4119 ahc_done(struct ahc_softc *ahc, struct scb *scb)
4254 ahc_linux_handle_scsi_status(struct ahc_softc *ahc,
4403 ahc_linux_queue_cmd_complete(struct ahc_softc *ahc, Scsi_Cmnd *cmd)
4518 ahc_linux_filter_inquiry(struct ahc_softc *ahc, struct ahc_devinfo *devinfo)
4629 struct ahc_softc *ahc;
4632 ahc = (struct ahc_softc *)arg;
4643 ahc_linux_freeze_simq(struct ahc_softc *ahc)
4659 struct ahc_softc *ahc;
4663 ahc = (struct ahc_softc *)arg;
4692 struct ahc_softc *ahc;
4713 struct ahc_softc *ahc;
4733 ahc = *(struct ahc_softc **)cmd->device->host->hostdata;
5042 ahc_platform_dump_card_state(struct ahc_softc *ahc)
5100 struct ahc_softc *ahc;