Lines Matching refs:target

81 static void sym_print_nego_msg(struct sym_hcb *np, int target, char *label, u_char *msg)  in sym_print_nego_msg()  argument
83 struct sym_tcb *tp = &np->target[target]; in sym_print_nego_msg()
915 struct sym_tcb *tp = &np->target[i];
1421 struct sym_tcb *tp = &np->target[cp->target];
1467 sym_print_nego_msg(np, cp->target,
1658 struct sym_tcb *tp = &np->target[cp->target];
1890 struct sym_tcb *tp = &np->target[i];
1944 static void sym_settrans(struct sym_hcb *np, int target, u_char opts, u_char ofs, argument
1949 struct sym_tcb *tp = &np->target[target];
1951 assert(target == (INB(np, nc_sdid) & 0x0f));
2038 if (cp->target != target)
2075 static void sym_setwide(struct sym_hcb *np, int target, u_char wide) argument
2077 struct sym_tcb *tp = &np->target[target];
2080 sym_settrans(np, target, 0, 0, 0, wide, 0, 0);
2104 sym_setsync(struct sym_hcb *np, int target, argument
2107 struct sym_tcb *tp = &np->target[target];
2111 sym_settrans(np, target, 0, ofs, per, wide, div, fak);
2137 sym_setpprot(struct sym_hcb *np, int target, u_char opts, u_char ofs, argument
2140 struct sym_tcb *tp = &np->target[target];
2143 sym_settrans(np, target, opts, ofs, per, wide, div, fak);
2978 sym_dequeue_from_squeue(struct sym_hcb *np, int i, int target, int lun, int task) argument
3000 if ((target == -1 || cp->target == target) &&
3092 sym_dequeue_from_squeue(np, i, cp->target, cp->lun, -1);
3198 int sym_clear_tasks(struct sym_hcb *np, int cam_status, int target, int lun, int task) argument
3221 cp->target != target ||
3287 int target=-1, lun=-1, task; local
3301 tp = &np->target[i];
3304 target = i;
3311 target = i;
3315 if (target != -1)
3323 if (target == -1) {
3329 target = cp->target;
3339 if (target != -1) {
3340 tp = &np->target[target];
3341 np->abrt_sel.sel_id = target;
3393 i = sym_dequeue_from_squeue(np, i, cp->target, cp->lun, -1);
3422 target = INB(np, nc_sdid) & 0xf;
3423 tp = &np->target[target];
3476 if (cp->target != target)
3533 target = INB(np, nc_sdid) & 0xf;
3534 tp = &np->target[target];
3584 sym_dequeue_from_squeue(np, i, target, lun, -1);
3585 sym_clear_tasks(np, DID_ABORT, target, lun, task);
3960 int target = cp->target; local
3964 sym_print_nego_msg(np, target, "sync msgin", np->msgin);
4010 sym_setsync (np, target, ofs, per, div, fak);
4024 sym_print_nego_msg(np, target, "sync msgout", np->msgout);
4032 sym_setsync (np, target, 0, 0, 0, 0);
4073 sym_ppr_nego_check(struct sym_hcb *np, int req, int target) argument
4075 struct sym_tcb *tp = &np->target[target];
4085 sym_print_nego_msg(np, target, "ppr msgin", np->msgin);
4136 sym_setpprot(np, target, opts, ofs, per, wide, div, fak);
4150 sym_print_nego_msg(np, target, "ppr msgout", np->msgout);
4158 sym_setpprot (np, target, 0, 0, 0, 0, 0, 0);
4191 result = sym_ppr_nego_check(np, req, cp->target);
4212 int target = cp->target; local
4216 sym_print_nego_msg(np, target, "wide msgin", np->msgin);
4248 sym_setwide (np, target, wide);
4264 sym_print_nego_msg(np, target, "wide msgout", np->msgout);
4308 sym_print_nego_msg(np, cp->target,
4342 sym_setpprot (np, cp->target, 0, 0, 0, 0, 0, 0);
4353 sym_setsync (np, cp->target, 0, 0, 0, 0);
4356 sym_setwide (np, cp->target, 0);
4382 u_char target = INB(np, nc_sdid) & 0x0f; local
4383 struct sym_tcb *tp = &np->target[target];
4654 struct sym_tcb *tp = &np->target[tn];
4760 cp->target = tn;
4779 struct sym_tcb *tp = &np->target[cp->target];
4975 struct sym_tcb *tp = &np->target[tn];
5059 struct sym_tcb *tp = &np->target[tn];
5106 struct sym_tcb *tp = &np->target[tn];
5157 tp = &np->target[cp->target];
5243 cp->phys.select.sel_id = cp->target;
5281 int sym_reset_scsi_target(struct sym_hcb *np, int target) argument
5285 if (target == np->myaddr || (u_int)target >= SYM_CONF_MAX_TARGET)
5288 tp = &np->target[target];
5385 tp = &np->target[cp->target];
5417 i = sym_dequeue_from_squeue(np, i, cp->target, sdev->lun, -1);
5513 tp = &np->target[cp->target];
5776 np->targtbl[i] = cpu_to_scr(vtobus(&np->target[i]));
5777 np->target[i].head.luntbl_sa =
5779 np->target[i].head.lun0_sa =
5808 int target; local
5832 for (target = 0; target < SYM_CONF_MAX_TARGET ; target++) {
5833 tp = &np->target[target];