Home
last modified time | relevance | path

Searched refs:parent (Results 1 – 25 of 4248) sorted by relevance

12345678910>>...170

/third_party/eudev/src/udev/
Dudev-builtin-path_id.c78 struct udev_device *parent = dev; in skip_subsystem() local
80 while (parent != NULL) { in skip_subsystem()
83 subsystem = udev_device_get_subsystem(parent); in skip_subsystem()
86 dev = parent; in skip_subsystem()
87 parent = udev_device_get_parent(parent); in skip_subsystem()
92 static struct udev_device *handle_scsi_fibre_channel(struct udev_device *parent, char **path) { in handle_scsi_fibre_channel() argument
93 struct udev *udev = udev_device_get_udev(parent); in handle_scsi_fibre_channel()
99 targetdev = udev_device_get_parent_with_subsystem_devtype(parent, "scsi", "scsi_target"); in handle_scsi_fibre_channel()
108 parent = NULL; in handle_scsi_fibre_channel()
112 format_lun_number(parent, &lun); in handle_scsi_fibre_channel()
[all …]
/third_party/e2fsprogs/lib/ext2fs/
Drbtree.c28 struct rb_node *parent = ext2fs_rb_parent(node); in __rb_rotate_left() local
34 ext2fs_rb_set_parent(right, parent); in __rb_rotate_left()
36 if (parent) in __rb_rotate_left()
38 if (node == parent->rb_left) in __rb_rotate_left()
39 parent->rb_left = right; in __rb_rotate_left()
41 parent->rb_right = right; in __rb_rotate_left()
51 struct rb_node *parent = ext2fs_rb_parent(node); in __rb_rotate_right() local
57 ext2fs_rb_set_parent(left, parent); in __rb_rotate_right()
59 if (parent) in __rb_rotate_right()
61 if (node == parent->rb_right) in __rb_rotate_right()
[all …]
/third_party/flutter/flutter/packages/flutter/test/rendering/
Dintrinsic_width_test.dart49 final RenderBox parent = RenderIntrinsicWidth(child: child);
50 layout(parent,
58 expect(parent.size.width, equals(100.0));
59 expect(parent.size.height, equals(110.0));
61 expect(parent.getMinIntrinsicWidth(0.0), equals(100.0));
62 expect(parent.getMaxIntrinsicWidth(0.0), equals(100.0));
63 expect(parent.getMinIntrinsicHeight(0.0), equals(20.0));
64 expect(parent.getMaxIntrinsicHeight(0.0), equals(200.0));
66 expect(parent.getMinIntrinsicWidth(10.0), equals(100.0));
67 expect(parent.getMaxIntrinsicWidth(10.0), equals(100.0));
[all …]
/third_party/ltp/testcases/kernel/fs/fs_bind/cloneNS/
Dfs_bind_cloneNS05.sh15 fs_bind_makedir rshared parent
16 fs_bind_makedir rshared parent/child1
17 fs_bind_makedir rshared parent/child2
19 EXPECT_PASS mount --rbind "$FS_BIND_DISK1" parent/child1
20 EXPECT_PASS mount --rbind parent parent/child2
24 EXPECT_PASS mount --bind "$FS_BIND_DISK2" parent/child1/a
25 fs_bind_check parent/child1/a parent/child2/child1/a
27 EXPECT_PASS mount --bind "$FS_BIND_DISK3" parent/child2/child1/b
28 fs_bind_check parent/child1/b parent/child2/child1/b
31 fs_bind_check -s "$FS_BIND_DISK2" parent/child1/a parent/child2/child1/a
[all …]
/third_party/ltp/testcases/kernel/fs/fs_bind/rbind/
Dfs_bind_rbind35.sh15 fs_bind_makedir rshared parent
16 fs_bind_makedir private parent/child1
17 fs_bind_makedir rshared parent/child2
19 EXPECT_PASS mount --rbind "$FS_BIND_DISK3" parent/child1
21 EXPECT_PASS mount --rbind parent parent/child2/
22 fs_bind_check parent parent/child2/
23 fs_bind_check parent/child1 parent/child2/child1
25 EXPECT_PASS umount parent/child2/child1
27 fs_bind_check -n parent/child1 parent/child2/child1
29 EXPECT_PASS umount parent/child1
[all …]
Dfs_bind_rbind34.sh15 fs_bind_makedir rshared parent
16 fs_bind_makedir rshared parent/child1
17 fs_bind_makedir rshared parent/child2
19 EXPECT_PASS mount --rbind "$FS_BIND_DISK3" parent/child1
21 EXPECT_PASS mount --rbind parent parent/child2/
22 fs_bind_check parent parent/child2/
23 fs_bind_check parent/child1 parent/child2/child1
25 EXPECT_PASS umount parent/child2/child1
26 fs_bind_check parent/child1 parent/child2/child1
28 EXPECT_PASS umount parent/child1
[all …]
Dfs_bind_rbind36.sh15 fs_bind_makedir rshared parent
16 fs_bind_makedir runbindable parent/child1
17 fs_bind_makedir rshared parent/child2
19 EXPECT_PASS mount --rbind "$FS_BIND_DISK3" parent/child1
21 EXPECT_PASS mount --rbind parent parent/child2/
22 fs_bind_check parent parent/child2/
23 fs_bind_check -n parent/child1 parent/child2/child1
25 EXPECT_PASS umount parent/child1
26 fs_bind_check parent/child1 parent/child2/child1
28 EXPECT_PASS mount --rbind "$FS_BIND_DISK4" parent/child2/child1
[all …]
/third_party/typescript/src/services/codefixes/
DfixUnusedIdentifier.ts45 if (isObjectBindingPattern(token.parent) || isArrayBindingPattern(token.parent)) {
46 if (isParameter(token.parent.parent)) {
47 const elements = token.parent.elements;
54 …deleteDestructuringElements(t, sourceFile, token.parent as ObjectBindingPattern | ArrayBindingPatt…
59 … t.delete(sourceFile, token.parent.parent)), Diagnostics.Remove_unused_destructuring_declaration)
66 …eteEntireVariableStatement(t, sourceFile, <VariableDeclarationList>token.parent)), Diagnostics.Rem…
73 const name = cast(token.parent, isInferTypeNode).typeParameter.name.text;
80 const name = isComputedPropertyName(token.parent) ? token.parent : token;
123 else if (isObjectBindingPattern(token.parent)) {
124 if (token.parent.parent.initializer) {
[all …]
/third_party/libuv/src/
Dheap-inl.h30 struct heap_node* parent; member
73 struct heap_node* parent, in heap_node_swap() argument
78 t = *parent; in heap_node_swap()
79 *parent = *child; in heap_node_swap()
82 parent->parent = child; in heap_node_swap()
84 child->left = parent; in heap_node_swap()
87 child->right = parent; in heap_node_swap()
91 sibling->parent = child; in heap_node_swap()
93 if (parent->left != NULL) in heap_node_swap()
94 parent->left->parent = parent; in heap_node_swap()
[all …]
/third_party/ltp/testcases/kernel/fs/fs_bind/bind/
Dfs_bind22.sh15 fs_bind_makedir rshared parent
16 fs_bind_makedir rshared parent/child1
17 fs_bind_makedir rshared parent/child2
19 EXPECT_PASS mount --bind parent parent/child2/
20 fs_bind_check parent parent/child2/
22 EXPECT_PASS mount --bind "$FS_BIND_DISK3" parent/child2/child1
23 fs_bind_check parent/child1 parent/child2/child1
25 EXPECT_PASS umount parent/child2/child1
26 fs_bind_check parent/child1 parent/child2/child1
28 EXPECT_PASS mount --bind "$FS_BIND_DISK4" parent/child2/child1
[all …]
/third_party/typescript/tests/baselines/reference/
DrecursiveFieldSetting.types7 constructor(private readonly parent?: Recursive1) {}
8 >parent : Recursive1
10 private depth: number = this.parent ? this.parent.depth + 1 : 0;
12 >this.parent ? this.parent.depth + 1 : 0 : number
13 >this.parent : Recursive1
15 >parent : Recursive1
16 >this.parent.depth + 1 : number
17 >this.parent.depth : number
18 >this.parent : Recursive1
20 >parent : Recursive1
[all …]
DrecursiveFieldSetting.symbols7 constructor(private readonly parent?: Recursive1) {}
8 >parent : Symbol(Recursive1.parent, Decl(recursiveFieldSetting.ts, 3, 16))
11 private depth: number = this.parent ? this.parent.depth + 1 : 0;
13 >this.parent : Symbol(Recursive1.parent, Decl(recursiveFieldSetting.ts, 3, 16))
15 >parent : Symbol(Recursive1.parent, Decl(recursiveFieldSetting.ts, 3, 16))
16 >this.parent.depth : Symbol(Recursive1.depth, Decl(recursiveFieldSetting.ts, 3, 56))
17 >this.parent : Symbol(Recursive1.parent, Decl(recursiveFieldSetting.ts, 3, 16))
19 >parent : Symbol(Recursive1.parent, Decl(recursiveFieldSetting.ts, 3, 16))
26 parent!: Recursive2;
27 >parent : Symbol(Recursive2.parent, Decl(recursiveFieldSetting.ts, 7, 18))
[all …]
DrecursiveFieldSetting.js5 constructor(private readonly parent?: Recursive1) {}
6 private depth: number = this.parent ? this.parent.depth + 1 : 0; field in Recursive1
10 parent!: Recursive2; field in Recursive2
11 depth: number = this.parent.depth; field in Recursive2
15 parent!: Recursive3; field in Recursive3
16 depth: number = this.parent.alpha; field in Recursive3
24 function Recursive1(parent) { argument
25 this.parent = parent;
26 this.depth = this.parent ? this.parent.depth + 1 : 0;
32 this.depth = this.parent.depth;
[all …]
/third_party/boost/tools/auto_index/src/
Dindex_generator.cpp24 void raise_invalid_xml(const std::string& parent, const std::string& child) in raise_invalid_xml() argument
26 …or("Error: element " + child + " can not appear inside the container " + parent + ": try using a d… in raise_invalid_xml()
31 void check_index_type_and_placement(const std::string& parent, const std::string& container) in check_index_type_and_placement() argument
35 if((parent != "appendix") in check_index_type_and_placement()
36 && (parent != "article") in check_index_type_and_placement()
37 && (parent != "chapter") in check_index_type_and_placement()
38 && (parent != "partintro") in check_index_type_and_placement()
39 && (parent != "preface") in check_index_type_and_placement()
40 && (parent != "section")) in check_index_type_and_placement()
41 raise_invalid_xml(parent, container); in check_index_type_and_placement()
[all …]
/third_party/typescript/src/services/
Dbreakpoints.ts45 …indNextToken(previousTokenToFindNextEndToken, previousTokenToFindNextEndToken.parent, sourceFile));
64 return spanInNode(findNextToken(node, node.parent, sourceFile));
69 const { parent } = node; constant
200 return spanInNodeArray(parent.decorators!);
268 isArrayLiteralOrObjectLiteralDestructuringPattern(parent)) {
283 …ind === SyntaxKind.EqualsToken && isArrayLiteralOrObjectLiteralDestructuringPattern(node.parent)) {
297 switch (parent.kind) {
304 return spanInNode(node.parent);
311 … if ((<BinaryExpression>node.parent).operatorToken.kind === SyntaxKind.CommaToken) {
318 if ((<FunctionLikeDeclaration>node.parent).body === node) {
[all …]
/third_party/node/deps/npm/node_modules/clone/
Dclone.js22 function clone(parent, circular, depth, prototype) { argument
44 function _clone(parent, depth) { argument
46 if (parent === null)
50 return parent;
54 if (typeof parent != 'object') {
55 return parent;
58 if (clone.__isArray(parent)) {
60 } else if (clone.__isRegExp(parent)) {
61 child = new RegExp(parent.source, __getRegExpFlags(parent));
62 if (parent.lastIndex) child.lastIndex = parent.lastIndex;
[all …]
/third_party/typescript_eslint/packages/eslint-plugin/src/util/
DexplicitReturnTypeUtils.ts39 const parent = node.parent; constant
41 parent &&
42 (parent.type === AST_NODE_TYPES.MethodDefinition ||
43 (parent.type === AST_NODE_TYPES.Property && parent.method))
45 return parent.loc.start;
127 const objectExpr = property.parent; // this shouldn't happen, checking just in case
135 const parent = objectExpr.parent; // this shouldn't happen, checking just in case constant
136 /* istanbul ignore if */ if (!parent) {
141 isTypeAssertion(parent) ||
142 isClassPropertyWithTypeAnnotation(parent) ||
[all …]
/third_party/boost/boost/multi_index/detail/
Dord_index_node.hpp99 pointer& parent(){return parent_;} in parent() function
100 pointer parent()const{return parent_;} in parent() function
205 parent_ref parent(){return parent_ref(&parentcolor_);} in parent() function
206 pointer parent()const in parent() function
273 pointer y=x->parent(); in increment()
276 y=y->parent(); in increment()
284 if(x->color()==red&&x->parent()->parent()==x){ in decrement()
292 pointer y=x->parent(); in decrement()
295 y=y->parent(); in decrement()
307 if(y->left()!=pointer(0))y->left()->parent()=x; in rotate_left()
[all …]
/third_party/mesa3d/src/util/
Dslab.c75 slab_get_element(struct slab_parent_pool *parent, in slab_get_element() argument
79 ((uint8_t*)&page[1] + (parent->element_size * index)); in slab_get_element()
105 slab_create_parent(struct slab_parent_pool *parent, in slab_create_parent() argument
109 simple_mtx_init(&parent->mutex, mtx_plain); in slab_create_parent()
110 parent->element_size = ALIGN_POT(sizeof(struct slab_element_header) + item_size, in slab_create_parent()
112 parent->num_elements = num_items; in slab_create_parent()
116 slab_destroy_parent(struct slab_parent_pool *parent) in slab_destroy_parent() argument
118 simple_mtx_destroy(&parent->mutex); in slab_destroy_parent()
125 struct slab_parent_pool *parent) in slab_create_child() argument
127 pool->parent = parent; in slab_create_child()
[all …]
/third_party/typescript_eslint/packages/eslint-plugin/src/rules/
Dno-magic-numbers.ts93 node.parent?.type === AST_NODE_TYPES.UnaryExpression &&
96 node.parent.operator === '-'
98 fullNumberNode = node.parent;
99 raw = `${node.parent.operator}${node.raw}`;
123 node.parent?.type === AST_NODE_TYPES.UnaryExpression &&
124 ['-', '+'].includes(node.parent.operator)
126 return node.parent.parent;
129 return node.parent;
139 return node.parent?.parent?.type === AST_NODE_TYPES.TSTypeAliasDeclaration;
149 if (node.parent?.parent?.type === AST_NODE_TYPES.TSUnionType) {
[all …]
Dno-unused-vars-experimental.ts114 const parent = identifier.parent; constant
117 switch (parent.kind) {
159 parent as ts.ParameterDeclaration,
181 throw new Error(`Unknown node with kind ${parent.kind}.`);
191 parent: ts.ParameterDeclaration,
215 parent.parent.parameters.indexOf(parent) ===
216 parent.parent.parameters.length - 1;
220 for (const param of parent.parent.parameters) {
234 function handleImportDeclaration(parent: ts.ImportDeclaration): void {
244 node: parserServices.tsNodeToESTreeNodeMap.get(parent),
[all …]
Dno-invalid-void-type.ts96 node.parent?.type !== AST_NODE_TYPES.TSTypeParameterInstantiation ||
97 node.parent.parent?.type !== AST_NODE_TYPES.TSTypeReference
106 .getText(node.parent.parent.typeName)
155 if (!node.parent?.parent) {
161 node.parent.type === AST_NODE_TYPES.TSTypeParameterInstantiation &&
162 node.parent.parent.type === AST_NODE_TYPES.TSTypeReference
170 node.parent.type === AST_NODE_TYPES.TSUnionType &&
171 isValidUnionType(node.parent)
179 node.parent.type === AST_NODE_TYPES.TSTypeAnnotation &&
180 node.parent.parent.type === AST_NODE_TYPES.Identifier &&
[all …]
/third_party/flutter/flutter/packages/flutter/test/widgets/
Dfocus_manager_test.dart31 final FocusNode parent = FocusNode();
32 final FocusAttachment parentAttachment = parent.attach(context);
37 parentAttachment.reparent(parent: tester.binding.focusManager.rootScope);
38 child1Attachment.reparent(parent: parent);
39 expect(child1.parent, equals(parent));
40 expect(parent.children.first, equals(child1));
41 expect(parent.children.last, equals(child1));
42 child2Attachment.reparent(parent: parent);
43 expect(child1.parent, equals(parent));
44 expect(child2.parent, equals(parent));
[all …]
/third_party/NuttX/drivers/usbdev/gadget/fconfig/src/
Dusb_obj.c56 obj->parent = NULL; in usbobj_init()
68 int usbobj_add(struct usb_obj *obj, struct usb_obj *parent) in usbobj_add() argument
72 if (!obj || !parent) in usbobj_add()
77 usbobj_get(parent); in usbobj_add()
78 spin_lock_irqsave(&parent->lock, flags); in usbobj_add()
79 list_add_tail(&obj->entry, &parent->children); in usbobj_add()
80 obj->parent = parent; in usbobj_add()
81 spin_unlock_irqrestore(&parent->lock, flags); in usbobj_add()
88 struct usb_obj *parent; in usbobj_remove() local
91 if (!obj || !obj->parent) in usbobj_remove()
[all …]
/third_party/mesa3d/src/compiler/nir/
Dnir_deref.c32 nir_deref_instr *parent = nir_src_as_deref(cast->parent); in is_trivial_deref_cast() local
33 if (!parent) in is_trivial_deref_cast()
36 return cast->modes == parent->modes && in is_trivial_deref_cast()
37 cast->type == parent->type && in is_trivial_deref_cast()
38 cast->dest.ssa.num_components == parent->dest.ssa.num_components && in is_trivial_deref_cast()
39 cast->dest.ssa.bit_size == parent->dest.ssa.bit_size; in is_trivial_deref_cast()
172 if (use_src != &use_deref->parent) in nir_deref_instr_has_complex_use()
309 nir_deref_instr *parent = *(p - 1); in nir_deref_instr_get_const_offset() local
310 offset += struct_type_get_field_offset(parent->type, size_align, in nir_deref_instr_get_const_offset()
346 nir_deref_instr *parent = *(p - 1); in nir_build_deref_offset() local
[all …]

12345678910>>...170