Lines Matching refs:devinfo
135 struct ahc_devinfo *devinfo);
151 struct ahc_devinfo *devinfo);
153 struct ahc_devinfo *devinfo,
157 struct ahc_devinfo *devinfo,
160 struct ahc_devinfo *devinfo);
162 struct ahc_devinfo *devinfo,
165 struct ahc_devinfo *devinfo,
168 struct ahc_devinfo *devinfo,
182 struct ahc_devinfo *devinfo);
184 struct ahc_devinfo *devinfo);
186 struct ahc_devinfo *devinfo);
189 struct ahc_devinfo *devinfo,
194 struct ahc_devinfo *devinfo,
980 struct ahc_devinfo devinfo; in ahc_handle_seqint() local
982 ahc_fetch_devinfo(ahc, &devinfo); in ahc_handle_seqint()
1016 ahc_print_devinfo(ahc, &devinfo); in ahc_handle_seqint()
1068 devinfo.channel, in ahc_handle_seqint()
1069 devinfo.our_scsiid, in ahc_handle_seqint()
1070 devinfo.target, in ahc_handle_seqint()
1122 ahc_update_neg_request(ahc, &devinfo, in ahc_handle_seqint()
1126 if (tstate->auto_negotiate & devinfo.target_mask) { in ahc_handle_seqint()
1160 ahc_name(ahc), devinfo.channel, devinfo.target); in ahc_handle_seqint()
1195 ahc_name(ahc), devinfo.channel, devinfo.target, rejbyte); in ahc_handle_seqint()
1204 ahc_handle_ign_wide_residue(ahc, &devinfo); in ahc_handle_seqint()
1216 ahc_name(ahc), devinfo.channel, devinfo.target, in ahc_handle_seqint()
1227 ahc_name(ahc), devinfo.channel, devinfo.target, in ahc_handle_seqint()
1267 if (devinfo.role == ROLE_INITIATOR) { in ahc_handle_seqint()
1275 &devinfo, in ahc_handle_seqint()
1291 &devinfo, in ahc_handle_seqint()
1353 ahc_print_devinfo(ahc, &devinfo); in ahc_handle_seqint()
1361 ahc_reset_channel(ahc, devinfo.channel, in ahc_handle_seqint()
1449 ahc_name(ahc), devinfo.channel, devinfo.target, in ahc_handle_seqint()
1450 devinfo.lun); in ahc_handle_seqint()
1610 struct ahc_devinfo devinfo; in ahc_handle_scsiint() local
1707 ahc_fetch_devinfo(ahc, &devinfo); in ahc_handle_scsiint()
1708 ahc_force_renegotiation(ahc, &devinfo); in ahc_handle_scsiint()
1746 struct ahc_devinfo devinfo; in ahc_handle_scsiint() local
1754 ahc_scb_devinfo(ahc, &devinfo, scb); in ahc_handle_scsiint()
1764 ahc_handle_devreset(ahc, &devinfo, in ahc_handle_scsiint()
1773 struct ahc_devinfo devinfo; in ahc_handle_scsiint() local
1812 ahc_compile_devinfo(&devinfo, initiator_role_id, in ahc_handle_scsiint()
1836 ahc_compile_devinfo(&devinfo, in ahc_handle_scsiint()
1842 ahc_handle_devreset(ahc, &devinfo, in ahc_handle_scsiint()
1857 devinfo.channel, in ahc_handle_scsiint()
1858 devinfo.our_scsiid, in ahc_handle_scsiint()
1859 devinfo.target, in ahc_handle_scsiint()
1872 ahc_set_width(ahc, &devinfo, in ahc_handle_scsiint()
1884 ahc_set_syncrate(ahc, &devinfo, in ahc_handle_scsiint()
1927 ahc_force_renegotiation(ahc, &devinfo); in ahc_handle_scsiint()
1949 ahc_force_renegotiation(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) in ahc_force_renegotiation() argument
1955 devinfo->channel, in ahc_force_renegotiation()
1956 devinfo->our_scsiid, in ahc_force_renegotiation()
1957 devinfo->target, in ahc_force_renegotiation()
1959 ahc_update_neg_request(ahc, devinfo, tstate, in ahc_force_renegotiation()
2425 ahc_update_neg_request(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_update_neg_request() argument
2452 tstate->auto_negotiate |= devinfo->target_mask; in ahc_update_neg_request()
2454 tstate->auto_negotiate &= ~devinfo->target_mask; in ahc_update_neg_request()
2468 ahc_set_syncrate(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_set_syncrate() argument
2488 tinfo = ahc_fetch_transinfo(ahc, devinfo->channel, devinfo->our_scsiid, in ahc_set_syncrate()
2489 devinfo->target, &tstate); in ahc_set_syncrate()
2532 tstate->ultraenb &= ~devinfo->target_mask; in ahc_set_syncrate()
2536 devinfo->target_mask; in ahc_set_syncrate()
2546 if (tstate->ultraenb & devinfo->target_mask) in ahc_set_syncrate()
2562 ahc_send_async(ahc, devinfo->channel, devinfo->target, in ahc_set_syncrate()
2568 devinfo->target, syncrate->rate, in ahc_set_syncrate()
2574 ahc_name(ahc), devinfo->target); in ahc_set_syncrate()
2579 update_needed += ahc_update_neg_request(ahc, devinfo, tstate, in ahc_set_syncrate()
2595 ahc_set_width(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_set_width() argument
2606 tinfo = ahc_fetch_transinfo(ahc, devinfo->channel, devinfo->our_scsiid, in ahc_set_width()
2607 devinfo->target, &tstate); in ahc_set_width()
2632 ahc_send_async(ahc, devinfo->channel, devinfo->target, in ahc_set_width()
2636 ahc_name(ahc), devinfo->target, in ahc_set_width()
2641 update_needed += ahc_update_neg_request(ahc, devinfo, tstate, in ahc_set_width()
2652 struct ahc_devinfo *devinfo, ahc_queue_alg alg) in ahc_set_tags() argument
2656 ahc_platform_set_tags(ahc, sdev, devinfo, alg); in ahc_set_tags()
2657 ahc_send_async(ahc, devinfo->channel, devinfo->target, in ahc_set_tags()
2658 devinfo->lun, AC_TRANSFER_NEG); in ahc_set_tags()
2681 struct ahc_devinfo devinfo; in ahc_update_pending_scbs() local
2686 ahc_scb_devinfo(ahc, &devinfo, pending_scb); in ahc_update_pending_scbs()
2687 tinfo = ahc_fetch_transinfo(ahc, devinfo.channel, in ahc_update_pending_scbs()
2688 devinfo.our_scsiid, in ahc_update_pending_scbs()
2689 devinfo.target, &tstate); in ahc_update_pending_scbs()
2692 if ((tstate->ultraenb & devinfo.target_mask) != 0) in ahc_update_pending_scbs()
2696 if ((tstate->auto_negotiate & devinfo.target_mask) == 0 in ahc_update_pending_scbs()
2745 ahc_fetch_devinfo(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) in ahc_fetch_devinfo() argument
2768 ahc_compile_devinfo(devinfo, in ahc_fetch_devinfo()
2795 ahc_compile_devinfo(struct ahc_devinfo *devinfo, u_int our_id, u_int target, in ahc_compile_devinfo() argument
2798 devinfo->our_scsiid = our_id; in ahc_compile_devinfo()
2799 devinfo->target = target; in ahc_compile_devinfo()
2800 devinfo->lun = lun; in ahc_compile_devinfo()
2801 devinfo->target_offset = target; in ahc_compile_devinfo()
2802 devinfo->channel = channel; in ahc_compile_devinfo()
2803 devinfo->role = role; in ahc_compile_devinfo()
2805 devinfo->target_offset += 8; in ahc_compile_devinfo()
2806 devinfo->target_mask = (0x01 << devinfo->target_offset); in ahc_compile_devinfo()
2810 ahc_print_devinfo(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) in ahc_print_devinfo() argument
2812 printk("%s:%c:%d:%d: ", ahc_name(ahc), devinfo->channel, in ahc_print_devinfo()
2813 devinfo->target, devinfo->lun); in ahc_print_devinfo()
2817 ahc_scb_devinfo(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_scb_devinfo() argument
2827 ahc_compile_devinfo(devinfo, our_id, SCB_GET_TARGET(ahc, scb), in ahc_scb_devinfo()
2851 ahc_setup_initiator_msgout(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_setup_initiator_msgout() argument
2911 ahc_build_transfer_msg(ahc, devinfo); in ahc_setup_initiator_msgout()
2916 devinfo->target_mask); in ahc_setup_initiator_msgout()
2937 ahc_build_transfer_msg(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) in ahc_build_transfer_msg() argument
2954 tinfo = ahc_fetch_transinfo(ahc, devinfo->channel, devinfo->our_scsiid, in ahc_build_transfer_msg()
2955 devinfo->target, &tstate); in ahc_build_transfer_msg()
2966 if (devinfo->role == ROLE_TARGET) in ahc_build_transfer_msg()
2969 &ppr_options, devinfo->role); in ahc_build_transfer_msg()
2995 ahc_print_devinfo(ahc, devinfo); in ahc_build_transfer_msg()
3001 if (devinfo->role == ROLE_TARGET) in ahc_build_transfer_msg()
3018 devinfo->role); in ahc_build_transfer_msg()
3020 ahc_construct_ppr(ahc, devinfo, period, offset, in ahc_build_transfer_msg()
3023 ahc_construct_sdtr(ahc, devinfo, period, offset); in ahc_build_transfer_msg()
3026 ahc_construct_wdtr(ahc, devinfo, tinfo->goal.width); in ahc_build_transfer_msg()
3035 ahc_construct_sdtr(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_construct_sdtr() argument
3045 ahc_name(ahc), devinfo->channel, devinfo->target, in ahc_construct_sdtr()
3046 devinfo->lun, period, offset); in ahc_construct_sdtr()
3055 ahc_construct_wdtr(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_construct_wdtr() argument
3063 ahc_name(ahc), devinfo->channel, devinfo->target, in ahc_construct_wdtr()
3064 devinfo->lun, bus_width); in ahc_construct_wdtr()
3073 ahc_construct_ppr(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_construct_ppr() argument
3086 devinfo->channel, devinfo->target, devinfo->lun, in ahc_construct_ppr()
3115 struct ahc_devinfo devinfo; in ahc_handle_proto_violation() local
3123 ahc_fetch_devinfo(ahc, &devinfo); in ahc_handle_proto_violation()
3136 ahc_print_devinfo(ahc, &devinfo); in ahc_handle_proto_violation()
3145 ahc_print_devinfo(ahc, &devinfo); in ahc_handle_proto_violation()
3192 ahc_print_devinfo(ahc, &devinfo); in ahc_handle_proto_violation()
3212 struct ahc_devinfo devinfo; in ahc_handle_message_phase() local
3216 ahc_fetch_devinfo(ahc, &devinfo); in ahc_handle_message_phase()
3233 ahc_print_devinfo(ahc, &devinfo); in ahc_handle_message_phase()
3311 ahc_print_devinfo(ahc, &devinfo); in ahc_handle_message_phase()
3344 message_done = ahc_parse_msg(ahc, &devinfo); in ahc_handle_message_phase()
3361 ahc_print_devinfo(ahc, &devinfo); in ahc_handle_message_phase()
3450 msgdone = ahc_parse_msg(ahc, &devinfo); in ahc_handle_message_phase()
3559 ahc_parse_msg(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) in ahc_parse_msg() argument
3571 tinfo = ahc_fetch_transinfo(ahc, devinfo->channel, devinfo->our_scsiid, in ahc_parse_msg()
3572 devinfo->target, &tstate); in ahc_parse_msg()
3599 response = ahc_handle_msg_reject(ahc, devinfo); in ahc_parse_msg()
3638 devinfo->role); in ahc_parse_msg()
3641 devinfo->role); in ahc_parse_msg()
3646 ahc_name(ahc), devinfo->channel, in ahc_parse_msg()
3647 devinfo->target, devinfo->lun, in ahc_parse_msg()
3651 ahc_set_syncrate(ahc, devinfo, in ahc_parse_msg()
3673 && devinfo->role == ROLE_INITIATOR) { in ahc_parse_msg()
3676 ahc_name(ahc), devinfo->channel, in ahc_parse_msg()
3677 devinfo->target, devinfo->lun); in ahc_parse_msg()
3681 ahc_construct_sdtr(ahc, devinfo, in ahc_parse_msg()
3714 devinfo->role); in ahc_parse_msg()
3718 ahc_name(ahc), devinfo->channel, in ahc_parse_msg()
3719 devinfo->target, devinfo->lun, in ahc_parse_msg()
3734 ahc_name(ahc), devinfo->channel, in ahc_parse_msg()
3735 devinfo->target, devinfo->lun, in ahc_parse_msg()
3744 && devinfo->role == ROLE_INITIATOR) { in ahc_parse_msg()
3747 ahc_name(ahc), devinfo->channel, in ahc_parse_msg()
3748 devinfo->target, devinfo->lun); in ahc_parse_msg()
3752 ahc_construct_wdtr(ahc, devinfo, bus_width); in ahc_parse_msg()
3766 ahc_update_neg_request(ahc, devinfo, tstate, in ahc_parse_msg()
3768 ahc_set_width(ahc, devinfo, bus_width, in ahc_parse_msg()
3778 ahc_build_transfer_msg(ahc, devinfo); in ahc_parse_msg()
3837 devinfo->role); in ahc_parse_msg()
3840 devinfo->role); in ahc_parse_msg()
3843 devinfo->role); in ahc_parse_msg()
3862 if (devinfo->role != ROLE_TARGET) in ahc_parse_msg()
3865 ahc_name(ahc), devinfo->channel, in ahc_parse_msg()
3866 devinfo->target, devinfo->lun); in ahc_parse_msg()
3870 ahc_name(ahc), devinfo->channel, in ahc_parse_msg()
3871 devinfo->target, devinfo->lun); in ahc_parse_msg()
3874 ahc_construct_ppr(ahc, devinfo, period, offset, in ahc_parse_msg()
3884 ahc_name(ahc), devinfo->channel, in ahc_parse_msg()
3885 devinfo->target, devinfo->lun, in ahc_parse_msg()
3890 ahc_set_width(ahc, devinfo, bus_width, in ahc_parse_msg()
3893 ahc_set_syncrate(ahc, devinfo, in ahc_parse_msg()
3910 ahc_handle_devreset(ahc, devinfo, in ahc_parse_msg()
3924 if (devinfo->role != ROLE_TARGET) { in ahc_parse_msg()
3931 ahc_abort_scbs(ahc, devinfo->target, devinfo->channel, in ahc_parse_msg()
3932 devinfo->lun, tag, ROLE_TARGET, in ahc_parse_msg()
3935 tstate = ahc->enabled_targets[devinfo->our_scsiid]; in ahc_parse_msg()
3939 lstate = tstate->enabled_luns[devinfo->lun]; in ahc_parse_msg()
3942 devinfo->our_scsiid, in ahc_parse_msg()
3981 ahc_handle_msg_reject(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) in ahc_handle_msg_reject() argument
3998 tinfo = ahc_fetch_transinfo(ahc, devinfo->channel, in ahc_handle_msg_reject()
3999 devinfo->our_scsiid, in ahc_handle_msg_reject()
4000 devinfo->target, &tstate); in ahc_handle_msg_reject()
4012 ahc_name(ahc), devinfo->channel, in ahc_handle_msg_reject()
4013 devinfo->target, devinfo->lun); in ahc_handle_msg_reject()
4020 ahc_build_transfer_msg(ahc, devinfo); in ahc_handle_msg_reject()
4028 devinfo->channel, devinfo->target, devinfo->lun); in ahc_handle_msg_reject()
4029 ahc_set_width(ahc, devinfo, MSG_EXT_WDTR_BUS_8_BIT, in ahc_handle_msg_reject()
4044 ahc_build_transfer_msg(ahc, devinfo); in ahc_handle_msg_reject()
4050 ahc_set_syncrate(ahc, devinfo, /*syncrate*/NULL, /*period*/0, in ahc_handle_msg_reject()
4056 ahc_name(ahc), devinfo->channel, in ahc_handle_msg_reject()
4057 devinfo->target, devinfo->lun); in ahc_handle_msg_reject()
4067 devinfo->channel, devinfo->target, devinfo->lun); in ahc_handle_msg_reject()
4068 ahc_set_tags(ahc, scb->io_ctx, devinfo, AHC_QUEUE_NONE); in ahc_handle_msg_reject()
4073 ahc_name(ahc), devinfo->channel, devinfo->target, in ahc_handle_msg_reject()
4074 devinfo->lun, tag_type == ORDERED_QUEUE_TAG in ahc_handle_msg_reject()
4076 ahc_set_tags(ahc, scb->io_ctx, devinfo, AHC_QUEUE_BASIC); in ahc_handle_msg_reject()
4100 &(ahc->untagged_queues[devinfo->target_offset]); in ahc_handle_msg_reject()
4104 ahc_busy_tcl(ahc, BUILD_TCL(scb->hscb->scsiid, devinfo->lun), in ahc_handle_msg_reject()
4122 ahc_name(ahc), devinfo->channel, devinfo->target, in ahc_handle_msg_reject()
4132 ahc_handle_ign_wide_residue(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) in ahc_handle_ign_wide_residue() argument
4297 ahc_handle_devreset(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_handle_devreset() argument
4306 found = ahc_abort_scbs(ahc, devinfo->target, devinfo->channel, in ahc_handle_devreset()
4307 CAM_LUN_WILDCARD, SCB_LIST_NULL, devinfo->role, in ahc_handle_devreset()
4315 tstate = ahc->enabled_targets[devinfo->our_scsiid]; in ahc_handle_devreset()
4324 ahc_queue_lstate_event(ahc, lstate, devinfo->our_scsiid, in ahc_handle_devreset()
4334 ahc_set_width(ahc, devinfo, MSG_EXT_WDTR_BUS_8_BIT, in ahc_handle_devreset()
4336 ahc_set_syncrate(ahc, devinfo, /*syncrate*/NULL, in ahc_handle_devreset()
4341 ahc_send_async(ahc, devinfo->channel, devinfo->target, in ahc_handle_devreset()
4347 message, devinfo->channel, devinfo->target, found); in ahc_handle_devreset()
4352 ahc_setup_target_msgin(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, in ahc_setup_target_msgin() argument
4365 ahc_build_transfer_msg(ahc, devinfo); in ahc_setup_target_msgin()
6419 struct ahc_devinfo devinfo; in ahc_reset_channel() local
6430 ahc_compile_devinfo(&devinfo, in ahc_reset_channel()
6550 ahc_send_async(ahc, devinfo.channel, CAM_TARGET_WILDCARD, in ahc_reset_channel()
6561 struct ahc_devinfo devinfo; in ahc_reset_channel() local
6563 ahc_compile_devinfo(&devinfo, target, initiator, in ahc_reset_channel()
6566 ahc_set_width(ahc, &devinfo, MSG_EXT_WDTR_BUS_8_BIT, in ahc_reset_channel()
6568 ahc_set_syncrate(ahc, &devinfo, /*syncrate*/NULL, in ahc_reset_channel()