Lines Matching refs:devinfo
166 struct ahc_devinfo *devinfo);
168 struct ahc_devinfo *devinfo,
172 struct ahc_devinfo *devinfo,
175 struct ahc_devinfo *devinfo);
177 struct ahc_devinfo *devinfo,
180 struct ahc_devinfo *devinfo,
183 struct ahc_devinfo *devinfo,
197 struct ahc_devinfo *devinfo);
199 struct ahc_devinfo *devinfo);
201 struct ahc_devinfo *devinfo);
204 struct ahc_devinfo *devinfo,
210 struct ahc_devinfo *devinfo,
430 struct ahc_devinfo devinfo;
432 ahc_fetch_devinfo(ahc, &devinfo);
466 ahc_print_devinfo(ahc, &devinfo);
517 devinfo.channel,
518 devinfo.our_scsiid,
519 devinfo.target,
565 ahc_update_neg_request(ahc, &devinfo,
569 if (tstate->auto_negotiate & devinfo.target_mask) {
603 ahc_name(ahc), devinfo.channel, devinfo.target);
638 ahc_name(ahc), devinfo.channel, devinfo.target, rejbyte);
647 ahc_handle_ign_wide_residue(ahc, &devinfo);
659 ahc_name(ahc), devinfo.channel, devinfo.target,
670 ahc_name(ahc), devinfo.channel, devinfo.target,
710 if (devinfo.role == ROLE_INITIATOR) {
717 &devinfo,
734 &devinfo,
796 ahc_print_devinfo(ahc, &devinfo);
804 ahc_reset_channel(ahc, devinfo.channel,
892 ahc_name(ahc), devinfo.channel, devinfo.target,
893 devinfo.lun);
1251 struct ahc_devinfo devinfo;
1254 ahc_fetch_devinfo(ahc, &devinfo);
1288 ahc_compile_devinfo(&devinfo,
1294 ahc_handle_devreset(ahc, &devinfo,
1309 devinfo.channel,
1310 devinfo.our_scsiid,
1311 devinfo.target,
1326 ahc_set_width(ahc, &devinfo,
1330 ahc_set_syncrate(ahc, &devinfo,
1395 struct ahc_devinfo devinfo;
1399 ahc_fetch_devinfo(ahc, &devinfo);
1401 devinfo.channel,
1402 devinfo.our_scsiid,
1403 devinfo.target,
1405 ahc_update_neg_request(ahc, &devinfo, tstate,
1849 ahc_update_neg_request(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
1876 tstate->auto_negotiate |= devinfo->target_mask;
1878 tstate->auto_negotiate &= ~devinfo->target_mask;
1892 ahc_set_syncrate(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
1912 tinfo = ahc_fetch_transinfo(ahc, devinfo->channel, devinfo->our_scsiid,
1913 devinfo->target, &tstate);
1956 tstate->ultraenb &= ~devinfo->target_mask;
1960 devinfo->target_mask;
1970 if (tstate->ultraenb & devinfo->target_mask)
1986 ahc_send_async(ahc, devinfo->channel, devinfo->target,
1992 devinfo->target, syncrate->rate,
1998 ahc_name(ahc), devinfo->target);
2003 update_needed += ahc_update_neg_request(ahc, devinfo, tstate,
2019 ahc_set_width(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
2030 tinfo = ahc_fetch_transinfo(ahc, devinfo->channel, devinfo->our_scsiid,
2031 devinfo->target, &tstate);
2056 ahc_send_async(ahc, devinfo->channel, devinfo->target,
2060 ahc_name(ahc), devinfo->target,
2065 update_needed += ahc_update_neg_request(ahc, devinfo, tstate,
2075 ahc_set_tags(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
2078 ahc_platform_set_tags(ahc, devinfo, alg);
2101 struct ahc_devinfo devinfo;
2106 ahc_scb_devinfo(ahc, &devinfo, pending_scb);
2107 tinfo = ahc_fetch_transinfo(ahc, devinfo.channel,
2108 devinfo.our_scsiid,
2109 devinfo.target, &tstate);
2112 if ((tstate->ultraenb & devinfo.target_mask) != 0)
2116 if ((tstate->auto_negotiate & devinfo.target_mask) == 0
2165 ahc_fetch_devinfo(struct ahc_softc *ahc, struct ahc_devinfo *devinfo)
2188 ahc_compile_devinfo(devinfo,
2215 ahc_compile_devinfo(struct ahc_devinfo *devinfo, u_int our_id, u_int target,
2218 devinfo->our_scsiid = our_id;
2219 devinfo->target = target;
2220 devinfo->lun = lun;
2221 devinfo->target_offset = target;
2222 devinfo->channel = channel;
2223 devinfo->role = role;
2225 devinfo->target_offset += 8;
2226 devinfo->target_mask = (0x01 << devinfo->target_offset);
2230 ahc_print_devinfo(struct ahc_softc *ahc, struct ahc_devinfo *devinfo)
2232 printf("%s:%c:%d:%d: ", ahc_name(ahc), devinfo->channel,
2233 devinfo->target, devinfo->lun);
2237 ahc_scb_devinfo(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
2247 ahc_compile_devinfo(devinfo, our_id, SCB_GET_TARGET(ahc, scb),
2271 ahc_setup_initiator_msgout(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
2331 ahc_build_transfer_msg(ahc, devinfo);
2336 devinfo->target_mask);
2357 ahc_build_transfer_msg(struct ahc_softc *ahc, struct ahc_devinfo *devinfo)
2374 tinfo = ahc_fetch_transinfo(ahc, devinfo->channel, devinfo->our_scsiid,
2375 devinfo->target, &tstate);
2385 if (devinfo->role == ROLE_TARGET)
2388 &ppr_options, devinfo->role);
2414 ahc_print_devinfo(ahc, devinfo);
2420 if (devinfo->role == ROLE_TARGET)
2437 devinfo->role);
2439 ahc_construct_ppr(ahc, devinfo, period, offset,
2442 ahc_construct_sdtr(ahc, devinfo, period, offset);
2445 ahc_construct_wdtr(ahc, devinfo, tinfo->goal.width);
2454 ahc_construct_sdtr(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
2467 ahc_name(ahc), devinfo->channel, devinfo->target,
2468 devinfo->lun, period, offset);
2477 ahc_construct_wdtr(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
2487 ahc_name(ahc), devinfo->channel, devinfo->target,
2488 devinfo->lun, bus_width);
2497 ahc_construct_ppr(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
2515 devinfo->channel, devinfo->target, devinfo->lun,
2544 struct ahc_devinfo devinfo;
2552 ahc_fetch_devinfo(ahc, &devinfo);
2565 ahc_print_devinfo(ahc, &devinfo);
2574 ahc_print_devinfo(ahc, &devinfo);
2621 ahc_print_devinfo(ahc, &devinfo);
2641 struct ahc_devinfo devinfo;
2645 ahc_fetch_devinfo(ahc, &devinfo);
2662 ahc_print_devinfo(ahc, &devinfo);
2740 ahc_print_devinfo(ahc, &devinfo);
2773 message_done = ahc_parse_msg(ahc, &devinfo);
2790 ahc_print_devinfo(ahc, &devinfo);
2879 msgdone = ahc_parse_msg(ahc, &devinfo);
2988 ahc_parse_msg(struct ahc_softc *ahc, struct ahc_devinfo *devinfo)
3000 tinfo = ahc_fetch_transinfo(ahc, devinfo->channel, devinfo->our_scsiid,
3001 devinfo->target, &tstate);
3028 response = ahc_handle_msg_reject(ahc, devinfo);
3067 devinfo->role);
3070 devinfo->role);
3075 ahc_name(ahc), devinfo->channel,
3076 devinfo->target, devinfo->lun,
3080 ahc_set_syncrate(ahc, devinfo,
3102 && devinfo->role == ROLE_INITIATOR) {
3105 ahc_name(ahc), devinfo->channel,
3106 devinfo->target, devinfo->lun);
3110 ahc_construct_sdtr(ahc, devinfo,
3143 devinfo->role);
3147 ahc_name(ahc), devinfo->channel,
3148 devinfo->target, devinfo->lun,
3163 ahc_name(ahc), devinfo->channel,
3164 devinfo->target, devinfo->lun,
3173 && devinfo->role == ROLE_INITIATOR) {
3176 ahc_name(ahc), devinfo->channel,
3177 devinfo->target, devinfo->lun);
3181 ahc_construct_wdtr(ahc, devinfo, bus_width);
3186 ahc_set_width(ahc, devinfo, bus_width,
3190 ahc_set_syncrate(ahc, devinfo,
3199 ahc_build_transfer_msg(ahc, devinfo);
3259 devinfo->role);
3262 devinfo->role);
3265 devinfo->role);
3284 if (devinfo->role != ROLE_TARGET)
3287 ahc_name(ahc), devinfo->channel,
3288 devinfo->target, devinfo->lun);
3292 ahc_name(ahc), devinfo->channel,
3293 devinfo->target, devinfo->lun);
3296 ahc_construct_ppr(ahc, devinfo, period, offset,
3306 ahc_name(ahc), devinfo->channel,
3307 devinfo->target, devinfo->lun,
3312 ahc_set_width(ahc, devinfo, bus_width,
3315 ahc_set_syncrate(ahc, devinfo,
3332 ahc_handle_devreset(ahc, devinfo,
3346 if (devinfo->role != ROLE_TARGET) {
3353 ahc_abort_scbs(ahc, devinfo->target, devinfo->channel,
3354 devinfo->lun, tag, ROLE_TARGET,
3357 tstate = ahc->enabled_targets[devinfo->our_scsiid];
3361 lstate = tstate->enabled_luns[devinfo->lun];
3364 devinfo->our_scsiid,
3403 ahc_handle_msg_reject(struct ahc_softc *ahc, struct ahc_devinfo *devinfo)
3420 tinfo = ahc_fetch_transinfo(ahc, devinfo->channel,
3421 devinfo->our_scsiid,
3422 devinfo->target, &tstate);
3434 ahc_name(ahc), devinfo->channel,
3435 devinfo->target, devinfo->lun);
3442 ahc_build_transfer_msg(ahc, devinfo);
3451 devinfo->channel, devinfo->target, devinfo->lun);
3452 ahc_set_width(ahc, devinfo, MSG_EXT_WDTR_BUS_8_BIT,
3467 ahc_build_transfer_msg(ahc, devinfo);
3473 ahc_set_syncrate(ahc, devinfo, /*syncrate*/NULL, /*period*/0,
3480 ahc_name(ahc), devinfo->channel,
3481 devinfodevinfo->lun);
3492 ahc_name(ahc), devinfo->channel,
3493 devinfo->target, devinfo->lun);
3494 ahc_set_tags(ahc, devinfo, AHC_QUEUE_NONE);
3501 ahc_name(ahc), devinfo->channel,
3502 devinfo->target, devinfo->lun,
3505 ahc_set_tags(ahc, devinfo, AHC_QUEUE_BASIC);
3529 &(ahc->untagged_queues[devinfo->target_offset]);
3533 ahc_busy_tcl(ahc, BUILD_TCL(scb->hscb->scsiid, devinfo->lun),
3552 ahc_name(ahc), devinfo->channel, devinfo->target,
3563 struct ahc_devinfo *devinfo)
3728 ahc_handle_devreset(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
3737 found = ahc_abort_scbs(ahc, devinfo->target, devinfo->channel,
3738 CAM_LUN_WILDCARD, SCB_LIST_NULL, devinfo->role,
3746 tstate = ahc->enabled_targets[devinfo->our_scsiid];
3755 ahc_queue_lstate_event(ahc, lstate, devinfo->our_scsiid,
3765 ahc_set_width(ahc, devinfo, MSG_EXT_WDTR_BUS_8_BIT,
3767 ahc_set_syncrate(ahc, devinfo, /*syncrate*/NULL,
3771 ahc_send_async(ahc, devinfo->channel, devinfo->target,
3777 message, devinfo->channel, devinfo->target, found);
3782 ahc_setup_target_msgin(struct ahc_softc *ahc, struct ahc_devinfo *devinfo,
3795 ahc_build_transfer_msg(ahc, devinfo);
6049 struct ahc_devinfo devinfo;
6051 ahc_compile_devinfo(&devinfo, target, initiator,
6054 ahc_set_width(ahc, &devinfo, MSG_EXT_WDTR_BUS_8_BIT,
6056 ahc_set_syncrate(ahc, &devinfo, /*syncrate*/NULL,