Lines Matching refs:devinfo

142 						struct ahc_devinfo *devinfo);
158 struct ahc_devinfo *devinfo);
160 struct ahc_devinfo *devinfo,
164 struct ahc_devinfo *devinfo,
167 struct ahc_devinfo *devinfo);
169 struct ahc_devinfo *devinfo,
172 struct ahc_devinfo *devinfo,
175 struct ahc_devinfo *devinfo,
189 struct ahc_devinfo *devinfo);
191 struct ahc_devinfo *devinfo);
193 struct ahc_devinfo *devinfo);
196 struct ahc_devinfo *devinfo,
201 struct ahc_devinfo *devinfo,
987 struct ahc_devinfo devinfo;
989 ahc_fetch_devinfo(ahc, &devinfo);
1023 ahc_print_devinfo(ahc, &devinfo);
1075 devinfo.channel,
1076 devinfo.our_scsiid,
1077 devinfo.target,
1129 ahc_update_neg_request(ahc, &devinfo,
1133 if (tstate->auto_negotiate & devinfo.target_mask) {
1167 ahc_name(ahc), devinfo.channel, devinfo.target);
1202 ahc_name(ahc), devinfo.channel, devinfo.target, rejbyte);
1211 ahc_handle_ign_wide_residue(ahc, &devinfo);
1223 ahc_name(ahc), devinfo.channel, devinfo.target,
1234 ahc_name(ahc), devinfo.channel, devinfo.target,
1274 if (devinfo.role == ROLE_INITIATOR) {
1282 &devinfo,
1299 &devinfo,
1361 ahc_print_devinfo(ahc, &devinfo);
1369 ahc_reset_channel(ahc, devinfo.channel,
1457 ahc_name(ahc), devinfo.channel, devinfo.target,
1458 devinfo.lun);
1618 struct ahc_devinfo devinfo;
1715 ahc_fetch_devinfo(ahc, &devinfo);
1716 ahc_force_renegotiation(ahc, &devinfo);
1754 struct ahc_devinfo devinfo;
1762 ahc_scb_devinfo(ahc, &devinfo, scb);
1772 ahc_handle_devreset(ahc, &devinfo,
1781 struct ahc_devinfo devinfo;
1820 ahc_compile_devinfo(&devinfo, initiator_role_id,
1859 ahc_compile_devinfo(&devinfo,
1865 ahc_handle_devreset(ahc, &devinfo,
1880 devinfo.channel,
1881 devinfo.our_scsiid,
1882 devinfo.target,
1895 ahc_set_width(ahc, &devinfo,
1907 ahc_set_syncrate(ahc, &devinfo,
1950 ahc_force_renegotiation(ahc, &devinfo);
1972 ahc_force_renegotiation(struct ahc_softc *ahc, struct ahc_devinfo *devinfo)
1978 devinfo->channel,
1979 devinfo->our_scsiid,
1980 devinfo->target,
1982 ahc_update_neg_request(ahc, devinfo, tstate,
2450 ahc_update_neg_request(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
2477 tstate->auto_negotiate |= devinfo->target_mask;
2479 tstate->auto_negotiate &= ~devinfo->target_mask;
2493 ahc_set_syncrate(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
2513 tinfo = ahc_fetch_transinfo(ahc, devinfo->channel, devinfo->our_scsiid,
2514 devinfo->target, &tstate);
2557 tstate->ultraenb &= ~devinfo->target_mask;
2561 devinfo->target_mask;
2571 if (tstate->ultraenb & devinfo->target_mask)
2587 ahc_send_async(ahc, devinfo->channel, devinfo->target,
2593 devinfo->target, syncrate->rate,
2599 ahc_name(ahc), devinfo->target);
2604 update_needed += ahc_update_neg_request(ahc, devinfo, tstate,
2620 ahc_set_width(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
2631 tinfo = ahc_fetch_transinfo(ahc, devinfo->channel, devinfo->our_scsiid,
2632 devinfo->target, &tstate);
2657 ahc_send_async(ahc, devinfo->channel, devinfo->target,
2661 ahc_name(ahc), devinfo->target,
2666 update_needed += ahc_update_neg_request(ahc, devinfo, tstate,
2677 struct ahc_devinfo *devinfo, ahc_queue_alg alg)
2681 ahc_platform_set_tags(ahc, sdev, devinfo, alg);
2682 ahc_send_async(ahc, devinfo->channel, devinfo->target,
2683 devinfo->lun, AC_TRANSFER_NEG);
2706 struct ahc_devinfo devinfo;
2711 ahc_scb_devinfo(ahc, &devinfo, pending_scb);
2712 tinfo = ahc_fetch_transinfo(ahc, devinfo.channel,
2713 devinfo.our_scsiid,
2714 devinfo.target, &tstate);
2717 if ((tstate->ultraenb & devinfo.target_mask) != 0)
2721 if ((tstate->auto_negotiate & devinfo.target_mask) == 0
2770 ahc_fetch_devinfo(struct ahc_softc *ahc, struct ahc_devinfo *devinfo)
2793 ahc_compile_devinfo(devinfo,
2820 ahc_compile_devinfo(struct ahc_devinfo *devinfo, u_int our_id, u_int target,
2823 devinfo->our_scsiid = our_id;
2824 devinfo->target = target;
2825 devinfo->lun = lun;
2826 devinfo->target_offset = target;
2827 devinfo->channel = channel;
2828 devinfo->role = role;
2830 devinfo->target_offset += 8;
2831 devinfo->target_mask = (0x01 << devinfo->target_offset);
2835 ahc_print_devinfo(struct ahc_softc *ahc, struct ahc_devinfo *devinfo)
2837 printk("%s:%c:%d:%d: ", ahc_name(ahc), devinfo->channel,
2838 devinfo->target, devinfo->lun);
2842 ahc_scb_devinfo(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
2852 ahc_compile_devinfo(devinfo, our_id, SCB_GET_TARGET(ahc, scb),
2876 ahc_setup_initiator_msgout(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
2936 ahc_build_transfer_msg(ahc, devinfo);
2941 devinfo->target_mask);
2962 ahc_build_transfer_msg(struct ahc_softc *ahc, struct ahc_devinfo *devinfo)
2979 tinfo = ahc_fetch_transinfo(ahc, devinfo->channel, devinfo->our_scsiid,
2980 devinfo->target, &tstate);
2991 if (devinfo->role == ROLE_TARGET)
2994 &ppr_options, devinfo->role);
3020 ahc_print_devinfo(ahc, devinfo);
3026 if (devinfo->role == ROLE_TARGET)
3043 devinfo->role);
3045 ahc_construct_ppr(ahc, devinfo, period, offset,
3048 ahc_construct_sdtr(ahc, devinfo, period, offset);
3051 ahc_construct_wdtr(ahc, devinfo, tinfo->goal.width);
3060 ahc_construct_sdtr(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
3070 ahc_name(ahc), devinfo->channel, devinfo->target,
3071 devinfo->lun, period, offset);
3080 ahc_construct_wdtr(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
3088 ahc_name(ahc), devinfo->channel, devinfo->target,
3089 devinfo->lun, bus_width);
3098 ahc_construct_ppr(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
3111 devinfo->channel, devinfo->target, devinfo->lun,
3140 struct ahc_devinfo devinfo;
3148 ahc_fetch_devinfo(ahc, &devinfo);
3161 ahc_print_devinfo(ahc, &devinfo);
3170 ahc_print_devinfo(ahc, &devinfo);
3217 ahc_print_devinfo(ahc, &devinfo);
3237 struct ahc_devinfo devinfo;
3241 ahc_fetch_devinfo(ahc, &devinfo);
3258 ahc_print_devinfo(ahc, &devinfo);
3336 ahc_print_devinfo(ahc, &devinfo);
3369 message_done = ahc_parse_msg(ahc, &devinfo);
3386 ahc_print_devinfo(ahc, &devinfo);
3475 msgdone = ahc_parse_msg(ahc, &devinfo);
3584 ahc_parse_msg(struct ahc_softc *ahc, struct ahc_devinfo *devinfo)
3596 tinfo = ahc_fetch_transinfo(ahc, devinfo->channel, devinfo->our_scsiid,
3597 devinfo->target, &tstate);
3624 response = ahc_handle_msg_reject(ahc, devinfo);
3663 devinfo->role);
3666 devinfo->role);
3671 ahc_name(ahc), devinfo->channel,
3672 devinfo->target, devinfo->lun,
3676 ahc_set_syncrate(ahc, devinfo,
3698 && devinfo->role == ROLE_INITIATOR) {
3701 ahc_name(ahc), devinfo->channel,
3702 devinfo->target, devinfo->lun);
3706 ahc_construct_sdtr(ahc, devinfo,
3739 devinfo->role);
3743 ahc_name(ahc), devinfo->channel,
3744 devinfo->target, devinfo->lun,
3759 ahc_name(ahc), devinfo->channel,
3760 devinfo->target, devinfo->lun,
3769 && devinfo->role == ROLE_INITIATOR) {
3772 ahc_name(ahc), devinfo->channel,
3773 devinfo->target, devinfo->lun);
3777 ahc_construct_wdtr(ahc, devinfo, bus_width);
3791 ahc_update_neg_request(ahc, devinfo, tstate,
3793 ahc_set_width(ahc, devinfo, bus_width,
3803 ahc_build_transfer_msg(ahc, devinfo);
3862 devinfo->role);
3865 devinfo->role);
3868 devinfo->role);
3887 if (devinfo->role != ROLE_TARGET)
3890 ahc_name(ahc), devinfo->channel,
3891 devinfo->target, devinfo->lun);
3895 ahc_name(ahc), devinfo->channel,
3896 devinfo->target, devinfo->lun);
3899 ahc_construct_ppr(ahc, devinfo, period, offset,
3909 ahc_name(ahc), devinfo->channel,
3910 devinfo->target, devinfo->lun,
3915 ahc_set_width(ahc, devinfo, bus_width,
3918 ahc_set_syncrate(ahc, devinfo,
3935 ahc_handle_devreset(ahc, devinfo,
3949 if (devinfo->role != ROLE_TARGET) {
3956 ahc_abort_scbs(ahc, devinfo->target, devinfo->channel,
3957 devinfo->lun, tag, ROLE_TARGET,
3960 tstate = ahc->enabled_targets[devinfo->our_scsiid];
3964 lstate = tstate->enabled_luns[devinfo->lun];
3967 devinfo->our_scsiid,
4006 ahc_handle_msg_reject(struct ahc_softc *ahc, struct ahc_devinfo *devinfo)
4023 tinfo = ahc_fetch_transinfo(ahc, devinfo->channel,
4024 devinfo->our_scsiid,
4025 devinfo->target, &tstate);
4037 ahc_name(ahc), devinfo->channel,
4038 devinfo->target, devinfo->lun);
4045 ahc_build_transfer_msg(ahc, devinfo);
4053 devinfo->channel, devinfo->target, devinfo->lun);
4054 ahc_set_width(ahc, devinfo, MSG_EXT_WDTR_BUS_8_BIT,
4069 ahc_build_transfer_msg(ahc, devinfo);
4075 ahc_set_syncrate(ahc, devinfo, /*syncrate*/NULL, /*period*/0,
4081 ahc_name(ahc), devinfo->channel,
4082 devinfo->target, devinfo->lun);
4092 devinfo->channel, devinfo->target, devinfo->lun);
4093 ahc_set_tags(ahc, scb->io_ctx, devinfo, AHC_QUEUE_NONE);
4098 ahc_name(ahc), devinfo->channel, devinfo->target,
4099 devinfo->lun, tag_type == MSG_ORDERED_TASK
4101 ahc_set_tags(ahc, scb->io_ctx, devinfo, AHC_QUEUE_BASIC);
4125 &(ahc->untagged_queues[devinfo->target_offset]);
4129 ahc_busy_tcl(ahc, BUILD_TCL(scb->hscb->scsiid, devinfo->lun),
4147 ahc_name(ahc), devinfo->channel, devinfo->target,
4157 ahc_handle_ign_wide_residue(struct ahc_softc *ahc, struct ahc_devinfo *devinfo)
4322 ahc_handle_devreset(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
4331 found = ahc_abort_scbs(ahc, devinfo->target, devinfo->channel,
4332 CAM_LUN_WILDCARD, SCB_LIST_NULL, devinfo->role,
4340 tstate = ahc->enabled_targets[devinfo->our_scsiid];
4349 ahc_queue_lstate_event(ahc, lstate, devinfo->our_scsiid,
4359 ahc_set_width(ahc, devinfo, MSG_EXT_WDTR_BUS_8_BIT,
4361 ahc_set_syncrate(ahc, devinfo, /*syncrate*/NULL,
4366 ahc_send_async(ahc, devinfo->channel, devinfo->target,
4372 message, devinfo->channel, devinfo->target, found);
4377 ahc_setup_target_msgin(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
4390 ahc_build_transfer_msg(ahc, devinfo);
6486 struct ahc_devinfo devinfo;
6497 ahc_compile_devinfo(&devinfo,
6617 ahc_send_async(ahc, devinfo.channel, CAM_TARGET_WILDCARD,
6628 struct ahc_devinfo devinfo;
6630 ahc_compile_devinfo(&devinfo, target, initiator,
6633 ahc_set_width(ahc, &devinfo, MSG_EXT_WDTR_BUS_8_BIT,
6635 ahc_set_syncrate(ahc, &devinfo, /*syncrate*/NULL,