/openbmc/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 …]
|
/openbmc/openbmc/poky/bitbake/lib/ |
H A D | codegen.py | 58 def to_source(node, indent_with=' ' * 4, add_line_information=False): argument 77 generator.visit(node) 102 def newline(self, node=None, extra=0): argument 104 if node is not None and self.add_line_information: 105 self.write('# line: %s' % node.lineno) 115 def body_or_else(self, node): argument 116 self.body(node.body) 117 if node.orelse: 120 self.body(node.orelse) 122 def signature(self, node): argument [all …]
|
/openbmc/qemu/util/ |
H A D | qtree.c | 106 static QTreeNode *q_tree_node_balance(QTreeNode *node); 109 static QTreeNode *q_tree_node_search(QTreeNode *node, 112 static QTreeNode *q_tree_node_rotate_left(QTreeNode *node); 113 static QTreeNode *q_tree_node_rotate_right(QTreeNode *node); 115 static void q_tree_node_check(QTreeNode *node); 122 QTreeNode *node = g_new(QTreeNode, 1); in q_tree_node_new() local 124 node->balance = 0; in q_tree_node_new() 125 node->left = NULL; in q_tree_node_new() 126 node->right = NULL; in q_tree_node_new() 127 node->left_child = FALSE; in q_tree_node_new() [all …]
|
H A D | aio-win32.c | 36 QLIST_ENTRY(AioHandler) node; 39 static void aio_remove_fd_handler(AioContext *ctx, AioHandler *node) in aio_remove_fd_handler() argument 48 g_source_remove_poll(&ctx->source, &node->pfd); in aio_remove_fd_handler() 53 node->deleted = 1; in aio_remove_fd_handler() 54 node->pfd.revents = 0; in aio_remove_fd_handler() 60 QLIST_REMOVE(node, node); in aio_remove_fd_handler() 61 g_free(node); in aio_remove_fd_handler() 74 AioHandler *node = NULL; in aio_set_fd_handler() local 85 QLIST_FOREACH(old_node, &ctx->aio_handlers, node) { in aio_set_fd_handler() 96 node = g_new0(AioHandler, 1); in aio_set_fd_handler() [all …]
|
H A D | aio-posix.c | 37 AioHandler *node, in aio_add_ready_handler() argument 40 QLIST_SAFE_REMOVE(node, node_ready); /* remove from nested parent's list */ in aio_add_ready_handler() 41 node->pfd.revents = revents; in aio_add_ready_handler() 42 QLIST_INSERT_HEAD(ready_list, node, node_ready); in aio_add_ready_handler() 46 AioHandler *node) in aio_add_poll_ready_handler() argument 48 QLIST_SAFE_REMOVE(node, node_ready); /* remove from nested parent's list */ in aio_add_poll_ready_handler() 49 node->poll_ready = true; in aio_add_poll_ready_handler() 50 QLIST_INSERT_HEAD(ready_list, node, node_ready); in aio_add_poll_ready_handler() 55 AioHandler *node; in find_aio_handler() local 57 QLIST_FOREACH(node, &ctx->aio_handlers, node) { in find_aio_handler() [all …]
|
/openbmc/linux/fs/hfs/ |
H A D | bnode.c | 18 void hfs_bnode_read(struct hfs_bnode *node, void *buf, int off, int len) in hfs_bnode_read() argument 25 off += node->page_offset; in hfs_bnode_read() 30 if (pagenum >= node->tree->pages_per_bnode) in hfs_bnode_read() 32 page = node->page[pagenum]; in hfs_bnode_read() 42 u16 hfs_bnode_read_u16(struct hfs_bnode *node, int off) in hfs_bnode_read_u16() argument 46 hfs_bnode_read(node, &data, off, 2); in hfs_bnode_read_u16() 50 u8 hfs_bnode_read_u8(struct hfs_bnode *node, int off) in hfs_bnode_read_u8() argument 54 hfs_bnode_read(node, &data, off, 1); in hfs_bnode_read_u8() 58 void hfs_bnode_read_key(struct hfs_bnode *node, void *key, int off) in hfs_bnode_read_key() argument 63 tree = node->tree; in hfs_bnode_read_key() [all …]
|
/openbmc/linux/fs/dlm/ |
H A D | midcomms.c | 200 struct midcomms_node *node; member 206 void (*ack_rcv)(struct midcomms_node *node); 255 const char *dlm_midcomms_state(struct midcomms_node *node) in dlm_midcomms_state() argument 257 return dlm_state_str(node->state); in dlm_midcomms_state() 260 unsigned long dlm_midcomms_flags(struct midcomms_node *node) in dlm_midcomms_flags() argument 262 return node->flags; in dlm_midcomms_flags() 265 int dlm_midcomms_send_queue_cnt(struct midcomms_node *node) in dlm_midcomms_send_queue_cnt() argument 267 return atomic_read(&node->send_queue_cnt); in dlm_midcomms_send_queue_cnt() 270 uint32_t dlm_midcomms_version(struct midcomms_node *node) in dlm_midcomms_version() argument 272 return node->version; in dlm_midcomms_version() [all …]
|
/openbmc/linux/scripts/dtc/ |
H A D | checks.c | 29 typedef void (*check_fn)(struct check *c, struct dt_info *dti, struct node *node); 62 struct node *node, in check_msg() argument 76 else if (node && node->srcpos) in check_msg() 77 pos = node->srcpos; in check_msg() 92 if (node) { in check_msg() 94 xasprintf_append(&str, "%s:%s: ", node->fullpath, prop->name); in check_msg() 96 xasprintf_append(&str, "%s: ", node->fullpath); in check_msg() 106 pos = node->srcpos; in check_msg() 119 #define FAIL(c, dti, node, ...) \ argument 123 check_msg((c), dti, node, NULL, __VA_ARGS__); \ [all …]
|
H A D | livetree.c | 88 struct node *build_node(struct property *proplist, struct node *children, in build_node() 91 struct node *new = xmalloc(sizeof(*new)); in build_node() 92 struct node *child; in build_node() 107 struct node *build_node_delete(struct srcpos *srcpos) in build_node_delete() 109 struct node *new = xmalloc(sizeof(*new)); in build_node_delete() 119 struct node *name_node(struct node *node, char *name) in name_node() argument 121 assert(node->name == NULL); in name_node() 123 node->name = name; in name_node() 125 return node; in name_node() 128 struct node *omit_node_if_unused(struct node *node) in omit_node_if_unused() argument [all …]
|
/openbmc/u-boot/drivers/core/ |
H A D | ofnode.c | 18 int ofnode_read_u32(ofnode node, const char *propname, u32 *outp) in ofnode_read_u32() argument 20 assert(ofnode_valid(node)); in ofnode_read_u32() 23 if (ofnode_is_np(node)) { in ofnode_read_u32() 24 return of_read_u32(ofnode_to_np(node), propname, outp); in ofnode_read_u32() 29 cell = fdt_getprop(gd->fdt_blob, ofnode_to_offset(node), in ofnode_read_u32() 42 int ofnode_read_u32_default(ofnode node, const char *propname, u32 def) in ofnode_read_u32_default() argument 44 assert(ofnode_valid(node)); in ofnode_read_u32_default() 45 ofnode_read_u32(node, propname, &def); in ofnode_read_u32_default() 50 int ofnode_read_s32_default(ofnode node, const char *propname, s32 def) in ofnode_read_s32_default() argument 52 assert(ofnode_valid(node)); in ofnode_read_s32_default() [all …]
|
/openbmc/linux/scripts/gdb/linux/ |
H A D | rbtree.py | 15 node = root.address.cast(rb_root_type.get_type().pointer()) 19 node = root['rb_node'] 20 if node == 0: 23 while node['rb_left']: 24 node = node['rb_left'] 26 return node 31 node = root.address.cast(rb_root_type.get_type().pointer()) 35 node = root['rb_node'] 36 if node == 0: 39 while node['rb_right']: [all …]
|
/openbmc/u-boot/include/dm/ |
H A D | ofnode.h | 56 ofnode node; member 69 static inline const struct device_node *ofnode_to_np(ofnode node) in ofnode_to_np() argument 75 return node.np; in ofnode_to_np() 86 static inline int ofnode_to_offset(ofnode node) in ofnode_to_offset() argument 92 return node.of_offset; in ofnode_to_offset() 100 static inline bool ofnode_valid(ofnode node) in ofnode_valid() argument 103 return node.np != NULL; in ofnode_valid() 105 return node.of_offset != -1; in ofnode_valid() 116 ofnode node; in offset_to_ofnode() local 119 node.np = NULL; in offset_to_ofnode() [all …]
|
/openbmc/u-boot/scripts/dtc/ |
H A D | livetree.c | 100 struct node *build_node(struct property *proplist, struct node *children) in build_node() 102 struct node *new = xmalloc(sizeof(*new)); in build_node() 103 struct node *child; in build_node() 117 struct node *build_node_delete(void) in build_node_delete() 119 struct node *new = xmalloc(sizeof(*new)); in build_node_delete() 128 struct node *name_node(struct node *node, char *name) in name_node() argument 130 assert(node->name == NULL); in name_node() 132 node->name = name; in name_node() 134 return node; in name_node() 137 struct node *merge_nodes(struct node *old_node, struct node *new_node) in merge_nodes() [all …]
|
H A D | checks.c | 43 typedef void (*check_fn)(struct check *c, struct dt_info *dti, struct node *node); 76 struct node *node, in check_msg() argument 88 if (node) { in check_msg() 89 fprintf(stderr, "%s", node->fullpath); in check_msg() 100 #define FAIL(c, dti, node, ...) \ argument 104 check_msg((c), dti, node, NULL, __VA_ARGS__); \ 107 #define FAIL_PROP(c, dti, node, prop, ...) \ argument 111 check_msg((c), dti, node, prop, __VA_ARGS__); \ 115 static void check_nodes_props(struct check *c, struct dt_info *dti, struct node *node) in check_nodes_props() argument 117 struct node *child; in check_nodes_props() [all …]
|
/openbmc/linux/fs/hfsplus/ |
H A D | bnode.c | 22 void hfs_bnode_read(struct hfs_bnode *node, void *buf, int off, int len) in hfs_bnode_read() argument 27 off += node->page_offset; in hfs_bnode_read() 28 pagep = node->page + (off >> PAGE_SHIFT); in hfs_bnode_read() 41 u16 hfs_bnode_read_u16(struct hfs_bnode *node, int off) in hfs_bnode_read_u16() argument 45 hfs_bnode_read(node, &data, off, 2); in hfs_bnode_read_u16() 49 u8 hfs_bnode_read_u8(struct hfs_bnode *node, int off) in hfs_bnode_read_u8() argument 53 hfs_bnode_read(node, &data, off, 1); in hfs_bnode_read_u8() 57 void hfs_bnode_read_key(struct hfs_bnode *node, void *key, int off) in hfs_bnode_read_key() argument 62 tree = node->tree; in hfs_bnode_read_key() 63 if (node->type == HFS_NODE_LEAF || in hfs_bnode_read_key() [all …]
|
/openbmc/u-boot/arch/x86/cpu/baytrail/ |
H A D | fsp_configs.c | 36 int node; in update_fsp_configs() local 43 node = fdtdec_next_compatible(blob, 0, COMPAT_INTEL_BAYTRAIL_FSP); in update_fsp_configs() 44 if (node < 0) { in update_fsp_configs() 49 fsp_upd->mrc_init_tseg_size = fdtdec_get_int(blob, node, in update_fsp_configs() 52 fsp_upd->mrc_init_mmio_size = fdtdec_get_int(blob, node, in update_fsp_configs() 55 fsp_upd->mrc_init_spd_addr1 = fdtdec_get_int(blob, node, in update_fsp_configs() 58 fsp_upd->mrc_init_spd_addr2 = fdtdec_get_int(blob, node, in update_fsp_configs() 61 fsp_upd->emmc_boot_mode = fdtdec_get_int(blob, node, in update_fsp_configs() 64 fsp_upd->enable_sdio = fdtdec_get_bool(blob, node, "fsp,enable-sdio"); in update_fsp_configs() 65 fsp_upd->enable_sdcard = fdtdec_get_bool(blob, node, in update_fsp_configs() [all …]
|
/openbmc/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 | 133 int __init xbc_node_index(struct xbc_node *node) in xbc_node_index() argument 135 return node - &xbc_nodes[0]; in xbc_node_index() 145 struct xbc_node * __init xbc_node_get_parent(struct xbc_node *node) in xbc_node_get_parent() argument 147 return node->parent == XBC_NODE_MAX ? NULL : &xbc_nodes[node->parent]; in xbc_node_get_parent() 157 struct xbc_node * __init xbc_node_get_child(struct xbc_node *node) in xbc_node_get_child() argument 159 return node->child ? &xbc_nodes[node->child] : NULL; in xbc_node_get_child() 171 struct xbc_node * __init xbc_node_get_next(struct xbc_node *node) in xbc_node_get_next() argument 173 return node->next ? &xbc_nodes[node->next] : NULL; in xbc_node_get_next() 183 const char * __init xbc_node_get_data(struct xbc_node *node) in xbc_node_get_data() argument 185 int offset = node->data & ~XBC_VALUE; in xbc_node_get_data() [all …]
|
/openbmc/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 …]
|
/openbmc/linux/drivers/net/wireguard/ |
H A D | allowedips.c | 23 static void copy_and_assign_cidr(struct allowedips_node *node, const u8 *src, in copy_and_assign_cidr() argument 26 node->cidr = cidr; in copy_and_assign_cidr() 27 node->bit_at_a = cidr / 8U; in copy_and_assign_cidr() 29 node->bit_at_a ^= (bits / 8U - 1U) % 8U; in copy_and_assign_cidr() 31 node->bit_at_b = 7U - (cidr % 8U); in copy_and_assign_cidr() 32 node->bitlen = bits; in copy_and_assign_cidr() 33 memcpy(node->bits, src, bits / 8U); in copy_and_assign_cidr() 36 static inline u8 choose(struct allowedips_node *node, const u8 *key) in choose() argument 38 return (key[node->bit_at_a] >> node->bit_at_b) & 1; in choose() 58 struct allowedips_node *node, *stack[MAX_ALLOWEDIPS_DEPTH] = { in root_free_rcu() local [all …]
|
/openbmc/linux/include/linux/ |
H A D | rbtree.h | 33 #define RB_EMPTY_NODE(node) \ argument 34 ((node)->__rb_parent_color == (unsigned long)(node)) 35 #define RB_CLEAR_NODE(node) \ argument 36 ((node)->__rb_parent_color = (unsigned long)(node)) 59 static inline void rb_link_node(struct rb_node *node, struct rb_node *parent, in rb_link_node() argument 62 node->__rb_parent_color = (unsigned long)parent; in rb_link_node() 63 node->rb_left = node->rb_right = NULL; in rb_link_node() 65 *rb_link = node; in rb_link_node() 68 static inline void rb_link_node_rcu(struct rb_node *node, struct rb_node *parent, in rb_link_node_rcu() argument 71 node->__rb_parent_color = (unsigned long)parent; in rb_link_node_rcu() [all …]
|
/openbmc/u-boot/drivers/block/ |
H A D | blkcache.c | 35 struct block_cache_node *node; in cache_find() local 37 list_for_each_entry(node, &block_cache, lh) in cache_find() 38 if ((node->iftype == iftype) && in cache_find() 39 (node->devnum == devnum) && in cache_find() 40 (node->blksz == blksz) && in cache_find() 41 (node->start <= start) && in cache_find() 42 (node->start + node->blkcnt >= start + blkcnt)) { in cache_find() 43 if (block_cache.next != &node->lh) { in cache_find() 45 list_del(&node->lh); in cache_find() 46 list_add(&node->lh, &block_cache); in cache_find() [all …]
|
/openbmc/qemu/tests/qtest/libqos/ |
H A D | libqos-malloc.c | 25 static void mlist_delete(MemList *list, MemBlock *node) in mlist_delete() argument 27 g_assert(list && node); in mlist_delete() 28 QTAILQ_REMOVE(list, node, MLIST_ENTNAME); in mlist_delete() 29 g_free(node); in mlist_delete() 34 MemBlock *node; in mlist_find_key() local 35 QTAILQ_FOREACH(node, head, MLIST_ENTNAME) { in mlist_find_key() 36 if (node->addr == addr) { in mlist_find_key() 37 return node; in mlist_find_key() 45 MemBlock *node; in mlist_find_space() local 47 QTAILQ_FOREACH(node, head, MLIST_ENTNAME) { in mlist_find_space() [all …]
|