| /linux/fs/dlm/ |
| H A D | lockspace.c | 33 static ssize_t dlm_control_store(struct dlm_ls *ls, const char *buf, size_t len) in dlm_control_store() argument 41 ls = dlm_find_lockspace_local(ls); in dlm_control_store() 42 if (!ls) in dlm_control_store() 47 dlm_ls_stop(ls); in dlm_control_store() 50 dlm_ls_start(ls); in dlm_control_store() 55 dlm_put_lockspace(ls); in dlm_control_store() 59 static ssize_t dlm_event_store(struct dlm_ls *ls, const char *buf, size_t len) in dlm_event_store() argument 61 int rc = kstrtoint(buf, 0, &ls->ls_uevent_result); in dlm_event_store() 65 set_bit(LSFL_UEVENT_WAIT, &ls->ls_flags); in dlm_event_store() 66 wake_up(&ls->ls_uevent_wait); in dlm_event_store() [all …]
|
| H A D | member.c | 28 void dlm_slot_save(struct dlm_ls *ls, struct dlm_rcom *rc, in dlm_slot_save() argument 40 void dlm_slots_copy_out(struct dlm_ls *ls, struct dlm_rcom *rc) in dlm_slots_copy_out() argument 50 for (i = 0; i < ls->ls_slots_size; i++) { in dlm_slots_copy_out() 51 slot = &ls->ls_slots[i]; in dlm_slots_copy_out() 62 static void log_slots(struct dlm_ls *ls, uint32_t gen, int num_slots, in log_slots() argument 94 log_rinfo(ls, "generation %u slots %d%s", gen, num_slots, line); in log_slots() 97 int dlm_slots_copy_in(struct dlm_ls *ls) in dlm_slots_copy_in() argument 100 struct dlm_rcom *rc = ls->ls_recover_buf; in dlm_slots_copy_in() 111 if (gen <= ls->ls_generation) { in dlm_slots_copy_in() 112 log_error(ls, "dlm_slots_copy_in gen %u old %u", in dlm_slots_copy_in() [all …]
|
| H A D | recover.c | 42 int dlm_wait_function(struct dlm_ls *ls, int (*testfn) (struct dlm_ls *ls)) in dlm_wait_function() argument 48 rv = wait_event_timeout(ls->ls_wait_general, in dlm_wait_function() 49 testfn(ls) || dlm_recovery_stopped(ls), in dlm_wait_function() 53 if (test_bit(LSFL_RCOM_WAIT, &ls->ls_flags)) { in dlm_wait_function() 54 log_debug(ls, "dlm_wait_function timed out"); in dlm_wait_function() 59 if (dlm_recovery_stopped(ls)) { in dlm_wait_function() 60 log_debug(ls, "dlm_wait_function aborted"); in dlm_wait_function() 74 uint32_t dlm_recover_status(struct dlm_ls *ls) in dlm_recover_status() argument 77 spin_lock_bh(&ls->ls_recover_lock); in dlm_recover_status() 78 status = ls->ls_recover_status; in dlm_recover_status() [all …]
|
| H A D | rcom.c | 25 static int rcom_response(struct dlm_ls *ls) in rcom_response() argument 27 return test_bit(LSFL_RCOM_READY, &ls->ls_flags); in rcom_response() 30 static void _create_rcom(struct dlm_ls *ls, int to_nodeid, int type, int len, in _create_rcom() argument 39 rc->rc_header.u.h_lockspace = cpu_to_le32(ls->ls_global_id); in _create_rcom() 50 static int create_rcom(struct dlm_ls *ls, int to_nodeid, int type, int len, in create_rcom() argument 65 _create_rcom(ls, to_nodeid, type, len, rc_ret, mb, mb_len, seq); in create_rcom() 70 static int create_rcom_stateless(struct dlm_ls *ls, int to_nodeid, int type, in create_rcom_stateless() argument 85 _create_rcom(ls, to_nodeid, type, len, rc_ret, mb, mb_len, seq); in create_rcom_stateless() 101 static void set_rcom_status(struct dlm_ls *ls, struct rcom_status *rs, in set_rcom_status() argument 111 static void set_rcom_config(struct dlm_ls *ls, struct rcom_config *rf, in set_rcom_config() argument [all …]
|
| H A D | dir.c | 33 int dlm_hash2nodeid(struct dlm_ls *ls, uint32_t hash) in dlm_hash2nodeid() argument 37 if (ls->ls_num_nodes == 1) in dlm_hash2nodeid() 40 node = (hash >> 16) % ls->ls_total_weight; in dlm_hash2nodeid() 41 return ls->ls_node_array[node]; in dlm_hash2nodeid() 50 void dlm_recover_dir_nodeid(struct dlm_ls *ls, const struct list_head *root_list) in dlm_recover_dir_nodeid() argument 55 r->res_dir_nodeid = dlm_hash2nodeid(ls, r->res_hash); in dlm_recover_dir_nodeid() 59 int dlm_recover_directory(struct dlm_ls *ls, uint64_t seq) in dlm_recover_directory() argument 67 log_rinfo(ls, "dlm_recover_directory"); in dlm_recover_directory() 69 if (dlm_no_directory(ls)) in dlm_recover_directory() 76 list_for_each_entry(memb, &ls->ls_nodes, list) { in dlm_recover_directory() [all …]
|
| H A D | lock.c | 91 static void do_purge(struct dlm_ls *ls, int nodeid, int pid); 204 void dlm_lock_recovery(struct dlm_ls *ls) in dlm_lock_recovery() argument 206 down_read(&ls->ls_in_recovery); in dlm_lock_recovery() 209 void dlm_unlock_recovery(struct dlm_ls *ls) in dlm_unlock_recovery() argument 211 up_read(&ls->ls_in_recovery); in dlm_unlock_recovery() 214 int dlm_lock_recovery_try(struct dlm_ls *ls) in dlm_lock_recovery_try() argument 216 return down_read_trylock(&ls->ls_in_recovery); in dlm_lock_recovery_try() 375 struct dlm_ls *ls = r->res_ls; in put_rsb() local 379 &ls->ls_rsbtbl_lock); in put_rsb() 381 write_unlock_bh(&ls->ls_rsbtbl_lock); in put_rsb() [all …]
|
| H A D | requestqueue.c | 33 void dlm_add_requestqueue(struct dlm_ls *ls, int nodeid, in dlm_add_requestqueue() argument 46 e->recover_seq = ls->ls_recover_seq & 0xFFFFFFFF; in dlm_add_requestqueue() 51 list_add_tail(&e->list, &ls->ls_requestqueue); in dlm_add_requestqueue() 65 int dlm_process_requestqueue(struct dlm_ls *ls) in dlm_process_requestqueue() argument 71 write_lock_bh(&ls->ls_requestqueue_lock); in dlm_process_requestqueue() 73 if (list_empty(&ls->ls_requestqueue)) { in dlm_process_requestqueue() 74 clear_bit(LSFL_RECV_MSG_BLOCKED, &ls->ls_flags); in dlm_process_requestqueue() 78 e = list_first_entry(&ls->ls_requestqueue, struct rq_entry, list); in dlm_process_requestqueue() 82 log_limit(ls, "dlm_process_requestqueue msg %d from %d " in dlm_process_requestqueue() 90 dlm_receive_message_saved(ls, &e->request, e->recover_seq); in dlm_process_requestqueue() [all …]
|
| H A D | lock.h | 15 void dlm_dump_rsb_name(struct dlm_ls *ls, const char *name, int len); 17 void dlm_receive_message_saved(struct dlm_ls *ls, const struct dlm_message *ms, 25 int dlm_lock_recovery_try(struct dlm_ls *ls); 26 void dlm_lock_recovery(struct dlm_ls *ls); 27 void dlm_unlock_recovery(struct dlm_ls *ls); 29 void resume_scan_timer(struct dlm_ls *ls); 31 int dlm_master_lookup(struct dlm_ls *ls, int from_nodeid, const char *name, 37 void dlm_recover_purge(struct dlm_ls *ls, const struct list_head *root_list); 39 void dlm_recover_grant(struct dlm_ls *ls); 40 int dlm_recover_waiters_post(struct dlm_ls *ls); [all …]
|
| H A D | recover.h | 15 int dlm_wait_function(struct dlm_ls *ls, int (*testfn) (struct dlm_ls *ls)); 16 uint32_t dlm_recover_status(struct dlm_ls *ls); 17 void dlm_set_recover_status(struct dlm_ls *ls, uint32_t status); 18 int dlm_recover_members_wait(struct dlm_ls *ls, uint64_t seq); 19 int dlm_recover_directory_wait(struct dlm_ls *ls, uint64_t seq); 20 int dlm_recover_locks_wait(struct dlm_ls *ls, uint64_t seq); 21 int dlm_recover_done_wait(struct dlm_ls *ls, uint64_t seq); 22 int dlm_recover_masters(struct dlm_ls *ls, uint64_t seq, 24 int dlm_recover_master_reply(struct dlm_ls *ls, const struct dlm_rcom *rc); 25 int dlm_recover_locks(struct dlm_ls *ls, uint64_t seq, [all …]
|
| H A D | member.h | 14 int dlm_ls_stop(struct dlm_ls *ls); 15 int dlm_ls_start(struct dlm_ls *ls); 16 void dlm_clear_members(struct dlm_ls *ls); 17 void dlm_clear_members_gone(struct dlm_ls *ls); 18 int dlm_recover_members(struct dlm_ls *ls, struct dlm_recover *rv,int *neg_out); 19 int dlm_is_removed(struct dlm_ls *ls, int nodeid); 20 int dlm_is_member(struct dlm_ls *ls, int nodeid); 22 void dlm_slot_save(struct dlm_ls *ls, struct dlm_rcom *rc, 24 void dlm_slots_copy_out(struct dlm_ls *ls, struct dlm_rcom *rc); 25 int dlm_slots_copy_in(struct dlm_ls *ls); [all …]
|
| H A D | user.c | 181 struct dlm_ls *ls; in dlm_user_add_ast() local 191 ls = lkb->lkb_resource->res_ls; in dlm_user_add_ast() 192 spin_lock_bh(&ls->ls_clear_proc_locks); in dlm_user_add_ast() 245 spin_unlock_bh(&ls->ls_clear_proc_locks); in dlm_user_add_ast() 251 struct dlm_ls *ls; in device_user_lock() local 256 ls = dlm_find_lockspace_local(proc->lockspace); in device_user_lock() 257 if (!ls) in device_user_lock() 277 error = dlm_user_convert(ls, ua, in device_user_lock() 281 error = dlm_user_adopt_orphan(ls, ua, in device_user_lock() 288 error = dlm_user_request(ls, ua, in device_user_lock() [all …]
|
| H A D | debug_fs.c | 399 struct dlm_ls *ls = seq->private; in table_seq_start() local 412 list = &ls->ls_slow_inactive; in table_seq_start() 414 list = &ls->ls_slow_active; in table_seq_start() 416 read_lock_bh(&ls->ls_rsbtbl_lock); in table_seq_start() 422 struct dlm_ls *ls = seq->private; in table_seq_next() local 426 list = &ls->ls_slow_inactive; in table_seq_next() 428 list = &ls->ls_slow_active; in table_seq_next() 435 struct dlm_ls *ls = seq->private; in table_seq_stop() local 437 read_unlock_bh(&ls->ls_rsbtbl_lock); in table_seq_stop() 507 struct dlm_ls *ls = seq->private; in table_write2() local [all …]
|
| H A D | plock.c | 126 struct dlm_ls *ls; in dlm_posix_lock() local 130 ls = dlm_find_lockspace_local(lockspace); in dlm_posix_lock() 131 if (!ls) in dlm_posix_lock() 144 op->info.fsid = ls->ls_global_id; in dlm_posix_lock() 207 log_debug(ls, "%s: wait interrupted %x %llx pid %d", in dlm_posix_lock() 208 __func__, ls->ls_global_id, in dlm_posix_lock() 226 log_error(ls, "dlm_posix_lock: vfs lock error %llx", in dlm_posix_lock() 232 dlm_put_lockspace(ls); in dlm_posix_lock() 291 struct dlm_ls *ls; in dlm_posix_unlock() local 296 ls = dlm_find_lockspace_local(lockspace); in dlm_posix_unlock() [all …]
|
| H A D | dlm_internal.h | 62 #define log_error(ls, fmt, args...) \ argument 63 printk(KERN_ERR "dlm: %s: " fmt "\n", (ls)->ls_name , ##args) 65 #define log_rinfo(ls, fmt, args...) \ argument 69 (ls)->ls_name, ##args); \ 72 (ls)->ls_name , ##args); \ 75 #define log_debug(ls, fmt, args...) \ argument 79 (ls)->ls_name , ##args); \ 82 #define log_limit(ls, fmt, args...) \ argument 86 (ls)->ls_name , ##args); \ 724 static inline int dlm_locking_stopped(struct dlm_ls *ls) in dlm_locking_stopped() argument [all …]
|
| H A D | recoverd.h | 15 void dlm_recoverd_stop(struct dlm_ls *ls); 16 int dlm_recoverd_start(struct dlm_ls *ls); 17 void dlm_recoverd_suspend(struct dlm_ls *ls); 18 void dlm_recoverd_resume(struct dlm_ls *ls);
|
| H A D | requestqueue.h | 14 void dlm_add_requestqueue(struct dlm_ls *ls, int nodeid, 16 int dlm_process_requestqueue(struct dlm_ls *ls); 17 void dlm_wait_requestqueue(struct dlm_ls *ls); 18 void dlm_purge_requestqueue(struct dlm_ls *ls);
|
| H A D | dir.h | 16 int dlm_hash2nodeid(struct dlm_ls *ls, uint32_t hash); 17 void dlm_recover_dir_nodeid(struct dlm_ls *ls, 19 int dlm_recover_directory(struct dlm_ls *ls, uint64_t seq); 20 void dlm_copy_master_names(struct dlm_ls *ls, const char *inbuf, int inlen,
|
| /linux/fs/nfsd/ |
| H A D | nfs4layouts.c | 154 void nfsd4_close_layout(struct nfs4_layout_stateid *ls) in nfsd4_close_layout() argument 158 spin_lock(&ls->ls_stid.sc_file->fi_lock); in nfsd4_close_layout() 159 fl = ls->ls_file; in nfsd4_close_layout() 160 ls->ls_file = NULL; in nfsd4_close_layout() 161 spin_unlock(&ls->ls_stid.sc_file->fi_lock); in nfsd4_close_layout() 164 if (!nfsd4_layout_ops[ls->ls_layout_type]->disable_recalls) in nfsd4_close_layout() 166 (void **)&ls); in nfsd4_close_layout() 174 struct nfs4_layout_stateid *ls = layoutstateid(stid); in nfsd4_free_layout_stateid() local 175 struct nfs4_client *clp = ls->ls_stid.sc_client; in nfsd4_free_layout_stateid() 176 struct nfs4_file *fp = ls->ls_stid.sc_file; in nfsd4_free_layout_stateid() [all …]
|
| /linux/tools/testing/selftests/media_tests/ |
| H A D | media_dev_allocator.sh | 11 MDEV=$(ls -d *\-*) 15 ADEV=$(ls -d *\-*.1) 23 ls -l /dev/media* 32 ls -l /dev/media* 42 ls -l /dev/media* 48 ls -l /dev/media* 60 ls -l /dev/media* 68 ls -l /dev/media* 74 ls -l /dev/media* 82 ls -l /dev/media*
|
| /linux/security/apparmor/ |
| H A D | label.c | 601 struct aa_labelset *ls = labels_set(label); in __label_remove() local 603 AA_BUG(!ls); in __label_remove() 605 lockdep_assert_held_write(&ls->lock); in __label_remove() 614 rb_erase(&label->node, &ls->root); in __label_remove() 637 struct aa_labelset *ls = labels_set(old); in __label_replace() local 639 AA_BUG(!ls); in __label_replace() 642 lockdep_assert_held_write(&ls->lock); in __label_replace() 649 rb_replace_node(&old->node, &new->node, &ls->root); in __label_replace() 672 static struct aa_label *__label_insert(struct aa_labelset *ls, in __label_insert() argument 677 AA_BUG(!ls); in __label_insert() [all …]
|
| /linux/tools/perf/ |
| H A D | builtin-lock.c | 234 struct lock_stat *ls) \ 236 fprintf(lock_output, "%*llu", key->len, (unsigned long long)ls->member);\ 241 struct lock_stat *ls) \ 243 lock_stat_key_print_time((unsigned long long)ls->member, key->len); \ 253 struct lock_stat *ls) in PRINT_KEY() 255 u64 wait_time = ls->wait_time_min; in PRINT_KEY() 569 struct lock_stat *ls; in report_lock_acquire_event() local 582 ls = lock_stat_findnew(key, name, 0); in report_lock_acquire_event() 583 if (!ls) in report_lock_acquire_event() 601 ls->nr_trylock++; in report_lock_acquire_event() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | tc_tun_mplsoudp.c | 89 match.mask->ls[0].mpls_label); in parse_tunnel() 92 match.key->ls[0].mpls_label); in parse_tunnel() 96 match.mask->ls[0].mpls_tc); in parse_tunnel() 98 outer_first_mpls_over_udp.mpls_exp, match.key->ls[0].mpls_tc); in parse_tunnel() 102 match.mask->ls[0].mpls_bos); in parse_tunnel() 105 match.key->ls[0].mpls_bos); in parse_tunnel() 109 match.mask->ls[0].mpls_ttl); in parse_tunnel() 112 match.key->ls[0].mpls_ttl); in parse_tunnel()
|
| /linux/arch/m68k/lib/ |
| H A D | memset.c | 34 long *ls = s; in memset() local 37 *ls++ = c; in memset() 58 : "=a" (ls), "=d" (temp), "=&d" (temp1) in memset() 59 : "d" (c), "0" (ls), "1" (temp)); in memset() 61 s = ls; in memset()
|
| /linux/drivers/leds/ |
| H A D | leds-pca955x.c | 166 static inline int pca955x_ledstate(u8 ls, int led_num) in pca955x_ledstate() argument 168 return (ls >> (led_num << 1)) & 0x3; in pca955x_ledstate() 274 u8 ls, pwm; in pca955x_led_get() local 277 ret = pca955x_read_ls(pca955x, pca955x_led->led_num / 4, &ls); in pca955x_led_get() 281 switch (pca955x_ledstate(ls, pca955x_led->led_num % 4)) { in pca955x_led_get() 307 u8 ls; in pca955x_led_set() local 312 ret = pca955x_read_ls(pca955x, reg, &ls); in pca955x_led_set() 319 ls = pca955x_ledsel(ls, bit, PCA955X_LS_LED_OFF); in pca955x_led_set() 327 ls = pca955x_ledsel(ls, bit, PCA955X_LS_LED_ON); in pca955x_led_set() 330 ls = pca955x_ledsel(ls, bit, PCA955X_LS_LED_OFF); in pca955x_led_set() [all …]
|
| /linux/arch/m68k/fpsp040/ |
| H A D | sgetem.S | 95 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 …]
|