/linux-4.4.14/tools/lib/ |
H A D | rbtree.c | 58 * - old's parent and color get assigned to new 59 * - old gets assigned new as a parent and 'color' as a color. 65 struct rb_node *parent = rb_parent(old); __rb_rotate_set_parents() local 68 __rb_change_child(old, new, parent, root); __rb_rotate_set_parents() 75 struct rb_node *parent = rb_red_parent(node), *gparent, *tmp; __rb_insert() local 81 * If there is a black parent, we are done. __rb_insert() 85 if (!parent) { __rb_insert() 88 } else if (rb_is_black(parent)) __rb_insert() 91 gparent = rb_red_parent(parent); __rb_insert() 94 if (parent != tmp) { /* parent == gparent->rb_left */ __rb_insert() 105 * However, since g's parent might be red, and __rb_insert() 110 rb_set_parent_color(parent, gparent, RB_BLACK); __rb_insert() 112 parent = rb_parent(node); __rb_insert() 113 rb_set_parent_color(node, parent, RB_RED); __rb_insert() 117 tmp = parent->rb_right; __rb_insert() 120 * Case 2 - left rotate at parent __rb_insert() 131 parent->rb_right = tmp = node->rb_left; __rb_insert() 132 node->rb_left = parent; __rb_insert() 134 rb_set_parent_color(tmp, parent, __rb_insert() 136 rb_set_parent_color(parent, node, RB_RED); __rb_insert() 137 augment_rotate(parent, node); __rb_insert() 138 parent = node; __rb_insert() 151 gparent->rb_left = tmp; /* == parent->rb_right */ __rb_insert() 152 parent->rb_right = gparent; __rb_insert() 155 __rb_rotate_set_parents(gparent, parent, root, RB_RED); __rb_insert() 156 augment_rotate(gparent, parent); __rb_insert() 163 rb_set_parent_color(parent, gparent, RB_BLACK); __rb_insert() 165 parent = rb_parent(node); __rb_insert() 166 rb_set_parent_color(node, parent, RB_RED); __rb_insert() 170 tmp = parent->rb_left; __rb_insert() 172 /* Case 2 - right rotate at parent */ __rb_insert() 173 parent->rb_left = tmp = node->rb_right; __rb_insert() 174 node->rb_right = parent; __rb_insert() 176 rb_set_parent_color(tmp, parent, __rb_insert() 178 rb_set_parent_color(parent, node, RB_RED); __rb_insert() 179 augment_rotate(parent, node); __rb_insert() 180 parent = node; __rb_insert() 185 gparent->rb_right = tmp; /* == parent->rb_left */ __rb_insert() 186 parent->rb_left = gparent; __rb_insert() 189 __rb_rotate_set_parents(gparent, parent, root, RB_RED); __rb_insert() 190 augment_rotate(gparent, parent); __rb_insert() 201 ____rb_erase_color(struct rb_node *parent, struct rb_root *root, ____rb_erase_color() argument 210 * - node is not the root (parent is not NULL) ____rb_erase_color() 211 * - All leaf paths going through parent and node have a ____rb_erase_color() 214 sibling = parent->rb_right; ____rb_erase_color() 215 if (node != sibling) { /* node == parent->rb_left */ ____rb_erase_color() 218 * Case 1 - left rotate at parent ____rb_erase_color() 226 parent->rb_right = tmp1 = sibling->rb_left; ____rb_erase_color() 227 sibling->rb_left = parent; ____rb_erase_color() 228 rb_set_parent_color(tmp1, parent, RB_BLACK); ____rb_erase_color() 229 __rb_rotate_set_parents(parent, sibling, root, ____rb_erase_color() 231 augment_rotate(parent, sibling); ____rb_erase_color() 253 rb_set_parent_color(sibling, parent, ____rb_erase_color() 255 if (rb_is_red(parent)) ____rb_erase_color() 256 rb_set_black(parent); ____rb_erase_color() 258 node = parent; ____rb_erase_color() 259 parent = rb_parent(node); ____rb_erase_color() 260 if (parent) ____rb_erase_color() 279 parent->rb_right = tmp2; ____rb_erase_color() 288 * Case 4 - left rotate at parent + color flips ____rb_erase_color() 299 parent->rb_right = tmp2 = sibling->rb_left; ____rb_erase_color() 300 sibling->rb_left = parent; ____rb_erase_color() 303 rb_set_parent(tmp2, parent); ____rb_erase_color() 304 __rb_rotate_set_parents(parent, sibling, root, ____rb_erase_color() 306 augment_rotate(parent, sibling); ____rb_erase_color() 309 sibling = parent->rb_left; ____rb_erase_color() 311 /* Case 1 - right rotate at parent */ ____rb_erase_color() 312 parent->rb_left = tmp1 = sibling->rb_right; ____rb_erase_color() 313 sibling->rb_right = parent; ____rb_erase_color() 314 rb_set_parent_color(tmp1, parent, RB_BLACK); ____rb_erase_color() 315 __rb_rotate_set_parents(parent, sibling, root, ____rb_erase_color() 317 augment_rotate(parent, sibling); ____rb_erase_color() 325 rb_set_parent_color(sibling, parent, ____rb_erase_color() 327 if (rb_is_red(parent)) ____rb_erase_color() 328 rb_set_black(parent); ____rb_erase_color() 330 node = parent; ____rb_erase_color() 331 parent = rb_parent(node); ____rb_erase_color() 332 if (parent) ____rb_erase_color() 340 parent->rb_left = tmp2; ____rb_erase_color() 348 /* Case 4 - left rotate at parent + color flips */ ____rb_erase_color() 349 parent->rb_left = tmp2 = sibling->rb_right; ____rb_erase_color() 350 sibling->rb_right = parent; ____rb_erase_color() 353 rb_set_parent(tmp2, parent); ____rb_erase_color() 354 __rb_rotate_set_parents(parent, sibling, root, ____rb_erase_color() 356 augment_rotate(parent, sibling); ____rb_erase_color() 363 void __rb_erase_color(struct rb_node *parent, struct rb_root *root, __rb_erase_color() argument 366 ____rb_erase_color(parent, root, augment_rotate); __rb_erase_color() 439 struct rb_node *parent; rb_next() local 457 * so any 'next' node must be in the general direction of our parent. rb_next() 459 * parent, keep going up. First time it's a left-hand child of its rb_next() 460 * parent, said parent is our 'next' node. rb_next() 462 while ((parent = rb_parent(node)) && node == parent->rb_right) rb_next() 463 node = parent; rb_next() 465 return parent; rb_next() 470 struct rb_node *parent; rb_prev() local 488 * is a right-hand child of its parent. rb_prev() 490 while ((parent = rb_parent(node)) && node == parent->rb_left) rb_prev() 491 node = parent; rb_prev() 493 return parent; rb_prev() 499 struct rb_node *parent = rb_parent(victim); rb_replace_node() local 502 __rb_change_child(victim, new, parent, root); rb_replace_node() 526 const struct rb_node *parent; rb_next_postorder() local 529 parent = rb_parent(node); rb_next_postorder() 532 if (parent && node == parent->rb_left && parent->rb_right) { rb_next_postorder() 533 /* If we are the parent's left node, go to the parent's right rb_next_postorder() 535 return rb_left_deepest_node(parent->rb_right); rb_next_postorder() 537 /* Otherwise we are the parent's right node, and the parent rb_next_postorder() 539 return (struct rb_node *)parent; rb_next_postorder()
|
/linux-4.4.14/drivers/pci/ |
H A D | hotplug-pci.c | 9 struct pci_bus *parent = dev->bus; pci_hp_add_bridge() local 10 int pass, busnr, start = parent->busn_res.start; pci_hp_add_bridge() 11 int end = parent->busn_res.end; pci_hp_add_bridge() 14 if (!pci_find_bus(pci_domain_nr(parent), busnr)) pci_hp_add_bridge() 23 busnr = pci_scan_bridge(parent, dev, busnr, pass); pci_hp_add_bridge()
|
H A D | irq.c | 15 struct pci_dev *parent = to_pci_dev(pdev->dev.parent); pci_note_irq_problem() local 19 dev_name(&parent->dev), parent->vendor, parent->device); pci_note_irq_problem()
|
H A D | of.c | 51 if (WARN_ON(bus->self || bus->parent)) pcibios_get_phb_of_node() 55 * create above the root bus or it's own parent. Normally only pcibios_get_phb_of_node() 60 if (bus->bridge->parent && bus->bridge->parent->of_node) pcibios_get_phb_of_node() 61 return of_node_get(bus->bridge->parent->of_node); pcibios_get_phb_of_node() 79 * If we don't have an msi-parent property, look for a domain pci_host_bridge_of_msi_domain()
|
/linux-4.4.14/drivers/edac/ |
H A D | debugfs.c | 61 struct dentry *d, *parent; edac_create_debugfs_nodes() local 71 parent = d; edac_create_debugfs_nodes() 76 d = debugfs_create_u8(name, S_IRUGO | S_IWUSR, parent, edac_create_debugfs_nodes() 82 d = debugfs_create_bool("fake_inject_ue", S_IRUGO | S_IWUSR, parent, edac_create_debugfs_nodes() 87 d = debugfs_create_u16("fake_inject_count", S_IRUGO | S_IWUSR, parent, edac_create_debugfs_nodes() 92 d = debugfs_create_file("fake_inject", S_IWUSR, parent, edac_create_debugfs_nodes() 98 mci->debugfs = parent; edac_create_debugfs_nodes() 115 /* Create a toplevel dir under EDAC's debugfs hierarchy with parent @parent */ 117 edac_debugfs_create_dir_at(const char *dirname, struct dentry *parent) edac_debugfs_create_dir_at() argument 119 return debugfs_create_dir(dirname, parent); edac_debugfs_create_dir_at() 128 * @parent: parent dentry. If NULL, it becomes the toplevel EDAC dir 133 edac_debugfs_create_file(const char *name, umode_t mode, struct dentry *parent, edac_debugfs_create_file() argument 136 if (!parent) edac_debugfs_create_file() 137 parent = edac_debugfs; edac_debugfs_create_file() 139 return debugfs_create_file(name, mode, parent, data, fops); edac_debugfs_create_file() 145 struct dentry *parent, u8 *value) edac_debugfs_create_x8() 147 if (!parent) edac_debugfs_create_x8() 148 parent = edac_debugfs; edac_debugfs_create_x8() 150 return debugfs_create_x8(name, mode, parent, value); edac_debugfs_create_x8() 156 struct dentry *parent, u16 *value) edac_debugfs_create_x16() 158 if (!parent) edac_debugfs_create_x16() 159 parent = edac_debugfs; edac_debugfs_create_x16() 161 return debugfs_create_x16(name, mode, parent, value); edac_debugfs_create_x16() 144 edac_debugfs_create_x8(const char *name, umode_t mode, struct dentry *parent, u8 *value) edac_debugfs_create_x8() argument 155 edac_debugfs_create_x16(const char *name, umode_t mode, struct dentry *parent, u16 *value) edac_debugfs_create_x16() argument
|
H A D | edac_module.h | 72 edac_debugfs_create_dir_at(const char *dirname, struct dentry *parent); 74 edac_debugfs_create_file(const char *name, umode_t mode, struct dentry *parent, 77 edac_debugfs_create_x8(const char *name, umode_t mode, struct dentry *parent, u8 *value); 79 edac_debugfs_create_x16(const char *name, umode_t mode, struct dentry *parent, u16 *value); 86 edac_debugfs_create_dir_at(const char *dirname, struct dentry *parent) { return NULL; } edac_debugfs_create_dir_at() argument 88 edac_debugfs_create_file(const char *name, umode_t mode, struct dentry *parent, edac_debugfs_create_file() argument 92 struct dentry *parent, u8 *value) { return NULL; } 95 struct dentry *parent, u16 *value) { return NULL; } 91 edac_debugfs_create_x8(const char *name, umode_t mode, struct dentry *parent, u8 *value) edac_debugfs_create_x8() argument 94 edac_debugfs_create_x16(const char *name, umode_t mode, struct dentry *parent, u16 *value) edac_debugfs_create_x16() argument
|
/linux-4.4.14/lib/ |
H A D | rbtree.c | 67 * are left undone as of now. Nor did I check for loops involving parent 83 * - old's parent and color get assigned to new 84 * - old gets assigned new as a parent and 'color' as a color. 90 struct rb_node *parent = rb_parent(old); __rb_rotate_set_parents() local 93 __rb_change_child(old, new, parent, root); __rb_rotate_set_parents() 100 struct rb_node *parent = rb_red_parent(node), *gparent, *tmp; __rb_insert() local 106 * If there is a black parent, we are done. __rb_insert() 110 if (!parent) { __rb_insert() 113 } else if (rb_is_black(parent)) __rb_insert() 116 gparent = rb_red_parent(parent); __rb_insert() 119 if (parent != tmp) { /* parent == gparent->rb_left */ __rb_insert() 130 * However, since g's parent might be red, and __rb_insert() 135 rb_set_parent_color(parent, gparent, RB_BLACK); __rb_insert() 137 parent = rb_parent(node); __rb_insert() 138 rb_set_parent_color(node, parent, RB_RED); __rb_insert() 142 tmp = parent->rb_right; __rb_insert() 145 * Case 2 - left rotate at parent __rb_insert() 157 WRITE_ONCE(parent->rb_right, tmp); __rb_insert() 158 WRITE_ONCE(node->rb_left, parent); __rb_insert() 160 rb_set_parent_color(tmp, parent, __rb_insert() 162 rb_set_parent_color(parent, node, RB_RED); __rb_insert() 163 augment_rotate(parent, node); __rb_insert() 164 parent = node; __rb_insert() 177 WRITE_ONCE(gparent->rb_left, tmp); /* == parent->rb_right */ __rb_insert() 178 WRITE_ONCE(parent->rb_right, gparent); __rb_insert() 181 __rb_rotate_set_parents(gparent, parent, root, RB_RED); __rb_insert() 182 augment_rotate(gparent, parent); __rb_insert() 189 rb_set_parent_color(parent, gparent, RB_BLACK); __rb_insert() 191 parent = rb_parent(node); __rb_insert() 192 rb_set_parent_color(node, parent, RB_RED); __rb_insert() 196 tmp = parent->rb_left; __rb_insert() 198 /* Case 2 - right rotate at parent */ __rb_insert() 200 WRITE_ONCE(parent->rb_left, tmp); __rb_insert() 201 WRITE_ONCE(node->rb_right, parent); __rb_insert() 203 rb_set_parent_color(tmp, parent, __rb_insert() 205 rb_set_parent_color(parent, node, RB_RED); __rb_insert() 206 augment_rotate(parent, node); __rb_insert() 207 parent = node; __rb_insert() 212 WRITE_ONCE(gparent->rb_right, tmp); /* == parent->rb_left */ __rb_insert() 213 WRITE_ONCE(parent->rb_left, gparent); __rb_insert() 216 __rb_rotate_set_parents(gparent, parent, root, RB_RED); __rb_insert() 217 augment_rotate(gparent, parent); __rb_insert() 228 ____rb_erase_color(struct rb_node *parent, struct rb_root *root, ____rb_erase_color() argument 237 * - node is not the root (parent is not NULL) ____rb_erase_color() 238 * - All leaf paths going through parent and node have a ____rb_erase_color() 241 sibling = parent->rb_right; ____rb_erase_color() 242 if (node != sibling) { /* node == parent->rb_left */ ____rb_erase_color() 245 * Case 1 - left rotate at parent ____rb_erase_color() 254 WRITE_ONCE(parent->rb_right, tmp1); ____rb_erase_color() 255 WRITE_ONCE(sibling->rb_left, parent); ____rb_erase_color() 256 rb_set_parent_color(tmp1, parent, RB_BLACK); ____rb_erase_color() 257 __rb_rotate_set_parents(parent, sibling, root, ____rb_erase_color() 259 augment_rotate(parent, sibling); ____rb_erase_color() 281 rb_set_parent_color(sibling, parent, ____rb_erase_color() 283 if (rb_is_red(parent)) ____rb_erase_color() 284 rb_set_black(parent); ____rb_erase_color() 286 node = parent; ____rb_erase_color() 287 parent = rb_parent(node); ____rb_erase_color() 288 if (parent) ____rb_erase_color() 308 WRITE_ONCE(parent->rb_right, tmp2); ____rb_erase_color() 317 * Case 4 - left rotate at parent + color flips ____rb_erase_color() 329 WRITE_ONCE(parent->rb_right, tmp2); ____rb_erase_color() 330 WRITE_ONCE(sibling->rb_left, parent); ____rb_erase_color() 333 rb_set_parent(tmp2, parent); ____rb_erase_color() 334 __rb_rotate_set_parents(parent, sibling, root, ____rb_erase_color() 336 augment_rotate(parent, sibling); ____rb_erase_color() 339 sibling = parent->rb_left; ____rb_erase_color() 341 /* Case 1 - right rotate at parent */ ____rb_erase_color() 343 WRITE_ONCE(parent->rb_left, tmp1); ____rb_erase_color() 344 WRITE_ONCE(sibling->rb_right, parent); ____rb_erase_color() 345 rb_set_parent_color(tmp1, parent, RB_BLACK); ____rb_erase_color() 346 __rb_rotate_set_parents(parent, sibling, root, ____rb_erase_color() 348 augment_rotate(parent, sibling); ____rb_erase_color() 356 rb_set_parent_color(sibling, parent, ____rb_erase_color() 358 if (rb_is_red(parent)) ____rb_erase_color() 359 rb_set_black(parent); ____rb_erase_color() 361 node = parent; ____rb_erase_color() 362 parent = rb_parent(node); ____rb_erase_color() 363 if (parent) ____rb_erase_color() 372 WRITE_ONCE(parent->rb_left, tmp2); ____rb_erase_color() 380 /* Case 4 - left rotate at parent + color flips */ ____rb_erase_color() 382 WRITE_ONCE(parent->rb_left, tmp2); ____rb_erase_color() 383 WRITE_ONCE(sibling->rb_right, parent); ____rb_erase_color() 386 rb_set_parent(tmp2, parent); ____rb_erase_color() 387 __rb_rotate_set_parents(parent, sibling, root, ____rb_erase_color() 389 augment_rotate(parent, sibling); ____rb_erase_color() 396 void __rb_erase_color(struct rb_node *parent, struct rb_root *root, __rb_erase_color() argument 399 ____rb_erase_color(parent, root, augment_rotate); __rb_erase_color() 478 struct rb_node *parent; rb_next() local 496 * so any 'next' node must be in the general direction of our parent. rb_next() 498 * parent, keep going up. First time it's a left-hand child of its rb_next() 499 * parent, said parent is our 'next' node. rb_next() 501 while ((parent = rb_parent(node)) && node == parent->rb_right) rb_next() 502 node = parent; rb_next() 504 return parent; rb_next() 510 struct rb_node *parent; rb_prev() local 528 * is a right-hand child of its parent. rb_prev() 530 while ((parent = rb_parent(node)) && node == parent->rb_left) rb_prev() 531 node = parent; rb_prev() 533 return parent; rb_prev() 540 struct rb_node *parent = rb_parent(victim); rb_replace_node() local 543 __rb_change_child(victim, new, parent, root); rb_replace_node() 568 const struct rb_node *parent; rb_next_postorder() local 571 parent = rb_parent(node); rb_next_postorder() 574 if (parent && node == parent->rb_left && parent->rb_right) { rb_next_postorder() 575 /* If we are the parent's left node, go to the parent's right rb_next_postorder() 577 return rb_left_deepest_node(parent->rb_right); rb_next_postorder() 579 /* Otherwise we are the parent's right node, and the parent rb_next_postorder() 581 return (struct rb_node *)parent; rb_next_postorder()
|
H A D | rbtree_test.c | 26 struct rb_node **new = &root->rb_node, *parent = NULL; insert() local 30 parent = *new; insert() 31 if (key < rb_entry(parent, struct test_node, rb)->key) insert() 32 new = &parent->rb_left; insert() 34 new = &parent->rb_right; insert() 37 rb_link_node(&node->rb, parent, new); insert() 72 struct test_node *parent; insert_augmented() local 76 parent = rb_entry(rb_parent, struct test_node, rb); insert_augmented() 77 if (parent->augmented < val) insert_augmented() 78 parent->augmented = val; insert_augmented() 79 if (key < parent->key) insert_augmented() 80 new = &parent->rb.rb_left; insert_augmented() 82 new = &parent->rb.rb_right; insert_augmented()
|
H A D | kobject.c | 26 * Returns namespace tag of @kobj if its parent has namespace ops enabled 106 struct kobject *parent = kobj; get_kobj_path_length() local 113 if (kobject_name(parent) == NULL) get_kobj_path_length() 115 length += strlen(kobject_name(parent)) + 1; get_kobj_path_length() 116 parent = parent->parent; get_kobj_path_length() 117 } while (parent); get_kobj_path_length() 123 struct kobject *parent; fill_kobj_path() local 126 for (parent = kobj; parent; parent = parent->parent) { fill_kobj_path() 127 int cur = strlen(kobject_name(parent)); fill_kobj_path() 130 strncpy(path + length, kobject_name(parent), cur); fill_kobj_path() 203 struct kobject *parent; kobject_add_internal() local 214 parent = kobject_get(kobj->parent); kobject_add_internal() 216 /* join kset if set, use it as parent if we do not already have one */ kobject_add_internal() 218 if (!parent) kobject_add_internal() 219 parent = kobject_get(&kobj->kset->kobj); kobject_add_internal() 221 kobj->parent = parent; kobject_add_internal() 224 pr_debug("kobject: '%s' (%p): %s: parent: '%s', set: '%s'\n", kobject_add_internal() 226 parent ? kobject_name(parent) : "<NULL>", kobject_add_internal() 232 kobject_put(parent); kobject_add_internal() 233 kobj->parent = NULL; kobject_add_internal() 242 WARN(1, "%s failed for %s (error: %d parent: %s)\n", kobject_add_internal() 244 parent ? kobject_name(parent) : "'none'"); kobject_add_internal() 355 struct kobject *parent, kobject_add_varg() 365 kobj->parent = parent; kobject_add_varg() 372 * @parent: pointer to the parent of the kobject. 378 * If @parent is set, then the parent of the @kobj will be set to it. 379 * If @parent is NULL, then the parent of the @kobj will be set to the 394 int kobject_add(struct kobject *kobj, struct kobject *parent, kobject_add() argument 411 retval = kobject_add_varg(kobj, parent, fmt, args); kobject_add() 422 * @parent: pointer to the parent of this kobject. 430 struct kobject *parent, const char *fmt, ...) kobject_init_and_add() 438 retval = kobject_add_varg(kobj, parent, fmt, args); kobject_init_and_add() 466 if (!kobj->parent) kobject_rename() 513 * kobject_move - move object to another parent 515 * @new_parent: object's new parent (can be NULL) 551 old_parent = kobj->parent; kobject_move() 552 kobj->parent = new_parent; kobject_move() 582 kobject_put(kobj->parent); kobject_del() 583 kobj->parent = NULL; kobject_del() 620 pr_debug("kobject: '%s' (%p): %s, parent %p\n", kobject_cleanup() 621 kobject_name(kobj), kobj, __func__, kobj->parent); kobject_cleanup() 668 pr_info("kobject: '%s' (%p): %s, parent %p (delayed %ld)\n", kobject_release() 669 kobject_name(kobj), kobj, __func__, kobj->parent, delay); kobject_release() 734 * @parent: the parent kobject of this kobject, if any. 743 struct kobject *kobject_create_and_add(const char *name, struct kobject *parent) kobject_create_and_add() argument 752 retval = kobject_add(kobj, parent, "%s", name); kobject_create_and_add() 883 * @parent_kobj: the parent kobject of this kset, if any. 909 kset->kobj.parent = parent_kobj; kset_create() 927 * @parent_kobj: the parent kobject of this kset, if any. 998 const struct kobj_ns_type_operations *kobj_child_ns_ops(struct kobject *parent) kobj_child_ns_ops() argument 1002 if (parent && parent->ktype && parent->ktype->child_ns_type) kobj_child_ns_ops() 1003 ops = parent->ktype->child_ns_type(parent); kobj_child_ns_ops() 1010 return kobj_child_ns_ops(kobj->parent); kobj_ns_ops() 354 kobject_add_varg(struct kobject *kobj, struct kobject *parent, const char *fmt, va_list vargs) kobject_add_varg() argument 429 kobject_init_and_add(struct kobject *kobj, struct kobj_type *ktype, struct kobject *parent, const char *fmt, ...) kobject_init_and_add() argument
|
H A D | notifier-error-inject.h | 23 struct dentry *parent, struct notifier_err_inject *err_inject,
|
H A D | notifier-error-inject.c | 21 struct dentry *parent, int *value) debugfs_create_errno() 23 return debugfs_create_file(name, mode, parent, value, &fops_errno); debugfs_create_errno() 49 struct dentry *notifier_err_inject_init(const char *name, struct dentry *parent, notifier_err_inject_init() argument 60 dir = debugfs_create_dir(name, parent); notifier_err_inject_init() 20 debugfs_create_errno(const char *name, umode_t mode, struct dentry *parent, int *value) debugfs_create_errno() argument
|
/linux-4.4.14/kernel/ |
H A D | audit_watch.c | 39 * event. Each audit_watch holds a reference to its associated parent. 52 struct audit_parent *parent; /* associated parent */ member in struct:audit_watch 53 struct list_head wlist; /* entry in parent->watches list */ 69 static void audit_free_parent(struct audit_parent *parent) audit_free_parent() argument 71 WARN_ON(!list_empty(&parent->watches)); audit_free_parent() 72 kfree(parent); audit_free_parent() 77 struct audit_parent *parent; audit_watch_free_mark() local 79 parent = container_of(entry, struct audit_parent, mark); audit_watch_free_mark() 80 audit_free_parent(parent); audit_watch_free_mark() 83 static void audit_get_parent(struct audit_parent *parent) audit_get_parent() argument 85 if (likely(parent)) audit_get_parent() 86 fsnotify_get_mark(&parent->mark); audit_get_parent() 89 static void audit_put_parent(struct audit_parent *parent) audit_put_parent() argument 91 if (likely(parent)) audit_put_parent() 92 fsnotify_put_mark(&parent->mark); audit_put_parent() 97 * is taken on this parent. 101 struct audit_parent *parent = NULL; audit_find_parent() local 106 parent = container_of(entry, struct audit_parent, mark); audit_find_parent() 108 return parent; audit_find_parent() 119 WARN_ON(watch->parent); audit_put_watch() 129 audit_put_parent(watch->parent); audit_remove_watch() 130 watch->parent = NULL; audit_remove_watch() 146 /* Initialize a parent watch entry. */ audit_init_parent() 150 struct audit_parent *parent; audit_init_parent() local 153 parent = kzalloc(sizeof(*parent), GFP_KERNEL); audit_init_parent() 154 if (unlikely(!parent)) audit_init_parent() 157 INIT_LIST_HEAD(&parent->watches); audit_init_parent() 159 fsnotify_init_mark(&parent->mark, audit_watch_free_mark); audit_init_parent() 160 parent->mark.mask = AUDIT_FS_WATCH; audit_init_parent() 161 ret = fsnotify_add_mark(&parent->mark, audit_watch_group, inode, NULL, 0); audit_init_parent() 163 audit_free_parent(parent); audit_init_parent() 167 return parent; audit_init_parent() 230 audit_get_parent(old->parent); audit_dupe_watch() 231 new->parent = old->parent; audit_dupe_watch() 257 static void audit_update_watch(struct audit_parent *parent, audit_update_watch() argument 266 /* Run all of the watches on this parent looking for the one that audit_update_watch() 268 list_for_each_entry_safe(owatch, nextw, &parent->watches, wlist) { audit_update_watch() 330 list_add(&nwatch->wlist, &parent->watches); audit_update_watch() 335 /* Remove all watches & rules associated with a parent that is going away. */ audit_remove_parent_watches() 336 static void audit_remove_parent_watches(struct audit_parent *parent) audit_remove_parent_watches() argument 343 list_for_each_entry_safe(w, nextw, &parent->watches, wlist) { audit_remove_parent_watches() 358 fsnotify_destroy_mark(&parent->mark, audit_watch_group); audit_remove_parent_watches() 362 static int audit_get_nd(struct audit_watch *watch, struct path *parent) audit_get_nd() argument 364 struct dentry *d = kern_path_locked(watch->path, parent); audit_get_nd() 367 mutex_unlock(&d_backing_inode(parent->dentry)->i_mutex); audit_get_nd() 377 /* Associate the given rule with an existing parent. 380 struct audit_parent *parent) audit_add_to_parent() 387 list_for_each_entry(w, &parent->watches, wlist) { audit_add_to_parent() 399 audit_put_parent(parent); audit_add_to_parent() 404 watch->parent = parent; audit_add_to_parent() 407 list_add(&watch->wlist, &parent->watches); audit_add_to_parent() 417 struct audit_parent *parent; audit_add_watch() local 432 /* either find an old parent or attach a new one */ audit_add_watch() 433 parent = audit_find_parent(d_backing_inode(parent_path.dentry)); audit_add_watch() 434 if (!parent) { audit_add_watch() 435 parent = audit_init_parent(&parent_path); audit_add_watch() 436 if (IS_ERR(parent)) { audit_add_watch() 437 ret = PTR_ERR(parent); audit_add_watch() 442 audit_add_to_parent(krule, parent); audit_add_watch() 454 struct audit_parent *parent = watch->parent; audit_remove_watch_rule() local 461 if (list_empty(&parent->watches)) { audit_remove_watch_rule() 462 audit_get_parent(parent); audit_remove_watch_rule() 463 fsnotify_destroy_mark(&parent->mark, audit_watch_group); audit_remove_watch_rule() 464 audit_put_parent(parent); audit_remove_watch_rule() 478 struct audit_parent *parent; audit_watch_handle_event() local 480 parent = container_of(inode_mark, struct audit_parent, mark); audit_watch_handle_event() 498 audit_update_watch(parent, dname, inode->i_sb->s_dev, inode->i_ino, 0); audit_watch_handle_event() 500 audit_update_watch(parent, dname, AUDIT_DEV_UNSET, AUDIT_INO_UNSET, 1); audit_watch_handle_event() 502 audit_remove_parent_watches(parent); audit_watch_handle_event() 379 audit_add_to_parent(struct audit_krule *krule, struct audit_parent *parent) audit_add_to_parent() argument
|
H A D | resource.c | 71 while (!p->sibling && p->parent) next_resource() 72 p = p->parent; next_resource() 111 for (depth = 0, p = r; depth < MAX_IORES_LEVEL; depth++, p = p->parent) r_show() 112 if (p->parent == root) r_show() 226 new->parent = root; __request_resource() 240 p = &old->parent->child; __release_resource() 247 old->parent = NULL; __release_resource() 266 tmp->parent = NULL; __release_child_resources() 714 if ( new->parent ) { allocate_resource() 755 static struct resource * __insert_resource(struct resource *parent, struct resource *new) __insert_resource() argument 759 for (;; parent = first) { __insert_resource() 760 first = __request_resource(parent, new); __insert_resource() 764 if (first == parent) __insert_resource() 785 new->parent = parent; __insert_resource() 791 next->parent = new; __insert_resource() 793 if (parent->child == first) { __insert_resource() 794 parent->child = new; __insert_resource() 796 next = parent->child; __insert_resource() 806 * @parent: parent of the new resource 817 struct resource *insert_resource_conflict(struct resource *parent, struct resource *new) insert_resource_conflict() argument 822 conflict = __insert_resource(parent, new); insert_resource_conflict() 829 * @parent: parent of the new resource 834 int insert_resource(struct resource *parent, struct resource *new) insert_resource() argument 838 conflict = insert_resource_conflict(parent, new); insert_resource() 852 if (new->parent) insert_resource_expand_to_fit() 879 struct resource *tmp, *parent = res->parent; __adjust_resource() local 883 if (!parent) __adjust_resource() 886 if ((start < parent->start) || (end > parent->end)) __adjust_resource() 892 tmp = parent->child; __adjust_resource() 939 struct resource *parent = root; __reserve_region_with_split() local 954 conflict = __request_resource(parent, res); __reserve_region_with_split() 1055 * @parent: parent resource descriptor 1061 struct resource * __request_region(struct resource *parent, __request_region() argument 1074 res->flags = resource_type(parent); __request_region() 1082 conflict = __request_resource(parent, res); __request_region() 1085 if (conflict != parent) { __request_region() 1087 parent = conflict; __request_region() 1112 * @parent: parent resource descriptor 1118 void __release_region(struct resource *parent, resource_size_t start, __release_region() argument 1124 p = &parent->child; __release_region() 1162 * @parent: parent resource descriptor 1180 int release_mem_region_adjustable(struct resource *parent, release_mem_region_adjustable() argument 1190 if ((start < parent->start) || (end > parent->end)) release_mem_region_adjustable() 1196 p = &parent->child; release_mem_region_adjustable() 1241 new_res->parent = res->parent; release_mem_region_adjustable() 1336 struct resource *parent; member in struct:region_devres 1345 __release_region(this->parent, this->start, this->n); devm_region_release() 1352 return this->parent == match->parent && devm_region_match() 1357 struct resource *parent, resource_size_t start, __devm_request_region() 1368 dr->parent = parent; __devm_request_region() 1372 res = __request_region(parent, start, n, name, 0); __devm_request_region() 1382 void __devm_release_region(struct device *dev, struct resource *parent, __devm_release_region() argument 1385 struct region_devres match_data = { parent, start, n }; __devm_release_region() 1387 __release_region(parent, start, n); __devm_release_region() 1356 __devm_request_region(struct device *dev, struct resource *parent, resource_size_t start, resource_size_t n, const char *name) __devm_request_region() argument
|
/linux-4.4.14/drivers/staging/lustre/lustre/ldlm/ |
H A D | interval_tree.c | 155 struct interval_node *parent = node->in_parent; __rotate_left() local 162 right->in_parent = parent; __rotate_left() 163 if (parent) { __rotate_left() 165 parent->in_left = right; __rotate_left() 167 parent->in_right = right; __rotate_left() 184 struct interval_node *parent = node->in_parent; __rotate_right() local 191 left->in_parent = parent; __rotate_right() 192 if (parent) { __rotate_right() 194 parent->in_right = left; __rotate_right() 196 parent->in_left = left; __rotate_right() 220 struct interval_node *parent, *gparent; interval_insert_color() local 222 while ((parent = node->in_parent) && node_is_red(parent)) { interval_insert_color() 223 gparent = parent->in_parent; interval_insert_color() 225 if (node_is_left_child(parent)) { interval_insert_color() 231 parent->in_color = INTERVAL_BLACK; interval_insert_color() 237 if (parent->in_right == node) { interval_insert_color() 238 __rotate_left(parent, root); interval_insert_color() 239 interval_swap(node, parent); interval_insert_color() 242 parent->in_color = INTERVAL_BLACK; interval_insert_color() 251 parent->in_color = INTERVAL_BLACK; interval_insert_color() 258 __rotate_right(parent, root); interval_insert_color() 259 interval_swap(node, parent); interval_insert_color() 262 parent->in_color = INTERVAL_BLACK; interval_insert_color() 275 struct interval_node **p, *parent = NULL; interval_insert() local 280 parent = *p; interval_insert() 281 if (node_equal(parent, node)) interval_insert() 282 return parent; interval_insert() 285 if (parent->in_max_high < interval_high(node)) interval_insert() 286 parent->in_max_high = interval_high(node); interval_insert() 288 if (node_compare(node, parent) < 0) interval_insert() 289 p = &parent->in_left; interval_insert() 291 p = &parent->in_right; interval_insert() 295 node->in_parent = parent; interval_insert() 314 struct interval_node *parent, interval_erase_color() 320 if (parent->in_left == node) { interval_erase_color() 321 tmp = parent->in_right; interval_erase_color() 324 parent->in_color = INTERVAL_RED; interval_erase_color() 325 __rotate_left(parent, root); interval_erase_color() 326 tmp = parent->in_right; interval_erase_color() 331 node = parent; interval_erase_color() 332 parent = node->in_parent; interval_erase_color() 342 tmp = parent->in_right; interval_erase_color() 344 tmp->in_color = parent->in_color; interval_erase_color() 345 parent->in_color = INTERVAL_BLACK; interval_erase_color() 348 __rotate_left(parent, root); interval_erase_color() 353 tmp = parent->in_left; interval_erase_color() 356 parent->in_color = INTERVAL_RED; interval_erase_color() 357 __rotate_right(parent, root); interval_erase_color() 358 tmp = parent->in_left; interval_erase_color() 363 node = parent; interval_erase_color() 364 parent = node->in_parent; interval_erase_color() 374 tmp = parent->in_left; interval_erase_color() 376 tmp->in_color = parent->in_color; interval_erase_color() 377 parent->in_color = INTERVAL_BLACK; interval_erase_color() 380 __rotate_right(parent, root); interval_erase_color() 414 struct interval_node *child, *parent; interval_erase() local 428 parent = node->in_parent; interval_erase() 432 child->in_parent = parent; interval_erase() 433 if (parent == old) interval_erase() 434 parent->in_right = child; interval_erase() 436 parent->in_left = child; interval_erase() 455 update_maxhigh(child ? : parent, node->in_max_high); interval_erase() 457 if (parent == old) interval_erase() 458 parent = node; interval_erase() 461 parent = node->in_parent; interval_erase() 465 child->in_parent = parent; interval_erase() 466 if (parent) { interval_erase() 468 parent->in_left = child; interval_erase() 470 parent->in_right = child; interval_erase() 475 update_maxhigh(child ? : parent, node->in_max_high); interval_erase() 479 interval_erase_color(child, parent, root); interval_erase() 313 interval_erase_color(struct interval_node *node, struct interval_node *parent, struct interval_node **root) interval_erase_color() argument
|
/linux-4.4.14/fs/kernfs/ |
H A D | symlink.c | 19 * @parent: directory to create the symlink in 25 struct kernfs_node *kernfs_create_link(struct kernfs_node *parent, kernfs_create_link() argument 32 kn = kernfs_new_node(parent, name, S_IFLNK|S_IRWXUGO, KERNFS_LINK); kernfs_create_link() 36 if (kernfs_ns_enabled(parent)) kernfs_create_link() 49 static int kernfs_get_target_path(struct kernfs_node *parent, kernfs_get_target_path() argument 57 base = parent; kernfs_get_target_path() 58 while (base->parent) { kernfs_get_target_path() 59 kn = target->parent; kernfs_get_target_path() 60 while (kn->parent && base != kn) kernfs_get_target_path() 61 kn = kn->parent; kernfs_get_target_path() 68 base = base->parent; kernfs_get_target_path() 73 while (kn->parent && kn != base) { kernfs_get_target_path() 75 kn = kn->parent; kernfs_get_target_path() 87 while (kn->parent && kn != base) { kernfs_get_target_path() 95 kn = kn->parent; kernfs_get_target_path() 104 struct kernfs_node *parent = kn->parent; kernfs_getlink() local 109 error = kernfs_get_target_path(parent, target, path); kernfs_getlink()
|
H A D | dir.c | 22 static DEFINE_SPINLOCK(kernfs_rename_lock); /* kn->parent and ->name */ 44 return strlcpy(buf, kn->parent ? kn->name : "/", buflen); kernfs_name_locked() 65 kn = kn->parent; kernfs_path_locked() 66 } while (kn && kn->parent); kernfs_path_locked() 109 kn = kn->parent; kernfs_path_len() 110 } while (kn && kn->parent); kernfs_path_len() 182 * kernfs_get_parent - determine the parent node and pin it 185 * Determines @kn's parent, pins and returns it. This function can be 190 struct kernfs_node *parent; kernfs_get_parent() local 194 parent = kn->parent; kernfs_get_parent() 195 kernfs_get(parent); kernfs_get_parent() 198 return parent; kernfs_get_parent() 249 * @kn->parent->dir.children. 259 struct rb_node **node = &kn->parent->dir.children.rb_node; kernfs_link_sibling() 260 struct rb_node *parent = NULL; kernfs_link_sibling() local 267 parent = *node; kernfs_link_sibling() 278 rb_link_node(&kn->rb, parent, node); kernfs_link_sibling() 279 rb_insert_color(&kn->rb, &kn->parent->dir.children); kernfs_link_sibling() 283 kn->parent->dir.subdirs++; kernfs_link_sibling() 293 * kn->parent->dir.children. Returns %true if @kn was actually 305 kn->parent->dir.subdirs--; kernfs_unlink_sibling() 307 rb_erase(&kn->rb, &kn->parent->dir.children); kernfs_unlink_sibling() 418 struct kernfs_node *parent; kernfs_put() local 427 * kn->parent won't change beneath us. kernfs_put() 429 parent = kn->parent; kernfs_put() 433 parent ? parent->name : "", kn->name, atomic_read(&kn->active)); kernfs_put() 450 kn = parent; kernfs_put() 481 if (dentry->d_parent->d_fsdata != kn->parent) kernfs_dop_revalidate() 489 if (kn->parent && kernfs_ns_enabled(kn->parent) && kernfs_dop_revalidate() 573 struct kernfs_node *kernfs_new_node(struct kernfs_node *parent, kernfs_new_node() argument 579 kn = __kernfs_new_node(kernfs_root(parent), name, mode, flags); kernfs_new_node() 581 kernfs_get(parent); kernfs_new_node() 582 kn->parent = parent; kernfs_new_node() 588 * kernfs_add_one - add kernfs_node to parent without warning 591 * The caller must already have initialized @kn->parent. This 592 * function increments nlink of the parent's inode if @kn is a 593 * directory and link into the children list of the parent. 601 struct kernfs_node *parent = kn->parent; kernfs_add_one() local 609 has_ns = kernfs_ns_enabled(parent); kernfs_add_one() 611 has_ns ? "required" : "invalid", parent->name, kn->name)) kernfs_add_one() 614 if (kernfs_type(parent) != KERNFS_DIR) kernfs_add_one() 618 if (parent->flags & KERNFS_EMPTY_DIR) kernfs_add_one() 621 if ((parent->flags & KERNFS_ACTIVATED) && !kernfs_active(parent)) kernfs_add_one() 630 /* Update timestamps on the parent */ kernfs_add_one() 631 ps_iattr = parent->iattr; kernfs_add_one() 657 * @parent: kernfs_node to search under 661 * Look for kernfs_node with name @name under @parent. Returns pointer to 664 static struct kernfs_node *kernfs_find_ns(struct kernfs_node *parent, kernfs_find_ns() argument 668 struct rb_node *node = parent->dir.children.rb_node; kernfs_find_ns() 669 bool has_ns = kernfs_ns_enabled(parent); kernfs_find_ns() 676 has_ns ? "required" : "invalid", parent->name, name); kernfs_find_ns() 699 * @parent: kernfs_node to search under 703 * Look for kernfs_node with name @name under @parent and get a reference 707 struct kernfs_node *kernfs_find_and_get_ns(struct kernfs_node *parent, kernfs_find_and_get_ns() argument 713 kn = kernfs_find_ns(parent, name, ns); kernfs_find_and_get_ns() 779 * @parent: parent in which to create a new directory 787 struct kernfs_node *kernfs_create_dir_ns(struct kernfs_node *parent, kernfs_create_dir_ns() argument 795 kn = kernfs_new_node(parent, name, mode | S_IFDIR, KERNFS_DIR); kernfs_create_dir_ns() 799 kn->dir.root = parent->dir.root; kernfs_create_dir_ns() 814 * @parent: parent in which to create a new directory 819 struct kernfs_node *kernfs_create_empty_dir(struct kernfs_node *parent, kernfs_create_empty_dir() argument 826 kn = kernfs_new_node(parent, name, S_IRUGO|S_IXUGO|S_IFDIR, KERNFS_DIR); kernfs_create_empty_dir() 831 kn->dir.root = parent->dir.root; kernfs_create_empty_dir() 849 struct kernfs_node *parent = dentry->d_parent->d_fsdata; kernfs_iop_lookup() local 856 if (kernfs_ns_enabled(parent)) kernfs_iop_lookup() 859 kn = kernfs_find_ns(parent, dentry->d_name.name, ns); kernfs_iop_lookup() 886 struct kernfs_node *parent = dir->i_private; kernfs_iop_mkdir() local 887 struct kernfs_syscall_ops *scops = kernfs_root(parent)->syscall_ops; kernfs_iop_mkdir() 893 if (!kernfs_get_active(parent)) kernfs_iop_mkdir() 896 ret = scops->mkdir(parent, dentry->d_name.name, mode); kernfs_iop_mkdir() 898 kernfs_put_active(parent); kernfs_iop_mkdir() 1012 /* no sibling left, visit parent */ kernfs_next_descendant_post() 1013 return pos->parent; kernfs_next_descendant_post() 1040 WARN_ON_ONCE(pos->parent && RB_EMPTY_NODE(&pos->rb)); kernfs_activate() 1061 if (!kn || (kn->parent && RB_EMPTY_NODE(&kn->rb))) __kernfs_remove() 1099 if (!pos->parent || kernfs_unlink_sibling(pos)) { __kernfs_remove() 1101 pos->parent ? pos->parent->iattr : NULL; __kernfs_remove() 1103 /* update timestamps on the parent */ __kernfs_remove() 1262 * @parent: parent of the target 1266 * Look for the kernfs_node with @name and @ns under @parent and remove it. 1269 int kernfs_remove_by_name_ns(struct kernfs_node *parent, const char *name, kernfs_remove_by_name_ns() argument 1274 if (!parent) { kernfs_remove_by_name_ns() 1282 kn = kernfs_find_ns(parent, name, ns); kernfs_remove_by_name_ns() 1297 * @new_parent: new parent to put @sd under 1309 if (!kn->parent) kernfs_rename_ns() 1320 if ((kn->parent == new_parent) && (kn->ns == new_ns) && kernfs_rename_ns() 1344 /* rename_lock protects ->parent and ->name accessors */ kernfs_rename_ns() 1347 old_parent = kn->parent; kernfs_rename_ns() 1348 kn->parent = new_parent; kernfs_rename_ns() 1383 struct kernfs_node *parent, loff_t hash, struct kernfs_node *pos) kernfs_dir_pos() 1387 pos->parent == parent && hash == pos->hash; kernfs_dir_pos() 1393 struct rb_node *node = parent->dir.children.rb_node; kernfs_dir_pos() 1417 struct kernfs_node *parent, ino_t ino, struct kernfs_node *pos) kernfs_dir_next_pos() 1419 pos = kernfs_dir_pos(ns, parent, ino, pos); kernfs_dir_next_pos() 1435 struct kernfs_node *parent = dentry->d_fsdata; kernfs_fop_readdir() local 1443 if (kernfs_ns_enabled(parent)) kernfs_fop_readdir() 1446 for (pos = kernfs_dir_pos(ns, parent, ctx->pos, pos); kernfs_fop_readdir() 1448 pos = kernfs_dir_next_pos(ns, parent, ctx->pos, pos)) { kernfs_fop_readdir() 1382 kernfs_dir_pos(const void *ns, struct kernfs_node *parent, loff_t hash, struct kernfs_node *pos) kernfs_dir_pos() argument 1416 kernfs_dir_next_pos(const void *ns, struct kernfs_node *parent, ino_t ino, struct kernfs_node *pos) kernfs_dir_next_pos() argument
|
/linux-4.4.14/include/linux/ |
H A D | debugfs.h | 50 struct dentry *parent, void *data, 54 struct dentry *parent, void *data, 58 struct dentry *debugfs_create_dir(const char *name, struct dentry *parent); 60 struct dentry *debugfs_create_symlink(const char *name, struct dentry *parent, 64 struct dentry *parent, 75 struct dentry *parent, u8 *value); 77 struct dentry *parent, u16 *value); 79 struct dentry *parent, u32 *value); 81 struct dentry *parent, u64 *value); 83 struct dentry *parent, unsigned long *value); 85 struct dentry *parent, u8 *value); 87 struct dentry *parent, u16 *value); 89 struct dentry *parent, u32 *value); 91 struct dentry *parent, u64 *value); 93 struct dentry *parent, size_t *value); 95 struct dentry *parent, atomic_t *value); 97 struct dentry *parent, bool *value); 100 struct dentry *parent, 104 struct dentry *parent, 111 struct dentry *parent, 115 struct dentry *parent, 138 struct dentry *parent, void *data, debugfs_create_file() 145 struct dentry *parent, void *data, debugfs_create_file_size() 153 struct dentry *parent) debugfs_create_dir() 159 struct dentry *parent, debugfs_create_symlink() 178 struct dentry *parent, debugfs_create_u8() 185 struct dentry *parent, debugfs_create_u16() 192 struct dentry *parent, debugfs_create_u32() 199 struct dentry *parent, debugfs_create_u64() 206 struct dentry *parent, debugfs_create_x8() 213 struct dentry *parent, debugfs_create_x16() 220 struct dentry *parent, debugfs_create_x32() 227 struct dentry *parent, debugfs_create_x64() 234 struct dentry *parent, debugfs_create_size_t() 241 struct dentry *parent, atomic_t *value) debugfs_create_atomic_t() 247 struct dentry *parent, debugfs_create_bool() 254 struct dentry *parent, debugfs_create_blob() 261 umode_t mode, struct dentry *parent, debugfs_create_regset32() 278 struct dentry *parent, debugfs_create_u32_array() 286 struct dentry *parent, debugfs_create_devm_seqfile() 137 debugfs_create_file(const char *name, umode_t mode, struct dentry *parent, void *data, const struct file_operations *fops) debugfs_create_file() argument 144 debugfs_create_file_size(const char *name, umode_t mode, struct dentry *parent, void *data, const struct file_operations *fops, loff_t file_size) debugfs_create_file_size() argument 152 debugfs_create_dir(const char *name, struct dentry *parent) debugfs_create_dir() argument 158 debugfs_create_symlink(const char *name, struct dentry *parent, const char *dest) debugfs_create_symlink() argument 177 debugfs_create_u8(const char *name, umode_t mode, struct dentry *parent, u8 *value) debugfs_create_u8() argument 184 debugfs_create_u16(const char *name, umode_t mode, struct dentry *parent, u16 *value) debugfs_create_u16() argument 191 debugfs_create_u32(const char *name, umode_t mode, struct dentry *parent, u32 *value) debugfs_create_u32() argument 198 debugfs_create_u64(const char *name, umode_t mode, struct dentry *parent, u64 *value) debugfs_create_u64() argument 205 debugfs_create_x8(const char *name, umode_t mode, struct dentry *parent, u8 *value) debugfs_create_x8() argument 212 debugfs_create_x16(const char *name, umode_t mode, struct dentry *parent, u16 *value) debugfs_create_x16() argument 219 debugfs_create_x32(const char *name, umode_t mode, struct dentry *parent, u32 *value) debugfs_create_x32() argument 226 debugfs_create_x64(const char *name, umode_t mode, struct dentry *parent, u64 *value) debugfs_create_x64() argument 233 debugfs_create_size_t(const char *name, umode_t mode, struct dentry *parent, size_t *value) debugfs_create_size_t() argument 240 debugfs_create_atomic_t(const char *name, umode_t mode, struct dentry *parent, atomic_t *value) debugfs_create_atomic_t() argument 246 debugfs_create_bool(const char *name, umode_t mode, struct dentry *parent, bool *value) debugfs_create_bool() argument 253 debugfs_create_blob(const char *name, umode_t mode, struct dentry *parent, struct debugfs_blob_wrapper *blob) debugfs_create_blob() argument 260 debugfs_create_regset32(const char *name, umode_t mode, struct dentry *parent, struct debugfs_regset32 *regset) debugfs_create_regset32() argument 277 debugfs_create_u32_array(const char *name, umode_t mode, struct dentry *parent, u32 *array, u32 elements) debugfs_create_u32_array() argument 284 debugfs_create_devm_seqfile(struct device *dev, const char *name, struct dentry *parent, int (*read_fn)(struct seq_file *s, void *data)) debugfs_create_devm_seqfile() argument
|
H A D | bsg.h | 10 struct device *parent; member in struct:bsg_class_device 18 struct device *parent, const char *name, 23 struct device *parent, const char *name, bsg_register_queue() 22 bsg_register_queue(struct request_queue *q, struct device *parent, const char *name, void (*release)(struct device *)) bsg_register_queue() argument
|
H A D | proc_fs.h | 31 const char *name, umode_t mode, struct proc_dir_entry *parent, proc_create() 34 return proc_create_data(name, mode, parent, proc_fops, NULL); proc_create() 56 struct proc_dir_entry *parent,const char *dest) { return NULL;} proc_mkdir() 58 struct proc_dir_entry *parent) {return NULL;} proc_mkdir_data() 60 umode_t mode, struct proc_dir_entry *parent, void *data) { return NULL; } proc_mkdir_mode() 62 umode_t mode, struct proc_dir_entry *parent) { return NULL; } 63 #define proc_create(name, mode, parent, proc_fops) ({NULL;}) 64 #define proc_create_data(name, mode, parent, proc_fops, data) ({NULL;}) 72 #define remove_proc_entry(name, parent) do {} while (0) remove_proc_subtree() 73 static inline int remove_proc_subtree(const char *name, struct proc_dir_entry *parent) { return 0; } remove_proc_subtree() argument 80 struct net *net, const char *name, struct proc_dir_entry *parent) proc_net_mkdir() 82 return proc_mkdir_data(name, 0, parent, net); proc_net_mkdir() 30 proc_create( const char *name, umode_t mode, struct proc_dir_entry *parent, const struct file_operations *proc_fops) proc_create() argument 55 proc_symlink(const char *name, struct proc_dir_entry *parent,const char *dest) proc_symlink() argument 57 proc_mkdir(const char *name, struct proc_dir_entry *parent) proc_mkdir() argument 59 proc_mkdir_data(const char *name, umode_t mode, struct proc_dir_entry *parent, void *data) proc_mkdir_data() argument 61 proc_mkdir_mode(const char *name, umode_t mode, struct proc_dir_entry *parent) proc_mkdir_mode() argument 79 proc_net_mkdir( struct net *net, const char *name, struct proc_dir_entry *parent) proc_net_mkdir() argument
|
H A D | of_graph.h | 33 * @parent: parent device node containing ports and endpoints 38 #define for_each_endpoint_of_node(parent, child) \ 39 for (child = of_graph_get_next_endpoint(parent, NULL); child != NULL; \ 40 child = of_graph_get_next_endpoint(parent, child)) 46 struct device_node *of_graph_get_next_endpoint(const struct device_node *parent, 49 const struct device_node *parent, int port_reg, int reg); 68 const struct device_node *parent, of_graph_get_next_endpoint() 75 const struct device_node *parent, int port_reg, int reg) of_graph_get_endpoint_by_regs() 67 of_graph_get_next_endpoint( const struct device_node *parent, struct device_node *previous) of_graph_get_next_endpoint() argument 74 of_graph_get_endpoint_by_regs( const struct device_node *parent, int port_reg, int reg) of_graph_get_endpoint_by_regs() argument
|
H A D | page_counter.h | 11 struct page_counter *parent; member in struct:page_counter 25 struct page_counter *parent) page_counter_init() 29 counter->parent = parent; page_counter_init() 24 page_counter_init(struct page_counter *counter, struct page_counter *parent) page_counter_init() argument
|
H A D | exportfs.h | 37 * 32 bit parent directory inode number. 50 * 64 bit parent object ID, 32 bit parent generation. 57 * 64 bit parent object ID, 32 bit parent generation, 58 * 64 bit parent root object ID. 71 * 32 bit parent block number, 32 bit parent generation number 83 * 32 bit generation number, 32 bit parent generation. 84 * 64 bit parent inode number. 95 * 32 bit parent generation number, 40 bit parent i_pos 129 * @fh_to_parent: find the implied object's parent and get a dentry for it 131 * @get_parent: find the parent of a given directory 161 * Same as @fh_to_dentry, except that it returns a pointer to the parent 165 * @get_name should find a name for the given @child in the given @parent 169 * or error. @get_name will be called without @parent->i_mutex held. 172 * @get_parent should find the parent directory for the given @child which 201 struct inode *parent); 206 int (*get_name)(struct dentry *parent, char *name, 220 int *max_len, struct inode *parent);
|
H A D | of_platform.h | 59 struct device *parent); 65 struct device *parent); 69 struct device *parent); 74 struct device *parent); 77 struct device *parent); 78 extern void of_platform_depopulate(struct device *parent); 83 struct device *parent) of_platform_populate() 89 struct device *parent) of_platform_default_populate() 93 static inline void of_platform_depopulate(struct device *parent) { } of_platform_depopulate() argument 80 of_platform_populate(struct device_node *root, const struct of_device_id *matches, const struct of_dev_auxdata *lookup, struct device *parent) of_platform_populate() argument 87 of_platform_default_populate(struct device_node *root, const struct of_dev_auxdata *lookup, struct device *parent) of_platform_default_populate() argument
|
H A D | rbtree_augmented.h | 122 struct rb_node *parent, struct rb_root *root) __rb_change_child() 124 if (parent) { __rb_change_child() 125 if (parent->rb_left == old) __rb_change_child() 126 WRITE_ONCE(parent->rb_left, new); __rb_change_child() 128 WRITE_ONCE(parent->rb_right, new); __rb_change_child() 133 extern void __rb_erase_color(struct rb_node *parent, struct rb_root *root, 142 struct rb_node *parent, *rebalance; __rb_erase_augmented() local 154 parent = __rb_parent(pc); __rb_erase_augmented() 155 __rb_change_child(node, child, parent, root); __rb_erase_augmented() 160 rebalance = __rb_is_black(pc) ? parent : NULL; __rb_erase_augmented() 161 tmp = parent; __rb_erase_augmented() 165 parent = __rb_parent(pc); __rb_erase_augmented() 166 __rb_change_child(node, tmp, parent, root); __rb_erase_augmented() 168 tmp = parent; __rb_erase_augmented() 183 parent = successor; __rb_erase_augmented() 203 parent = successor; __rb_erase_augmented() 208 WRITE_ONCE(parent->rb_left, child2); __rb_erase_augmented() 213 augment->propagate(parent, successor); __rb_erase_augmented() 226 rb_set_parent_color(child2, parent, RB_BLACK); __rb_erase_augmented() 231 rebalance = __rb_is_black(pc2) ? parent : NULL; __rb_erase_augmented() 121 __rb_change_child(struct rb_node *old, struct rb_node *new, struct rb_node *parent, struct rb_root *root) __rb_change_child() argument
|
H A D | tracefs.h | 29 struct dentry *parent, void *data, 32 struct dentry *tracefs_create_dir(const char *name, struct dentry *parent); 37 struct dentry *tracefs_create_instance_dir(const char *name, struct dentry *parent,
|
H A D | kernfs.h | 115 * never moved to a different parent, it is safe to access the 116 * parent directly. 118 struct kernfs_node *parent; member in struct:kernfs_node 150 int (*mkdir)(struct kernfs_node *parent, const char *name, 275 struct kernfs_node *kernfs_find_and_get_ns(struct kernfs_node *parent, 288 struct kernfs_node *kernfs_create_dir_ns(struct kernfs_node *parent, 291 struct kernfs_node *kernfs_create_empty_dir(struct kernfs_node *parent, 293 struct kernfs_node *__kernfs_create_file(struct kernfs_node *parent, 299 struct kernfs_node *kernfs_create_link(struct kernfs_node *parent, 307 int kernfs_remove_by_name_ns(struct kernfs_node *parent, const char *name, 350 kernfs_find_and_get_ns(struct kernfs_node *parent, const char *name, kernfs_find_and_get_ns() argument 375 kernfs_create_dir_ns(struct kernfs_node *parent, const char *name, kernfs_create_dir_ns() argument 380 __kernfs_create_file(struct kernfs_node *parent, const char *name, __kernfs_create_file() argument 386 kernfs_create_link(struct kernfs_node *parent, const char *name, kernfs_create_link() argument 434 kernfs_create_dir(struct kernfs_node *parent, const char *name, umode_t mode, kernfs_create_dir() argument 437 return kernfs_create_dir_ns(parent, name, mode, priv, NULL); kernfs_create_dir() 441 kernfs_create_file_ns(struct kernfs_node *parent, const char *name, kernfs_create_file_ns() argument 450 return __kernfs_create_file(parent, name, mode, size, ops, priv, ns, kernfs_create_file_ns() 455 kernfs_create_file(struct kernfs_node *parent, const char *name, umode_t mode, kernfs_create_file() argument 458 return kernfs_create_file_ns(parent, name, mode, size, ops, priv, NULL); kernfs_create_file() 461 static inline int kernfs_remove_by_name(struct kernfs_node *parent, kernfs_remove_by_name() argument 464 return kernfs_remove_by_name_ns(parent, name, NULL); kernfs_remove_by_name()
|
/linux-4.4.14/drivers/i2c/ |
H A D | i2c-mux.c | 35 struct i2c_adapter *parent; member in struct:i2c_mux_priv 48 struct i2c_adapter *parent = priv->parent; i2c_mux_master_xfer() local 53 ret = priv->select(parent, priv->mux_priv, priv->chan_id); i2c_mux_master_xfer() 55 ret = __i2c_transfer(parent, msgs, num); i2c_mux_master_xfer() 57 priv->deselect(parent, priv->mux_priv, priv->chan_id); i2c_mux_master_xfer() 68 struct i2c_adapter *parent = priv->parent; i2c_mux_smbus_xfer() local 73 ret = priv->select(parent, priv->mux_priv, priv->chan_id); i2c_mux_smbus_xfer() 75 ret = parent->algo->smbus_xfer(parent, addr, flags, i2c_mux_smbus_xfer() 78 priv->deselect(parent, priv->mux_priv, priv->chan_id); i2c_mux_smbus_xfer() 83 /* Return the parent's functionality */ i2c_mux_functionality() 87 struct i2c_adapter *parent = priv->parent; i2c_mux_functionality() local 89 return parent->algo->functionality(parent); i2c_mux_functionality() 92 /* Return all parent classes, merged */ i2c_mux_parent_classes() 93 static unsigned int i2c_mux_parent_classes(struct i2c_adapter *parent) i2c_mux_parent_classes() argument 98 class |= parent->class; i2c_mux_parent_classes() 99 parent = i2c_parent_is_i2c_adapter(parent); i2c_mux_parent_classes() 100 } while (parent); i2c_mux_parent_classes() 105 struct i2c_adapter *i2c_add_mux_adapter(struct i2c_adapter *parent, i2c_add_mux_adapter() argument 123 priv->parent = parent; i2c_add_mux_adapter() 133 if (parent->algo->master_xfer) i2c_add_mux_adapter() 135 if (parent->algo->smbus_xfer) i2c_add_mux_adapter() 141 "i2c-%d-mux (chan_id %d)", i2c_adapter_id(parent), chan_id); i2c_add_mux_adapter() 145 priv->adap.dev.parent = &parent->dev; i2c_add_mux_adapter() 146 priv->adap.retries = parent->retries; i2c_add_mux_adapter() 147 priv->adap.timeout = parent->timeout; i2c_add_mux_adapter() 148 priv->adap.quirks = parent->quirks; i2c_add_mux_adapter() 151 if (i2c_mux_parent_classes(parent) & class) i2c_add_mux_adapter() 152 dev_err(&parent->dev, i2c_add_mux_adapter() 191 dev_err(&parent->dev, i2c_add_mux_adapter() 204 dev_info(&parent->dev, "Added multiplexed i2c bus %d\n", i2c_add_mux_adapter()
|
/linux-4.4.14/mm/ |
H A D | interval_tree.c | 34 struct vm_area_struct *parent; vma_interval_tree_insert_after() local 40 parent = prev; vma_interval_tree_insert_after() 43 parent = rb_entry(prev->shared.rb.rb_right, vma_interval_tree_insert_after() 45 if (parent->shared.rb_subtree_last < last) vma_interval_tree_insert_after() 46 parent->shared.rb_subtree_last = last; vma_interval_tree_insert_after() 47 while (parent->shared.rb.rb_left) { vma_interval_tree_insert_after() 48 parent = rb_entry(parent->shared.rb.rb_left, vma_interval_tree_insert_after() 50 if (parent->shared.rb_subtree_last < last) vma_interval_tree_insert_after() 51 parent->shared.rb_subtree_last = last; vma_interval_tree_insert_after() 53 link = &parent->shared.rb.rb_left; vma_interval_tree_insert_after() 57 rb_link_node(&node->shared.rb, &parent->shared.rb, link); vma_interval_tree_insert_after()
|
/linux-4.4.14/fs/nilfs2/ |
H A D | export.h | 13 * @parent_gen: parent generation (version) for NFS 14 * @parent_ino: parent inode number
|
/linux-4.4.14/arch/powerpc/platforms/pseries/ |
H A D | of_helpers.c | 12 * Returns the node which should be the parent of the node 18 struct device_node *parent; pseries_of_derive_parent() local 34 parent = of_find_node_by_path(parent_path); pseries_of_derive_parent() 37 return parent ? parent : ERR_PTR(-EINVAL); pseries_of_derive_parent()
|
/linux-4.4.14/arch/c6x/platforms/ |
H A D | pll.c | 33 if (clk->parent) __clk_enable() 34 __clk_enable(clk->parent); __clk_enable() 44 if (clk->parent) __clk_disable() 45 __clk_disable(clk->parent); __clk_disable() 132 int clk_set_parent(struct clk *clk, struct clk *parent) clk_set_parent() argument 139 /* Cannot change parent on enabled clock */ clk_set_parent() 144 clk->parent = parent; clk_set_parent() 146 list_add(&clk->childnode, &clk->parent->children); clk_set_parent() 164 if (WARN(clk->parent && !clk->parent->rate, clk_register() 165 "CLK: %s parent %s has no rate!\n", clk_register() 166 clk->name, clk->parent->name)) clk_register() 171 if (clk->parent) clk_register() 172 list_add_tail(&clk->childnode, &clk->parent->children); clk_register() 183 /* Otherwise, default to parent rate */ clk_register() 184 else if (clk->parent) clk_register() 185 clk->rate = clk->parent->rate; clk_register() 215 if (WARN_ON(!clk->parent)) clk_sysclk_recalc() 218 rate = clk->parent->rate; clk_sysclk_recalc() 220 /* the parent must be a PLL */ clk_sysclk_recalc() 221 if (WARN_ON(!clk->parent->pll_data)) clk_sysclk_recalc() 224 pll = clk->parent->pll_data; clk_sysclk_recalc() 260 if (WARN_ON(!clk->parent)) clk_leafclk_recalc() 263 pr_debug("%s: (parent %s) rate = %lu KHz\n", clk_leafclk_recalc() 264 clk->name, clk->parent->name, clk->parent->rate / 1000); clk_leafclk_recalc() 266 return clk->parent->rate; clk_leafclk_recalc() 280 rate = pll->input_rate = clk->parent->rate; clk_pllclk_recalc() 316 pll->num, clk->parent->rate / 1000000, clk_pllclk_recalc() 320 pll->num, clk->parent->rate / 1000000); clk_pllclk_recalc() 343 else if (clk->parent) __init_clk() 379 dump_clock(struct seq_file *s, unsigned nest, struct clk *parent) dump_clock() argument 386 if (parent->flags & CLK_PLL) dump_clock() 394 i = strlen(parent->name); dump_clock() 395 memcpy(buf + nest, parent->name, dump_clock() 399 buf, parent->usecount, state, clk_get_rate(parent)); dump_clock() 403 list_for_each_entry(clk, &parent->children, childnode) { dump_clock() 417 if (!clk->parent) c6x_ck_show()
|
H A D | plldata.c | 41 .parent = &clkin1, 47 .parent = &c6x_soc_pll1.sysclks[0], 52 .parent = &c6x_soc_pll1.sysclks[0], 57 .parent = &c6x_soc_pll1.sysclks[0], 62 .parent = &c6x_soc_pll1.sysclks[0], 67 .parent = &c6x_soc_pll1.sysclks[0], 72 .parent = &c6x_soc_pll1.sysclks[0], 77 .parent = &c6x_soc_pll1.sysclks[0], 82 .parent = &c6x_soc_pll1.sysclks[0], 87 .parent = &c6x_soc_pll1.sysclks[0], 92 .parent = &c6x_soc_pll1.sysclks[0], 97 .parent = &c6x_soc_pll1.sysclks[0], 102 .parent = &c6x_soc_pll1.sysclks[0], 107 .parent = &c6x_soc_pll1.sysclks[0], 112 .parent = &c6x_soc_pll1.sysclks[0], 117 .parent = &c6x_soc_pll1.sysclks[0], 122 .parent = &c6x_soc_pll1.sysclks[0], 184 c6x_core_clk.parent = &sysclks[0]; c6455_setup_clocks() 185 c6x_i2c_clk.parent = &sysclks[3]; c6455_setup_clocks() 186 c6x_watchdog_clk.parent = &sysclks[3]; c6455_setup_clocks() 187 c6x_mdio_clk.parent = &sysclks[3]; c6455_setup_clocks() 224 c6x_core_clk.parent = &sysclks[1]; c6457_setup_clocks() 225 c6x_i2c_clk.parent = &sysclks[3]; c6457_setup_clocks() 226 c6x_watchdog_clk.parent = &sysclks[5]; c6457_setup_clocks() 227 c6x_mdio_clk.parent = &sysclks[5]; c6457_setup_clocks() 279 c6x_core_clk.parent = &sysclks[get_coreid() + 1]; c6472_setup_clocks() 280 c6x_i2c_clk.parent = &sysclks[8]; c6472_setup_clocks() 281 c6x_watchdog_clk.parent = &sysclks[8]; c6472_setup_clocks() 282 c6x_mdio_clk.parent = &sysclks[5]; c6472_setup_clocks() 328 c6x_core_clk.parent = &sysclks[7]; c6474_setup_clocks() 329 c6x_i2c_clk.parent = &sysclks[10]; c6474_setup_clocks() 330 c6x_watchdog_clk.parent = &sysclks[10]; c6474_setup_clocks() 331 c6x_mcbsp1_clk.parent = &sysclks[10]; c6474_setup_clocks() 332 c6x_mcbsp2_clk.parent = &sysclks[10]; c6474_setup_clocks() 393 c6x_core_clk.parent = &sysclks[0]; c6678_setup_clocks() 394 c6x_i2c_clk.parent = &sysclks[7]; c6678_setup_clocks()
|
/linux-4.4.14/fs/sysfs/ |
H A D | dir.c | 22 void sysfs_warn_dup(struct kernfs_node *parent, const char *name) sysfs_warn_dup() argument 28 path = kernfs_path(parent, buf, PATH_MAX); sysfs_warn_dup() 43 struct kernfs_node *parent, *kn; sysfs_create_dir_ns() local 47 if (kobj->parent) sysfs_create_dir_ns() 48 parent = kobj->parent->sd; sysfs_create_dir_ns() 50 parent = sysfs_root_kn; sysfs_create_dir_ns() 52 if (!parent) sysfs_create_dir_ns() 55 kn = kernfs_create_dir_ns(parent, kobject_name(kobj), sysfs_create_dir_ns() 59 sysfs_warn_dup(parent, kobject_name(kobj)); sysfs_create_dir_ns() 104 struct kernfs_node *parent; sysfs_rename_dir_ns() local 107 parent = kernfs_get_parent(kobj->sd); sysfs_rename_dir_ns() 108 ret = kernfs_rename_ns(kobj->sd, parent, new_name, new_ns); sysfs_rename_dir_ns() 109 kernfs_put(parent); sysfs_rename_dir_ns() 132 struct kernfs_node *kn, *parent = parent_kobj->sd; sysfs_create_mount_point() local 134 kn = kernfs_create_empty_dir(parent, name); sysfs_create_mount_point() 137 sysfs_warn_dup(parent, name); sysfs_create_mount_point() 153 struct kernfs_node *parent = parent_kobj->sd; sysfs_remove_mount_point() local 155 kernfs_remove_by_name_ns(parent, name, NULL); sysfs_remove_mount_point()
|
H A D | symlink.c | 21 static int sysfs_do_create_link_sd(struct kernfs_node *parent, sysfs_do_create_link_sd() argument 27 BUG_ON(!name || !parent); sysfs_do_create_link_sd() 44 kn = kernfs_create_link(parent, name, target); sysfs_do_create_link_sd() 51 sysfs_warn_dup(parent, name); sysfs_do_create_link_sd() 70 struct kernfs_node *parent = NULL; sysfs_do_create_link() local 73 parent = sysfs_root_kn; sysfs_do_create_link() 75 parent = kobj->sd; sysfs_do_create_link() 77 if (!parent) sysfs_do_create_link() 80 return sysfs_do_create_link_sd(parent, target, name, warn); sysfs_do_create_link() 144 struct kernfs_node *parent = NULL; sysfs_remove_link() local 147 parent = sysfs_root_kn; sysfs_remove_link() 149 parent = kobj->sd; sysfs_remove_link() 151 kernfs_remove_by_name(parent, name); sysfs_remove_link() 168 struct kernfs_node *parent, *kn = NULL; sysfs_rename_link_ns() local 173 parent = sysfs_root_kn; sysfs_rename_link_ns() 175 parent = kobj->sd; sysfs_rename_link_ns() 181 kn = kernfs_find_and_get_ns(parent, old, old_ns); sysfs_rename_link_ns() 191 result = kernfs_rename_ns(kn, parent, new, new_ns); sysfs_rename_link_ns()
|
H A D | sysfs.h | 26 void sysfs_warn_dup(struct kernfs_node *parent, const char *name); 31 int sysfs_add_file(struct kernfs_node *parent, 33 int sysfs_add_file_mode_ns(struct kernfs_node *parent,
|
H A D | group.c | 21 static void remove_files(struct kernfs_node *parent, remove_files() argument 29 kernfs_remove_by_name(parent, (*attr)->name); remove_files() 32 kernfs_remove_by_name(parent, (*bin_attr)->attr.name); remove_files() 35 static int create_files(struct kernfs_node *parent, struct kobject *kobj, create_files() argument 52 kernfs_remove_by_name(parent, (*attr)->name); create_files() 64 error = sysfs_add_file_mode_ns(parent, *attr, false, create_files() 70 remove_files(parent, grp); create_files() 80 kernfs_remove_by_name(parent, create_files() 93 error = sysfs_add_file_mode_ns(parent, create_files() 100 remove_files(parent, grp); create_files() 229 struct kernfs_node *parent = kobj->sd; sysfs_remove_group() local 233 kn = kernfs_find_and_get(parent, grp->name); sysfs_remove_group() 241 kn = parent; sysfs_remove_group() 285 struct kernfs_node *parent; sysfs_merge_group() local 290 parent = kernfs_find_and_get(kobj->sd, grp->name); sysfs_merge_group() 291 if (!parent) sysfs_merge_group() 295 error = sysfs_add_file(parent, *attr, false); sysfs_merge_group() 298 kernfs_remove_by_name(parent, (*--attr)->name); sysfs_merge_group() 300 kernfs_put(parent); sysfs_merge_group() 314 struct kernfs_node *parent; sysfs_unmerge_group() local 317 parent = kernfs_find_and_get(kobj->sd, grp->name); sysfs_unmerge_group() 318 if (parent) { sysfs_unmerge_group() 320 kernfs_remove_by_name(parent, (*attr)->name); sysfs_unmerge_group() 321 kernfs_put(parent); sysfs_unmerge_group() 336 struct kernfs_node *parent; sysfs_add_link_to_group() local 339 parent = kernfs_find_and_get(kobj->sd, group_name); sysfs_add_link_to_group() 340 if (!parent) sysfs_add_link_to_group() 343 error = sysfs_create_link_sd(parent, target, link_name); sysfs_add_link_to_group() 344 kernfs_put(parent); sysfs_add_link_to_group() 359 struct kernfs_node *parent; sysfs_remove_link_from_group() local 361 parent = kernfs_find_and_get(kobj->sd, group_name); sysfs_remove_link_from_group() 362 if (parent) { sysfs_remove_link_from_group() 363 kernfs_remove_by_name(parent, link_name); sysfs_remove_link_from_group() 364 kernfs_put(parent); sysfs_remove_link_from_group()
|
H A D | file.c | 30 struct kobject *kobj = kn->parent->priv; sysfs_file_ops() 45 struct kobject *kobj = of->kn->parent->priv; sysfs_kf_seq_show() 86 struct kobject *kobj = of->kn->parent->priv; sysfs_kf_bin_read() 110 struct kobject *kobj = of->kn->parent->priv; sysfs_kf_read() 128 struct kobject *kobj = of->kn->parent->priv; sysfs_kf_write() 141 struct kobject *kobj = of->kn->parent->priv; sysfs_kf_bin_write() 162 struct kobject *kobj = of->kn->parent->priv; sysfs_kf_bin_mmap() 240 int sysfs_add_file_mode_ns(struct kernfs_node *parent, sysfs_add_file_mode_ns() argument 250 struct kobject *kobj = parent->priv; sysfs_add_file_mode_ns() 299 kn = __kernfs_create_file(parent, attr->name, mode & 0777, size, ops, sysfs_add_file_mode_ns() 303 sysfs_warn_dup(parent, attr->name); sysfs_add_file_mode_ns() 309 int sysfs_add_file(struct kernfs_node *parent, const struct attribute *attr, sysfs_add_file() argument 312 return sysfs_add_file_mode_ns(parent, attr, is_bin, attr->mode, NULL); sysfs_add_file() 354 struct kernfs_node *parent; sysfs_add_file_to_group() local 358 parent = kernfs_find_and_get(kobj->sd, group); sysfs_add_file_to_group() 360 parent = kobj->sd; sysfs_add_file_to_group() 361 kernfs_get(parent); sysfs_add_file_to_group() 364 if (!parent) sysfs_add_file_to_group() 367 error = sysfs_add_file(parent, attr, false); sysfs_add_file_to_group() 368 kernfs_put(parent); sysfs_add_file_to_group() 413 struct kernfs_node *parent = kobj->sd; sysfs_remove_file_ns() local 415 kernfs_remove_by_name_ns(parent, attr->name, ns); sysfs_remove_file_ns() 428 struct kernfs_node *parent = kobj->sd; sysfs_remove_file_self() local 432 kn = kernfs_find_and_get(parent, attr->name); sysfs_remove_file_self() 459 struct kernfs_node *parent; sysfs_remove_file_from_group() local 462 parent = kernfs_find_and_get(kobj->sd, group); sysfs_remove_file_from_group() 464 parent = kobj->sd; sysfs_remove_file_from_group() 465 kernfs_get(parent); sysfs_remove_file_from_group() 468 if (parent) { sysfs_remove_file_from_group() 469 kernfs_remove_by_name(parent, attr->name); sysfs_remove_file_from_group() 470 kernfs_put(parent); sysfs_remove_file_from_group()
|
/linux-4.4.14/fs/exportfs/ |
H A D | expfs.c | 76 struct dentry *parent = dget_parent(dentry); dentry_connected() local 80 dput(parent); dentry_connected() 83 dentry = parent; dentry_connected() 93 struct dentry *parent = dget_parent(dentry); clear_disconnected() local 102 dentry = parent; clear_disconnected() 108 * Reconnect a directory dentry with its parent. 112 * In the first case the returned dentry is the parent of the given 113 * dentry, and may itself need to be reconnected to its parent. 122 struct dentry *parent; reconnect_one() local 126 parent = ERR_PTR(-EACCES); reconnect_one() 129 parent = mnt->mnt_sb->s_export_op->get_parent(dentry); reconnect_one() 132 if (IS_ERR(parent)) { reconnect_one() 134 __func__, dentry->d_inode->i_ino, PTR_ERR(parent)); reconnect_one() 135 return parent; reconnect_one() 139 dentry->d_inode->i_ino, parent->d_inode->i_ino); reconnect_one() 140 err = exportfs_get_name(mnt, parent, nbuf, dentry); reconnect_one() 146 mutex_lock(&parent->d_inode->i_mutex); reconnect_one() 147 tmp = lookup_one_len(nbuf, parent, strlen(nbuf)); reconnect_one() 148 mutex_unlock(&parent->d_inode->i_mutex); reconnect_one() 162 return parent; reconnect_one() 165 dput(parent); reconnect_one() 168 dput(parent); reconnect_one() 170 * Someone must have renamed our entry into another parent, in reconnect_one() 178 * filesystem is just corrupt and gave us a parent that doesn't reconnect_one() 207 struct dentry *dentry, *parent; reconnect_path() local 215 parent = reconnect_one(mnt, dentry, nbuf); reconnect_path() 217 parent = dget_parent(dentry); reconnect_path() 219 if (!parent) reconnect_path() 222 if (IS_ERR(parent)) reconnect_path() 223 return PTR_ERR(parent); reconnect_path() 224 dentry = parent; reconnect_path() 267 * calls readdir on the parent until it finds an entry with 343 * @parent: parent directory inode, if wanted 351 int *max_len, struct inode *parent) export_encode_fh() 356 if (parent && (len < 4)) { export_encode_fh() 367 if (parent) { export_encode_fh() 368 fid->i32.parent_ino = parent->i_ino; export_encode_fh() 369 fid->i32.parent_gen = parent->i_generation; export_encode_fh() 378 int *max_len, struct inode *parent) exportfs_encode_inode_fh() 383 return nop->encode_fh(inode, fid->raw, max_len, parent); exportfs_encode_inode_fh() 385 return export_encode_fh(inode, fid, max_len, parent); exportfs_encode_inode_fh() 394 struct inode *inode = dentry->d_inode, *parent = NULL; exportfs_encode_fh() local 399 * note that while p might've ceased to be our parent already, exportfs_encode_fh() 402 parent = p->d_inode; exportfs_encode_fh() 405 error = exportfs_encode_inode_fh(inode, fid, max_len, parent); exportfs_encode_fh() 465 * the parent directory in the file handle and make sure exportfs_decode_fh() 473 * Try to extract a dentry for the parent directory from the exportfs_decode_fh() 489 * And as usual we need to make sure the parent directory is exportfs_decode_fh() 500 * Now that we've got both a well-connected parent and a exportfs_decode_fh() 502 * inode is actually connected to the parent. exportfs_decode_fh() 520 * At this point we are done with the parent, but it's pinned exportfs_decode_fh() 350 export_encode_fh(struct inode *inode, struct fid *fid, int *max_len, struct inode *parent) export_encode_fh() argument 377 exportfs_encode_inode_fh(struct inode *inode, struct fid *fid, int *max_len, struct inode *parent) exportfs_encode_inode_fh() argument
|
/linux-4.4.14/arch/blackfin/mach-bf609/ |
H A D | clock.c | 148 clk->parent->rate = clk_get_rate(clk->parent); pll_get_rate() 149 return clk->parent->rate / (df + 1) * msel * 2; pll_get_rate() 155 div = rate / clk->parent->rate; pll_round_rate() 156 return clk->parent->rate * div; pll_round_rate() 169 msel = rate / clk->parent->rate / 2; pll_set_rate() 178 if (clk->parent) cclk_get_rate() 179 return clk->parent->rate; cclk_get_rate() 195 if (!strcmp(clk->parent->name, "SYS_CLKIN")) { sys_clk_get_rate() 196 drate = clk->parent->rate / (df + 1); sys_clk_get_rate() 201 clk->parent->rate = clk_get_rate(clk->parent); sys_clk_get_rate() 202 return clk->parent->rate / div; sys_clk_get_rate() 208 clk->parent->rate = clk_get_rate(clk->parent); dummy_get_rate() 209 return clk->parent->rate; dummy_get_rate() 223 max_rate = clk->parent->rate / (df + 1) * msel; sys_clk_round_rate() 288 .parent = &sys_clkin, 298 .parent = &sys_clkin, 305 .parent = &cclk, 311 .parent = &cclk, 320 .parent = &sys_clkin, 330 .parent = &sysclk, 339 .parent = &sysclk, 348 .parent = &sys_clkin, 357 .parent = &pll_clk, 362 .parent = &sclk0, 368 .parent = &sclk0, 374 .parent = &sclk1,
|
/linux-4.4.14/drivers/clk/imx/ |
H A D | clk.h | 24 const char *parent, void __iomem *base); 26 struct clk *imx_clk_pllv2(const char *name, const char *parent, 51 struct clk *imx_clk_gate_exclusive(const char *name, const char *parent, 54 static inline struct clk *imx_clk_gate2(const char *name, const char *parent, imx_clk_gate2() argument 57 return clk_register_gate2(NULL, name, parent, CLK_SET_RATE_PARENT, reg, imx_clk_gate2() 62 const char *parent, void __iomem *reg, u8 shift, imx_clk_gate2_shared() 65 return clk_register_gate2(NULL, name, parent, CLK_SET_RATE_PARENT, reg, imx_clk_gate2_shared() 80 struct clk *imx_clk_fixup_divider(const char *name, const char *parent, 93 static inline struct clk *imx_clk_divider(const char *name, const char *parent, imx_clk_divider() argument 96 return clk_register_divider(NULL, name, parent, CLK_SET_RATE_PARENT, imx_clk_divider() 101 const char *parent, void __iomem *reg, u8 shift, u8 width, imx_clk_divider_flags() 104 return clk_register_divider(NULL, name, parent, flags, imx_clk_divider_flags() 108 static inline struct clk *imx_clk_gate(const char *name, const char *parent, imx_clk_gate() argument 111 return clk_register_gate(NULL, name, parent, CLK_SET_RATE_PARENT, reg, imx_clk_gate() 115 static inline struct clk *imx_clk_gate_dis(const char *name, const char *parent, imx_clk_gate_dis() argument 118 return clk_register_gate(NULL, name, parent, CLK_SET_RATE_PARENT, reg, imx_clk_gate_dis() 140 const char *parent, unsigned int mult, unsigned int div) imx_clk_fixed_factor() 142 return clk_register_fixed_factor(NULL, name, parent, imx_clk_fixed_factor() 61 imx_clk_gate2_shared(const char *name, const char *parent, void __iomem *reg, u8 shift, unsigned int *share_count) imx_clk_gate2_shared() argument 100 imx_clk_divider_flags(const char *name, const char *parent, void __iomem *reg, u8 shift, u8 width, unsigned long flags) imx_clk_divider_flags() argument 139 imx_clk_fixed_factor(const char *name, const char *parent, unsigned int mult, unsigned int div) imx_clk_fixed_factor() argument
|
H A D | clk-gate-exclusive.c | 19 * @gate: the parent class 61 struct clk *imx_clk_gate_exclusive(const char *name, const char *parent, imx_clk_gate_exclusive() argument 80 init.parent_names = parent ? &parent : NULL; imx_clk_gate_exclusive() 81 init.num_parents = parent ? 1 : 0; imx_clk_gate_exclusive()
|
H A D | clk-fixup-div.c | 23 * @divider: the parent class 24 * @ops: pointer to clk_ops of parent class 95 struct clk *imx_clk_fixup_divider(const char *name, const char *parent, imx_clk_fixup_divider() argument 113 init.parent_names = parent ? &parent : NULL; imx_clk_fixup_divider() 114 init.num_parents = parent ? 1 : 0; imx_clk_fixup_divider()
|
/linux-4.4.14/drivers/mfd/ |
H A D | mfd-core.c | 86 struct acpi_device *parent, *child; mfd_acpi_add_device() local 89 parent = ACPI_COMPANION(pdev->dev.parent); mfd_acpi_add_device() 90 if (!parent) mfd_acpi_add_device() 95 * directly under the parent that matches the either _HID or _CID, or mfd_acpi_add_device() 96 * _ADR or it will use the parent handle if is no ID is given. mfd_acpi_add_device() 102 adev = parent; mfd_acpi_add_device() 108 list_for_each_entry(child, &parent->children, node) { mfd_acpi_add_device() 118 list_for_each_entry(child, &parent->children, node) { mfd_acpi_add_device() 139 static int mfd_add_device(struct device *parent, int id, mfd_add_device() argument 164 pdev->dev.parent = parent; mfd_add_device() 166 pdev->dev.dma_mask = parent->dma_mask; mfd_add_device() 167 pdev->dev.dma_parms = parent->dma_parms; mfd_add_device() 168 pdev->dev.coherent_dma_mask = parent->coherent_dma_mask; mfd_add_device() 172 parent, cell->parent_supplies, mfd_add_device() 177 if (parent->of_node && cell->of_compatible) { mfd_add_device() 178 for_each_child_of_node(parent->of_node, np) { mfd_add_device() 205 res[r].parent = mem_base; mfd_add_device() 224 res[r].parent = cell->resources[r].parent; mfd_add_device() 265 int mfd_add_devices(struct device *parent, int id, mfd_add_devices() argument 281 ret = mfd_add_device(parent, id, cells + i, cnts + i, mem_base, mfd_add_devices() 291 mfd_remove_devices(parent); mfd_add_devices() 321 void mfd_remove_devices(struct device *parent) mfd_remove_devices() argument 325 device_for_each_child_reverse(parent, &cnts, mfd_remove_devices_fn); mfd_remove_devices() 337 /* fetch the parent cell's device (should already be registered!) */ mfd_clone_cell() 351 if (mfd_add_device(pdev->dev.parent, -1, &cell_entry, mfd_clone_cell()
|
H A D | abx500-core.c | 69 lookup_ops(dev->parent, &ops); abx500_set_register_interruptible() 82 lookup_ops(dev->parent, &ops); abx500_get_register_interruptible() 95 lookup_ops(dev->parent, &ops); abx500_get_register_page_interruptible() 109 lookup_ops(dev->parent, &ops); abx500_mask_and_set_register_interruptible() 122 lookup_ops(dev->parent, &ops); abx500_get_chip_id() 134 lookup_ops(dev->parent, &ops); abx500_event_registers_startup_state_get() 146 lookup_ops(dev->parent, &ops); abx500_startup_irq_enabled()
|
/linux-4.4.14/drivers/uwb/ |
H A D | umc-dev.c | 22 * @parent: parent of the new UMC device. 25 * The new UMC device will have a bus ID of the parent with '-n' 28 struct umc_dev *umc_device_create(struct device *parent, int n) umc_device_create() argument 34 dev_set_name(&umc->dev, "%s-%d", dev_name(parent), n); umc_device_create() 35 umc->dev.parent = parent; umc_device_create() 39 umc->dev.dma_mask = parent->dma_mask; umc_device_create() 56 err = request_resource(umc->resource.parent, &umc->resource); umc_device_register()
|
H A D | umc-bus.c | 63 struct device *parent = umc->dev.parent; umc_controller_reset() local 66 if (!device_trylock(parent)) umc_controller_reset() 68 ret = device_for_each_child(parent, parent, umc_bus_pre_reset_helper); umc_controller_reset() 70 ret = device_for_each_child(parent, parent, umc_bus_post_reset_helper); umc_controller_reset() 71 device_unlock(parent); umc_controller_reset() 78 * umc_match_pci_id - match a UMC driver to a UMC device's parent PCI device. 81 * @umc: umc device whose parent is to be matched. 88 if (!dev_is_pci(umc->dev.parent)) umc_match_pci_id() 91 pci = to_pci_dev(umc->dev.parent); umc_match_pci_id() 106 static void umc_bus_rescan(struct device *parent) umc_bus_rescan() argument 112 * it tries to retake the dev->parent semaphore. umc_bus_rescan() 114 err = device_for_each_child(parent, NULL, umc_bus_rescan_helper); umc_bus_rescan() 148 umc_bus_rescan(dev->parent); umc_device_probe()
|
/linux-4.4.14/drivers/irqchip/ |
H A D | irq-gic-v3-its-platform-msi.c | 34 msi_info = msi_get_domain_info(domain->parent); its_pmsi_prepare() 36 /* Suck the DeviceID out of the msi-parent property */ its_pmsi_prepare() 41 "msi-parent", "#msi-cells", its_pmsi_prepare() 57 return msi_info->ops->msi_prepare(domain->parent, its_pmsi_prepare() 79 struct irq_domain *parent; its_pmsi_init() local 86 parent = irq_find_matching_host(np, DOMAIN_BUS_NEXUS); its_pmsi_init() 87 if (!parent || !msi_get_domain_info(parent)) { its_pmsi_init() 95 parent)) { its_pmsi_init()
|
H A D | irq-gic-v3-its-pci-msi.c | 78 msi_info = msi_get_domain_info(domain->parent); its_pci_msi_prepare() 89 return msi_info->ops->msi_prepare(domain->parent, its_pci_msi_prepare() 112 struct irq_domain *parent; its_pci_msi_init() local 119 parent = irq_find_matching_host(np, DOMAIN_BUS_NEXUS); its_pci_msi_init() 120 if (!parent || !msi_get_domain_info(parent)) { its_pci_msi_init() 128 parent)) { its_pci_msi_init()
|
/linux-4.4.14/fs/gfs2/ |
H A D | dentry.c | 31 * parent is still good. 38 struct dentry *parent; gfs2_drevalidate() local 50 parent = dget_parent(dentry); gfs2_drevalidate() 51 sdp = GFS2_SB(d_inode(parent)); gfs2_drevalidate() 52 dip = GFS2_I(d_inode(parent)); gfs2_drevalidate() 71 error = gfs2_dir_check(d_inode(parent), &dentry->d_name, ip); gfs2_drevalidate() 89 dput(parent); gfs2_drevalidate() 96 dput(parent); gfs2_drevalidate() 102 dput(parent); gfs2_drevalidate()
|
H A D | export.c | 32 struct inode *parent) gfs2_encode_fh() 38 if (parent && (*len < GFS2_LARGE_FH_SIZE)) { gfs2_encode_fh() 52 if (!parent || inode == d_inode(sb->s_root)) gfs2_encode_fh() 55 ip = GFS2_I(parent); gfs2_encode_fh() 88 static int gfs2_get_name(struct dentry *parent, char *name, gfs2_get_name() argument 91 struct inode *dir = d_inode(parent); gfs2_get_name() 183 struct gfs2_inum_host parent; gfs2_fh_to_parent() local 191 parent.no_formal_ino = ((u64)be32_to_cpu(fh[4])) << 32; gfs2_fh_to_parent() 192 parent.no_formal_ino |= be32_to_cpu(fh[5]); gfs2_fh_to_parent() 193 parent.no_addr = ((u64)be32_to_cpu(fh[6])) << 32; gfs2_fh_to_parent() 194 parent.no_addr |= be32_to_cpu(fh[7]); gfs2_fh_to_parent() 195 return gfs2_get_dentry(sb, &parent); gfs2_fh_to_parent() 31 gfs2_encode_fh(struct inode *inode, __u32 *p, int *len, struct inode *parent) gfs2_encode_fh() argument
|
/linux-4.4.14/tools/perf/util/ |
H A D | rblist.c | 17 struct rb_node *parent = NULL, *new_node; rblist__add_node() local 22 parent = *p; rblist__add_node() 24 rc = rblist->node_cmp(parent, new_entry); rblist__add_node() 37 rb_link_node(new_node, parent, p); rblist__add_node() 56 struct rb_node *parent = NULL, *new_node = NULL; __rblist__findnew() local 61 parent = *p; __rblist__findnew() 63 rc = rblist->node_cmp(parent, entry); __rblist__findnew() 69 return parent; __rblist__findnew() 75 rb_link_node(new_node, parent, p); __rblist__findnew()
|
H A D | thread.c | 186 struct thread *parent) thread__clone_map_groups() 191 if (thread->pid_ == parent->pid_) thread__clone_map_groups() 194 if (thread->mg == parent->mg) { thread__clone_map_groups() 195 pr_debug("broken map groups on thread %d/%d parent %d/%d\n", thread__clone_map_groups() 196 thread->pid_, thread->tid, parent->pid_, parent->tid); thread__clone_map_groups() 202 if (map_groups__clone(thread->mg, parent->mg, i) < 0) thread__clone_map_groups() 208 int thread__fork(struct thread *thread, struct thread *parent, u64 timestamp) thread__fork() argument 212 if (parent->comm_set) { thread__fork() 213 const char *comm = thread__comm_str(parent); thread__fork() 221 thread->ppid = parent->tid; thread__fork() 222 return thread__clone_map_groups(thread, parent); thread__fork() 185 thread__clone_map_groups(struct thread *thread, struct thread *parent) thread__clone_map_groups() argument
|
H A D | callchain.c | 208 struct rb_node *parent = NULL; rb_insert_callchain() local 215 parent = *p; rb_insert_callchain() 216 rnode = rb_entry(parent, struct callchain_node, rb_node); rb_insert_callchain() 239 rb_link_node(&chain->rb_node, parent, p); rb_insert_callchain() 351 * Create a child for a parent. If inherit_children, then the new child 352 * will become the new parent of it's parent children 355 create_child(struct callchain_node *parent, bool inherit_children) create_child() argument 364 new->parent = parent; create_child() 371 new->rb_root_in = parent->rb_root_in; create_child() 372 parent->rb_root_in = RB_ROOT; create_child() 377 child->parent = new; create_child() 382 rb_link_node(&new->rb_node_in, NULL, &parent->rb_root_in.rb_node); create_child() 383 rb_insert_color(&new->rb_node_in, &parent->rb_root_in); create_child() 423 add_child(struct callchain_node *parent, add_child() argument 429 new = create_child(parent, false); add_child() 450 * Split the parent in two parts (a new child is created) and 455 split_add_child(struct callchain_node *parent, split_add_child() argument 465 new = create_child(parent, true); split_add_child() 468 old_tail = parent->val.prev; split_add_child() 476 new->hit = parent->hit; split_add_child() 477 new->children_hit = parent->children_hit; split_add_child() 478 parent->children_hit = callchain_cumul_hits(new); split_add_child() 479 new->val_nr = parent->val_nr - idx_local; split_add_child() 480 parent->val_nr = idx_local; split_add_child() 489 parent->hit = 0; split_add_child() 490 parent->children_hit += period; split_add_child() 493 new = add_child(parent, cursor, period); split_add_child() 496 * This is second child since we moved parent's children split_add_child() 499 p = parent->rb_root_in.rb_node; split_add_child() 510 rb_insert_color(&new->rb_node_in, &parent->rb_root_in); split_add_child() 512 parent->hit = period; split_add_child() 529 struct rb_node *parent = NULL; append_chain_children() local 539 parent = *p; append_chain_children() 540 rnode = rb_entry(parent, struct callchain_node, rb_node_in); append_chain_children() 548 p = &parent->rb_left; append_chain_children() 550 p = &parent->rb_right; append_chain_children() 554 rb_link_node(&rnode->rb_node_in, parent, p); append_chain_children() 594 /* matches not, relay no the parent */ append_chain() 709 int sample__resolve_callchain(struct perf_sample *sample, struct symbol **parent, sample__resolve_callchain() argument 719 parent, al, max_stack); sample__resolve_callchain()
|
H A D | comm.c | 54 struct rb_node *parent = NULL; comm_str__findnew() local 59 parent = *p; comm_str__findnew() 60 iter = rb_entry(parent, struct comm_str, rb_node); comm_str__findnew() 76 rb_link_node(&new->rb_node, parent, p); comm_str__findnew()
|
/linux-4.4.14/drivers/pci/hotplug/ |
H A D | pciehp_pci.c | 41 struct pci_bus *parent = bridge->subordinate; pciehp_configure_device() local 47 dev = pci_get_slot(parent, PCI_DEVFN(0, 0)); pciehp_configure_device() 50 pci_name(dev), pci_domain_nr(parent), parent->number); pciehp_configure_device() 56 num = pci_scan_slot(parent, PCI_DEVFN(0, 0)); pciehp_configure_device() 63 list_for_each_entry(dev, &parent->devices, bus_list) pciehp_configure_device() 68 pcie_bus_configure_settings(parent); pciehp_configure_device() 69 pci_bus_add_devices(parent); pciehp_configure_device() 82 struct pci_bus *parent = p_slot->ctrl->pcie->port->subordinate; pciehp_unconfigure_device() local 87 __func__, pci_domain_nr(parent), parent->number); pciehp_unconfigure_device() 98 list_for_each_entry_safe_reverse(dev, temp, &parent->devices, pciehp_unconfigure_device()
|
H A D | shpchp_pci.c | 42 struct pci_bus *parent = bridge->subordinate; shpchp_configure_device() local 47 dev = pci_get_slot(parent, PCI_DEVFN(p_slot->device, 0)); shpchp_configure_device() 50 pci_name(dev), pci_domain_nr(parent), shpchp_configure_device() 57 num = pci_scan_slot(parent, PCI_DEVFN(p_slot->device, 0)); shpchp_configure_device() 64 list_for_each_entry(dev, &parent->devices, bus_list) { shpchp_configure_device() 72 pcie_bus_configure_settings(parent); shpchp_configure_device() 73 pci_bus_add_devices(parent); shpchp_configure_device() 84 struct pci_bus *parent = p_slot->ctrl->pci_dev->subordinate; shpchp_unconfigure_device() local 89 __func__, pci_domain_nr(parent), p_slot->bus, p_slot->device); shpchp_unconfigure_device() 93 list_for_each_entry_safe(dev, temp, &parent->devices, bus_list) { shpchp_unconfigure_device()
|
/linux-4.4.14/drivers/phy/ |
H A D | ulpi_phy.h | 5 * and it's controller, which is always the parent. 17 ret = phy_create_lookup(phy, "usb2-phy", dev_name(ulpi->dev.parent)); ulpi_phy_create() 29 phy_remove_lookup(phy, "usb2-phy", dev_name(ulpi->dev.parent)); ulpi_phy_destroy()
|
/linux-4.4.14/net/netfilter/ |
H A D | nft_rbtree.c | 38 const struct rb_node *parent; nft_rbtree_lookup() local 43 parent = priv->root.rb_node; nft_rbtree_lookup() 44 while (parent != NULL) { nft_rbtree_lookup() 45 rbe = rb_entry(parent, struct nft_rbtree_elem, node); nft_rbtree_lookup() 49 parent = parent->rb_left; nft_rbtree_lookup() 52 parent = parent->rb_right; nft_rbtree_lookup() 56 parent = parent->rb_left; nft_rbtree_lookup() 84 struct rb_node *parent, **p; __nft_rbtree_insert() local 88 parent = NULL; __nft_rbtree_insert() 91 parent = *p; __nft_rbtree_insert() 92 rbe = rb_entry(parent, struct nft_rbtree_elem, node); __nft_rbtree_insert() 97 p = &parent->rb_left; __nft_rbtree_insert() 99 p = &parent->rb_right; __nft_rbtree_insert() 103 p = &parent->rb_left; __nft_rbtree_insert() 106 rb_link_node(&new->node, parent, p); __nft_rbtree_insert() 147 const struct rb_node *parent = priv->root.rb_node; nft_rbtree_deactivate() local 152 while (parent != NULL) { nft_rbtree_deactivate() 153 rbe = rb_entry(parent, struct nft_rbtree_elem, node); nft_rbtree_deactivate() 158 parent = parent->rb_left; nft_rbtree_deactivate() 160 parent = parent->rb_right; nft_rbtree_deactivate() 163 parent = parent->rb_left; nft_rbtree_deactivate()
|
/linux-4.4.14/fs/debugfs/ |
H A D | inode.c | 245 static struct dentry *start_creating(const char *name, struct dentry *parent) start_creating() argument 252 if (IS_ERR(parent)) start_creating() 253 return parent; start_creating() 260 /* If the parent is not specified, we create it in the root. start_creating() 265 if (!parent) start_creating() 266 parent = debugfs_mount->mnt_root; start_creating() 268 mutex_lock(&d_inode(parent)->i_mutex); start_creating() 269 dentry = lookup_one_len(name, parent, strlen(name)); start_creating() 276 mutex_unlock(&d_inode(parent)->i_mutex); start_creating() 301 * @parent: a pointer to the parent dentry for this file. This should be a 324 struct dentry *parent, void *data, debugfs_create_file() 333 dentry = start_creating(name, parent); debugfs_create_file() 355 * @parent: a pointer to the parent dentry for this file. This should be a 379 struct dentry *parent, void *data, debugfs_create_file_size() 383 struct dentry *de = debugfs_create_file(name, mode, parent, data, fops); debugfs_create_file_size() 395 * @parent: a pointer to the parent dentry for this file. This should be a 409 struct dentry *debugfs_create_dir(const char *name, struct dentry *parent) debugfs_create_dir() argument 411 struct dentry *dentry = start_creating(name, parent); debugfs_create_dir() 437 * @parent: a pointer to the parent dentry for this file. This should be a 446 struct dentry *parent, debugfs_create_automount() 450 struct dentry *dentry = start_creating(name, parent); debugfs_create_automount() 473 * @parent: a pointer to the parent dentry for this symbolic link. This 492 struct dentry *debugfs_create_symlink(const char *name, struct dentry *parent, debugfs_create_symlink() argument 501 dentry = start_creating(name, parent); debugfs_create_symlink() 520 static int __debugfs_remove(struct dentry *dentry, struct dentry *parent) __debugfs_remove() argument 527 ret = simple_rmdir(d_inode(parent), dentry); __debugfs_remove() 529 simple_unlink(d_inode(parent), dentry); __debugfs_remove() 553 struct dentry *parent; debugfs_remove() local 559 parent = dentry->d_parent; debugfs_remove() 560 if (!parent || d_really_is_negative(parent)) debugfs_remove() 563 mutex_lock(&d_inode(parent)->i_mutex); debugfs_remove() 564 ret = __debugfs_remove(dentry, parent); debugfs_remove() 565 mutex_unlock(&d_inode(parent)->i_mutex); debugfs_remove() 586 struct dentry *child, *parent; debugfs_remove_recursive() local 591 parent = dentry->d_parent; debugfs_remove_recursive() 592 if (!parent || d_really_is_negative(parent)) debugfs_remove_recursive() 595 parent = dentry; debugfs_remove_recursive() 597 mutex_lock(&d_inode(parent)->i_mutex); debugfs_remove_recursive() 600 * The parent->d_subdirs is protected by the d_lock. Outside that debugfs_remove_recursive() 604 spin_lock(&parent->d_lock); debugfs_remove_recursive() 605 list_for_each_entry(child, &parent->d_subdirs, d_child) { debugfs_remove_recursive() 611 spin_unlock(&parent->d_lock); debugfs_remove_recursive() 612 mutex_unlock(&d_inode(parent)->i_mutex); debugfs_remove_recursive() 613 parent = child; debugfs_remove_recursive() 617 spin_unlock(&parent->d_lock); debugfs_remove_recursive() 619 if (!__debugfs_remove(child, parent)) debugfs_remove_recursive() 623 * The parent->d_lock protects agaist child from unlinking debugfs_remove_recursive() 624 * from d_subdirs. When releasing the parent->d_lock we can debugfs_remove_recursive() 631 spin_unlock(&parent->d_lock); debugfs_remove_recursive() 633 mutex_unlock(&d_inode(parent)->i_mutex); debugfs_remove_recursive() 634 child = parent; debugfs_remove_recursive() 635 parent = parent->d_parent; debugfs_remove_recursive() 636 mutex_lock(&d_inode(parent)->i_mutex); debugfs_remove_recursive() 642 if (!__debugfs_remove(child, parent)) debugfs_remove_recursive() 644 mutex_unlock(&d_inode(parent)->i_mutex); debugfs_remove_recursive() 650 * @old_dir: a pointer to the parent dentry for the renamed object. This 653 * @new_dir: a pointer to the parent dentry where the object should be 323 debugfs_create_file(const char *name, umode_t mode, struct dentry *parent, void *data, const struct file_operations *fops) debugfs_create_file() argument 378 debugfs_create_file_size(const char *name, umode_t mode, struct dentry *parent, void *data, const struct file_operations *fops, loff_t file_size) debugfs_create_file_size() argument 445 debugfs_create_automount(const char *name, struct dentry *parent, struct vfsmount *(*f)(void *), void *data) debugfs_create_automount() argument
|
H A D | file.c | 46 struct dentry *parent, void *value, debugfs_create_mode() 53 return debugfs_create_file(name, mode, parent, value, fops_ro); debugfs_create_mode() 56 return debugfs_create_file(name, mode, parent, value, fops_wo); debugfs_create_mode() 58 return debugfs_create_file(name, mode, parent, value, fops); debugfs_create_mode() 79 * @parent: a pointer to the parent dentry for this file. This should be a 100 struct dentry *parent, u8 *value) debugfs_create_u8() 102 return debugfs_create_mode(name, mode, parent, value, &fops_u8, debugfs_create_u8() 125 * @parent: a pointer to the parent dentry for this file. This should be a 146 struct dentry *parent, u16 *value) debugfs_create_u16() 148 return debugfs_create_mode(name, mode, parent, value, &fops_u16, debugfs_create_u16() 171 * @parent: a pointer to the parent dentry for this file. This should be a 192 struct dentry *parent, u32 *value) debugfs_create_u32() 194 return debugfs_create_mode(name, mode, parent, value, &fops_u32, debugfs_create_u32() 218 * @parent: a pointer to the parent dentry for this file. This should be a 239 struct dentry *parent, u64 *value) debugfs_create_u64() 241 return debugfs_create_mode(name, mode, parent, value, &fops_u64, debugfs_create_u64() 266 * @parent: a pointer to the parent dentry for this file. This should be a 287 struct dentry *parent, unsigned long *value) debugfs_create_ulong() 289 return debugfs_create_mode(name, mode, parent, value, &fops_ulong, debugfs_create_ulong() 322 * @parent: a pointer to the parent dentry for this file. This should be a 329 struct dentry *parent, u8 *value) debugfs_create_x8() 331 return debugfs_create_mode(name, mode, parent, value, &fops_x8, debugfs_create_x8() 340 * @parent: a pointer to the parent dentry for this file. This should be a 347 struct dentry *parent, u16 *value) debugfs_create_x16() 349 return debugfs_create_mode(name, mode, parent, value, &fops_x16, debugfs_create_x16() 358 * @parent: a pointer to the parent dentry for this file. This should be a 365 struct dentry *parent, u32 *value) debugfs_create_x32() 367 return debugfs_create_mode(name, mode, parent, value, &fops_x32, debugfs_create_x32() 376 * @parent: a pointer to the parent dentry for this file. This should be a 383 struct dentry *parent, u64 *value) debugfs_create_x64() 385 return debugfs_create_mode(name, mode, parent, value, &fops_x64, debugfs_create_x64() 410 * @parent: a pointer to the parent dentry for this file. This should be a 417 struct dentry *parent, size_t *value) debugfs_create_size_t() 419 return debugfs_create_mode(name, mode, parent, value, &fops_size_t, debugfs_create_size_t() 444 * @parent: a pointer to the parent dentry for this file. This should be a 451 struct dentry *parent, atomic_t *value) debugfs_create_atomic_t() 453 return debugfs_create_mode(name, mode, parent, value, &fops_atomic_t, debugfs_create_atomic_t() 517 * @parent: a pointer to the parent dentry for this file. This should be a 538 struct dentry *parent, bool *value) debugfs_create_bool() 540 return debugfs_create_mode(name, mode, parent, value, &fops_bool, debugfs_create_bool() 563 * @parent: a pointer to the parent dentry for this file. This should be a 584 struct dentry *parent, debugfs_create_blob() 587 return debugfs_create_file(name, mode, parent, blob, &fops_blob); debugfs_create_blob() 666 * @parent: a pointer to the parent dentry for this file. This should be a 681 struct dentry *parent, debugfs_create_u32_array() 692 return debugfs_create_file(name, mode, parent, data, &u32_array_fops); debugfs_create_u32_array() 759 * @parent: a pointer to the parent dentry for this file. This should be a 781 struct dentry *parent, debugfs_create_regset32() 784 return debugfs_create_file(name, mode, parent, regset, &fops_regset32); debugfs_create_regset32() 815 * @parent: a pointer to the parent dentry for this file. This should be a 821 struct dentry *parent, debugfs_create_devm_seqfile() 827 if (IS_ERR(parent)) debugfs_create_devm_seqfile() 837 return debugfs_create_file(name, S_IRUGO, parent, entry, debugfs_create_devm_seqfile() 45 debugfs_create_mode(const char *name, umode_t mode, struct dentry *parent, void *value, const struct file_operations *fops, const struct file_operations *fops_ro, const struct file_operations *fops_wo) debugfs_create_mode() argument 99 debugfs_create_u8(const char *name, umode_t mode, struct dentry *parent, u8 *value) debugfs_create_u8() argument 145 debugfs_create_u16(const char *name, umode_t mode, struct dentry *parent, u16 *value) debugfs_create_u16() argument 191 debugfs_create_u32(const char *name, umode_t mode, struct dentry *parent, u32 *value) debugfs_create_u32() argument 238 debugfs_create_u64(const char *name, umode_t mode, struct dentry *parent, u64 *value) debugfs_create_u64() argument 286 debugfs_create_ulong(const char *name, umode_t mode, struct dentry *parent, unsigned long *value) debugfs_create_ulong() argument 328 debugfs_create_x8(const char *name, umode_t mode, struct dentry *parent, u8 *value) debugfs_create_x8() argument 346 debugfs_create_x16(const char *name, umode_t mode, struct dentry *parent, u16 *value) debugfs_create_x16() argument 364 debugfs_create_x32(const char *name, umode_t mode, struct dentry *parent, u32 *value) debugfs_create_x32() argument 382 debugfs_create_x64(const char *name, umode_t mode, struct dentry *parent, u64 *value) debugfs_create_x64() argument 416 debugfs_create_size_t(const char *name, umode_t mode, struct dentry *parent, size_t *value) debugfs_create_size_t() argument 450 debugfs_create_atomic_t(const char *name, umode_t mode, struct dentry *parent, atomic_t *value) debugfs_create_atomic_t() argument 537 debugfs_create_bool(const char *name, umode_t mode, struct dentry *parent, bool *value) debugfs_create_bool() argument 583 debugfs_create_blob(const char *name, umode_t mode, struct dentry *parent, struct debugfs_blob_wrapper *blob) debugfs_create_blob() argument 680 debugfs_create_u32_array(const char *name, umode_t mode, struct dentry *parent, u32 *array, u32 elements) debugfs_create_u32_array() argument 780 debugfs_create_regset32(const char *name, umode_t mode, struct dentry *parent, struct debugfs_regset32 *regset) debugfs_create_regset32() argument 820 debugfs_create_devm_seqfile(struct device *dev, const char *name, struct dentry *parent, int (*read_fn)(struct seq_file *s, void *data)) debugfs_create_devm_seqfile() argument
|
/linux-4.4.14/include/linux/irqchip/ |
H A D | versatile-fpga.h | 11 struct device_node *parent);
|
/linux-4.4.14/drivers/clk/samsung/ |
H A D | clk-cpu.h | 18 * @prate: frequency of the primary parent clock (in KHz). 23 * clock domain. The parent frequency at which these divider values are valid is 24 * specified in @prate. The @prate is the frequency of the primary parent clock. 37 * @alt_parent: alternate parent clock to use when switching the speed 38 * of the primary parent clock. 44 * primary parent clock. 62 /* When ALT parent is active, debug clocks need safe divider values */ 68 const char *parent, const char *alt_parent,
|
H A D | clk-cpu.c | 103 struct clk_hw *parent = clk_hw_get_parent(hw); exynos_cpuclk_round_rate() local 104 *prate = clk_hw_round_rate(parent, drate); exynos_cpuclk_round_rate() 113 * The CPU clock output (armclk) rate is the same as its parent exynos_cpuclk_recalc_rate() 115 * clock block that could be used to divide the parent clock, exynos_cpuclk_recalc_rate() 143 /* handler for pre-rate change notification from parent clock */ exynos_cpuclk_pre_rate_change() 176 * If the old parent clock speed is less than the clock speed of exynos_cpuclk_pre_rate_change() 177 * the alternate parent, then it should be ensured that at no point exynos_cpuclk_pre_rate_change() 180 * values before the parent clock speed is set to new lower speed exynos_cpuclk_pre_rate_change() 191 * In Exynos4210, ATB clock parent is also mout_core. So exynos_cpuclk_pre_rate_change() 201 /* select sclk_mpll as the alternate parent */ exynos_cpuclk_pre_rate_change() 206 /* alternate parent is active now. set the dividers */ exynos_cpuclk_pre_rate_change() 220 /* handler for post-rate change notification from parent clock */ exynos_cpuclk_post_rate_change() 240 /* select mout_apll as the alternate parent */ exynos_cpuclk_post_rate_change() 257 * notifications of the parent clock of cpuclk. 280 unsigned int lookup_id, const char *name, const char *parent, exynos_register_cpu_clock() 296 init.parent_names = &parent; exynos_register_cpu_clock() 308 pr_err("%s: could not lookup alternate parent %s\n", exynos_register_cpu_clock() 314 clk = __clk_lookup(parent); exynos_register_cpu_clock() 316 pr_err("%s: could not lookup parent clock %s\n", exynos_register_cpu_clock() 317 __func__, parent); exynos_register_cpu_clock() 350 clk_notifier_unregister(__clk_lookup(parent), &cpuclk->clk_nb); exynos_register_cpu_clock() 279 exynos_register_cpu_clock(struct samsung_clk_provider *ctx, unsigned int lookup_id, const char *name, const char *parent, const char *alt_parent, unsigned long offset, const struct exynos_cpuclk_cfg_data *cfg, unsigned long num_cfgs, unsigned long flags) exynos_register_cpu_clock() argument
|
/linux-4.4.14/arch/arm/mach-davinci/ |
H A D | clock.c | 36 if (clk->parent) __clk_enable() 37 __clk_enable(clk->parent); __clk_enable() 58 if (clk->parent) __clk_disable() 59 __clk_disable(clk->parent); __clk_disable() 184 int clk_set_parent(struct clk *clk, struct clk *parent) clk_set_parent() argument 193 /* Cannot change parent on enabled clock */ clk_set_parent() 198 clk->parent = parent; clk_set_parent() 200 list_add(&clk->childnode, &clk->parent->children); clk_set_parent() 218 if (WARN(clk->parent && !clk->parent->rate, clk_register() 219 "CLK: %s parent %s has no rate!\n", clk_register() 220 clk->name, clk->parent->name)) clk_register() 227 if (clk->parent) clk_register() 228 list_add_tail(&clk->childnode, &clk->parent->children); clk_register() 239 /* Otherwise, default to parent rate */ clk_register() 240 else if (clk->parent) clk_register() 241 clk->rate = clk->parent->rate; clk_register() 299 if (WARN_ON(!clk->parent)) clk_sysclk_recalc() 302 rate = clk->parent->rate; clk_sysclk_recalc() 304 /* Otherwise, the parent must be a PLL */ clk_sysclk_recalc() 305 if (WARN_ON(!clk->parent->pll_data)) clk_sysclk_recalc() 308 pll = clk->parent->pll_data; clk_sysclk_recalc() 338 /* There must be a parent... */ davinci_set_sysclk_rate() 339 if (WARN_ON(!clk->parent)) davinci_set_sysclk_rate() 342 /* ... the parent must be a PLL... */ davinci_set_sysclk_rate() 343 if (WARN_ON(!clk->parent->pll_data)) davinci_set_sysclk_rate() 350 pll = clk->parent->pll_data; davinci_set_sysclk_rate() 352 input = clk->parent->rate; davinci_set_sysclk_rate() 402 if (WARN_ON(!clk->parent)) clk_leafclk_recalc() 405 return clk->parent->rate; clk_leafclk_recalc() 422 rate = pll->input_rate = clk->parent->rate; clk_pllclk_recalc() 461 pll->num, clk->parent->rate / 1000000); clk_pllclk_recalc() 604 else if (clk->parent) davinci_clk_init() 652 dump_clock(struct seq_file *s, unsigned nest, struct clk *parent) dump_clock() argument 659 if (parent->flags & CLK_PLL) dump_clock() 661 else if (parent->flags & CLK_PSC) dump_clock() 669 i = strlen(parent->name); dump_clock() 670 memcpy(buf + nest, parent->name, dump_clock() 674 buf, parent->usecount, state, clk_get_rate(parent)); dump_clock() 678 list_for_each_entry(clk, &parent->children, childnode) { dump_clock() 692 if (!clk->parent) davinci_ck_show()
|
H A D | dm646x.c | 77 .parent = &ref_clk, 84 .parent = &pll1_clk, 91 .parent = &pll1_clk, 98 .parent = &pll1_clk, 105 .parent = &pll1_clk, 112 .parent = &pll1_clk, 119 .parent = &pll1_clk, 126 .parent = &pll1_clk, 133 .parent = &pll1_clk, 140 .parent = &pll1_clk, 147 .parent = &pll1_clk, 153 .parent = &ref_clk, 160 .parent = &pll2_clk, 167 .parent = &pll1_sysclk1, 174 .parent = &pll1_sysclk2, 181 .parent = &pll1_sysclk2, 188 .parent = &pll1_sysclk2, 195 .parent = &pll1_sysclk2, 202 .parent = &pll1_sysclk2, 209 .parent = &pll1_sysclk2, 216 .parent = &aux_clkin, 222 .parent = &aux_clkin, 228 .parent = &aux_clkin, 234 .parent = &pll1_sysclk3, 240 .parent = &pll1_sysclk3, 246 .parent = &pll1_sysclk3, 252 .parent = &pll1_sysclk3, 258 .parent = &pll1_sysclk3, 265 .parent = &pll1_sysclk3, 271 .parent = &pll1_sysclk3, 278 .parent = &pll1_sysclk3, 285 .parent = &pll1_sysclk3, 291 .parent = &pll1_sysclk3, 297 .parent = &pll1_sysclk3, 304 .parent = &pll1_sysclk4, 310 .parent = &ref_clk, 317 .parent = &ref_clk,
|
H A D | dm644x.c | 62 .parent = &ref_clk, 69 .parent = &pll1_clk, 76 .parent = &pll1_clk, 83 .parent = &pll1_clk, 90 .parent = &pll1_clk, 97 .parent = &pll1_clk, 103 .parent = &pll1_clk, 110 .parent = &ref_clk, 117 .parent = &pll2_clk, 124 .parent = &pll2_clk, 131 .parent = &pll2_clk, 138 .parent = &pll1_sysclk1, 146 .parent = &pll1_sysclk2, 153 .parent = &pll1_sysclk2, 161 .parent = &pll1_sysclk3, 168 .parent = &pll1_sysclk3, 174 .parent = &pll1_aux_clk, 180 .parent = &pll1_aux_clk, 186 .parent = &pll1_aux_clk, 192 .parent = &pll1_sysclk5, 198 .parent = &pll1_aux_clk, 204 .parent = &pll1_sysclk5, 210 .parent = &pll1_sysclk5, 216 .parent = &pll1_sysclk5, 222 .parent = &pll1_sysclk5, 228 .parent = &pll1_sysclk5, 234 .parent = &pll1_sysclk5, 240 .parent = &pll1_sysclk5, 246 .parent = &pll1_sysclk5, 252 .parent = &pll1_aux_clk, 258 .parent = &pll1_aux_clk, 264 .parent = &pll1_aux_clk, 270 .parent = &pll1_aux_clk, 276 .parent = &pll1_aux_clk, 282 .parent = &pll1_aux_clk,
|
H A D | dm355.c | 65 .parent = &ref_clk, 72 .parent = &pll1_clk, 78 .parent = &pll1_clk, 85 .parent = &pll1_clk, 92 .parent = &pll1_clk, 99 .parent = &pll1_clk, 106 .parent = &pll1_clk, 113 .parent = &pll1_sysclk3, 119 .parent = &pll1_sysclk4, 126 .parent = &pll1_sysclk4, 132 .parent = &pll1_aux_clk, 138 .parent = &pll1_sysclkbp, 143 .parent = &ref_clk, 150 .parent = &pll2_clk, 157 .parent = &pll2_clk, 164 .parent = &pll2_sysclkbp, 170 .parent = &pll1_sysclk1, 181 * .lpsc = DAVINCI_LPSC_DDR_EMIF, .parent = &sysclk2_clk, 196 .parent = &pll1_sysclk1, 202 .parent = &pll1_aux_clk, 208 .parent = &pll1_aux_clk, 214 .parent = &pll1_sysclk2, 220 .parent = &pll1_aux_clk, 226 .parent = &pll1_sysclk2, 232 .parent = &pll1_sysclk2, 238 .parent = &pll1_sysclk2, 244 .parent = &pll1_sysclk2, 250 .parent = &pll1_sysclk2, 256 .parent = &pll1_sysclk2, 262 .parent = &pll1_sysclk2, 268 .parent = &pll1_sysclk2, 274 .parent = &pll1_sysclk2, 280 .parent = &pll1_aux_clk, 286 .parent = &pll1_aux_clk, 292 .parent = &pll1_aux_clk, 298 .parent = &pll1_aux_clk, 304 .parent = &pll1_aux_clk, 310 .parent = &pll1_aux_clk, 316 .parent = &pll1_aux_clk, 323 .parent = &pll1_aux_clk, 329 .parent = &pll1_aux_clk, 335 .parent = &pll1_sysclk2,
|
H A D | dm365.c | 75 .parent = &ref_clk, 82 .parent = &pll1_clk, 88 .parent = &pll1_clk, 95 .parent = &pll1_clk, 101 .parent = &pll1_clk, 108 .parent = &pll1_clk, 115 .parent = &pll1_clk, 122 .parent = &pll1_clk, 129 .parent = &pll1_clk, 136 .parent = &pll1_clk, 143 .parent = &pll1_clk, 150 .parent = &pll1_clk, 157 .parent = &pll1_clk, 164 .parent = &ref_clk, 171 .parent = &pll2_clk, 177 .parent = &pll2_clk, 183 .parent = &pll2_clk, 190 .parent = &pll2_clk, 197 .parent = &pll2_clk, 204 .parent = &pll2_clk, 211 .parent = &pll2_clk, 218 .parent = &pll2_clk, 225 .parent = &pll2_clk, 232 .parent = &pll2_clk, 239 .parent = &pll2_clk, 246 .parent = &pll1_sysclk3, 252 .parent = &pll1_sysclk5, 259 .parent = &pll1_sysclk5, 265 .parent = &pll2_sysclk2, 272 .parent = &pll1_aux_clk, 278 .parent = &pll1_sysclk4, 284 .parent = &pll1_aux_clk, 290 .parent = &pll1_sysclk8, 296 .parent = &pll1_sysclk4, 302 .parent = &pll1_sysclk4, 308 .parent = &pll1_sysclk4, 314 .parent = &pll1_sysclk4, 320 .parent = &pll1_sysclk4, 326 .parent = &pll1_aux_clk, 332 .parent = &pll1_sysclk4, 338 .parent = &pll1_sysclk4, 344 .parent = &pll1_aux_clk, 350 .parent = &pll1_aux_clk, 356 .parent = &pll1_aux_clk, 362 .parent = &ref_clk, 368 .parent = &pll1_aux_clk, 374 .parent = &pll1_aux_clk, 380 .parent = &pll1_aux_clk, 387 .parent = &pll1_aux_clk, 393 .parent = &pll1_aux_clk, 399 .parent = &pll1_sysclk4, 405 .parent = &pll2_sysclk4, 411 .parent = &pll1_sysclk4, 417 .parent = &pll1_sysclk4, 423 .parent = &pll1_sysclk3,
|
H A D | da850.c | 68 .parent = &ref_clk, 76 .parent = &pll0_clk, 82 .parent = &pll0_clk, 89 .parent = &pll0_clk, 96 .parent = &pll0_clk, 105 .parent = &pll0_clk, 112 .parent = &pll0_clk, 119 .parent = &pll0_clk, 126 .parent = &pll0_clk, 139 .parent = &ref_clk, 146 .parent = &pll1_clk, 152 .parent = &pll1_clk, 159 .parent = &pll1_clk, 166 .parent = &pll0_aux_clk, 171 .parent = &pll0_aux_clk, 176 .parent = &pll0_aux_clk, 181 .parent = &pll0_sysclk2, 188 .parent = &pll0_sysclk2, 195 .parent = &pll0_sysclk2, 202 .parent = &pll0_sysclk2, 209 .parent = &pll0_sysclk2, 217 .parent = &pll0_sysclk2, 225 .parent = &pll0_sysclk2, 231 .parent = &pll0_sysclk2, 237 .parent = &pll0_sysclk2, 245 .parent = &pll0_sysclk2, 253 .parent = &pll0_sysclk4, 260 .parent = &pll0_sysclk4, 267 .parent = &pll0_sysclk4, 274 .parent = &pll0_sysclk5, 282 .parent = &pll0_sysclk6, 291 .parent = &pll0_sysclk7, 296 .parent = &pll0_sysclk4, 303 .parent = &pll0_sysclk2, 311 .parent = &pll0_sysclk2, 318 .parent = &pll0_sysclk2, 324 .parent = &pll0_sysclk2, 331 .parent = &pll0_sysclk3, 338 .parent = &pll0_sysclk4, 345 .parent = &pll0_sysclk2, 352 .parent = &pll0_sysclk2, 358 .parent = &pll0_sysclk2, 366 .parent = &pll0_sysclk2, 373 .parent = &pll0_sysclk2, 381 .parent = &pll0_sysclk1, 389 .parent = &pll0_sysclk2, 417 .parent = &ehrpwm_clk, 424 .parent = &pll0_sysclk2, 923 WARN(ret, "DA850: unable to re-parent clock %s", da850_set_async3_src()
|
/linux-4.4.14/drivers/clk/ti/ |
H A D | clk-3xxx-legacy.c | 107 .parent = "osc_sys_ck", 157 .parent = "dpll3_ck", 172 .parent = "dpll3_m2_ck", 184 .parent = "core_ck", 198 .parent = "l3_ick", 210 .parent = "sys_ck", 222 .parent = "wkup_l4_ick", 237 .parent = "sys_ck", 251 .parent = "l3_ick", 266 .parent = "l4_ick", 278 .parent = "core_l4_ick", 329 .parent = "dpll4_ck", 343 .parent = "dpll4_m2_ck", 355 .parent = "dpll4_m2x2_mul_ck", 369 .parent = "dpll4_m2x2_ck", 381 .parent = "omap_96m_alwon_fck", 412 .parent = "omap_96m_fck", 424 .parent = "core_96m_fck", 439 .parent = "l4_ick", 454 .parent = "core_l4_ick", 469 .parent = "l4_ick", 481 .parent = "security_l4_ick2", 530 .parent = "dpll5_ck", 544 .parent = "dpll5_m2_ck", 558 .parent = "cm_96m_fck", 599 .parent = "omap_48m_fck", 621 .parent = "mcbsp_clks", 628 .parent = "omap_96m_alwon_fck", 664 .parent = "dpll3_m2_ck", 676 .parent = "dpll3_m2x2_ck", 688 .parent = "corex2_fck", 709 .parent = "corex2_fck", 728 .parent = "ssi_ssr_fck", 750 .parent = "omap_32k_fck", 762 .parent = "per_32k_alwon_fck", 776 .parent = "wkup_l4_ick", 791 .parent = "core_48m_fck", 806 .parent = "sys_ck", 836 .parent = "core_l4_ick", 851 .parent = "core_48m_fck", 866 .parent = "l4_ick", 878 .parent = "omap_96m_fck", 890 .parent = "dpll4_ck", 904 .parent = "dpll4_m5_ck", 917 .parent = "dpll4_m5x2_mul_ck", 931 .parent = "dpll4_m5x2_ck", 945 .parent = "mcbsp_clks", 975 .parent = "core_96m_fck", 989 .parent = "sys_ck", 1020 .parent = "dpll3_ck", 1035 .parent = "dpll3_m3_ck", 1047 .parent = "sys_ck", 1072 .parent = "wkup_l4_ick", 1087 .parent = "l3_ick", 1099 .parent = "core_48m_fck", 1114 .parent = "omap_48m_fck", 1126 .parent = "per_48m_fck", 1141 .parent = "omap_96m_fck", 1153 .parent = "omap_96m_fck", 1160 .parent = "l4_ick", 1172 .parent = "per_l4_ick", 1187 .parent = "core_l4_ick", 1202 .parent = "l4_ick", 1215 .parent = "ssi_l4_ick", 1230 .parent = "core_96m_fck", 1245 .parent = "core_ck", 1305 .parent = "per_l4_ick", 1320 .parent = "dpll4_ck", 1334 .parent = "dpll4_m4_ck", 1347 .parent = "dpll4_m4x2_mul_ck", 1361 .parent = "dpll4_m4x2_ck", 1376 .parent = "per_l4_ick", 1391 .parent = "dpll4_ck", 1406 .parent = "per_l4_ick", 1421 .parent = "per_32k_alwon_fck", 1435 .parent = "core_l4_ick", 1450 .parent = "core_ck", 1458 .parent = "dpll4_m3_ck", 1470 .parent = "dpll4_m3x2_mul_ck", 1528 .parent = "core_96m_fck", 1543 .parent = "per_32k_alwon_fck", 1558 .parent = "sys_ck", 1589 .parent = "l4_ick", 1597 .parent = "l4_ick", 1617 .parent = "per_l4_ick", 1655 .parent = "per_l4_ick", 1670 .parent = "sys_ck", 1677 .parent = "l4_ick", 1692 .parent = "core_l4_ick", 1707 .parent = "core_ck", 1722 .parent = "core_48m_fck", 1737 .parent = "core_l3_ick", 1752 .parent = "per_l4_ick", 1767 .parent = "core_l4_ick", 1782 .parent = "sys_ck", 1797 .parent = "per_l4_ick", 1812 .parent = "wkup_l4_ick", 1840 .parent = "dpll1_ck", 1852 .parent = "dpll1_x2_ck", 1866 .parent = "dpll1_x2m2_ck", 1878 .parent = "mpu_ck", 1891 .parent = "core_ck", 1903 .parent = "sys_ck", 1934 .parent = "core_ck", 1946 .parent = "core_48m_fck", 1961 .parent = "dpll3_m3x2_mul_ck", 1975 .parent = "dpll3_m3x2_ck", 1987 .parent = "dpll4_ck", 2002 .parent = "dpll4_m6_ck", 2014 .parent = "dpll4_m6x2_mul_ck", 2028 .parent = "dpll4_m6x2_ck", 2040 .parent = "mpu_ck", 2072 .parent = "emu_src_mux_ck", 2084 .parent = "emu_src_ck", 2099 .parent = "core_l3_ick", 2114 .parent = "ipss_ick", 2129 .parent = "ipss_ick", 2179 .parent = "dpll2_ck", 2219 .parent = "sys_ck", 2226 .parent = "per_l4_ick", 2254 .parent = "core_l4_ick", 2269 .parent = "per_l4_ick", 2305 .parent = "traceclk_src_fck", 2320 .parent = "mcbsp_clks", 2327 .parent = "l3_ick", 2354 .parent = "sys_ck", 2369 .parent = "sys_ck", 2387 .parent = "dpll4_m2x2_mul_ck", 2402 .parent = "l3_ick", 2416 .parent = "gfx_l3_fck", 2431 .parent = "core_l4_ick", 2446 .parent = "security_l4_ick2", 2460 .parent = "ipss_ick", 2475 .parent = "core_96m_fck", 2490 .parent = "emu_src_ck", 2542 .parent = "per_48m_fck", 2557 .parent = "omap_32k_fck", 2569 .parent = "osc_sys_ck", 2582 .parent = "core_l3_ick", 2594 .parent = "dpll5_m2_ck", 2606 .parent = "dpll4_m5x2_mul_ck", 2621 .parent = "corex2_fck", 2629 .parent = "core_l4_ick", 2644 .parent = "dpll2_m2_ck", 2659 .parent = "security_l3_ick", 2673 .parent = "wkup_l4_ick", 2712 .parent = "omap_48m_fck", 2727 .parent = "security_l4_ick2", 2741 .parent = "core_ck", 2748 .parent = "core_ck", 2760 .parent = "dpll4_m2x2_ck", 2772 .parent = "core_ck", 2784 .parent = "corex2_fck", 2796 .parent = "corex2_fck", 2837 .parent = "core_48m_fck", 2852 .parent = "core_96m_fck", 2867 .parent = "core_48m_fck", 2882 .parent = "pclk_ck", 2895 .parent = "sys_ck", 2902 .parent = "mcbsp_clks", 2909 .parent = "sys_ck", 2940 .parent = "omap_32k_fck", 2954 .parent = "secure_32k_fck", 2966 .parent = "dpll4_m6x2_mul_ck", 2994 .parent = "l4_ick", 3009 .parent = "per_l4_ick", 3024 .parent = "core_l4_ick", 3039 .parent = "omap_96m_fck", 3051 .parent = "per_l4_ick", 3066 .parent = "dpll3_m3x2_mul_ck", 3081 .parent = "core_l4_ick", 3096 .parent = "per_l4_ick", 3111 .parent = "core_l4_ick", 3137 .parent = "sys_ck", 3154 .parent = "sys_ck", 3172 .parent = "dpll5_m2_ck", 3184 .parent = "sys_ck", 3196 .parent = "omap_96m_fck", 3208 .parent = "dpll5_m2_ck", 3220 .parent = "dpll5_m2_ck", 3278 .parent = "corex2_fck", 3297 .parent = "dpll4_m4x2_ck", 3312 .parent = "per_l4_ick", 3327 .parent = "omap_48m_fck", 3339 .parent = "omap_12m_fck", 3351 .parent = "core_12m_fck", 3366 .parent = "dpll5_m2_ck", 3381 .parent = "sys_ck", 3395 .parent = "core_l3_ick", 3410 .parent = "l3_ick", 3425 .parent = "gfx_l3_ck", 3437 .parent = "core_l4_ick", 3452 .parent = "secure_32k_fck", 3464 .parent = "gfx_l3_fck", 3479 .parent = "core_l4_ick", 3494 .parent = "per_32k_alwon_fck", 3508 .parent = "core_96m_fck", 3534 .parent = "core_l4_ick", 3549 .parent = "wkup_l4_ick", 3564 .parent = "core_l4_ick", 3603 .parent = "mcbsp_clks", 3621 .parent = "per_32k_alwon_fck", 3635 .parent = "core_l4_ick", 3650 .parent = "core_l4_ick", 3665 .parent = "omap_96m_fck", 3679 .parent = "l4_ick", 3694 .parent = "core_l4_ick", 3709 .parent = "dpll3_ck", 3721 .parent = "l3_ick", 3736 .parent = "core_48m_fck", 3751 .parent = "sys_ck", 3766 .parent = "core_l4_ick", 3781 .parent = "core_l3_ick", 3807 .parent = "dpll4_m3x2_mul_ck", 3822 .parent = "sys_ck", 3836 .parent = "core_l4_ick", 3851 .parent = "ssi_ssr_fck", 3863 .parent = "wkup_32k_fck", 3877 .parent = "per_l4_ick", 3892 .parent = "per_l4_ick", 3907 .parent = "core_96m_fck", 3932 .parent = "per_32k_alwon_fck", 3946 .parent = "core_l4_ick", 3961 .parent = "dpll4_ck", 3973 .parent = "per_l4_ick", 3988 .parent = "omap_54m_fck", 4002 .parent = "core_l4_ick", 4017 .parent = "core_l4_ick", 4032 .parent = "sys_ck", 4047 .parent = "per_l4_ick", 4062 .parent = "emu_src_ck", 4077 .parent = "core_l4_ick", 4092 .parent = "rmii_ck", 4116 .parent = "wkup_32k_fck", 4131 .parent = "l4_ick", 4146 .parent = "ssi_l4_ick", 4161 .parent = "per_l4_ick", 4176 .parent = "wkup_l4_ick", 4191 .parent = "security_l4_ick2", 4205 .parent = "core_l4_ick", 4220 .parent = "l3_ick", 4235 .parent = "clkout2_src_ck",
|
H A D | dpll3xxx.c | 179 * bypass mode, the DPLL's rate is set equal to its parent clock's 408 * the same as the DPLL's parent clock, it will enter bypass; 421 struct clk_hw *parent; omap3_noncore_dpll_enable() local 438 parent = clk_hw_get_parent(hw); omap3_noncore_dpll_enable() 441 WARN_ON(parent != __clk_get_hw(dd->clk_bypass)); omap3_noncore_dpll_enable() 444 WARN_ON(parent != __clk_get_hw(dd->clk_ref)); omap3_noncore_dpll_enable() 507 * omap3_noncore_dpll_set_parent - set parent for a DPLL clock 508 * @hw: pointer to the clock to set parent for 509 * @index: parent index to select 511 * Sets parent for a DPLL clock. This sets the DPLL into bypass or 532 * @hw: pointer to the clock to set parent for 534 * @parent_rate: rate of the parent clock 536 * Sets rate for a DPLL clock. First checks if the clock parent is 577 * omap3_noncore_dpll_set_rate_and_parent - set rate and parent for a DPLL clock 578 * @hw: pointer to the clock to set rate and parent for 580 * @parent_rate: clock rate of the DPLL parent 581 * @index: new parent index for the DPLL, 0 - reference, 1 - bypass 583 * Sets rate and parent for a DPLL clock. If new parent is the bypass 584 * clock, only selects the parent. Otherwise proceeds with a rate 585 * change, as this will effectively also change the parent as the 601 * the parent will be changed automatically with the lock sequence. omap3_noncore_dpll_set_rate_and_parent() 602 * With clk-bypass case we only need to change parent. omap3_noncore_dpll_set_rate_and_parent() 702 /* Find the parent DPLL for the given clkoutx2 clock */ omap3_find_clkoutx2_dpll() 717 /* clk does not have a DPLL as a parent? error in the clock data */ omap3_find_clkoutx2_dpll() 730 * Using parent clock DPLL data, look up DPLL state. If locked, set our 772 * @parent_rate: rate of the parent clock 796 * omap3_dpll4_set_rate_and_parent - set rate and parent for omap3 per-dpll 799 * @parent_rate: rate of the parent clock 800 * @index: parent index, 0 - reference clock, 1 - bypass clock 803 * or not, and then do the rate + parent change if supported. Returns
|
/linux-4.4.14/drivers/regulator/ |
H A D | mc13xxx-regulator-core.c | 146 struct device_node *parent; mc13xxx_get_num_regulators_dt() local 149 if (!pdev->dev.parent->of_node) mc13xxx_get_num_regulators_dt() 152 parent = of_get_child_by_name(pdev->dev.parent->of_node, "regulators"); mc13xxx_get_num_regulators_dt() 153 if (!parent) mc13xxx_get_num_regulators_dt() 156 num = of_get_child_count(parent); mc13xxx_get_num_regulators_dt() 157 of_node_put(parent); mc13xxx_get_num_regulators_dt() 168 struct device_node *parent, *child; mc13xxx_parse_regulators_dt() local 171 if (!pdev->dev.parent->of_node) mc13xxx_parse_regulators_dt() 174 parent = of_get_child_by_name(pdev->dev.parent->of_node, "regulators"); mc13xxx_parse_regulators_dt() 175 if (!parent) mc13xxx_parse_regulators_dt() 181 of_node_put(parent); mc13xxx_parse_regulators_dt() 187 for_each_child_of_node(parent, child) { for_each_child_of_node() 212 of_node_put(parent);
|
H A D | tps80031-regulator.c | 98 return rdev_get_dev(rdev)->parent->parent; to_tps80031_dev() 104 struct device *parent = to_tps80031_dev(rdev); tps80031_reg_is_enabled() local 111 ret = tps80031_read(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, tps80031_reg_is_enabled() 124 struct device *parent = to_tps80031_dev(rdev); tps80031_reg_enable() local 130 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, tps80031_reg_enable() 143 struct device *parent = to_tps80031_dev(rdev); tps80031_reg_disable() local 149 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, tps80031_reg_disable() 182 struct device *parent = to_tps80031_dev(rdev); tps80031_dcdc_set_voltage_sel() local 187 ret = tps80031_read(parent, ri->rinfo->volt_id, tps80031_dcdc_set_voltage_sel() 195 ret = tps80031_update(parent, ri->rinfo->volt_id, tps80031_dcdc_set_voltage_sel() 204 ret = tps80031_update(parent, ri->rinfo->volt_id, tps80031_dcdc_set_voltage_sel() 215 struct device *parent = to_tps80031_dev(rdev); tps80031_dcdc_get_voltage_sel() local 220 ret = tps80031_read(parent, ri->rinfo->volt_id, tps80031_dcdc_get_voltage_sel() 231 ret = tps80031_read(parent, ri->rinfo->volt_id, tps80031_dcdc_get_voltage_sel() 245 struct device *parent = to_tps80031_dev(rdev); tps80031_ldo_list_voltage() local 251 if (((tps80031_get_chip_info(parent) == TPS80031) || tps80031_ldo_list_voltage() 252 ((tps80031_get_chip_info(parent) == TPS80032) && tps80031_ldo_list_voltage() 253 (tps80031_get_pmu_version(parent) == 0x0))) && tps80031_ldo_list_voltage() 269 struct device *parent = to_tps80031_dev(rdev); tps80031_ldo_map_voltage() local 274 if (((tps80031_get_chip_info(parent) == TPS80031) || tps80031_ldo_map_voltage() 275 ((tps80031_get_chip_info(parent) == TPS80032) && tps80031_ldo_map_voltage() 276 (tps80031_get_pmu_version(parent) == 0x0)))) { tps80031_ldo_map_voltage() 288 struct device *parent = to_tps80031_dev(rdev); tps80031_vbus_is_enabled() local 293 ret = tps80031_read(parent, TPS80031_SLAVE_ID2, tps80031_vbus_is_enabled() 300 ret = tps80031_read(parent, TPS80031_SLAVE_ID2, tps80031_vbus_is_enabled() 315 struct device *parent = to_tps80031_dev(rdev); tps80031_vbus_enable() local 318 ret = tps80031_set_bits(parent, TPS80031_SLAVE_ID2, tps80031_vbus_enable() 326 ret = tps80031_set_bits(parent, TPS80031_SLAVE_ID2, tps80031_vbus_enable() 339 struct device *parent = to_tps80031_dev(rdev); tps80031_vbus_disable() local 343 ret = tps80031_write(parent, TPS80031_SLAVE_ID2, tps80031_vbus_disable() 352 ret = tps80031_clr_bits(parent, TPS80031_SLAVE_ID2, tps80031_vbus_disable() 360 ret = tps80031_clr_bits(parent, TPS80031_SLAVE_ID2, tps80031_vbus_disable() 370 ret = tps80031_write(parent, TPS80031_SLAVE_ID2, tps80031_vbus_disable() 507 static int tps80031_power_req_config(struct device *parent, tps80031_power_req_config() argument 516 ret = tps80031_ext_power_req_config(parent, ri->ext_ctrl_flag, tps80031_power_req_config() 526 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, tps80031_power_req_config() 538 static int tps80031_regulator_config(struct device *parent, tps80031_regulator_config() argument 554 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, tps80031_regulator_config() 567 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, tps80031_regulator_config() 588 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->trans_reg, tps80031_regulator_config() 600 static int check_smps_mode_mult(struct device *parent, check_smps_mode_mult() argument 608 ret = tps80031_read(parent, TPS80031_SLAVE_ID1, check_smps_mode_mult() 611 dev_err(parent, "Error in reading smps offset register\n"); check_smps_mode_mult() 615 ret = tps80031_read(parent, TPS80031_SLAVE_ID1, check_smps_mode_mult() 618 dev_err(parent, "Error in reading smps mult register\n"); check_smps_mode_mult() 683 struct tps80031 *tps80031_mfd = dev_get_drvdata(pdev->dev.parent); tps80031_regulator_probe() 687 pdata = dev_get_platdata(pdev->dev.parent); tps80031_regulator_probe() 705 check_smps_mode_mult(pdev->dev.parent, ri); tps80031_regulator_probe() 715 ret = tps80031_regulator_config(pdev->dev.parent, tps80031_regulator_probe() 723 ret = tps80031_power_req_config(pdev->dev.parent, tps80031_regulator_probe()
|
/linux-4.4.14/drivers/bus/ |
H A D | vexpress-config.c | 86 struct vexpress_config_bridge *bridge = dev_get_drvdata(dev->parent); vexpress_config_devres_release() 98 if (WARN_ON(dev->parent->class != vexpress_config_class)) devm_regmap_init_vexpress_config() 101 bridge = dev_get_drvdata(dev->parent); devm_regmap_init_vexpress_config() 123 struct device *vexpress_config_bridge_register(struct device *parent, vexpress_config_bridge_register() argument 136 dev = device_create(vexpress_config_class, parent, 0, vexpress_config_bridge_register() 137 NULL, "%s.bridge", dev_name(parent)); vexpress_config_bridge_register() 153 dev_dbg(parent, "Registered bridge '%s', parent node %p\n", vexpress_config_bridge_register() 154 dev_name(dev), parent->of_node); vexpress_config_bridge_register() 165 dev->parent->of_node, node); vexpress_config_node_match() 167 return dev->parent->of_node == node; vexpress_config_node_match() 173 struct device *parent; vexpress_config_populate() local 179 parent = class_find_device(vexpress_config_class, NULL, bridge, vexpress_config_populate() 181 if (WARN_ON(!parent)) vexpress_config_populate() 184 return of_platform_populate(node, NULL, NULL, parent); vexpress_config_populate()
|
/linux-4.4.14/fs/ext4/ |
H A D | crypto_policy.c | 145 int ext4_is_child_context_consistent_with_parent(struct inode *parent, ext4_is_child_context_consistent_with_parent() argument 151 if ((parent == NULL) || (child == NULL)) { ext4_is_child_context_consistent_with_parent() 152 pr_err("parent %p child %p\n", parent, child); ext4_is_child_context_consistent_with_parent() 156 /* no restrictions if the parent directory is not encrypted */ ext4_is_child_context_consistent_with_parent() 157 if (!ext4_encrypted_inode(parent)) ext4_is_child_context_consistent_with_parent() 162 res = ext4_get_encryption_info(parent); ext4_is_child_context_consistent_with_parent() 168 parent_ci = EXT4_I(parent)->i_crypt_info; ext4_is_child_context_consistent_with_parent() 184 * ext4_inherit_context() - Sets a child context from its parent 185 * @parent: Parent inode from which the context is inherited. 186 * @child: Child inode that inherits the context from @parent. 190 int ext4_inherit_context(struct inode *parent, struct inode *child) ext4_inherit_context() argument 196 res = ext4_get_encryption_info(parent); ext4_inherit_context() 199 ci = EXT4_I(parent)->i_crypt_info; ext4_inherit_context() 204 if (DUMMY_ENCRYPTION_ENABLED(EXT4_SB(parent->i_sb))) { ext4_inherit_context()
|
/linux-4.4.14/drivers/pwm/ |
H A D | sysfs.c | 191 static int pwm_export_child(struct device *parent, struct pwm_device *pwm) pwm_export_child() argument 208 export->child.parent = parent; pwm_export_child() 228 static int pwm_unexport_child(struct device *parent, struct pwm_device *pwm) pwm_unexport_child() argument 235 child = device_find_child(parent, pwm, pwm_unexport_match); pwm_unexport_child() 247 static ssize_t export_store(struct device *parent, export_store() argument 251 struct pwm_chip *chip = dev_get_drvdata(parent); export_store() 267 ret = pwm_export_child(parent, pwm); export_store() 275 static ssize_t unexport_store(struct device *parent, unexport_store() argument 279 struct pwm_chip *chip = dev_get_drvdata(parent); unexport_store() 290 ret = pwm_unexport_child(parent, &chip->pwms[hwpwm]); unexport_store() 296 static ssize_t npwm_show(struct device *parent, struct device_attribute *attr, npwm_show() argument 299 const struct pwm_chip *chip = dev_get_drvdata(parent); npwm_show() 319 static int pwmchip_sysfs_match(struct device *parent, const void *data) pwmchip_sysfs_match() argument 321 return dev_get_drvdata(parent) == data; pwmchip_sysfs_match() 326 struct device *parent; pwmchip_sysfs_export() local 332 parent = device_create(&pwm_class, chip->dev, MKDEV(0, 0), chip, pwmchip_sysfs_export() 334 if (IS_ERR(parent)) { pwmchip_sysfs_export() 342 struct device *parent; pwmchip_sysfs_unexport() local 344 parent = class_find_device(&pwm_class, NULL, chip, pwmchip_sysfs_unexport() 346 if (parent) { pwmchip_sysfs_unexport() 348 put_device(parent); pwmchip_sysfs_unexport() 349 device_unregister(parent); pwmchip_sysfs_unexport()
|
/linux-4.4.14/drivers/video/fbdev/omap2/dss/ |
H A D | dss-of.c | 26 omapdss_of_get_next_port(const struct device_node *parent, omapdss_of_get_next_port() argument 31 if (!parent) omapdss_of_get_next_port() 40 ports = of_get_child_by_name(parent, "ports"); omapdss_of_get_next_port() 42 parent = ports; omapdss_of_get_next_port() 44 port = of_get_child_by_name(parent, "port"); omapdss_of_get_next_port() 72 omapdss_of_get_next_endpoint(const struct device_node *parent, omapdss_of_get_next_endpoint() argument 77 if (!parent) omapdss_of_get_next_endpoint() 81 ep = of_get_next_child(parent, prev); omapdss_of_get_next_endpoint() 141 omapdss_of_get_first_endpoint(const struct device_node *parent) omapdss_of_get_first_endpoint() argument 145 port = omapdss_of_get_next_port(parent, NULL); omapdss_of_get_first_endpoint()
|
/linux-4.4.14/drivers/clk/pistachio/ |
H A D | clk.h | 19 const char *parent; member in struct:pistachio_gate 28 .parent = _pname, \ 59 const char *parent; member in struct:pistachio_div 69 .parent = _pname, \ 79 .parent = _pname, \ 86 const char *parent; member in struct:pistachio_fixed_factor 94 .parent = _pname, \ 119 const char *parent; member in struct:pistachio_pll 130 .parent = _pname, \ 141 .parent = _pname, \
|
/linux-4.4.14/fs/proc/ |
H A D | generic.c | 79 struct rb_node **new = &root->rb_node, *parent = NULL; pde_subdir_insert() local 87 parent = *new; pde_subdir_insert() 97 rb_link_node(&de->subdir_node, parent, new); pde_subdir_insert() 342 dp->parent = dir; proc_register() 355 static struct proc_dir_entry *__proc_create(struct proc_dir_entry **parent, __proc_create() argument 364 if (xlate_proc_name(name, parent, &fn) != 0) __proc_create() 372 if (*parent == &proc_root && name_to_int(&qstr) != ~0U) { __proc_create() 376 if (is_empty_pde(*parent)) { __proc_create() 398 struct proc_dir_entry *parent, const char *dest) proc_symlink() 402 ent = __proc_create(&parent, name, proc_symlink() 410 if (proc_register(parent, ent) < 0) { proc_symlink() 425 struct proc_dir_entry *parent, void *data) proc_mkdir_data() 432 ent = __proc_create(&parent, name, S_IFDIR | mode, 2); proc_mkdir_data() 437 parent->nlink++; proc_mkdir_data() 438 if (proc_register(parent, ent) < 0) { proc_mkdir_data() 440 parent->nlink--; proc_mkdir_data() 449 struct proc_dir_entry *parent) proc_mkdir_mode() 451 return proc_mkdir_data(name, mode, parent, NULL); proc_mkdir_mode() 456 struct proc_dir_entry *parent) proc_mkdir() 458 return proc_mkdir_data(name, 0, parent, NULL); proc_mkdir() 465 struct proc_dir_entry *ent, *parent = NULL; proc_create_mount_point() local 467 ent = __proc_create(&parent, name, mode, 2); proc_create_mount_point() 472 if (proc_register(parent, ent) < 0) { proc_create_mount_point() 474 parent->nlink--; proc_create_mount_point() 482 struct proc_dir_entry *parent, proc_create_data() 499 pde = __proc_create(&parent, name, mode, 1); proc_create_data() 505 if (proc_register(parent, pde) < 0) proc_create_data() 546 void remove_proc_entry(const char *name, struct proc_dir_entry *parent) remove_proc_entry() argument 553 if (__xlate_proc_name(name, &parent, &fn) != 0) { remove_proc_entry() 559 de = pde_subdir_find(parent, fn, len); remove_proc_entry() 561 rb_erase(&de->subdir_node, &parent->subdir); remove_proc_entry() 571 parent->nlink--; remove_proc_entry() 575 __func__, de->parent->name, de->name, pde_subdir_first(de)->name); remove_proc_entry() 580 int remove_proc_subtree(const char *name, struct proc_dir_entry *parent) remove_proc_subtree() argument 587 if (__xlate_proc_name(name, &parent, &fn) != 0) { remove_proc_subtree() 593 root = pde_subdir_find(parent, fn, len); remove_proc_subtree() 598 rb_erase(&root->subdir_node, &parent->subdir); remove_proc_subtree() 611 next = de->parent; remove_proc_subtree() 630 return de->parent->data; proc_get_parent_data() 637 remove_proc_subtree(de->name, de->parent); proc_remove() 397 proc_symlink(const char *name, struct proc_dir_entry *parent, const char *dest) proc_symlink() argument 424 proc_mkdir_data(const char *name, umode_t mode, struct proc_dir_entry *parent, void *data) proc_mkdir_data() argument 448 proc_mkdir_mode(const char *name, umode_t mode, struct proc_dir_entry *parent) proc_mkdir_mode() argument 455 proc_mkdir(const char *name, struct proc_dir_entry *parent) proc_mkdir() argument 481 proc_create_data(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct file_operations *proc_fops, void *data) proc_create_data() argument
|
/linux-4.4.14/drivers/staging/lustre/lustre/lov/ |
H A D | lovsub_lock.c | 67 struct cl_lock *parent; lovsub_parent_lock() local 69 parent = lov->lls_cl.cls_lock; lovsub_parent_lock() 70 cl_lock_get(parent); lovsub_parent_lock() 71 lu_ref_add(&parent->cll_reference, "lovsub-parent", current); lovsub_parent_lock() 72 cl_lock_mutex_get(env, parent); lovsub_parent_lock() 77 struct cl_lock *parent; lovsub_parent_unlock() local 79 parent = lov->lls_cl.cls_lock; lovsub_parent_unlock() 81 lu_ref_del(&parent->cll_reference, "lovsub-parent", current); lovsub_parent_unlock() 82 cl_lock_put(env, parent); lovsub_parent_unlock() 101 struct cl_lock *parent = lov->lls_cl.cls_lock; lovsub_lock_state() local 103 if (sub->lss_active != parent) { lovsub_lock_state() 105 cl_lock_signal(env, parent); lovsub_lock_state() 113 * asking parent lock. 179 * Adjusts parent lock extent when a sub-lock is attached to a parent. This is 187 * Note, that lock mode is not propagated to the parent: i.e., if CLM_READ 194 struct cl_lock *parent; lov_sublock_modify() local 200 parent = lov->lls_cl.cls_lock; lov_sublock_modify() 201 parent_descr = &parent->cll_descr; lov_sublock_modify() 217 result = cl_lock_modify(env, parent, pd); lov_sublock_modify() 251 struct cl_lock *parent; lovsub_lock_closure() local 261 parent = scan->lll_super->lls_cl.cls_lock; lovsub_lock_closure() 262 result = cl_lock_closure_build(env, parent, closure); lovsub_lock_closure() 270 * A helper function for lovsub_lock_delete() that deals with a given parent 276 struct cl_lock *parent; lovsub_lock_delete_one() local 279 parent = lov->lls_cl.cls_lock; lovsub_lock_delete_one() 280 if (parent->cll_error) lovsub_lock_delete_one() 284 switch (parent->cll_state) { lovsub_lock_delete_one() 288 LASSERT(parent->cll_flags & CLF_CANCELLED); lovsub_lock_delete_one() 292 cl_lock_signal(env, parent); lovsub_lock_delete_one() 312 if (cl_lock_is_intransit(parent)) lovsub_lock_delete_one() 323 cl_lock_state_set(env, parent, CLS_NEW); lovsub_lock_delete_one() 342 * @parent are held by the current thread. lovsub_lock_delete_one() 359 cl_lock_cancel(env, parent); lovsub_lock_delete_one() 360 cl_lock_delete(env, parent); lovsub_lock_delete_one() 366 CL_LOCK_DEBUG(D_ERROR, env, parent, "Delete CLS_HELD lock\n"); lovsub_lock_delete_one() 368 CERROR("Impossible state: %d\n", parent->cll_state); lovsub_lock_delete_one()
|
H A D | lov_lock.c | 50 struct cl_lock *parent); 61 struct cl_lock *parent, lov_sublock_env_get() 78 * we still borrow the parent's env to call sublock operations. lov_sublock_env_get() 80 if (!io || !cl_object_same(io->ci_obj, parent->cll_descr.cld_obj)) { lov_sublock_env_get() 108 struct cl_lock *parent = lck->lls_cl.cls_lock; lov_sublock_adopt() local 111 LASSERT(cl_lock_is_mutexed(parent)); lov_sublock_adopt() 127 cl_lock_get(parent); lov_sublock_adopt() 128 lu_ref_add(&parent->cll_reference, "lov-child", sublock); lov_sublock_adopt() 142 struct cl_lock *parent; lov_sublock_alloc() local 153 parent = lck->lls_cl.cls_lock; lov_sublock_alloc() 157 subenv = lov_sublock_env_get(env, parent, lls); lov_sublock_alloc() 166 descr, "lov-parent", parent); lov_sublock_alloc() 208 struct cl_lock *parent = closure->clc_origin; lov_sublock_lock() local 211 sublock->lss_active = parent; lov_sublock_lock() 231 subenv = lov_sublock_env_get(env, parent, lls); lov_sublock_lock() 301 struct cl_lock *parent = lck->lls_cl.cls_lock; lov_lock_sub_init() local 303 lck->lls_orig = parent->cll_descr; lov_lock_sub_init() 304 file_start = cl_offset(lov2cl(loo), parent->cll_descr.cld_start); lov_lock_sub_init() 305 file_end = cl_offset(lov2cl(loo), parent->cll_descr.cld_end + 1) - 1; lov_lock_sub_init() 342 descr->cld_mode = parent->cll_descr.cld_mode; lov_lock_sub_init() 343 descr->cld_gid = parent->cll_descr.cld_gid; lov_lock_sub_init() 344 descr->cld_enq_flags = parent->cll_descr.cld_enq_flags; lov_lock_sub_init() 364 struct cl_lock *parent = lck->lls_cl.cls_lock; lov_sublock_release() local 366 LASSERT(cl_lock_is_mutexed(parent)); lov_sublock_release() 381 * for a sub-lock, release parent mutex, to avoid keeping it lov_sublock_release() 389 cl_lock_mutex_put(env, parent); lov_sublock_release() 390 cl_lock_unhold(env, sublock, "lov-parent", parent); lov_sublock_release() 392 cl_lock_mutex_get(env, parent); lov_sublock_release() 409 struct cl_lock *parent = lck->lls_cl.cls_lock; lov_sublock_hold() local 411 LASSERT(cl_lock_is_mutexed(parent)); lov_sublock_hold() 424 cl_lock_hold_add(env, sublock, "lov-parent", parent); lov_sublock_hold() 442 * a reference on its parent. lov_lock_fini() 501 static int lov_sublock_fill(const struct lu_env *env, struct cl_lock *parent, lov_sublock_fill() argument 508 LASSERT(parent->cll_depth == 1); lov_sublock_fill() 509 cl_lock_mutex_put(env, parent); lov_sublock_fill() 513 cl_lock_mutex_get(env, parent); lov_sublock_fill() 517 if (parent->cll_state == CLS_QUEUING && lov_sublock_fill() 524 cl_lock_mutex_put(env, parent); lov_sublock_fill() 525 cl_lock_unhold(env, sublock, "lov-parent", parent); lov_sublock_fill() 526 cl_lock_mutex_get(env, parent); lov_sublock_fill() 611 /* sublock and parent are held. */ lov_lock_enqueue() 1017 struct cl_lock *parent = lck->lls_cl.cls_lock; lov_lock_unlink() local 1019 LASSERT(cl_lock_is_mutexed(parent)); lov_lock_unlink() 1024 /* yank this sub-lock from parent's array */ lov_lock_unlink() 1028 lu_ref_del(&parent->cll_reference, "lov-child", sub->lss_cl.cls_lock); lov_lock_unlink() 1029 cl_lock_put(env, parent); lov_lock_unlink() 1188 struct cl_lock *parent) lov_closure_get() 1194 cl_lock_closure_init(env, closure, parent, 1); lov_closure_get() 60 lov_sublock_env_get(const struct lu_env *env, struct cl_lock *parent, struct lov_lock_sub *lls) lov_sublock_env_get() argument 1187 lov_closure_get(const struct lu_env *env, struct cl_lock *parent) lov_closure_get() argument
|
/linux-4.4.14/fs/hfs/ |
H A D | brec.c | 135 * update parent key if we inserted a key hfs_brec_insert() 145 if (!new_node->parent) { hfs_brec_insert() 147 new_node->parent = tree->root; hfs_brec_insert() 149 fd->bnode = hfs_bnode_find(tree, new_node->parent); hfs_brec_insert() 178 struct hfs_bnode *node, *parent; hfs_brec_remove() local 196 if (!node->parent) hfs_brec_remove() 198 parent = hfs_bnode_find(tree, node->parent); hfs_brec_remove() 199 if (IS_ERR(parent)) hfs_brec_remove() 200 return PTR_ERR(parent); hfs_brec_remove() 202 node = fd->bnode = parent; hfs_brec_remove() 247 new_node->parent = node->parent; hfs_bnode_split() 353 struct hfs_bnode *node, *new_node, *parent; hfs_brec_update_parent() local 361 if (!node->parent) hfs_brec_update_parent() 365 parent = hfs_bnode_find(tree, node->parent); hfs_brec_update_parent() 366 if (IS_ERR(parent)) hfs_brec_update_parent() 367 return PTR_ERR(parent); hfs_brec_update_parent() 368 __hfs_brec_find(parent, fd); hfs_brec_update_parent() 371 hfs_bnode_dump(parent); hfs_brec_update_parent() 383 end_rec_off = tree->node_size - (parent->num_recs + 1) * 2; hfs_brec_update_parent() 388 end_off = hfs_bnode_read_u16(parent, end_rec_off); hfs_brec_update_parent() 392 fd->bnode = parent; hfs_brec_update_parent() 396 parent = fd->bnode; hfs_brec_update_parent() 399 end_rec_off = tree->node_size - (parent->num_recs + 1) * 2; hfs_brec_update_parent() 403 end_off = start_off = hfs_bnode_read_u16(parent, rec_off); hfs_brec_update_parent() 404 hfs_bnode_write_u16(parent, rec_off, start_off + diff); hfs_brec_update_parent() 409 end_off = hfs_bnode_read_u16(parent, rec_off); hfs_brec_update_parent() 410 hfs_bnode_write_u16(parent, rec_off, end_off + diff); hfs_brec_update_parent() 412 hfs_bnode_move(parent, start_off + diff, start_off, hfs_brec_update_parent() 415 hfs_bnode_copy(parent, fd->keyoffset, node, 14, newkeylen); hfs_brec_update_parent() 417 hfs_bnode_write_u8(parent, fd->keyoffset, newkeylen - 1); hfs_brec_update_parent() 418 hfs_bnode_dump(parent); hfs_brec_update_parent() 421 node = parent; hfs_brec_update_parent() 426 fd->bnode = hfs_bnode_find(tree, new_node->parent); hfs_brec_update_parent() 444 if (!rec && node->parent) hfs_brec_update_parent() 479 new_node->parent = 0; hfs_btree_inc_height() 497 node->parent = tree->root; hfs_btree_inc_height()
|
/linux-4.4.14/fs/f2fs/ |
H A D | crypto_policy.c | 138 int f2fs_is_child_context_consistent_with_parent(struct inode *parent, f2fs_is_child_context_consistent_with_parent() argument 144 if ((parent == NULL) || (child == NULL)) { f2fs_is_child_context_consistent_with_parent() 145 pr_err("parent %p child %p\n", parent, child); f2fs_is_child_context_consistent_with_parent() 149 /* no restrictions if the parent directory is not encrypted */ f2fs_is_child_context_consistent_with_parent() 150 if (!f2fs_encrypted_inode(parent)) f2fs_is_child_context_consistent_with_parent() 155 res = f2fs_get_encryption_info(parent); f2fs_is_child_context_consistent_with_parent() 161 parent_ci = F2FS_I(parent)->i_crypt_info; f2fs_is_child_context_consistent_with_parent() 177 * f2fs_inherit_context() - Sets a child context from its parent 178 * @parent: Parent inode from which the context is inherited. 179 * @child: Child inode that inherits the context from @parent. 183 int f2fs_inherit_context(struct inode *parent, struct inode *child, f2fs_inherit_context() argument 190 res = f2fs_get_encryption_info(parent); f2fs_inherit_context() 194 ci = F2FS_I(parent)->i_crypt_info; f2fs_inherit_context()
|
/linux-4.4.14/fs/tracefs/ |
H A D | inode.c | 109 * This time we need to unlock not only the parent (inode) but tracefs_syscall_rmdir() 317 static struct dentry *start_creating(const char *name, struct dentry *parent) start_creating() argument 329 /* If the parent is not specified, we create it in the root. start_creating() 334 if (!parent) start_creating() 335 parent = tracefs_mount->mnt_root; start_creating() 337 mutex_lock(&parent->d_inode->i_mutex); start_creating() 338 dentry = lookup_one_len(name, parent, strlen(name)); start_creating() 345 mutex_unlock(&parent->d_inode->i_mutex); start_creating() 370 * @parent: a pointer to the parent dentry for this file. This should be a 393 struct dentry *parent, void *data, tracefs_create_file() 402 dentry = start_creating(name, parent); tracefs_create_file() 419 static struct dentry *__create_dir(const char *name, struct dentry *parent, __create_dir() argument 422 struct dentry *dentry = start_creating(name, parent); __create_dir() 448 * @parent: a pointer to the parent dentry for this file. This should be a 461 struct dentry *tracefs_create_dir(const char *name, struct dentry *parent) tracefs_create_dir() argument 463 return __create_dir(name, parent, &simple_dir_inode_operations); tracefs_create_dir() 469 * @parent: The parent directory that the instances directory will exist 483 struct dentry *tracefs_create_instance_dir(const char *name, struct dentry *parent, tracefs_create_instance_dir() argument 493 dentry = __create_dir(name, parent, &tracefs_dir_inode_operations); tracefs_create_instance_dir() 503 static int __tracefs_remove(struct dentry *dentry, struct dentry *parent) __tracefs_remove() argument 512 ret = simple_rmdir(parent->d_inode, dentry); __tracefs_remove() 515 simple_unlink(parent->d_inode, dentry); __tracefs_remove() 537 struct dentry *parent; tracefs_remove() local 543 parent = dentry->d_parent; tracefs_remove() 544 if (!parent || !parent->d_inode) tracefs_remove() 547 mutex_lock(&parent->d_inode->i_mutex); tracefs_remove() 548 ret = __tracefs_remove(dentry, parent); tracefs_remove() 549 mutex_unlock(&parent->d_inode->i_mutex); tracefs_remove() 564 struct dentry *child, *parent; tracefs_remove_recursive() local 569 parent = dentry->d_parent; tracefs_remove_recursive() 570 if (!parent || !parent->d_inode) tracefs_remove_recursive() 573 parent = dentry; tracefs_remove_recursive() 575 mutex_lock(&parent->d_inode->i_mutex); tracefs_remove_recursive() 578 * The parent->d_subdirs is protected by the d_lock. Outside that tracefs_remove_recursive() 582 spin_lock(&parent->d_lock); tracefs_remove_recursive() 583 list_for_each_entry(child, &parent->d_subdirs, d_child) { tracefs_remove_recursive() 589 spin_unlock(&parent->d_lock); tracefs_remove_recursive() 590 mutex_unlock(&parent->d_inode->i_mutex); tracefs_remove_recursive() 591 parent = child; tracefs_remove_recursive() 595 spin_unlock(&parent->d_lock); tracefs_remove_recursive() 597 if (!__tracefs_remove(child, parent)) tracefs_remove_recursive() 601 * The parent->d_lock protects agaist child from unlinking tracefs_remove_recursive() 602 * from d_subdirs. When releasing the parent->d_lock we can tracefs_remove_recursive() 609 spin_unlock(&parent->d_lock); tracefs_remove_recursive() 611 mutex_unlock(&parent->d_inode->i_mutex); tracefs_remove_recursive() 612 child = parent; tracefs_remove_recursive() 613 parent = parent->d_parent; tracefs_remove_recursive() 614 mutex_lock(&parent->d_inode->i_mutex); tracefs_remove_recursive() 620 if (!__tracefs_remove(child, parent)) tracefs_remove_recursive() 622 mutex_unlock(&parent->d_inode->i_mutex); tracefs_remove_recursive() 392 tracefs_create_file(const char *name, umode_t mode, struct dentry *parent, void *data, const struct file_operations *fops) tracefs_create_file() argument
|
/linux-4.4.14/drivers/gpio/ |
H A D | gpio-rc5t583.c | 45 struct device *parent = rc5t583_gpio->rc5t583->dev; rc5t583_gpio_get() local 49 ret = rc5t583_read(parent, RC5T583_GPIO_MON_IOIN, &val); rc5t583_gpio_get() 59 struct device *parent = rc5t583_gpio->rc5t583->dev; rc5t583_gpio_set() local 61 rc5t583_set_bits(parent, RC5T583_GPIO_IOOUT, BIT(offset)); rc5t583_gpio_set() 63 rc5t583_clear_bits(parent, RC5T583_GPIO_IOOUT, BIT(offset)); rc5t583_gpio_set() 69 struct device *parent = rc5t583_gpio->rc5t583->dev; rc5t583_gpio_dir_input() local 72 ret = rc5t583_clear_bits(parent, RC5T583_GPIO_IOSEL, BIT(offset)); rc5t583_gpio_dir_input() 77 return rc5t583_clear_bits(parent, RC5T583_GPIO_PGSEL, BIT(offset)); rc5t583_gpio_dir_input() 84 struct device *parent = rc5t583_gpio->rc5t583->dev; rc5t583_gpio_dir_output() local 88 ret = rc5t583_set_bits(parent, RC5T583_GPIO_IOSEL, BIT(offset)); rc5t583_gpio_dir_output() 93 return rc5t583_clear_bits(parent, RC5T583_GPIO_PGSEL, BIT(offset)); rc5t583_gpio_dir_output() 109 struct device *parent = rc5t583_gpio->rc5t583->dev; rc5t583_gpio_free() local 111 rc5t583_set_bits(parent, RC5T583_GPIO_PGSEL, BIT(offset)); rc5t583_gpio_free() 116 struct rc5t583 *rc5t583 = dev_get_drvdata(pdev->dev.parent); rc5t583_gpio_probe()
|
H A D | gpio-tps6586x.c | 38 struct device *parent; member in struct:tps6586x_gpio 52 ret = tps6586x_read(tps6586x_gpio->parent, TPS6586X_GPIOSET2, &val); tps6586x_gpio_get() 64 tps6586x_update(tps6586x_gpio->parent, TPS6586X_GPIOSET2, tps6586x_gpio_set() 79 return tps6586x_update(tps6586x_gpio->parent, TPS6586X_GPIOSET1, tps6586x_gpio_output() 87 return tps6586x_irq_get_virq(tps6586x_gpio->parent, tps6586x_gpio_to_irq() 97 pdata = dev_get_platdata(pdev->dev.parent); tps6586x_gpio_probe() 103 tps6586x_gpio->parent = pdev->dev.parent; tps6586x_gpio_probe() 118 tps6586x_gpio->gpio_chip.of_node = pdev->dev.parent->of_node; tps6586x_gpio_probe()
|
/linux-4.4.14/arch/arm/mach-omap1/ |
H A D | clock_data.c | 87 .parent = &ck_ref, 98 .parent = &ck_dpll1, 111 .parent = &ck_dpll1out.clk, 122 .parent = &ck_dpll1, 133 .parent = &ck_dpll1, 152 .parent = &ck_dpll1, 163 .parent = &ck_ref, 176 .parent = &ck_ref, 189 .parent = &ck_ref, 202 .parent = &arm_ck, 214 .parent = &ck_dpll1, 226 .parent = &ck_dpll1, 236 .parent = &ck_dpll1, 248 .parent = &ck_ref, 257 .parent = &ck_ref, 267 .parent = &ck_dpll1, 280 .parent = &tc_ck.clk, 292 .parent = &tc_ck.clk, 300 .parent = &tc_ck.clk, 309 .parent = &tc_ck.clk, 322 .parent = &tc_ck.clk, 333 .parent = &tc_ck.clk, 340 .parent = &tc_ck.clk, 348 .parent = &tc_ck.clk, 361 .parent = &tc_ck.clk, 373 .parent = &tc_ck.clk, 380 .parent = &tc_ck.clk, 387 .parent = &ck_dpll1, 400 .parent = &ck_dpll1, 421 /* Direct from ULPD, no real parent */ 422 .parent = &armper_ck.clk, 441 /* Direct from ULPD, no real parent */ 442 .parent = &armper_ck.clk, 460 /* Direct from ULPD, no real parent */ 461 .parent = &armper_ck.clk, 479 /* Direct from ULPD, no real parent */ 480 .parent = &armper_ck.clk, 499 /* Direct from ULPD, no real parent */ 500 .parent = &armper_ck.clk, 512 /* Direct from ULPD, no parent */ 522 /* Direct from ULPD, no parent */ 532 /* Direct from ULPD, no parent */ 543 /* Direct from ULPD, no parent */ 552 /* Direct from ULPD, no parent */ 561 /* Direct from ULPD, no parent */ 570 /* Direct from ULPD, no parent. May be enabled by ext hardware. */ 579 /* Direct from ULPD, no parent. May be enabled by ext hardware. */ 590 /* Direct from ULPD, no parent. May be enabled by ext hardware. */ 597 /* Direct from ULPD, no parent. May be enabled by ext hardware. */ 609 .parent = &armper_ck.clk, 624 .parent = &armper_ck.clk, 635 .parent = &armper_ck.clk, 645 .parent = &arm_ck, /* Is smarter alias for */ 657 .parent = &armxor_ck.clk, 665 .parent = &armper_ck.clk,
|
H A D | clock.c | 57 return clk->parent->rate / div; omap1_sossi_recalc() 149 struct clk * parent; calc_dsor_exp() local 152 parent = clk->parent; calc_dsor_exp() 153 if (unlikely(parent == NULL)) calc_dsor_exp() 156 realrate = parent->rate; calc_dsor_exp() 172 return clk->parent->rate / dsor; omap1_ckctl_recalc() 190 return clk->parent->rate / dsor; omap1_ckctl_recalc_dsp_domain() 244 clk->rate = clk->parent->rate / (1 << dsor_exp); omap1_clk_set_rate_dsp_domain() 256 return clk->parent->rate / (1 << dsor_exp); omap1_clk_round_rate_ckctl_arm() 275 clk->rate = clk->parent->rate / (1 << dsor_exp); omap1_clk_set_rate_ckctl_arm() 372 p_rate = clk->parent->rate; omap1_set_sossi_rate() 417 if (clk->parent) { omap1_clk_enable() 418 ret = omap1_clk_enable(clk->parent); omap1_clk_enable() 423 omap1_clk_deny_idle(clk->parent); omap1_clk_enable() 428 if (clk->parent) omap1_clk_enable() 429 omap1_clk_disable(clk->parent); omap1_clk_enable() 444 if (likely(clk->parent)) { omap1_clk_disable() 445 omap1_clk_disable(clk->parent); omap1_clk_disable() 447 omap1_clk_allow_idle(clk->parent); omap1_clk_disable() 705 int clk_set_parent(struct clk *clk, struct clk *parent) clk_set_parent() argument 715 return clk->parent; clk_get_parent() 743 /* Used for clocks that always have same value as the parent clock */ followparent_recalc() 746 return clk->parent->rate; followparent_recalc() 750 * Used for clocks that have the same value as the parent clock, 757 return clk->parent->rate / clk->fixed_div; omap_fixed_divisor_recalc() 760 void clk_reparent(struct clk *child, struct clk *parent) clk_reparent() argument 763 if (parent) clk_reparent() 764 list_add(&child->sibling, &parent->children); clk_reparent() 765 child->parent = parent; clk_reparent() 768 to the proper parent */ clk_reparent() 788 * Recalculates all root clocks (clocks with no parent), which if the 827 if (clk->parent) clk_register() 828 list_add(&clk->sibling, &clk->parent->children); clk_register() 998 "clock-name", "parent-name", "rate", "use-count"); clk_dbg_show_summary() 1001 pa = c->parent; clk_dbg_show_summary() 1027 struct clk *pa = c->parent; clk_debugfs_register_one() 1059 struct clk *pa = c->parent; clk_debugfs_register()
|
/linux-4.4.14/drivers/hid/ |
H A D | hid-roccat-arvo.c | 35 hid_get_drvdata(dev_get_drvdata(dev->parent->parent)); arvo_sysfs_show_mode_key() 37 interface_to_usbdev(to_usb_interface(dev->parent->parent)); arvo_sysfs_show_mode_key() 55 hid_get_drvdata(dev_get_drvdata(dev->parent->parent)); arvo_sysfs_set_mode_key() 57 interface_to_usbdev(to_usb_interface(dev->parent->parent)); arvo_sysfs_set_mode_key() 85 hid_get_drvdata(dev_get_drvdata(dev->parent->parent)); arvo_sysfs_show_key_mask() 87 interface_to_usbdev(to_usb_interface(dev->parent->parent)); arvo_sysfs_show_key_mask() 105 hid_get_drvdata(dev_get_drvdata(dev->parent->parent)); arvo_sysfs_set_key_mask() 107 interface_to_usbdev(to_usb_interface(dev->parent->parent)); arvo_sysfs_set_key_mask() 150 hid_get_drvdata(dev_get_drvdata(dev->parent->parent)); arvo_sysfs_show_actual_profile() 159 hid_get_drvdata(dev_get_drvdata(dev->parent->parent)); arvo_sysfs_set_actual_profile() 161 interface_to_usbdev(to_usb_interface(dev->parent->parent)); arvo_sysfs_set_actual_profile() 195 container_of(kobj, struct device, kobj)->parent->parent; arvo_sysfs_write() 215 container_of(kobj, struct device, kobj)->parent->parent; arvo_sysfs_read() 293 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); arvo_init_specials() 334 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); arvo_remove_specials()
|
H A D | hid-roccat-kovaplus.c | 132 container_of(kobj, struct device, kobj)->parent->parent; kovaplus_sysfs_read() 158 container_of(kobj, struct device, kobj)->parent->parent; kovaplus_sysfs_write() 225 container_of(kobj, struct device, kobj)->parent->parent; kovaplus_sysfs_read_profilex_settings() 244 container_of(kobj, struct device, kobj)->parent->parent; kovaplus_sysfs_read_profilex_buttons() 281 hid_get_drvdata(dev_get_drvdata(dev->parent->parent)); kovaplus_sysfs_show_actual_profile() 294 dev = dev->parent->parent; kovaplus_sysfs_set_actual_profile() 334 hid_get_drvdata(dev_get_drvdata(dev->parent->parent)); kovaplus_sysfs_show_actual_cpi() 343 hid_get_drvdata(dev_get_drvdata(dev->parent->parent)); kovaplus_sysfs_show_actual_sensitivity_x() 353 hid_get_drvdata(dev_get_drvdata(dev->parent->parent)); kovaplus_sysfs_show_actual_sensitivity_y() 366 dev = dev->parent->parent; kovaplus_sysfs_show_firmware_version() 450 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); kovaplus_init_specials() 492 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); kovaplus_remove_specials() 606 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); kovaplus_raw_event()
|
/linux-4.4.14/fs/hfsplus/ |
H A D | brec.c | 135 * update parent key if we inserted a key hfs_brec_insert() 145 if (!new_node->parent) { hfs_brec_insert() 147 new_node->parent = tree->root; hfs_brec_insert() 149 fd->bnode = hfs_bnode_find(tree, new_node->parent); hfs_brec_insert() 180 struct hfs_bnode *node, *parent; hfs_brec_remove() local 198 if (!node->parent) hfs_brec_remove() 200 parent = hfs_bnode_find(tree, node->parent); hfs_brec_remove() 201 if (IS_ERR(parent)) hfs_brec_remove() 202 return PTR_ERR(parent); hfs_brec_remove() 204 node = fd->bnode = parent; hfs_brec_remove() 251 new_node->parent = node->parent; hfs_bnode_split() 357 struct hfs_bnode *node, *new_node, *parent; hfs_brec_update_parent() local 365 if (!node->parent) hfs_brec_update_parent() 369 parent = hfs_bnode_find(tree, node->parent); hfs_brec_update_parent() 370 if (IS_ERR(parent)) hfs_brec_update_parent() 371 return PTR_ERR(parent); hfs_brec_update_parent() 372 __hfs_brec_find(parent, fd, hfs_find_rec_by_key); hfs_brec_update_parent() 375 hfs_bnode_dump(parent); hfs_brec_update_parent() 388 end_rec_off = tree->node_size - (parent->num_recs + 1) * 2; hfs_brec_update_parent() 393 end_off = hfs_bnode_read_u16(parent, end_rec_off); hfs_brec_update_parent() 397 fd->bnode = parent; hfs_brec_update_parent() 401 parent = fd->bnode; hfs_brec_update_parent() 405 (parent->num_recs + 1) * 2; hfs_brec_update_parent() 409 end_off = start_off = hfs_bnode_read_u16(parent, rec_off); hfs_brec_update_parent() 410 hfs_bnode_write_u16(parent, rec_off, start_off + diff); hfs_brec_update_parent() 415 end_off = hfs_bnode_read_u16(parent, rec_off); hfs_brec_update_parent() 416 hfs_bnode_write_u16(parent, rec_off, end_off + diff); hfs_brec_update_parent() 418 hfs_bnode_move(parent, start_off + diff, start_off, hfs_brec_update_parent() 421 hfs_bnode_copy(parent, fd->keyoffset, node, 14, newkeylen); hfs_brec_update_parent() 422 hfs_bnode_dump(parent); hfs_brec_update_parent() 425 node = parent; hfs_brec_update_parent() 430 fd->bnode = hfs_bnode_find(tree, new_node->parent); hfs_brec_update_parent() 448 if (!rec && node->parent) hfs_brec_update_parent() 483 new_node->parent = 0; hfs_btree_inc_height() 501 node->parent = tree->root; hfs_btree_inc_height()
|
/linux-4.4.14/arch/avr32/mach-at32ap/ |
H A D | clock.c | 73 if (clk->parent) __clk_enable() 74 __clk_enable(clk->parent); __clk_enable() 104 if (clk->parent) __clk_disable() 105 __clk_disable(clk->parent); __clk_disable() 174 int clk_set_parent(struct clk *clk, struct clk *parent) clk_set_parent() argument 186 ret = clk->set_parent(clk, parent); clk_set_parent() 195 return !clk ? NULL : clk->parent; clk_get_parent() 220 dump_clock(struct clk *parent, struct clkinf *r) dump_clock() argument 228 if (parent->dev && !dev_name(parent->dev) && !parent->users) dump_clock() 234 i = strlen(parent->name); dump_clock() 235 memcpy(buf + nest, parent->name, dump_clock() 239 buf, parent->set_parent ? '*' : ' ', dump_clock() 240 parent->users, dump_clock() 241 parent->users ? "on" : "off", /* NOTE: not-paranoid!! */ dump_clock() 242 clk_get_rate(parent)); dump_clock() 243 if (parent->dev) dump_clock() 244 seq_printf(r->s, ", for %s", dev_name(parent->dev)); dump_clock() 251 if (clk->parent == parent) dump_clock()
|
H A D | clock.h | 24 struct clk *parent; /* Parent clock, if any */ member in struct:clk 29 int (*set_parent)(struct clk *clk, struct clk *parent);
|
/linux-4.4.14/drivers/video/backlight/ |
H A D | locomolcd.c | 36 locomo_gpio_set_dir(locomolcd_dev->dev.parent, LOCOMO_GPIO_LCD_VSHA_ON, 0); locomolcd_on() 37 locomo_gpio_write(locomolcd_dev->dev.parent, LOCOMO_GPIO_LCD_VSHA_ON, 1); locomolcd_on() 40 locomo_gpio_set_dir(locomolcd_dev->dev.parent, LOCOMO_GPIO_LCD_VSHD_ON, 0); locomolcd_on() 41 locomo_gpio_write(locomolcd_dev->dev.parent, LOCOMO_GPIO_LCD_VSHD_ON, 1); locomolcd_on() 47 locomo_gpio_set_dir(locomolcd_dev->dev.parent, LOCOMO_GPIO_LCD_VEE_ON, 0); locomolcd_on() 48 locomo_gpio_write(locomolcd_dev->dev.parent, LOCOMO_GPIO_LCD_VEE_ON, 1); locomolcd_on() 61 locomo_gpio_set_dir(locomolcd_dev->dev.parent, LOCOMO_GPIO_LCD_MOD, 0); locomolcd_on() 62 locomo_gpio_write(locomolcd_dev->dev.parent, LOCOMO_GPIO_LCD_MOD, 1); locomolcd_on() 71 locomo_gpio_write(locomolcd_dev->dev.parent, LOCOMO_GPIO_LCD_VSHA_ON, 0); locomolcd_off() 74 locomo_gpio_write(locomolcd_dev->dev.parent, LOCOMO_GPIO_LCD_VEE_ON, 0); locomolcd_off() 79 locomo_gpio_write(locomolcd_dev->dev.parent, LOCOMO_GPIO_LCD_MOD, 0); locomolcd_off() 80 locomo_gpio_write(locomolcd_dev->dev.parent, LOCOMO_GPIO_LCD_VSHD_ON, 0); locomolcd_off() 186 locomo_gpio_set_dir(ldev->dev.parent, LOCOMO_GPIO_FL_VR, 0); locomolcd_probe()
|
/linux-4.4.14/drivers/video/fbdev/nvidia/ |
H A D | nv_of.c | 31 struct device_node *parent, *dp; nvidia_probe_of_connector() local 38 parent = pci_device_to_OF_node(par->pci_dev); nvidia_probe_of_connector() 39 if (parent == NULL) nvidia_probe_of_connector() 46 (dp = of_get_next_child(parent, dp)) != NULL;) { nvidia_probe_of_connector() 66 pedid = of_get_property(parent, propnames[i], NULL); nvidia_probe_of_connector()
|
/linux-4.4.14/drivers/clk/versatile/ |
H A D | clk-versatile.c | 67 struct device_node *parent; cm_osc_setup() local 69 parent = of_get_parent(np); cm_osc_setup() 70 if (!parent) { cm_osc_setup() 71 pr_err("no parent on core module clock\n"); cm_osc_setup() 74 cm_base = of_iomap(parent, 0); cm_osc_setup()
|
/linux-4.4.14/arch/sparc/kernel/ |
H A D | of_device_32.c | 27 * parent as-is, not with the PCI translate of_bus_pci_match() 62 /* Start with the parent range base. */ of_bus_pci_map() 186 static int __init build_one_resource(struct device_node *parent, build_one_resource() argument 196 ranges = of_get_property(parent, "ranges", &rlen); build_one_resource() 223 /* If we have a ranges property in the parent, use it. */ use_1to1_mapping() 245 struct device *parent) build_device_resources() 253 if (!parent) build_device_resources() 256 p_op = to_platform_device(parent); build_device_resources() 301 pp = dp->parent; build_device_resources() 339 struct device *parent) scan_one_device() 374 build_device_resources(op, parent); scan_one_device() 376 op->dev.parent = parent; scan_one_device() 378 if (!parent) scan_one_device() 393 static void __init scan_tree(struct device_node *dp, struct device *parent) scan_tree() argument 396 struct platform_device *op = scan_one_device(dp, parent); scan_tree() 408 struct platform_device *parent; scan_of_devices() local 410 parent = scan_one_device(root, NULL); scan_of_devices() 411 if (!parent) scan_of_devices() 414 scan_tree(root->child, &parent->dev); scan_of_devices() 244 build_device_resources(struct platform_device *op, struct device *parent) build_device_resources() argument 338 scan_one_device(struct device_node *dp, struct device *parent) scan_one_device() argument
|
H A D | auxio_64.c | 110 if (!strcmp(dp->parent->name, "ebus")) { auxio_probe() 113 } else if (!strcmp(dp->parent->name, "sbus")) { auxio_probe() 117 printk("auxio: Unknown parent bus type [%s]\n", auxio_probe() 118 dp->parent->name); auxio_probe()
|
/linux-4.4.14/tools/include/linux/ |
H A D | rbtree_augmented.h | 125 struct rb_node *parent, struct rb_root *root) __rb_change_child() 127 if (parent) { __rb_change_child() 128 if (parent->rb_left == old) __rb_change_child() 129 parent->rb_left = new; __rb_change_child() 131 parent->rb_right = new; __rb_change_child() 136 extern void __rb_erase_color(struct rb_node *parent, struct rb_root *root, 144 struct rb_node *parent, *rebalance; __rb_erase_augmented() local 156 parent = __rb_parent(pc); __rb_erase_augmented() 157 __rb_change_child(node, child, parent, root); __rb_erase_augmented() 162 rebalance = __rb_is_black(pc) ? parent : NULL; __rb_erase_augmented() 163 tmp = parent; __rb_erase_augmented() 167 parent = __rb_parent(pc); __rb_erase_augmented() 168 __rb_change_child(node, tmp, parent, root); __rb_erase_augmented() 170 tmp = parent; __rb_erase_augmented() 184 parent = successor; __rb_erase_augmented() 203 parent = successor; __rb_erase_augmented() 207 parent->rb_left = child2 = successor->rb_right; __rb_erase_augmented() 211 augment->propagate(parent, successor); __rb_erase_augmented() 222 rb_set_parent_color(child2, parent, RB_BLACK); __rb_erase_augmented() 227 rebalance = __rb_is_black(pc2) ? parent : NULL; __rb_erase_augmented() 124 __rb_change_child(struct rb_node *old, struct rb_node *new, struct rb_node *parent, struct rb_root *root) __rb_change_child() argument
|
/linux-4.4.14/drivers/sh/clk/ |
H A D | core.c | 64 freq = clk->parent->rate * mult / div; clk_rate_table_build() 208 /* Used for clocks that always have same value as the parent clock */ followparent_recalc() 211 return clk->parent ? clk->parent->rate : 0; followparent_recalc() 214 int clk_reparent(struct clk *child, struct clk *parent) clk_reparent() argument 217 if (parent) clk_reparent() 218 list_add(&child->sibling, &parent->children); clk_reparent() 219 child->parent = parent; clk_reparent() 246 if (likely(clk->parent)) __clk_disable() 247 __clk_disable(clk->parent); __clk_disable() 269 if (clk->parent) { __clk_enable() 270 ret = __clk_enable(clk->parent); __clk_enable() 278 if (clk->parent) __clk_enable() 279 __clk_disable(clk->parent); __clk_enable() 312 * Recalculates all root clocks (clocks with no parent), which if the 331 while (clk->parent) lookup_root_clock() 332 clk = clk->parent; lookup_root_clock() 350 if (!clk->parent) { clk_establish_mapping() 432 if (clk->parent) clk_register() 433 list_add(&clk->sibling, &clk->parent->children); clk_register() 504 int clk_set_parent(struct clk *clk, struct clk *parent) clk_set_parent() argument 509 if (!parent || !clk) clk_set_parent() 511 if (clk->parent == parent) clk_set_parent() 517 ret = clk->ops->set_parent(clk, parent); clk_set_parent() 519 ret = clk_reparent(clk, parent); clk_set_parent() 524 pr_debug("set parent of %p to %p (new rate %ld)\n", clk_set_parent() 525 clk, clk->parent, clk->rate); clk_set_parent() 538 return clk->parent; clk_get_parent() 564 struct clk *parent = clk_get_parent(clk); clk_round_parent() local 566 if (!parent) { clk_round_parent() 572 cpufreq_for_each_valid_entry(freq, parent->freq_table) { clk_round_parent() 631 pr_debug("%u / %lu = %lu, / %lu = %lu, best %lu, parent %u\n", clk_round_parent() 657 clkp->parent); clks_core_resume()
|
H A D | cpg.c | 213 if (clk->parent) sh_clk_init_parent() 220 pr_err("sh_clk_init_parent: cannot select parent clock\n"); sh_clk_init_parent() 228 pr_err("sh_clk_init_parent: parent table size failed\n"); sh_clk_init_parent() 233 if (!clk->parent) { sh_clk_init_parent() 234 pr_err("sh_clk_init_parent: unable to set parent"); sh_clk_init_parent() 294 static int sh_clk_div6_set_parent(struct clk *clk, struct clk *parent) sh_clk_div6_set_parent() argument 303 /* Search the parent */ sh_clk_div6_set_parent() 305 if (clk->parent_table[i] == parent) sh_clk_div6_set_parent() 311 ret = clk_reparent(clk, parent); sh_clk_div6_set_parent() 351 static int sh_clk_div4_set_parent(struct clk *clk, struct clk *parent) sh_clk_div4_set_parent() argument 357 /* we really need a better way to determine parent index, but for sh_clk_div4_set_parent() 358 * now assume internal parent comes with CLK_ENABLE_ON_INIT set, sh_clk_div4_set_parent() 362 if (parent->flags & CLK_ENABLE_ON_INIT) sh_clk_div4_set_parent() 367 ret = clk_reparent(clk, parent); sh_clk_div4_set_parent() 418 return clk->parent->rate; fsidiv_recalc() 420 return clk->parent->rate / value; fsidiv_recalc() 450 idx = (clk->parent->rate / rate) & 0xffff; fsidiv_set_rate()
|
/linux-4.4.14/arch/powerpc/kernel/ |
H A D | pci_dn.c | 57 pbus = pbus->parent; pci_bus_to_pdn() 74 struct pci_dn *parent, *pdn; pci_get_pdn_by_devfn() local 94 parent = pci_bus_to_pdn(bus); pci_get_pdn_by_devfn() 95 if (!parent) pci_get_pdn_by_devfn() 98 list_for_each_entry(pdn, &parent->child_list, list) { pci_get_pdn_by_devfn() 110 struct pci_dn *parent, *pdn; pci_get_pdn() local 126 parent = pci_bus_to_pdn(pdev->bus); pci_get_pdn() 127 if (!parent) pci_get_pdn() 130 list_for_each_entry(pdn, &parent->child_list, list) { pci_get_pdn() 140 static struct pci_dn *add_one_dev_pci_data(struct pci_dn *parent, add_one_dev_pci_data() argument 146 /* Except PHB, we always have the parent */ add_one_dev_pci_data() 147 if (!parent) add_one_dev_pci_data() 156 pdn->phb = parent->phb; add_one_dev_pci_data() 157 pdn->parent = parent; add_one_dev_pci_data() 165 list_add_tail(&pdn->list, &parent->child_list); add_one_dev_pci_data() 181 struct pci_dn *parent, *pdn; add_dev_pci_data() local 194 parent = pci_bus_to_pdn(pdev->bus); add_dev_pci_data() 195 if (!parent) add_dev_pci_data() 199 pdn = add_one_dev_pci_data(parent, NULL, add_dev_pci_data() 216 struct pci_dn *parent; remove_dev_pci_data() local 243 parent = pci_bus_to_pdn(pdev->bus); remove_dev_pci_data() 244 if (!parent) remove_dev_pci_data() 254 &parent->child_list, list) { remove_dev_pci_data() 277 struct device_node *parent; update_dn_pci_info() local 309 /* Attach to parent node */ update_dn_pci_info() 312 parent = of_get_parent(dn); update_dn_pci_info() 313 pdn->parent = parent ? PCI_DN(parent) : NULL; update_dn_pci_info() 314 if (pdn->parent) update_dn_pci_info() 315 list_add_tail(&pdn->list, &pdn->parent->child_list); update_dn_pci_info() 368 dn = dn->parent; traverse_pci_devices() 391 if (next != &pdn->parent->child_list) pci_dn_next_one() 394 pdn = pdn->parent; pci_dn_next_one()
|
/linux-4.4.14/fs/ |
H A D | pnode.c | 231 struct mount *parent = last_source->mnt_parent; propagate_one() local 234 done = parent->mnt_master == p; propagate_one() 235 if (done && peers(n, parent)) propagate_one() 339 * other mounts its parent propagates to. 348 struct mount *parent = mnt->mnt_parent; propagate_mount_busy() local 351 if (mnt == parent) propagate_mount_busy() 362 for (m = propagation_next(parent, parent); m; propagate_mount_busy() 363 m = propagation_next(m, parent)) { propagate_mount_busy() 379 struct mount *parent = mnt->mnt_parent; propagate_mount_unlock() local 382 BUG_ON(parent == mnt); propagate_mount_unlock() 384 for (m = propagation_next(parent, parent); m; propagate_mount_unlock() 385 m = propagation_next(m, parent)) { propagate_mount_unlock() 397 struct mount *parent = mnt->mnt_parent; mark_umount_candidates() local 400 BUG_ON(parent == mnt); mark_umount_candidates() 402 for (m = propagation_next(parent, parent); m; mark_umount_candidates() 403 m = propagation_next(m, parent)) { mark_umount_candidates() 414 * parent propagates to. 418 struct mount *parent = mnt->mnt_parent; __propagate_umount() local 421 BUG_ON(parent == mnt); __propagate_umount() 423 for (m = propagation_next(parent, parent); m; __propagate_umount() 424 m = propagation_next(m, parent)) { __propagate_umount()
|
/linux-4.4.14/security/ |
H A D | inode.c | 54 * @parent: a pointer to the parent dentry for this file. This should be a 78 struct dentry *parent, void *data, securityfs_create_file() 97 if (!parent) securityfs_create_file() 98 parent = mount->mnt_root; securityfs_create_file() 100 dir = d_inode(parent); securityfs_create_file() 103 dentry = lookup_one_len(name, parent, strlen(name)); securityfs_create_file() 150 * @parent: a pointer to the parent dentry for this file. This should be a 166 struct dentry *securityfs_create_dir(const char *name, struct dentry *parent) securityfs_create_dir() argument 170 parent, NULL, NULL); securityfs_create_dir() 189 struct dentry *parent; securityfs_remove() local 194 parent = dentry->d_parent; securityfs_remove() 195 if (!parent || d_really_is_negative(parent)) securityfs_remove() 198 mutex_lock(&d_inode(parent)->i_mutex); securityfs_remove() 201 simple_rmdir(d_inode(parent), dentry); securityfs_remove() 203 simple_unlink(d_inode(parent), dentry); securityfs_remove() 206 mutex_unlock(&d_inode(parent)->i_mutex); securityfs_remove() 77 securityfs_create_file(const char *name, umode_t mode, struct dentry *parent, void *data, const struct file_operations *fops) securityfs_create_file() argument
|
H A D | device_cgroup.c | 178 * parent's 185 struct dev_cgroup *parent_dev_cgroup = css_to_devcgroup(css->parent); devcgroup_online() 389 * verify_new_ex - verifies if a new exception is allowed by parent cgroup's permissions 395 * than its parent 418 * parent's exceptions, even slightly verify_new_ex() 434 * be contained completely in an parent's exception to be verify_new_ex() 442 /* parent has an exception that matches the proposed */ verify_new_ex() 453 * must be allowed in the parent device 458 struct dev_cgroup *parent = css_to_devcgroup(childcg->css.parent); parent_has_perm() local 460 if (!parent) parent_has_perm() 462 return verify_new_ex(parent, ex, childcg->behavior); parent_has_perm() 472 * parent. 479 struct dev_cgroup *parent = css_to_devcgroup(childcg->css.parent); parent_allows_removal() local 481 if (!parent) parent_allows_removal() 490 * the parent cgroup parent_allows_removal() 492 return !match_exception_partial(&parent->exceptions, ex->type, parent_allows_removal() 498 * allow based on parent's rules. 499 * @parent: device cgroup's parent 502 static inline int may_allow_all(struct dev_cgroup *parent) may_allow_all() argument 504 if (!parent) may_allow_all() 506 return parent->behavior == DEVCG_DEFAULT_ALLOW; may_allow_all() 511 * revalidates the exceptions based on parent's 519 * exceptions due to a parent's exception change. 601 * parent cgroup has the access you're asking for. 610 struct dev_cgroup *parent = css_to_devcgroup(devcgroup->css.parent); devcgroup_update_access() local 625 if (!may_allow_all(parent)) devcgroup_update_access() 629 if (!parent) devcgroup_update_access() 633 &parent->exceptions); devcgroup_update_access() 730 /* Check if the parent allows removing it first */ devcgroup_update_access()
|
/linux-4.4.14/arch/arm/mach-lpc32xx/ |
H A D | clock.c | 117 * If a clock has a rate of 0, then it inherits it's parent local_return_parent_rate() 121 clk = clk->parent; local_return_parent_rate() 191 .parent = &osc_32KHz, 262 clkin = clk_armpll.parent->rate; local_update_armpll_rate() 368 .parent = &clk_sys, 383 return clk_check_pll_setup(clk_usbpll.parent->rate, local_clk_usbpll_setup() 487 clkin = clk->get_rate(clk->parent); local_usbpll_set_rate() 518 .parent = &osc_main, 534 .parent = &clk_armpll, 539 .parent = &clk_armpll, 561 .parent = &clk_pclk, 568 .parent = &clk_pclk, 575 .parent = &clk_pclk, 582 .parent = &clk_pclk, 589 .parent = &clk_pclk, 596 .parent = &clk_pclk, 603 .parent = &clk_pclk, 610 .parent = &clk_hclk, 618 .parent = &clk_pclk, 631 .parent = &clk_pclk, 639 .parent = &clk_pclk, 647 .parent = &clk_pclk, 655 .parent = &clk_pclk, 663 .parent = &clk_hclk, 671 .parent = &clk_hclk, 679 .parent = &clk_pclk, 687 .parent = &clk_hclk, 695 .parent = &clk_hclk, 703 .parent = &osc_32KHz, 711 .parent = &clk_hclk, 720 .parent = &clk_hclk, 730 .parent = &clk_hclk, 738 .parent = &clk_hclk, 747 .parent = &clk_hclk, 757 .parent = &osc_32KHz, 777 .parent = &clk_usbpll, 812 .parent = &clk_usbpll, 823 .parent = &clk_usbpll, 851 .parent = &osc_32KHz, 875 clk->rate = clk->get_rate(clk->parent) / divider; adc_onoff_enable() 886 .parent = &clk_pclk, 926 /* Get the parent clock rate */ mmc_get_rate() 927 rate = clk->parent->get_rate(clk->parent); mmc_get_rate() 942 /* Get the parent clock rate */ mmc_round_rate() 943 prate = clk->parent->get_rate(clk->parent); mmc_round_rate() 960 prate = clk->parent->get_rate(clk->parent); mmc_set_rate() 975 .parent = &clk_armpll, 995 rate = clk->parent->get_rate(clk->parent); clcd_get_rate() 1017 prate = clk->parent->get_rate(clk->parent); clcd_set_rate() 1042 prate = clk->parent->get_rate(clk->parent); clcd_round_rate() 1058 .parent = &clk_hclk, 1077 /* Check parent clocks, they may need to be disabled too */ local_clk_disable() 1078 if (clk->parent) local_clk_disable() 1079 local_clk_disable(clk->parent); local_clk_disable() 1087 /* Enable parent clocks first and update use counts */ local_clk_enable() 1088 if (clk->parent) local_clk_enable() 1089 ret = local_clk_enable(clk->parent); local_clk_enable() 1098 else if (clk->parent) local_clk_enable() 1099 local_clk_disable(clk->parent); local_clk_enable() 1177 * clk_set_parent - set the parent clock source for this clock 1179 int clk_set_parent(struct clk *clk, struct clk *parent) clk_set_parent() argument 1187 * clk_get_parent - get the parent clock source for this clock 1191 return clk->parent; clk_get_parent() 1245 * parent clock used for the ARM PLL and is used to derive clk_init() 1249 clk_sys.parent = &osc_main; clk_init() 1251 clk_sys.parent = &osc_pll397; clk_init() 1253 clk_sys.rate = clk_sys.parent->rate; clk_init() 1259 clk_hclk.rate = clk_hclk.parent->rate / clk_get_hclk_div(); clk_init() 1260 clk_pclk.rate = clk_pclk.parent->rate / clk_get_pclk_div(); clk_init()
|
/linux-4.4.14/fs/hpfs/ |
H A D | dentry.c | 12 * Note: the dentry argument is the parent dentry. 37 static int hpfs_compare_dentry(const struct dentry *parent, const struct dentry *dentry, hpfs_compare_dentry() argument 53 if (hpfs_compare_names(parent->d_sb, str, al, name->name, bl, 0)) hpfs_compare_dentry()
|
/linux-4.4.14/tools/testing/nvdimm/test/ |
H A D | iomap.c | 163 struct resource *parent, resource_size_t start, nfit_test_request_region() 168 if (parent == &iomem_resource) { nfit_test_request_region() 186 res->flags = resource_type(parent); nfit_test_request_region() 193 return __devm_request_region(dev, parent, start, n, name); nfit_test_request_region() 194 return __request_region(parent, start, n, name, flags); nfit_test_request_region() 197 struct resource *__wrap___request_region(struct resource *parent, __wrap___request_region() argument 201 return nfit_test_request_region(NULL, parent, start, n, name, flags); __wrap___request_region() 206 struct resource *parent, resource_size_t start, __wrap___devm_request_region() 211 return nfit_test_request_region(dev, parent, start, n, name, 0); __wrap___devm_request_region() 215 void __wrap___release_region(struct resource *parent, resource_size_t start, __wrap___release_region() argument 220 if (parent == &iomem_resource) { __wrap___release_region() 235 __release_region(parent, start, n); __wrap___release_region() 162 nfit_test_request_region(struct device *dev, struct resource *parent, resource_size_t start, resource_size_t n, const char *name, int flags) nfit_test_request_region() argument 205 __wrap___devm_request_region(struct device *dev, struct resource *parent, resource_size_t start, resource_size_t n, const char *name) __wrap___devm_request_region() argument
|
/linux-4.4.14/drivers/clk/ |
H A D | clk.c | 49 struct clk_core *parent; member in struct:clk_core 301 return hw->core->parent ? hw->core->parent->hw : NULL; clk_hw_get_parent() 365 struct clk_core *parent; clk_hw_get_parent_by_index() local 367 parent = clk_core_get_parent_by_index(hw->core, index); clk_hw_get_parent_by_index() 369 return !parent ? NULL : parent->hw; clk_hw_get_parent_by_index() 392 if (!core->parent) clk_core_get_rate_nolock() 457 struct clk_core *core = hw->core, *parent, *best_parent = NULL; clk_mux_determine_rate_flags() local 462 /* if NO_REPARENT flag set, pass through to current parent */ clk_mux_determine_rate_flags() 464 parent = core->parent; clk_mux_determine_rate_flags() 466 ret = __clk_determine_rate(parent ? parent->hw : NULL, clk_mux_determine_rate_flags() 472 } else if (parent) { clk_mux_determine_rate_flags() 473 best = clk_core_get_rate_nolock(parent); clk_mux_determine_rate_flags() 481 /* find the parent that can provide the fastest rate <= rate */ clk_mux_determine_rate_flags() 484 parent = clk_core_get_parent_by_index(core, i); clk_mux_determine_rate_flags() 485 if (!parent) clk_mux_determine_rate_flags() 490 ret = __clk_determine_rate(parent->hw, &parent_req); clk_mux_determine_rate_flags() 494 parent_req.rate = clk_core_get_rate_nolock(parent); clk_mux_determine_rate_flags() 499 best_parent = parent; clk_mux_determine_rate_flags() 548 * Helper for finding best parent to provide a given frequency. This can be used 589 clk_core_unprepare(core->parent); clk_core_unprepare() 624 ret = clk_core_prepare(core->parent); clk_core_prepare() 636 clk_core_unprepare(core->parent); clk_core_prepare() 693 clk_core_disable(core->parent); clk_core_disable() 734 ret = clk_core_enable(core->parent); clk_core_enable() 747 clk_core_disable(core->parent); clk_core_enable() 788 struct clk_core *parent; clk_core_round_rate_nolock() local 796 parent = core->parent; clk_core_round_rate_nolock() 797 if (parent) { clk_core_round_rate_nolock() 798 req->best_parent_hw = parent->hw; clk_core_round_rate_nolock() 799 req->best_parent_rate = parent->rate; clk_core_round_rate_nolock() 815 return clk_core_round_rate_nolock(parent, req); clk_core_round_rate_nolock() 866 * then the parent rate is returned. 933 * parent. 942 if (core->parent) __clk_recalc_accuracies() 943 parent_accuracy = core->parent->accuracy; __clk_recalc_accuracies() 1002 * it is assumed that the clock will take on the rate of its parent. 1017 if (core->parent) __clk_recalc_rates() 1018 parent_rate = core->parent->rate; __clk_recalc_rates() 1066 struct clk_core *parent) clk_fetch_parent_index() 1078 * find index of new parent clock using cached parent ptrs, clk_fetch_parent_index() 1083 if (core->parents[i] == parent) clk_fetch_parent_index() 1089 if (!strcmp(core->parent_names[i], parent->name)) { clk_fetch_parent_index() 1090 core->parents[i] = clk_core_lookup(parent->name); clk_fetch_parent_index() 1134 core->parent = new_parent; clk_reparent() 1138 struct clk_core *parent) __clk_set_parent_before() 1141 struct clk_core *old_parent = core->parent; __clk_set_parent_before() 1153 * parent and also protect against a race with clk_enable() by __clk_set_parent_before() 1154 * forcing the clock and the new parent on. This ensures that all __clk_set_parent_before() 1161 clk_core_prepare(parent); __clk_set_parent_before() 1163 clk_core_enable(parent); __clk_set_parent_before() 1170 clk_reparent(core, parent); __clk_set_parent_before() 1177 struct clk_core *parent, __clk_set_parent_after() 1195 static int __clk_set_parent(struct clk_core *core, struct clk_core *parent, __clk_set_parent() argument 1202 old_parent = __clk_set_parent_before(core, parent); __clk_set_parent() 1204 trace_clk_set_parent(core, parent); __clk_set_parent() 1207 if (parent && core->ops->set_parent) __clk_set_parent() 1210 trace_clk_set_parent_complete(core, parent); __clk_set_parent() 1216 __clk_set_parent_after(core, old_parent, parent); __clk_set_parent() 1221 __clk_set_parent_after(core, parent, old_parent); __clk_set_parent() 1229 * @parent_rate: the "future" rate of clk's parent 1238 * take on the rate of its parent. 1279 /* include clk in new parent's PRE_RATE_CHANGE notifications */ clk_calc_subtree() 1281 if (new_parent && new_parent != core->parent) clk_calc_subtree() 1298 struct clk_core *old_parent, *parent; clk_calc_new_rates() local 1310 /* save parent rate, if it exists */ clk_calc_new_rates() 1311 parent = old_parent = core->parent; clk_calc_new_rates() 1312 if (parent) clk_calc_new_rates() 1313 best_parent_rate = parent->rate; clk_calc_new_rates() 1317 /* find the closest rate and parent clk/rate */ clk_calc_new_rates() 1324 if (parent) { clk_calc_new_rates() 1325 req.best_parent_hw = parent->hw; clk_calc_new_rates() 1326 req.best_parent_rate = parent->rate; clk_calc_new_rates() 1338 parent = req.best_parent_hw ? req.best_parent_hw->core : NULL; clk_calc_new_rates() 1348 } else if (!parent || !(core->flags & CLK_SET_RATE_PARENT)) { clk_calc_new_rates() 1349 /* pass-through clock without adjustable parent */ clk_calc_new_rates() 1353 /* pass-through clock with adjustable parent */ clk_calc_new_rates() 1354 top = clk_calc_new_rates(parent, rate); clk_calc_new_rates() 1355 new_rate = parent->new_rate; clk_calc_new_rates() 1359 /* some clocks must be gated to change parent */ clk_calc_new_rates() 1360 if (parent != old_parent && clk_calc_new_rates() 1367 /* try finding the new parent index */ clk_calc_new_rates() 1368 if (parent && core->num_parents > 1) { clk_calc_new_rates() 1369 p_index = clk_fetch_parent_index(core, parent); clk_calc_new_rates() 1371 pr_debug("%s: clk %s can not be parent of clk %s\n", clk_calc_new_rates() 1372 __func__, parent->name, core->name); clk_calc_new_rates() 1377 if ((core->flags & CLK_SET_RATE_PARENT) && parent && clk_calc_new_rates() 1378 best_parent_rate != parent->rate) clk_calc_new_rates() 1379 top = clk_calc_new_rates(parent, best_parent_rate); clk_calc_new_rates() 1382 clk_calc_subtree(core, new_rate, parent, p_index); clk_calc_new_rates() 1443 else if (core->parent) clk_change_rate() 1444 best_parent_rate = core->parent->rate; clk_change_rate() 1446 if (core->new_parent && core->new_parent != core->parent) { clk_change_rate() 1541 * propagate up to clk's parent; whether or not this happens depends on the 1543 * after calling .round_rate then upstream parent propagation is ignored. If 1544 * *parent_rate comes back with a new rate for clk's parent then we propagate 1545 * up to clk's parent and set its rate. Upward propagation will continue 1641 * clk_get_parent - return the parent of a clk 1642 * @clk: the clk whose parent gets returned 1644 * Simply returns clk->parent. Returns NULL if clk is NULL. 1648 struct clk *parent; clk_get_parent() local 1655 parent = !clk->core->parent ? NULL : clk->core->parent->hw->clk; clk_get_parent() 1658 return parent; clk_get_parent() 1664 * optional for single-parent clocks. Always call .get_parent if it is 1665 * available and WARN if it is missing for multi-parent clocks. 1667 * For single-parent clocks without .get_parent, first check to see if the 1682 if (IS_ERR_OR_NULL(core->parent)) __clk_init_parent() 1683 core->parent = clk_core_lookup(core->parent_names[0]); __clk_init_parent() 1684 ret = core->parent; __clk_init_parent() 1690 "%s: multi-parent clocks must implement .get_parent\n", __clk_init_parent() 1696 * Do our best to cache parent clocks in core->parents. This prevents __clk_init_parent() 1697 * unnecessary and expensive lookups. We don't set core->parent here; __clk_init_parent() 1731 * clk_has_parent - check if a clock is a possible parent for another 1733 * @parent: parent clock source 1736 * the parent of another without actually changing the parent. 1738 * Returns true if @parent is a possible parent for @clk, false otherwise. 1740 bool clk_has_parent(struct clk *clk, struct clk *parent) clk_has_parent() argument 1746 if (!clk || !parent) clk_has_parent() 1750 parent_core = parent->core; clk_has_parent() 1752 /* Optimize for the case where the parent is already the parent. */ clk_has_parent() 1753 if (core->parent == parent_core) clk_has_parent() 1764 static int clk_core_set_parent(struct clk_core *core, struct clk_core *parent) clk_core_set_parent() argument 1776 if (core->parent == parent) clk_core_set_parent() 1779 /* verify ops for for multi-parent clks */ clk_core_set_parent() 1785 /* check that we are allowed to re-parent if the clock is in use */ clk_core_set_parent() 1791 /* try finding the new parent index */ clk_core_set_parent() 1792 if (parent) { clk_core_set_parent() 1793 p_index = clk_fetch_parent_index(core, parent); clk_core_set_parent() 1794 p_rate = parent->rate; clk_core_set_parent() 1796 pr_debug("%s: clk %s can not be parent of clk %s\n", clk_core_set_parent() 1797 __func__, parent->name, core->name); clk_core_set_parent() 1810 /* do the re-parent */ clk_core_set_parent() 1811 ret = __clk_set_parent(core, parent, p_index); clk_core_set_parent() 1828 * clk_set_parent - switch the parent of a mux clk 1830 * @parent: the new input to clk 1832 * Re-parent clk to use parent as its new input source. If clk is in 1838 * After successfully changing clk's parent clk_set_parent will update the 1844 int clk_set_parent(struct clk *clk, struct clk *parent) clk_set_parent() argument 1849 return clk_core_set_parent(clk->core, parent ? parent->core : NULL); clk_set_parent() 1870 * clock accuracy. A parent clock phase attribute does not have an 2293 * parent and rate and sets them both. 2374 core->parent = __clk_init_parent(core); __clk_init() 2377 * Populate core->parent if parent has already been __clk_init'd. If __clk_init() 2378 * parent has not yet been __clk_init'd then place clk in the orphan __clk_init() 2383 * clocks and re-parent any that are children of the clock currently __clk_init() 2386 if (core->parent) { __clk_init() 2388 &core->parent->children); __clk_init() 2389 core->orphan = core->parent->orphan; __clk_init() 2401 * fallback is to use the parent's accuracy. If a clock doesn't have a __clk_init() 2402 * parent (or is orphaned) then accuracy is set to zero (perfect __clk_init() 2407 __clk_get_accuracy(core->parent)); __clk_init() 2408 else if (core->parent) __clk_init() 2409 core->accuracy = core->parent->accuracy; __clk_init() 2415 * Since a phase is by definition relative to its parent, just __clk_init() 2426 * parent's rate. If a clock doesn't have a parent (or is orphaned) __clk_init() 2431 clk_core_get_rate_nolock(core->parent)); __clk_init() 2432 else if (core->parent) __clk_init() 2433 rate = core->parent->rate; __clk_init() 3142 * This function looks for a parent clock. If there is one, then it 3143 * checks that the provider for this parent clock was initialized, in 3144 * this case the parent clock will be ready. 3153 /* this parent is ready we can check the next one */ parent_ready() 3160 /* at least one parent is not ready, we exit now */ parent_ready() 3167 * no more parent. As we didn't exit yet, then the parent_ready() 3168 * previous parent are ready. If there is no clock parent_ready() 3169 * parent, no need to wait for them, then we can parent_ready() 3198 struct clock_provider *parent; of_clk_init() local 3200 parent = kzalloc(sizeof(*parent), GFP_KERNEL); of_clk_init() 3201 if (!parent) { of_clk_init() 3212 parent->clk_init_cb = match->data; of_clk_init() 3213 parent->np = of_node_get(np); of_clk_init() 3214 list_add_tail(&parent->node, &clk_provider_list); of_clk_init() 3237 * in case the clock parent was not mandatory of_clk_init() 1065 clk_fetch_parent_index(struct clk_core *core, struct clk_core *parent) clk_fetch_parent_index() argument 1137 __clk_set_parent_before(struct clk_core *core, struct clk_core *parent) __clk_set_parent_before() argument 1176 __clk_set_parent_after(struct clk_core *core, struct clk_core *parent, struct clk_core *old_parent) __clk_set_parent_after() argument
|
H A D | clk-cdce706.c | 73 unsigned parent; member in struct:cdce706_hw_data 152 hwd->parent = index; cdce706_clkin_set_parent() 160 return hwd->parent; cdce706_clkin_get_parent() 267 if (hwd->parent == index) cdce706_divider_set_parent() 269 hwd->parent = index; cdce706_divider_set_parent() 280 return hwd->parent; cdce706_divider_get_parent() 316 struct clk *gp_clk = cdce->clkin_clk[cdce->clkin[0].parent]; cdce706_divider_round_rate() 351 "%s, altering parent rate: %lu -> %lu\n", cdce706_divider_round_rate() 408 if (hwd->parent == index) cdce706_clkout_set_parent() 410 hwd->parent = index; cdce706_clkout_set_parent() 420 return hwd->parent; cdce706_clkout_get_parent() 487 struct clk *parent = devm_clk_get(&cdce->client->dev, cdce706_register_clkin() local 490 if (IS_ERR(parent)) { cdce706_register_clkin() 493 cdce->clkin_name[i] = __clk_get_name(parent); cdce706_register_clkin() 494 cdce->clkin_clk[i] = parent; cdce706_register_clkin() 506 cdce->clkin[0].parent = !!(clock & CDCE706_CLKIN_CLOCK_MASK); cdce706_register_clkin() 574 cdce->divider[i].parent = cdce706_register_dividers() 583 "%s: i: %u, parent: %u, div: %u\n", __func__, i, cdce706_register_dividers() 584 cdce->divider[i].parent, cdce->divider[i].div); cdce706_register_dividers() 610 cdce->clkout[i].parent = val & CDCE706_CLKOUT_DIVIDER_MASK; cdce706_register_clkouts() 612 "%s: i: %u, parent: %u\n", __func__, i, cdce706_register_clkouts() 613 cdce->clkout[i].parent); cdce706_register_clkouts() 628 struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); cdce706_probe()
|
/linux-4.4.14/arch/arm/mach-ep93xx/ |
H A D | clock.c | 31 struct clk *parent; member in struct:clk 54 .parent = &clk_xtali, 61 .parent = &clk_xtali, 68 .parent = &clk_xtali, 75 .parent = &clk_xtali, 78 .parent = &clk_pll1, 81 .parent = &clk_pll1, 84 .parent = &clk_pll1, 87 .parent = &clk_xtali, 90 .parent = &clk_pll2, 95 .parent = &clk_xtali, 102 .parent = &clk_xtali, 106 .parent = &clk_xtali, 126 .parent = &clk_i2s_mclk, 134 .parent = &clk_i2s_sclk, 142 .parent = &clk_h, 147 .parent = &clk_h, 152 .parent = &clk_h, 157 .parent = &clk_h, 162 .parent = &clk_h, 167 .parent = &clk_h, 172 .parent = &clk_h, 177 .parent = &clk_h, 182 .parent = &clk_h, 187 .parent = &clk_h, 192 .parent = &clk_h, 197 .parent = &clk_h, 242 if (clk->parent) __clk_enable() 243 __clk_enable(clk->parent); __clk_enable() 287 if (clk->parent) __clk_disable() 288 __clk_disable(clk->parent); __clk_disable() 307 unsigned long rate = clk_get_rate(clk->parent); get_uart_rate() 396 clk->parent = mclk; calc_clk_div()
|
/linux-4.4.14/drivers/clk/ux500/ |
H A D | abx500-clk.c | 103 struct ab8500 *parent = dev_get_drvdata(pdev->dev.parent); abx500_clk_probe() local 106 if (is_ab8500(parent) || is_ab8505(parent)) { abx500_clk_probe() 108 } else if (is_ab8540(parent)) { abx500_clk_probe() 110 } else if (is_ab9540(parent)) { abx500_clk_probe()
|
/linux-4.4.14/drivers/of/ |
H A D | platform.c | 70 * parent nodes until a unique name can be derived. 78 /* Construct the name, using parent nodes if necessary to ensure uniqueness */ of_device_make_bus_id() 79 while (node->parent) { of_device_make_bus_id() 95 node = node->parent; of_device_make_bus_id() 103 * @parent: Parent device. 107 struct device *parent) of_device_alloc() 142 dev->dev.parent = parent ? : &platform_bus; of_device_alloc() 163 * @parent: Linux device model parent device. 172 struct device *parent) of_platform_device_create_pdata() 180 dev = of_device_alloc(np, bus_id, parent); of_platform_device_create_pdata() 206 * @parent: Linux device model parent device. 213 struct device *parent) of_platform_device_create() 215 return of_platform_device_create_pdata(np, bus_id, NULL, parent); of_platform_device_create() 223 struct device *parent) of_amba_device_create() 244 dev->dev.parent = parent ? : &platform_bus; of_amba_device_create() 287 struct device *parent) of_amba_device_create() 322 * @parent: parent for new device, or NULL for top level. 331 struct device *parent, bool strict) of_platform_bus_create() 358 of_amba_device_create(bus, bus_id, platform_data, parent); of_platform_bus_create() 362 dev = of_platform_device_create_pdata(bus, bus_id, platform_data, parent); of_platform_bus_create() 380 * @root: parent of the first level to probe or NULL for the root of the tree 382 * @parent: parent to hook devices from, NULL for toplevel 389 struct device *parent) of_platform_bus_probe() 403 rc = of_platform_bus_create(root, matches, NULL, parent, false); for_each_child_of_node() 407 rc = of_platform_bus_create(child, matches, NULL, parent, false); for_each_child_of_node() 421 * @root: parent of the first level to probe or NULL for the root of the tree 424 * @parent: parent to hook devices from, NULL for toplevel 441 struct device *parent) of_platform_populate() 451 rc = of_platform_bus_create(child, matches, lookup, parent, true); for_each_child_of_node() 466 struct device *parent) of_platform_default_populate() 469 parent); of_platform_default_populate() 498 * @parent: device which children will be removed 508 void of_platform_depopulate(struct device *parent) of_platform_depopulate() argument 510 if (parent->of_node && of_node_check_flag(parent->of_node, OF_POPULATED_BUS)) { of_platform_depopulate() 511 device_for_each_child(parent, NULL, of_platform_device_destroy); of_platform_depopulate() 512 of_node_clear_flag(parent->of_node, OF_POPULATED_BUS); of_platform_depopulate() 527 /* verify that the parent is a bus */ of_platform_notify() 528 if (!of_node_check_flag(rd->dn->parent, OF_POPULATED_BUS)) of_platform_notify() 536 pdev_parent = of_find_device_by_node(rd->dn->parent); of_platform_notify() 105 of_device_alloc(struct device_node *np, const char *bus_id, struct device *parent) of_device_alloc() argument 168 of_platform_device_create_pdata( struct device_node *np, const char *bus_id, void *platform_data, struct device *parent) of_platform_device_create_pdata() argument 211 of_platform_device_create(struct device_node *np, const char *bus_id, struct device *parent) of_platform_device_create() argument 220 of_amba_device_create(struct device_node *node, const char *bus_id, void *platform_data, struct device *parent) of_amba_device_create() argument 284 of_amba_device_create(struct device_node *node, const char *bus_id, void *platform_data, struct device *parent) of_amba_device_create() argument 328 of_platform_bus_create(struct device_node *bus, const struct of_device_id *matches, const struct of_dev_auxdata *lookup, struct device *parent, bool strict) of_platform_bus_create() argument 387 of_platform_bus_probe(struct device_node *root, const struct of_device_id *matches, struct device *parent) of_platform_bus_probe() argument 438 of_platform_populate(struct device_node *root, const struct of_device_id *matches, const struct of_dev_auxdata *lookup, struct device *parent) of_platform_populate() argument 464 of_platform_default_populate(struct device_node *root, const struct of_dev_auxdata *lookup, struct device *parent) of_platform_default_populate() argument
|
H A D | fdt_address.c | 110 static int __init fdt_translate_one(const void *blob, int parent, fdt_translate_one() argument 120 ranges = fdt_getprop(blob, parent, rprop, &rlen); fdt_translate_one() 147 of_dump_addr("FDT: parent translation for:", addr, pna); fdt_translate_one() 150 /* Translate it into parent bus space */ fdt_translate_one() 166 int parent, len; fdt_translate_address() local 183 /* Get parent & match bus type */ fdt_translate_address() 184 parent = fdt_parent_offset(blob, node_offset); fdt_translate_address() 185 if (parent < 0) fdt_translate_address() 190 bus->count_cells(blob, parent, &na, &ns); fdt_translate_address() 199 na, ns, fdt_get_name(blob, parent, NULL)); fdt_translate_address() 204 /* Switch to parent bus */ fdt_translate_address() 205 node_offset = parent; fdt_translate_address() 206 parent = fdt_parent_offset(blob, node_offset); fdt_translate_address() 209 if (parent < 0) { fdt_translate_address() 215 /* Get new parent bus and counts */ fdt_translate_address() 217 pbus->count_cells(blob, parent, &pna, &pns); fdt_translate_address() 224 pr_debug("FDT: parent bus (na=%d, ns=%d) on %s\n", fdt_translate_address() 225 pna, pns, fdt_get_name(blob, parent, NULL)); fdt_translate_address()
|
H A D | pdt.c | 44 plen = strlen(dp->parent->full_name); of_pdt_build_full_name() 49 strcpy(n, dp->parent->full_name); of_pdt_build_full_name() 50 if (!of_node_is_root(dp->parent)) { of_pdt_build_full_name() 79 buf = prom_early_alloc(strlen(dp->parent->full_name) + of_pdt_build_full_name() 82 of_node_is_root(dp->parent) ? "" : dp->parent->full_name, of_pdt_build_full_name() 170 struct device_node *parent) of_pdt_create_node() 180 dp->parent = parent; of_pdt_create_node() 193 static struct device_node * __init of_pdt_build_tree(struct device_node *parent, of_pdt_build_tree() argument 200 dp = of_pdt_create_node(node, parent); of_pdt_build_tree() 169 of_pdt_create_node(phandle node, struct device_node *parent) of_pdt_create_node() argument
|
H A D | irq.c | 50 * of_irq_find_parent - Given a device node, find its interrupt parent node 53 * Returns a pointer to the interrupt parent node, or NULL if the interrupt 54 * parent could not be determined. 65 parp = of_get_property(child, "interrupt-parent", NULL); of_irq_find_parent() 84 * @parent: the device interrupt parent 93 * node exist for the parent. It takes an interrupt specifier structure as 127 pr_debug(" -> no parent found !\n"); of_irq_parse_raw() 137 * trick of looking for the parent here as some device-trees rely on it of_irq_parse_raw() 184 /* No interrupt map, check for an interrupt parent */ of_irq_parse_raw() 186 pr_debug(" -> no map, getting parent\n"); of_irq_parse_raw() 207 /* Get the interrupt parent */ of_irq_parse_raw() 217 pr_debug(" -> imap parent not found !\n"); of_irq_parse_raw() 225 * parent of_irq_parse_raw() 229 pr_debug(" -> parent lacks #interrupt-cells!\n"); of_irq_parse_raw() 264 /* Iterate again with new parent */ of_irq_parse_raw() 266 pr_debug(" -> new parent: %s\n", of_node_full_name(newpar)); of_irq_parse_raw() 320 /* Look for the interrupt parent. */ of_irq_parse_one() 489 struct device_node *np, *parent = NULL; of_irq_init() local 502 * pointer, interrupt-parent device_node etc. for_each_matching_node() 518 * The root irq controller is the one without an interrupt-parent. 524 * Process all controllers with the current 'parent'. 525 * First pass will be looking for NULL as the parent. 526 * The assumption is that NULL parent means a root controller. 533 if (desc->interrupt_parent != parent) 545 pr_debug("of_irq_init: init %s @ %p, parent %p\n", 556 * This one is now set up; add it to the parent list so 562 /* Get the next pending parent that might have children */ 570 parent = desc->dev; 599 * Walk up the device parent links looking for one with a __of_msi_map_rid() 602 for (parent_dev = dev; parent_dev; parent_dev = parent_dev->parent) { __of_msi_map_rid() 721 * of_msi_get_domain - Use msi-parent to find the relevant MSI domain 726 * Parse the msi-parent property (both the simple and the complex 738 /* Check for a single msi-parent property */ of_msi_get_domain() 739 msi_np = of_parse_phandle(np, "msi-parent", 0); of_msi_get_domain() 748 /* Check for the complex msi-parent version */ of_msi_get_domain() 752 while (!of_parse_phandle_with_args(np, "msi-parent", of_msi_get_domain()
|
/linux-4.4.14/drivers/usb/host/ |
H A D | sl811_cs.c | 54 dev->parent = NULL; release_platform_dev() 89 static int sl811_hc_init(struct device *parent, resource_size_t base_addr, sl811_hc_init() argument 92 if (platform_dev.dev.parent) sl811_hc_init() 94 platform_dev.dev.parent = parent; sl811_hc_init() 121 /* This points to the parent local_info_t struct */ sl811_cs_detach() 144 struct device *parent = &link->dev; sl811_cs_config() local 166 if (sl811_hc_init(parent, link->resource[0]->start, link->irq) sl811_cs_config()
|
/linux-4.4.14/include/trace/events/ |
H A D | clk.h | 131 TP_PROTO(struct clk_core *core, struct clk_core *parent), 133 TP_ARGS(core, parent), 137 __string( pname, parent->name ) 142 __assign_str(pname, parent->name); 150 TP_PROTO(struct clk_core *core, struct clk_core *parent), 152 TP_ARGS(core, parent) 157 TP_PROTO(struct clk_core *core, struct clk_core *parent), 159 TP_ARGS(core, parent)
|
/linux-4.4.14/arch/powerpc/sysdev/ |
H A D | scom.c | 41 p = of_get_property(par, "scom-parent", NULL); scom_find_parent() 55 struct device_node *parent; scom_map_device() local 61 parent = scom_find_parent(dev); scom_map_device() 63 if (parent == NULL) scom_map_device() 68 * to a random device-tree node with an explicit scom-parent scom_map_device() 76 sprop = of_get_property(parent, "#scom-cells", NULL); scom_map_device() 77 if (!prop && parent == dev->parent) { scom_map_device() 79 sprop = of_get_property(parent, "#address-cells", NULL); scom_map_device() 92 ret = scom_map(parent, reg, cnt); scom_map_device() 93 of_node_put(parent); scom_map_device()
|
/linux-4.4.14/tools/lib/traceevent/ |
H A D | plugin_function.c | 39 .name = "parent", 42 "Print parent of functions for function events", 88 static int add_and_get_index(const char *parent, const char *child, int cpu) add_and_get_index() argument 113 if (strcmp(parent, fstack[cpu].stack[i]) == 0) { add_and_get_index() 120 add_child(&fstack[cpu], parent, 0); add_and_get_index() 132 const char *parent; function_handler() local 143 parent = pevent_find_function(pevent, pfunction); function_handler() 145 if (parent && ftrace_indent->set) function_handler() 146 index = add_and_get_index(parent, func, record->cpu); function_handler() 157 if (parent) function_handler() 158 trace_seq_printf(s, "%s", parent); function_handler()
|
/linux-4.4.14/crypto/ |
H A D | hmac.c | 44 static int hmac_setkey(struct crypto_shash *parent, hmac_setkey() argument 47 int bs = crypto_shash_blocksize(parent); hmac_setkey() 48 int ds = crypto_shash_digestsize(parent); hmac_setkey() 49 int ss = crypto_shash_statesize(parent); hmac_setkey() 50 char *ipad = crypto_shash_ctx_aligned(parent); hmac_setkey() 59 shash->flags = crypto_shash_get_flags(parent) hmac_setkey() 126 struct crypto_shash *parent = pdesc->tfm; hmac_final() local 127 int ds = crypto_shash_digestsize(parent); hmac_final() 128 int ss = crypto_shash_statesize(parent); hmac_final() 129 char *opad = crypto_shash_ctx_aligned(parent) + ss; hmac_final() 143 struct crypto_shash *parent = pdesc->tfm; hmac_finup() local 144 int ds = crypto_shash_digestsize(parent); hmac_finup() 145 int ss = crypto_shash_statesize(parent); hmac_finup() 146 char *opad = crypto_shash_ctx_aligned(parent) + ss; hmac_finup() 158 struct crypto_shash *parent = __crypto_shash_cast(tfm); hmac_init_tfm() local 162 struct hmac_ctx *ctx = hmac_ctx(parent); hmac_init_tfm() 168 parent->descsize = sizeof(struct shash_desc) + hmac_init_tfm()
|
H A D | xcbc.c | 33 * | <parent tfm> 61 static int crypto_xcbc_digest_setkey(struct crypto_shash *parent, crypto_xcbc_digest_setkey() argument 64 unsigned long alignmask = crypto_shash_alignmask(parent); crypto_xcbc_digest_setkey() 65 struct xcbc_tfm_ctx *ctx = crypto_shash_ctx(parent); crypto_xcbc_digest_setkey() 66 int bs = crypto_shash_blocksize(parent); crypto_xcbc_digest_setkey() 98 struct crypto_shash *parent = pdesc->tfm; crypto_xcbc_digest_update() local 99 unsigned long alignmask = crypto_shash_alignmask(parent); crypto_xcbc_digest_update() 100 struct xcbc_tfm_ctx *tctx = crypto_shash_ctx(parent); crypto_xcbc_digest_update() 103 int bs = crypto_shash_blocksize(parent); crypto_xcbc_digest_update() 144 struct crypto_shash *parent = pdesc->tfm; crypto_xcbc_digest_final() local 145 unsigned long alignmask = crypto_shash_alignmask(parent); crypto_xcbc_digest_final() 146 struct xcbc_tfm_ctx *tctx = crypto_shash_ctx(parent); crypto_xcbc_digest_final() 149 int bs = crypto_shash_blocksize(parent); crypto_xcbc_digest_final()
|
H A D | cmac.c | 26 * | <parent tfm> 54 static int crypto_cmac_digest_setkey(struct crypto_shash *parent, crypto_cmac_digest_setkey() argument 57 unsigned long alignmask = crypto_shash_alignmask(parent); crypto_cmac_digest_setkey() 58 struct cmac_tfm_ctx *ctx = crypto_shash_ctx(parent); crypto_cmac_digest_setkey() 59 unsigned int bs = crypto_shash_blocksize(parent); crypto_cmac_digest_setkey() 124 struct crypto_shash *parent = pdesc->tfm; crypto_cmac_digest_update() local 125 unsigned long alignmask = crypto_shash_alignmask(parent); crypto_cmac_digest_update() 126 struct cmac_tfm_ctx *tctx = crypto_shash_ctx(parent); crypto_cmac_digest_update() 129 int bs = crypto_shash_blocksize(parent); crypto_cmac_digest_update() 170 struct crypto_shash *parent = pdesc->tfm; crypto_cmac_digest_final() local 171 unsigned long alignmask = crypto_shash_alignmask(parent); crypto_cmac_digest_final() 172 struct cmac_tfm_ctx *tctx = crypto_shash_ctx(parent); crypto_cmac_digest_final() 175 int bs = crypto_shash_blocksize(parent); crypto_cmac_digest_final()
|
/linux-4.4.14/scripts/kconfig/ |
H A D | qconf.h | 48 ConfigView* parent(void) const parent() function in class:ConfigList 50 return (ConfigView*)Parent::parent(); parent() 105 void updateMenuList(ConfigItem *parent, struct menu*); 106 void updateMenuList(ConfigList *parent, struct menu*); 126 ConfigItem(ConfigList *parent, ConfigItem *after, struct menu *m, bool v) ConfigItem() argument 127 : Parent(parent, after), nextItem(0), menu(m), visible(v), goParent(false) ConfigItem() 131 ConfigItem(ConfigItem *parent, ConfigItem *after, struct menu *m, bool v) ConfigItem() argument 132 : Parent(parent, after), nextItem(0), menu(m), visible(v), goParent(false) ConfigItem() 136 ConfigItem(ConfigList *parent, ConfigItem *after, bool v) ConfigItem() argument 137 : Parent(parent, after), nextItem(0), menu(0), visible(v), goParent(true) ConfigItem() 157 ConfigItem *_parent = (ConfigItem *)parent(); nextSibling() 196 ConfigLineEdit(ConfigView* parent); parent() 197 ConfigView* parent(void) const parent() function in class:ConfigLineEdit 199 return (ConfigView*)Parent::parent(); parent() 212 ConfigView(QWidget* parent, const char *name = 0); 245 ConfigInfoView(QWidget* parent, const char *name = 0); showDebug() 275 ConfigSearchWindow(ConfigMainWindow* parent, const char *name = 0);
|
H A D | menu.c | 54 menu->parent = current_menu; menu_add_entry() 79 current_menu = current_menu->parent; menu_end_menu() 149 while ((menu = menu->parent) != NULL) { menu_add_prop() 282 void menu_finalize(struct menu *parent) menu_finalize() argument 289 sym = parent->sym; menu_finalize() 290 if (parent->list) { menu_finalize() 294 current_entry = parent; menu_finalize() 295 for (menu = parent->list; menu; menu = menu->next) { menu_finalize() 303 for (menu = parent->list; menu; menu = menu->next) { menu_finalize() 309 } else if (parent->prompt) menu_finalize() 310 parentdep = parent->prompt->visible.expr; menu_finalize() 312 parentdep = parent->dep; menu_finalize() 314 for (menu = parent->list; menu; menu = menu->next) { menu_finalize() 339 for (menu = parent->list; menu; menu = menu->next) menu_finalize() 342 basedep = parent->prompt ? parent->prompt->visible.expr : NULL; menu_finalize() 346 for (menu = parent->next; menu; menu = menu->next) { menu_finalize() 364 menu->parent = parent; menu_finalize() 368 parent->list = parent->next; menu_finalize() 369 parent->next = last_menu->next; menu_finalize() 373 sym->dir_dep.expr = expr_alloc_or(sym->dir_dep.expr, parent->dep); menu_finalize() 375 for (menu = parent->list; menu; menu = menu->next) { menu_finalize() 389 prop->menu->parent->sym != sym) menu_finalize() 417 last_menu->parent = parent; menu_finalize() 429 menu_warn(parent, "config symbol defined without type"); menu_finalize() 431 if (sym_is_choice(sym) && !parent->prompt) menu_finalize() 432 menu_warn(parent, "choice must have a prompt"); menu_finalize() 439 if (sym && !sym_is_optional(sym) && parent->prompt) { menu_finalize() 441 expr_alloc_and(parent->prompt->visible.expr, menu_finalize() 525 for (; menu != &rootmenu; menu = menu->parent) { menu_get_parent_menu() 554 menu = prop->menu->parent; get_prompt_str() 555 for (i = 0; menu != &rootmenu && i < 8; menu = menu->parent) { get_prompt_str()
|
/linux-4.4.14/drivers/clk/tegra/ |
H A D | clk-emc.c | 54 * When we change the timing to a timing with a parent that has the same 55 * clock source as the current parent, we must first change to a backup 74 struct clk *parent; member in struct:emc_timing 103 * CCF wrongly assumes that the parent won't change during set_rate, emc_recalc_rate() 104 * so get the parent rate explicitly. emc_recalc_rate() 117 * since we don't want the CCF to play with our parent clocks. 213 timing->parent_rate, __clk_get_name(timing->parent)); emc_set_timing() 216 clk_get_rate(timing->parent) != timing->parent_rate) { emc_set_timing() 223 err = clk_set_rate(timing->parent, timing->parent_rate); emc_set_timing() 225 pr_err("cannot change parent %s rate to %ld: %d\n", emc_set_timing() 226 __clk_get_name(timing->parent), timing->parent_rate, emc_set_timing() 232 err = clk_prepare_enable(timing->parent); emc_set_timing() 234 pr_err("cannot enable parent clock: %d\n", err); emc_set_timing() 260 clk_hw_reparent(&tegra->hw, __clk_get_hw(timing->parent)); emc_set_timing() 263 tegra->prev_parent = timing->parent; emc_set_timing() 321 * When emc_set_timing changes the parent rate, CCF will propagate emc_set_rate() 343 clk_get_rate(timing->parent) != timing->parent_rate) { emc_set_rate() 345 * Parent clock source not changed but parent rate has changed, emc_set_rate() 346 * need to temporarily switch to another parent emc_set_rate() 387 err = of_property_read_u32(node, "nvidia,parent-clock-frequency", &tmp); load_one_timing_from_dt() 389 pr_err("timing %s: failed to read parent rate\n", load_one_timing_from_dt() 396 timing->parent = of_clk_get_by_name(node, "emc-parent"); load_one_timing_from_dt() 397 if (IS_ERR(timing->parent)) { load_one_timing_from_dt() 398 pr_err("timing %s: failed to get parent clock\n", load_one_timing_from_dt() 400 return PTR_ERR(timing->parent); load_one_timing_from_dt() 406 __clk_get_name(timing->parent))) { load_one_timing_from_dt() 412 pr_err("timing %s: %s is not a valid parent\n", load_one_timing_from_dt() 413 node->full_name, __clk_get_name(timing->parent)); load_one_timing_from_dt() 414 clk_put(timing->parent); load_one_timing_from_dt()
|
/linux-4.4.14/drivers/media/pci/netup_unidvb/ |
H A D | netup_unidvb_i2c.c | 83 dev_dbg(i2c->adap.dev.parent, netup_i2c_interrupt() 86 dev_dbg(i2c->adap.dev.parent, netup_i2c_interrupt() 92 dev_dbg(i2c->adap.dev.parent, netup_i2c_interrupt() 98 dev_dbg(i2c->adap.dev.parent, netup_i2c_interrupt() 107 dev_dbg(i2c->adap.dev.parent, netup_i2c_interrupt() 115 dev_dbg(i2c->adap.dev.parent, netup_i2c_interrupt() 130 dev_dbg(i2c->adap.dev.parent, "%s()\n", __func__); netup_i2c_reset() 151 dev_dbg(i2c->adap.dev.parent, netup_i2c_fifo_tx() 155 dev_dbg(i2c->adap.dev.parent, netup_i2c_fifo_tx() 167 dev_dbg(i2c->adap.dev.parent, netup_i2c_fifo_rx() 174 dev_dbg(i2c->adap.dev.parent, netup_i2c_fifo_rx() 179 dev_dbg(i2c->adap.dev.parent, netup_i2c_fifo_rx() 195 dev_dbg(i2c->adap.dev.parent, netup_i2c_start_xfer() 218 dev_dbg(i2c->adap.dev.parent, netup_i2c_xfer() 224 dev_dbg(i2c->adap.dev.parent, netup_i2c_xfer() 229 dev_dbg(i2c->adap.dev.parent, "%s() num %d\n", __func__, num); netup_i2c_xfer() 251 dev_dbg(i2c->adap.dev.parent, netup_i2c_xfer() 258 dev_dbg(i2c->adap.dev.parent, netup_i2c_xfer() 263 dev_dbg(i2c->adap.dev.parent, netup_i2c_xfer() 279 dev_dbg(i2c->adap.dev.parent, netup_i2c_xfer() 289 dev_dbg(i2c->adap.dev.parent, "%s(): result %d\n", __func__, res); netup_i2c_xfer() 327 i2c->adap.dev.parent = &ndev->pci_dev->dev; netup_i2c_init()
|
/linux-4.4.14/arch/blackfin/kernel/ |
H A D | debug-mmrs.c | 31 #define _d(name, bits, addr, perms) debugfs_create_x##bits(name, perms, parent, (u##bits *)(addr)) 48 debugfs_create_x16(buf, S_IRUSR|S_IWUSR, parent, addr); \ 50 debugfs_create_x32(buf, S_IRUSR|S_IWUSR, parent, addr); \ 107 #define D_SYSREG(sr) debugfs_create_file(#sr, S_IRUSR|S_IWUSR, parent, NULL, &fops_sysreg_##sr) 116 bfin_debug_mmrs_can(struct dentry *parent, unsigned long base, int num) bfin_debug_mmrs_can() argument 123 am = debugfs_create_dir("am", parent); bfin_debug_mmrs_can() 124 mb = debugfs_create_dir("mb", parent); bfin_debug_mmrs_can() 202 #define CAN(num) bfin_debug_mmrs_can(parent, CAN##num##_MC1, num) 209 bfin_debug_mmrs_dma(struct dentry *parent, unsigned long base, int num, char mdma, const char *pfx) bfin_debug_mmrs_dma() argument 235 #define _DMA(num, base, mdma, pfx) bfin_debug_mmrs_dma(parent, base, num, mdma, pfx "DMA") 250 bfin_debug_mmrs_eppi(struct dentry *parent, unsigned long base, int num) bfin_debug_mmrs_eppi() argument 268 #define EPPI(num) bfin_debug_mmrs_eppi(parent, EPPI##num##_STATUS, num) 275 bfin_debug_mmrs_gptimer(struct dentry *parent, unsigned long base, int num) bfin_debug_mmrs_gptimer() argument 283 #define GPTIMER(num) bfin_debug_mmrs_gptimer(parent, TIMER##num##_CONFIG, num) 288 bfin_debug_mmrs_gptimer_group(struct dentry *parent, unsigned long base, int num) bfin_debug_mmrs_gptimer_group() argument 309 #define GPTIMER_GROUP(mmr, num) bfin_debug_mmrs_gptimer_group(parent, mmr, num) 316 bfin_debug_mmrs_hmdma(struct dentry *parent, unsigned long base, int num) bfin_debug_mmrs_hmdma() argument 327 #define HMDMA(num) bfin_debug_mmrs_hmdma(parent, HMDMA##num##_CONTROL, num) 335 bfin_debug_mmrs_pint(struct dentry *parent, unsigned long base, int num) bfin_debug_mmrs_pint() argument 349 #define PINT(num) bfin_debug_mmrs_pint(parent, PINT##num##_MASK_SET, num) 358 bfin_debug_mmrs_port(struct dentry *parent, unsigned long base, int num) bfin_debug_mmrs_port() argument 392 #define PORT(base, num) bfin_debug_mmrs_port(parent, base, num) 399 bfin_debug_mmrs_ppi(struct dentry *parent, unsigned long base, int num) bfin_debug_mmrs_ppi() argument 408 #define PPI(num) bfin_debug_mmrs_ppi(parent, PPI##num##_CONTROL, num) 415 bfin_debug_mmrs_spi(struct dentry *parent, unsigned long base, int num) bfin_debug_mmrs_spi() argument 426 #define SPI(num) bfin_debug_mmrs_spi(parent, SPI##num##_REGBASE, num) 472 debugfs_create_file(buf, perms, parent, (void *)(base + SPORT_OFF(name)), fops); \ 480 debugfs_create_x##bits(buf, S_IRUSR|S_IWUSR, parent, (u##bits *)(base + SPORT_OFF(name))); \ 483 bfin_debug_mmrs_sport(struct dentry *parent, unsigned long base, int num) bfin_debug_mmrs_sport() argument 509 #define SPORT(num) bfin_debug_mmrs_sport(parent, SPORT##num##_TCR1, num) 516 bfin_debug_mmrs_twi(struct dentry *parent, unsigned long base, int num) bfin_debug_mmrs_twi() argument 536 #define TWI(num) bfin_debug_mmrs_twi(parent, TWI##num##_CLKDIV, num) 543 bfin_debug_mmrs_uart(struct dentry *parent, unsigned long base, int num) bfin_debug_mmrs_uart() argument 574 #define UART(num) bfin_debug_mmrs_uart(parent, UART##num##_DLL, num) 583 struct dentry *top, *parent; bfin_debug_mmrs_init() local 591 parent = debugfs_create_dir("core_regs", top); bfin_debug_mmrs_init() 592 debugfs_create_file("cclk", S_IRUSR, parent, NULL, &fops_debug_cclk); bfin_debug_mmrs_init() 593 debugfs_create_file("sclk", S_IRUSR, parent, NULL, &fops_debug_sclk); bfin_debug_mmrs_init() 594 debugfs_create_x32("last_seqstat", S_IRUSR, parent, &last_seqstat); bfin_debug_mmrs_init() 602 parent = debugfs_create_dir("ctimer", top); bfin_debug_mmrs_init() 608 parent = debugfs_create_dir("cec", top); bfin_debug_mmrs_init() 631 parent = debugfs_create_dir("debug", top); bfin_debug_mmrs_init() 635 parent = debugfs_create_dir("mmu", top); bfin_debug_mmrs_init() 717 parent = debugfs_create_dir("perf", top); bfin_debug_mmrs_init() 722 parent = debugfs_create_dir("trace", top); bfin_debug_mmrs_init() 727 parent = debugfs_create_dir("watchpoint", top); bfin_debug_mmrs_init() 750 parent = debugfs_create_dir("atapi", top); bfin_debug_mmrs_init() 779 parent = debugfs_create_dir("can", top); bfin_debug_mmrs_init() 781 bfin_debug_mmrs_can(parent, CAN_MC1, -1); bfin_debug_mmrs_init() 792 parent = debugfs_create_dir("counter", top); bfin_debug_mmrs_init() 803 parent = debugfs_create_dir("dmac", top); bfin_debug_mmrs_init() 847 parent = debugfs_create_dir("dma", top); bfin_debug_mmrs_init() 880 parent = debugfs_create_dir("ebiu_amc", top); bfin_debug_mmrs_init() 892 parent = debugfs_create_dir("ebiu_sdram", top); bfin_debug_mmrs_init() 904 parent = debugfs_create_dir("ebiu_ddr", top); bfin_debug_mmrs_init() 941 parent = debugfs_create_dir("emac", top); bfin_debug_mmrs_init() 1049 parent = debugfs_create_dir("eppi", top); bfin_debug_mmrs_init() 1061 parent = debugfs_create_dir("gptimer", top); bfin_debug_mmrs_init() 1096 parent = debugfs_create_dir("hmdma", top); bfin_debug_mmrs_init() 1102 parent = debugfs_create_dir("hostdp", top); bfin_debug_mmrs_init() 1109 parent = debugfs_create_dir("imdma", top); bfin_debug_mmrs_init() 1115 parent = debugfs_create_dir("keypad", top); bfin_debug_mmrs_init() 1124 parent = debugfs_create_dir("mdma", top); bfin_debug_mmrs_init() 1133 parent = debugfs_create_dir("mxvr", top); bfin_debug_mmrs_init() 1269 parent = debugfs_create_dir("nfc", top); bfin_debug_mmrs_init() 1289 parent = debugfs_create_dir("otp", top); bfin_debug_mmrs_init() 1301 parent = debugfs_create_dir("pint", top); bfin_debug_mmrs_init() 1309 parent = debugfs_create_dir("pixc", top); bfin_debug_mmrs_init() 1331 parent = debugfs_create_dir("pll", top); bfin_debug_mmrs_init() 1340 parent = debugfs_create_dir("ppi", top); bfin_debug_mmrs_init() 1342 bfin_debug_mmrs_ppi(parent, PPI_CONTROL, -1); bfin_debug_mmrs_init() 1353 parent = debugfs_create_dir("pwm", top); bfin_debug_mmrs_init() 1372 parent = debugfs_create_dir("rsi", top); bfin_debug_mmrs_init() 1408 parent = debugfs_create_dir("rtc", top); bfin_debug_mmrs_init() 1418 parent = debugfs_create_dir("sdh", top); bfin_debug_mmrs_init() 1453 parent = debugfs_create_dir("security", top); bfin_debug_mmrs_init() 1459 parent = debugfs_create_dir("sic", top); bfin_debug_mmrs_init() 1521 parent = debugfs_create_dir("spi", top); bfin_debug_mmrs_init() 1532 parent = debugfs_create_dir("sport", top); bfin_debug_mmrs_init() 1547 parent = debugfs_create_dir("twi", top); bfin_debug_mmrs_init() 1549 bfin_debug_mmrs_twi(parent, TWI_CLKDIV, -1); bfin_debug_mmrs_init() 1559 parent = debugfs_create_dir("uart", top); bfin_debug_mmrs_init() 1561 bfin_debug_mmrs_uart(parent, BFIN_UART_DLL, -1); bfin_debug_mmrs_init() 1577 parent = debugfs_create_dir("usb", top); bfin_debug_mmrs_init() 1749 parent = debugfs_create_dir("watchdog", top); bfin_debug_mmrs_init() 1755 parent = debugfs_create_dir("watchdog", top); bfin_debug_mmrs_init() 1778 parent = debugfs_create_dir("port", top); bfin_debug_mmrs_init()
|
/linux-4.4.14/drivers/scsi/ |
H A D | scsi_transport_sas.c | 501 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); \ 533 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); \ 564 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); do_sas_phy_enable() 612 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); do_sas_phy_reset() 661 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); sas_phy_setup() 680 shost = dev_to_shost(dev->parent); sas_phy_match() 695 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); sas_phy_release() 700 put_device(dev->parent); sas_phy_release() 706 * @parent: Parent device 710 * below the device specified by @parent, which has to be either a Scsi_Host 716 struct sas_phy *sas_phy_alloc(struct device *parent, int number) sas_phy_alloc() argument 718 struct Scsi_Host *shost = dev_to_shost(parent); sas_phy_alloc() 729 phy->dev.parent = get_device(parent); sas_phy_alloc() 732 if (scsi_is_sas_expander_device(parent)) { sas_phy_alloc() 733 struct sas_rphy *rphy = dev_to_rphy(parent); sas_phy_alloc() 846 shost = dev_to_shost(dev->parent); sas_port_match() 865 put_device(dev->parent); sas_port_release() 896 * @parent: parent device 900 * below the device specified by @parent which must be either a Scsi_Host 905 struct sas_port *sas_port_alloc(struct device *parent, int port_id) sas_port_alloc() argument 907 struct Scsi_Host *shost = dev_to_shost(parent); sas_port_alloc() 918 port->dev.parent = get_device(parent); sas_port_alloc() 924 if (scsi_is_sas_expander_device(parent)) { sas_port_alloc() 925 struct sas_rphy *rphy = dev_to_rphy(parent); sas_port_alloc() 940 * @parent: parent device 945 * the device tree below the device specified by @parent which must be 950 struct sas_port *sas_port_alloc_num(struct device *parent) sas_port_alloc_num() argument 953 struct Scsi_Host *shost = dev_to_shost(parent); sas_port_alloc_num() 958 if (scsi_is_sas_expander_device(parent)) { sas_port_alloc_num() 959 struct sas_rphy *rphy = dev_to_rphy(parent); sas_port_alloc_num() 966 return sas_port_alloc(parent, index); sas_port_alloc_num() 1038 struct device *parent = port->dev.parent; sas_port_delete() local 1040 sysfs_remove_link(&port->dev.kobj, dev_name(parent)); sas_port_delete() 1146 struct device *parent = port->dev.parent->parent->parent; sas_port_mark_backlink() local 1151 res = sysfs_create_link(&port->dev.kobj, &parent->kobj, sas_port_mark_backlink() 1152 dev_name(parent)); sas_port_mark_backlink() 1219 struct sas_phy *phy = dev_to_phy(rphy->dev.parent); show_sas_rphy_enclosure_identifier() 1220 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); show_sas_rphy_enclosure_identifier() 1239 struct sas_phy *phy = dev_to_phy(rphy->dev.parent); show_sas_rphy_bay_identifier() 1240 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); show_sas_rphy_bay_identifier() 1366 shost = dev_to_shost(dev->parent->parent); sas_rphy_match() 1387 shost = dev_to_shost(dev->parent->parent); sas_end_dev_match() 1410 shost = dev_to_shost(dev->parent->parent); sas_expander_match() 1433 put_device(dev->parent); sas_expander_release() 1445 put_device(dev->parent); sas_end_device_release() 1463 * @parent: which port 1465 * Allocates an SAS remote PHY structure, connected to @parent. 1470 struct sas_rphy *sas_end_device_alloc(struct sas_port *parent) sas_end_device_alloc() argument 1472 struct Scsi_Host *shost = dev_to_shost(&parent->dev); sas_end_device_alloc() 1481 rdev->rphy.dev.parent = get_device(&parent->dev); sas_end_device_alloc() 1483 if (scsi_is_sas_expander_device(parent->dev.parent)) { sas_end_device_alloc() 1484 struct sas_rphy *rphy = dev_to_rphy(parent->dev.parent); sas_end_device_alloc() 1487 parent->port_identifier); sas_end_device_alloc() 1490 shost->host_no, parent->port_identifier); sas_end_device_alloc() 1501 * @parent: which port 1504 * Allocates an SAS remote PHY structure, connected to @parent. 1509 struct sas_rphy *sas_expander_alloc(struct sas_port *parent, sas_expander_alloc() argument 1512 struct Scsi_Host *shost = dev_to_shost(&parent->dev); sas_expander_alloc() 1525 rdev->rphy.dev.parent = get_device(&parent->dev); sas_expander_alloc() 1548 struct sas_port *parent = dev_to_sas_port(rphy->dev.parent); sas_rphy_add() local 1549 struct Scsi_Host *shost = dev_to_shost(parent->dev.parent); sas_rphy_add() 1554 if (parent->rphy) sas_rphy_add() 1556 parent->rphy = rphy; sas_rphy_add() 1607 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent->parent); sas_rphy_free() 1636 * @rphy: SAS remote phy to unlink from its parent port 1642 struct sas_port *parent = dev_to_sas_port(rphy->dev.parent); sas_rphy_unlink() local 1644 parent->rphy = NULL; sas_rphy_unlink()
|
/linux-4.4.14/drivers/usb/gadget/ |
H A D | configfs.h | 8 int usb_os_desc_prepare_interf_dir(struct config_group *parent,
|
/linux-4.4.14/drivers/acpi/acpica/ |
H A D | pstree.c | 176 /* Set the parent in this arg and any args linked after it */ acpi_ps_append_arg() 179 arg->common.parent = op; acpi_ps_append_arg() 204 union acpi_parse_object *parent; acpi_ps_get_depth_next() local 227 /* Look for a sibling of parent */ acpi_ps_get_depth_next() 229 parent = op->common.parent; acpi_ps_get_depth_next() 231 while (parent) { acpi_ps_get_depth_next() 232 arg = acpi_ps_get_arg(parent, 0); acpi_ps_get_depth_next() 239 /* Reached parent of origin, end search */ acpi_ps_get_depth_next() 244 if (parent->common.next) { acpi_ps_get_depth_next() 246 /* Found sibling of parent */ acpi_ps_get_depth_next() 248 return (parent->common.next); acpi_ps_get_depth_next() 251 op = parent; acpi_ps_get_depth_next() 252 parent = parent->common.parent; acpi_ps_get_depth_next()
|
H A D | psparse.c | 162 if (op->common.parent) { acpi_ps_complete_this_op() 163 prev = op->common.parent->common.value.arg; acpi_ps_complete_this_op() 176 acpi_ps_get_opcode_info(op->common.parent->common. acpi_ps_complete_this_op() 202 if ((op->common.parent->common.aml_opcode == acpi_ps_complete_this_op() 204 || (op->common.parent->common.aml_opcode == acpi_ps_complete_this_op() 206 || (op->common.parent->common.aml_opcode == acpi_ps_complete_this_op() 208 || (op->common.parent->common.aml_opcode == acpi_ps_complete_this_op() 210 || (op->common.parent->common.aml_opcode == acpi_ps_complete_this_op() 212 || (op->common.parent->common.aml_opcode == acpi_ps_complete_this_op() 221 if ((op->common.parent->common.aml_opcode == acpi_ps_complete_this_op() 255 /* We must unlink this op from the parent tree */ acpi_ps_complete_this_op() 262 replacement_op->common.parent = acpi_ps_complete_this_op() 263 op->common.parent; acpi_ps_complete_this_op() 266 op->common.parent->common.value.arg = acpi_ps_complete_this_op() 270 op->common.parent->common.value.arg = acpi_ps_complete_this_op() 275 /* Search the parent list */ acpi_ps_complete_this_op() 280 /* Traverse all siblings in the parent's argument list */ acpi_ps_complete_this_op() 285 replacement_op->common.parent = acpi_ps_complete_this_op() 286 op->common.parent; acpi_ps_complete_this_op() 388 * package; We simply close out the parent (finishing the walk of acpi_ps_next_parse_state() 389 * this branch of the tree) and continue execution at the parent acpi_ps_next_parse_state() 560 /* We are done with this walk, move on to the parent if any */ acpi_ps_parse_aml() 597 * If the method return value is not used by the parent, acpi_ps_parse_aml()
|
H A D | dsutils.c | 67 * parent method exits.) 110 * parent method exit. Before storing a new return value, we 165 * DESCRIPTION: Check if a result object will be used by the parent 197 * Now determine if the parent will use the result acpi_ds_is_result_used() 199 * If there is no parent, or the parent is a scope_op, we are executing acpi_ds_is_result_used() 200 * at the method level. An executing method typically has no parent, acpi_ds_is_result_used() 202 * via execute_control_method has a scope_op as the parent. acpi_ds_is_result_used() 204 if ((!op->common.parent) || acpi_ds_is_result_used() 205 (op->common.parent->common.aml_opcode == AML_SCOPE_OP)) { acpi_ds_is_result_used() 207 /* No parent, the return value cannot possibly be used */ acpi_ds_is_result_used() 216 /* Get info on the parent. The root_op is AML_SCOPE */ acpi_ds_is_result_used() 219 acpi_ps_get_opcode_info(op->common.parent->common.aml_opcode); acpi_ds_is_result_used() 221 ACPI_ERROR((AE_INFO, "Unknown parent opcode Op=%p", op)); acpi_ds_is_result_used() 226 * Decide what to do with the result based on the parent. If acpi_ds_is_result_used() 227 * the parent opcode will not use the result, delete the object. acpi_ds_is_result_used() 234 switch (op->common.parent->common.aml_opcode) { acpi_ds_is_result_used() 275 if ((op->common.parent->common.aml_opcode == AML_REGION_OP) || acpi_ds_is_result_used() 276 (op->common.parent->common.aml_opcode == AML_DATA_REGION_OP) acpi_ds_is_result_used() 277 || (op->common.parent->common.aml_opcode == AML_PACKAGE_OP) acpi_ds_is_result_used() 278 || (op->common.parent->common.aml_opcode == acpi_ds_is_result_used() 280 || (op->common.parent->common.aml_opcode == AML_BUFFER_OP) acpi_ds_is_result_used() 281 || (op->common.parent->common.aml_opcode == acpi_ds_is_result_used() 283 || (op->common.parent->common.aml_opcode == acpi_ds_is_result_used() 296 * In all other cases. the parent will actually use the return acpi_ds_is_result_used() 306 acpi_ps_get_opcode_name(op->common.parent->common. acpi_ds_is_result_used() 315 acpi_ps_get_opcode_name(op->common.parent->common. acpi_ds_is_result_used() 332 * result descriptor, check if the parent opcode will actually use 521 parent_op = arg->common.parent; acpi_ds_create_operand() 803 if (!op->common.parent) { acpi_ds_evaluate_name_path() 810 if ((op->common.parent->common.aml_opcode == AML_PACKAGE_OP) || acpi_ds_evaluate_name_path() 811 (op->common.parent->common.aml_opcode == AML_VAR_PACKAGE_OP) || acpi_ds_evaluate_name_path() 812 (op->common.parent->common.aml_opcode == AML_REF_OF_OP)) { acpi_ds_evaluate_name_path()
|
H A D | nsxfobj.c | 111 * PARAMETERS: handle - Handle of object whose parent is desired ACPI_EXPORT_SYMBOL() 112 * ret_handle - Where the parent handle will be placed ACPI_EXPORT_SYMBOL() 116 * DESCRIPTION: Returns a handle to the parent of the object represented by ACPI_EXPORT_SYMBOL() 130 /* Special case for the predefined Root Node (no parent) */ ACPI_EXPORT_SYMBOL() 149 /* Get the parent entry */ ACPI_EXPORT_SYMBOL() 151 parent_node = node->parent; ACPI_EXPORT_SYMBOL() 154 /* Return exception if parent is null */ ACPI_EXPORT_SYMBOL() 173 * parent - Parent object whose children we are getting ACPI_EXPORT_SYMBOL() 187 acpi_handle parent, ACPI_EXPORT_SYMBOL() 206 /* If null handle, use the parent */ ACPI_EXPORT_SYMBOL() 212 parent_node = acpi_ns_validate_handle(parent); ACPI_EXPORT_SYMBOL() 218 /* Non-null handle, ignore the parent */ ACPI_EXPORT_SYMBOL()
|
/linux-4.4.14/drivers/ata/ |
H A D | libata-transport.h | 10 int ata_tport_add(struct device *parent, struct ata_port *ap);
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/core/ |
H A D | gpuobj.c | 95 /* accessor functions for gpuobjs sub-allocated from a parent gpuobj */ 99 return nvkm_ro32(gpuobj->parent, gpuobj->node->offset + offset); nvkm_gpuobj_rd32() 105 nvkm_wo32(gpuobj->parent, gpuobj->node->offset + offset, data); nvkm_gpuobj_wr32() 113 nvkm_done(gpuobj->parent); nvkm_gpuobj_release() 133 gpuobj->map = nvkm_kmap(gpuobj->parent); nvkm_gpuobj_acquire() 150 struct nvkm_gpuobj *parent, struct nvkm_gpuobj *gpuobj) nvkm_gpuobj_ctor() 155 if (parent) { nvkm_gpuobj_ctor() 157 ret = nvkm_mm_head(&parent->heap, 0, 1, size, size, nvkm_gpuobj_ctor() 160 ret = nvkm_mm_tail(&parent->heap, 0, 1, size, size, nvkm_gpuobj_ctor() 166 gpuobj->parent = parent; nvkm_gpuobj_ctor() 168 gpuobj->addr = parent->addr + gpuobj->node->offset; nvkm_gpuobj_ctor() 196 if (gpuobj->parent) nvkm_gpuobj_del() 197 nvkm_mm_free(&gpuobj->parent->heap, &gpuobj->node); nvkm_gpuobj_del() 207 struct nvkm_gpuobj *parent, struct nvkm_gpuobj **pgpuobj) nvkm_gpuobj_new() 215 ret = nvkm_gpuobj_ctor(device, size, align, zero, parent, gpuobj); nvkm_gpuobj_new() 149 nvkm_gpuobj_ctor(struct nvkm_device *device, u32 size, int align, bool zero, struct nvkm_gpuobj *parent, struct nvkm_gpuobj *gpuobj) nvkm_gpuobj_ctor() argument 206 nvkm_gpuobj_new(struct nvkm_device *device, u32 size, int align, bool zero, struct nvkm_gpuobj *parent, struct nvkm_gpuobj **pgpuobj) nvkm_gpuobj_new() argument
|
/linux-4.4.14/fs/fscache/ |
H A D | object.c | 146 * we need to notify the parent when an op completes that we had outstanding 151 struct fscache_object *parent = object->parent; fscache_done_parent_op() local 154 object->debug_id, parent->debug_id, parent->n_ops); fscache_done_parent_op() 156 spin_lock_nested(&parent->lock, 1); fscache_done_parent_op() 157 parent->n_obj_ops--; fscache_done_parent_op() 158 parent->n_ops--; fscache_done_parent_op() 159 if (parent->n_ops == 0) fscache_done_parent_op() 160 fscache_raise_event(parent, FSCACHE_OBJECT_EV_CLEARED); fscache_done_parent_op() 161 spin_unlock(&parent->lock); fscache_done_parent_op() 316 object->parent = NULL; fscache_object_init() 356 * - check the specified object's parent to see if we can make use of it 358 * - we may need to start the process of creating a parent and we need to wait 359 * for the parent's lookup and creation to complete if it's not there yet 364 struct fscache_object *parent; fscache_initialise_object() local 371 parent = object->parent; fscache_initialise_object() 372 if (!parent) { fscache_initialise_object() 373 _leave(" [no parent]"); fscache_initialise_object() 377 _debug("parent: %s of:%lx", parent->state->name, parent->flags); fscache_initialise_object() 379 if (fscache_object_is_dying(parent)) { fscache_initialise_object() 380 _leave(" [bad parent]"); fscache_initialise_object() 384 if (fscache_object_is_available(parent)) { fscache_initialise_object() 391 spin_lock(&parent->lock); fscache_initialise_object() 394 if (fscache_object_is_live(parent) && fscache_initialise_object() 396 list_add(&object->dep_link, &parent->dependents); fscache_initialise_object() 400 spin_unlock(&parent->lock); fscache_initialise_object() 408 fscache_raise_event(parent, FSCACHE_OBJECT_EV_NEW_CHILD); fscache_initialise_object() 414 * Once the parent object is ready, we should kick off our lookup op. 419 struct fscache_object *parent = object->parent; fscache_parent_ready() local 423 ASSERT(parent != NULL); fscache_parent_ready() 425 spin_lock(&parent->lock); fscache_parent_ready() 426 parent->n_ops++; fscache_parent_ready() 427 parent->n_obj_ops++; fscache_parent_ready() 429 spin_unlock(&parent->lock); fscache_parent_ready() 437 * - we hold an "access lock" on the parent object, so the parent object cannot 444 struct fscache_object *parent = object->parent; fscache_look_up_object() local 451 ASSERT(parent != NULL); fscache_look_up_object() 452 ASSERTCMP(parent->n_ops, >, 0); fscache_look_up_object() 453 ASSERTCMP(parent->n_obj_ops, >, 0); fscache_look_up_object() 455 /* make sure the parent is still available */ fscache_look_up_object() 456 ASSERT(fscache_object_is_available(parent)); fscache_look_up_object() 458 if (fscache_object_is_dying(parent) || fscache_look_up_object() 685 struct fscache_object *parent = object->parent; fscache_drop_object() local 723 /* The parent object wants to know when all it dependents have gone */ fscache_drop_object() 724 if (parent) { fscache_drop_object() 725 _debug("release parent OBJ%x {%d}", fscache_drop_object() 726 parent->debug_id, parent->n_children); fscache_drop_object() 728 spin_lock(&parent->lock); fscache_drop_object() 729 parent->n_children--; fscache_drop_object() 730 if (parent->n_children == 0) fscache_drop_object() 731 fscache_raise_event(parent, FSCACHE_OBJECT_EV_CLEARED); fscache_drop_object() 732 spin_unlock(&parent->lock); fscache_drop_object() 733 object->parent = NULL; fscache_drop_object() 878 spin_lock(&object->parent->lock); fscache_dequeue_object() 880 spin_unlock(&object->parent->lock); fscache_dequeue_object()
|
H A D | cookie.c | 45 * - parent specifies the parent object 59 struct fscache_cookie *parent, __fscache_acquire_cookie() 69 parent ? (char *) parent->def->name : "<no-parent>", __fscache_acquire_cookie() 74 /* if there's no parent cookie, then we don't create one here either */ __fscache_acquire_cookie() 75 if (!parent) { __fscache_acquire_cookie() 77 _leave(" [no parent]"); __fscache_acquire_cookie() 86 parent->def->type != FSCACHE_COOKIE_TYPE_INDEX); __fscache_acquire_cookie() 104 atomic_inc(&parent->usage); __fscache_acquire_cookie() 105 atomic_inc(&parent->n_children); __fscache_acquire_cookie() 108 cookie->parent = parent; __fscache_acquire_cookie() 136 atomic_dec(&parent->n_children); __fscache_acquire_cookie() 213 cache = fscache_select_cache_for_object(cookie->parent); fscache_acquire_non_index_cookie() 225 /* ask the cache to allocate objects for this cookie and its parent fscache_acquire_non_index_cookie() 312 ret = fscache_alloc_object(cache, cookie->parent); fscache_alloc_object() 373 /* pin the parent object */ fscache_attach_object() 374 spin_lock_nested(&cookie->parent->lock, 1); fscache_attach_object() 375 hlist_for_each_entry(p, &cookie->parent->backing_objects, fscache_attach_object() 380 spin_unlock(&cookie->parent->lock); fscache_attach_object() 383 object->parent = p; fscache_attach_object() 390 spin_unlock(&cookie->parent->lock); fscache_attach_object() 608 if (cookie->parent) { __fscache_relinquish_cookie() 609 ASSERTCMP(atomic_read(&cookie->parent->usage), >, 0); __fscache_relinquish_cookie() 610 ASSERTCMP(atomic_read(&cookie->parent->n_children), >, 0); __fscache_relinquish_cookie() 611 atomic_dec(&cookie->parent->n_children); __fscache_relinquish_cookie() 627 struct fscache_cookie *parent; __fscache_cookie_put() local 633 parent = cookie->parent; __fscache_cookie_put() 637 if (!parent) __fscache_cookie_put() 640 cookie = parent; __fscache_cookie_put() 58 __fscache_acquire_cookie( struct fscache_cookie *parent, const struct fscache_cookie_def *def, void *netfs_data, bool enable) __fscache_acquire_cookie() argument
|
H A D | netfs.c | 46 cookie->parent = &fscache_fsdef_index; __fscache_register_netfs() 62 atomic_inc(&cookie->parent->usage); __fscache_register_netfs() 63 atomic_inc(&cookie->parent->n_children); __fscache_register_netfs()
|
/linux-4.4.14/fs/ocfs2/ |
H A D | export.c | 149 struct dentry *parent; ocfs2_get_parent() local 159 parent = ERR_PTR(status); ocfs2_get_parent() 165 parent = ERR_PTR(-ENOENT); ocfs2_get_parent() 169 parent = d_obtain_alias(ocfs2_iget(OCFS2_SB(dir->i_sb), blkno, 0, 0)); ocfs2_get_parent() 175 trace_ocfs2_get_parent_end(parent); ocfs2_get_parent() 177 return parent; ocfs2_get_parent() 181 struct inode *parent) ocfs2_encode_fh() 196 if (parent && (len < 6)) { ocfs2_encode_fh() 216 if (parent) { ocfs2_encode_fh() 217 blkno = OCFS2_I(parent)->ip_blkno; ocfs2_encode_fh() 218 generation = parent->i_generation; ocfs2_encode_fh() 255 struct ocfs2_inode_handle parent; ocfs2_fh_to_parent() local 260 parent.ih_blkno = (u64)le32_to_cpu(fid->raw[3]) << 32; ocfs2_fh_to_parent() 261 parent.ih_blkno |= (u64)le32_to_cpu(fid->raw[4]); ocfs2_fh_to_parent() 262 parent.ih_generation = le32_to_cpu(fid->raw[5]); ocfs2_fh_to_parent() 263 return ocfs2_get_dentry(sb, &parent); ocfs2_fh_to_parent() 180 ocfs2_encode_fh(struct inode *inode, u32 *fh_in, int *max_len, struct inode *parent) ocfs2_encode_fh() argument
|
/linux-4.4.14/include/linux/platform_data/ |
H A D | usb-musb-ux500.h | 20 void ux500_add_usb(struct device *parent, resource_size_t base,
|
/linux-4.4.14/arch/s390/numa/ |
H A D | toptree.h | 18 struct toptree *parent; member in struct:toptree 42 ((ptree->parent == NULL) || \ 43 (ptree->parent->children.prev == &ptree->sibling)) 58 toptree_for_each(ptree, start->parent, start->level)
|
H A D | toptree.c | 47 * The node is detached from its parent node. The parent node's 55 oldparent = cand->parent; toptree_remove() 56 cand->parent = NULL; toptree_remove() 64 * Checks if @cand is attached to a parent node. Detaches it 72 if (cand->parent) toptree_free() 85 * parent if applicable. 98 if (cand->parent) toptree_update_mask() 99 toptree_update_mask(cand->parent); toptree_update_mask() 120 cand->parent = target; toptree_insert() 181 * If @target's level is not the direct parent level of @cand, 206 ptr->parent->id); toptree_move() 210 ptr = ptr->parent; toptree_move() 270 * If @cur has a parent and is not the last in the parent's children list, 275 if (cur->parent == NULL) toptree_next_sibling() 278 if (cur == list_last_entry(&cur->parent->children, toptree_next_sibling() 313 cur_context = cur_context->parent; toptree_next()
|
/linux-4.4.14/arch/sparc/include/asm/ |
H A D | ftrace.h | 25 unsigned long prepare_ftrace_return(unsigned long parent,
|
/linux-4.4.14/arch/arm/mach-imx/ |
H A D | mach-imx6sl.c | 49 struct device *parent; imx6sl_init_machine() local 51 parent = imx_soc_device_init(); imx6sl_init_machine() 52 if (parent == NULL) imx6sl_init_machine() 55 of_platform_populate(NULL, of_default_bus_match_table, NULL, parent); imx6sl_init_machine()
|
H A D | mach-imx6sx.c | 69 struct device *parent; imx6sx_init_machine() local 71 parent = imx_soc_device_init(); imx6sx_init_machine() 72 if (parent == NULL) imx6sx_init_machine() 75 of_platform_populate(NULL, of_default_bus_match_table, NULL, parent); imx6sx_init_machine()
|
/linux-4.4.14/net/sched/ |
H A D | sch_htb.c | 54 one less than their parent. 86 * parent's feed then we lost ptr value and start from the 104 int quantum; /* but stored for parent-to-leaf return */ 112 struct htb_class *parent; /* parent class */ member in struct:htb_class 272 struct rb_node **p = &root->rb_node, *parent = NULL; htb_add_to_id_tree() local 276 parent = *p; htb_add_to_id_tree() 277 c = rb_entry(parent, struct htb_class, node[prio]); htb_add_to_id_tree() 280 p = &parent->rb_right; htb_add_to_id_tree() 282 p = &parent->rb_left; htb_add_to_id_tree() 284 rb_link_node(&cl->node[prio], parent, p); htb_add_to_id_tree() 298 struct rb_node **p = &q->hlevel[cl->level].wait_pq.rb_node, *parent = NULL; htb_add_to_wait_tree() local 310 parent = *p; htb_add_to_wait_tree() 311 c = rb_entry(parent, struct htb_class, pq_node); htb_add_to_wait_tree() 313 p = &parent->rb_right; htb_add_to_wait_tree() 315 p = &parent->rb_left; htb_add_to_wait_tree() 317 rb_link_node(&cl->pq_node, parent, p); htb_add_to_wait_tree() 397 struct htb_class *p = cl->parent; htb_activate_prios() 407 /* parent already has its feed in use so that htb_activate_prios() 408 * reset bit in mask as parent is already ok htb_activate_prios() 416 p = cl->parent; htb_activate_prios() 432 struct htb_class *p = cl->parent; htb_deactivate_prios() 444 * parent feed - forget the pointer but remember htb_deactivate_prios() 460 p = cl->parent; htb_deactivate_prios() 679 cl = cl->parent; htb_charge_class() 855 htb_next_rb_node(level ? &cl->parent->un.inner.clprio[prio].ptr: htb_dequeue_tree() 866 htb_next_rb_node(level ? &cl->parent->un.inner.clprio[prio].ptr : htb_dequeue_tree() 1104 tcm->tcm_parent = cl->parent ? cl->parent->common.classid : TC_H_ROOT; htb_dump_class() 1197 if (!cl->parent) htb_parent_last_child() 1200 if (cl->parent->children > 1) htb_parent_last_child() 1209 struct htb_class *parent = cl->parent; htb_parent_to_leaf() local 1213 if (parent->cmode != HTB_CAN_SEND) htb_parent_to_leaf() 1214 htb_safe_rb_erase(&parent->pq_node, htb_parent_to_leaf() 1215 &q->hlevel[parent->level].wait_pq); htb_parent_to_leaf() 1217 parent->level = 0; htb_parent_to_leaf() 1218 memset(&parent->un.inner, 0, sizeof(parent->un.inner)); htb_parent_to_leaf() 1219 INIT_LIST_HEAD(&parent->un.leaf.drop_list); htb_parent_to_leaf() 1220 parent->un.leaf.q = new_q ? new_q : &noop_qdisc; htb_parent_to_leaf() 1221 parent->tokens = parent->buffer; htb_parent_to_leaf() 1222 parent->ctokens = parent->cbuffer; htb_parent_to_leaf() 1223 parent->t_c = ktime_get_ns(); htb_parent_to_leaf() 1224 parent->cmode = HTB_CAN_SEND; htb_parent_to_leaf() 1283 cl->parent->common.classid); htb_delete() 1299 if (cl->parent) htb_delete() 1300 cl->parent->children--; htb_delete() 1336 struct htb_class *cl = (struct htb_class *)*arg, *parent; htb_change_class() local 1354 parent = parentid == TC_H_ROOT ? NULL : htb_find(parentid, sch); htb_change_class() 1391 if (parent && parent->parent && parent->parent->level < 2) { htb_change_class() 1426 if (parent && !parent->level) { htb_change_class() 1427 unsigned int qlen = parent->un.leaf.q->q.qlen; htb_change_class() 1428 unsigned int backlog = parent->un.leaf.q->qstats.backlog; htb_change_class() 1430 /* turn parent into inner node */ htb_change_class() 1431 qdisc_reset(parent->un.leaf.q); htb_change_class() 1432 qdisc_tree_reduce_backlog(parent->un.leaf.q, qlen, backlog); htb_change_class() 1433 qdisc_destroy(parent->un.leaf.q); htb_change_class() 1434 if (parent->prio_activity) htb_change_class() 1435 htb_deactivate(q, parent); htb_change_class() 1438 if (parent->cmode != HTB_CAN_SEND) { htb_change_class() 1439 htb_safe_rb_erase(&parent->pq_node, &q->hlevel[0].wait_pq); htb_change_class() 1440 parent->cmode = HTB_CAN_SEND; htb_change_class() 1442 parent->level = (parent->parent ? parent->parent->level htb_change_class() 1444 memset(&parent->un.inner, 0, sizeof(parent->un.inner)); htb_change_class() 1450 cl->parent = parent; htb_change_class() 1459 /* attach to the hash list and parent's family */ htb_change_class() 1461 if (parent) htb_change_class() 1462 parent->children++; htb_change_class() 1533 static unsigned long htb_bind_filter(struct Qdisc *sch, unsigned long parent, htb_bind_filter() argument
|
/linux-4.4.14/drivers/md/persistent-data/ |
H A D | dm-btree-remove.c | 143 struct btree_node *parent, init_child() 150 root = value64(parent, index); init_child() 162 *((__le64 *) value_ptr(parent, index)) = init_child() 199 static void __rebalance2(struct dm_btree_info *info, struct btree_node *parent, __rebalance2() argument 214 delete_at(parent, r->index); __rebalance2() 227 *key_ptr(parent, r->index) = right->keys[0]; __rebalance2() 235 struct btree_node *parent; rebalance2() local 238 parent = dm_block_data(shadow_current(s)); rebalance2() 240 r = init_child(info, vt, parent, left_index, &left); rebalance2() 244 r = init_child(info, vt, parent, left_index + 1, &right); rebalance2() 250 __rebalance2(info, parent, &left, &right); rebalance2() 263 static void delete_center_node(struct dm_btree_info *info, struct btree_node *parent, delete_center_node() argument 282 *key_ptr(parent, r->index) = right->keys[0]; delete_center_node() 284 delete_at(parent, c->index); delete_center_node() 288 __rebalance2(info, parent, l, r); delete_center_node() 294 static void redistribute3(struct dm_btree_info *info, struct btree_node *parent, redistribute3() argument 337 *key_ptr(parent, c->index) = center->keys[0]; redistribute3() 338 *key_ptr(parent, r->index) = right->keys[0]; redistribute3() 341 static void __rebalance3(struct dm_btree_info *info, struct btree_node *parent, __rebalance3() argument 358 delete_center_node(info, parent, l, c, r, left, center, right, __rebalance3() 361 redistribute3(info, parent, l, c, r, left, center, right, __rebalance3() 369 struct btree_node *parent = dm_block_data(shadow_current(s)); rebalance3() local 375 r = init_child(info, vt, parent, left_index, &left); rebalance3() 379 r = init_child(info, vt, parent, left_index + 1, ¢er); rebalance3() 385 r = init_child(info, vt, parent, left_index + 2, &right); rebalance3() 392 __rebalance3(info, parent, &left, ¢er, &right); rebalance3() 476 * We have to patch up the parent node, ugly, but I don't remove_raw() 568 * We have to patch up the parent node, ugly, but I don't remove_nearest() 142 init_child(struct dm_btree_info *info, struct dm_btree_value_type *vt, struct btree_node *parent, unsigned index, struct child *result) init_child() argument
|
/linux-4.4.14/arch/sh/kernel/cpu/sh4/ |
H A D | clock-sh4-202.c | 28 return clk->parent->rate / frqcr3_divisors[idx]; emi_clk_recalc() 33 int divisor = clk->parent->rate / rate; frqcr3_lookup() 56 return clk->parent->rate / frqcr3_divisors[idx]; femi_clk_recalc() 84 if (clk->ops->set_rate(clk, clk->parent->rate / divisor) == 0) shoc_clk_init() 94 return clk->parent->rate / frqcr3_divisors[idx]; shoc_clk_recalc() 128 clk->rate = clk->parent->rate / frqcr3_divisors[tmp]; shoc_clk_set_rate() 168 clkp->parent = clk; arch_clk_init()
|
H A D | clock-sh4.c | 41 return clk->parent->rate / pfc_divisors[idx]; module_clk_recalc() 51 return clk->parent->rate / bfc_divisors[idx]; bus_clk_recalc() 61 return clk->parent->rate / ifc_divisors[idx]; cpu_clk_recalc()
|
/linux-4.4.14/drivers/clk/sunxi/ |
H A D | clk-a10-pll2.c | 49 const char *clk_name = node->name, *parent; sun4i_pll2_setup() local 69 parent = of_clk_get_parent_name(node, 0); sun4i_pll2_setup() 71 parent, 0, reg, sun4i_pll2_setup() 102 parent = __clk_get_name(prediv_clk); sun4i_pll2_setup() 104 &parent, 1, sun4i_pll2_setup() 114 parent = __clk_get_name(base_clk); sun4i_pll2_setup() 131 parent, sun4i_pll2_setup() 146 parent, sun4i_pll2_setup() 155 parent, sun4i_pll2_setup() 164 parent, sun4i_pll2_setup()
|
/linux-4.4.14/arch/parisc/kernel/ |
H A D | ftrace.c | 109 void prepare_ftrace_return(unsigned long *parent, unsigned long self_addr) prepare_ftrace_return() argument 121 old = *parent; prepare_ftrace_return() 122 *parent = (unsigned long) prepare_ftrace_return() 127 *parent = old; prepare_ftrace_return() 136 *parent = old; prepare_ftrace_return() 145 *parent = old; prepare_ftrace_return() 152 void ftrace_function_trampoline(unsigned long parent, ftrace_function_trampoline() argument 159 ftrace_trace_function(parent, self_addr); ftrace_function_trampoline() 176 /* sanity check: parent_rp should hold parent */ ftrace_function_trampoline() 177 if (*parent_rp != parent) ftrace_function_trampoline()
|
/linux-4.4.14/fs/xfs/ |
H A D | xfs_export.h | 38 * parent-inode-num 39 * parent-generation 50 * parent-inode-num-lo32 51 * parent-inode-num-hi32 52 * parent-generation
|
/linux-4.4.14/arch/sh/kernel/cpu/sh4a/ |
H A D | clock-sh7780.c | 37 return clk->parent->rate / pfc_divisors[idx]; module_clk_recalc() 47 return clk->parent->rate / bfc_divisors[idx]; bus_clk_recalc() 57 return clk->parent->rate / ifc_divisors[idx]; cpu_clk_recalc() 80 return clk->parent->rate / cfc_divisors[idx]; shyway_clk_recalc() 116 clkp->parent = clk; arch_clk_init()
|
H A D | clock-sh7763.c | 37 return clk->parent->rate / p0fc_divisors[idx]; module_clk_recalc() 47 return clk->parent->rate / bfc_divisors[idx]; bus_clk_recalc() 74 return clk->parent->rate / cfc_divisors[idx]; shyway_clk_recalc() 110 clkp->parent = clk; arch_clk_init()
|
/linux-4.4.14/fs/ubifs/ |
H A D | lpt.c | 496 struct ubifs_nnode *np = nnode->parent; ubifs_add_nnode_dirt() 517 ubifs_add_lpt_dirt(c, pnode->parent->nbranch[pnode->iip].lnum, add_pnode_dirt() 549 * @parent: parent nnode 550 * @iip: index in parent 555 * This function calculates and returns the nnode number based on the parent's 556 * nnode number and the index in parent. 559 struct ubifs_nnode *parent, int iip) calc_nnode_num_from_parent() 563 if (!parent) calc_nnode_num_from_parent() 565 shft = (c->lpt_hght - parent->level) * UBIFS_LPT_FANOUT_SHIFT; calc_nnode_num_from_parent() 566 num = parent->num ^ (1 << shft); calc_nnode_num_from_parent() 574 * @parent: parent nnode 575 * @iip: index in parent 580 * This function calculates and returns the pnode number based on the parent's 581 * nnode number and the index in parent. 584 struct ubifs_nnode *parent, int iip) calc_pnode_num_from_parent() 586 int i, n = c->lpt_hght - 1, pnum = parent->num, num = 0; calc_pnode_num_from_parent() 1089 * @parent: parent nnode (or NULL for the root nnode) 1090 * @iip: index in parent 1095 struct ubifs_nnode *parent, int iip) validate_nnode() 1100 int num = calc_nnode_num_from_parent(c, parent, iip); validate_nnode() 1105 lvl = parent ? parent->level - 1 : c->lpt_hght; validate_nnode() 1133 * @parent: parent nnode 1134 * @iip: index in parent 1139 struct ubifs_nnode *parent, int iip) validate_pnode() 1144 int num = calc_pnode_num_from_parent(c, parent, iip); validate_pnode() 1188 * @parent: parent nnode (or NULL for the root) 1189 * @iip: index in parent 1193 int ubifs_read_nnode(struct ubifs_info *c, struct ubifs_nnode *parent, int iip) ubifs_read_nnode() argument 1200 if (parent) { ubifs_read_nnode() 1201 branch = &parent->nbranch[iip]; ubifs_read_nnode() 1221 nnode->num = calc_nnode_num_from_parent(c, parent, iip); ubifs_read_nnode() 1230 err = validate_nnode(c, nnode, parent, iip); ubifs_read_nnode() 1234 nnode->num = calc_nnode_num_from_parent(c, parent, iip); ubifs_read_nnode() 1235 if (parent) { ubifs_read_nnode() 1237 nnode->level = parent->level - 1; ubifs_read_nnode() 1242 nnode->parent = parent; ubifs_read_nnode() 1256 * @parent: parent nnode 1257 * @iip: index in parent 1261 static int read_pnode(struct ubifs_info *c, struct ubifs_nnode *parent, int iip) read_pnode() argument 1268 branch = &parent->nbranch[iip]; read_pnode() 1284 pnode->num = calc_pnode_num_from_parent(c, parent, iip); read_pnode() 1299 err = validate_pnode(c, pnode, parent, iip); read_pnode() 1303 pnode->num = calc_pnode_num_from_parent(c, parent, iip); read_pnode() 1305 pnode->parent = parent; read_pnode() 1313 ubifs_dump_pnode(c, pnode, parent, iip); read_pnode() 1315 ubifs_err(c, "calc num: %d", calc_pnode_num_from_parent(c, parent, iip)); read_pnode() 1388 * @parent: parent nnode (or NULL for the root) 1389 * @iip: index in parent 1395 struct ubifs_nnode *parent, int iip) ubifs_get_nnode() 1401 branch = &parent->nbranch[iip]; ubifs_get_nnode() 1405 err = ubifs_read_nnode(c, parent, iip); ubifs_get_nnode() 1414 * @parent: parent nnode 1415 * @iip: index in parent 1421 struct ubifs_nnode *parent, int iip) ubifs_get_pnode() 1427 branch = &parent->nbranch[iip]; ubifs_get_pnode() 1431 err = read_pnode(c, parent, iip); ubifs_get_pnode() 1509 /* The children now have new parent */ dirty_cow_nnode() 1514 branch->cnode->parent = n; dirty_cow_nnode() 1522 if (nnode->parent) dirty_cow_nnode() 1523 nnode->parent->nbranch[n->iip].nnode = n; dirty_cow_nnode() 1565 pnode->parent->nbranch[p->iip].pnode = p; dirty_cow_pnode() 1785 * @parent: parent of the nnode 1786 * @iip: index in parent of the nnode 1793 struct ubifs_nnode *parent, int iip) scan_get_nnode() 1800 branch = &parent->nbranch[iip]; scan_get_nnode() 1819 nnode->num = calc_nnode_num_from_parent(c, parent, iip); scan_get_nnode() 1829 err = validate_nnode(c, nnode, parent, iip); scan_get_nnode() 1833 nnode->num = calc_nnode_num_from_parent(c, parent, iip); scan_get_nnode() 1834 nnode->level = parent->level - 1; scan_get_nnode() 1835 nnode->parent = parent; scan_get_nnode() 1844 * @parent: parent of the pnode 1845 * @iip: index in parent of the pnode 1852 struct ubifs_nnode *parent, int iip) scan_get_pnode() 1859 branch = &parent->nbranch[iip]; scan_get_pnode() 1879 pnode->num = calc_pnode_num_from_parent(c, parent, iip); scan_get_pnode() 1898 err = validate_pnode(c, pnode, parent, iip); scan_get_pnode() 1902 pnode->num = calc_pnode_num_from_parent(c, parent, iip); scan_get_pnode() 1903 pnode->parent = parent; scan_get_pnode() 1985 struct ubifs_nnode *parent; ubifs_lpt_scan_nolock() local 1994 parent = nnode->parent; ubifs_lpt_scan_nolock() 1995 parent->nbranch[nnode->iip].nnode = nnode; ubifs_lpt_scan_nolock() 1998 path[h + 1].cnode.parent = nnode; ubifs_lpt_scan_nolock() 2004 struct ubifs_nnode *parent; ubifs_lpt_scan_nolock() local 2011 parent = pnode->parent; ubifs_lpt_scan_nolock() 2012 parent->nbranch[pnode->iip].pnode = pnode; ubifs_lpt_scan_nolock() 2097 ubifs_err(c, "pnode num %d expected %d parent num %d iip %d", dbg_chk_pnode() 2098 pnode->num, col, pnode->parent->num, pnode->iip); dbg_chk_pnode() 2233 nnode = cnode->parent; dbg_check_lpt_nodes() 2238 ubifs_err(c, "nnode num %d expected %d parent num %d iip %d", dbg_check_lpt_nodes() 558 calc_nnode_num_from_parent(const struct ubifs_info *c, struct ubifs_nnode *parent, int iip) calc_nnode_num_from_parent() argument 583 calc_pnode_num_from_parent(const struct ubifs_info *c, struct ubifs_nnode *parent, int iip) calc_pnode_num_from_parent() argument 1094 validate_nnode(const struct ubifs_info *c, struct ubifs_nnode *nnode, struct ubifs_nnode *parent, int iip) validate_nnode() argument 1138 validate_pnode(const struct ubifs_info *c, struct ubifs_pnode *pnode, struct ubifs_nnode *parent, int iip) validate_pnode() argument 1394 ubifs_get_nnode(struct ubifs_info *c, struct ubifs_nnode *parent, int iip) ubifs_get_nnode() argument 1420 ubifs_get_pnode(struct ubifs_info *c, struct ubifs_nnode *parent, int iip) ubifs_get_pnode() argument 1791 scan_get_nnode(struct ubifs_info *c, struct lpt_scan_node *path, struct ubifs_nnode *parent, int iip) scan_get_nnode() argument 1850 scan_get_pnode(struct ubifs_info *c, struct lpt_scan_node *path, struct ubifs_nnode *parent, int iip) scan_get_pnode() argument
|
/linux-4.4.14/drivers/input/mouse/ |
H A D | psmouse-base.c | 1262 struct psmouse *parent = NULL, *psmouse = psmouse_resync() local 1274 if (serio->parent && serio->id.type == SERIO_PS_PSTHRU) { psmouse_resync() 1275 parent = serio_get_drvdata(serio->parent); psmouse_resync() 1276 psmouse_deactivate(parent); psmouse_resync() 1347 if (parent) psmouse_resync() 1348 psmouse_activate(parent); psmouse_resync() 1360 struct psmouse *parent = NULL; psmouse_cleanup() local 1364 if (serio->parent && serio->id.type == SERIO_PS_PSTHRU) { psmouse_cleanup() 1365 parent = serio_get_drvdata(serio->parent); psmouse_cleanup() 1366 psmouse_deactivate(parent); psmouse_cleanup() 1392 if (parent) { psmouse_cleanup() 1393 if (parent->pt_deactivate) psmouse_cleanup() 1394 parent->pt_deactivate(parent); psmouse_cleanup() 1396 psmouse_activate(parent); psmouse_cleanup() 1408 struct psmouse *psmouse, *parent = NULL; psmouse_disconnect() local 1423 if (serio->parent && serio->id.type == SERIO_PS_PSTHRU) { psmouse_disconnect() 1424 parent = serio_get_drvdata(serio->parent); psmouse_disconnect() 1425 psmouse_deactivate(parent); psmouse_disconnect() 1431 if (parent && parent->pt_deactivate) psmouse_disconnect() 1432 parent->pt_deactivate(parent); psmouse_disconnect() 1441 if (parent) psmouse_disconnect() 1442 psmouse_activate(parent); psmouse_disconnect() 1453 input_dev->dev.parent = &psmouse->ps2dev.serio->dev; psmouse_switch_protocol() 1510 struct psmouse *psmouse, *parent = NULL; psmouse_connect() local 1517 * If this is a pass-through port deactivate parent so the device psmouse_connect() 1520 if (serio->parent && serio->id.type == SERIO_PS_PSTHRU) { psmouse_connect() 1521 parent = serio_get_drvdata(serio->parent); psmouse_connect() 1522 psmouse_deactivate(parent); psmouse_connect() 1555 psmouse->resync_time = parent ? 0 : psmouse_resync_time; psmouse_connect() 1567 if (parent && parent->pt_activate) psmouse_connect() 1568 parent->pt_activate(parent); psmouse_connect() 1577 /* If this is a pass-through port the parent needs to be re-activated */ psmouse_connect() 1578 if (parent) psmouse_connect() 1579 psmouse_activate(parent); psmouse_connect() 1585 if (parent && parent->pt_deactivate) psmouse_connect() 1586 parent->pt_deactivate(parent); psmouse_connect() 1609 struct psmouse *parent = NULL; psmouse_reconnect() local 1615 if (serio->parent && serio->id.type == SERIO_PS_PSTHRU) { psmouse_reconnect() 1616 parent = serio_get_drvdata(serio->parent); psmouse_reconnect() 1617 psmouse_deactivate(parent); psmouse_reconnect() 1644 if (parent && parent->pt_activate) psmouse_reconnect() 1645 parent->pt_activate(parent); psmouse_reconnect() 1651 /* If this is a pass-through port the parent waits to be activated */ psmouse_reconnect() 1652 if (parent) psmouse_reconnect() 1653 psmouse_activate(parent); psmouse_reconnect() 1707 struct psmouse *psmouse, *parent = NULL; psmouse_attr_set_helper() local 1722 if (serio->parent && serio->id.type == SERIO_PS_PSTHRU) { psmouse_attr_set_helper() 1723 parent = serio_get_drvdata(serio->parent); psmouse_attr_set_helper() 1724 psmouse_deactivate(parent); psmouse_attr_set_helper() 1736 if (parent) psmouse_attr_set_helper() 1737 psmouse_activate(parent); psmouse_attr_set_helper() 1776 struct psmouse *parent = NULL; psmouse_attr_set_protocol() local 1816 if (serio->parent && serio->id.type == SERIO_PS_PSTHRU) { psmouse_attr_set_protocol() 1817 parent = serio_get_drvdata(serio->parent); psmouse_attr_set_protocol() 1818 if (parent->pt_deactivate) psmouse_attr_set_protocol() 1819 parent->pt_deactivate(parent); psmouse_attr_set_protocol() 1860 if (parent && parent->pt_activate) psmouse_attr_set_protocol() 1861 parent->pt_activate(parent); psmouse_attr_set_protocol()
|
/linux-4.4.14/security/apparmor/ |
H A D | apparmorfs.c | 401 int __aa_fs_profile_mkdir(struct aa_profile *profile, struct dentry *parent) __aa_fs_profile_mkdir() argument 407 if (!parent) { __aa_fs_profile_mkdir() 411 /* adding to parent that previously didn't have children */ __aa_fs_profile_mkdir() 415 prof_child_dir(p) = parent = dent; __aa_fs_profile_mkdir() 431 dent = securityfs_create_dir(profile->dirname, parent); __aa_fs_profile_mkdir() 501 int __aa_fs_namespace_mkdir(struct aa_namespace *ns, struct dentry *parent, __aa_fs_namespace_mkdir() argument 512 dent = securityfs_create_dir(name, parent); __aa_fs_namespace_mkdir() 566 * Requires: ns->parent->lock to be held 572 struct aa_namespace *parent, *next; __next_namespace() local 581 /* check if the next ns is a sibling, parent, gp, .. */ __next_namespace() 582 parent = ns->parent; __next_namespace() 586 if (!list_entry_is_head(next, &parent->sub_ns, base.list)) { __next_namespace() 590 ns = parent; __next_namespace() 591 parent = parent->parent; __next_namespace() 627 struct aa_profile *parent; __next_profile() local 635 /* is next profile a sibling, parent sibling, gp, sibling, .. */ __next_profile() 636 parent = rcu_dereference_protected(p->parent, __next_profile() 638 while (parent) { __next_profile() 640 if (!list_entry_is_head(p, &parent->base.profiles, base.list)) __next_profile() 642 p = parent; __next_profile() 643 parent = rcu_dereference_protected(parent->parent, __next_profile() 644 mutex_is_locked(&parent->ns->lock)); __next_profile() 733 for (ns = profile->ns; ns && ns != root; ns = ns->parent) p_stop() 830 * @parent: the parent dentry in the securityfs 835 struct dentry *parent) aafs_create_file() 841 parent, fs_file, aafs_create_file() 854 * @parent: the parent dentry in the securityfs 859 struct dentry *parent) aafs_create_dir() 865 dir = securityfs_create_dir(fs_dir->name, parent); aafs_create_dir() 834 aafs_create_file(struct aa_fs_entry *fs_file, struct dentry *parent) aafs_create_file() argument 858 aafs_create_dir(struct aa_fs_entry *fs_dir, struct dentry *parent) aafs_create_dir() argument
|
/linux-4.4.14/fs/ceph/ |
H A D | export.c | 18 * Larger fh that includes parent ino. 46 dout("encode_fh %llx with parent %llx\n", ceph_encode_fh() 166 dout("__get_parent ino %llx parent %p ino %llx.%llx\n", __get_parent() 184 * convert regular fh to parent 205 static int ceph_get_name(struct dentry *parent, char *name, ceph_get_name() argument 218 mutex_lock(&d_inode(parent)->i_mutex); ceph_get_name() 222 req->r_ino2 = ceph_vino(d_inode(parent)); ceph_get_name() 223 req->r_locked_dir = d_inode(parent); ceph_get_name() 227 mutex_unlock(&d_inode(parent)->i_mutex); ceph_get_name()
|
H A D | snap.c | 30 * parent's snap set _after_ the point at which the parent became it's 31 * parent (due to, say, a rename). Similarly, snaps from prior parents 32 * during the time intervals during which they were the parent are included. 35 * maintains a hierarchy of realms reflecting the current parent/child 43 * snapshot, new parent, etc.) the client's realm hierarchy is updated. 84 struct rb_node *parent = NULL; __insert_snap_realm() local 88 parent = *p; __insert_snap_realm() 89 r = rb_entry(parent, struct ceph_snap_realm, node); __insert_snap_realm() 98 rb_link_node(&new->node, parent, p); __insert_snap_realm() 178 if (realm->parent) { __destroy_snap_realm() 180 __put_snap_realm(mdsc, realm->parent); __destroy_snap_realm() 253 * adjust the parent realm of a given @realm. adjust child list, and parent 256 * return true if parent was changed, 0 if unchanged, <0 on error. 264 struct ceph_snap_realm *parent; adjust_snap_realm_parent() local 269 parent = ceph_lookup_snap_realm(mdsc, parentino); adjust_snap_realm_parent() 270 if (!parent) { adjust_snap_realm_parent() 271 parent = ceph_create_snap_realm(mdsc, parentino); adjust_snap_realm_parent() 272 if (IS_ERR(parent)) adjust_snap_realm_parent() 273 return PTR_ERR(parent); adjust_snap_realm_parent() 276 realm->ino, realm, realm->parent_ino, realm->parent, adjust_snap_realm_parent() 277 parentino, parent); adjust_snap_realm_parent() 278 if (realm->parent) { adjust_snap_realm_parent() 280 ceph_put_snap_realm(mdsc, realm->parent); adjust_snap_realm_parent() 283 realm->parent = parent; adjust_snap_realm_parent() 284 list_add(&realm->child_item, &parent->children); adjust_snap_realm_parent() 306 struct ceph_snap_realm *parent = realm->parent; build_snap_context() local 312 * build parent context, if it hasn't been built. build_snap_context() 313 * conservatively estimate that all parent snaps might be build_snap_context() 316 if (parent) { build_snap_context() 317 if (!parent->cached_context) { build_snap_context() 318 err = build_snap_context(parent); build_snap_context() 322 num += parent->cached_context->num_snaps; build_snap_context() 331 (!parent || build_snap_context() 332 realm->cached_context->seq >= parent->cached_context->seq)) { build_snap_context() 352 if (parent) { build_snap_context() 355 /* include any of parent's snaps occurring _after_ my build_snap_context() 356 parent became my parent */ build_snap_context() 357 for (i = 0; i < parent->cached_context->num_snaps; i++) build_snap_context() 358 if (parent->cached_context->snaps[i] >= build_snap_context() 361 parent->cached_context->snaps[i]; build_snap_context() 362 if (parent->cached_context->seq > snapc->seq) build_snap_context() 363 snapc->seq = parent->cached_context->seq; build_snap_context() 698 /* ensure the parent is correct */ ceph_update_snap_trace() 699 err = adjust_snap_realm_parent(mdsc, realm, le64_to_cpu(ri->parent)); ceph_update_snap_trace()
|
/linux-4.4.14/drivers/rtc/ |
H A D | rtc-tps80031.c | 72 ret = tps80031_reads(dev->parent, TPS80031_SLAVE_ID1, tps80031_rtc_read_time() 103 ret = tps80031_clr_bits(dev->parent, TPS80031_SLAVE_ID1, tps80031_rtc_set_time() 106 dev_err(dev->parent, "Stop RTC failed, err = %d\n", ret); tps80031_rtc_set_time() 110 ret = tps80031_writes(dev->parent, TPS80031_SLAVE_ID1, tps80031_rtc_set_time() 118 ret = tps80031_set_bits(dev->parent, TPS80031_SLAVE_ID1, tps80031_rtc_set_time() 121 dev_err(dev->parent, "Start RTC failed, err = %d\n", ret); tps80031_rtc_set_time() 131 ret = tps80031_set_bits(dev->parent, TPS80031_SLAVE_ID1, tps80031_rtc_alarm_irq_enable() 134 ret = tps80031_clr_bits(dev->parent, TPS80031_SLAVE_ID1, tps80031_rtc_alarm_irq_enable() 154 ret = tps80031_writes(dev->parent, TPS80031_SLAVE_ID1, tps80031_rtc_set_alarm() 169 ret = tps80031_reads(dev->parent, TPS80031_SLAVE_ID1, tps80031_rtc_read_alarm() 173 dev_err(dev->parent, tps80031_rtc_read_alarm() 197 ret = tps80031_read(dev->parent, TPS80031_SLAVE_ID1, clear_alarm_int_status() 205 ret = tps80031_set_bits(dev->parent, TPS80031_SLAVE_ID1, clear_alarm_int_status() 250 ret = tps80031_set_bits(pdev->dev.parent, TPS80031_SLAVE_ID1, tps80031_rtc_probe()
|
/linux-4.4.14/drivers/i2c/muxes/ |
H A D | i2c-mux-gpio.c | 21 struct i2c_adapter *parent; member in struct:gpiomux 73 adapter_np = of_parse_phandle(np, "i2c-parent", 0); i2c_mux_gpio_probe_dt() 75 dev_err(&pdev->dev, "Cannot parse i2c-parent\n"); i2c_mux_gpio_probe_dt() 83 mux->data.parent = i2c_adapter_id(adapter); i2c_mux_gpio_probe_dt() 140 struct i2c_adapter *parent; i2c_mux_gpio_probe() local 179 parent = i2c_get_adapter(mux->data.parent); i2c_mux_gpio_probe() 180 if (!parent) i2c_mux_gpio_probe() 183 mux->parent = parent; i2c_mux_gpio_probe() 226 mux->adap[i] = i2c_add_mux_adapter(parent, &pdev->dev, mux, nr, i2c_mux_gpio_probe() 237 mux->data.n_values, parent->name); i2c_mux_gpio_probe() 249 i2c_put_adapter(parent); i2c_mux_gpio_probe() 265 i2c_put_adapter(mux->parent); i2c_mux_gpio_remove()
|
H A D | i2c-mux-reg.c | 24 struct i2c_adapter *parent; member in struct:regmux 100 adapter_np = of_parse_phandle(np, "i2c-parent", 0); i2c_mux_reg_probe_dt() 102 dev_err(&pdev->dev, "Cannot parse i2c-parent\n"); i2c_mux_reg_probe_dt() 110 mux->parent = adapter; i2c_mux_reg_probe_dt() 111 mux->data.parent = i2c_adapter_id(adapter); i2c_mux_reg_probe_dt() 173 struct i2c_adapter *parent; i2c_mux_reg_probe() local 189 parent = i2c_get_adapter(mux->data.parent); i2c_mux_reg_probe() 190 if (!parent) i2c_mux_reg_probe() 193 mux->parent = parent; i2c_mux_reg_probe() 235 mux->adap[i] = i2c_add_mux_adapter(mux->parent, &pdev->dev, mux, i2c_mux_reg_probe() 247 mux->data.n_values, mux->parent->name); i2c_mux_reg_probe() 266 i2c_put_adapter(mux->parent); i2c_mux_reg_remove()
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/ |
H A D | base.c | 36 struct nvkm_memory *parent; member in struct:nvkm_instobj 46 memory = nvkm_instobj(memory)->parent; nvkm_instobj_target() 53 memory = nvkm_instobj(memory)->parent; nvkm_instobj_addr() 60 memory = nvkm_instobj(memory)->parent; nvkm_instobj_size() 92 memory = nvkm_instobj(memory)->parent; nvkm_instobj_map() 103 nvkm_memory_del(&iobj->parent); nvkm_instobj_dtor() 123 memory = nvkm_instobj(memory)->parent; nvkm_instobj_boot() 132 nvkm_done(iobj->parent); nvkm_instobj_release_slow() 139 iobj->map = nvkm_kmap(iobj->parent); nvkm_instobj_acquire_slow() 149 return nvkm_ro32(iobj->parent, offset); nvkm_instobj_rd32_slow() 156 return nvkm_wo32(iobj->parent, offset, data); nvkm_instobj_wr32_slow() 193 iobj->parent = memory; nvkm_instobj_new() 247 struct nvkm_memory *memory = iobj->parent; nvkm_instmem_fini() 280 struct nvkm_memory *memory = iobj->parent; nvkm_instmem_init()
|
/linux-4.4.14/fs/fat/ |
H A D | nfs.c | 110 struct inode *parent) fat_encode_fh_nostale() 118 if (parent) { fat_encode_fh_nostale() 135 if (parent) { fat_encode_fh_nostale() 136 i_pos = fat_i_pos_read(sbi, parent); fat_encode_fh_nostale() 139 fid->parent_i_gen = parent->i_generation; fat_encode_fh_nostale() 186 * Find the parent for a file specified by NFS handle. 187 * This requires that the handle contain the i_ino of the parent. 219 * Rebuild the parent for a directory that is not connected 227 struct inode *parent = NULL; fat_rebuild_parent() local 235 "unable to read cluster of parent directory"); fat_rebuild_parent() 248 return parent; fat_rebuild_parent() 257 parent = fat_build_inode(sb, sinfo.de, sinfo.i_pos); fat_rebuild_parent() 262 return parent; fat_rebuild_parent() 266 * Find the parent for a directory that is not currently connected to 109 fat_encode_fh_nostale(struct inode *inode, __u32 *fh, int *lenp, struct inode *parent) fat_encode_fh_nostale() argument
|
/linux-4.4.14/net/ipv4/ |
H A D | inet_lro.c | 155 lro_desc->parent = skb; lro_init_desc() 188 struct sk_buff *parent = lro_desc->parent; lro_add_common() local 206 parent->len); lro_add_common() 208 parent->len += tcp_data_len; lro_add_common() 209 parent->data_len += tcp_data_len; lro_add_common() 217 struct sk_buff *parent = lro_desc->parent; lro_add_packet() local 223 parent->truesize += skb->truesize; lro_add_packet() 228 skb_shinfo(parent)->frag_list = skb; lro_add_packet() 283 skb_shinfo(lro_desc->parent)->gso_size = lro_desc->mss; lro_flush() 286 netif_receive_skb(lro_desc->parent); lro_flush() 288 netif_rx(lro_desc->parent); lro_flush() 339 lro_desc->parent->len > (0xFFFF - lro_mgr->dev->mtu)) __lro_proc_skb()
|
/linux-4.4.14/drivers/clk/rockchip/ |
H A D | clk-cpu.c | 45 * @alt_parent: alternate parent clock to use when switching the speed 46 * of the primary parent clock. 49 * primary parent clock. 110 /* alternate parent is active now. set the dividers */ rockchip_cpuclk_set_dividers() 135 * If the old parent clock speed is less than the clock speed rockchip_cpuclk_pre_rate_change() 136 * of the alternate parent, then it should be ensured that at no point rockchip_cpuclk_pre_rate_change() 153 * dividing the primary parent by the extra dividers that were rockchip_cpuclk_pre_rate_change() 164 /* select alternate parent */ rockchip_cpuclk_pre_rate_change() 193 * post-rate change event, re-mux to primary parent and remove dividers. rockchip_cpuclk_post_rate_change() 196 * primary parent by the extra dividers that were needed for the alt. rockchip_cpuclk_post_rate_change() 212 * This clock notifier is called when the frequency of the parent clock 214 * the divider clocks, remux to temporary parent and handling the safe 215 * frequency levels when using temporary parent. 246 pr_err("%s: needs two parent clocks\n", __func__); rockchip_clk_register_cpuclk() 262 /* disallow automatic parent changes by ccf */ rockchip_clk_register_cpuclk() 275 pr_err("%s: could not lookup alternate parent\n", rockchip_clk_register_cpuclk() 283 pr_err("%s: could not enable alternate parent\n", rockchip_clk_register_cpuclk() 290 pr_err("%s: could not lookup parent clock %s\n", rockchip_clk_register_cpuclk()
|
/linux-4.4.14/security/yama/ |
H A D | yama_lsm.c | 205 * @parent: the process to compare against while walking up from child 206 * @child: the process to start from while looking upwards for parent 208 * Returns 1 if child is a descendant of parent, 0 if not. 210 static int task_is_descendant(struct task_struct *parent, task_is_descendant() argument 216 if (!parent || !child) task_is_descendant() 220 if (!thread_group_leader(parent)) task_is_descendant() 221 parent = rcu_dereference(parent->group_leader); task_is_descendant() 225 if (walker == parent) { task_is_descendant() 248 struct task_struct *parent = NULL; ptracer_exception_found() local 258 parent = relation->tracer; ptracer_exception_found() 264 if (found && (parent == NULL || task_is_descendant(parent, tracer))) ptracer_exception_found() 321 * @parent: task that will become the ptracer of the current task 325 int yama_ptrace_traceme(struct task_struct *parent) yama_ptrace_traceme() argument 332 if (!has_ns_capability(parent, current_user_ns(), CAP_SYS_PTRACE)) yama_ptrace_traceme() 343 current->pid, parent->comm, parent->pid); yama_ptrace_traceme()
|
/linux-4.4.14/drivers/hwtracing/coresight/ |
H A D | coresight-etm3x.c | 320 struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); etm_trace_id() 326 pm_runtime_get_sync(csdev->dev.parent); etm_trace_id() 335 pm_runtime_put(csdev->dev.parent); etm_trace_id() 342 struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); etm_enable() 345 pm_runtime_get_sync(csdev->dev.parent); etm_enable() 369 pm_runtime_put(csdev->dev.parent); etm_enable() 398 struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); etm_disable() 418 pm_runtime_put(csdev->dev.parent); etm_disable() 437 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); nr_addr_cmp_show() 447 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); nr_cntr_show() 458 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); nr_ctxid_cmp_show() 469 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); etmsr_show() 491 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); reset_store() 523 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); mode_show() 535 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); mode_store() 592 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); trigger_event_show() 604 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); trigger_event_store() 620 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); enable_event_show() 632 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); enable_event_store() 648 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); fifofull_level_show() 660 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); fifofull_level_store() 676 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); addr_idx_show() 688 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); addr_idx_store() 714 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); addr_single_show() 737 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); addr_single_store() 764 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); addr_range_show() 793 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); addr_range_store() 831 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); addr_start_show() 854 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); addr_start_store() 883 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); addr_stop_show() 906 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); addr_stop_store() 934 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); addr_acctype_show() 949 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); addr_acctype_store() 967 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); cntr_idx_show() 979 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); cntr_idx_store() 1003 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); cntr_rld_val_show() 1018 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); cntr_rld_val_store() 1036 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); cntr_event_show() 1051 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); cntr_event_store() 1069 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); cntr_rld_event_show() 1084 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); cntr_rld_event_store() 1103 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); cntr_val_show() 1128 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); cntr_val_store() 1146 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); seq_12_event_show() 1158 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); seq_12_event_store() 1173 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); seq_21_event_show() 1185 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); seq_21_event_store() 1200 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); seq_23_event_show() 1212 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); seq_23_event_store() 1227 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); seq_31_event_show() 1239 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); seq_31_event_store() 1254 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); seq_32_event_show() 1266 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); seq_32_event_store() 1281 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); seq_13_event_show() 1293 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); seq_13_event_store() 1308 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); seq_curr_state_show() 1334 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); seq_curr_state_store() 1353 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); ctxid_idx_show() 1365 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); ctxid_idx_store() 1390 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); ctxid_pid_show() 1405 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); ctxid_pid_store() 1426 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); ctxid_mask_show() 1438 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); ctxid_mask_store() 1453 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); sync_freq_show() 1465 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); sync_freq_store() 1480 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); timestamp_event_show() 1492 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); timestamp_event_store() 1507 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); cpu_show() 1519 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); traceid_show() 1545 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); traceid_store() 1598 struct etm_drvdata *drvdata = dev_get_drvdata(_dev->parent); \
|
/linux-4.4.14/drivers/base/power/ |
H A D | runtime.c | 214 dev = dev->parent; pm_runtime_set_memalloc_noio() 217 * clear flag of the parent device only if all the pm_runtime_set_memalloc_noio() 407 * notification for its parent (if the suspend succeeded and both 408 * ignore_children of parent->power and irq_safe of dev->power are not set). 419 struct device *parent = NULL; variable in typeref:struct:device 527 if (dev->parent) { 528 parent = dev->parent; 529 atomic_add_unless(&parent->power.child_count, -1, 0); 540 /* Maybe the parent is now able to suspend. */ 541 if (parent && !parent->power.ignore_children && !dev->power.irq_safe) { 544 spin_lock(&parent->power.lock); 545 rpm_idle(parent, RPM_ASYNC); 546 spin_unlock(&parent->power.lock); 601 struct device *parent = NULL; variable in typeref:struct:device 672 * See if we can skip waking up the parent. This is safe only if 676 if (dev->power.no_callbacks && !parent && dev->parent) { 677 spin_lock_nested(&dev->parent->power.lock, SINGLE_DEPTH_NESTING); 678 if (dev->parent->power.disable_depth > 0 679 || dev->parent->power.ignore_children 680 || dev->parent->power.runtime_status == RPM_ACTIVE) { 681 atomic_inc(&dev->parent->power.child_count); 682 spin_unlock(&dev->parent->power.lock); 686 spin_unlock(&dev->parent->power.lock); 700 if (!parent && dev->parent) { 702 * Increment the parent's usage counter and resume it if 704 * parent is permanently resumed. 706 parent = dev->parent; 711 pm_runtime_get_noresume(parent); variable 713 spin_lock(&parent->power.lock); 715 * We can resume if the parent's runtime PM is disabled or it 718 if (!parent->power.disable_depth 719 && !parent->power.ignore_children) { 720 rpm_resume(parent, 0); 721 if (parent->power.runtime_status != RPM_ACTIVE) 724 spin_unlock(&parent->power.lock); 750 if (parent) 751 atomic_inc(&parent->power.child_count); 759 if (parent && !dev->power.irq_safe) { 762 pm_runtime_put(parent); variable 976 * However, if the device has a parent and the parent is not active, and the 977 * parent's power.ignore_children flag is unset, the device's status cannot be 981 * and the device parent's counter of unsuspended children is modified to 983 * notification request for the parent is submitted. 987 struct device *parent = dev->parent; __pm_runtime_set_status() local 1007 if (parent) { __pm_runtime_set_status() 1008 atomic_add_unless(&parent->power.child_count, -1, 0); __pm_runtime_set_status() 1009 notify_parent = !parent->power.ignore_children; __pm_runtime_set_status() 1014 if (parent) { __pm_runtime_set_status() 1015 spin_lock_nested(&parent->power.lock, SINGLE_DEPTH_NESTING); __pm_runtime_set_status() 1018 * It is invalid to put an active child under a parent that is __pm_runtime_set_status() 1022 if (!parent->power.disable_depth __pm_runtime_set_status() 1023 && !parent->power.ignore_children __pm_runtime_set_status() 1024 && parent->power.runtime_status != RPM_ACTIVE) __pm_runtime_set_status() 1027 atomic_inc(&parent->power.child_count); __pm_runtime_set_status() 1029 spin_unlock(&parent->power.lock); __pm_runtime_set_status() 1042 pm_request_idle(parent); __pm_runtime_set_status() 1247 * device is power-managed through its parent and has no runtime PM 1267 * causes the parent's usage counter to be permanently incremented, preventing 1268 * the parent from runtime suspending -- otherwise an irq-safe child might have 1269 * to wait for a non-irq-safe parent. 1273 if (dev->parent) pm_runtime_irq_safe() 1274 pm_runtime_get_sync(dev->parent); pm_runtime_irq_safe() 1403 if (dev->power.irq_safe && dev->parent) pm_runtime_remove() 1404 pm_runtime_put(dev->parent); pm_runtime_remove()
|
/linux-4.4.14/drivers/acpi/ |
H A D | acpi_platform.c | 81 * If the ACPI node has a parent and that parent has a physical device acpi_create_platform_device() 82 * attached to it, that physical device should be the parent of the acpi_create_platform_device() 85 pdevinfo.parent = NULL; acpi_create_platform_device() 86 acpi_parent = adev->parent; acpi_create_platform_device() 97 pdevinfo.parent = entry->dev; acpi_create_platform_device()
|
/linux-4.4.14/drivers/scsi/libsas/ |
H A D | sas_expander.c | 659 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); sas_smp_get_phy_events() 738 static void sas_ex_get_linkrate(struct domain_device *parent, sas_ex_get_linkrate() argument 742 struct expander_device *parent_ex = &parent->ex_dev; sas_ex_get_linkrate() 760 child->min_linkrate = min(parent->min_linkrate, sas_ex_get_linkrate() 762 child->max_linkrate = max(parent->max_linkrate, sas_ex_get_linkrate() 769 child->pathways = min(child->pathways, parent->pathways); sas_ex_get_linkrate() 773 struct domain_device *parent, int phy_id) sas_ex_discover_end_dev() 775 struct expander_device *parent_ex = &parent->ex_dev; sas_ex_discover_end_dev() 788 kref_get(&parent->kref); sas_ex_discover_end_dev() 789 child->parent = parent; sas_ex_discover_end_dev() 790 child->port = parent->port; sas_ex_discover_end_dev() 795 phy->port = sas_port_alloc(&parent->rphy->dev, phy_id); sas_ex_discover_end_dev() 803 sas_ex_get_linkrate(parent, child, phy); sas_ex_discover_end_dev() 823 list_add_tail(&child->disco_list_node, &parent->port->disco_list); sas_ex_discover_end_dev() 830 SAS_ADDR(parent->sas_addr), phy_id, res); sas_ex_discover_end_dev() 848 list_add_tail(&child->disco_list_node, &parent->port->disco_list); sas_ex_discover_end_dev() 855 SAS_ADDR(parent->sas_addr), phy_id, res); sas_ex_discover_end_dev() 860 phy->attached_tproto, SAS_ADDR(parent->sas_addr), sas_ex_discover_end_dev() 871 spin_lock_irq(&parent->port->dev_list_lock); sas_ex_discover_end_dev() 873 spin_unlock_irq(&parent->port->dev_list_lock); sas_ex_discover_end_dev() 883 static bool sas_ex_join_wide_port(struct domain_device *parent, int phy_id) sas_ex_join_wide_port() argument 885 struct ex_phy *phy = &parent->ex_dev.ex_phy[phy_id]; sas_ex_join_wide_port() 888 for (i = 0; i < parent->ex_dev.num_phys; i++) { sas_ex_join_wide_port() 889 struct ex_phy *ephy = &parent->ex_dev.ex_phy[i]; sas_ex_join_wide_port() 907 struct domain_device *parent, int phy_id) sas_ex_discover_expander() 909 struct sas_expander_device *parent_ex = rphy_to_expander_device(parent->rphy); sas_ex_discover_expander() 910 struct ex_phy *phy = &parent->ex_dev.ex_phy[phy_id]; sas_ex_discover_expander() 920 SAS_ADDR(parent->sas_addr), phy_id, sas_ex_discover_expander() 929 phy->port = sas_port_alloc(&parent->rphy->dev, phy_id); sas_ex_discover_expander() 947 port = parent->port; sas_ex_discover_expander() 952 kref_get(&parent->kref); sas_ex_discover_expander() 953 child->parent = parent; sas_ex_discover_expander() 959 sas_ex_get_linkrate(parent, child, phy); sas_ex_discover_expander() 961 parent->port->disc.max_level = max(parent->port->disc.max_level, sas_ex_discover_expander() 967 spin_lock_irq(&parent->port->dev_list_lock); sas_ex_discover_expander() 968 list_add_tail(&child->dev_list_node, &parent->port->dev_list); sas_ex_discover_expander() 969 spin_unlock_irq(&parent->port->dev_list_lock); sas_ex_discover_expander() 974 spin_lock_irq(&parent->port->dev_list_lock); sas_ex_discover_expander() 976 spin_unlock_irq(&parent->port->dev_list_lock); sas_ex_discover_expander() 980 list_add_tail(&child->siblings, &parent->ex_dev.children); sas_ex_discover_expander() 1000 if (!dev->parent && (SAS_ADDR(ex_phy->attached_sas_addr) == sas_ex_discover_dev() 1005 if (dev->parent && (SAS_ADDR(ex_phy->attached_sas_addr) == sas_ex_discover_dev() 1006 SAS_ADDR(dev->parent->sas_addr))) { sas_ex_discover_dev() 1251 struct domain_device *parent = child->parent; sas_print_parent_topology_bug() local 1256 ex_type[parent->dev_type], sas_print_parent_topology_bug() 1257 SAS_ADDR(parent->sas_addr), sas_print_parent_topology_bug() 1264 sas_route_char(parent, parent_phy), sas_print_parent_topology_bug() 1273 struct domain_device *parent = child->parent; sas_check_eeds() local 1275 if (SAS_ADDR(parent->port->disc.fanout_sas_addr) != 0) { sas_check_eeds() 1279 SAS_ADDR(parent->sas_addr), sas_check_eeds() 1283 SAS_ADDR(parent->port->disc.fanout_sas_addr)); sas_check_eeds() 1284 } else if (SAS_ADDR(parent->port->disc.eeds_a) == 0) { sas_check_eeds() 1285 memcpy(parent->port->disc.eeds_a, parent->sas_addr, sas_check_eeds() 1287 memcpy(parent->port->disc.eeds_b, child->sas_addr, sas_check_eeds() 1289 } else if (((SAS_ADDR(parent->port->disc.eeds_a) == sas_check_eeds() 1290 SAS_ADDR(parent->sas_addr)) || sas_check_eeds() 1291 (SAS_ADDR(parent->port->disc.eeds_a) == sas_check_eeds() 1294 ((SAS_ADDR(parent->port->disc.eeds_b) == sas_check_eeds() 1295 SAS_ADDR(parent->sas_addr)) || sas_check_eeds() 1296 (SAS_ADDR(parent->port->disc.eeds_b) == sas_check_eeds() 1303 SAS_ADDR(parent->sas_addr), sas_check_eeds() 1321 if (!child->parent) sas_check_parent_topology() 1324 if (child->parent->dev_type != SAS_EDGE_EXPANDER_DEVICE && sas_check_parent_topology() 1325 child->parent->dev_type != SAS_FANOUT_EXPANDER_DEVICE) sas_check_parent_topology() 1328 parent_ex = &child->parent->ex_dev; sas_check_parent_topology() 1343 switch (child->parent->dev_type) { sas_check_parent_topology() 1518 * sas_configure_parent -- configure routing table of parent 1519 * parent: parent expander 1523 static int sas_configure_parent(struct domain_device *parent, sas_configure_parent() argument 1527 struct expander_device *ex_parent = &parent->ex_dev; sas_configure_parent() 1531 if (parent->parent) { sas_configure_parent() 1532 res = sas_configure_parent(parent->parent, parent, sas_addr, sas_configure_parent() 1540 SAS_ADDR(parent->sas_addr)); sas_configure_parent() 1550 res = sas_configure_phy(parent, i, sas_addr, include); sas_configure_parent() 1566 if (dev->parent) sas_configure_routing() 1567 return sas_configure_parent(dev->parent, dev, sas_addr, 1); sas_configure_routing() 1573 if (dev->parent) sas_disable_routing() 1574 return sas_configure_parent(dev->parent, dev, sas_addr, 0); sas_disable_routing() 1878 static void sas_unregister_devs_sas_addr(struct domain_device *parent, sas_unregister_devs_sas_addr() argument 1881 struct expander_device *ex_dev = &parent->ex_dev; sas_unregister_devs_sas_addr() 1892 sas_unregister_ex_tree(parent->port, child); sas_unregister_devs_sas_addr() 1894 sas_unregister_dev(parent->port, child); sas_unregister_devs_sas_addr() 1899 sas_disable_routing(parent, phy->attached_sas_addr); sas_unregister_devs_sas_addr() 772 sas_ex_discover_end_dev( struct domain_device *parent, int phy_id) sas_ex_discover_end_dev() argument 906 sas_ex_discover_expander( struct domain_device *parent, int phy_id) sas_ex_discover_expander() argument
|
/linux-4.4.14/drivers/staging/android/ |
H A D | sync.c | 97 * signal any children that their parent is going away. sync_timeline_destroy() 412 struct sync_timeline *parent = sync_pt_parent(pt); android_fence_get_driver_name() local 414 return parent->ops->driver_name; android_fence_get_driver_name() 420 struct sync_timeline *parent = sync_pt_parent(pt); android_fence_get_timeline_name() local 422 return parent->name; android_fence_get_timeline_name() 428 struct sync_timeline *parent = sync_pt_parent(pt); android_fence_release() local 437 if (parent->ops->free_pt) android_fence_release() 438 parent->ops->free_pt(pt); android_fence_release() 440 sync_timeline_put(parent); android_fence_release() 447 struct sync_timeline *parent = sync_pt_parent(pt); android_fence_signaled() local 450 ret = parent->ops->has_signaled(pt); android_fence_signaled() 459 struct sync_timeline *parent = sync_pt_parent(pt); android_fence_enable_signaling() local 464 list_add_tail(&pt->active_list, &parent->active_list_head); android_fence_enable_signaling() 472 struct sync_timeline *parent = sync_pt_parent(pt); android_fence_fill_driver_data() local 474 if (!parent->ops->fill_driver_data) android_fence_fill_driver_data() 476 return parent->ops->fill_driver_data(pt, data, size); android_fence_fill_driver_data() 483 struct sync_timeline *parent = sync_pt_parent(pt); android_fence_value_str() local 485 if (!parent->ops->pt_value_str) { android_fence_value_str() 490 parent->ops->pt_value_str(pt, str, size); android_fence_value_str() 497 struct sync_timeline *parent = sync_pt_parent(pt); android_fence_timeline_value_str() local 499 if (!parent->ops->timeline_value_str) { android_fence_timeline_value_str() 504 parent->ops->timeline_value_str(parent, str, size); android_fence_timeline_value_str()
|
/linux-4.4.14/net/bluetooth/rfcomm/ |
H A D | sock.c | 65 struct sock *sk = d->owner, *parent; rfcomm_sk_state_change() local 81 parent = bt_sk(sk)->parent; rfcomm_sk_state_change() 82 if (parent) { rfcomm_sk_state_change() 87 parent->sk_data_ready(parent); rfcomm_sk_state_change() 98 if (parent && sock_flag(sk, SOCK_ZAPPED)) { rfcomm_sk_state_change() 175 static void rfcomm_sock_cleanup_listen(struct sock *parent) rfcomm_sock_cleanup_listen() argument 179 BT_DBG("parent %p", parent); rfcomm_sock_cleanup_listen() 182 while ((sk = bt_accept_dequeue(parent, NULL))) { rfcomm_sock_cleanup_listen() 187 parent->sk_state = BT_CLOSED; rfcomm_sock_cleanup_listen() 188 sock_set_flag(parent, SOCK_ZAPPED); rfcomm_sock_cleanup_listen() 240 static void rfcomm_sock_init(struct sock *sk, struct sock *parent) rfcomm_sock_init() argument 246 if (parent) { rfcomm_sock_init() 247 sk->sk_type = parent->sk_type; rfcomm_sock_init() 249 &bt_sk(parent)->flags); rfcomm_sock_init() 251 pi->sec_level = rfcomm_pi(parent)->sec_level; rfcomm_sock_init() 252 pi->role_switch = rfcomm_pi(parent)->role_switch; rfcomm_sock_init() 254 security_sk_clone(parent, sk); rfcomm_sock_init() 955 struct sock *sk, *parent; rfcomm_connect_ind() local 964 parent = rfcomm_get_sock_by_channel(BT_LISTEN, channel, &src); rfcomm_connect_ind() 965 if (!parent) rfcomm_connect_ind() 968 bh_lock_sock(parent); rfcomm_connect_ind() 971 if (sk_acceptq_is_full(parent)) { rfcomm_connect_ind() 972 BT_DBG("backlog full %d", parent->sk_ack_backlog); rfcomm_connect_ind() 976 sk = rfcomm_sock_alloc(sock_net(parent), NULL, BTPROTO_RFCOMM, GFP_ATOMIC, 0); rfcomm_connect_ind() 982 rfcomm_sock_init(sk, parent); rfcomm_connect_ind() 988 bt_accept_enqueue(parent, sk); rfcomm_connect_ind() 995 bh_unlock_sock(parent); rfcomm_connect_ind() 997 if (test_bit(BT_SK_DEFER_SETUP, &bt_sk(parent)->flags)) rfcomm_connect_ind() 998 parent->sk_state_change(parent); rfcomm_connect_ind()
|
/linux-4.4.14/kernel/gcov/ |
H A D | fs.c | 35 * @parent: parent node 54 struct gcov_node *parent; member in struct:gcov_node 366 static void add_links(struct gcov_node *node, struct dentry *parent) add_links() argument 388 parent, target); add_links() 413 const char *name, struct gcov_node *parent) init_node() 422 node->parent = parent; init_node() 431 static struct gcov_node *new_node(struct gcov_node *parent, new_node() argument 445 init_node(node, info, name, parent); new_node() 449 parent->dentry, node, &gcov_data_fops); new_node() 451 node->dentry = debugfs_create_dir(node->name, parent->dentry); new_node() 458 add_links(node, parent->dentry); new_node() 459 list_add(&node->list, &parent->children); new_node() 502 struct gcov_node *parent; remove_node() local 505 parent = node->parent; remove_node() 507 node = parent; remove_node() 515 static struct gcov_node *get_child_by_name(struct gcov_node *parent, get_child_by_name() argument 520 list_for_each_entry(node, &parent->children, list) { get_child_by_name() 576 struct gcov_node *parent; add_node() local 582 parent = &root_node; add_node() 591 if (!parent->parent) add_node() 593 parent = parent->parent; add_node() 596 node = get_child_by_name(parent, curr); add_node() 598 node = new_node(parent, NULL, curr); add_node() 602 parent = node; add_node() 605 node = new_node(parent, info, curr); add_node() 613 remove_node(parent); add_node() 767 * /sys/kernel/debug/gcov will be parent for the reset control file gcov_fs_init() 412 init_node(struct gcov_node *node, struct gcov_info *info, const char *name, struct gcov_node *parent) init_node() argument
|
/linux-4.4.14/drivers/base/ |
H A D | core.c | 383 while (!top_kobj->kset && top_kobj->parent) uevent_show() 384 top_kobj = top_kobj->parent; uevent_show() 780 struct device *parent) get_device_parent() 790 if (parent && parent->class == &block_class) get_device_parent() 791 return &parent->kobj; get_device_parent() 797 * If we have no parent, we live in "virtual". get_device_parent() 798 * Class-devices with a non class-device as parent, live get_device_parent() 801 if (parent == NULL) get_device_parent() 803 else if (parent->class && !dev->class->ns_type) get_device_parent() 804 return &parent->kobj; get_device_parent() 806 parent_kobj = &parent->kobj; get_device_parent() 810 /* find our class-directory at the parent and reference it */ get_device_parent() 813 if (k->parent == parent_kobj) { get_device_parent() 823 /* or create a new class-directory at the parent device */ get_device_parent() 831 if (!parent && dev->bus && dev->bus->dev_root) get_device_parent() 834 if (parent) get_device_parent() 835 return &parent->kobj; get_device_parent() 853 cleanup_glue_dir(dev, dev->kobj.parent); cleanup_device_parent() 877 if (dev->parent && device_is_not_partition(dev)) { device_add_class_symlinks() 878 error = sysfs_create_link(&dev->kobj, &dev->parent->kobj, device_add_class_symlinks() 916 if (dev->parent && device_is_not_partition(dev)) device_remove_class_symlinks() 1027 struct device *parent = NULL; device_add() local 1063 parent = get_device(dev->parent); device_add() 1064 kobj = get_device_parent(dev, parent); device_add() 1066 dev->kobj.parent = kobj; device_add() 1068 /* use parent numa_node */ device_add() 1069 if (parent && (dev_to_node(dev) == NUMA_NO_NODE)) device_add() 1070 set_dev_node(dev, dev_to_node(parent)); device_add() 1074 error = kobject_add(&dev->kobj, dev->kobj.parent, NULL); device_add() 1121 if (parent) device_add() 1123 &parent->p->klist_children); device_add() 1160 put_device(parent); device_add() 1234 struct device *parent = dev->parent; device_del() local 1244 if (parent) device_del() 1281 put_device(parent); device_del() 1377 * @parent: parent struct device. 1381 * Iterate over @parent's child devices, and call @fn for each, 1387 int device_for_each_child(struct device *parent, void *data, device_for_each_child() argument 1394 if (!parent->p) device_for_each_child() 1397 klist_iter_init(&parent->p->klist_children, &i); device_for_each_child() 1407 * @parent: parent struct device. 1411 * Iterate over @parent's child devices, and call @fn for each, 1417 int device_for_each_child_reverse(struct device *parent, void *data, device_for_each_child_reverse() argument 1424 if (!parent->p) device_for_each_child_reverse() 1427 klist_iter_init(&parent->p->klist_children, &i); device_for_each_child_reverse() 1437 * @parent: parent struct device 1452 struct device *device_find_child(struct device *parent, void *data, device_find_child() argument 1458 if (!parent) device_find_child() 1461 klist_iter_init(&parent->p->klist_children, &i); device_find_child() 1603 * allocate a root device and then use it as the parent of 1680 device_create_groups_vargs(struct class *class, struct device *parent, device_create_groups_vargs() argument 1700 dev->parent = parent; device_create_groups_vargs() 1723 * @parent: pointer to the parent struct device of this new device, if any 1734 * If a pointer to a parent struct device is passed in, the newly created 1745 struct device *device_create_vargs(struct class *class, struct device *parent, device_create_vargs() argument 1749 return device_create_groups_vargs(class, parent, devt, drvdata, NULL, device_create_vargs() 1757 * @parent: pointer to the parent struct device of this new device, if any 1767 * If a pointer to a parent struct device is passed in, the newly created 1778 struct device *device_create(struct class *class, struct device *parent, device_create() argument 1785 dev = device_create_vargs(class, parent, devt, drvdata, fmt, vargs); device_create() 1794 * @parent: pointer to the parent struct device of this new device, if any 1807 * If a pointer to a parent struct device is passed in, the newly created 1819 struct device *parent, dev_t devt, device_create_with_groups() 1828 dev = device_create_groups_vargs(class, parent, devt, drvdata, groups, device_create_with_groups() 1955 * device_move - moves a device to a new parent 1957 * @new_parent: the new parent of the device (can by NULL) 1983 old_parent = dev->parent; device_move() 1984 dev->parent = new_parent; device_move() 2001 dev->parent = old_parent; device_move() 2043 struct device *dev, *parent; device_shutdown() local 2056 * hold reference count of device's parent to device_shutdown() 2057 * prevent it from being freed because parent's device_shutdown() 2060 parent = get_device(dev->parent); device_shutdown() 2070 if (parent) device_shutdown() 2071 device_lock(parent); device_shutdown() 2089 if (parent) device_shutdown() 2090 device_unlock(parent); device_shutdown() 2093 put_device(parent); device_shutdown() 779 get_device_parent(struct device *dev, struct device *parent) get_device_parent() argument 1818 device_create_with_groups(struct class *class, struct device *parent, dev_t devt, void *drvdata, const struct attribute_group **groups, const char *fmt, ...) device_create_with_groups() argument
|
/linux-4.4.14/drivers/md/bcache/ |
H A D | stats.h | 46 struct closure *parent); 49 struct kobject *parent);
|
/linux-4.4.14/drivers/net/phy/ |
H A D | mdio-mux.c | 34 struct mdio_mux_parent_bus *parent; member in struct:mdio_mux_child_bus 41 * The parent bus' lock is used to order access to the switch_fn. 46 struct mdio_mux_parent_bus *pb = cb->parent; mdio_mux_read() 70 * The parent bus' lock is used to order access to the switch_fn. 76 struct mdio_mux_parent_bus *pb = cb->parent; mdio_mux_write() 111 parent_bus_node = of_parse_phandle(dev->of_node, "mdio-parent-bus", 0); mdio_mux_init() 151 cb->parent = pb; mdio_mux_init() 164 cb->mii_bus->parent = dev; mdio_mux_init()
|
/linux-4.4.14/drivers/gpu/drm/nouveau/include/nvkm/core/ |
H A D | gpuobj.h | 15 struct nvkm_gpuobj *parent; member in struct:nvkm_gpuobj 34 struct nvkm_gpuobj *parent, struct nvkm_gpuobj **);
|
H A D | ramht.h | 13 struct nvkm_gpuobj *parent; member in struct:nvkm_ramht
|
/linux-4.4.14/scripts/tracing/ |
H A D | draw_functrace.py | 29 call stack. If a function has no parent in the kernel (interrupt, 30 syscall, kernel thread...) then it is attached to a virtual parent 35 def __init__(self, func, time = None, parent = None): 38 if parent is None: 41 self._parent = parent 54 """ Retrieve the last parent of the current node that 56 on a parent, then create it as new child of root 57 @return: A reference to the parent.
|
/linux-4.4.14/arch/microblaze/kernel/ |
H A D | ftrace.c | 22 void prepare_ftrace_return(unsigned long *parent, unsigned long self_addr) prepare_ftrace_return() argument 54 : "r" (parent), "r" (return_hooker) prepare_ftrace_return() 57 flush_dcache_range((u32)parent, (u32)parent + 4); prepare_ftrace_return() 58 flush_icache_range((u32)parent, (u32)parent + 4); prepare_ftrace_return() 68 *parent = old; prepare_ftrace_return() 76 *parent = old; prepare_ftrace_return()
|
/linux-4.4.14/arch/mips/lib/ |
H A D | iomap-pci.c | 24 while (bus->parent) __pci_ioport_map() 25 bus = bus->parent; __pci_ioport_map()
|
/linux-4.4.14/arch/arm64/kernel/ |
H A D | ftrace.c | 105 * on the way back to parent. For this purpose, this function is called 106 * in _mcount() or ftrace_caller() to replace return address (*parent) on 111 void prepare_ftrace_return(unsigned long *parent, unsigned long self_addr, prepare_ftrace_return() argument 124 * No protection against faulting at *parent, which may be seen prepare_ftrace_return() 127 old = *parent; prepare_ftrace_return() 128 *parent = return_hooker; prepare_ftrace_return() 135 *parent = old; prepare_ftrace_return() 142 *parent = old; prepare_ftrace_return()
|
/linux-4.4.14/drivers/iio/common/ssp_sensors/ |
H A D | ssp_iio.c | 32 struct ssp_data *data = dev_get_drvdata(indio_dev->dev.parent->parent); ssp_common_buffer_postenable() 57 struct ssp_data *data = dev_get_drvdata(indio_dev->dev.parent->parent); ssp_common_buffer_postdisable()
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | cursnv50.c | 42 struct nvkm_object *parent = oclass->parent; nv50_disp_curs_new() local 46 nvif_ioctl(parent, "create disp cursor size %d\n", size); nv50_disp_curs_new() 48 nvif_ioctl(parent, "create disp cursor vers %d head %d\n", nv50_disp_curs_new()
|
H A D | oimmnv50.c | 42 struct nvkm_object *parent = oclass->parent; nv50_disp_oimm_new() local 46 nvif_ioctl(parent, "create disp overlay size %d\n", size); nv50_disp_oimm_new() 48 nvif_ioctl(parent, "create disp overlay vers %d head %d\n", nv50_disp_oimm_new()
|
/linux-4.4.14/arch/x86/include/asm/ |
H A D | irq_remapping.h | 57 /* Create PCI MSI/MSIx irqdomain, use @parent as the parent irqdomain. */ 58 extern struct irq_domain *arch_create_msi_irq_domain(struct irq_domain *parent); 60 /* Get parent irqdomain for interrupt remapping irqdomain */ arch_get_ir_parent_domain()
|
/linux-4.4.14/net/core/ |
H A D | netclassid_cgroup.c | 46 struct cgroup_cls_state *parent = css_cls_state(css->parent); cgrp_css_online() local 48 if (parent) cgrp_css_online() 49 cs->classid = parent->classid; cgrp_css_online()
|
/linux-4.4.14/drivers/power/ |
H A D | power_supply_core.c | 127 * Notify that power supply was registered after parent finished the probing. 134 * Avoid that by waiting on parent's mutex. 141 if (psy->dev.parent) power_supply_deferred_register_work() 142 mutex_lock(&psy->dev.parent->mutex); power_supply_deferred_register_work() 146 if (psy->dev.parent) power_supply_deferred_register_work() 147 mutex_unlock(&psy->dev.parent->mutex); power_supply_deferred_register_work() 410 return dev->parent && dev->parent->of_node == data; power_supply_match_device_node() 704 __power_supply_register(struct device *parent, __power_supply_register() argument 713 if (!parent) __power_supply_register() 714 pr_warn("%s: Expected proper parent device for '%s'\n", __power_supply_register() 727 dev->parent = parent; __power_supply_register() 806 * @parent: Device to be a parent of power supply's device, usually 818 struct power_supply *__must_check power_supply_register(struct device *parent, power_supply_register() argument 822 return __power_supply_register(parent, desc, cfg, true); power_supply_register() 828 * @parent: Device to be a parent of power supply's device, usually 841 power_supply_register_no_ws(struct device *parent, power_supply_register_no_ws() argument 845 return __power_supply_register(parent, desc, cfg, false); power_supply_register_no_ws() 858 * @parent: Device to be a parent of power supply's device, usually 871 devm_power_supply_register(struct device *parent, devm_power_supply_register() argument 881 psy = __power_supply_register(parent, desc, cfg, true); devm_power_supply_register() 886 devres_add(parent, ptr); devm_power_supply_register() 894 * @parent: Device to be a parent of power supply's device, usually 907 devm_power_supply_register_no_ws(struct device *parent, devm_power_supply_register_no_ws() argument 917 psy = __power_supply_register(parent, desc, cfg, false); devm_power_supply_register_no_ws() 922 devres_add(parent, ptr); devm_power_supply_register_no_ws()
|
/linux-4.4.14/fs/fuse/ |
H A D | control.c | 199 static struct dentry *fuse_ctl_add_dentry(struct dentry *parent, fuse_ctl_add_dentry() argument 210 dentry = d_alloc_name(parent, name); fuse_ctl_add_dentry() 240 struct dentry *parent; fuse_ctl_add_conn() local 246 parent = fuse_control_sb->s_root; fuse_ctl_add_conn() 247 inc_nlink(d_inode(parent)); fuse_ctl_add_conn() 249 parent = fuse_ctl_add_dentry(parent, fc, name, S_IFDIR | 0500, 2, fuse_ctl_add_conn() 252 if (!parent) fuse_ctl_add_conn() 255 if (!fuse_ctl_add_dentry(parent, fc, "waiting", S_IFREG | 0400, 1, fuse_ctl_add_conn() 257 !fuse_ctl_add_dentry(parent, fc, "abort", S_IFREG | 0200, 1, fuse_ctl_add_conn() 259 !fuse_ctl_add_dentry(parent, fc, "max_background", S_IFREG | 0600, fuse_ctl_add_conn() 261 !fuse_ctl_add_dentry(parent, fc, "congestion_threshold", fuse_ctl_add_conn()
|
/linux-4.4.14/net/wimax/ |
H A D | debugfs.c | 31 #define __debugfs_register(prefix, name, parent) \ 33 result = d_level_register_debugfs(prefix, name, parent); \ 43 struct device *dev = net_dev->dev.parent; wimax_debugfs_add()
|
/linux-4.4.14/arch/sh/kernel/cpu/ |
H A D | clock-cpg.c | 14 .parent = &master_clk, 19 .parent = &master_clk, 24 .parent = &master_clk,
|
/linux-4.4.14/arch/sh/kernel/cpu/sh2a/ |
H A D | clock-sh7201.c | 40 return clk->parent->rate / pfc_divisors[idx]; module_clk_recalc() 50 return clk->parent->rate / pfc_divisors[idx]; bus_clk_recalc() 60 return clk->parent->rate / ifc_divisors[idx]; cpu_clk_recalc()
|
H A D | clock-sh7206.c | 39 return clk->parent->rate / pfc_divisors[idx]; module_clk_recalc() 48 return clk->parent->rate / pll1rate[(__raw_readw(FREQCR) >> 8) & 0x0007]; bus_clk_recalc() 58 return clk->parent->rate / ifc_divisors[idx]; cpu_clk_recalc()
|
/linux-4.4.14/arch/sh/kernel/cpu/sh3/ |
H A D | clock-sh3.c | 46 return clk->parent->rate / pfc_divisors[idx]; module_clk_recalc() 58 return clk->parent->rate / stc_multipliers[idx]; bus_clk_recalc() 70 return clk->parent->rate / ifc_divisors[idx]; cpu_clk_recalc()
|
H A D | clock-sh7705.c | 45 return clk->parent->rate / pfc_divisors[idx]; module_clk_recalc() 55 return clk->parent->rate / stc_multipliers[idx]; bus_clk_recalc() 65 return clk->parent->rate / ifc_divisors[idx]; cpu_clk_recalc()
|
H A D | clock-sh7706.c | 42 return clk->parent->rate / pfc_divisors[idx]; module_clk_recalc() 54 return clk->parent->rate / stc_multipliers[idx]; bus_clk_recalc() 66 return clk->parent->rate / ifc_divisors[idx]; cpu_clk_recalc()
|
H A D | clock-sh7709.c | 42 return clk->parent->rate / pfc_divisors[idx]; module_clk_recalc() 55 return clk->parent->rate * stc_multipliers[idx]; bus_clk_recalc() 67 return clk->parent->rate / ifc_divisors[idx]; cpu_clk_recalc()
|
H A D | clock-sh7710.c | 39 return clk->parent->rate / md_table[idx]; module_clk_recalc() 49 return clk->parent->rate / md_table[idx]; bus_clk_recalc() 59 return clk->parent->rate / md_table[idx]; cpu_clk_recalc()
|