Home
last modified time | relevance | path

Searched refs:ahd (Results 1 – 11 of 11) sorted by relevance

/linux/drivers/scsi/aic7xxx/
H A Daic79xx_core.c98 static void ahd_handle_transmission_error(struct ahd_softc *ahd);
99 static void ahd_handle_lqiphase_error(struct ahd_softc *ahd,
101 static int ahd_handle_pkt_busfree(struct ahd_softc *ahd,
103 static int ahd_handle_nonpkt_busfree(struct ahd_softc *ahd);
104 static void ahd_handle_proto_violation(struct ahd_softc *ahd);
105 static void ahd_force_renegotiation(struct ahd_softc *ahd,
109 ahd_alloc_tstate(struct ahd_softc *ahd,
112 static void ahd_free_tstate(struct ahd_softc *ahd,
115 static void ahd_devlimited_syncrate(struct ahd_softc *ahd,
120 static void ahd_update_neg_table(struct ahd_softc *ahd,
275 ahd_set_modes(struct ahd_softc * ahd,ahd_mode src,ahd_mode dst) ahd_set_modes() argument
293 ahd_update_modes(struct ahd_softc * ahd) ahd_update_modes() argument
309 ahd_assert_modes(struct ahd_softc * ahd,ahd_mode srcmode,ahd_mode dstmode,const char * file,int line) ahd_assert_modes() argument
321 AHD_ASSERT_MODES(ahd,source,dest) global() argument
325 ahd_save_modes(struct ahd_softc * ahd) ahd_save_modes() argument
335 ahd_restore_modes(struct ahd_softc * ahd,ahd_mode_state state) ahd_restore_modes() argument
349 ahd_is_paused(struct ahd_softc * ahd) ahd_is_paused() argument
362 ahd_pause(struct ahd_softc * ahd) ahd_pause() argument
385 ahd_unpause(struct ahd_softc * ahd) ahd_unpause() argument
406 ahd_sg_setup(struct ahd_softc * ahd,struct scb * scb,void * sgptr,dma_addr_t addr,bus_size_t len,int last) ahd_sg_setup() argument
430 ahd_setup_scb_common(struct ahd_softc * ahd,struct scb * scb) ahd_setup_scb_common() argument
451 ahd_setup_data_scb(struct ahd_softc * ahd,struct scb * scb) ahd_setup_data_scb() argument
488 ahd_setup_noxfer_scb(struct ahd_softc * ahd,struct scb * scb) ahd_setup_noxfer_scb() argument
497 ahd_sg_bus_to_virt(struct ahd_softc * ahd,struct scb * scb,uint32_t sg_busaddr) ahd_sg_bus_to_virt() argument
507 ahd_sg_virt_to_bus(struct ahd_softc * ahd,struct scb * scb,void * sg) ahd_sg_virt_to_bus() argument
519 ahd_sync_scb(struct ahd_softc * ahd,struct scb * scb,int op) ahd_sync_scb() argument
528 ahd_sync_sglist(struct ahd_softc * ahd,struct scb * scb,int op) ahd_sync_sglist() argument
540 ahd_sync_sense(struct ahd_softc * ahd,struct scb * scb,int op) ahd_sync_sense() argument
550 ahd_targetcmd_offset(struct ahd_softc * ahd,u_int index) ahd_targetcmd_offset() argument
563 ahd_fetch_transinfo(struct ahd_softc * ahd,char channel,u_int our_id,u_int remote_id,struct ahd_tmode_tstate ** tstate) ahd_fetch_transinfo() argument
579 ahd_inw(struct ahd_softc * ahd,u_int port) ahd_inw() argument
591 ahd_outw(struct ahd_softc * ahd,u_int port,u_int value) ahd_outw() argument
602 ahd_inl(struct ahd_softc * ahd,u_int port) ahd_inl() argument
611 ahd_outl(struct ahd_softc * ahd,u_int port,uint32_t value) ahd_outl() argument
620 ahd_inq(struct ahd_softc * ahd,u_int port) ahd_inq() argument
633 ahd_outq(struct ahd_softc * ahd,u_int port,uint64_t value) ahd_outq() argument
646 ahd_get_scbptr(struct ahd_softc * ahd) ahd_get_scbptr() argument
654 ahd_set_scbptr(struct ahd_softc * ahd,u_int scbptr) ahd_set_scbptr() argument
671 ahd_set_hnscb_qoff(struct ahd_softc * ahd,u_int value) ahd_set_hnscb_qoff() argument
685 ahd_set_hescb_qoff(struct ahd_softc * ahd,u_int value) ahd_set_hescb_qoff() argument
691 ahd_get_snscb_qoff(struct ahd_softc * ahd) ahd_get_snscb_qoff() argument
702 ahd_set_snscb_qoff(struct ahd_softc * ahd,u_int value) ahd_set_snscb_qoff() argument
718 ahd_set_sescb_qoff(struct ahd_softc * ahd,u_int value) ahd_set_sescb_qoff() argument
734 ahd_set_sdscb_qoff(struct ahd_softc * ahd,u_int value) ahd_set_sdscb_qoff() argument
742 ahd_inb_scbram(struct ahd_softc * ahd,u_int offset) ahd_inb_scbram() argument
767 ahd_inw_scbram(struct ahd_softc * ahd,u_int offset) ahd_inw_scbram() argument
774 ahd_inl_scbram(struct ahd_softc * ahd,u_int offset) ahd_inl_scbram() argument
781 ahd_inq_scbram(struct ahd_softc * ahd,u_int offset) ahd_inq_scbram() argument
788 ahd_lookup_scb(struct ahd_softc * ahd,u_int tag) ahd_lookup_scb() argument
802 ahd_swap_with_next_hscb(struct ahd_softc * ahd,struct scb * scb) ahd_swap_with_next_hscb() argument
841 ahd_queue_scb(struct ahd_softc * ahd,struct scb * scb) ahd_queue_scb() argument
887 ahd_sync_qoutfifo(struct ahd_softc * ahd,int op) ahd_sync_qoutfifo() argument
895 ahd_sync_tqinfifo(struct ahd_softc * ahd,int op) ahd_sync_tqinfifo() argument
915 ahd_check_cmdcmpltqueues(struct ahd_softc * ahd) ahd_check_cmdcmpltqueues() argument
945 ahd_intr(struct ahd_softc * ahd) ahd_intr() argument
1030 ahd_assert_atn(struct ahd_softc * ahd) ahd_assert_atn() argument
1042 ahd_currently_packetized(struct ahd_softc * ahd) ahd_currently_packetized() argument
1065 ahd_set_active_fifo(struct ahd_softc * ahd) ahd_set_active_fifo() argument
1082 ahd_unbusy_tcl(struct ahd_softc * ahd,u_int tcl) ahd_unbusy_tcl() argument
1092 ahd_update_residual(struct ahd_softc * ahd,struct scb * scb) ahd_update_residual() argument
1102 ahd_complete_scb(struct ahd_softc * ahd,struct scb * scb) ahd_complete_scb() argument
1119 ahd_restart(struct ahd_softc * ahd) ahd_restart() argument
1163 ahd_clear_fifo(struct ahd_softc * ahd,u_int fifo) ahd_clear_fifo() argument
1187 ahd_flush_qoutfifo(struct ahd_softc * ahd) ahd_flush_qoutfifo() argument
1395 ahd_scb_active_in_fifo(struct ahd_softc * ahd,struct scb * scb) ahd_scb_active_in_fifo() argument
1424 ahd_run_data_fifo(struct ahd_softc * ahd,struct scb * scb) ahd_run_data_fifo() argument
1658 ahd_run_qoutfifo(struct ahd_softc * ahd) ahd_run_qoutfifo() argument
1697 ahd_handle_hwerrint(struct ahd_softc * ahd) ahd_handle_hwerrint() argument
1769 ahd_handle_seqint(struct ahd_softc * ahd,u_int intstat) ahd_handle_seqint() argument
2373 ahd_handle_scsiint(struct ahd_softc * ahd,u_int intstat) ahd_handle_scsiint() argument
2655 ahd_handle_transmission_error(struct ahd_softc * ahd) ahd_handle_transmission_error() argument
2841 ahd_handle_lqiphase_error(struct ahd_softc * ahd,u_int lqistat1) ahd_handle_lqiphase_error() argument
2883 ahd_handle_pkt_busfree(struct ahd_softc * ahd,u_int busfreetime) ahd_handle_pkt_busfree() argument
3015 ahd_handle_nonpkt_busfree(struct ahd_softc * ahd) ahd_handle_nonpkt_busfree() argument
3289 ahd_handle_proto_violation(struct ahd_softc * ahd) ahd_handle_proto_violation() argument
3388 ahd_force_renegotiation(struct ahd_softc * ahd,struct ahd_devinfo * devinfo) ahd_force_renegotiation() argument
3410 ahd_clear_critical_section(struct ahd_softc * ahd) ahd_clear_critical_section() argument
3532 ahd_clear_intstat(struct ahd_softc * ahd) ahd_clear_intstat() argument
3596 ahd_alloc_tstate(struct ahd_softc * ahd,u_int scsi_id,char channel) ahd_alloc_tstate() argument
3638 ahd_free_tstate(struct ahd_softc * ahd,u_int scsi_id,char channel,int force) ahd_free_tstate() argument
3663 ahd_devlimited_syncrate(struct ahd_softc * ahd,struct ahd_initiator_tinfo * tinfo,u_int * period,u_int * ppr_options,role_t role) ahd_devlimited_syncrate() argument
3712 ahd_find_syncrate(struct ahd_softc * ahd,u_int * period,u_int * ppr_options,u_int maxsync) ahd_find_syncrate() argument
3751 ahd_validate_offset(struct ahd_softc * ahd,struct ahd_initiator_tinfo * tinfo,u_int period,u_int * offset,int wide,role_t role) ahd_validate_offset() argument
3782 ahd_validate_width(struct ahd_softc * ahd,struct ahd_initiator_tinfo * tinfo,u_int * bus_width,role_t role) ahd_validate_width() argument
3812 ahd_update_neg_request(struct ahd_softc * ahd,struct ahd_devinfo * devinfo,struct ahd_tmode_tstate * tstate,struct ahd_initiator_tinfo * tinfo,ahd_neg_type neg_type) ahd_update_neg_request() argument
3855 ahd_set_syncrate(struct ahd_softc * ahd,struct ahd_devinfo * devinfo,u_int period,u_int offset,u_int ppr_options,u_int type,int paused) ahd_set_syncrate() argument
4001 ahd_set_width(struct ahd_softc * ahd,struct ahd_devinfo * devinfo,u_int width,u_int type,int paused) ahd_set_width() argument
4055 ahd_set_tags(struct ahd_softc * ahd,struct scsi_cmnd * cmd,struct ahd_devinfo * devinfo,ahd_queue_alg alg) ahd_set_tags() argument
4066 ahd_update_neg_table(struct ahd_softc * ahd,struct ahd_devinfo * devinfo,struct ahd_transinfo * tinfo) ahd_update_neg_table() argument
4186 ahd_update_pending_scbs(struct ahd_softc * ahd) ahd_update_pending_scbs() argument
4267 ahd_fetch_devinfo(struct ahd_softc * ahd,struct ahd_devinfo * devinfo) ahd_fetch_devinfo() argument
4302 ahd_print_devinfo(struct ahd_softc * ahd,struct ahd_devinfo * devinfo) ahd_print_devinfo() argument
4342 ahd_scb_devinfo(struct ahd_softc * ahd,struct ahd_devinfo * devinfo,struct scb * scb) ahd_scb_devinfo() argument
4365 ahd_setup_initiator_msgout(struct ahd_softc * ahd,struct ahd_devinfo * devinfo,struct scb * scb) ahd_setup_initiator_msgout() argument
4486 ahd_build_transfer_msg(struct ahd_softc * ahd,struct ahd_devinfo * devinfo) ahd_build_transfer_msg() argument
4582 ahd_construct_sdtr(struct ahd_softc * ahd,struct ahd_devinfo * devinfo,u_int period,u_int offset) ahd_construct_sdtr() argument
4602 ahd_construct_wdtr(struct ahd_softc * ahd,struct ahd_devinfo * devinfo,u_int bus_width) ahd_construct_wdtr() argument
4620 ahd_construct_ppr(struct ahd_softc * ahd,struct ahd_devinfo * devinfo,u_int period,u_int offset,u_int bus_width,u_int ppr_options) ahd_construct_ppr() argument
4649 ahd_clear_msg_state(struct ahd_softc * ahd) ahd_clear_msg_state() argument
4677 ahd_handle_message_phase(struct ahd_softc * ahd) ahd_handle_message_phase() argument
5017 ahd_sent_msg(struct ahd_softc * ahd,ahd_msgtype type,u_int msgval,int full) ahd_sent_msg() argument
5066 ahd_parse_msg(struct ahd_softc * ahd,struct ahd_devinfo * devinfo) ahd_parse_msg() argument
5484 ahd_handle_msg_reject(struct ahd_softc * ahd,struct ahd_devinfo * devinfo) ahd_handle_msg_reject() argument
5655 ahd_handle_ign_wide_residue(struct ahd_softc * ahd,struct ahd_devinfo * devinfo) ahd_handle_ign_wide_residue() argument
5805 ahd_reinitialize_dataptrs(struct ahd_softc * ahd) ahd_reinitialize_dataptrs() argument
5887 ahd_handle_devreset(struct ahd_softc * ahd,struct ahd_devinfo * devinfo,u_int lun,cam_status status,char * message,int verbose_level) ahd_handle_devreset() argument
5951 ahd_setup_target_msgin(struct ahd_softc * ahd,struct ahd_devinfo * devinfo,struct scb * scb) ahd_setup_target_msgin() argument
5974 ahd_sglist_size(struct ahd_softc * ahd) ahd_sglist_size() argument
5991 ahd_sglist_allocsize(struct ahd_softc * ahd) ahd_sglist_allocsize() argument
6038 struct ahd_softc *ahd; ahd_alloc() local
6088 ahd_softc_init(struct ahd_softc * ahd) ahd_softc_init() argument
6097 ahd_set_unit(struct ahd_softc * ahd,int unit) ahd_set_unit() argument
6103 ahd_set_name(struct ahd_softc * ahd,char * name) ahd_set_name() argument
6110 ahd_free(struct ahd_softc * ahd) ahd_free() argument
6177 struct ahd_softc *ahd; ahd_shutdown() local
6200 ahd_reset(struct ahd_softc * ahd,int reinit) ahd_reset() argument
6303 ahd_probe_scbs(struct ahd_softc * ahd) ahd_probe_scbs() argument
6336 ahd_initialize_hscbs(struct ahd_softc * ahd) ahd_initialize_hscbs() argument
6352 ahd_init_scbdata(struct ahd_softc * ahd) ahd_init_scbdata() argument
6453 ahd_find_scb_by_tag(struct ahd_softc * ahd,u_int tag) ahd_find_scb_by_tag() argument
6491 ahd_fini_scbdata(struct ahd_softc * ahd) ahd_fini_scbdata() argument
6560 ahd_setup_iocell_workaround(struct ahd_softc * ahd) ahd_setup_iocell_workaround() argument
6578 ahd_iocell_first_selection(struct ahd_softc * ahd) ahd_iocell_first_selection() argument
6609 ahd_add_col_list(struct ahd_softc * ahd,struct scb * scb,u_int col_idx) ahd_add_col_list() argument
6629 ahd_rem_col_list(struct ahd_softc * ahd,struct scb * scb) ahd_rem_col_list() argument
6663 ahd_get_scb(struct ahd_softc * ahd,u_int col_idx) ahd_get_scb() argument
6699 ahd_free_scb(struct ahd_softc * ahd,struct scb * scb) ahd_free_scb() argument
6751 ahd_alloc_scbs(struct ahd_softc * ahd) ahd_alloc_scbs() argument
6937 ahd_controller_info(struct ahd_softc * ahd,char * buf) ahd_controller_info() argument
6987 ahd_init(struct ahd_softc * ahd) ahd_init() argument
7198 ahd_chip_init(struct ahd_softc * ahd) ahd_chip_init() argument
7540 ahd_default_config(struct ahd_softc * ahd) ahd_default_config() argument
7617 ahd_parse_cfgdata(struct ahd_softc * ahd,struct seeprom_config * sc) ahd_parse_cfgdata() argument
7751 ahd_parse_vpddata(struct ahd_softc * ahd,struct vpd_config * vpd) ahd_parse_vpddata() argument
7764 ahd_intr_enable(struct ahd_softc * ahd,int enable) ahd_intr_enable() argument
7781 ahd_update_coalescing_values(struct ahd_softc * ahd,u_int timer,u_int maxcmds,u_int mincmds) ahd_update_coalescing_values() argument
7799 ahd_enable_coalescing(struct ahd_softc * ahd,int enable) ahd_enable_coalescing() argument
7818 ahd_pause_and_flushwork(struct ahd_softc * ahd) ahd_pause_and_flushwork() argument
7869 ahd_suspend(struct ahd_softc * ahd) ahd_suspend() argument
7882 ahd_resume(struct ahd_softc * ahd) ahd_resume() argument
7899 ahd_index_busy_tcl(struct ahd_softc * ahd,u_int * saved_scbid,u_int tcl) ahd_index_busy_tcl() argument
7921 ahd_find_busy_tcl(struct ahd_softc * ahd,u_int tcl) ahd_find_busy_tcl() argument
7934 ahd_busy_tcl(struct ahd_softc * ahd,u_int tcl,u_int scbid) ahd_busy_tcl() argument
7946 ahd_match_scb(struct ahd_softc * ahd,struct scb * scb,int target,char channel,int lun,u_int tag,role_t role) ahd_match_scb() argument
7982 ahd_freeze_devq(struct ahd_softc * ahd,struct scb * scb) ahd_freeze_devq() argument
8000 ahd_qinfifo_requeue_tail(struct ahd_softc * ahd,struct scb * scb) ahd_qinfifo_requeue_tail() argument
8022 ahd_qinfifo_requeue(struct ahd_softc * ahd,struct scb * prev_scb,struct scb * scb) ahd_qinfifo_requeue() argument
8042 ahd_qinfifo_count(struct ahd_softc * ahd) ahd_qinfifo_count() argument
8060 ahd_reset_cmds_pending(struct ahd_softc * ahd) ahd_reset_cmds_pending() argument
8085 ahd_done_with_status(struct ahd_softc * ahd,struct scb * scb,uint32_t status) ahd_done_with_status() argument
8100 ahd_search_qinfifo(struct ahd_softc * ahd,int target,char channel,int lun,u_int tag,role_t role,uint32_t status,ahd_search_action action) ahd_search_qinfifo() argument
8330 ahd_search_scb_list(struct ahd_softc * ahd,int target,char channel,int lun,u_int tag,role_t role,uint32_t status,ahd_search_action action,u_int * list_head,u_int * list_tail,u_int tid) ahd_search_scb_list() argument
8398 ahd_stitch_tid_list(struct ahd_softc * ahd,u_int tid_prev,u_int tid_cur,u_int tid_next) ahd_stitch_tid_list() argument
8436 ahd_rem_wscb(struct ahd_softc * ahd,u_int scbid,u_int prev,u_int next,u_int tid) ahd_rem_wscb() argument
8469 ahd_add_scb_to_free_list(struct ahd_softc * ahd,u_int scbid) ahd_add_scb_to_free_list() argument
8487 ahd_abort_scbs(struct ahd_softc * ahd,int target,char channel,int lun,u_int tag,role_t role,uint32_t status) ahd_abort_scbs() argument
8583 ahd_reset_current_bus(struct ahd_softc * ahd) ahd_reset_current_bus() argument
8613 ahd_reset_channel(struct ahd_softc * ahd,char channel,int initiate_reset) ahd_reset_channel() argument
8787 struct ahd_softc *ahd = timer_container_of(ahd, t, stat_timer); ahd_stat_timer() local
8821 ahd_handle_scsi_status(struct ahd_softc * ahd,struct scb * scb) ahd_handle_scsi_status() argument
9030 ahd_handle_scb_status(struct ahd_softc * ahd,struct scb * scb) ahd_handle_scb_status() argument
9044 ahd_calc_residual(struct ahd_softc * ahd,struct scb * scb) ahd_calc_residual() argument
9147 ahd_queue_lstate_event(struct ahd_softc * ahd,struct ahd_tmode_lstate * lstate,u_int initiator_id,u_int event_type,u_int event_arg) ahd_queue_lstate_event() argument
9198 ahd_send_lstate_events(struct ahd_softc * ahd,struct ahd_tmode_lstate * lstate) ahd_send_lstate_events() argument
9234 ahd_dumpseq(struct ahd_softc * ahd) ahd_dumpseq() argument
9256 ahd_loadseq(struct ahd_softc * ahd) ahd_loadseq() argument
9415 ahd_check_patch(struct ahd_softc * ahd,const struct patch ** start_patch,u_int start_instr,u_int * skip_addr) ahd_check_patch() argument
9451 ahd_resolve_seqaddr(struct ahd_softc * ahd,u_int address) ahd_resolve_seqaddr() argument
9480 ahd_download_instr(struct ahd_softc * ahd,u_int instrptr,uint8_t * dconsts) ahd_download_instr() argument
9549 ahd_probe_stack_size(struct ahd_softc * ahd) ahd_probe_stack_size() argument
9632 ahd_dump_card_state(struct ahd_softc * ahd) ahd_dump_card_state() argument
9928 ahd_read_seeprom(struct ahd_softc * ahd,uint16_t * buf,u_int start_addr,u_int count,int bytestream) ahd_read_seeprom() argument
9973 ahd_write_seeprom(struct ahd_softc * ahd,uint16_t * buf,u_int start_addr,u_int count) ahd_write_seeprom() argument
10022 ahd_wait_seeprom(struct ahd_softc * ahd) ahd_wait_seeprom() argument
10090 ahd_acquire_seeprom(struct ahd_softc * ahd) ahd_acquire_seeprom() argument
10113 ahd_release_seeprom(struct ahd_softc * ahd) ahd_release_seeprom() argument
10122 ahd_wait_flexport(struct ahd_softc * ahd) ahd_wait_flexport() argument
10137 ahd_write_flexport(struct ahd_softc * ahd,u_int addr,u_int value) ahd_write_flexport() argument
10160 ahd_read_flexport(struct ahd_softc * ahd,u_int addr,uint8_t * value) ahd_read_flexport() argument
10180 ahd_find_tmode_devs(struct ahd_softc * ahd,struct cam_sim * sim,union ccb * ccb,struct ahd_tmode_tstate ** tstate,struct ahd_tmode_lstate ** lstate,int notfound_failure) ahd_find_tmode_devs() argument
10221 ahd_handle_en_lun(struct ahd_softc * ahd,struct cam_sim * sim,union ccb * ccb) ahd_handle_en_lun() argument
10534 ahd_update_scsiid(struct ahd_softc * ahd,u_int targid_mask) ahd_update_scsiid() argument
10574 ahd_run_tqinfifo(struct ahd_softc * ahd,int paused) ahd_run_tqinfifo() argument
10612 ahd_handle_target_cmd(struct ahd_softc * ahd,struct target_cmd * cmd) ahd_handle_target_cmd() argument
[all...]
H A Daic79xx_pci.c244 static int ahd_check_extport(struct ahd_softc *ahd);
245 static void ahd_configure_termination(struct ahd_softc *ahd,
247 static void ahd_pci_split_intr(struct ahd_softc *ahd, u_int intstat);
248 static void ahd_pci_intr(struct ahd_softc *ahd);
289 ahd_pci_config(struct ahd_softc *ahd, const struct ahd_pci_identity *entry) in ahd_pci_config() argument
296 ahd->description = entry->name; in ahd_pci_config()
300 subvendor = ahd_pci_read_config(ahd->dev_softc, in ahd_pci_config()
303 ahd->flags |= AHD_HP_BOARD; in ahd_pci_config()
305 error = entry->setup(ahd); in ahd_pci_config()
309 devconfig = ahd_pci_read_config(ahd->dev_softc, DEVCONFIG, /*bytes*/4); in ahd_pci_config()
[all …]
H A Daic79xx_osm_pci.c80 struct ahd_softc *ahd = dev_get_drvdata(dev); in ahd_linux_pci_dev_suspend() local
83 if ((rc = ahd_suspend(ahd))) in ahd_linux_pci_dev_suspend()
86 ahd_pci_suspend(ahd); in ahd_linux_pci_dev_suspend()
94 struct ahd_softc *ahd = dev_get_drvdata(dev); in ahd_linux_pci_dev_resume() local
96 ahd_pci_resume(ahd); in ahd_linux_pci_dev_resume()
98 ahd_resume(ahd); in ahd_linux_pci_dev_resume()
106 struct ahd_softc *ahd = pci_get_drvdata(pdev); in ahd_linux_pci_dev_remove() local
109 if (ahd->platform_data && ahd->platform_data->host) in ahd_linux_pci_dev_remove()
110 scsi_remove_host(ahd->platform_data->host); in ahd_linux_pci_dev_remove()
112 ahd_lock(ahd, &s); in ahd_linux_pci_dev_remove()
[all …]
H A Daic79xx_osm.c224 ahd_print_path(struct ahd_softc *ahd, struct scb *scb) in ahd_print_path() argument
227 ahd->platform_data->host->host_no, in ahd_print_path()
228 scb != NULL ? SCB_GET_CHANNEL(ahd, scb) : 'X', in ahd_print_path()
229 scb != NULL ? SCB_GET_TARGET(ahd, scb) : -1, in ahd_print_path()
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,
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);
[all …]
H A Daic79xx_inline.h49 static inline char *ahd_name(struct ahd_softc *ahd);
51 static inline char *ahd_name(struct ahd_softc *ahd) in ahd_name() argument
53 return (ahd->name); in ahd_name()
57 static inline void ahd_known_modes(struct ahd_softc *ahd,
59 static inline ahd_mode_state ahd_build_mode_state(struct ahd_softc *ahd,
62 static inline void ahd_extract_mode_state(struct ahd_softc *ahd,
66 void ahd_set_modes(struct ahd_softc *ahd, ahd_mode src,
68 ahd_mode_state ahd_save_modes(struct ahd_softc *ahd);
69 void ahd_restore_modes(struct ahd_softc *ahd,
71 int ahd_is_paused(struct ahd_softc *ahd);
[all …]
H A Daic79xx_proc.c45 static void ahd_dump_target_state(struct ahd_softc *ahd,
157 ahd_dump_target_state(struct ahd_softc *ahd, struct seq_file *m, in ahd_dump_target_state() argument
165 tinfo = ahd_fetch_transinfo(ahd, channel, our_id, in ahd_dump_target_state()
170 starget = ahd->platform_data->starget[target_id]; in ahd_dump_target_state()
210 struct ahd_softc *ahd = *(struct ahd_softc **)shost->hostdata; in ahd_proc_write_seeprom() local
219 ahd_lock(ahd, &s); in ahd_proc_write_seeprom()
220 paused = ahd_is_paused(ahd); in ahd_proc_write_seeprom()
222 ahd_pause(ahd); in ahd_proc_write_seeprom()
224 saved_modes = ahd_save_modes(ahd); in ahd_proc_write_seeprom()
225 ahd_set_modes(ahd, AHD_MODE_SCSI, AHD_MODE_SCSI); in ahd_proc_write_seeprom()
[all …]
H A Daic79xx_osm.h66 #define AIC_LIB_PREFIX ahd
181 int ahd_dmamap_load(struct ahd_softc *ahd, bus_dma_tag_t /*dmat*/,
204 #define ahd_dmamap_sync(ahd, dma_tag, dmamap, offset, len, op) argument
357 uint8_t ahd_inb(struct ahd_softc * ahd, long port);
358 void ahd_outb(struct ahd_softc * ahd, long port, uint8_t val);
359 void ahd_outw_atomic(struct ahd_softc * ahd,
361 void ahd_outsb(struct ahd_softc * ahd, long port,
363 void ahd_insb(struct ahd_softc * ahd, long port,
372 ahd_lockinit(struct ahd_softc *ahd) in ahd_lockinit() argument
374 spin_lock_init(&ahd in ahd_lockinit()
378 ahd_lock(struct ahd_softc * ahd,unsigned long * flags) ahd_lock() argument
384 ahd_unlock(struct ahd_softc * ahd,unsigned long * flags) ahd_unlock() argument
487 ahd_flush_device_writes(struct ahd_softc * ahd) ahd_flush_device_writes() argument
606 ahd_get_sense_bufsize(struct ahd_softc * ahd,struct scb * scb) ahd_get_sense_bufsize() argument
612 ahd_notify_xfer_settings_change(struct ahd_softc * ahd,struct ahd_devinfo * devinfo) ahd_notify_xfer_settings_change() argument
619 ahd_platform_scb_free(struct ahd_softc * ahd,struct scb * scb) ahd_platform_scb_free() argument
[all...]
H A Daic79xx.h71 #define SCSIID_TARGET(ahd, scsiid) \ argument
75 #define SCSIID_CHANNEL(ahd, scsiid) ('A') argument
76 #define SCB_IS_SCSIBUS_B(ahd, scb) (0) argument
79 #define SCB_GET_TARGET(ahd, scb) \ argument
80 SCSIID_TARGET((ahd), (scb)->hscb->scsiid)
81 #define SCB_GET_CHANNEL(ahd, scb) \ argument
82 SCSIID_CHANNEL(ahd, (scb)->hscb->scsiid)
85 #define SCB_GET_TARGET_OFFSET(ahd, scb) \ argument
86 SCB_GET_TARGET(ahd, scb)
87 #define SCB_GET_TARGET_MASK(ahd, scb) \ argument
[all …]
H A Daic79xx_seq.h_shipped837 typedef int ahd_patch_func_t (struct ahd_softc *ahd);
841 ahd_patch23_func(struct ahd_softc *ahd)
843 return ((ahd->bugs & AHD_PKT_BITBUCKET_BUG) != 0);
849 ahd_patch22_func(struct ahd_softc *ahd)
851 return ((ahd->bugs & AHD_PKT_BITBUCKET_BUG) == 0);
857 ahd_patch21_func(struct ahd_softc *ahd)
859 return ((ahd->flags & AHD_INITIATORROLE) != 0);
865 ahd_patch20_func(struct ahd_softc *ahd)
867 return ((ahd->flags & AHD_TARGETROLE) != 0);
873 ahd_patch19_func(struct ahd_softc *ahd)
[all …]
H A Daic79xx.seq44 PATCH_ARG_LIST = "struct ahd_softc *ahd"
51 if ((ahd->bugs & AHD_INTCOLLISION_BUG) != 0) {
58 if ((ahd->bugs & AHD_INTCOLLISION_BUG) != 0) {
124 if ((ahd->bugs & AHD_FAINT_LED_BUG) != 0) {
298 if ((ahd->bugs & AHD_PKT_LUN_BUG) != 0) {
520 if ((ahd->bugs & AHD_SET_MODE_BUG) != 0) {
528 if ((ahd->bugs & AHD_INTCOLLISION_BUG) != 0) {
539 if ((ahd->bugs & AHD_SENT_SCB_UPDATE_BUG) != 0) {
594 if ((ahd->bugs & AHD_NONPACKFIFO_BUG) != 0) {
618 if ((ahd->bugs & AHD_FAINT_LED_BUG) != 0) {
[all …]
H A Daic79xx.reg62 if ((ahd->bugs & AHD_SET_MODE_BUG) != 0) { \
69 if ((ahd->bugs & AHD_SET_MODE_BUG) != 0) { \
76 if ((ahd->bugs & AHD_INTCOLLISION_BUG) != 0) { \