Home
last modified time | relevance | path

Searched refs:lc (Results 1 – 25 of 189) sorted by relevance

12345678

/kernel/linux/linux-5.10/lib/
Dlru_cache.c29 BUG_ON(!lc); \
30 BUG_ON(!lc->nr_elements); \
31 BUG_ON(test_and_set_bit(__LC_PARANOIA, &lc->flags)); \
35 clear_bit_unlock(__LC_PARANOIA, &lc->flags); \
39 #define PARANOIA_LC_ELEMENT(lc, e) do { \ argument
40 struct lru_cache *lc_ = (lc); \
55 int lc_try_lock(struct lru_cache *lc) in lc_try_lock() argument
59 val = cmpxchg(&lc->flags, 0, LC_LOCKED); in lc_try_lock()
68 old = lc->flags & LC_PARANOIA; in lc_try_lock()
70 val = cmpxchg(&lc->flags, old, new); in lc_try_lock()
[all …]
/kernel/linux/linux-4.19/lib/
Dlru_cache.c41 BUG_ON(!lc); \
42 BUG_ON(!lc->nr_elements); \
43 BUG_ON(test_and_set_bit(__LC_PARANOIA, &lc->flags)); \
47 clear_bit_unlock(__LC_PARANOIA, &lc->flags); \
51 #define PARANOIA_LC_ELEMENT(lc, e) do { \ argument
52 struct lru_cache *lc_ = (lc); \
67 int lc_try_lock(struct lru_cache *lc) in lc_try_lock() argument
71 val = cmpxchg(&lc->flags, 0, LC_LOCKED); in lc_try_lock()
80 old = lc->flags & LC_PARANOIA; in lc_try_lock()
82 val = cmpxchg(&lc->flags, old, new); in lc_try_lock()
[all …]
/kernel/linux/linux-4.19/drivers/md/
Ddm-log.c294 static int rw_header(struct log_c *lc, int op) in rw_header() argument
296 lc->io_req.bi_op = op; in rw_header()
297 lc->io_req.bi_op_flags = 0; in rw_header()
299 return dm_io(&lc->io_req, 1, &lc->header_location, NULL); in rw_header()
302 static int flush_header(struct log_c *lc) in flush_header() argument
305 .bdev = lc->header_location.bdev, in flush_header()
310 lc->io_req.bi_op = REQ_OP_WRITE; in flush_header()
311 lc->io_req.bi_op_flags = REQ_PREFLUSH; in flush_header()
313 return dm_io(&lc->io_req, 1, &null_location, NULL); in flush_header()
369 struct log_c *lc; in create_log_context() local
[all …]
Ddm-log-userspace-base.c84 static int userspace_do_request(struct log_c *lc, const char *uuid, in userspace_do_request() argument
96 r = dm_consult_userspace(uuid, lc->luid, request_type, data, in userspace_do_request()
107 r = dm_consult_userspace(uuid, lc->luid, DM_ULOG_CTR, in userspace_do_request()
108 lc->usr_argv_str, in userspace_do_request()
109 strlen(lc->usr_argv_str) + 1, in userspace_do_request()
115 r = dm_consult_userspace(uuid, lc->luid, DM_ULOG_RESUME, NULL, in userspace_do_request()
159 struct log_c *lc = container_of(work, struct log_c, flush_log_work.work); in do_flush() local
161 atomic_set(&lc->sched_flush, 0); in do_flush()
163 r = userspace_do_request(lc, lc->uuid, DM_ULOG_FLUSH, NULL, 0, NULL, NULL); in do_flush()
166 dm_table_event(lc->ti->table); in do_flush()
[all …]
Ddm-log-writes.c137 static inline sector_t bio_to_dev_sectors(struct log_writes_c *lc, in bio_to_dev_sectors() argument
140 return sectors >> (lc->sectorshift - SECTOR_SHIFT); in bio_to_dev_sectors()
143 static inline sector_t dev_to_bio_sectors(struct log_writes_c *lc, in dev_to_bio_sectors() argument
146 return sectors << (lc->sectorshift - SECTOR_SHIFT); in dev_to_bio_sectors()
149 static void put_pending_block(struct log_writes_c *lc) in put_pending_block() argument
151 if (atomic_dec_and_test(&lc->pending_blocks)) { in put_pending_block()
153 if (waitqueue_active(&lc->wait)) in put_pending_block()
154 wake_up(&lc->wait); in put_pending_block()
158 static void put_io_block(struct log_writes_c *lc) in put_io_block() argument
160 if (atomic_dec_and_test(&lc->io_blocks)) { in put_io_block()
[all …]
Ddm-linear.c31 struct linear_c *lc; in linear_ctr() local
41 lc = kmalloc(sizeof(*lc), GFP_KERNEL); in linear_ctr()
42 if (lc == NULL) { in linear_ctr()
52 lc->start = tmp; in linear_ctr()
54 ret = dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), &lc->dev); in linear_ctr()
65 ti->private = lc; in linear_ctr()
69 kfree(lc); in linear_ctr()
75 struct linear_c *lc = (struct linear_c *) ti->private; in linear_dtr() local
77 dm_put_device(ti, lc->dev); in linear_dtr()
78 kfree(lc); in linear_dtr()
[all …]
/kernel/linux/linux-5.10/drivers/md/
Ddm-log.c294 static int rw_header(struct log_c *lc, int op) in rw_header() argument
296 lc->io_req.bi_op = op; in rw_header()
297 lc->io_req.bi_op_flags = 0; in rw_header()
299 return dm_io(&lc->io_req, 1, &lc->header_location, NULL); in rw_header()
302 static int flush_header(struct log_c *lc) in flush_header() argument
305 .bdev = lc->header_location.bdev, in flush_header()
310 lc->io_req.bi_op = REQ_OP_WRITE; in flush_header()
311 lc->io_req.bi_op_flags = REQ_PREFLUSH; in flush_header()
313 return dm_io(&lc->io_req, 1, &null_location, NULL); in flush_header()
369 struct log_c *lc; in create_log_context() local
[all …]
Ddm-log-userspace-base.c84 static int userspace_do_request(struct log_c *lc, const char *uuid, in userspace_do_request() argument
96 r = dm_consult_userspace(uuid, lc->luid, request_type, data, in userspace_do_request()
107 r = dm_consult_userspace(uuid, lc->luid, DM_ULOG_CTR, in userspace_do_request()
108 lc->usr_argv_str, in userspace_do_request()
109 strlen(lc->usr_argv_str) + 1, in userspace_do_request()
115 r = dm_consult_userspace(uuid, lc->luid, DM_ULOG_RESUME, NULL, in userspace_do_request()
159 struct log_c *lc = container_of(work, struct log_c, flush_log_work.work); in do_flush() local
161 atomic_set(&lc->sched_flush, 0); in do_flush()
163 r = userspace_do_request(lc, lc->uuid, DM_ULOG_FLUSH, NULL, 0, NULL, NULL); in do_flush()
166 dm_table_event(lc->ti->table); in do_flush()
[all …]
Ddm-log-writes.c137 static inline sector_t bio_to_dev_sectors(struct log_writes_c *lc, in bio_to_dev_sectors() argument
140 return sectors >> (lc->sectorshift - SECTOR_SHIFT); in bio_to_dev_sectors()
143 static inline sector_t dev_to_bio_sectors(struct log_writes_c *lc, in dev_to_bio_sectors() argument
146 return sectors << (lc->sectorshift - SECTOR_SHIFT); in dev_to_bio_sectors()
149 static void put_pending_block(struct log_writes_c *lc) in put_pending_block() argument
151 if (atomic_dec_and_test(&lc->pending_blocks)) { in put_pending_block()
153 if (waitqueue_active(&lc->wait)) in put_pending_block()
154 wake_up(&lc->wait); in put_pending_block()
158 static void put_io_block(struct log_writes_c *lc) in put_io_block() argument
160 if (atomic_dec_and_test(&lc->io_blocks)) { in put_io_block()
[all …]
Ddm-linear.c31 struct linear_c *lc; in linear_ctr() local
41 lc = kmalloc(sizeof(*lc), GFP_KERNEL); in linear_ctr()
42 if (lc == NULL) { in linear_ctr()
52 lc->start = tmp; in linear_ctr()
54 ret = dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), &lc->dev); in linear_ctr()
65 ti->private = lc; in linear_ctr()
69 kfree(lc); in linear_ctr()
75 struct linear_c *lc = (struct linear_c *) ti->private; in linear_dtr() local
77 dm_put_device(ti, lc->dev); in linear_dtr()
78 kfree(lc); in linear_dtr()
[all …]
/kernel/linux/linux-4.19/include/linux/
Dlru_cache.h254 extern void lc_reset(struct lru_cache *lc);
255 extern void lc_destroy(struct lru_cache *lc);
256 extern void lc_set(struct lru_cache *lc, unsigned int enr, int index);
257 extern void lc_del(struct lru_cache *lc, struct lc_element *element);
259 extern struct lc_element *lc_get_cumulative(struct lru_cache *lc, unsigned int enr);
260 extern struct lc_element *lc_try_get(struct lru_cache *lc, unsigned int enr);
261 extern struct lc_element *lc_find(struct lru_cache *lc, unsigned int enr);
262 extern struct lc_element *lc_get(struct lru_cache *lc, unsigned int enr);
263 extern unsigned int lc_put(struct lru_cache *lc, struct lc_element *e);
264 extern void lc_committed(struct lru_cache *lc);
[all …]
/kernel/linux/linux-5.10/include/linux/
Dlru_cache.h242 extern void lc_reset(struct lru_cache *lc);
243 extern void lc_destroy(struct lru_cache *lc);
244 extern void lc_set(struct lru_cache *lc, unsigned int enr, int index);
245 extern void lc_del(struct lru_cache *lc, struct lc_element *element);
247 extern struct lc_element *lc_get_cumulative(struct lru_cache *lc, unsigned int enr);
248 extern struct lc_element *lc_try_get(struct lru_cache *lc, unsigned int enr);
249 extern struct lc_element *lc_find(struct lru_cache *lc, unsigned int enr);
250 extern struct lc_element *lc_get(struct lru_cache *lc, unsigned int enr);
251 extern unsigned int lc_put(struct lru_cache *lc, struct lc_element *e);
252 extern void lc_committed(struct lru_cache *lc);
[all …]
/kernel/linux/linux-5.10/net/rds/
Dloop.c137 struct rds_loop_connection *lc; in rds_loop_conn_alloc() local
140 lc = kzalloc(sizeof(struct rds_loop_connection), gfp); in rds_loop_conn_alloc()
141 if (!lc) in rds_loop_conn_alloc()
144 INIT_LIST_HEAD(&lc->loop_node); in rds_loop_conn_alloc()
145 lc->conn = conn; in rds_loop_conn_alloc()
146 conn->c_transport_data = lc; in rds_loop_conn_alloc()
149 list_add_tail(&lc->loop_node, &loop_conns); in rds_loop_conn_alloc()
157 struct rds_loop_connection *lc = arg; in rds_loop_conn_free() local
160 rdsdebug("lc %p\n", lc); in rds_loop_conn_free()
162 list_del(&lc->loop_node); in rds_loop_conn_free()
[all …]
/kernel/linux/linux-4.19/net/rds/
Dloop.c137 struct rds_loop_connection *lc; in rds_loop_conn_alloc() local
140 lc = kzalloc(sizeof(struct rds_loop_connection), gfp); in rds_loop_conn_alloc()
141 if (!lc) in rds_loop_conn_alloc()
144 INIT_LIST_HEAD(&lc->loop_node); in rds_loop_conn_alloc()
145 lc->conn = conn; in rds_loop_conn_alloc()
146 conn->c_transport_data = lc; in rds_loop_conn_alloc()
149 list_add_tail(&lc->loop_node, &loop_conns); in rds_loop_conn_alloc()
157 struct rds_loop_connection *lc = arg; in rds_loop_conn_free() local
160 rdsdebug("lc %p\n", lc); in rds_loop_conn_free()
162 list_del(&lc->loop_node); in rds_loop_conn_free()
[all …]
/kernel/linux/linux-4.19/arch/s390/kernel/
Dsetup.c308 struct lowcore *lc; in setup_lowcore_dat_off() local
314 lc = memblock_virt_alloc_low(sizeof(*lc), sizeof(*lc)); in setup_lowcore_dat_off()
315 lc->restart_psw.mask = PSW_KERNEL_BITS; in setup_lowcore_dat_off()
316 lc->restart_psw.addr = (unsigned long) restart_int_handler; in setup_lowcore_dat_off()
317 lc->external_new_psw.mask = PSW_KERNEL_BITS | PSW_MASK_MCHECK; in setup_lowcore_dat_off()
318 lc->external_new_psw.addr = (unsigned long) ext_int_handler; in setup_lowcore_dat_off()
319 lc->svc_new_psw.mask = PSW_KERNEL_BITS | in setup_lowcore_dat_off()
321 lc->svc_new_psw.addr = (unsigned long) system_call; in setup_lowcore_dat_off()
322 lc->program_new_psw.mask = PSW_KERNEL_BITS | PSW_MASK_MCHECK; in setup_lowcore_dat_off()
323 lc->program_new_psw.addr = (unsigned long) pgm_check_handler; in setup_lowcore_dat_off()
[all …]
Dsmp.c195 struct lowcore *lc; in pcpu_alloc_lowcore() local
208 lc = pcpu->lowcore; in pcpu_alloc_lowcore()
209 memcpy(lc, &S390_lowcore, 512); in pcpu_alloc_lowcore()
210 memset((char *) lc + 512, 0, sizeof(*lc) - 512); in pcpu_alloc_lowcore()
211 lc->async_stack = async_stack + ASYNC_FRAME_OFFSET; in pcpu_alloc_lowcore()
212 lc->panic_stack = panic_stack + PANIC_FRAME_OFFSET; in pcpu_alloc_lowcore()
213 lc->cpu_nr = cpu; in pcpu_alloc_lowcore()
214 lc->spinlock_lockval = arch_spin_lockval(cpu); in pcpu_alloc_lowcore()
215 lc->spinlock_index = 0; in pcpu_alloc_lowcore()
216 lc->br_r1_trampoline = 0x07f1; /* br %r1 */ in pcpu_alloc_lowcore()
[all …]
/kernel/linux/linux-5.10/arch/s390/kernel/
Dsetup.c376 struct lowcore *lc; in setup_lowcore_dat_off() local
385 lc = memblock_alloc_low(sizeof(*lc), sizeof(*lc)); in setup_lowcore_dat_off()
386 if (!lc) in setup_lowcore_dat_off()
388 __func__, sizeof(*lc), sizeof(*lc)); in setup_lowcore_dat_off()
390 lc->restart_psw.mask = PSW_KERNEL_BITS; in setup_lowcore_dat_off()
391 lc->restart_psw.addr = (unsigned long) restart_int_handler; in setup_lowcore_dat_off()
392 lc->external_new_psw.mask = int_psw_mask | PSW_MASK_MCHECK; in setup_lowcore_dat_off()
393 lc->external_new_psw.addr = (unsigned long) ext_int_handler; in setup_lowcore_dat_off()
394 lc->svc_new_psw.mask = int_psw_mask | PSW_MASK_MCHECK; in setup_lowcore_dat_off()
395 lc->svc_new_psw.addr = (unsigned long) system_call; in setup_lowcore_dat_off()
[all …]
Dsmp.c193 struct lowcore *lc; in pcpu_alloc_lowcore() local
207 lc = pcpu->lowcore; in pcpu_alloc_lowcore()
208 memcpy(lc, &S390_lowcore, 512); in pcpu_alloc_lowcore()
209 memset((char *) lc + 512, 0, sizeof(*lc) - 512); in pcpu_alloc_lowcore()
210 lc->async_stack = async_stack + STACK_INIT_OFFSET; in pcpu_alloc_lowcore()
211 lc->nodat_stack = nodat_stack + STACK_INIT_OFFSET; in pcpu_alloc_lowcore()
212 lc->cpu_nr = cpu; in pcpu_alloc_lowcore()
213 lc->spinlock_lockval = arch_spin_lockval(cpu); in pcpu_alloc_lowcore()
214 lc->spinlock_index = 0; in pcpu_alloc_lowcore()
215 lc->br_r1_trampoline = 0x07f1; /* br %r1 */ in pcpu_alloc_lowcore()
[all …]
/kernel/linux/linux-5.10/fs/ocfs2/
Dstack_user.c817 struct ocfs2_live_connection *lc = conn->cc_private; in sync_wait_cb() local
818 complete(&lc->oc_sync_wait); in sync_wait_cb()
825 struct ocfs2_live_connection *lc = conn->cc_private; in sync_unlock() local
834 wait_for_completion(&lc->oc_sync_wait); in sync_unlock()
849 struct ocfs2_live_connection *lc = conn->cc_private; in sync_lock() local
860 wait_for_completion(&lc->oc_sync_wait); in sync_lock()
876 struct ocfs2_live_connection *lc = conn->cc_private; in version_lock() local
878 &lc->oc_version_lksb, VERSION_LOCK); in version_lock()
883 struct ocfs2_live_connection *lc = conn->cc_private; in version_unlock() local
884 return sync_unlock(conn, &lc->oc_version_lksb, VERSION_LOCK); in version_unlock()
[all …]
/kernel/linux/linux-4.19/fs/ocfs2/
Dstack_user.c825 struct ocfs2_live_connection *lc = conn->cc_private; in sync_wait_cb() local
826 complete(&lc->oc_sync_wait); in sync_wait_cb()
833 struct ocfs2_live_connection *lc = conn->cc_private; in sync_unlock() local
842 wait_for_completion(&lc->oc_sync_wait); in sync_unlock()
857 struct ocfs2_live_connection *lc = conn->cc_private; in sync_lock() local
868 wait_for_completion(&lc->oc_sync_wait); in sync_lock()
884 struct ocfs2_live_connection *lc = conn->cc_private; in version_lock() local
886 &lc->oc_version_lksb, VERSION_LOCK); in version_lock()
891 struct ocfs2_live_connection *lc = conn->cc_private; in version_unlock() local
892 return sync_unlock(conn, &lc->oc_version_lksb, VERSION_LOCK); in version_unlock()
[all …]
/kernel/linux/linux-4.19/arch/ia64/lib/
Dxor.S24 .save ar.lc, r30
25 mov r30 = ar.lc
38 mov ar.lc = in0
51 mov ar.lc = r30
62 .save ar.lc, r30
63 mov r30 = ar.lc
77 mov ar.lc = in0
92 mov ar.lc = r30
103 .save ar.lc, r30
104 mov r30 = ar.lc
[all …]
/kernel/linux/linux-5.10/arch/ia64/lib/
Dxor.S16 .save ar.lc, r30
17 mov r30 = ar.lc
30 mov ar.lc = in0
43 mov ar.lc = r30
54 .save ar.lc, r30
55 mov r30 = ar.lc
69 mov ar.lc = in0
84 mov ar.lc = r30
95 .save ar.lc, r30
96 mov r30 = ar.lc
[all …]
Dflush.S43 .save ar.lc,r3
44 mov r3=ar.lc // save ar.lc
48 mov ar.lc=r8
62 mov ar.lc=r3 // restore ar.lc
98 .save ar.lc,r3
99 mov r3=ar.lc // save ar.lc
103 mov ar.lc=r8
118 mov ar.lc=r3 // restore ar.lc
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb/
Dsubr.c154 struct link_config *lc = &adapter->port[port_id].link_config; in t1_link_changed() local
158 lc->speed = speed < 0 ? SPEED_INVALID : speed; in t1_link_changed()
159 lc->duplex = duplex < 0 ? DUPLEX_INVALID : duplex; in t1_link_changed()
160 if (!(lc->requested_fc & PAUSE_AUTONEG)) in t1_link_changed()
161 fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); in t1_link_changed()
163 if (link_ok && speed >= 0 && lc->autoneg == AUTONEG_ENABLE) { in t1_link_changed()
168 lc->fc = (unsigned char)fc; in t1_link_changed()
623 int t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc) in t1_link_start() argument
625 unsigned int fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); in t1_link_start()
627 if (lc->supported & SUPPORTED_Autoneg) { in t1_link_start()
[all …]
/kernel/linux/linux-4.19/drivers/net/ethernet/chelsio/cxgb/
Dsubr.c154 struct link_config *lc = &adapter->port[port_id].link_config; in t1_link_changed() local
158 lc->speed = speed < 0 ? SPEED_INVALID : speed; in t1_link_changed()
159 lc->duplex = duplex < 0 ? DUPLEX_INVALID : duplex; in t1_link_changed()
160 if (!(lc->requested_fc & PAUSE_AUTONEG)) in t1_link_changed()
161 fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); in t1_link_changed()
163 if (link_ok && speed >= 0 && lc->autoneg == AUTONEG_ENABLE) { in t1_link_changed()
168 lc->fc = (unsigned char)fc; in t1_link_changed()
623 int t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc) in t1_link_start() argument
625 unsigned int fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); in t1_link_start()
627 if (lc->supported & SUPPORTED_Autoneg) { in t1_link_start()
[all …]

12345678