| /linux/drivers/scsi/elx/libefc/ |
| H A D | efc_device.c | 16 efc_d_send_prli_rsp(struct efc_node *node, u16 ox_id) in efc_d_send_prli_rsp() argument 19 struct efc *efc = node->efc; in efc_d_send_prli_rsp() 21 node->ls_acc_oxid = ox_id; in efc_d_send_prli_rsp() 22 node->send_ls_acc = EFC_NODE_SEND_LS_ACC_PRLI; in efc_d_send_prli_rsp() 29 if (node->init) { in efc_d_send_prli_rsp() 31 node->display_name, node->wwpn, node->wwnn); in efc_d_send_prli_rsp() 32 if (node->nport->enable_tgt) in efc_d_send_prli_rsp() 33 rc = efc->tt.scsi_new_node(efc, node); in efc_d_send_prli_rsp() 37 efc_node_post_event(node, EFC_EVT_NODE_SESS_REG_FAIL, NULL); in efc_d_send_prli_rsp() 40 efc_node_post_event(node, EFC_EVT_NODE_SESS_REG_OK, NULL); in efc_d_send_prli_rsp() [all …]
|
| H A D | efc_node.c | 14 struct efc_node *node = rnode->node; in efc_remote_node_cb() local 18 efc_node_post_event(node, event, NULL); in efc_remote_node_cb() 34 struct efc_node *node = container_of(arg, struct efc_node, ref); in _efc_node_free() local 35 struct efc *efc = node->efc; in _efc_node_free() 38 dma = &node->sparm_dma_buf; in _efc_node_free() 41 mempool_free(node, efc->node_pool); in _efc_node_free() 48 struct efc_node *node = NULL; in efc_node_alloc() local 58 node = mempool_alloc(efc->node_pool, GFP_ATOMIC); in efc_node_alloc() 59 if (!node) { in efc_node_alloc() 63 memset(node, 0, sizeof(*node)); in efc_node_alloc() [all …]
|
| H A D | efc_fabric.c | 24 efc_fabric_initiate_shutdown(struct efc_node *node) in efc_fabric_initiate_shutdown() argument 26 struct efc *efc = node->efc; in efc_fabric_initiate_shutdown() 28 node->els_io_enabled = false; in efc_fabric_initiate_shutdown() 30 if (node->attached) { in efc_fabric_initiate_shutdown() 37 rc = efc_cmd_node_detach(efc, &node->rnode); in efc_fabric_initiate_shutdown() 39 node_printf(node, "Failed freeing HW node, rc=%d\n", in efc_fabric_initiate_shutdown() 47 efc_node_initiate_cleanup(node); in efc_fabric_initiate_shutdown() 54 struct efc_node *node = NULL; in __efc_fabric_common() local 56 node = ctx->app; in __efc_fabric_common() 62 node->shutdown_reason = EFC_NODE_SHUTDOWN_DEFAULT; in __efc_fabric_common() [all …]
|
| /linux/fs/hfs/ |
| H A D | bnode.c | 18 void hfs_bnode_read(struct hfs_bnode *node, void *buf, u32 off, u32 len) in hfs_bnode_read() argument 27 if (!is_bnode_offset_valid(node, off)) in hfs_bnode_read() 34 node->this, node->type, node->height, in hfs_bnode_read() 35 node->tree->node_size, off, len); in hfs_bnode_read() 39 len = check_and_correct_requested_length(node, off, len); in hfs_bnode_read() 41 off += node->page_offset; in hfs_bnode_read() 46 if (pagenum >= node->tree->pages_per_bnode) in hfs_bnode_read() 48 page = node->page[pagenum]; in hfs_bnode_read() 58 u16 hfs_bnode_read_u16(struct hfs_bnode *node, u32 off) in hfs_bnode_read_u16() argument 62 hfs_bnode_read(node, &data, off, 2); in hfs_bnode_read_u16() [all …]
|
| /linux/scripts/gdb/linux/ |
| H A D | rbtree.py | 13 def inorder(node): argument 14 if node: 15 yield from inorder(node['rb_left']) 16 yield node 17 yield from inorder(node['rb_right']) 22 for node in rb_inorder_for_each(root): 23 yield utils.container_of(node, gdbtype, member) 27 node = root.address.cast(rb_root_type.get_type().pointer()) 31 node = root['rb_node'] 32 if node == 0: [all …]
|
| /linux/lib/ |
| H A D | radix-tree.c | 100 static inline void tag_set(struct radix_tree_node *node, unsigned int tag, in tag_set() argument 103 __set_bit(offset, node->tags[tag]); in tag_set() 106 static inline void tag_clear(struct radix_tree_node *node, unsigned int tag, in tag_clear() argument 109 __clear_bit(offset, node->tags[tag]); in tag_clear() 112 static inline int tag_get(const struct radix_tree_node *node, unsigned int tag, in tag_get() argument 115 return test_bit(offset, node->tags[tag]); in tag_get() 152 static inline int any_tag_set(const struct radix_tree_node *node, in any_tag_set() argument 157 if (node->tags[tag][idx]) in any_tag_set() 163 static inline void all_tag_set(struct radix_tree_node *node, unsigned int tag) in all_tag_set() argument 165 bitmap_fill(node->tags[tag], RADIX_TREE_MAP_SIZE); in all_tag_set() [all …]
|
| H A D | bootconfig.c | 260 uint16_t __init xbc_node_index(struct xbc_node *node) in xbc_node_index() argument 262 return (uint16_t)(node - &xbc_nodes[0]); in xbc_node_index() 272 struct xbc_node * __init xbc_node_get_parent(struct xbc_node *node) in xbc_node_get_parent() argument 274 return node->parent == XBC_NODE_MAX ? NULL : &xbc_nodes[node->parent]; in xbc_node_get_parent() 284 struct xbc_node * __init xbc_node_get_child(struct xbc_node *node) in xbc_node_get_child() argument 286 return node->child ? &xbc_nodes[node->child] : NULL; in xbc_node_get_child() 298 struct xbc_node * __init xbc_node_get_next(struct xbc_node *node) in xbc_node_get_next() argument 300 return node->next ? &xbc_nodes[node->next] : NULL; in xbc_node_get_next() 310 const char * __init xbc_node_get_data(struct xbc_node *node) in xbc_node_get_data() argument 312 size_t offset = node->data & ~XBC_VALUE; in xbc_node_get_data() [all …]
|
| H A D | btree.c | 94 unsigned long *node; in btree_node_alloc() local 96 node = mempool_alloc(head->mempool, gfp); in btree_node_alloc() 97 if (likely(node)) in btree_node_alloc() 98 memset(node, 0, NODESIZE); in btree_node_alloc() 99 return node; in btree_node_alloc() 147 static unsigned long *bkey(struct btree_geo *geo, unsigned long *node, int n) in bkey() argument 149 return &node[n * geo->keylen]; in bkey() 152 static void *bval(struct btree_geo *geo, unsigned long *node, int n) in bval() argument 154 return (void *)node[geo->no_longs + n]; in bval() 157 static void setkey(struct btree_geo *geo, unsigned long *node, int n, in setkey() argument [all …]
|
| /linux/kernel/gcov/ |
| H A D | fs.c | 255 static struct gcov_info *get_node_info(struct gcov_node *node) in get_node_info() argument 257 if (node->num_loaded > 0) in get_node_info() 258 return node->loaded_info[0]; in get_node_info() 260 return node->unloaded_info; in get_node_info() 267 static struct gcov_info *get_accumulated_info(struct gcov_node *node) in get_accumulated_info() argument 272 if (node->unloaded_info) in get_accumulated_info() 273 info = gcov_info_dup(node->unloaded_info); in get_accumulated_info() 275 info = gcov_info_dup(node->loaded_info[i++]); in get_accumulated_info() 278 for (; i < node->num_loaded; i++) in get_accumulated_info() 279 gcov_info_add(info, node->loaded_info[i]); in get_accumulated_info() [all …]
|
| /linux/tools/net/sunrpc/xdrgen/generators/ |
| H A D | union.py | 15 def emit_union_declaration(environment: Environment, node: _XdrUnion) -> None: 17 if node.name in public_apis: 19 print(template.render(name=node.name)) 23 environment: Environment, node: _XdrDeclaration 26 assert isinstance(node, _XdrBasic) 30 name=node.name, 31 type=node.spec.type_name, 32 classifier=node.spec.c_classifier, 38 environment: Environment, node: _XdrDeclaration 41 if isinstance(node [all...] |
| /linux/tools/include/linux/ |
| H A D | rbtree.h | 42 #define RB_EMPTY_NODE(node) \ argument 43 ((node)->__rb_parent_color == (unsigned long)(node)) 44 #define RB_CLEAR_NODE(node) \ argument 45 ((node)->__rb_parent_color = (unsigned long)(node)) 66 static inline void rb_link_node(struct rb_node *node, struct rb_node *parent, in rb_link_node() argument 69 node->__rb_parent_color = (unsigned long)parent; in rb_link_node() 70 node->rb_left = node->rb_right = NULL; in rb_link_node() 72 *rb_link = node; in rb_link_node() 129 static inline void rb_insert_color_cached(struct rb_node *node, in rb_insert_color_cached() argument 134 root->rb_leftmost = node; in rb_insert_color_cached() [all …]
|
| /linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | qos.c | 44 static void otx2_qos_get_regaddr(struct otx2_qos_node *node, in otx2_qos_get_regaddr() argument 48 if (node->level == NIX_TXSCH_LVL_SMQ) { in otx2_qos_get_regaddr() 49 cfg->reg[index++] = NIX_AF_MDQX_PARENT(node->schq); in otx2_qos_get_regaddr() 50 cfg->reg[index++] = NIX_AF_MDQX_SCHEDULE(node->schq); in otx2_qos_get_regaddr() 51 cfg->reg[index++] = NIX_AF_MDQX_PIR(node->schq); in otx2_qos_get_regaddr() 52 cfg->reg[index] = NIX_AF_MDQX_CIR(node->schq); in otx2_qos_get_regaddr() 53 } else if (node->level == NIX_TXSCH_LVL_TL4) { in otx2_qos_get_regaddr() 54 cfg->reg[index++] = NIX_AF_TL4X_PARENT(node->schq); in otx2_qos_get_regaddr() 55 cfg->reg[index++] = NIX_AF_TL4X_SCHEDULE(node->schq); in otx2_qos_get_regaddr() 56 cfg->reg[index++] = NIX_AF_TL4X_PIR(node->schq); in otx2_qos_get_regaddr() [all …]
|
| /linux/rust/syn/gen/ |
| H A D | visit_mut.rs | 958 pub fn visit_abi_mut<V>(v: &mut V, node: &mut crate::Abi) in visit_abi_mut() 962 skip!(node.extern_token); in visit_abi_mut() 963 if let Some(it) = &mut node.name { in visit_abi_mut() 971 node: &mut crate::AngleBracketedGenericArguments, in visit_angle_bracketed_generic_arguments_mut() 976 skip!(node.colon2_token); in visit_angle_bracketed_generic_arguments_mut() 977 skip!(node.lt_token); in visit_angle_bracketed_generic_arguments_mut() 978 for mut el in Punctuated::pairs_mut(&mut node.args) { in visit_angle_bracketed_generic_arguments_mut() 982 skip!(node.gt_token); in visit_angle_bracketed_generic_arguments_mut() 986 pub fn visit_arm_mut<V>(v: &mut V, node: &mut crate::Arm) in visit_arm_mut() 990 v.visit_attributes_mut(&mut node.attrs); in visit_arm_mut() [all …]
|
| H A D | fold.rs | 1030 pub fn fold_abi<F>(f: &mut F, node: crate::Abi) -> crate::Abi in fold_abi() 1035 extern_token: node.extern_token, in fold_abi() 1036 name: (node.name).map(|it| f.fold_lit_str(it)), in fold_abi() 1043 node: crate::AngleBracketedGenericArguments, in fold_angle_bracketed_generic_arguments() 1049 colon2_token: node.colon2_token, in fold_angle_bracketed_generic_arguments() 1050 lt_token: node.lt_token, in fold_angle_bracketed_generic_arguments() 1051 args: crate::punctuated::fold(node.args, f, F::fold_generic_argument), in fold_angle_bracketed_generic_arguments() 1052 gt_token: node.gt_token, in fold_angle_bracketed_generic_arguments() 1057 pub fn fold_arm<F>(f: &mut F, node: crate::Arm) -> crate::Arm in fold_arm() 1062 attrs: f.fold_attributes(node.attrs), in fold_arm() [all …]
|
| H A D | visit.rs | 950 pub fn visit_abi<'ast, V>(v: &mut V, node: &'ast crate::Abi) in visit_abi() 954 skip!(node.extern_token); in visit_abi() 955 if let Some(it) = &node.name { in visit_abi() 963 node: &'ast crate::AngleBracketedGenericArguments, in visit_angle_bracketed_generic_arguments() 968 skip!(node.colon2_token); in visit_angle_bracketed_generic_arguments() 969 skip!(node.lt_token); in visit_angle_bracketed_generic_arguments() 970 for el in Punctuated::pairs(&node.args) { in visit_angle_bracketed_generic_arguments() 974 skip!(node.gt_token); in visit_angle_bracketed_generic_arguments() 978 pub fn visit_arm<'ast, V>(v: &mut V, node: &'ast crate::Arm) in visit_arm() 982 for it in &node.attrs { in visit_arm() [all …]
|
| /linux/drivers/gpu/drm/i915/gt/ |
| H A D | intel_gt_buffer_pool.c | 31 static void node_free(struct intel_gt_buffer_pool_node *node) in node_free() argument 33 i915_gem_object_put(node->obj); in node_free() 34 i915_active_fini(&node->active); in node_free() 35 kfree_rcu(node, rcu); in node_free() 40 struct intel_gt_buffer_pool_node *node, *stale = NULL; in pool_free_older_than() local 58 node = list_entry(pos, typeof(*node), link); in pool_free_older_than() 60 age = READ_ONCE(node->age); in pool_free_older_than() 65 if (!xchg(&node->age, 0)) in pool_free_older_than() 68 node->free = stale; in pool_free_older_than() 69 stale = node; in pool_free_older_than() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | htb.c | 36 struct mlx5e_qos_node *node = NULL; in mlx5e_htb_enumerate_leaves() local 39 hash_for_each(htb->qos_tc2node, bkt, node, hnode) { in mlx5e_htb_enumerate_leaves() 40 if (node->qid == MLX5E_QOS_QID_INNER) in mlx5e_htb_enumerate_leaves() 42 err = callback(data, node->qid, node->hw_id); in mlx5e_htb_enumerate_leaves() 73 struct mlx5e_qos_node *node; in mlx5e_htb_node_create_leaf() local 75 node = kzalloc_obj(*node); in mlx5e_htb_node_create_leaf() 76 if (!node) in mlx5e_htb_node_create_leaf() 79 node->parent = parent; in mlx5e_htb_node_create_leaf() 81 node->qid = qid; in mlx5e_htb_node_create_leaf() 84 node->classid = classid; in mlx5e_htb_node_create_leaf() [all …]
|
| /linux/drivers/base/test/ |
| H A D | property-entry-test.c | 22 struct fwnode_handle *node; in pe_test_uints() local 29 node = fwnode_create_software_node(entries, NULL); in pe_test_uints() 30 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, node); in pe_test_uints() 32 error = fwnode_property_count_u8(node, "prop-u8"); in pe_test_uints() 35 error = fwnode_property_read_u8(node, "prop-u8", &val_u8); in pe_test_uints() 39 error = fwnode_property_read_u8_array(node, "prop-u8", array_u8, 1); in pe_test_uints() 43 error = fwnode_property_read_u8_array(node, "prop-u8", array_u8, 2); in pe_test_uints() 46 error = fwnode_property_read_u8(node, "no-prop-u8", &val_u8); in pe_test_uints() 49 error = fwnode_property_read_u8_array(node, "no-prop-u8", array_u8, 1); in pe_test_uints() 52 error = fwnode_property_read_u16(node, "prop-u16", &val_u16); in pe_test_uints() [all …]
|
| /linux/tools/lib/ |
| H A D | rbtree.c | 18 * 1) A node is either red or black 21 * 4) Both children of every red node are black 26 * consecutive red nodes in a path and every red node is therefore followed by 85 __rb_insert(struct rb_node *node, struct rb_root *root, in __rb_insert() argument 88 struct rb_node *parent = rb_red_parent(node), *gparent, *tmp; in __rb_insert() 92 * Loop invariant: node is red. in __rb_insert() 96 * The inserted node is root. Either this is the in __rb_insert() 97 * first node, or we recursed at Case 1 below and in __rb_insert() 100 rb_set_parent_color(node, NULL, RB_BLACK); in __rb_insert() 119 * Case 1 - node' in __rb_insert() 230 struct rb_node *node = NULL, *sibling, *tmp1, *tmp2; ____rb_erase_color() local 423 dummy_propagate(struct rb_node * node,struct rb_node * stop) dummy_propagate() argument 433 rb_insert_color(struct rb_node * node,struct rb_root * root) rb_insert_color() argument 438 rb_erase(struct rb_node * node,struct rb_root * root) rb_erase() argument 453 __rb_insert_augmented(struct rb_node * node,struct rb_root * root,void (* augment_rotate)(struct rb_node * old,struct rb_node * new)) __rb_insert_augmented() argument 486 rb_next(const struct rb_node * node) rb_next() argument 517 rb_prev(const struct rb_node * node) rb_prev() argument 561 rb_left_deepest_node(const struct rb_node * node) rb_left_deepest_node() argument 573 rb_next_postorder(const struct rb_node * node) rb_next_postorder() argument [all...] |
| /linux/net/hsr/ |
| H A D | hsr_framereg.c | 54 struct hsr_node *node; in find_node_by_addr_A() local 56 list_for_each_entry_rcu(node, node_db, mac_list) { in find_node_by_addr_A() 57 if (ether_addr_equal(node->macaddress_A, addr)) in find_node_by_addr_A() 58 return node; in find_node_by_addr_A() 110 static void hsr_free_node(struct hsr_node *node) in hsr_free_node() argument 112 xa_destroy(&node->seq_blocks); in hsr_free_node() 113 kfree(node->block_buf); in hsr_free_node() 114 kfree(node); in hsr_free_node() 119 struct hsr_node *node = container_of(rn, struct hsr_node, rcu_head); in hsr_free_node_rcu() local 121 hsr_free_node(node); in hsr_free_node_rcu() [all …]
|
| /linux/arch/sparc/prom/ |
| H A D | tree_32.c | 24 static phandle __prom_getchild(phandle node) in __prom_getchild() argument 30 cnode = prom_nodeops->no_child(node); in __prom_getchild() 40 phandle prom_getchild(phandle node) in prom_getchild() argument 44 if ((s32)node == -1) in prom_getchild() 47 cnode = __prom_getchild(node); in prom_getchild() 56 static phandle __prom_getsibling(phandle node) in __prom_getsibling() argument 62 cnode = prom_nodeops->no_nextnode(node); in __prom_getsibling() 72 phandle prom_getsibling(phandle node) in prom_getsibling() argument 76 if ((s32)node == -1) in prom_getsibling() 79 sibnode = __prom_getsibling(node); in prom_getsibling() [all …]
|
| /linux/fs/unicode/ |
| H A D | mkutf8data.c | 361 struct node { struct 366 struct node *parent; argument 382 struct node *node; in lookup() argument 385 node = tree->root; in lookup() 386 while (!leaf && node) { in lookup() 387 if (node->nextbyte) in lookup() 389 if (*key & (1 << (node->bitnum & 7))) { in lookup() 391 if (node->rightnode == NODE) { in lookup() 392 node = node->right; in lookup() 393 } else if (node->rightnode == LEAF) { in lookup() [all …]
|
| /linux/drivers/gpu/drm/amd/amdkfd/ |
| H A D | kfd_interrupt.c | 53 int kfd_interrupt_init(struct kfd_node *node) in kfd_interrupt_init() argument 57 r = kfifo_alloc(&node->ih_fifo, in kfd_interrupt_init() 58 KFD_IH_NUM_ENTRIES * node->kfd->device_info.ih_ring_entry_size, in kfd_interrupt_init() 61 dev_err(node->adev->dev, "Failed to allocate IH fifo\n"); in kfd_interrupt_init() 65 if (!node->kfd->ih_wq) { in kfd_interrupt_init() 66 node->kfd->ih_wq = alloc_workqueue("KFD IH", WQ_HIGHPRI | WQ_UNBOUND, in kfd_interrupt_init() 67 node->kfd->num_nodes); in kfd_interrupt_init() 68 if (unlikely(!node->kfd->ih_wq)) { in kfd_interrupt_init() 69 kfifo_free(&node->ih_fifo); in kfd_interrupt_init() 70 dev_err(node->adev->dev, "Failed to allocate KFD IH workqueue\n"); in kfd_interrupt_init() [all …]
|
| /linux/drivers/media/platform/raspberrypi/rp1-cfe/ |
| H A D | cfe.c | 183 #define is_fe_node(node) (((node)->id) >= FE_OUT0) argument 184 #define is_csi2_node(node) (!is_fe_node(node)) argument 186 #define node_supports_image_output(node) \ argument 187 (node_desc[(node)->id].caps & V4L2_CAP_VIDEO_CAPTURE) 188 #define node_supports_meta_output(node) \ argument 189 (node_desc[(node)->id].caps & V4L2_CAP_META_CAPTURE) 190 #define node_supports_image_input(node) \ argument 191 (node_desc[(node)->id].caps & V4L2_CAP_VIDEO_OUTPUT) 192 #define node_supports_meta_input(node) \ argument 193 (node_desc[(node)->id].caps & V4L2_CAP_META_OUTPUT) [all …]
|
| /linux/tools/perf/tests/ |
| H A D | hists_output.c | 99 struct rb_node *node; in del_hist_entries() 109 node = rb_first_cached(root_out); in del_hist_entries() 111 he = rb_entry(node, struct hist_entry, rb_node); in del_hist_entries() 112 rb_erase_cached(node, root_out); in del_hist_entries() 143 struct rb_node *node; in test1() 178 node = rb_first_cached(root); in test1() 179 he = rb_entry(node, struct hist_entry, rb_node); in test1() 184 node = rb_next(node); in test1() 185 he = rb_entry(node, struc in test1() 100 struct rb_node *node; del_hist_entries() local 144 struct rb_node *node; test1() local 246 struct rb_node *node; test2() local 302 struct rb_node *node; test3() local 376 struct rb_node *node; test4() local 478 struct rb_node *node; test5() local [all...] |