Home
last modified time | relevance | path

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

12345

/linux-5.19.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 …]
/linux-5.19.10/tools/testing/selftests/drivers/net/mlxsw/
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==$lc) | .port" | wc -l
80 local lc=$1
84 busywait "$timeout" until_lc_port_count_is "$port_count" lc_port_count_get "$lc"
[all …]
/linux-5.19.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()
64 ti->private = lc; in linear_ctr()
68 kfree(lc); in linear_ctr()
74 struct linear_c *lc = (struct linear_c *) ti->private; in linear_dtr() local
76 dm_put_device(ti, lc->dev); in linear_dtr()
77 kfree(lc); in linear_dtr()
[all …]
/linux-5.19.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 …]
/linux-5.19.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 …]
/linux-5.19.10/arch/s390/kernel/
Dsmp.c194 struct lowcore *lc; in pcpu_alloc_lowcore() local
196 lc = (struct lowcore *) __get_free_pages(GFP_KERNEL | GFP_DMA, LC_ORDER); in pcpu_alloc_lowcore()
200 if (!lc || !nodat_stack || !async_stack || !mcck_stack) in pcpu_alloc_lowcore()
202 memcpy(lc, &S390_lowcore, 512); in pcpu_alloc_lowcore()
203 memset((char *) lc + 512, 0, sizeof(*lc) - 512); in pcpu_alloc_lowcore()
204 lc->async_stack = async_stack + STACK_INIT_OFFSET; in pcpu_alloc_lowcore()
205 lc->nodat_stack = nodat_stack + STACK_INIT_OFFSET; in pcpu_alloc_lowcore()
206 lc->mcck_stack = mcck_stack + STACK_INIT_OFFSET; in pcpu_alloc_lowcore()
207 lc->cpu_nr = cpu; in pcpu_alloc_lowcore()
208 lc->spinlock_lockval = arch_spin_lockval(cpu); in pcpu_alloc_lowcore()
[all …]
Dsetup.c415 struct lowcore *lc; in setup_lowcore_dat_off() local
424 lc = memblock_alloc_low(sizeof(*lc), sizeof(*lc)); in setup_lowcore_dat_off()
425 if (!lc) in setup_lowcore_dat_off()
427 __func__, sizeof(*lc), sizeof(*lc)); in setup_lowcore_dat_off()
429 lc->restart_psw.mask = PSW_KERNEL_BITS; in setup_lowcore_dat_off()
430 lc->restart_psw.addr = (unsigned long) restart_int_handler; in setup_lowcore_dat_off()
431 lc->external_new_psw.mask = int_psw_mask | PSW_MASK_MCHECK; in setup_lowcore_dat_off()
432 lc->external_new_psw.addr = (unsigned long) ext_int_handler; in setup_lowcore_dat_off()
433 lc->svc_new_psw.mask = int_psw_mask | PSW_MASK_MCHECK; in setup_lowcore_dat_off()
434 lc->svc_new_psw.addr = (unsigned long) system_call; in setup_lowcore_dat_off()
[all …]
/linux-5.19.10/fs/ocfs2/
Dstack_user.c809 struct ocfs2_live_connection *lc = conn->cc_private; in sync_wait_cb() local
810 complete(&lc->oc_sync_wait); in sync_wait_cb()
817 struct ocfs2_live_connection *lc = conn->cc_private; in sync_unlock() local
826 wait_for_completion(&lc->oc_sync_wait); in sync_unlock()
841 struct ocfs2_live_connection *lc = conn->cc_private; in sync_lock() local
852 wait_for_completion(&lc->oc_sync_wait); in sync_lock()
868 struct ocfs2_live_connection *lc = conn->cc_private; in version_lock() local
870 &lc->oc_version_lksb, VERSION_LOCK); in version_lock()
875 struct ocfs2_live_connection *lc = conn->cc_private; in version_unlock() local
876 return sync_unlock(conn, &lc->oc_version_lksb, VERSION_LOCK); in version_unlock()
[all …]
/linux-5.19.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
Dclear_user.S61 .save ar.lc, saved_lc
62 mov saved_lc=ar.lc // preserve ar.lc (slow)
70 mov ar.lc=tmp // initialize lc for small count
91 mov ar.lc=saved_lc
127 mov ar.lc=tmp
155 mov ar.lc=saved_lc
209 mov ar.lc=saved_lc
Dstrnlen_user.S22 .save ar.lc, r16
23 mov r16=ar.lc // preserve ar.lc
29 mov ar.lc=r3
45 mov ar.lc=r16 // restore ar.lc
Dclear_page.S38 .save ar.lc, saved_lc
39 mov saved_lc = ar.lc
42 mov ar.lc = (PREFETCH_LINES - 1)
52 mov ar.lc = r16 // one L3 line per iteration
76 mov ar.lc = saved_lc // restore lc
Dcopy_user.S88 .save ar.lc, saved_lc
89 mov saved_lc=ar.lc // preserve ar.lc (slow)
104 mov ar.lc=len2 // initialize lc for small count
119 mov ar.lc=saved_lc
194 mov ar.lc=cnt
218 mov ar.lc=cnt
305 mov ar.lc=len1
312 mov ar.lc=saved_lc
371 mov ar.lc=tmp
403 mov ar.lc=saved_lc
[all …]
Dmemcpy.S52 .save ar.lc, saved_lc
53 mov saved_lc=ar.lc
79 mov ar.lc=cnt
108 mov ar.lc=saved_lc
125 mov ar.lc=cnt
151 mov ar.lc=saved_lc
245 mov ar.lc=t2
264 mov ar.lc=saved_lc
/linux-5.19.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()
635 int t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc) in t1_link_start() argument
637 unsigned int fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); in t1_link_start()
639 if (lc->supported & SUPPORTED_Autoneg) { in t1_link_start()
[all …]
/linux-5.19.10/fs/affs/
Dsymlink.c23 char lc; in affs_symlink_read_folio() local
33 lc = 0; in affs_symlink_read_folio()
48 lc = '/'; in affs_symlink_read_folio()
51 if (c == '/' && lc == '/' && i < 1020) { /* parent dir */ in affs_symlink_read_folio()
56 lc = c; in affs_symlink_read_folio()
/linux-5.19.10/Documentation/networking/devlink/
Ddevlink-linecard.rst112 $ devlink lc show [ DEV [ lc LC_INDEX ] ]
113 $ devlink lc set DEV lc LC_INDEX [ { type LC_TYPE | notype } ]
116 $ devlink lc
119 $ devlink lc set pci/0000:01:00.0 lc 8 type 16x100G
122 $ devlink lc set pci/0000:01:00.0 lc 8 notype
/linux-5.19.10/arch/powerpc/kernel/
Dio.c126 u32 lc = c; in _memset_io() local
127 lc |= lc << 8; in _memset_io()
128 lc |= lc << 16; in _memset_io()
137 *((volatile u32 *)p) = lc; in _memset_io()
/linux-5.19.10/drivers/usb/serial/
Dxr_serial.c740 struct usb_cdc_line_coding *lc; in xr_cdc_set_line_coding() local
743 lc = kzalloc(sizeof(*lc), GFP_KERNEL); in xr_cdc_set_line_coding()
744 if (!lc) in xr_cdc_set_line_coding()
748 lc->dwDTERate = cpu_to_le32(tty->termios.c_ospeed); in xr_cdc_set_line_coding()
750 lc->dwDTERate = cpu_to_le32(old_termios->c_ospeed); in xr_cdc_set_line_coding()
752 lc->dwDTERate = cpu_to_le32(9600); in xr_cdc_set_line_coding()
755 lc->bCharFormat = USB_CDC_2_STOP_BITS; in xr_cdc_set_line_coding()
757 lc->bCharFormat = USB_CDC_1_STOP_BITS; in xr_cdc_set_line_coding()
762 lc->bParityType = USB_CDC_MARK_PARITY; in xr_cdc_set_line_coding()
764 lc->bParityType = USB_CDC_SPACE_PARITY; in xr_cdc_set_line_coding()
[all …]
/linux-5.19.10/drivers/net/ethernet/chelsio/cxgb4vf/
Dt4vf_hw.c456 static void init_link_config(struct link_config *lc, in init_link_config() argument
460 lc->pcaps = pcaps; in init_link_config()
461 lc->lpacaps = 0; in init_link_config()
462 lc->speed_caps = 0; in init_link_config()
463 lc->speed = 0; in init_link_config()
464 lc->requested_fc = lc->fc = PAUSE_RX | PAUSE_TX; in init_link_config()
469 lc->auto_fec = fwcap_to_cc_fec(acaps); in init_link_config()
470 lc->requested_fec = FEC_AUTO; in init_link_config()
471 lc->fec = lc->auto_fec; in init_link_config()
480 if (lc->pcaps & FW_PORT_CAP32_ANEG) { in init_link_config()
[all …]
/linux-5.19.10/drivers/gpio/
Dgpiolib-cdev.c905 static bool gpio_v2_line_config_debounced(struct gpio_v2_line_config *lc, in gpio_v2_line_config_debounced() argument
911 for (i = 0; i < lc->num_attrs; i++) { in gpio_v2_line_config_debounced()
912 if ((lc->attrs[i].attr.id == GPIO_V2_LINE_ATTR_ID_DEBOUNCE) && in gpio_v2_line_config_debounced()
913 (lc->attrs[i].mask & mask)) in gpio_v2_line_config_debounced()
919 static u32 gpio_v2_line_config_debounce_period(struct gpio_v2_line_config *lc, in gpio_v2_line_config_debounce_period() argument
925 for (i = 0; i < lc->num_attrs; i++) { in gpio_v2_line_config_debounce_period()
926 if ((lc->attrs[i].attr.id == GPIO_V2_LINE_ATTR_ID_DEBOUNCE) && in gpio_v2_line_config_debounce_period()
927 (lc->attrs[i].mask & mask)) in gpio_v2_line_config_debounce_period()
928 return lc->attrs[i].attr.debounce_period_us; in gpio_v2_line_config_debounce_period()
952 struct gpio_v2_line_config *lc, in edge_detector_setup() argument
[all …]

12345