Searched refs:bus_lock (Results 1 – 2 of 2) sorted by relevance
101 # define LOCK_I2C_BUS(bus) spin_lock_irqsave(&(bus->bus_lock),flags);102 # define UNLOCK_I2C_BUS(bus) spin_unlock_irqrestore(&(bus->bus_lock),flags);105 # define LOCK_I2C_BUS(bus) spin_lock(&(bus->bus_lock));106 # define UNLOCK_I2C_BUS(bus) spin_unlock(&(bus->bus_lock));121 spinlock_t bus_lock; member
231 static spinlock_t bus_lock = SPIN_LOCK_UNLOCKED; variable236 spin_lock_irqsave(&bus_lock,flags); in i365_get()242 spin_unlock_irqrestore(&bus_lock,flags); in i365_get()250 spin_lock_irqsave(&bus_lock,flags); in i365_set()255 spin_unlock_irqrestore(&bus_lock,flags); in i365_set()