• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/aic7xxx/

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,
979 struct ahc_devinfo devinfo;
981 ahc_fetch_devinfo(ahc, &devinfo);
1015 ahc_print_devinfo(ahc, &devinfo);
1067 devinfo.channel,
1068 devinfo.our_scsiid,
1069 devinfo.target,
1121 ahc_update_neg_request(ahc, &devinfo,
1125 if (tstate->auto_negotiate & devinfo.target_mask) {
1159 ahc_name(ahc), devinfo.channel, devinfo.target);
1194 ahc_name(ahc), devinfo.channel, devinfo.target, rejbyte);
1203 ahc_handle_ign_wide_residue(ahc, &devinfo);
1215 ahc_name(ahc), devinfo.channel, devinfo.target,
1226 ahc_name(ahc), devinfo.channel, devinfo.target,
1266 if (devinfo.role == ROLE_INITIATOR) {
1274 &devinfo,
1291 &devinfo,
1353 ahc_print_devinfo(ahc, &devinfo);
1361 ahc_reset_channel(ahc, devinfo.channel,
1449 ahc_name(ahc), devinfo.channel, devinfo.target,
1450 devinfo.lun);
1610 struct ahc_devinfo devinfo;
1707 ahc_fetch_devinfo(ahc, &devinfo);
1708 ahc_force_renegotiation(ahc, &devinfo);
1746 struct ahc_devinfo devinfo;
1754 ahc_scb_devinfo(ahc, &devinfo, scb);
1764 ahc_handle_devreset(ahc, &devinfo,
1773 struct ahc_devinfo devinfo;
1812 ahc_compile_devinfo(&devinfo, initiator_role_id,
1851 ahc_compile_devinfo(&devinfo,
1857 ahc_handle_devreset(ahc, &devinfo,
1872 devinfo.channel,
1873 devinfo.our_scsiid,
1874 devinfo.target,
1887 ahc_set_width(ahc, &devinfo,
1899 ahc_set_syncrate(ahc, &devinfo,
1942 ahc_force_renegotiation(ahc, &devinfo);
1964 ahc_force_renegotiation(struct ahc_softc *ahc, struct ahc_devinfo *devinfo)
1970 devinfo->channel,
1971 devinfo->our_scsiid,
1972 devinfo->target,
1974 ahc_update_neg_request(ahc, devinfo, tstate,
2408 ahc_update_neg_request(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
2435 tstate->auto_negotiate |= devinfo->target_mask;
2437 tstate->auto_negotiate &= ~devinfo->target_mask;
2451 ahc_set_syncrate(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
2471 tinfo = ahc_fetch_transinfo(ahc, devinfo->channel, devinfo->our_scsiid,
2472 devinfo->target, &tstate);
2515 tstate->ultraenb &= ~devinfo->target_mask;
2519 devinfo->target_mask;
2529 if (tstate->ultraenb & devinfo->target_mask)
2545 ahc_send_async(ahc, devinfo->channel, devinfo->target,
2551 devinfo->target, syncrate->rate,
2557 ahc_name(ahc), devinfo->target);
2562 update_needed += ahc_update_neg_request(ahc, devinfo, tstate,
2578 ahc_set_width(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
2589 tinfo = ahc_fetch_transinfo(ahc, devinfo->channel, devinfo->our_scsiid,
2590 devinfo->target, &tstate);
2615 ahc_send_async(ahc, devinfo->channel, devinfo->target,
2619 ahc_name(ahc), devinfo->target,
2624 update_needed += ahc_update_neg_request(ahc, devinfo, tstate,
2635 struct ahc_devinfo *devinfo, ahc_queue_alg alg)
2639 ahc_platform_set_tags(ahc, sdev, devinfo, alg);
2640 ahc_send_async(ahc, devinfo->channel, devinfo->target,
2641 devinfo->lun, AC_TRANSFER_NEG);
2664 struct ahc_devinfo devinfo;
2669 ahc_scb_devinfo(ahc, &devinfo, pending_scb);
2670 tinfo = ahc_fetch_transinfo(ahc, devinfo.channel,
2671 devinfo.our_scsiid,
2672 devinfo.target, &tstate);
2675 if ((tstate->ultraenb & devinfo.target_mask) != 0)
2679 if ((tstate->auto_negotiate & devinfo.target_mask) == 0
2728 ahc_fetch_devinfo(struct ahc_softc *ahc, struct ahc_devinfo *devinfo)
2751 ahc_compile_devinfo(devinfo,
2778 ahc_compile_devinfo(struct ahc_devinfo *devinfo, u_int our_id, u_int target,
2781 devinfo->our_scsiid = our_id;
2782 devinfo->target = target;
2783 devinfo->lun = lun;
2784 devinfo->target_offset = target;
2785 devinfo->channel = channel;
2786 devinfo->role = role;
2788 devinfo->target_offset += 8;
2789 devinfo->target_mask = (0x01 << devinfo->target_offset);
2793 ahc_print_devinfo(struct ahc_softc *ahc, struct ahc_devinfo *devinfo)
2795 printk("%s:%c:%d:%d: ", ahc_name(ahc), devinfo->channel,
2796 devinfo->target, devinfo->lun);
2800 ahc_scb_devinfo(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
2810 ahc_compile_devinfo(devinfo, our_id, SCB_GET_TARGET(ahc, scb),
2834 ahc_setup_initiator_msgout(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
2894 ahc_build_transfer_msg(ahc, devinfo);
2899 devinfo->target_mask);
2920 ahc_build_transfer_msg(struct ahc_softc *ahc, struct ahc_devinfo *devinfo)
2937 tinfo = ahc_fetch_transinfo(ahc, devinfo->channel, devinfo->our_scsiid,
2938 devinfo->target, &tstate);
2949 if (devinfo->role == ROLE_TARGET)
2952 &ppr_options, devinfo->role);
2978 ahc_print_devinfo(ahc, devinfo);
2984 if (devinfo->role == ROLE_TARGET)
3001 devinfo->role);
3003 ahc_construct_ppr(ahc, devinfo, period, offset,
3006 ahc_construct_sdtr(ahc, devinfo, period, offset);
3009 ahc_construct_wdtr(ahc, devinfo, tinfo->goal.width);
3018 ahc_construct_sdtr(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
3028 ahc_name(ahc), devinfo->channel, devinfo->target,
3029 devinfo->lun, period, offset);
3038 ahc_construct_wdtr(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
3046 ahc_name(ahc), devinfo->channel, devinfo->target,
3047 devinfo->lun, bus_width);
3056 ahc_construct_ppr(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
3069 devinfo->channel, devinfo->target, devinfo->lun,
3098 struct ahc_devinfo devinfo;
3106 ahc_fetch_devinfo(ahc, &devinfo);
3119 ahc_print_devinfo(ahc, &devinfo);
3128 ahc_print_devinfo(ahc, &devinfo);
3175 ahc_print_devinfo(ahc, &devinfo);
3195 struct ahc_devinfo devinfo;
3199 ahc_fetch_devinfo(ahc, &devinfo);
3216 ahc_print_devinfo(ahc, &devinfo);
3294 ahc_print_devinfo(ahc, &devinfo);
3327 message_done = ahc_parse_msg(ahc, &devinfo);
3344 ahc_print_devinfo(ahc, &devinfo);
3433 msgdone = ahc_parse_msg(ahc, &devinfo);
3538 ahc_parse_msg(struct ahc_softc *ahc, struct ahc_devinfo *devinfo)
3550 tinfo = ahc_fetch_transinfo(ahc, devinfo->channel, devinfo->our_scsiid,
3551 devinfo->target, &tstate);
3578 response = ahc_handle_msg_reject(ahc, devinfo);
3617 devinfo->role);
3620 devinfo->role);
3625 ahc_name(ahc), devinfo->channel,
3626 devinfo->target, devinfo->lun,
3630 ahc_set_syncrate(ahc, devinfo,
3652 && devinfo->role == ROLE_INITIATOR) {
3655 ahc_name(ahc), devinfo->channel,
3656 devinfo->target, devinfo->lun);
3660 ahc_construct_sdtr(ahc, devinfo,
3693 devinfo->role);
3697 ahc_name(ahc), devinfo->channel,
3698 devinfo->target, devinfo->lun,
3713 ahc_name(ahc), devinfo->channel,
3714 devinfo->target, devinfo->lun,
3723 && devinfo->role == ROLE_INITIATOR) {
3726 ahc_name(ahc), devinfo->channel,
3727 devinfo->target, devinfo->lun);
3731 ahc_construct_wdtr(ahc, devinfo, bus_width);
3745 ahc_update_neg_request(ahc, devinfo, tstate,
3747 ahc_set_width(ahc, devinfo, bus_width,
3757 ahc_build_transfer_msg(ahc, devinfo);
3816 devinfo->role);
3819 devinfo->role);
3822 devinfo->role);
3841 if (devinfo->role != ROLE_TARGET)
3844 ahc_name(ahc), devinfo->channel,
3845 devinfo->target, devinfo->lun);
3849 ahc_name(ahc), devinfo->channel,
3850 devinfo->target, devinfo->lun);
3853 ahc_construct_ppr(ahc, devinfo, period, offset,
3863 ahc_name(ahc), devinfo->channel,
3864 devinfo->target, devinfo->lun,
3869 ahc_set_width(ahc, devinfo, bus_width,
3872 ahc_set_syncrate(ahc, devinfo,
3889 ahc_handle_devreset(ahc, devinfo,
3903 if (devinfo->role != ROLE_TARGET) {
3910 ahc_abort_scbs(ahc, devinfo->target, devinfo->channel,
3911 devinfo->lun, tag, ROLE_TARGET,
3914 tstate = ahc->enabled_targets[devinfo->our_scsiid];
3918 lstate = tstate->enabled_luns[devinfo->lun];
3921 devinfo->our_scsiid,
3960 ahc_handle_msg_reject(struct ahc_softc *ahc, struct ahc_devinfo *devinfo)
3977 tinfo = ahc_fetch_transinfo(ahc, devinfo->channel,
3978 devinfo->our_scsiid,
3979 devinfo->target, &tstate);
3991 ahc_name(ahc), devinfo->channel,
3992 devinfo->target, devinfo->lun);
3999 ahc_build_transfer_msg(ahc, devinfo);
4007 devinfo->channel, devinfo->target, devinfo->lun);
4008 ahc_set_width(ahc, devinfo, MSG_EXT_WDTR_BUS_8_BIT,
4023 ahc_build_transfer_msg(ahc, devinfo);
4029 ahc_set_syncrate(ahc, devinfo, /*syncrate*/NULL, /*period*/0,
4035 ahc_name(ahc), devinfo->channel,
4036 devinfo->target, devinfo->lun);
4046 devinfo->channel, devinfo->target, devinfo->lun);
4047 ahc_set_tags(ahc, scb->io_ctx, devinfo, AHC_QUEUE_NONE);
4052 ahc_name(ahc), devinfo->channel, devinfo->target,
4053 devinfo->lun, tag_type == MSG_ORDERED_TASK
4055 ahc_set_tags(ahc, scb->io_ctx, devinfo, AHC_QUEUE_BASIC);
4079 &(ahc->untagged_queues[devinfo->target_offset]);
4083 ahc_busy_tcl(ahc, BUILD_TCL(scb->hscb->scsiid, devinfo->lun),
4101 ahc_name(ahc), devinfo->channel, devinfo->target,
4111 ahc_handle_ign_wide_residue(struct ahc_softc *ahc, struct ahc_devinfo *devinfo)
4272 ahc_handle_devreset(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
4281 found = ahc_abort_scbs(ahc, devinfo->target, devinfo->channel,
4282 CAM_LUN_WILDCARD, SCB_LIST_NULL, devinfo->role,
4290 tstate = ahc->enabled_targets[devinfo->our_scsiid];
4299 ahc_queue_lstate_event(ahc, lstate, devinfo->our_scsiid,
4309 ahc_set_width(ahc, devinfo, MSG_EXT_WDTR_BUS_8_BIT,
4311 ahc_set_syncrate(ahc, devinfo, /*syncrate*/NULL,
4316 ahc_send_async(ahc, devinfo->channel, devinfo->target,
4322 message, devinfo->channel, devinfo->target, found);
4327 ahc_setup_target_msgin(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
4340 ahc_build_transfer_msg(ahc, devinfo);
6430 struct ahc_devinfo devinfo;
6441 ahc_compile_devinfo(&devinfo,
6551 ahc_send_async(ahc, devinfo.channel, CAM_TARGET_WILDCARD,
6562 struct ahc_devinfo devinfo;
6564 ahc_compile_devinfo(&devinfo, target, initiator,
6567 ahc_set_width(ahc, &devinfo, MSG_EXT_WDTR_BUS_8_BIT,
6569 ahc_set_syncrate(ahc, &devinfo, /*syncrate*/NULL,