| /linux/tools/testing/selftests/drivers/net/mlxsw/ |
| 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 …]
|
| /linux/lib/ |
| 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 …]
|
| /linux/drivers/md/ |
| 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 …]
|
| 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() 227 strscpy(lc->uuid, argv[0], sizeof(lc->uuid)); 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 …]
|
| 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 …]
|
| 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() 66 ti->private = lc; in linear_ctr() 70 kfree(lc); in linear_ctr() 79 kfree(lc); in linear_dtr() 111 DMEMIT("%s %llu", lc->dev->name, (unsigned long long)lc->start); in linear_status() 143 return dm_report_zones(lc->dev->bdev, lc->start, in linear_report_zones() 156 return fn(ti, lc->dev, lc->start, ti->len, data); in linear_iterate_devices() [all …]
|
| /linux/arch/s390/include/asm/ |
| A D | vtime.h | 7 struct lowcore *lc = get_lowcore(); in update_timer_sys() local 9 lc->system_timer += lc->last_update_timer - lc->exit_timer; in update_timer_sys() 10 lc->user_timer += lc->exit_timer - lc->sys_enter_timer; in update_timer_sys() 11 lc->last_update_timer = lc->sys_enter_timer; in update_timer_sys() 16 struct lowcore *lc = get_lowcore(); in update_timer_mcck() local 18 lc->system_timer += lc->last_update_timer - lc->exit_timer; in update_timer_mcck() 19 lc->user_timer += lc->exit_timer - lc->mcck_enter_timer; in update_timer_mcck() 20 lc->last_update_timer = lc->mcck_enter_timer; in update_timer_mcck()
|
| /linux/arch/s390/kernel/ |
| A D | smp.c | 195 struct lowcore *lc; in pcpu_alloc_lowcore() local 204 memset((char *) lc + 512, 0, sizeof(*lc) - 512); in pcpu_alloc_lowcore() 208 lc->cpu_nr = cpu; in pcpu_alloc_lowcore() 258 lc->cpu_nr = cpu; in pcpu_prepare_secondary() 267 lc->user_timer = lc->system_timer = in pcpu_prepare_secondary() 268 lc->steal_timer = lc->avg_steal_timer = 0; in pcpu_prepare_secondary() 272 lc->cregs_save_area[1] = lc->kernel_asce; in pcpu_prepare_secondary() 273 lc->cregs_save_area[7] = lc->user_asce; in pcpu_prepare_secondary() 300 lc->restart_stack = lc->kernel_stack; in pcpu_start_fn() 335 if (lc) { in pcpu_delegate() [all …]
|
| A D | vtime.c | 45 lc->system_timer += lc->last_update_timer - timer; in set_vtimer() 46 lc->last_update_timer = expires; in set_vtimer() 123 timer = lc->last_update_timer; in do_account_vtime() 124 clock = lc->last_update_clock; in do_account_vtime() 135 lc->hardirq_timer += timer; in do_account_vtime() 137 lc->system_timer += timer; in do_account_vtime() 155 lc->steal_timer += in do_account_vtime() 209 steal = lc->steal_timer; in vtime_flush() 212 lc->steal_timer = 0; in vtime_flush() 238 lc->guest_timer += delta; in vtime_account_kernel() [all …]
|
| A D | setup.c | 397 struct lowcore *lc, *abs_lc; in setup_lowcore() local 403 lc = memblock_alloc_low(sizeof(*lc), sizeof(*lc)); in setup_lowcore() 404 if (!lc) in setup_lowcore() 406 __func__, sizeof(*lc), sizeof(*lc)); in setup_lowcore() 423 lc->lpp = LPP_MAGIC; in setup_lowcore() 450 lc->restart_data = 0; in setup_lowcore() 451 lc->restart_source = -1U; in setup_lowcore() 453 lc->spinlock_index = 0; in setup_lowcore() 470 abs_lc->mcesad = lc->mcesad; in setup_lowcore() 473 set_prefix(__pa(lc)); in setup_lowcore() [all …]
|
| A D | idle.c | 27 struct lowcore *lc = get_lowcore(); in account_idle_time_irq() local 38 idle_time = lc->int_clock - idle->clock_idle_enter; in account_idle_time_irq() 40 lc->steal_timer += idle->clock_idle_enter - lc->last_update_clock; in account_idle_time_irq() 41 lc->last_update_clock = lc->int_clock; in account_idle_time_irq() 43 lc->system_timer += lc->last_update_timer - idle->timer_idle_enter; in account_idle_time_irq() 44 lc->last_update_timer = lc->sys_enter_timer; in account_idle_time_irq()
|
| A D | traps.c | 297 struct lowcore *lc = get_lowcore(); in trap_init() local 305 psw_bits(lc->svc_new_psw).mcheck = 1; in trap_init() 306 psw_bits(lc->io_new_psw).mcheck = 1; in trap_init() 317 struct lowcore *lc = get_lowcore(); in __do_pgm_check() local 321 regs->int_code = lc->pgm_int_code; in __do_pgm_check() 335 if (lc->pgm_code & 0x0200) { in __do_pgm_check() 337 current->thread.trap_tdb = lc->pgm_tdb; in __do_pgm_check() 340 if (lc->pgm_code & PGM_INT_CODE_PER) { in __do_pgm_check() 345 ev->address = lc->per_address; in __do_pgm_check() 346 ev->cause = lc->per_code_combined; in __do_pgm_check() [all …]
|
| A D | nmi.c | 120 struct lowcore *lc = get_lowcore(); in s390_handle_damage() local 129 u64_to_hex(ptr, lc->mcck_interruption_code); in s390_handle_damage() 139 psw_save = lc->mcck_new_psw; in s390_handle_damage() 140 psw_bits(lc->mcck_new_psw).io = 0; in s390_handle_damage() 141 psw_bits(lc->mcck_new_psw).ext = 0; in s390_handle_damage() 142 psw_bits(lc->mcck_new_psw).wait = 1; in s390_handle_damage() 149 lc->mcck_new_psw = psw_save; in s390_handle_damage() 305 struct lowcore *lc = get_lowcore(); in s390_do_machine_check() local 318 mci.val = lc->mcck_interruption_code; in s390_do_machine_check() 386 if (lc->external_damage_code & (1U << ED_STP_SYNC)) in s390_do_machine_check() [all …]
|
| A D | early.c | 181 struct lowcore *lc = get_lowcore(); in __do_early_pgm_check() local 184 regs->int_code = lc->pgm_int_code; in __do_early_pgm_check() 185 regs->int_parm_long = lc->trans_exc_code; in __do_early_pgm_check() 209 struct lowcore *lc = get_lowcore(); in setup_lowcore_early() local 214 lc->program_new_psw = psw; in setup_lowcore_early() 215 lc->preempt_count = INIT_PREEMPT_COUNT; in setup_lowcore_early() 216 lc->return_lpswe = gen_lpswe(__LC_RETURN_PSW); in setup_lowcore_early() 217 lc->return_mcck_lpswe = gen_lpswe(__LC_RETURN_MCCK_PSW); in setup_lowcore_early()
|
| /linux/include/linux/ |
| 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 …]
|
| /linux/net/rds/ |
| 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 …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| A D | setget_sockopt.c | 153 return bpf_test_sockopt_flip(lc->ctx, lc->sk, t, SOL_SOCKET); in bpf_test_socket_sockopt() 155 return bpf_test_sockopt_int(lc->ctx, lc->sk, t, SOL_SOCKET); in bpf_test_socket_sockopt() 158 static int bpf_test_ip_sockopt(__u32 i, struct loop_ctx *lc) in bpf_test_ip_sockopt() argument 170 return bpf_test_sockopt_flip(lc->ctx, lc->sk, t, IPPROTO_IP); in bpf_test_ip_sockopt() 172 return bpf_test_sockopt_int(lc->ctx, lc->sk, t, IPPROTO_IP); in bpf_test_ip_sockopt() 187 return bpf_test_sockopt_flip(lc->ctx, lc->sk, t, IPPROTO_IPV6); in bpf_test_ipv6_sockopt() 189 return bpf_test_sockopt_int(lc->ctx, lc->sk, t, IPPROTO_IPV6); in bpf_test_ipv6_sockopt() 192 static int bpf_test_tcp_sockopt(__u32 i, struct loop_ctx *lc) in bpf_test_tcp_sockopt() argument 205 ctx = lc->ctx; in bpf_test_tcp_sockopt() 206 sk = lc->sk; in bpf_test_tcp_sockopt() [all …]
|
| /linux/tools/testing/selftests/powerpc/papr_vpd/ |
| A D | papr_vpd.c | 32 struct papr_location_code lc = { .str = "", }; in dev_papr_vpd_get_handle_all() local 42 fd = ioctl(devfd, PAPR_VPD_IOC_CREATE_HANDLE, &lc); in dev_papr_vpd_get_handle_all() 71 struct papr_location_code lc = { .str = "", }; in dev_papr_vpd_get_handle_byte_at_a_time() local 80 fd = ioctl(devfd, PAPR_VPD_IOC_CREATE_HANDLE, &lc); in dev_papr_vpd_get_handle_byte_at_a_time() 112 struct papr_location_code lc = {}; in dev_papr_vpd_unterm_loc_code() local 124 memset(lc.str, 'x', ARRAY_SIZE(lc.str)); in dev_papr_vpd_unterm_loc_code() 157 struct papr_location_code lc = { .str = "", }; in papr_vpd_close_handle_without_reading() local 180 struct papr_location_code lc = { .str = "", }; in papr_vpd_reread() local 245 snprintf(lc->str, sizeof(lc->str), in get_system_loc_code() 261 struct papr_location_code lc; in papr_vpd_system_loc_code() local [all …]
|
| /linux/fs/ocfs2/ |
| 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 …]
|
| /linux/drivers/accessibility/speakup/ |
| A D | genmap.c | 74 lc++; in main() 129 for (lc = 1; lc <= max_key_used; lc++) { in main() 130 kp = key_data[lc]; in main() 150 for (lc = 1; lc <= max_key_used; lc++) { in main() 151 kp = key_data[lc]; in main() 154 printf("\n\t%d,", lc); in main()
|
| /linux/drivers/net/ethernet/chelsio/cxgb/ |
| 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 …]
|
| /linux/fs/affs/ |
| 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()
|
| /linux/Documentation/networking/devlink/ |
| 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
|
| /linux/drivers/net/ethernet/chelsio/cxgb4vf/ |
| A D | t4vf_hw.c | 460 lc->pcaps = pcaps; in init_link_config() 461 lc->lpacaps = 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() 471 lc->fec = lc->auto_fec; in init_link_config() 485 lc->acaps = 0; in init_link_config() 2015 if (link_ok != lc->link_ok || speed != lc->speed || in t4vf_handle_get_port_info() 2016 fc != lc->fc || adv_fc != lc->advertised_fc || in t4vf_handle_get_port_info() 2029 lc->fc = fc; in t4vf_handle_get_port_info() 2030 lc->fec = fec; in t4vf_handle_get_port_info() [all …]
|
| /linux/arch/powerpc/kernel/ |
| 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()
|