/linux-master/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | l2t.c | 50 * Module locking notes: There is a RW lock protecting the L2 table as a 52 * under the protection of the table lock, individual entry changes happen 53 * while holding that entry's spinlock. The table lock nests outside the 54 * entry locks. Allocations of new entries take the table lock as writers so 56 * take the table lock as readers so multiple entries can be updated in 121 * Must be called with the entry's lock held. 135 spin_lock_bh(&e->lock); 138 spin_unlock_bh(&e->lock); 143 spin_lock_bh(&e->lock); 146 spin_unlock_bh(&e->lock); [all...] |
/linux-master/kernel/locking/ |
H A D | semaphore.c | 17 * have to disable interrupts when taking the lock. It turns out various 35 #include <trace/events/lock.h> 59 raw_spin_lock_irqsave(&sem->lock, flags); 64 raw_spin_unlock_irqrestore(&sem->lock, flags); 83 raw_spin_lock_irqsave(&sem->lock, flags); 88 raw_spin_unlock_irqrestore(&sem->lock, flags); 110 raw_spin_lock_irqsave(&sem->lock, flags); 115 raw_spin_unlock_irqrestore(&sem->lock, flags); 139 raw_spin_lock_irqsave(&sem->lock, flags); 143 raw_spin_unlock_irqrestore(&sem->lock, flag [all...] |
/linux-master/sound/firewire/motu/ |
H A D | motu-hwdep.c | 13 * 3.lock/unlock streaming 34 spin_lock_irq(&motu->lock); 38 spin_unlock_irq(&motu->lock); 43 spin_lock_irq(&motu->lock); 51 spin_unlock_irq(&motu->lock); 60 spin_unlock_irq(&motu->lock); 70 spin_unlock_irq(&motu->lock); 91 spin_unlock_irq(&motu->lock); 107 spin_lock_irq(&motu->lock); 112 spin_unlock_irq(&motu->lock); [all...] |
/linux-master/drivers/clk/imx/ |
H A D | clk-composite-93.c | 52 if (gate->lock) 53 spin_lock_irqsave(gate->lock, flags); 66 if (gate->lock) 67 spin_unlock_irqrestore(gate->lock, flags); 119 if (divider->lock) 120 spin_lock_irqsave(divider->lock, flags); 129 if (divider->lock) 130 spin_unlock_irqrestore(divider->lock, flags); 155 if (mux->lock) 156 spin_lock_irqsave(mux->lock, flag [all...] |
/linux-master/drivers/ptp/ |
H A D | ptp_vclock.c | 51 if (mutex_lock_interruptible(&vclock->lock)) 55 mutex_unlock(&vclock->lock); 64 if (mutex_lock_interruptible(&vclock->lock)) 67 mutex_unlock(&vclock->lock); 78 if (mutex_lock_interruptible(&vclock->lock)) 81 mutex_unlock(&vclock->lock); 101 if (mutex_lock_interruptible(&vclock->lock)) 104 mutex_unlock(&vclock->lock); 117 if (mutex_lock_interruptible(&vclock->lock)) 120 mutex_unlock(&vclock->lock); [all...] |
/linux-master/drivers/acpi/ |
H A D | acpi_dbg.c | 51 struct mutex lock; member in struct:acpi_aml_io 129 mutex_lock(&acpi_aml_io.lock); 131 mutex_unlock(&acpi_aml_io.lock); 139 mutex_lock(&acpi_aml_io.lock); 141 mutex_unlock(&acpi_aml_io.lock); 153 mutex_lock(&acpi_aml_io.lock); 155 mutex_unlock(&acpi_aml_io.lock); 163 mutex_lock(&acpi_aml_io.lock); 166 mutex_unlock(&acpi_aml_io.lock); 174 mutex_lock(&acpi_aml_io.lock); [all...] |
/linux-master/drivers/net/ethernet/ti/ |
H A D | davinci_cpdma.c | 101 spinlock_t lock; member in struct:cpdma_ctlr 114 spinlock_t lock; member in struct:cpdma_chan 353 * Has to be called under ctlr lock 381 spin_lock_irqsave(&chan->lock, flags); 383 spin_unlock_irqrestore(&chan->lock, flags); 387 spin_unlock_irqrestore(&chan->lock, flags); 398 spin_unlock_irqrestore(&chan->lock, flags); 522 spin_lock_init(&ctlr->lock); 541 spin_lock_irqsave(&ctlr->lock, flags); 543 spin_unlock_irqrestore(&ctlr->lock, flag [all...] |
/linux-master/drivers/misc/mchp_pci1xxxx/ |
H A D | mchp_pci1xxxx_gpio.c | 41 spinlock_t lock; member in struct:pci1xxxx_gpio 81 spin_lock_irqsave(&priv->lock, flags); 84 spin_unlock_irqrestore(&priv->lock, flags); 103 spin_lock_irqsave(&priv->lock, flags); 112 spin_unlock_irqrestore(&priv->lock, flags); 123 spin_lock_irqsave(&priv->lock, flags); 125 spin_unlock_irqrestore(&priv->lock, flags); 135 spin_lock_irqsave(&priv->lock, flags); 154 spin_unlock_irqrestore(&priv->lock, flags); 166 spin_lock_irqsave(&priv->lock, flag [all...] |
/linux-master/drivers/net/ethernet/cavium/liquidio/ |
H A D | octeon_mailbox.c | 41 spin_lock(&mbox->lock); 46 spin_unlock(&mbox->lock); 83 spin_unlock(&mbox->lock); 117 spin_unlock(&mbox->lock); 139 spin_lock_irqsave(&mbox->lock, flags); 143 spin_unlock_irqrestore(&mbox->lock, flags); 149 spin_unlock_irqrestore(&mbox->lock, flags); 159 spin_unlock_irqrestore(&mbox->lock, flags); 190 spin_lock_irqsave(&mbox->lock, flags); 204 spin_unlock_irqrestore(&mbox->lock, flag [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | uar.c | 168 mutex_lock(&mdev->priv.bfregs.reg_head.lock); 180 mutex_unlock(&mdev->priv.bfregs.reg_head.lock); 188 mutex_lock(&mdev->priv.bfregs.reg_head.lock); 190 mutex_unlock(&mdev->priv.bfregs.reg_head.lock); 212 struct mutex *lock; /* pointer to right mutex */ local 218 lock = &bfregs->wc_head.lock; 221 lock = &bfregs->reg_head.lock; 223 mutex_lock(lock); 293 struct mutex *lock; /* pointer to right mutex */ local [all...] |
/linux-master/fs/lockd/ |
H A D | svc4proc.c | 28 struct nlm_lock *lock = &argp->lock; local 35 if (lock->lock_start > OFFSET_MAX || 36 (lock->lock_len && ((lock->lock_len - 1) > (OFFSET_MAX - lock->lock_start)))) 40 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) 47 int mode = lock_to_openmode(&lock->fl); 49 error = nlm_lookup_file(rqstp, &file, lock); [all...] |
H A D | svcsubs.c | 74 int lock_to_openmode(struct file_lock *lock) argument 76 return lock_is_write(lock) ? O_WRONLY : O_RDONLY; 106 struct nlm_lock *lock) 113 nlm_debug_print_fh("nlm_lookup_file", &lock->fh); 115 hash = file_hash(&lock->fh); 116 mode = lock_to_openmode(&lock->fl); 122 if (!nfs_compare_fh(&file->f_handle, &lock->fh)) { 128 nlm_debug_print_fh("creating file for", &lock->fh); 135 memcpy(&file->f_handle, &lock->fh, sizeof(struct nfs_fh)); 181 struct file_lock lock; local 105 nlm_lookup_file(struct svc_rqst *rqstp, struct nlm_file **result, struct nlm_lock *lock) argument [all...] |
/linux-master/drivers/pci/endpoint/ |
H A D | pci-epc-core.c | 155 mutex_lock(&epc->lock); 157 mutex_unlock(&epc->lock); 174 mutex_lock(&epc->lock); 176 mutex_unlock(&epc->lock); 196 mutex_lock(&epc->lock); 198 mutex_unlock(&epc->lock); 228 mutex_lock(&epc->lock); 230 mutex_unlock(&epc->lock); 272 mutex_lock(&epc->lock); 276 mutex_unlock(&epc->lock); [all...] |
/linux-master/drivers/usb/serial/ |
H A D | cypress_m8.c | 92 spinlock_t lock; /* private lock */ member in struct:cypress_private 363 spin_lock_irqsave(&priv->lock, flags); 366 spin_unlock_irqrestore(&priv->lock, flags); 401 spin_lock_irqsave(&priv->lock, flags); 406 spin_unlock_irqrestore(&priv->lock, flags); 409 spin_lock_irqsave(&priv->lock, flags); 411 spin_unlock_irqrestore(&priv->lock, flags); 423 spin_lock_irqsave(&priv->lock, flags); 425 spin_unlock_irqrestore(&priv->lock, flag [all...] |
/linux-master/drivers/usb/gadget/legacy/ |
H A D | inode.c | 122 spinlock_t lock; member in struct:dev_data 125 enum ep0_state state; /* P: lock */ 181 spin_lock_init (&dev->lock); 198 struct mutex lock; member in struct:ep_data 202 /* must hold dev->lock before accessing ep or req */ 294 * still need dev->lock to use epdata->ep. 302 if (!mutex_trylock(&epdata->lock)) 306 mutex_unlock(&epdata->lock); 314 val = mutex_lock_interruptible(&epdata->lock); 332 mutex_unlock(&epdata->lock); [all...] |
/linux-master/include/media/ |
H A D | media-request.h | 60 * @lock: Serializes access to this struct 72 spinlock_t lock; member in struct:media_request 92 spin_lock_irqsave(&req->lock, flags); 97 spin_unlock_irqrestore(&req->lock, flags); 115 spin_lock_irqsave(&req->lock, flags); 118 spin_unlock_irqrestore(&req->lock, flags); 137 spin_lock_irqsave(&req->lock, flags); 145 spin_unlock_irqrestore(&req->lock, flags); 163 spin_lock_irqsave(&req->lock, flags); 167 spin_unlock_irqrestore(&req->lock, flag [all...] |
/linux-master/drivers/dma/ |
H A D | virt-dma.h | 18 /* protected by vc.lock */ 27 spinlock_t lock; member in struct:virt_dma_chan 29 /* protected by vc.lock */ 69 spin_lock_irqsave(&vc->lock, flags); 71 spin_unlock_irqrestore(&vc->lock, flags); 80 * vc.lock must be held by caller 92 * vc.lock must be held by caller 119 spin_lock_irqsave(&vc->lock, flags); 121 spin_unlock_irqrestore(&vc->lock, flags); 143 * vc.lock mus [all...] |
/linux-master/drivers/clk/tegra/ |
H A D | clk-divider.c | 92 if (divider->lock) 93 spin_lock_irqsave(divider->lock, flags); 111 if (divider->lock) 112 spin_unlock_irqrestore(divider->lock, flags); 137 u8 frac_width, spinlock_t *lock) 160 divider->lock = lock; 180 void __iomem *reg, spinlock_t *lock) 185 mc_div_table, lock); 134 tegra_clk_register_divider(const char *name, const char *parent_name, void __iomem *reg, unsigned long flags, u8 clk_divider_flags, u8 shift, u8 width, u8 frac_width, spinlock_t *lock) argument 179 tegra_clk_register_mc(const char *name, const char *parent_name, void __iomem *reg, spinlock_t *lock) argument
|
/linux-master/drivers/clk/ |
H A D | clk-xgene.c | 50 spinlock_t *lock; member in struct:xgene_clk_pll 126 u32 type, spinlock_t *lock, int version) 145 apmclk->lock = lock; 211 * @lock: register lock 227 spinlock_t *lock; member in struct:xgene_clk_pmd 244 if (fd->lock) 245 spin_lock_irqsave(fd->lock, flags); 247 __acquire(fd->lock); 123 xgene_register_clk_pll(struct device *dev, const char *name, const char *parent_name, unsigned long flags, void __iomem *reg, u32 pll_offset, u32 type, spinlock_t *lock, int version) argument 340 xgene_register_clk_pmd(struct device *dev, const char *name, const char *parent_name, unsigned long flags, void __iomem *reg, u8 shift, u8 width, u64 denom, u32 clk_flags, spinlock_t *lock) argument 437 spinlock_t *lock; member in struct:xgene_clk 624 xgene_register_clk(struct device *dev, const char *name, const char *parent_name, struct xgene_dev_parameters *parameters, spinlock_t *lock) argument [all...] |
/linux-master/drivers/clk/stm32/ |
H A D | clk-stm32-core.h | 55 spinlock_t *lock, 95 spinlock_t *lock; /* spin lock */ member in struct:clk_stm32_mux 105 spinlock_t *lock; /* spin lock */ member in struct:clk_stm32_gate 115 spinlock_t *lock; /* spin lock */ member in struct:clk_stm32_div 127 spinlock_t *lock; /* spin lock */ member in struct:clk_stm32_composite 142 spinlock_t *lock, [all...] |
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_spin_lock.c | 10 struct bpf_spin_lock lock; member in struct:hmap_elem 22 struct bpf_spin_lock lock; member in struct:cls_elem 33 struct bpf_spin_lock lock; member in struct:bpf_vqueue 70 bpf_spin_lock(&val->lock); 77 bpf_spin_unlock(&val->lock); 84 bpf_spin_lock(&q->lock); 91 bpf_spin_unlock(&q->lock); 97 bpf_spin_lock(&cls->lock); 99 bpf_spin_unlock(&cls->lock);
|
/linux-master/drivers/thermal/ |
H A D | thermal_helpers.c | 50 mutex_lock(&tz->lock); 51 mutex_lock(&cdev->lock); 62 mutex_unlock(&cdev->lock); 63 mutex_unlock(&tz->lock); 79 * The function must be called under tz->lock. 89 lockdep_assert_held(&tz->lock); 133 mutex_lock(&tz->lock); 143 mutex_unlock(&tz->lock); 197 mutex_lock(&cdev->lock); 202 mutex_unlock(&cdev->lock); [all...] |
/linux-master/arch/sparc/kernel/ |
H A D | ebus.c | 76 spin_lock_irqsave(&p->lock, flags); 79 spin_unlock_irqrestore(&p->lock, flags); 135 spin_lock_irqsave(&p->lock, flags); 139 spin_unlock_irqrestore(&p->lock, flags); 141 spin_lock_irqsave(&p->lock, flags); 145 spin_unlock_irqrestore(&p->lock, flags); 162 spin_lock_irqsave(&p->lock, flags); 169 spin_unlock_irqrestore(&p->lock, flags); 185 spin_lock_irqsave(&p->lock, flags); 199 spin_unlock_irqrestore(&p->lock, flag [all...] |
/linux-master/fs/orangefs/ |
H A D | waitqueue.c | 23 __acquires(op->lock); 25 __releases(op->lock); 113 spin_lock(&op->lock); 126 spin_unlock(&op->lock); 155 spin_unlock(&op->lock); 228 spin_lock(&op->lock); 237 spin_unlock(&op->lock); 251 __releases(op->lock) 257 * Called with op->lock held. 269 spin_unlock(&op->lock); [all...] |
/linux-master/drivers/gpu/ipu-v3/ |
H A D | ipu-vdi.c | 12 spinlock_t lock; member in struct:ipu_vdi 78 spin_lock_irqsave(&vdi->lock, flags); 87 spin_unlock_irqrestore(&vdi->lock, flags); 96 spin_lock_irqsave(&vdi->lock, flags); 116 spin_unlock_irqrestore(&vdi->lock, flags); 125 spin_lock_irqsave(&vdi->lock, flags); 149 spin_unlock_irqrestore(&vdi->lock, flags); 157 spin_lock_irqsave(&vdi->lock, flags); 160 spin_unlock_irqrestore(&vdi->lock, flags); 168 spin_lock_irqsave(&vdi->lock, flag [all...] |