Lines Matching refs:ahd_softc
224 ahd_print_path(struct ahd_softc *ahd, struct scb *scb) in ahd_print_path()
352 static void ahd_linux_handle_scsi_status(struct ahd_softc *,
355 static void ahd_linux_queue_cmd_complete(struct ahd_softc *ahd,
358 static void ahd_linux_initialize_scsi_bus(struct ahd_softc *ahd);
359 static u_int ahd_linux_user_tagdepth(struct ahd_softc *ahd,
362 static int ahd_linux_run_command(struct ahd_softc*,
367 static void ahd_freeze_simq(struct ahd_softc *ahd);
368 static void ahd_release_simq(struct ahd_softc *ahd);
391 uint8_t ahd_inb(struct ahd_softc * ahd, long port);
392 void ahd_outb(struct ahd_softc * ahd, long port, uint8_t val);
393 void ahd_outw_atomic(struct ahd_softc * ahd,
395 void ahd_outsb(struct ahd_softc * ahd, long port,
397 void ahd_insb(struct ahd_softc * ahd, long port,
401 ahd_inb(struct ahd_softc * ahd, long port) in ahd_inb()
416 ahd_inw_atomic(struct ahd_softc * ahd, long port)
431 ahd_outb(struct ahd_softc * ahd, long port, uint8_t val) in ahd_outb()
442 ahd_outw_atomic(struct ahd_softc * ahd, long port, uint16_t val) in ahd_outw_atomic()
453 ahd_outsb(struct ahd_softc * ahd, long port, uint8_t *array, int count) in ahd_outsb()
467 ahd_insb(struct ahd_softc * ahd, long port, uint8_t *array, int count) in ahd_insb()
531 static void ahd_linux_unmap_scb(struct ahd_softc*, struct scb*);
534 ahd_linux_unmap_scb(struct ahd_softc *ahd, struct scb *scb) in ahd_linux_unmap_scb()
556 struct ahd_softc *ahd; in ahd_linux_info()
559 ahd = *(struct ahd_softc **)host->hostdata; in ahd_linux_info()
578 struct ahd_softc *ahd; in ahd_linux_queue_lck()
582 ahd = *(struct ahd_softc **)cmd->device->host->hostdata; in ahd_linux_queue_lck()
596 struct ahd_softc *ahd = in DEF_SCSI_QCMD()
597 *((struct ahd_softc **)dev_to_shost(&starget->dev)->hostdata); in DEF_SCSI_QCMD()
610 struct ahd_softc *ahd = in ahd_linux_target_alloc()
611 *((struct ahd_softc **)dev_to_shost(&starget->dev)->hostdata); in ahd_linux_target_alloc()
674 struct ahd_softc *ahd = in ahd_linux_slave_alloc()
675 *((struct ahd_softc **)sdev->host->hostdata); in ahd_linux_slave_alloc()
703 struct ahd_softc *ahd; in ahd_linux_slave_configure()
705 ahd = *((struct ahd_softc **)sdev->host->hostdata); in ahd_linux_slave_configure()
732 struct ahd_softc *ahd; in ahd_linux_biosparam()
734 ahd = *((struct ahd_softc **)sdev->host->hostdata); in ahd_linux_biosparam()
783 struct ahd_softc *ahd; in ahd_linux_dev_reset()
798 ahd = *(struct ahd_softc **)cmd->device->host->hostdata; in ahd_linux_dev_reset()
882 struct ahd_softc *ahd; in ahd_linux_bus_reset()
886 ahd = *(struct ahd_softc **)cmd->device->host->hostdata; in ahd_linux_bus_reset()
932 ahd_dma_tag_create(struct ahd_softc *ahd, bus_dma_tag_t parent, in ahd_dma_tag_create()
960 ahd_dma_tag_destroy(struct ahd_softc *ahd, bus_dma_tag_t dmat) in ahd_dma_tag_destroy()
966 ahd_dmamem_alloc(struct ahd_softc *ahd, bus_dma_tag_t dmat, void** vaddr, in ahd_dmamem_alloc()
977 ahd_dmamem_free(struct ahd_softc *ahd, bus_dma_tag_t dmat, in ahd_dmamem_free()
985 ahd_dmamap_load(struct ahd_softc *ahd, bus_dma_tag_t dmat, bus_dmamap_t map, in ahd_dmamap_load()
1002 ahd_dmamap_destroy(struct ahd_softc *ahd, bus_dma_tag_t dmat, bus_dmamap_t map) in ahd_dmamap_destroy()
1007 ahd_dmamap_unload(struct ahd_softc *ahd, bus_dma_tag_t dmat, bus_dmamap_t map) in ahd_dmamap_unload()
1224 ahd_linux_register_host(struct ahd_softc *ahd, struct scsi_host_template *template) in ahd_linux_register_host()
1233 host = scsi_host_alloc(template, sizeof(struct ahd_softc *)); in ahd_linux_register_host()
1237 *((struct ahd_softc **)host->hostdata) = ahd; in ahd_linux_register_host()
1280 ahd_linux_initialize_scsi_bus(struct ahd_softc *ahd) in ahd_linux_initialize_scsi_bus()
1325 ahd_platform_alloc(struct ahd_softc *ahd, void *platform_arg) in ahd_platform_alloc()
1338 ahd_platform_free(struct ahd_softc *ahd) in ahd_platform_free()
1374 ahd_platform_init(struct ahd_softc *ahd) in ahd_platform_init()
1394 ahd_platform_freeze_devq(struct ahd_softc *ahd, struct scb *scb) in ahd_platform_freeze_devq()
1403 ahd_platform_set_tags(struct ahd_softc *ahd, struct scsi_device *sdev, in ahd_platform_set_tags()
1487 ahd_platform_abort_scbs(struct ahd_softc *ahd, int target, char channel, in ahd_platform_abort_scbs()
1494 ahd_linux_user_tagdepth(struct ahd_softc *ahd, struct ahd_devinfo *devinfo) in ahd_linux_user_tagdepth()
1532 struct ahd_softc *ahd = *((struct ahd_softc **)sdev->host->hostdata); in ahd_linux_device_queue_depth()
1555 ahd_linux_run_command(struct ahd_softc *ahd, struct ahd_linux_device *dev, in ahd_linux_run_command()
1675 struct ahd_softc *ahd; in ahd_linux_isr()
1679 ahd = (struct ahd_softc *) dev_id; in ahd_linux_isr()
1687 ahd_send_async(struct ahd_softc *ahd, char channel, in ahd_send_async()
1775 ahd_done(struct ahd_softc *ahd, struct scb *scb) in ahd_done()
1882 ahd_linux_handle_scsi_status(struct ahd_softc *ahd, in ahd_linux_handle_scsi_status()
2028 ahd_linux_queue_cmd_complete(struct ahd_softc *ahd, struct scsi_cmnd *cmd) in ahd_linux_queue_cmd_complete()
2136 ahd_freeze_simq(struct ahd_softc *ahd) in ahd_freeze_simq()
2142 ahd_release_simq(struct ahd_softc *ahd) in ahd_release_simq()
2150 struct ahd_softc *ahd; in ahd_linux_queue_abort_cmd()
2169 ahd = *(struct ahd_softc **)cmd->device->host->hostdata; in ahd_linux_queue_abort_cmd()
2390 struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); in ahd_linux_set_width()
2404 struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); in ahd_linux_set_period()
2457 struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); in ahd_linux_set_offset()
2492 struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); in ahd_linux_set_dt()
2534 struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); in ahd_linux_set_qas()
2573 struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); in ahd_linux_set_iu()
2613 struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); in ahd_linux_set_rd_strm()
2649 struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); in ahd_linux_set_wr_flow()
2685 struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); in ahd_linux_set_rti()
2729 struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); in ahd_linux_set_pcomp_en()
2779 struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); in ahd_linux_set_hold_mcs()
2808 struct ahd_softc *ahd = *(struct ahd_softc **)shost->hostdata; in ahd_linux_get_signalling()