Lines Matching defs:ndelay
261 * option. Command responses are not queued when jdelay=0 and ndelay=0. The
7178 int delta_jiff, int ndelay)
7218 if (polled || (ndelay > 0 && ndelay < INCLUSIVE_TIMING_MAX_NS))
7225 delta_jiff = ndelay = 0;
7241 if (delta_jiff > 0 || ndelay > 0) {
7256 } else { /* ndelay has a 4.2 second max */
7257 kt = sdebug_random ? get_random_u32_below((u32)ndelay) :
7258 (u32)ndelay;
7259 if (ndelay < INCLUSIVE_TIMING_MAX_NS) {
7365 module_param_named(ndelay, sdebug_ndelay, int, S_IRUGO | S_IWUSR);
7446 MODULE_PARM_DESC(ndelay, "response delay in nanoseconds (def=0 -> ignore)");
7567 seq_printf(m, "delay=%d, ndelay=%d, max_luns=%d, sector_size=%d %s\n",
7679 /* Returns -EBUSY if ndelay is being changed and commands are queued */
7684 int ndelay, res;
7686 if ((count > 0) && (1 == sscanf(buf, "%d", &ndelay)) &&
7687 (ndelay >= 0) && (ndelay < (1000 * 1000 * 1000))) {
7689 if (sdebug_ndelay != ndelay) {
7705 sdebug_ndelay = ndelay;
7706 sdebug_jdelay = ndelay ? JDELAY_OVERRIDDEN
7716 static DRIVER_ATTR_RW(ndelay);
8481 pr_warn("ndelay must be less than 1 second, ignored\n");
9471 * Skip long delays if ndelay <= 10 microseconds. Otherwise