Home
last modified time | relevance | path

Searched refs:node_num (Results 1 – 25 of 39) sorted by relevance

12

/linux-6.1.9/fs/ocfs2/
Dstack_o2cb.c255 u8 node_num; in o2cb_cluster_check() local
260 node_num = o2nm_this_node(); in o2cb_cluster_check()
261 if (node_num == O2NM_MAX_NODES) { in o2cb_cluster_check()
277 if (!test_bit(node_num, hbmap)) { in o2cb_cluster_check()
285 set_bit(node_num, netmap); in o2cb_cluster_check()
308 static void o2dlm_eviction_cb(int node_num, void *data) in o2dlm_eviction_cb() argument
313 node_num, conn->cc_namelen, conn->cc_name); in o2dlm_eviction_cb()
315 conn->cc_recovery_handler(node_num, conn->cc_recovery_data); in o2dlm_eviction_cb()
394 int node_num; in o2cb_cluster_this_node() local
396 node_num = o2nm_this_node(); in o2cb_cluster_this_node()
[all …]
Dheartbeat.c42 void ocfs2_do_node_down(int node_num, void *data) in ocfs2_do_node_down() argument
46 BUG_ON(osb->node_num == node_num); in ocfs2_do_node_down()
48 trace_ocfs2_do_node_down(node_num); in ocfs2_do_node_down()
60 ocfs2_recovery_thread(osb, node_num); in ocfs2_do_node_down()
Djournal.c49 int node_num, int slot_num);
110 int i, node_num; in ocfs2_compute_replay_slots() local
131 if (ocfs2_slot_to_node_num_locked(osb, i, &node_num) == -ENOENT) in ocfs2_compute_replay_slots()
232 unsigned int node_num) in __ocfs2_recovery_map_test() argument
240 if (rm->rm_entries[i] == node_num) in __ocfs2_recovery_map_test()
249 unsigned int node_num) in ocfs2_recovery_map_set() argument
254 if (__ocfs2_recovery_map_test(osb, node_num)) { in ocfs2_recovery_map_set()
262 rm->rm_entries[rm->rm_used] = node_num; in ocfs2_recovery_map_set()
270 unsigned int node_num) in ocfs2_recovery_map_clear() argument
278 if (rm->rm_entries[i] == node_num) in ocfs2_recovery_map_clear()
[all …]
Dslot_map.c45 unsigned int node_num);
55 int slot_num, unsigned int node_num) in ocfs2_set_slot() argument
60 si->si_slots[slot_num].sl_node_num = node_num; in ocfs2_set_slot()
234 unsigned int node_num) in __ocfs2_node_num_to_slot() argument
240 (node_num == si->si_slots[i].sl_node_num)) { in __ocfs2_node_num_to_slot()
271 int ocfs2_node_num_to_slot(struct ocfs2_super *osb, unsigned int node_num) in ocfs2_node_num_to_slot() argument
277 slot = __ocfs2_node_num_to_slot(si, node_num); in ocfs2_node_num_to_slot()
284 unsigned int *node_num) in ocfs2_slot_to_node_num_locked() argument
296 *node_num = si->si_slots[slot_num].sl_node_num; in ocfs2_slot_to_node_num_locked()
461 slot = __ocfs2_node_num_to_slot(si, osb->node_num); in ocfs2_find_slot()
[all …]
Dslot_map.h22 int ocfs2_node_num_to_slot(struct ocfs2_super *osb, unsigned int node_num);
24 unsigned int *node_num);
Dstackglue.h99 void (*cc_recovery_handler)(int node_num, void *recovery_data);
243 void (*recovery_handler)(int node_num,
254 void (*recovery_handler)(int node_num,
Dheartbeat.h15 void ocfs2_do_node_down(int node_num, void *data);
Dlocalalloc.h21 int node_num,
/linux-6.1.9/fs/ocfs2/dlm/
Ddlmrecovery.c267 dlm->name, ndata->node_num, st); in dlm_print_reco_node_status()
423 (dlm->node_num == dlm->reco.new_master ? "me" : "he"), in dlm_print_recovery_master()
482 if (dlm->reco.new_master == dlm->node_num) in dlm_do_recovery()
522 dlm->name, dlm->reco.dead_node, dlm->node_num); in dlm_do_recovery()
560 ndata->node_num); in dlm_remaster_locks()
562 if (ndata->node_num == dlm->node_num) { in dlm_remaster_locks()
568 status = dlm_request_all_locks(dlm, ndata->node_num, in dlm_remaster_locks()
580 ndata->node_num), in dlm_remaster_locks()
583 "dead? %s\n", ndata->node_num, in dlm_remaster_locks()
584 dlm_is_node_dead(dlm, ndata->node_num) ? in dlm_remaster_locks()
[all …]
Ddlmlock.c115 lock->ml.node != dlm->node_num) { in dlmlock_master()
214 if (res->owner == dlm->node_num) { in dlmlock_remote()
263 dlm->name, dlm->node_num, res->owner); in dlmlock_remote()
292 create.node_idx = dlm->node_num; in dlm_send_remote_lock_request()
524 static inline void dlm_get_next_cookie(u8 node_num, u64 *cookie) in dlm_get_next_cookie() argument
526 u64 tmpnode = node_num; in dlm_get_next_cookie()
619 if (res->owner == dlm->node_num) in dlmlock()
650 dlm_get_next_cookie(dlm->node_num, &tmpcookie); in dlmlock()
651 lock = dlm_new_lock(mode, dlm->node_num, tmpcookie, lksb); in dlmlock()
690 if (res->owner == dlm->node_num) in dlmlock()
Ddlmmaster.c295 clear_bit(dlm->node_num, mle->vote_map); in dlm_init_mle()
296 clear_bit(dlm->node_num, mle->node_map); in dlm_init_mle()
753 BUG_ON(tmpres->owner == dlm->node_num); in dlm_get_lock_resource()
801 dlm_change_lockres_owner(dlm, res, dlm->node_num); in dlm_get_lock_resource()
831 BUG_ON(mig && mle->master == dlm->node_num); in dlm_get_lock_resource()
857 set_bit(dlm->node_num, mle->maybe_map); in dlm_get_lock_resource()
1023 if (res->owner != dlm->node_num) { in dlm_wait_for_lock_mastery()
1083 if (dlm->node_num <= bit) { in dlm_wait_for_lock_mastery()
1087 mle->master = dlm->node_num; in dlm_wait_for_lock_mastery()
1119 m = dlm->node_num; in dlm_wait_for_lock_mastery()
[all …]
Ddlmdomain.c584 leave_msg.node_idx = dlm->node_num; in dlm_send_one_domain_exit()
615 if (node == dlm->node_num) in dlm_begin_exit_domain()
636 clear_bit(dlm->node_num, dlm->domain_map); in dlm_leave_domain()
969 qr->qr_domain, qr->qr_node, dlm->node_num); in dlm_match_regions()
978 qr->qr_domain, dlm->node_num, qr->qr_node); in dlm_match_regions()
1009 dlm->node_num, qr->qr_node); in dlm_match_regions()
1032 qr->qr_node, dlm->node_num); in dlm_match_regions()
1058 qr->qr_node = dlm->node_num; in dlm_send_regions()
1073 if (i == dlm->node_num) in dlm_send_regions()
1196 qn->qn_nodenum, dlm->node_num); in dlm_match_nodes()
[all …]
Ddlmast.c174 if (res->owner == dlm->node_num) { in dlm_update_lvb()
178 lock->ml.node == dlm->node_num ? "master" : in dlm_update_lvb()
207 BUG_ON(lock->ml.node != dlm->node_num); in dlm_do_local_ast()
227 BUG_ON(lock->ml.node == dlm->node_num); in dlm_do_remote_ast()
243 BUG_ON(lock->ml.node != dlm->node_num); in dlm_do_local_bast()
328 BUG_ON(res->owner == dlm->node_num); in dlm_proxy_ast_handler()
436 past.node_idx = dlm->node_num; in dlm_send_proxy_ast_msg()
Ddlmunlock.c98 BUG_ON(res->owner != dlm->node_num); in dlmunlock_common()
100 BUG_ON(res->owner == dlm->node_num); in dlmunlock_common()
323 if (owner == dlm->node_num) { in dlm_send_remote_unlock_request()
334 unlock.node_idx = dlm->node_num; in dlm_send_remote_unlock_request()
455 if (res->owner != dlm->node_num) { in dlm_unlock_lock_handler()
625 is_master = (res->owner == dlm->node_num); in dlmunlock()
Ddlmthread.c199 master = (res->owner == dlm->node_num); in dlm_purge_lockres()
515 if (res->owner == dlm->node_num) { in __dlm_dirty_lockres()
597 if (lock->ml.node != dlm->node_num) { in dlm_flush_asts()
649 if (lock->ml.node != dlm->node_num) { in dlm_flush_asts()
728 if (res->owner != dlm->node_num) { in dlm_thread()
737 BUG_ON(res->owner != dlm->node_num); in dlm_thread()
Ddlmdomain.h39 int node_num);
/linux-6.1.9/fs/ocfs2/cluster/
Dheartbeat.h65 int o2hb_check_node_heartbeating_no_sem(u8 node_num);
66 int o2hb_check_node_heartbeating_from_callback(u8 node_num);
Dheartbeat.c278 u8 node_num; member
352 msg.node_num = o2nm_this_node(); in o2hb_send_nego_msg()
439 nego_msg->node_num, config_item_name(&reg->hr_item), reg->hr_bdev); in o2hb_nego_timeout_handler()
440 if (nego_msg->node_num < O2NM_MAX_NODES) in o2hb_nego_timeout_handler()
441 set_bit(nego_msg->node_num, reg->hr_nego_node_bitmap); in o2hb_nego_timeout_handler()
702 int node_num; in o2hb_prepare_block() local
707 node_num = o2nm_this_node(); in o2hb_prepare_block()
708 slot = &reg->hr_slots[node_num]; in o2hb_prepare_block()
718 hb_block->hb_node = node_num; in o2hb_prepare_block()
786 int node_num) in o2hb_queue_node_event() argument
[all …]
Dnodemanager.c30 struct o2nm_node *o2nm_get_node_by_num(u8 node_num) in o2nm_get_node_by_num() argument
34 if (node_num >= O2NM_MAX_NODES || o2nm_single_cluster == NULL) in o2nm_get_node_by_num()
38 node = o2nm_single_cluster->cl_nodes[node_num]; in o2nm_get_node_by_num()
132 u8 node_num = O2NM_MAX_NODES; in o2nm_this_node() local
135 node_num = o2nm_single_cluster->cl_local_node; in o2nm_this_node()
137 return node_num; in o2nm_this_node()
Dnodemanager.h61 struct o2nm_node *o2nm_get_node_by_num(u8 node_num);
Dtcp.c276 static struct o2net_node * o2net_nn_from_num(u8 node_num) in o2net_nn_from_num() argument
278 BUG_ON(node_num >= ARRAY_SIZE(o2net_nodes)); in o2net_nn_from_num()
279 return &o2net_nodes[node_num]; in o2net_nn_from_num()
1707 static void o2net_hb_node_down_cb(struct o2nm_node *node, int node_num, in o2net_hb_node_down_cb() argument
1710 o2quo_hb_down(node_num); in o2net_hb_node_down_cb()
1715 if (node_num != o2nm_this_node()) in o2net_hb_node_down_cb()
1721 static void o2net_hb_node_up_cb(struct o2nm_node *node, int node_num, in o2net_hb_node_up_cb() argument
1724 struct o2net_node *nn = o2net_nn_from_num(node_num); in o2net_hb_node_up_cb()
1726 o2quo_hb_up(node_num); in o2net_hb_node_up_cb()
1734 if (node_num != o2nm_this_node()) { in o2net_hb_node_up_cb()
/linux-6.1.9/fs/ubifs/
Dlpt_commit.c860 static int make_nnode_dirty(struct ubifs_info *c, int node_num, int lnum, in make_nnode_dirty() argument
865 nnode = nnode_lookup(c, node_num); in make_nnode_dirty()
909 static int make_pnode_dirty(struct ubifs_info *c, int node_num, int lnum, in make_pnode_dirty() argument
915 pnode = ubifs_pnode_lookup(c, node_num); in make_pnode_dirty()
991 static int make_node_dirty(struct ubifs_info *c, int node_type, int node_num, in make_node_dirty() argument
996 return make_nnode_dirty(c, node_num, lnum, offs); in make_node_dirty()
998 return make_pnode_dirty(c, node_num, lnum, offs); in make_node_dirty()
1051 int *node_num) in get_lpt_node_type() argument
1057 *node_num = ubifs_unpack_bits(c, &addr, &pos, c->pcnt_bits); in get_lpt_node_type()
1107 int err, len = c->leb_size, node_type, node_num, node_len, offs; in lpt_gc_lnum() local
[all …]
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_main.c2203 void hns_dsaf_update_stats(struct dsaf_device *dsaf_dev, u32 node_num) in hns_dsaf_update_stats() argument
2206 = &dsaf_dev->hw_stats[node_num]; in hns_dsaf_update_stats()
2212 DSAF_INODE_PAD_DISCARD_NUM_0_REG + 0x80 * (u64)node_num); in hns_dsaf_update_stats()
2214 DSAF_INODE_FINAL_IN_MAN_NUM_0_REG + 0x80 * (u64)node_num); in hns_dsaf_update_stats()
2216 DSAF_INODE_FINAL_IN_PKT_NUM_0_REG + 0x80 * (u64)node_num); in hns_dsaf_update_stats()
2218 DSAF_INODE_SBM_PID_NUM_0_REG + 0x80 * (u64)node_num); in hns_dsaf_update_stats()
2223 dsaf_read_dev(dsaf_dev, reg_tmp + 0x80 * (u64)node_num); in hns_dsaf_update_stats()
2226 DSAF_INODE_SBM_RELS_NUM_0_REG + 0x80 * (u64)node_num); in hns_dsaf_update_stats()
2228 DSAF_INODE_SBM_DROP_NUM_0_REG + 0x80 * (u64)node_num); in hns_dsaf_update_stats()
2230 DSAF_INODE_CRC_FALSE_NUM_0_REG + 0x80 * (u64)node_num); in hns_dsaf_update_stats()
[all …]
/linux-6.1.9/drivers/net/wireless/ath/ath6kl/
Dtxrx.c57 for (i = 0; i < ar->node_num; i++) { in ath6kl_ibss_map_epid()
70 ep_map = ar->node_num; in ath6kl_ibss_map_epid()
71 ar->node_num++; in ath6kl_ibss_map_epid()
72 if (ar->node_num > MAX_NODE_NUM) in ath6kl_ibss_map_epid()
667 if (map_no != (ar->node_num - 1)) in ath6kl_tx_clear_node_map()
670 for (i = ar->node_num; i > 0; i--) { in ath6kl_tx_clear_node_map()
676 ar->node_num--; in ath6kl_tx_clear_node_map()
/linux-6.1.9/drivers/staging/media/ipu3/
Dipu3-v4l2.c1122 int node_num) in imgu_v4l2_node_setup() argument
1131 struct imgu_video_device *node = &imgu_pipe->nodes[node_num]; in imgu_v4l2_node_setup()
1166 node->id = node_num; in imgu_v4l2_node_setup()
1168 imgu_node_to_v4l2(node_num, vdev, &node->vdev_fmt); in imgu_v4l2_node_setup()
1234 node_num, flags); in imgu_v4l2_node_setup()
1241 r = media_create_pad_link(&sd->entity, node_num, &vdev->entity, in imgu_v4l2_node_setup()

12