• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/kernel/

Lines Matching defs:hlock

404 static void print_lock(struct held_lock *hlock)
406 print_lock_name(hlock->class);
408 print_ip_sym(hlock->acquire_ip);
1023 struct held_lock *hlock;
1042 hlock = curr->held_locks + depth-1;
1047 if (hlock->read != 2) {
1048 if (!check_prev_add(curr, hlock, next, distance))
1056 if (!hlock->trylock)
1383 struct held_lock *hlock, *prev_hlock = NULL;
1388 hlock = curr->held_locks + i;
1389 if (chain_key != hlock->prev_chain_key) {
1394 (unsigned long long)hlock->prev_chain_key);
1398 id = hlock->class - lock_classes;
1403 hlock->irq_context))
1406 prev_hlock = hlock;
1792 struct held_lock *hlock;
1796 hlock = curr->held_locks + i;
1799 if (hlock->read)
1804 if (hlock->read)
1809 if (!mark_lock(curr, hlock, usage_bit))
2009 struct held_lock *hlock;
2055 hlock = curr->held_locks + depth;
2057 hlock->class = class;
2058 hlock->acquire_ip = ip;
2059 hlock->instance = lock;
2060 hlock->trylock = trylock;
2061 hlock->read = read;
2062 hlock->check = check;
2063 hlock->hardirqs_off = hardirqs_off;
2075 if (!mark_lock(curr, hlock,
2079 if (!mark_lock(curr, hlock,
2084 if (!mark_lock(curr, hlock, LOCK_USED_IN_HARDIRQ))
2087 if (!mark_lock(curr, hlock, LOCK_USED_IN_SOFTIRQ))
2093 if (!mark_lock(curr, hlock,
2097 if (!mark_lock(curr, hlock,
2101 if (!mark_lock(curr, hlock,
2105 if (!mark_lock(curr, hlock,
2112 if (!mark_lock(curr, hlock, LOCK_USED))
2136 hlock->prev_chain_key = chain_key;
2142 hlock->irq_context = 2*(curr->hardirq_context ? 1 : 0) +
2153 if (prev_hlock->irq_context != hlock->irq_context) {
2185 int ret = check_deadlock(curr, hlock, lock, read);
2195 hlock->read = 2;
2201 if (!check_prevs_add(curr, hlock))
2282 struct held_lock *hlock, *prev_hlock;
2296 hlock = curr->held_locks + i;
2300 if (prev_hlock && prev_hlock->irq_context != hlock->irq_context)
2302 if (hlock->instance == lock)
2304 prev_hlock = hlock;
2310 * We have the right lock to unlock, 'hlock' points to it.
2315 curr->curr_chain_key = hlock->prev_chain_key;
2318 hlock = curr->held_locks + i;
2319 if (!__lock_acquire(hlock->instance,
2320 hlock->class->subclass, hlock->trylock,
2321 hlock->read, hlock->check, hlock->hardirqs_off,
2322 hlock->acquire_ip))
2340 struct held_lock *hlock;
2347 hlock = curr->held_locks + depth;
2352 if (hlock->instance != lock)
2356 if (DEBUG_LOCKS_WARN_ON(!depth && (hlock->prev_chain_key != 0)))
2359 curr->curr_chain_key = hlock->prev_chain_key;
2362 hlock->prev_chain_key = 0;
2363 hlock->class = NULL;
2364 hlock->acquire_ip = 0;
2365 hlock->irq_context = 0;
2642 const void *mem_to, struct held_lock *hlock)
2654 print_lock(hlock);
2670 struct held_lock *hlock;
2679 hlock = curr->held_locks + i;
2681 lock_from = (void *)hlock->instance;
2682 lock_to = (void *)(hlock->instance + 1);
2688 print_freed_lock_bug(curr, mem_from, mem_to, hlock);