Home
last modified time | relevance | path

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

12345

/linux/lib/
A Dlru_cache.c115 lc = kzalloc(sizeof(*lc), GFP_KERNEL); in lc_create()
116 if (!lc) in lc_create()
147 return lc; in lc_create()
154 kfree(lc); in lc_create()
178 if (!lc) in lc_destroy()
184 kfree(lc); in lc_destroy()
240 lc->name, lc->used, lc->nr_elements, in lc_seq_printf_stats()
241 lc->hits, lc->misses, lc->starving, lc->locked, lc->changed); in lc_seq_printf_stats()
246 return lc->lc_slot + (enr % lc->nr_elements); in lc_hash_slot()
427 if (lc->pending_changes >= lc->max_pending_changes) in __lc_get()
[all …]
/linux/drivers/md/
A Ddm-log.c401 lc = kmalloc(sizeof(*lc), GFP_KERNEL); in create_log_context()
477 lc->io_req.mem.ptr.vma = lc->disk_header; in create_log_context()
570 dm_put_device(lc->ti, lc->log_dev); in disk_dtr()
612 log_set_bit(lc, lc->clean_bits, i); in disk_resume()
616 log_clear_bit(lc, lc->clean_bits, i); in disk_resume()
620 log_clear_bit(lc, lc->clean_bits, i); in disk_resume()
629 lc->header.nr_regions = lc->region_count; in disk_resume()
699 log_clear_bit(lc, lc->clean_bits, i); in disk_flush()
730 log_set_bit(lc, lc->clean_bits, region); in core_clear_region()
737 if (lc->sync_search >= lc->region_count) in core_get_resync_work()
[all …]
A Ddm-log-writes.c474 lc->next_sector += dev_to_bio_sectors(lc, 1); in log_writes_kthread()
481 lc->end_sector = logdev_last_sector(lc); in log_writes_kthread()
483 lc->next_sector >= lc->end_sector) { in log_writes_kthread()
544 if (!lc) { in log_writes_ctr()
573 lc->sectorshift = ilog2(lc->sectorsize); in log_writes_ctr()
588 lc->next_sector = lc->sectorsize >> SECTOR_SHIFT; in log_writes_ctr()
590 lc->end_sector = logdev_last_sector(lc); in log_writes_ctr()
602 kfree(lc); in log_writes_ctr()
647 wait_event(lc->wait, !atomic_read(&lc->io_blocks) && in log_writes_dtr()
655 kfree(lc); in log_writes_dtr()
[all …]
A Ddm-log-userspace-base.c207 lc = kzalloc(sizeof(*lc), GFP_KERNEL); in userspace_ctr()
208 if (!lc) { in userspace_ctr()
214 lc->luid = (unsigned long)lc; in userspace_ctr()
220 kfree(lc); in userspace_ctr()
241 kfree(lc); in userspace_ctr()
342 dm_put_device(lc->ti, lc->log_dev); in userspace_dtr()
347 kfree(lc); in userspace_dtr()
472 r = userspace_do_request(lc, lc->uuid, fe->type, in flush_one_by_one()
521 r = userspace_do_request(lc, lc->uuid, type, in flush_by_group()
722 if (lc->in_sync_hint >= lc->region_count) in userspace_get_resync_work()
[all …]
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()
65 ti->private = lc; in linear_ctr()
69 kfree(lc); in linear_ctr()
77 dm_put_device(ti, lc->dev); in linear_dtr()
78 kfree(lc); in linear_dtr()
117 DMEMIT("%s %llu", lc->dev->name, (unsigned long long)lc->start); in linear_status()
149 return dm_report_zones(lc->dev->bdev, lc->start, in linear_report_zones()
[all …]
/linux/include/linux/
A Dlru_cache.h242 extern void lc_reset(struct lru_cache *lc);
243 extern void lc_destroy(struct lru_cache *lc);
245 extern void lc_del(struct lru_cache *lc, struct lc_element *element);
252 extern void lc_committed(struct lru_cache *lc);
268 static inline int lc_try_lock_for_transaction(struct lru_cache *lc) in lc_try_lock_for_transaction() argument
270 return !test_and_set_bit(__LC_LOCKED, &lc->flags); in lc_try_lock_for_transaction()
282 extern int lc_try_lock(struct lru_cache *lc);
288 static inline void lc_unlock(struct lru_cache *lc) in lc_unlock() argument
290 clear_bit(__LC_DIRTY, &lc->flags); in lc_unlock()
291 clear_bit_unlock(__LC_LOCKED, &lc->flags); in lc_unlock()
[all …]
/linux/arch/s390/kernel/
A Dsmp.c195 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()
232 struct lowcore *lc; in pcpu_free_lowcore() local
255 lc->cpu_nr = cpu; in pcpu_prepare_secondary()
263 lc->user_timer = lc->system_timer = in pcpu_prepare_secondary()
264 lc->steal_timer = lc->avg_steal_timer = 0; in pcpu_prepare_secondary()
266 lc->cregs_save_area[1] = lc->kernel_asce; in pcpu_prepare_secondary()
267 lc->cregs_save_area[7] = lc->user_asce; in pcpu_prepare_secondary()
274 struct lowcore *lc; in pcpu_attach_task() local
[all …]
A 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()
445 lc->lpp = LPP_MAGIC; in setup_lowcore_dat_off()
448 nmi_alloc_boot_cpu(lc); in setup_lowcore_dat_off()
474 lc->restart_data = 0; in setup_lowcore_dat_off()
475 lc->restart_source = -1U; in setup_lowcore_dat_off()
491 lc->spinlock_index = 0; in setup_lowcore_dat_off()
498 set_prefix((u32)(unsigned long) lc); in setup_lowcore_dat_off()
[all …]
A Dnmi.c67 void __init nmi_alloc_boot_cpu(struct lowcore *lc) in nmi_alloc_boot_cpu() argument
71 lc->mcesad = (unsigned long) &boot_mcesa; in nmi_alloc_boot_cpu()
73 lc->mcesad |= ilog2(MCESA_MAX_SIZE); in nmi_alloc_boot_cpu()
103 int nmi_alloc_per_cpu(struct lowcore *lc) in nmi_alloc_per_cpu() argument
114 lc->mcesad = origin | mcesa_origin_lc; in nmi_alloc_per_cpu()
118 void nmi_free_per_cpu(struct lowcore *lc) in nmi_free_per_cpu() argument
122 kmem_cache_free(mcesa_cache, (void *)(lc->mcesad & MCESA_ORIGIN_MASK)); in nmi_free_per_cpu()
/linux/net/rds/
A Dloop.c137 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/fs/ocfs2/
A Dstack_user.c816 complete(&lc->oc_sync_wait); in sync_wait_cb()
907 lc->oc_version_lksb.sb_lvbptr = lc->oc_lvb; in get_protocol_version()
961 lc->oc_our_slot = our_slot; in user_recover_done()
962 wake_up(&lc->oc_wait); in user_recover_done()
990 if (!lc) in user_cluster_connect()
996 conn->cc_private = lc; in user_cluster_connect()
997 lc->oc_type = NO_CONTROLD; in user_cluster_connect()
1013 lc->oc_type = WITH_CONTROLD; in user_cluster_connect()
1035 wait_event(lc->oc_wait, (atomic_read(&lc->oc_this_node) > 0)); in user_cluster_connect()
1050 lc = NULL; in user_cluster_connect()
[all …]
/linux/arch/ia64/lib/
A 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
96 mov r30 = ar.lc
110 mov ar.lc = in0
[all …]
A 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
A Dcopy_user.S88 .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 …]
A 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
A 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
A 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
A 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/drivers/net/ethernet/chelsio/cxgb/
A Dsubr.c168 lc->fc = (unsigned char)fc; in t1_link_changed()
654 lc->speed = lc->requested_speed; in t1_link_start()
655 lc->duplex = lc->requested_duplex; in t1_link_start()
658 lc->duplex, fc); in t1_link_start()
661 phy->ops->set_speed_duplex(phy, lc->speed, lc->duplex); in t1_link_start()
1059 lc->supported = bi->caps; in init_link_config()
1060 lc->requested_speed = lc->speed = SPEED_INVALID; in init_link_config()
1061 lc->requested_duplex = lc->duplex = DUPLEX_INVALID; in init_link_config()
1062 lc->requested_fc = lc->fc = PAUSE_RX | PAUSE_TX; in init_link_config()
1064 lc->advertising = lc->supported; in init_link_config()
[all …]
/linux/drivers/gpio/
A Dgpiolib-cdev.c749 (lc->attrs[i].mask & mask)) in gpio_v2_line_config_debounced()
763 (lc->attrs[i].mask & mask)) in gpio_v2_line_config_debounce_period()
869 (lc->attrs[i].mask & mask)) in gpio_v2_line_config_flags()
870 return lc->attrs[i].attr.flags; in gpio_v2_line_config_flags()
872 return lc->flags; in gpio_v2_line_config_flags()
883 (lc->attrs[i].mask & mask)) in gpio_v2_line_config_output_value()
948 if (memchr_inv(lc->padding, 0, sizeof(lc->padding))) in gpio_v2_line_config_validate()
1166 struct gpio_v2_line_config lc; in linereq_set_config() local
1169 if (copy_from_user(&lc, ip, sizeof(lc))) in linereq_set_config()
1316 struct gpio_v2_line_config *lc; in linereq_create() local
[all …]
/linux/drivers/net/ethernet/chelsio/cxgb4vf/
A Dt4vf_hw.c460 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/drivers/usb/serial/
A 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()
752 lc->dwDTERate = cpu_to_le32(9600); in xr_cdc_set_line_coding()
772 lc->bParityType = USB_CDC_NO_PARITY; in xr_cdc_set_line_coding()
786 lc->bDataBits = 5; in xr_cdc_set_line_coding()
789 lc->bDataBits = 6; in xr_cdc_set_line_coding()
792 lc->bDataBits = 7; in xr_cdc_set_line_coding()
796 lc->bDataBits = 8; in xr_cdc_set_line_coding()
804 lc, sizeof(*lc), USB_CTRL_SET_TIMEOUT); in xr_cdc_set_line_coding()
[all …]
/linux/fs/affs/
A Dsymlink.c22 char lc; in affs_symlink_readpage() local
32 lc = 0; in affs_symlink_readpage()
47 lc = '/'; in affs_symlink_readpage()
50 if (c == '/' && lc == '/' && i < 1020) { /* parent dir */ in affs_symlink_readpage()
55 lc = c; in affs_symlink_readpage()
/linux/arch/powerpc/kernel/
A 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/drivers/net/ethernet/chelsio/cxgb3/
A Dt3_hw.c1207 if (link_ok == lc->link_ok && speed == lc->speed && in t3_link_changed()
1208 duplex == lc->duplex && fc == lc->fc) in t3_link_changed()
1225 lc->fc = fc; in t3_link_changed()
1258 fc = lc->fc; in t3_link_fault()
1313 lc->speed = lc->requested_speed; in t3_link_start()
1314 lc->duplex = lc->requested_duplex; in t3_link_start()
1316 t3_mac_set_speed_duplex_fc(mac, lc->speed, lc->duplex, in t3_link_start()
3431 lc->requested_speed = lc->speed = SPEED_INVALID; in init_link_config()
3432 lc->requested_duplex = lc->duplex = DUPLEX_INVALID; in init_link_config()
3433 lc->requested_fc = lc->fc = PAUSE_RX | PAUSE_TX; in init_link_config()
[all …]

Completed in 83 milliseconds

12345