/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | devlink_linecard.sh | 39 local lc=$1 41 devlink lc show $DEVLINK_DEV lc $lc -j | jq -e -r ".[][][].state" 46 local lc=$1 55 local lc=$1 91 devlink lc show $DEVLINK_DEV lc $lc -j | jq -e -r ".[][][].nested_devlink" 111 devlink lc set $DEVLINK_DEV lc $lc notype 130 devlink lc set $DEVLINK_DEV lc $lc type $type 140 provisioned_type=$(devlink lc show $DEVLINK_DEV lc $lc -j | jq -e -r ".[][][].type") 153 local lc 170 supported_types_count=$(devlink lc show $DEVLINK_DEV lc $lc -j | \ [all …]
|
/openbmc/linux/lib/ |
H A D | lru_cache.c | 104 lc = kzalloc(sizeof(*lc), GFP_KERNEL); in lc_create() 105 if (!lc) in lc_create() 136 return lc; in lc_create() 143 kfree(lc); in lc_create() 167 if (!lc) in lc_destroy() 173 kfree(lc); in lc_destroy() 229 lc->name, lc->used, lc->nr_elements, in lc_seq_printf_stats() 230 lc->hits, lc->misses, lc->starving, lc->locked, lc->changed); in lc_seq_printf_stats() 235 return lc->lc_slot + (enr % lc->nr_elements); in lc_hash_slot() 416 if (lc->pending_changes >= lc->max_pending_changes) in __lc_get() [all …]
|
/openbmc/linux/drivers/md/ |
H A D | dm-log.c | 405 lc = kmalloc(sizeof(*lc), GFP_KERNEL); in create_log_context() 479 lc->io_req.mem.ptr.vma = lc->disk_header; in create_log_context() 574 dm_put_device(lc->ti, lc->log_dev); in disk_dtr() 616 log_set_bit(lc, lc->clean_bits, i); in disk_resume() 620 log_clear_bit(lc, lc->clean_bits, i); in disk_resume() 624 log_clear_bit(lc, lc->clean_bits, i); in disk_resume() 633 lc->header.nr_regions = lc->region_count; in disk_resume() 707 log_clear_bit(lc, lc->clean_bits, i); in disk_flush() 740 log_set_bit(lc, lc->clean_bits, region); in core_clear_region() 747 if (lc->sync_search >= lc->region_count) in core_get_resync_work() [all …]
|
H A D | dm-log-userspace-base.c | 208 lc = kzalloc(sizeof(*lc), GFP_KERNEL); in userspace_ctr() 209 if (!lc) { in userspace_ctr() 215 lc->luid = (unsigned long)lc; in userspace_ctr() 221 kfree(lc); in userspace_ctr() 242 kfree(lc); in userspace_ctr() 343 dm_put_device(lc->ti, lc->log_dev); in userspace_dtr() 348 kfree(lc); in userspace_dtr() 471 r = userspace_do_request(lc, lc->uuid, fe->type, in flush_one_by_one() 520 r = userspace_do_request(lc, lc->uuid, type, in flush_by_group() 717 if (lc->in_sync_hint >= lc->region_count) in userspace_get_resync_work() [all …]
|
H A D | dm-log-writes.c | 452 lc->next_sector += dev_to_bio_sectors(lc, 1); in log_writes_kthread() 459 lc->end_sector = logdev_last_sector(lc); in log_writes_kthread() 461 lc->next_sector >= lc->end_sector) { in log_writes_kthread() 522 if (!lc) { in log_writes_ctr() 551 lc->sectorshift = ilog2(lc->sectorsize); in log_writes_ctr() 566 lc->next_sector = lc->sectorsize >> SECTOR_SHIFT; in log_writes_ctr() 568 lc->end_sector = logdev_last_sector(lc); in log_writes_ctr() 580 kfree(lc); in log_writes_ctr() 625 wait_event(lc->wait, !atomic_read(&lc->io_blocks) && in log_writes_dtr() 633 kfree(lc); in log_writes_dtr() [all …]
|
H A D | dm-linear.c | 32 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() 65 ti->private = lc; in linear_ctr() 69 kfree(lc); in linear_ctr() 78 kfree(lc); in linear_dtr() 110 DMEMIT("%s %llu", lc->dev->name, (unsigned long long)lc->start); in linear_status() 142 return dm_report_zones(lc->dev->bdev, lc->start, in linear_report_zones() 155 return fn(ti, lc->dev, lc->start, ti->len, data); in linear_iterate_devices() [all …]
|
/openbmc/linux/include/linux/ |
H A D | lru_cache.h | 241 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); 250 extern void lc_committed(struct lru_cache *lc); 266 static inline int lc_try_lock_for_transaction(struct lru_cache *lc) in lc_try_lock_for_transaction() argument 268 return !test_and_set_bit(__LC_LOCKED, &lc->flags); in lc_try_lock_for_transaction() 280 extern int lc_try_lock(struct lru_cache *lc); 286 static inline void lc_unlock(struct lru_cache *lc) in lc_unlock() argument 288 clear_bit(__LC_DIRTY, &lc->flags); in lc_unlock() 289 clear_bit_unlock(__LC_LOCKED, &lc->flags); in lc_unlock() [all …]
|
/openbmc/linux/net/rds/ |
H A D | loop.c | 137 struct rds_loop_connection *lc; in rds_loop_conn_alloc() local 141 if (!lc) 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() 160 rdsdebug("lc %p\n", lc); in rds_loop_conn_free() 162 list_del(&lc->loop_node); in rds_loop_conn_free() 164 kfree(lc); in rds_loop_conn_free() 191 WARN_ON(lc->conn->c_passive); in rds_loop_exit() 192 rds_conn_destroy(lc->conn); in rds_loop_exit() 212 WARN_ON(lc->conn->c_passive); in rds_loop_kill_conns() [all …]
|
/openbmc/linux/arch/s390/kernel/ |
H A D | smp.c | 196 struct lowcore *lc; in pcpu_alloc_lowcore() local 205 memset((char *) lc + 512, 0, sizeof(*lc) - 512); in pcpu_alloc_lowcore() 209 lc->cpu_nr = cpu; in pcpu_alloc_lowcore() 261 lc->cpu_nr = cpu; in pcpu_prepare_secondary() 269 lc->user_timer = lc->system_timer = in pcpu_prepare_secondary() 270 lc->steal_timer = lc->avg_steal_timer = 0; in pcpu_prepare_secondary() 274 lc->cregs_save_area[1] = lc->kernel_asce; in pcpu_prepare_secondary() 275 lc->cregs_save_area[7] = lc->user_asce; in pcpu_prepare_secondary() 306 lc->restart_stack = lc->kernel_stack; in pcpu_start_fn() 341 if (lc) { in pcpu_delegate() [all …]
|
H A D | setup.c | 404 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() 429 lc->lpp = LPP_MAGIC; in setup_lowcore() 456 lc->restart_data = 0; in setup_lowcore() 457 lc->restart_source = -1U; in setup_lowcore() 460 lc->spinlock_index = 0; in setup_lowcore() 477 abs_lc->mcesad = lc->mcesad; in setup_lowcore() 480 set_prefix(__pa(lc)); in setup_lowcore() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | setget_sockopt.c | 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->sk, t, IPPROTO_IP); in bpf_test_ip_sockopt() 188 return bpf_test_sockopt_flip(lc->ctx, lc->sk, t, IPPROTO_IPV6); in bpf_test_ipv6_sockopt() 190 return bpf_test_sockopt_int(lc->ctx, lc->sk, t, IPPROTO_IPV6); in bpf_test_ipv6_sockopt() 193 static int bpf_test_tcp_sockopt(__u32 i, struct loop_ctx *lc) in bpf_test_tcp_sockopt() argument 206 ctx = lc->ctx; in bpf_test_tcp_sockopt() 207 sk = lc->sk; in bpf_test_tcp_sockopt() [all …]
|
/openbmc/linux/arch/ia64/lib/ |
H A D | xor.S | 16 .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 96 mov r30 = ar.lc 110 mov ar.lc = in0 [all …]
|
H A D | flush.S | 42 .save ar.lc,r3 43 mov r3=ar.lc // save ar.lc 47 mov ar.lc=r8 61 mov ar.lc=r3 // restore ar.lc 97 .save ar.lc,r3 98 mov r3=ar.lc // save ar.lc 102 mov ar.lc=r8 117 mov ar.lc=r3 // restore ar.lc
|
H A D | strnlen_user.S | 22 .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
|
H A D | clear_user.S | 61 .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
|
H A D | clear_page.S | 38 .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
|
H A D | copy_user.S | 88 .save ar.lc, saved_lc 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 447 mov ar.lc=saved_lc 558 mov ar.lc=saved_lc [all …]
|
/openbmc/linux/fs/ocfs2/ |
H A D | stack_user.c | 804 complete(&lc->oc_sync_wait); in sync_wait_cb() 895 lc->oc_version_lksb.sb_lvbptr = lc->oc_lvb; in get_protocol_version() 949 lc->oc_our_slot = our_slot; in user_recover_done() 950 wake_up(&lc->oc_wait); in user_recover_done() 978 if (!lc) in user_cluster_connect() 984 conn->cc_private = lc; in user_cluster_connect() 985 lc->oc_type = NO_CONTROLD; in user_cluster_connect() 1001 lc->oc_type = WITH_CONTROLD; in user_cluster_connect() 1023 wait_event(lc->oc_wait, (atomic_read(&lc->oc_this_node) > 0)); in user_cluster_connect() 1038 lc = NULL; in user_cluster_connect() [all …]
|
/openbmc/linux/drivers/accessibility/speakup/ |
H A D | genmap.c | 75 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()
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb/ |
H A D | subr.c | 159 lc->fc = (unsigned char)fc; in t1_link_changed() 645 lc->speed = lc->requested_speed; in t1_link_start() 646 lc->duplex = lc->requested_duplex; in t1_link_start() 649 lc->duplex, fc); in t1_link_start() 652 phy->ops->set_speed_duplex(phy, lc->speed, lc->duplex); in t1_link_start() 1050 lc->supported = bi->caps; in init_link_config() 1051 lc->requested_speed = lc->speed = SPEED_INVALID; in init_link_config() 1052 lc->requested_duplex = lc->duplex = DUPLEX_INVALID; in init_link_config() 1053 lc->requested_fc = lc->fc = PAUSE_RX | PAUSE_TX; in init_link_config() 1055 lc->advertising = lc->supported; in init_link_config() [all …]
|
/openbmc/linux/fs/affs/ |
H A D | symlink.c | 22 char lc; in affs_symlink_read_folio() local 32 lc = 0; in affs_symlink_read_folio() 47 lc = '/'; in affs_symlink_read_folio() 50 if (c == '/' && lc == '/' && i < 1020) { /* parent dir */ in affs_symlink_read_folio() 55 lc = c; in affs_symlink_read_folio()
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-protocols/openl2tp/openl2tp/ |
H A D | Makefile-obey-LDFLAGS.patch | 9 -LDFLAGS.l2tpd= -Wl,-E -L. -Lusl -lusl -ldl $(LIBS.dmalloc) -lc 10 -LDFLAGS.l2tpconfig= -Lcli -lcli -lreadline $(LIBS.dmalloc) $(READLINE_LDFLAGS) -lc 11 +LDFLAGS.l2tpd= -Wl,-E -L. -Lusl -lusl -ldl $(LIBS.dmalloc) -lc $(LDFLAGS) 12 +LDFLAGS.l2tpconfig= -Lcli -lcli -lreadline $(LIBS.dmalloc) $(READLINE_LDFLAGS) -lc $(LDFLAGS)
|
/openbmc/linux/Documentation/networking/devlink/ |
H A D | devlink-linecard.rst | 112 $ 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
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-daemons/ippool/ippool/ |
H A D | makefile-add-ldflags.patch | 15 -LDFLAGS.ippoold= -Wl,-E -L. -Lusl -lusl -lnsl -ldl $(LIBS.dmalloc) -lc 16 -LDFLAGS.ippoolconfig= -Lcli -lcli -lreadline -lcurses -lnsl $(LIBS.dmalloc) -lc 17 +LDFLAGS.ippoold= $(LDFLAGS) -Wl,-E -L. -Lusl -lusl -lnsl -ldl $(LIBS.dmalloc) -lc 18 +LDFLAGS.ippoolconfig= $(LDFLAGS) -Lcli -lcli -lreadline -lcurses -lnsl $(LIBS.dmalloc) -lc
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | io.c | 126 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()
|