Lines Matching refs:siop_target

338           struct siop_common_target *siop_target = siop_cmd->siop_target;  in siop_wdtr_neg()  local
342 if (siop_target->status == TARST_WIDE_NEG) { in siop_wdtr_neg()
346 siop_target->flags &= ~TARF_ISWIDE; in siop_wdtr_neg()
350 if (siop_target->flags & TARF_WIDE) { in siop_wdtr_neg()
351 siop_target->flags |= TARF_ISWIDE; in siop_wdtr_neg()
361 siop_target->flags &= ~TARF_ISWIDE; in siop_wdtr_neg()
362 siop_target->status = TARST_OK; in siop_wdtr_neg()
363 siop_target->offset = siop_target->period = 0; in siop_wdtr_neg()
378 if (siop_target->flags & TARF_SYNC) { in siop_wdtr_neg()
379 siop_target->status = TARST_SYNC_NEG; in siop_wdtr_neg()
384 siop_target->status = TARST_OK; in siop_wdtr_neg()
391 && (siop_target->flags & TARF_WIDE)) { in siop_wdtr_neg()
392 siop_target->flags |= TARF_ISWIDE; in siop_wdtr_neg()
395 siop_target->flags &= ~TARF_ISWIDE; in siop_wdtr_neg()
405 siop_target->status = TARST_OK; in siop_wdtr_neg()
406 siop_target->offset = siop_target->period = 0; in siop_wdtr_neg()
408 siop_wdtr_msg(siop_cmd, 0, (siop_target->flags & TARF_ISWIDE) ? in siop_wdtr_neg()
418 struct siop_common_target *siop_target = siop_cmd->siop_target; in siop_ppr_neg() local
431 if (siop_target->status == TARST_PPR_NEG) { in siop_ppr_neg()
440 siop_target->status = TARST_ASYNC; in siop_ppr_neg()
441 siop_target->flags &= ~(TARF_DT | TARF_ISDT); in siop_ppr_neg()
442 siop_target->offset = 0; in siop_ppr_neg()
443 siop_target->period = 0; in siop_ppr_neg()
453 siop_target->offset = 0; in siop_ppr_neg()
454 siop_target->period = 0; in siop_ppr_neg()
462 siop_target->offset = offset; in siop_ppr_neg()
463 siop_target->period = sync; in siop_ppr_neg()
465 siop_target->flags |= TARF_ISDT; in siop_ppr_neg()
468 if ((siop_target->flags & TARF_ISDT) == 0) { in siop_ppr_neg()
476 siop_target->status = TARST_ASYNC; in siop_ppr_neg()
477 siop_target->flags &= ~(TARF_DT | TARF_ISDT); in siop_ppr_neg()
478 siop_target->offset = 0; in siop_ppr_neg()
479 siop_target->period = 0; in siop_ppr_neg()
489 siop_target->status = TARST_ASYNC; in siop_ppr_neg()
492 siop_target->flags |= TARF_ISWIDE; in siop_ppr_neg()
498 (siop_target->offset & SXFER_MO_MASK) << 8; in siop_ppr_neg()
501 siop_target->status = TARST_OK; in siop_ppr_neg()
525 struct siop_common_target *siop_target = siop_cmd->siop_target; in siop_sdtr_neg() local
537 if (siop_target->status == TARST_SYNC_NEG) { in siop_sdtr_neg()
539 siop_target->status = TARST_OK; in siop_sdtr_neg()
551 siop_target->offset = offset; in siop_sdtr_neg()
552 siop_target->period = sync; in siop_sdtr_neg()
584 siop_target->offset = siop_target->period = 0; in siop_sdtr_neg()
602 siop_target->offset = offset; in siop_sdtr_neg()
603 siop_target->period = sync; in siop_sdtr_neg()
626 siop_target->offset = siop_target->period = 0; in siop_sdtr_neg()
635 if (siop_target->status == TARST_OK) in siop_sdtr_neg()
773 if (siop_cmd->siop_target->flags & TARF_ISWIDE) { in siop_ma()
891 if ((siop_cmd->siop_target->flags & TARF_ISWIDE) == 0) { in siop_iwr()
1026 struct siop_common_target *siop_target = sc->targets[target]; in siop_update_xfer_mode() local
1034 if (siop_target->flags & TARF_ISWIDE) in siop_update_xfer_mode()
1036 if (siop_target->period) { in siop_update_xfer_mode()
1037 xm.xm_period = siop_target->period; in siop_update_xfer_mode()
1038 xm.xm_offset = siop_target->offset; in siop_update_xfer_mode()
1041 if (siop_target->flags & TARF_TAG) { in siop_update_xfer_mode()