Lines Matching refs:lock
68 rwlock_t lock; member
206 spin_lock(&e->lock); in do_l2t_write_rpl()
212 spin_unlock(&e->lock); in do_l2t_write_rpl()
239 spin_lock_bh(&e->lock); in cxgb4_l2t_send()
242 spin_unlock_bh(&e->lock); in cxgb4_l2t_send()
247 spin_lock_bh(&e->lock); in cxgb4_l2t_send()
250 spin_unlock_bh(&e->lock); in cxgb4_l2t_send()
254 spin_unlock_bh(&e->lock); in cxgb4_l2t_send()
258 spin_lock_bh(&e->lock); in cxgb4_l2t_send()
261 spin_unlock_bh(&e->lock); in cxgb4_l2t_send()
312 spin_lock_bh(&e->lock); in t4_l2e_free()
326 spin_unlock_bh(&e->lock); in t4_l2e_free()
347 spin_lock(&e->lock); /* avoid race with t4_l2t_free */ in reuse_entry()
358 spin_unlock(&e->lock); in reuse_entry()
383 write_lock_bh(&d->lock); in cxgb4_l2t_get()
396 spin_lock(&e->lock); /* avoid race with t4_l2t_free */ in cxgb4_l2t_get()
410 spin_unlock(&e->lock); in cxgb4_l2t_get()
413 write_unlock_bh(&d->lock); in cxgb4_l2t_get()
486 read_lock_bh(&d->lock); in t4_l2t_update()
489 spin_lock(&e->lock); in t4_l2t_update()
492 spin_unlock(&e->lock); in t4_l2t_update()
495 read_unlock_bh(&d->lock); in t4_l2t_update()
499 read_unlock(&d->lock); in t4_l2t_update()
519 spin_unlock_bh(&e->lock); in t4_l2t_update()
533 write_lock_bh(&d->lock); in t4_l2t_alloc_switching()
536 spin_lock(&e->lock); /* avoid race with t4_l2t_free */ in t4_l2t_alloc_switching()
539 spin_unlock(&e->lock); in t4_l2t_alloc_switching()
541 write_unlock_bh(&d->lock); in t4_l2t_alloc_switching()
568 rwlock_init(&d->lock); in t4_init_l2t()
573 spin_lock_init(&d->l2tab[i].lock); in t4_init_l2t()
625 spin_lock_bh(&e->lock); in l2t_seq_show()
635 spin_unlock_bh(&e->lock); in l2t_seq_show()