Lines Matching refs:sg_dev_arr_lock

121 static rwlock_t sg_dev_arr_lock = RW_LOCK_UNLOCKED;  /* Also used to lock  variable
1211 read_lock(&sg_dev_arr_lock); in sg_cmd_done_bh()
1217 read_unlock(&sg_dev_arr_lock); in sg_cmd_done_bh()
1236 read_unlock(&sg_dev_arr_lock); in sg_cmd_done_bh()
1256 read_unlock(&sg_dev_arr_lock); in sg_cmd_done_bh()
1352 write_lock_irqsave(&sg_dev_arr_lock, iflags); in sg_init()
1358 write_unlock_irqrestore(&sg_dev_arr_lock, iflags); in sg_init()
1371 write_unlock_irqrestore(&sg_dev_arr_lock, iflags); in sg_init()
1376 write_unlock_irqrestore(&sg_dev_arr_lock, iflags); in sg_init()
1410 write_lock_irqsave(&sg_dev_arr_lock, iflags); in sg_attach()
1419 write_unlock_irqrestore(&sg_dev_arr_lock, iflags); in sg_attach()
1434 write_unlock_irqrestore(&sg_dev_arr_lock, iflags); in sg_attach()
1447 write_unlock_irqrestore(&sg_dev_arr_lock, iflags); in sg_attach()
1467 write_unlock_irqrestore(&sg_dev_arr_lock, iflags); in sg_attach()
1499 write_lock_irqsave(&sg_dev_arr_lock, iflags); in sg_detach()
1546 write_unlock_irqrestore(&sg_dev_arr_lock, iflags); in sg_detach()
2342 read_lock_irqsave(&sg_dev_arr_lock, iflags); in sg_get_nth_sfp()
2346 read_unlock_irqrestore(&sg_dev_arr_lock, iflags); in sg_get_nth_sfp()
2371 write_lock_irqsave(&sg_dev_arr_lock, iflags); in sg_add_sfp()
2380 write_unlock_irqrestore(&sg_dev_arr_lock, iflags); in sg_add_sfp()
2436 write_lock_irqsave(&sg_dev_arr_lock, iflags); in sg_remove_sfp()
2451 write_unlock_irqrestore(&sg_dev_arr_lock, iflags); in sg_remove_sfp()
2675 read_lock_irqsave(&sg_dev_arr_lock, iflags); in sg_last_dev()
2678 read_unlock_irqrestore(&sg_dev_arr_lock, iflags); in sg_last_dev()
2690 read_lock_irqsave(&sg_dev_arr_lock, iflags); in sg_get_dev()
2693 read_unlock_irqrestore(&sg_dev_arr_lock, iflags); in sg_get_dev()