Home
last modified time | relevance | path

Searched refs:ls (Results 1 – 25 of 130) sorted by relevance

123456

/linux-2.6.39/fs/dlm/
Dlockspace.c35 static ssize_t dlm_control_store(struct dlm_ls *ls, const char *buf, size_t len) in dlm_control_store() argument
40 ls = dlm_find_lockspace_local(ls->ls_local_handle); in dlm_control_store()
41 if (!ls) in dlm_control_store()
46 dlm_ls_stop(ls); in dlm_control_store()
49 dlm_ls_start(ls); in dlm_control_store()
54 dlm_put_lockspace(ls); in dlm_control_store()
58 static ssize_t dlm_event_store(struct dlm_ls *ls, const char *buf, size_t len) in dlm_event_store() argument
60 ls->ls_uevent_result = simple_strtol(buf, NULL, 0); in dlm_event_store()
61 set_bit(LSFL_UEVENT_WAIT, &ls->ls_flags); in dlm_event_store()
62 wake_up(&ls->ls_uevent_wait); in dlm_event_store()
[all …]
Drecoverd.c33 static int enable_locking(struct dlm_ls *ls, uint64_t seq) in enable_locking() argument
37 down_write(&ls->ls_recv_active); in enable_locking()
39 spin_lock(&ls->ls_recover_lock); in enable_locking()
40 if (ls->ls_recover_seq == seq) { in enable_locking()
41 set_bit(LSFL_RUNNING, &ls->ls_flags); in enable_locking()
43 up_write(&ls->ls_in_recovery); in enable_locking()
46 spin_unlock(&ls->ls_recover_lock); in enable_locking()
48 up_write(&ls->ls_recv_active); in enable_locking()
52 static int ls_recover(struct dlm_ls *ls, struct dlm_recover *rv) in ls_recover() argument
57 log_debug(ls, "recover %llx", (unsigned long long)rv->seq); in ls_recover()
[all …]
Drecover.c46 struct dlm_ls *ls = (struct dlm_ls *) data; in dlm_wait_timer_fn() local
47 mod_timer(&ls->ls_timer, jiffies + (dlm_config.ci_recover_timer * HZ)); in dlm_wait_timer_fn()
48 wake_up(&ls->ls_wait_general); in dlm_wait_timer_fn()
51 int dlm_wait_function(struct dlm_ls *ls, int (*testfn) (struct dlm_ls *ls)) in dlm_wait_function() argument
55 init_timer(&ls->ls_timer); in dlm_wait_function()
56 ls->ls_timer.function = dlm_wait_timer_fn; in dlm_wait_function()
57 ls->ls_timer.data = (long) ls; in dlm_wait_function()
58 ls->ls_timer.expires = jiffies + (dlm_config.ci_recover_timer * HZ); in dlm_wait_function()
59 add_timer(&ls->ls_timer); in dlm_wait_function()
61 wait_event(ls->ls_wait_general, testfn(ls) || dlm_recovery_stopped(ls)); in dlm_wait_function()
[all …]
Dmember.c22 static void add_ordered_member(struct dlm_ls *ls, struct dlm_member *new) in add_ordered_member() argument
27 struct list_head *head = &ls->ls_nodes; in add_ordered_member()
46 static int dlm_add_member(struct dlm_ls *ls, int nodeid) in dlm_add_member() argument
55 w = dlm_node_weight(ls->ls_name, nodeid); in dlm_add_member()
69 add_ordered_member(ls, memb); in dlm_add_member()
70 ls->ls_num_nodes++; in dlm_add_member()
74 static void dlm_remove_member(struct dlm_ls *ls, struct dlm_member *memb) in dlm_remove_member() argument
76 list_move(&memb->list, &ls->ls_nodes_gone); in dlm_remove_member()
77 ls->ls_num_nodes--; in dlm_remove_member()
80 int dlm_is_member(struct dlm_ls *ls, int nodeid) in dlm_is_member() argument
[all …]
Drcom.c28 static int rcom_response(struct dlm_ls *ls) in rcom_response() argument
30 return test_bit(LSFL_RCOM_READY, &ls->ls_flags); in rcom_response()
33 static int create_rcom(struct dlm_ls *ls, int to_nodeid, int type, int len, in create_rcom() argument
52 rc->rc_header.h_lockspace = ls->ls_global_id; in create_rcom()
59 spin_lock(&ls->ls_recover_lock); in create_rcom()
60 rc->rc_seq = ls->ls_recover_seq; in create_rcom()
61 spin_unlock(&ls->ls_recover_lock); in create_rcom()
68 static void send_rcom(struct dlm_ls *ls, struct dlm_mhandle *mh, in send_rcom() argument
79 static void make_config(struct dlm_ls *ls, struct rcom_config *rf) in make_config() argument
81 rf->rf_lvblen = cpu_to_le32(ls->ls_lvblen); in make_config()
[all …]
Ddir.c27 static void put_free_de(struct dlm_ls *ls, struct dlm_direntry *de) in put_free_de() argument
29 spin_lock(&ls->ls_recover_list_lock); in put_free_de()
30 list_add(&de->list, &ls->ls_recover_list); in put_free_de()
31 spin_unlock(&ls->ls_recover_list_lock); in put_free_de()
34 static struct dlm_direntry *get_free_de(struct dlm_ls *ls, int len) in get_free_de() argument
39 spin_lock(&ls->ls_recover_list_lock); in get_free_de()
40 list_for_each_entry(de, &ls->ls_recover_list, list) { in get_free_de()
49 spin_unlock(&ls->ls_recover_list_lock); in get_free_de()
56 void dlm_clear_free_entries(struct dlm_ls *ls) in dlm_clear_free_entries() argument
60 spin_lock(&ls->ls_recover_list_lock); in dlm_clear_free_entries()
[all …]
Drequestqueue.c33 void dlm_add_requestqueue(struct dlm_ls *ls, int nodeid, struct dlm_message *ms) in dlm_add_requestqueue() argument
47 mutex_lock(&ls->ls_requestqueue_mutex); in dlm_add_requestqueue()
48 list_add_tail(&e->list, &ls->ls_requestqueue); in dlm_add_requestqueue()
49 mutex_unlock(&ls->ls_requestqueue_mutex); in dlm_add_requestqueue()
63 int dlm_process_requestqueue(struct dlm_ls *ls) in dlm_process_requestqueue() argument
68 mutex_lock(&ls->ls_requestqueue_mutex); in dlm_process_requestqueue()
71 if (list_empty(&ls->ls_requestqueue)) { in dlm_process_requestqueue()
72 mutex_unlock(&ls->ls_requestqueue_mutex); in dlm_process_requestqueue()
76 e = list_entry(ls->ls_requestqueue.next, struct rq_entry, list); in dlm_process_requestqueue()
77 mutex_unlock(&ls->ls_requestqueue_mutex); in dlm_process_requestqueue()
[all …]
Drecover.h17 int dlm_wait_function(struct dlm_ls *ls, int (*testfn) (struct dlm_ls *ls));
18 uint32_t dlm_recover_status(struct dlm_ls *ls);
19 void dlm_set_recover_status(struct dlm_ls *ls, uint32_t status);
20 int dlm_recover_members_wait(struct dlm_ls *ls);
21 int dlm_recover_directory_wait(struct dlm_ls *ls);
22 int dlm_recover_locks_wait(struct dlm_ls *ls);
23 int dlm_recover_done_wait(struct dlm_ls *ls);
24 int dlm_recover_masters(struct dlm_ls *ls);
25 int dlm_recover_master_reply(struct dlm_ls *ls, struct dlm_rcom *rc);
26 int dlm_recover_locks(struct dlm_ls *ls);
[all …]
Dlock.h18 void dlm_receive_message_saved(struct dlm_ls *ls, struct dlm_message *ms);
24 void dlm_scan_rsbs(struct dlm_ls *ls);
25 int dlm_lock_recovery_try(struct dlm_ls *ls);
26 void dlm_unlock_recovery(struct dlm_ls *ls);
27 void dlm_scan_timeout(struct dlm_ls *ls);
28 void dlm_adjust_timeouts(struct dlm_ls *ls);
30 int dlm_purge_locks(struct dlm_ls *ls);
32 void dlm_grant_after_purge(struct dlm_ls *ls);
33 int dlm_recover_waiters_post(struct dlm_ls *ls);
34 void dlm_recover_waiters_pre(struct dlm_ls *ls);
[all …]
Dlock.c90 static void do_purge(struct dlm_ls *ls, int nodeid, int pid);
200 static inline void dlm_lock_recovery(struct dlm_ls *ls) in dlm_lock_recovery() argument
202 down_read(&ls->ls_in_recovery); in dlm_lock_recovery()
205 void dlm_unlock_recovery(struct dlm_ls *ls) in dlm_unlock_recovery() argument
207 up_read(&ls->ls_in_recovery); in dlm_unlock_recovery()
210 int dlm_lock_recovery_try(struct dlm_ls *ls) in dlm_lock_recovery_try() argument
212 return down_read_trylock(&ls->ls_in_recovery); in dlm_lock_recovery_try()
330 static struct dlm_rsb *create_rsb(struct dlm_ls *ls, char *name, int len) in create_rsb() argument
334 r = dlm_allocate_rsb(ls, len); in create_rsb()
338 r->res_ls = ls; in create_rsb()
[all …]
Ddebug_fs.c396 struct dlm_ls *ls = seq->private; in table_seq_start() local
405 if (bucket >= ls->ls_rsbtbl_size) in table_seq_start()
420 spin_lock(&ls->ls_rsbtbl[bucket].lock); in table_seq_start()
421 if (!list_empty(&ls->ls_rsbtbl[bucket].list)) { in table_seq_start()
422 list_for_each_entry(r, &ls->ls_rsbtbl[bucket].list, in table_seq_start()
428 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in table_seq_start()
433 spin_unlock(&ls->ls_rsbtbl[bucket].lock); in table_seq_start()
446 if (bucket >= ls->ls_rsbtbl_size) { in table_seq_start()
451 spin_lock(&ls->ls_rsbtbl[bucket].lock); in table_seq_start()
452 if (!list_empty(&ls->ls_rsbtbl[bucket].list)) { in table_seq_start()
[all …]
Duser.c178 struct dlm_ls *ls; in dlm_user_add_ast() local
186 ls = lkb->lkb_resource->res_ls; in dlm_user_add_ast()
187 mutex_lock(&ls->ls_clear_proc_locks); in dlm_user_add_ast()
233 mutex_unlock(&ls->ls_clear_proc_locks); in dlm_user_add_ast()
239 struct dlm_ls *ls; in device_user_lock() local
243 ls = dlm_find_lockspace_local(proc->lockspace); in device_user_lock()
244 if (!ls) in device_user_lock()
264 error = dlm_user_convert(ls, ua, in device_user_lock()
269 error = dlm_user_request(ls, ua, in device_user_lock()
277 dlm_put_lockspace(ls); in device_user_lock()
[all …]
Dmember.h16 int dlm_ls_stop(struct dlm_ls *ls);
17 int dlm_ls_start(struct dlm_ls *ls);
18 void dlm_clear_members(struct dlm_ls *ls);
19 void dlm_clear_members_gone(struct dlm_ls *ls);
20 int dlm_recover_members(struct dlm_ls *ls, struct dlm_recover *rv,int *neg_out);
21 int dlm_is_removed(struct dlm_ls *ls, int nodeid);
22 int dlm_is_member(struct dlm_ls *ls, int nodeid);
Ddir.h19 int dlm_hash2nodeid(struct dlm_ls *ls, uint32_t hash);
20 void dlm_dir_remove_entry(struct dlm_ls *ls, int nodeid, char *name, int len);
21 void dlm_dir_clear(struct dlm_ls *ls);
22 void dlm_clear_free_entries(struct dlm_ls *ls);
23 int dlm_recover_directory(struct dlm_ls *ls);
24 int dlm_dir_lookup(struct dlm_ls *ls, int nodeid, char *name, int namelen,
26 void dlm_copy_master_names(struct dlm_ls *ls, char *inbuf, int inlen,
Drecoverd.h17 void dlm_recoverd_kick(struct dlm_ls *ls);
18 void dlm_recoverd_stop(struct dlm_ls *ls);
19 int dlm_recoverd_start(struct dlm_ls *ls);
20 void dlm_recoverd_suspend(struct dlm_ls *ls);
21 void dlm_recoverd_resume(struct dlm_ls *ls);
Dplock.c77 struct dlm_ls *ls; in dlm_posix_lock() local
82 ls = dlm_find_lockspace_local(lockspace); in dlm_posix_lock()
83 if (!ls) in dlm_posix_lock()
97 op->info.fsid = ls->ls_global_id; in dlm_posix_lock()
126 log_error(ls, "dlm_posix_lock: op on list %llx", in dlm_posix_lock()
136 log_error(ls, "dlm_posix_lock: vfs lock error %llx", in dlm_posix_lock()
142 dlm_put_lockspace(ls); in dlm_posix_lock()
207 struct dlm_ls *ls; in dlm_posix_unlock() local
211 ls = dlm_find_lockspace_local(lockspace); in dlm_posix_unlock()
212 if (!ls) in dlm_posix_unlock()
[all …]
Drequestqueue.h16 void dlm_add_requestqueue(struct dlm_ls *ls, int nodeid, struct dlm_message *ms);
17 int dlm_process_requestqueue(struct dlm_ls *ls);
18 void dlm_wait_requestqueue(struct dlm_ls *ls);
19 void dlm_purge_requestqueue(struct dlm_ls *ls);
Ddlm_internal.h67 #define log_error(ls, fmt, args...) \ argument
68 printk(KERN_ERR "dlm: %s: " fmt "\n", (ls)->ls_name , ##args)
70 #define log_debug(ls, fmt, args...) \ argument
74 (ls)->ls_name , ##args); \
579 static inline int dlm_locking_stopped(struct dlm_ls *ls) in dlm_locking_stopped() argument
581 return !test_bit(LSFL_RUNNING, &ls->ls_flags); in dlm_locking_stopped()
584 static inline int dlm_recovery_stopped(struct dlm_ls *ls) in dlm_recovery_stopped() argument
586 return test_bit(LSFL_RECOVERY_STOP, &ls->ls_flags); in dlm_recovery_stopped()
589 static inline int dlm_no_directory(struct dlm_ls *ls) in dlm_no_directory() argument
591 return (ls->ls_exflags & DLM_LSFL_NODIR) ? 1 : 0; in dlm_no_directory()
[all …]
Dast.c71 struct dlm_ls *ls = lkb->lkb_resource->res_ls; in dlm_add_lkb_callback() local
96 log_debug(ls, "skip %x add bast %llu mode %d " in dlm_add_lkb_callback()
116 log_error(ls, "no callbacks %x %llu flags %x mode %d sb %d %x", in dlm_add_lkb_callback()
126 int dlm_rem_lkb_callback(struct dlm_ls *ls, struct dlm_lkb *lkb, in dlm_rem_lkb_callback() argument
159 log_debug(ls, "skip %x bast %llu mode %d " in dlm_rem_lkb_callback()
217 struct dlm_ls *ls = NULL; in process_asts() local
229 ls = r->res_ls; in process_asts()
231 if (dlm_locking_stopped(ls)) in process_asts()
246 rv = dlm_rem_lkb_callback(ls, lkb, &callbacks[i], &resid); in process_asts()
254 log_error(ls, "callback resid %d lkb %x", in process_asts()
/linux-2.6.39/fs/gfs2/
Dlock_dlm.c146 struct lm_lockstruct *ls = &gl->gl_sbd->sd_lockstruct; in gdlm_lock() local
157 return dlm_lock(ls->ls_dlm, req, &gl->gl_lksb, lkf, gl->gl_strname, in gdlm_lock()
164 struct lm_lockstruct *ls = &sdp->sd_lockstruct; in gdlm_put_lock() local
172 error = dlm_unlock(ls->ls_dlm, gl->gl_lksb.sb_lkid, DLM_LKF_VALBLK, in gdlm_put_lock()
184 struct lm_lockstruct *ls = &gl->gl_sbd->sd_lockstruct; in gdlm_cancel() local
185 dlm_unlock(ls->ls_dlm, gl->gl_lksb.sb_lkid, DLM_LKF_CANCEL, NULL, gl); in gdlm_cancel()
190 struct lm_lockstruct *ls = &sdp->sd_lockstruct; in gdlm_mount() local
198 error = dlm_new_lockspace(fsname, strlen(fsname), &ls->ls_dlm, in gdlm_mount()
200 (ls->ls_nodir ? DLM_LSFL_NODIR : 0), in gdlm_mount()
210 struct lm_lockstruct *ls = &sdp->sd_lockstruct; in gdlm_unmount() local
[all …]
/linux-2.6.39/arch/powerpc/platforms/cell/spufs/
Dlscsa_alloc.c45 for (p = lscsa->ls; p < lscsa->ls + LS_SIZE; p += PAGE_SIZE) in spu_alloc_lscsa_std()
59 for (p = csa->lscsa->ls; p < csa->lscsa->ls + LS_SIZE; p += PAGE_SIZE) in spu_free_lscsa_std()
132 for (p = csa->lscsa->ls; p < csa->lscsa->ls + LS_SIZE; p += PAGE_SIZE) in spu_alloc_lscsa()
158 for (p = csa->lscsa->ls; p < csa->lscsa->ls + LS_SIZE; p += PAGE_SIZE) in spu_free_lscsa()
/linux-2.6.39/tools/perf/
Dbuiltin-lock.c423 struct lock_stat *ls; in report_lock_acquire_event() local
427 ls = lock_stat_findnew(acquire_event->addr, acquire_event->name); in report_lock_acquire_event()
428 if (ls->discard) in report_lock_acquire_event()
441 ls->nr_trylock++; in report_lock_acquire_event()
443 ls->nr_readlock++; in report_lock_acquire_event()
446 ls->nr_acquired++; in report_lock_acquire_event()
452 ls->nr_acquired++; in report_lock_acquire_event()
463 ls->discard = 1; in report_lock_acquire_event()
474 ls->nr_acquire++; in report_lock_acquire_event()
487 struct lock_stat *ls; in report_lock_acquired_event() local
[all …]
/linux-2.6.39/arch/mips/lasat/
Dlasat_board.c61 unsigned long *ls = lasat_board_info.li_flashpart_size; in init_flash_sizes() local
64 ls[LASAT_MTD_BOOTLOADER] = 0x40000; in init_flash_sizes()
65 ls[LASAT_MTD_SERVICE] = 0xC0000; in init_flash_sizes()
66 ls[LASAT_MTD_NORMAL] = 0x100000; in init_flash_sizes()
74 ls[LASAT_MTD_CONFIG] = 0x100000; in init_flash_sizes()
75 ls[LASAT_MTD_FS] = 0x500000; in init_flash_sizes()
82 ls[LASAT_MTD_CONFIG] = 0x100000; in init_flash_sizes()
84 ls[LASAT_MTD_FS] = in init_flash_sizes()
90 lb[i] = lb[i-1] + ls[i-1]; in init_flash_sizes()
/linux-2.6.39/drivers/leds/
Dleds-pca955x.c194 u8 ls; in pca955x_led_work() local
202 ls = pca955x_read_ls(pca955x->client, chip_ls); in pca955x_led_work()
206 ls = pca955x_ledsel(ls, ls_led, PCA955X_LS_LED_ON); in pca955x_led_work()
209 ls = pca955x_ledsel(ls, ls_led, PCA955X_LS_LED_OFF); in pca955x_led_work()
212 ls = pca955x_ledsel(ls, ls_led, PCA955X_LS_BLINK0); in pca955x_led_work()
223 ls = pca955x_ledsel(ls, ls_led, PCA955X_LS_BLINK1); in pca955x_led_work()
227 pca955x_write_ls(pca955x->client, chip_ls, ls); in pca955x_led_work()
/linux-2.6.39/arch/m68k/fpsp040/
Dsgetem.S95 movel LOCAL_LO(%a0),%d1 |load ls mant in d1
98 movel %d1,LOCAL_LO(%a0) |put ls mant back on stack
107 | ls mantissa part in d1
114 tstl %d1 |test if any bits set in ls mant
119 exg %d0,%d1 |shift ls mant to ms mant
120 bfffo %d0{#0:#32},%d3 |find first 1 in ls mant to d0
127 bfffo %d0{#0:#32},%d3 |find first 1 in ls mant to d0
129 movel %d1,%d6 |save ls mant in d6
130 lsll %d3,%d1 |shift ls mant by count
132 subl %d3,%d5 |sub 32 from shift for ls mant
[all …]

123456