Lines Matching refs:uc

938 static void sym_exec_user_command (struct sym_hcb *np, struct sym_usrcmd *uc)
943 switch (uc->cmd) {
948 sym_debug_flags = uc->data;
952 np->verbose = uc->data;
961 if (!((uc->target >> t) & 1))
967 switch (uc->cmd) {
970 if (!uc->data || uc->data >= 255) {
974 } else if (uc->data <= 9 && np->minsync_dt) {
975 if (uc->data < np->minsync_dt)
976 uc->data = np->minsync_dt;
980 tp->tgoal.period = uc->data;
983 if (uc->data < np->minsync)
984 uc->data = np->minsync;
987 tp->tgoal.period = uc->data;
993 tp->tgoal.width = uc->data ? 1 : 0;
998 sym_tune_dev_queuing(tp, l, uc->data);
1014 tp->usrflags = uc->data;
1069 struct sym_usrcmd cmd, *uc = &cmd;
1073 memset(uc, 0, sizeof(*uc));
1079 uc->cmd = UC_SETSYNC;
1081 uc->cmd = UC_SETTAGS;
1083 uc->cmd = UC_SETVERBOSE;
1085 uc->cmd = UC_SETWIDE;
1088 uc->cmd = UC_SETDEBUG;
1091 uc->cmd = UC_SETFLAG;
1093 uc->cmd = UC_RESETDEV;
1095 uc->cmd = UC_CLEARDEV;
1100 printk("sym_user_command: arg_len=%d, cmd=%ld\n", arg_len, uc->cmd);
1107 switch(uc->cmd) {
1117 uc->target = ~0;
1120 uc->target = (1<<target);
1128 switch(uc->cmd) {
1134 GET_INT_ARG(ptr, len, uc->data);
1136 printk("sym_user_command: data=%ld\n", uc->data);
1144 uc->data |= DEBUG_ALLOC;
1146 uc->data |= DEBUG_PHASE;
1148 uc->data |= DEBUG_QUEUE;
1150 uc->data |= DEBUG_RESULT;
1152 uc->data |= DEBUG_SCATTER;
1154 uc->data |= DEBUG_SCRIPT;
1156 uc->data |= DEBUG_TINY;
1158 uc->data |= DEBUG_TIMING;
1160 uc->data |= DEBUG_NEGO;
1162 uc->data |= DEBUG_TAGS;
1164 uc->data |= DEBUG_POINTER;
1170 printk("sym_user_command: data=%ld\n", uc->data);
1178 uc->data &= ~SYM_DISC_ENABLED;
1194 sym_exec_user_command(np, uc);