Searched refs:lock (Results 601 - 625 of 6560) sorted by relevance

<<21222324252627282930>>

/linux-master/drivers/net/wireguard/
H A Dallowedips.c151 struct mutex *lock)
153 struct allowedips_node *node = rcu_dereference_protected(trie, lockdep_is_held(lock));
163 node = rcu_dereference_protected(parent->bit[choose(parent, key)], lockdep_is_held(lock));
182 u8 cidr, struct wg_peer *peer, struct mutex *lock)
199 if (node_placement(*trie, key, cidr, bits, &node, lock)) {
213 down = rcu_dereference_protected(*trie, lockdep_is_held(lock));
216 down = rcu_dereference_protected(node->bit[bit], lockdep_is_held(lock));
258 void wg_allowedips_free(struct allowedips *table, struct mutex *lock) argument
267 lockdep_is_held(lock));
274 lockdep_is_held(lock));
149 node_placement(struct allowedips_node __rcu *trie, const u8 *key, u8 cidr, u8 bits, struct allowedips_node **rnode, struct mutex *lock) argument
181 add(struct allowedips_node __rcu **trie, u8 bits, const u8 *key, u8 cidr, struct wg_peer *peer, struct mutex *lock) argument
281 wg_allowedips_insert_v4(struct allowedips *table, const struct in_addr *ip, u8 cidr, struct wg_peer *peer, struct mutex *lock) argument
292 wg_allowedips_insert_v6(struct allowedips *table, const struct in6_addr *ip, u8 cidr, struct wg_peer *peer, struct mutex *lock) argument
303 wg_allowedips_remove_by_peer(struct allowedips *table, struct wg_peer *peer, struct mutex *lock) argument
[all...]
/linux-master/drivers/gpu/drm/imagination/
H A Dpvr_free_list.c130 * Caller must hold &free_list->lock.
139 lockdep_assert_held(&free_list->lock);
159 mutex_lock(&free_list->lock);
163 mutex_unlock(&free_list->lock);
228 lockdep_assert_held(&free_list->lock);
278 lockdep_assert_held(&free_list->lock);
304 mutex_lock(&free_list->lock);
344 mutex_unlock(&free_list->lock);
355 mutex_unlock(&free_list->lock);
427 mutex_init(&free_list->lock);
[all...]
/linux-master/drivers/iio/magnetometer/
H A Drm3100-core.c86 * This lock is for protecting the consistency of series of i2c
92 struct mutex lock; member in struct:rm3100_data
207 mutex_lock(&data->lock);
219 mutex_unlock(&data->lock);
226 mutex_unlock(&data->lock);
287 mutex_lock(&data->lock);
289 mutex_unlock(&data->lock);
341 mutex_lock(&data->lock);
383 mutex_unlock(&data->lock);
389 mutex_unlock(&data->lock);
[all...]
/linux-master/drivers/platform/surface/aggregator/
H A Dssh_request_layer.c104 spin_lock(&rtl->queue.lock);
107 spin_unlock(&rtl->queue.lock);
113 spin_unlock(&rtl->queue.lock);
121 spin_lock(&rtl->queue.lock);
123 spin_unlock(&rtl->queue.lock);
132 spin_lock(&rtl->pending.lock);
135 spin_unlock(&rtl->pending.lock);
142 spin_unlock(&rtl->pending.lock);
151 spin_lock(&rtl->pending.lock);
154 spin_unlock(&rtl->pending.lock);
[all...]
/linux-master/drivers/net/ethernet/chelsio/cxgb4/
H A Dl2t.c59 rwlock_t lock; member in struct:l2t_data
202 spin_lock(&e->lock);
208 spin_unlock(&e->lock);
214 * Must be called with the entry's lock held.
230 spin_lock_bh(&e->lock);
233 spin_unlock_bh(&e->lock);
239 spin_lock_bh(&e->lock);
242 spin_unlock_bh(&e->lock);
246 spin_unlock_bh(&e->lock);
250 spin_lock_bh(&e->lock);
[all...]
/linux-master/drivers/usb/serial/
H A Doti6858.c171 spinlock_t lock; member in struct:oti6858_private
227 spin_lock_irqsave(&priv->lock, flags);
233 spin_unlock_irqrestore(&priv->lock, flags);
242 spin_unlock_irqrestore(&priv->lock, flags);
247 spin_lock_irqsave(&priv->lock, flags);
251 spin_unlock_irqrestore(&priv->lock, flags);
270 spin_lock_irqsave(&priv->lock, flags);
272 spin_unlock_irqrestore(&priv->lock, flags);
278 spin_unlock_irqrestore(&priv->lock, flags);
280 spin_lock_irqsave(&port->lock, flag
[all...]
/linux-master/fs/btrfs/tests/
H A Dextent-map-tests.c21 write_lock(&em_tree->lock);
40 write_unlock(&em_tree->lock);
81 write_lock(&em_tree->lock);
83 write_unlock(&em_tree->lock);
102 write_lock(&em_tree->lock);
104 write_unlock(&em_tree->lock);
123 write_lock(&em_tree->lock);
125 write_unlock(&em_tree->lock);
177 write_lock(&em_tree->lock);
179 write_unlock(&em_tree->lock);
[all...]
/linux-master/drivers/net/slip/
H A Dslip.c171 spin_lock_bh(&sl->lock);
173 spin_unlock_bh(&sl->lock);
191 spin_unlock_bh(&sl->lock);
258 spin_lock_bh(&sl->lock);
294 spin_unlock_bh(&sl->lock);
427 spin_lock_bh(&sl->lock);
430 spin_unlock_bh(&sl->lock);
439 spin_unlock_bh(&sl->lock);
447 spin_unlock_bh(&sl->lock);
469 spin_lock(&sl->lock);
[all...]
/linux-master/net/ipv4/
H A Dinet_hashtables.c85 * Caller must hold hashbucket lock for this tb with local BH disabled
142 /* Caller must hold hashbucket lock for this tb with local BH disabled */
189 spin_lock(&head->lock);
194 spin_lock(&head2->lock);
202 spin_unlock(&head2->lock);
205 spin_unlock(&head->lock);
232 spin_lock(&head->lock);
233 spin_lock(&head2->lock);
237 spin_unlock(&head2->lock);
238 spin_unlock(&head->lock);
554 spinlock_t *lock = inet_ehash_lockp(hinfo, hash); local
661 spinlock_t *lock; local
801 spinlock_t *lock = inet_ehash_lockp(hashinfo, sk->sk_hash); local
1134 spinlock_t *lock = inet_ehash_lockp(hinfo, sk->sk_hash); local
[all...]
/linux-master/drivers/clk/
H A Dclk-multiplier.c133 if (mult->lock)
134 spin_lock_irqsave(mult->lock, flags);
136 __acquire(mult->lock);
143 if (mult->lock)
144 spin_unlock_irqrestore(mult->lock, flags);
146 __release(mult->lock);
/linux-master/drivers/clk/hisilicon/
H A Dclk-hisi-phase.c25 spinlock_t *lock; member in struct:clk_hisi_phase
76 spin_lock_irqsave(phase->lock, flags);
83 spin_unlock_irqrestore(phase->lock, flags);
95 void __iomem *base, spinlock_t *lock)
113 phase->lock = lock;
93 clk_register_hisi_phase(struct device *dev, const struct hisi_phase_clock *clks, void __iomem *base, spinlock_t *lock) argument
/linux-master/drivers/misc/ibmasm/
H A Dibmasm.h86 spinlock_t *lock; member in struct:command
94 spinlock_t *lock = cmd->lock; local
96 spin_lock_irqsave(lock, flags);
98 spin_unlock_irqrestore(lock, flags);
141 spinlock_t lock; member in struct:service_processor
/linux-master/drivers/rapidio/switches/
H A Didtcps.c133 spin_lock(&rdev->rswitch->lock);
136 spin_unlock(&rdev->rswitch->lock);
151 spin_unlock(&rdev->rswitch->lock);
158 spin_lock(&rdev->rswitch->lock);
160 spin_unlock(&rdev->rswitch->lock);
164 spin_unlock(&rdev->rswitch->lock);
/linux-master/drivers/hwspinlock/
H A Dsun6i_hwspinlock.c63 static int sun6i_hwspinlock_trylock(struct hwspinlock *lock) argument
65 void __iomem *lock_addr = lock->priv;
70 static void sun6i_hwspinlock_unlock(struct hwspinlock *lock) argument
72 void __iomem *lock_addr = lock->priv;
157 priv->bank = devm_kzalloc(&pdev->dev, struct_size(priv->bank, lock, priv->nlocks),
165 hwlock = &priv->bank->lock[i];
/linux-master/drivers/gpu/drm/etnaviv/
H A Detnaviv_iommu.c132 mutex_lock(&global->lock);
142 mutex_unlock(&global->lock);
148 mutex_unlock(&global->lock);
163 mutex_init(&context->lock);
168 mutex_unlock(&global->lock);
173 mutex_unlock(&global->lock);
/linux-master/drivers/mailbox/
H A Dbcm2835-mailbox.c57 spinlock_t lock; member in struct:bcm2835_mbox
85 spin_lock(&mbox->lock);
88 spin_unlock(&mbox->lock);
114 spin_lock(&mbox->lock);
116 spin_unlock(&mbox->lock);
145 spin_lock_init(&mbox->lock);
/linux-master/drivers/usb/usbip/
H A Dusbip_event.c26 spin_lock_irqsave(&ud->lock, flags);
28 spin_unlock_irqrestore(&ud->lock, flags);
35 spin_lock_irqsave(&ud->lock, flags);
37 spin_unlock_irqrestore(&ud->lock, flags);
180 spin_lock_irqsave(&ud->lock, flags);
183 spin_unlock_irqrestore(&ud->lock, flags);
/linux-master/drivers/iio/resolver/
H A Dad2s1200.c33 * @lock: protects both the GPIO pins and the rx buffer.
40 struct mutex lock; member in struct:ad2s1200_state
74 mutex_lock(&st->lock);
84 mutex_unlock(&st->lock);
96 mutex_unlock(&st->lock);
102 mutex_unlock(&st->lock);
144 mutex_init(&st->lock);
/linux-master/mm/
H A Dswap_cgroup.c12 spinlock_t lock; member in struct:swap_cgroup_ctrl
29 * SwapCache(and its swp_entry) is under lock.
31 * Then, we don't need lock around "exchange".
107 spin_lock_irqsave(&ctrl->lock, flags);
113 spin_unlock_irqrestore(&ctrl->lock, flags);
138 spin_lock_irqsave(&ctrl->lock, flags);
151 spin_unlock_irqrestore(&ctrl->lock, flags);
186 spin_lock_init(&ctrl->lock);
/linux-master/sound/firewire/motu/
H A Dmotu-command-dsp-message-parser.c26 spinlock_t lock; member in struct:msg_parser
43 spin_lock_init(&parser->lock);
93 spin_lock_irqsave(&parser->lock, flags);
172 spin_unlock_irqrestore(&parser->lock, flags);
181 spin_lock_irqsave(&parser->lock, flags);
183 spin_unlock_irqrestore(&parser->lock, flags);
/linux-master/drivers/clk/nuvoton/
H A Dclk-ma35d1-divider.c22 spinlock_t *lock; member in struct:ma35d1_adc_clk_div
60 spin_lock_irqsave(dclk->lock, flags);
68 spin_unlock_irqrestore(dclk->lock, flags);
79 struct clk_hw *parent_hw, spinlock_t *lock,
122 div->lock = lock;
78 ma35d1_reg_adc_clkdiv(struct device *dev, const char *name, struct clk_hw *parent_hw, spinlock_t *lock, unsigned long flags, void __iomem *reg, u8 shift, u8 width, u32 mask_bit) argument
/linux-master/drivers/net/ethernet/cavium/liquidio/
H A Dresponse_manager.c37 spin_lock_init(&oct->response_list[i].lock);
79 spin_lock_bh(&ordered_sc_list->lock);
82 spin_unlock_bh(&ordered_sc_list->lock);
181 spin_unlock_bh(&ordered_sc_list->lock);
194 spin_unlock_bh(&ordered_sc_list->lock);
207 (&ordered_sc_list->lock);
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dmpfs.c74 struct mutex lock; /* Synchronize l2 table access */ member in struct:mlx5_mpfs
109 mutex_init(&mpfs->lock);
143 mutex_lock(&mpfs->lock);
176 mutex_unlock(&mpfs->lock);
191 mutex_lock(&mpfs->lock);
208 mutex_unlock(&mpfs->lock);
/linux-master/drivers/usb/typec/mux/
H A Dpi3usb30532.c25 struct mutex lock; /* protects the cached conf register */ member in struct:pi3usb30532
55 mutex_lock(&pi->lock);
71 mutex_unlock(&pi->lock);
83 mutex_lock(&pi->lock);
109 mutex_unlock(&pi->lock);
127 mutex_init(&pi->lock);
/linux-master/drivers/gpio/
H A Dgpio-bcm-kona.c63 raw_spinlock_t lock; member in struct:bcm_kona_gpio
90 raw_spin_lock_irqsave(&kona_gpio->lock, flags);
96 raw_spin_unlock_irqrestore(&kona_gpio->lock, flags);
106 raw_spin_lock_irqsave(&kona_gpio->lock, flags);
112 raw_spin_unlock_irqrestore(&kona_gpio->lock, flags);
136 raw_spin_lock_irqsave(&kona_gpio->lock, flags);
149 raw_spin_unlock_irqrestore(&kona_gpio->lock, flags);
163 raw_spin_lock_irqsave(&kona_gpio->lock, flags);
173 raw_spin_unlock_irqrestore(&kona_gpio->lock, flags);
203 raw_spin_lock_irqsave(&kona_gpio->lock, flag
[all...]

Completed in 702 milliseconds

<<21222324252627282930>>