Home
last modified time | relevance | path

Searched refs:lc (Results 1 - 25 of 170) sorted by relevance

1234567

/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/mlxsw/
H A Ddevlink_linecard.sh39 local lc=$1
41 devlink lc show $DEVLINK_DEV lc $lc -j | jq -e -r ".[][][].state"
46 local lc=$1
50 busywait "$timeout" until_lc_state_is_not "$state" lc_state_get "$lc"
55 local lc=$1
59 busywait "$timeout" until_lc_state_is "$state" lc_state_get "$lc"
73 local lc=$1
75 devlink port -j | jq -e -r ".[][] | select(.lc
[all...]
/kernel/linux/linux-5.10/drivers/md/
H A 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 in flush_header()
369 struct log_c *lc; create_log_context() local
521 destroy_log_context(struct log_c *lc) destroy_log_context() argument
530 struct log_c *lc = (struct log_c *) log->context; core_dtr() local
567 struct log_c *lc = (struct log_c *) log->context; disk_dtr() local
575 fail_log_device(struct log_c *lc) fail_log_device() argument
588 struct log_c *lc = (struct log_c *) log->context; disk_resume() local
650 struct log_c *lc = (struct log_c *) log->context; core_get_region_size() local
656 struct log_c *lc = (struct log_c *) log->context; core_resume() local
663 struct log_c *lc = (struct log_c *) log->context; core_is_clean() local
669 struct log_c *lc = (struct log_c *) log->context; core_in_sync() local
682 struct log_c *lc = log->context; disk_flush() local
721 struct log_c *lc = (struct log_c *) log->context; core_mark_region() local
727 struct log_c *lc = (struct log_c *) log->context; core_clear_region() local
734 struct log_c *lc = (struct log_c *) log->context; core_get_resync_work() local
757 struct log_c *lc = (struct log_c *) log->context; core_set_region_sync() local
771 struct log_c *lc = (struct log_c *) log->context; core_get_sync_count() local
784 struct log_c *lc = log->context; core_status() local
804 struct log_c *lc = log->context; disk_status() local
[all...]
H A 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 in put_io_block()
169 struct log_writes_c *lc = bio->bi_private; log_end_io() local
187 struct log_writes_c *lc = bio->bi_private; log_end_super() local
197 free_pending_block(struct log_writes_c *lc, struct pending_block *block) free_pending_block() argument
211 write_metadata(struct log_writes_c *lc, void *entry, size_t entrylen, void *data, size_t datalen, sector_t sector) write_metadata() argument
263 write_inline_data(struct log_writes_c *lc, void *entry, size_t entrylen, void *data, size_t datalen, sector_t sector) write_inline_data() argument
331 log_one_block(struct log_writes_c *lc, struct pending_block *block, sector_t sector) log_one_block() argument
423 log_super(struct log_writes_c *lc) log_super() argument
447 logdev_last_sector(struct log_writes_c *lc) logdev_last_sector() argument
454 struct log_writes_c *lc = (struct log_writes_c *)arg; log_writes_kthread() local
530 struct log_writes_c *lc; log_writes_ctr() local
606 log_mark(struct log_writes_c *lc, char *data) log_mark() argument
635 struct log_writes_c *lc = ti->private; log_writes_dtr() local
660 struct log_writes_c *lc = ti->private; normal_map_bio() local
667 struct log_writes_c *lc = ti->private; log_writes_map() local
793 struct log_writes_c *lc = ti->private; normal_end_io() local
824 struct log_writes_c *lc = ti->private; log_writes_status() local
843 struct log_writes_c *lc = ti->private; log_writes_prepare_ioctl() local
859 struct log_writes_c *lc = ti->private; log_writes_iterate_devices() local
872 struct log_writes_c *lc = ti->private; log_writes_message() local
889 struct log_writes_c *lc = ti->private; log_writes_io_hints() local
903 log_dax(struct log_writes_c *lc, sector_t sector, size_t bytes, struct iov_iter *i) log_dax() argument
951 struct log_writes_c *lc = ti->private; log_writes_dax_direct_access() local
965 struct log_writes_c *lc = ti->private; log_writes_dax_copy_from_iter() local
989 struct log_writes_c *lc = ti->private; log_writes_dax_copy_to_iter() local
1001 struct log_writes_c *lc = ti->private; log_writes_dax_zero_page_range() local
[all...]
H A 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 in do_flush()
196 struct log_c *lc = NULL; userspace_ctr() local
328 struct log_c *lc = log->context; userspace_dtr() local
355 struct log_c *lc = log->context; userspace_presuspend() local
366 struct log_c *lc = log->context; userspace_postsuspend() local
383 struct log_c *lc = log->context; userspace_resume() local
394 struct log_c *lc = log->context; userspace_get_region_size() local
413 struct log_c *lc = log->context; userspace_is_clean() local
441 struct log_c *lc = log->context; userspace_in_sync() local
466 flush_one_by_one(struct log_c *lc, struct list_head *flush_list) flush_one_by_one() argument
483 flush_by_group(struct log_c *lc, struct list_head *flush_list, int flush_with_payload) flush_by_group() argument
566 struct log_c *lc = log->context; userspace_flush() local
651 struct log_c *lc = log->context; userspace_mark_region() local
680 struct log_c *lc = log->context; userspace_clear_region() local
716 struct log_c *lc = log->context; userspace_get_resync_work() local
742 struct log_c *lc = log->context; userspace_set_region_sync() local
774 struct log_c *lc = log->context; userspace_get_sync_count() local
800 struct log_c *lc = log->context; userspace_status() local
837 struct log_c *lc = log->context; userspace_is_remote_recovering() local
[all...]
H A 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 in linear_dtr()
83 struct linear_c *lc = ti->private; linear_map_sector() local
90 struct linear_c *lc = ti->private; linear_map_bio() local
108 struct linear_c *lc = (struct linear_c *) ti->private; linear_status() local
124 struct linear_c *lc = (struct linear_c *) ti->private; linear_prepare_ioctl() local
142 struct linear_c *lc = ti->private; linear_report_zones() local
154 struct linear_c *lc = ti->private; linear_iterate_devices() local
164 struct linear_c *lc = ti->private; linear_dax_direct_access() local
179 struct linear_c *lc = ti->private; linear_dax_copy_from_iter() local
193 struct linear_c *lc = ti->private; linear_dax_copy_to_iter() local
208 struct linear_c *lc = ti->private; linear_dax_zero_page_range() local
[all...]
/kernel/linux/linux-6.6/drivers/md/
H A Ddm-log.c299 static int rw_header(struct log_c *lc, enum req_op op) in rw_header() argument
301 lc->io_req.bi_opf = op; in rw_header()
303 return dm_io(&lc->io_req, 1, &lc->header_location, NULL, IOPRIO_DEFAULT); in rw_header()
306 static int flush_header(struct log_c *lc) in flush_header() argument
309 .bdev = lc->header_location.bdev, in flush_header()
314 lc->io_req.bi_opf = REQ_OP_WRITE | REQ_PREFLUSH; in flush_header()
316 return dm_io(&lc->io_req, 1, &null_location, NULL, IOPRIO_DEFAULT); in flush_header()
374 struct log_c *lc; in create_log_context() local
405 lc in create_log_context()
524 destroy_log_context(struct log_c *lc) destroy_log_context() argument
533 struct log_c *lc = log->context; core_dtr() local
572 struct log_c *lc = log->context; disk_dtr() local
580 fail_log_device(struct log_c *lc) fail_log_device() argument
593 struct log_c *lc = log->context; disk_resume() local
655 struct log_c *lc = log->context; core_get_region_size() local
662 struct log_c *lc = log->context; core_resume() local
670 struct log_c *lc = log->context; core_is_clean() local
677 struct log_c *lc = log->context; core_in_sync() local
691 struct log_c *lc = log->context; disk_flush() local
730 struct log_c *lc = log->context; core_mark_region() local
737 struct log_c *lc = log->context; core_clear_region() local
745 struct log_c *lc = log->context; core_get_resync_work() local
768 struct log_c *lc = log->context; core_set_region_sync() local
782 struct log_c *lc = log->context; core_get_sync_count() local
797 struct log_c *lc = log->context; core_status() local
822 struct log_c *lc = log->context; disk_status() local
[all...]
H A Ddm-log-writes.c138 static inline sector_t bio_to_dev_sectors(struct log_writes_c *lc, in bio_to_dev_sectors() argument
141 return sectors >> (lc->sectorshift - SECTOR_SHIFT); in bio_to_dev_sectors()
144 static inline sector_t dev_to_bio_sectors(struct log_writes_c *lc, in dev_to_bio_sectors() argument
147 return sectors << (lc->sectorshift - SECTOR_SHIFT); in dev_to_bio_sectors()
150 static void put_pending_block(struct log_writes_c *lc) in put_pending_block() argument
152 if (atomic_dec_and_test(&lc->pending_blocks)) { in put_pending_block()
154 if (waitqueue_active(&lc->wait)) in put_pending_block()
155 wake_up(&lc->wait); in put_pending_block()
159 static void put_io_block(struct log_writes_c *lc) in put_io_block() argument
161 if (atomic_dec_and_test(&lc in put_io_block()
170 struct log_writes_c *lc = bio->bi_private; log_end_io() local
188 struct log_writes_c *lc = bio->bi_private; log_end_super() local
198 free_pending_block(struct log_writes_c *lc, struct pending_block *block) free_pending_block() argument
212 write_metadata(struct log_writes_c *lc, void *entry, size_t entrylen, void *data, size_t datalen, sector_t sector) write_metadata() argument
258 write_inline_data(struct log_writes_c *lc, void *entry, size_t entrylen, void *data, size_t datalen, sector_t sector) write_inline_data() argument
318 log_one_block(struct log_writes_c *lc, struct pending_block *block, sector_t sector) log_one_block() argument
401 log_super(struct log_writes_c *lc) log_super() argument
425 logdev_last_sector(struct log_writes_c *lc) logdev_last_sector() argument
432 struct log_writes_c *lc = arg; log_writes_kthread() local
508 struct log_writes_c *lc; log_writes_ctr() local
584 log_mark(struct log_writes_c *lc, char *data) log_mark() argument
613 struct log_writes_c *lc = ti->private; log_writes_dtr() local
638 struct log_writes_c *lc = ti->private; normal_map_bio() local
645 struct log_writes_c *lc = ti->private; log_writes_map() local
769 struct log_writes_c *lc = ti->private; normal_end_io() local
800 struct log_writes_c *lc = ti->private; log_writes_status() local
823 struct log_writes_c *lc = ti->private; log_writes_prepare_ioctl() local
839 struct log_writes_c *lc = ti->private; log_writes_iterate_devices() local
852 struct log_writes_c *lc = ti->private; log_writes_message() local
869 struct log_writes_c *lc = ti->private; log_writes_io_hints() local
886 struct log_writes_c *lc = ti->private; log_writes_dax_pgoff() local
[all...]
H A Ddm-log-userspace-base.c85 static int userspace_do_request(struct log_c *lc, const char *uuid, in userspace_do_request() argument
97 r = dm_consult_userspace(uuid, lc->luid, request_type, data, in userspace_do_request()
108 r = dm_consult_userspace(uuid, lc->luid, DM_ULOG_CTR, in userspace_do_request()
109 lc->usr_argv_str, in userspace_do_request()
110 strlen(lc->usr_argv_str) + 1, in userspace_do_request()
116 r = dm_consult_userspace(uuid, lc->luid, DM_ULOG_RESUME, NULL, in userspace_do_request()
160 struct log_c *lc = container_of(work, struct log_c, flush_log_work.work); in do_flush() local
162 atomic_set(&lc->sched_flush, 0); in do_flush()
164 r = userspace_do_request(lc, lc in do_flush()
197 struct log_c *lc = NULL; userspace_ctr() local
329 struct log_c *lc = log->context; userspace_dtr() local
354 struct log_c *lc = log->context; userspace_presuspend() local
365 struct log_c *lc = log->context; userspace_postsuspend() local
382 struct log_c *lc = log->context; userspace_resume() local
393 struct log_c *lc = log->context; userspace_get_region_size() local
412 struct log_c *lc = log->context; userspace_is_clean() local
440 struct log_c *lc = log->context; userspace_in_sync() local
465 flush_one_by_one(struct log_c *lc, struct list_head *flush_list) flush_one_by_one() argument
482 flush_by_group(struct log_c *lc, struct list_head *flush_list, int flush_with_payload) flush_by_group() argument
565 struct log_c *lc = log->context; userspace_flush() local
650 struct log_c *lc = log->context; userspace_mark_region() local
677 struct log_c *lc = log->context; userspace_clear_region() local
711 struct log_c *lc = log->context; userspace_get_resync_work() local
737 struct log_c *lc = log->context; userspace_set_region_sync() local
768 struct log_c *lc = log->context; userspace_get_sync_count() local
794 struct log_c *lc = log->context; userspace_status() local
834 struct log_c *lc = log->context; userspace_is_remote_recovering() local
[all...]
H A Ddm-linear.c32 struct linear_c *lc; in linear_ctr() local
42 lc = kmalloc(sizeof(*lc), GFP_KERNEL); in linear_ctr()
43 if (lc == NULL) { in linear_ctr()
53 lc->start = tmp; in linear_ctr()
55 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 = ti->private; in linear_dtr() local
77 dm_put_device(ti, lc in linear_dtr()
83 struct linear_c *lc = ti->private; linear_map_sector() local
90 struct linear_c *lc = ti->private; linear_map() local
101 struct linear_c *lc = ti->private; linear_status() local
123 struct linear_c *lc = ti->private; linear_prepare_ioctl() local
140 struct linear_c *lc = ti->private; linear_report_zones() local
153 struct linear_c *lc = ti->private; linear_iterate_devices() local
161 struct linear_c *lc = ti->private; linear_dax_pgoff() local
[all...]
/kernel/linux/linux-5.10/lib/
H A 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); \
38 /* BUG() if e is not one of the elements tracked by lc */
39 #define PARANOIA_LC_ELEMENT(lc, e) do { \
40 struct lru_cache *lc_ = (lc); \
51 * Because of PARANOIA_ENTRY() above abusing lc->flags as well,
53 * return 0 == cmpxchg(&lc->flags, 0, LC_LOCKED);
55 int lc_try_lock(struct lru_cache *lc) in lc_try_lock() argument
93 struct lru_cache *lc; lc_create() local
160 lc_free_by_index(struct lru_cache *lc, unsigned i) lc_free_by_index() argument
174 lc_destroy(struct lru_cache *lc) lc_destroy() argument
193 lc_reset(struct lru_cache *lc) lc_reset() argument
229 lc_seq_printf_stats(struct seq_file *seq, struct lru_cache *lc) lc_seq_printf_stats() argument
243 lc_hash_slot(struct lru_cache *lc, unsigned int enr) lc_hash_slot() argument
249 __lc_find(struct lru_cache *lc, unsigned int enr, bool include_changing) __lc_find() argument
280 lc_find(struct lru_cache *lc, unsigned int enr) lc_find() argument
295 lc_is_used(struct lru_cache *lc, unsigned int enr) lc_is_used() argument
309 lc_del(struct lru_cache *lc, struct lc_element *e) lc_del() argument
321 lc_prepare_for_change(struct lru_cache *lc, unsigned new_number) lc_prepare_for_change() argument
345 lc_unused_element_available(struct lru_cache *lc) lc_unused_element_available() argument
361 __lc_get(struct lru_cache *lc, unsigned int enr, unsigned int flags) __lc_get() argument
480 lc_get(struct lru_cache *lc, unsigned int enr) lc_get() argument
500 lc_get_cumulative(struct lru_cache *lc, unsigned int enr) lc_get_cumulative() argument
521 lc_try_get(struct lru_cache *lc, unsigned int enr) lc_try_get() argument
534 lc_committed(struct lru_cache *lc) lc_committed() argument
559 lc_put(struct lru_cache *lc, struct lc_element *e) lc_put() argument
579 lc_element_by_index(struct lru_cache *lc, unsigned i) lc_element_by_index() argument
592 lc_index_of(struct lru_cache *lc, struct lc_element *e) lc_index_of() argument
606 lc_set(struct lru_cache *lc, unsigned int enr, int index) lc_set() argument
638 lc_seq_dump_details(struct seq_file *seq, struct lru_cache *lc, char *utext, void (*detail) (struct seq_file *, struct lc_element *)) lc_seq_dump_details() argument
[all...]
/kernel/linux/linux-6.6/lib/
H A 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); \
38 /* BUG() if e is not one of the elements tracked by lc */
39 #define PARANOIA_LC_ELEMENT(lc, e) do { \
40 struct lru_cache *lc_ = (lc); \
51 * Because of PARANOIA_ENTRY() above abusing lc->flags as well,
53 * return 0 == cmpxchg(&lc->flags, 0, LC_LOCKED);
55 int lc_try_lock(struct lru_cache *lc) in lc_try_lock() argument
83 struct lru_cache *lc; lc_create() local
150 lc_free_by_index(struct lru_cache *lc, unsigned i) lc_free_by_index() argument
164 lc_destroy(struct lru_cache *lc) lc_destroy() argument
183 lc_reset(struct lru_cache *lc) lc_reset() argument
219 lc_seq_printf_stats(struct seq_file *seq, struct lru_cache *lc) lc_seq_printf_stats() argument
233 lc_hash_slot(struct lru_cache *lc, unsigned int enr) lc_hash_slot() argument
239 __lc_find(struct lru_cache *lc, unsigned int enr, bool include_changing) __lc_find() argument
270 lc_find(struct lru_cache *lc, unsigned int enr) lc_find() argument
285 lc_is_used(struct lru_cache *lc, unsigned int enr) lc_is_used() argument
299 lc_del(struct lru_cache *lc, struct lc_element *e) lc_del() argument
311 lc_prepare_for_change(struct lru_cache *lc, unsigned new_number) lc_prepare_for_change() argument
335 lc_unused_element_available(struct lru_cache *lc) lc_unused_element_available() argument
351 __lc_get(struct lru_cache *lc, unsigned int enr, unsigned int flags) __lc_get() argument
470 lc_get(struct lru_cache *lc, unsigned int enr) lc_get() argument
490 lc_get_cumulative(struct lru_cache *lc, unsigned int enr) lc_get_cumulative() argument
511 lc_try_get(struct lru_cache *lc, unsigned int enr) lc_try_get() argument
524 lc_committed(struct lru_cache *lc) lc_committed() argument
549 lc_put(struct lru_cache *lc, struct lc_element *e) lc_put() argument
569 lc_element_by_index(struct lru_cache *lc, unsigned i) lc_element_by_index() argument
586 lc_seq_dump_details(struct seq_file *seq, struct lru_cache *lc, char *utext, void (*detail) (struct seq_file *, struct lc_element *)) lc_seq_dump_details() argument
[all...]
/kernel/linux/linux-5.10/include/linux/
H A 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);
268 lc_try_lock_for_transaction(struct lru_cache *lc) lc_try_lock_for_transaction() argument
288 lc_unlock(struct lru_cache *lc) lc_unlock() argument
[all...]
/kernel/linux/linux-5.10/net/rds/
H A 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()
179 struct rds_loop_connection *lc, *_lc; rds_loop_exit() local
198 struct rds_loop_connection *lc, *_lc; rds_loop_kill_conns() local
[all...]
/kernel/linux/linux-6.6/net/rds/
H A 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()
179 struct rds_loop_connection *lc, *_lc; rds_loop_exit() local
198 struct rds_loop_connection *lc, *_lc; rds_loop_kill_conns() local
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dlru_cache.h241 extern void lc_reset(struct lru_cache *lc);
242 extern void lc_destroy(struct lru_cache *lc);
243 extern void lc_del(struct lru_cache *lc, struct lc_element *element);
245 extern struct lc_element *lc_get_cumulative(struct lru_cache *lc, unsigned int enr);
246 extern struct lc_element *lc_try_get(struct lru_cache *lc, unsigned int enr);
247 extern struct lc_element *lc_find(struct lru_cache *lc, unsigned int enr);
248 extern struct lc_element *lc_get(struct lru_cache *lc, unsigned int enr);
249 extern unsigned int lc_put(struct lru_cache *lc, struct lc_element *e);
250 extern void lc_committed(struct lru_cache *lc);
253 extern void lc_seq_printf_stats(struct seq_file *seq, struct lru_cache *lc);
266 lc_try_lock_for_transaction(struct lru_cache *lc) lc_try_lock_for_transaction() argument
286 lc_unlock(struct lru_cache *lc) lc_unlock() argument
[all...]
/kernel/linux/linux-6.6/arch/s390/kernel/
H A Dsmp.c196 struct lowcore *lc; in pcpu_alloc_lowcore() local
198 lc = (struct lowcore *) __get_free_pages(GFP_KERNEL | GFP_DMA, LC_ORDER); in pcpu_alloc_lowcore()
202 if (!lc || !nodat_stack || !async_stack || !mcck_stack) in pcpu_alloc_lowcore()
204 memcpy(lc, &S390_lowcore, 512); in pcpu_alloc_lowcore()
205 memset((char *) lc + 512, 0, sizeof(*lc) - 512); in pcpu_alloc_lowcore()
206 lc->async_stack = async_stack + STACK_INIT_OFFSET; in pcpu_alloc_lowcore()
207 lc->nodat_stack = nodat_stack + STACK_INIT_OFFSET; in pcpu_alloc_lowcore()
208 lc->mcck_stack = mcck_stack + STACK_INIT_OFFSET; in pcpu_alloc_lowcore()
209 lc in pcpu_alloc_lowcore()
236 struct lowcore *lc; pcpu_free_lowcore() local
256 struct lowcore *lc, *abs_lc; pcpu_prepare_secondary() local
282 struct lowcore *lc; pcpu_attach_task() local
301 struct lowcore *lc; pcpu_start_fn() local
327 struct lowcore *lc, *abs_lc; pcpu_delegate() local
405 struct lowcore *lc = lowcore_ptr[0]; smp_call_ipl_cpu() local
622 struct lowcore *lc; smp_store_status() local
1262 set_new_lowcore(struct lowcore *lc) set_new_lowcore() argument
1284 struct lowcore *lc, *lc_ipl; smp_reinit_ipl_cpu() local
[all...]
H A Dsetup.c404 struct lowcore *lc, *abs_lc; in setup_lowcore() local
410 lc = memblock_alloc_low(sizeof(*lc), sizeof(*lc)); in setup_lowcore()
411 if (!lc) in setup_lowcore()
413 __func__, sizeof(*lc), sizeof(*lc)); in setup_lowcore()
415 lc->restart_psw.mask = PSW_KERNEL_BITS & ~PSW_MASK_DAT; in setup_lowcore()
416 lc->restart_psw.addr = __pa(restart_int_handler); in setup_lowcore()
417 lc in setup_lowcore()
[all...]
/kernel/linux/linux-5.10/arch/s390/kernel/
H A 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 in setup_lowcore_dat_off()
[all...]
H A 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 in pcpu_alloc_lowcore()
260 struct lowcore *lc = pcpu->lowcore; pcpu_prepare_secondary() local
286 struct lowcore *lc = pcpu->lowcore; pcpu_attach_task() local
303 struct lowcore *lc = pcpu->lowcore; pcpu_start_fn() local
324 struct lowcore *lc = lowcore_ptr[pcpu - pcpu_devices]; pcpu_delegate() local
389 struct lowcore *lc = pcpu_devices->lowcore; smp_call_ipl_cpu() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb/
H A 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 in t1_link_start()
1030 init_link_config(struct link_config *lc, const struct board_info *bi) init_link_config() argument
[all...]
/kernel/linux/linux-6.6/drivers/accessibility/speakup/
H A Dgenmap.c75 lc++; in main()
130 for (lc = 1; lc <= max_key_used; lc++) { in main()
131 kp = key_data[lc]; in main()
151 for (lc = 1; lc <= max_key_used; lc++) { in main()
152 kp = key_data[lc]; in main()
155 printf("\n\t%d,", lc); in main()
[all...]
/kernel/linux/linux-5.10/fs/ocfs2/
H A 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 in version_unlock()
901 struct ocfs2_live_connection *lc = conn->cc_private; get_protocol_version() local
954 struct ocfs2_live_connection *lc = conn->cc_private; user_recover_done() local
986 struct ocfs2_live_connection *lc; user_cluster_connect() local
1066 struct ocfs2_live_connection *lc = conn->cc_private; user_cluster_this_node() local
[all...]
/kernel/linux/linux-6.6/fs/ocfs2/
H A Dstack_user.c803 struct ocfs2_live_connection *lc = conn->cc_private; in sync_wait_cb() local
804 complete(&lc->oc_sync_wait); in sync_wait_cb()
811 struct ocfs2_live_connection *lc = conn->cc_private; in sync_unlock() local
820 wait_for_completion(&lc->oc_sync_wait); in sync_unlock()
835 struct ocfs2_live_connection *lc = conn->cc_private; in sync_lock() local
846 wait_for_completion(&lc->oc_sync_wait); in sync_lock()
862 struct ocfs2_live_connection *lc = conn->cc_private; in version_lock() local
864 &lc->oc_version_lksb, VERSION_LOCK); in version_lock()
869 struct ocfs2_live_connection *lc = conn->cc_private; in version_unlock() local
870 return sync_unlock(conn, &lc in version_unlock()
887 struct ocfs2_live_connection *lc = conn->cc_private; get_protocol_version() local
940 struct ocfs2_live_connection *lc = conn->cc_private; user_recover_done() local
972 struct ocfs2_live_connection *lc; user_cluster_connect() local
1052 struct ocfs2_live_connection *lc = conn->cc_private; user_cluster_this_node() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dsetget_sockopt.c142 static int bpf_test_socket_sockopt(__u32 i, struct loop_ctx *lc) in bpf_test_socket_sockopt() argument
154 return bpf_test_sockopt_flip(lc->ctx, lc->sk, t, SOL_SOCKET); in bpf_test_socket_sockopt()
156 return bpf_test_sockopt_int(lc->ctx, lc->sk, t, SOL_SOCKET); in bpf_test_socket_sockopt()
159 static int bpf_test_ip_sockopt(__u32 i, struct loop_ctx *lc) in bpf_test_ip_sockopt() argument
171 return bpf_test_sockopt_flip(lc->ctx, lc->sk, t, IPPROTO_IP); in bpf_test_ip_sockopt()
173 return bpf_test_sockopt_int(lc->ctx, lc in bpf_test_ip_sockopt()
176 bpf_test_ipv6_sockopt(__u32 i, struct loop_ctx *lc) bpf_test_ipv6_sockopt() argument
193 bpf_test_tcp_sockopt(__u32 i, struct loop_ctx *lc) bpf_test_tcp_sockopt() argument
246 struct loop_ctx lc = { .ctx = ctx, .sk = sk, }; bpf_test_sockopt() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb/
H A Dsubr.c145 struct link_config *lc = &adapter->port[port_id].link_config; in t1_link_changed() local
149 lc->speed = speed < 0 ? SPEED_INVALID : speed; in t1_link_changed()
150 lc->duplex = duplex < 0 ? DUPLEX_INVALID : duplex; in t1_link_changed()
151 if (!(lc->requested_fc & PAUSE_AUTONEG)) in t1_link_changed()
152 fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); in t1_link_changed()
154 if (link_ok && speed >= 0 && lc->autoneg == AUTONEG_ENABLE) { in t1_link_changed()
159 lc->fc = (unsigned char)fc; in t1_link_changed()
626 int t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc) in t1_link_start() argument
628 unsigned int fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); in t1_link_start()
630 if (lc in t1_link_start()
1047 init_link_config(struct link_config *lc, const struct board_info *bi) init_link_config() argument
[all...]

Completed in 227 milliseconds

1234567