/linux-3.4.99/fs/notify/ |
D | group.c | 34 void fsnotify_final_destroy_group(struct fsnotify_group *group) in fsnotify_final_destroy_group() argument 37 fsnotify_flush_notify(group); in fsnotify_final_destroy_group() 39 if (group->ops->free_group_priv) in fsnotify_final_destroy_group() 40 group->ops->free_group_priv(group); in fsnotify_final_destroy_group() 42 kfree(group); in fsnotify_final_destroy_group() 53 static void fsnotify_destroy_group(struct fsnotify_group *group) in fsnotify_destroy_group() argument 56 fsnotify_clear_marks_by_group(group); in fsnotify_destroy_group() 61 if (atomic_dec_and_test(&group->num_marks)) in fsnotify_destroy_group() 62 fsnotify_final_destroy_group(group); in fsnotify_destroy_group() 68 void fsnotify_put_group(struct fsnotify_group *group) in fsnotify_put_group() argument [all …]
|
D | mark.c | 123 struct fsnotify_group *group; in fsnotify_destroy_mark() local 128 group = mark->group; in fsnotify_destroy_mark() 138 spin_lock(&group->mark_lock); in fsnotify_destroy_mark() 150 spin_unlock(&group->mark_lock); in fsnotify_destroy_mark() 163 if (group->ops->freeing_mark) in fsnotify_destroy_mark() 164 group->ops->freeing_mark(mark, group); in fsnotify_destroy_mark() 191 if (unlikely(atomic_dec_and_test(&group->num_marks))) in fsnotify_destroy_mark() 192 fsnotify_final_destroy_group(group); in fsnotify_destroy_mark() 218 struct fsnotify_group *group, struct inode *inode, in fsnotify_add_mark() argument 233 spin_lock(&group->mark_lock); in fsnotify_add_mark() [all …]
|
D | notification.c | 73 bool fsnotify_notify_queue_is_empty(struct fsnotify_group *group) in fsnotify_notify_queue_is_empty() argument 75 BUG_ON(!mutex_is_locked(&group->notification_mutex)); in fsnotify_notify_queue_is_empty() 76 return list_empty(&group->notification_list) ? true : false; in fsnotify_notify_queue_is_empty() 118 struct fsnotify_event_private_data *fsnotify_remove_priv_from_event(struct fsnotify_group *group, s… in fsnotify_remove_priv_from_event() argument 126 if (lpriv->group == group) { in fsnotify_remove_priv_from_event() 140 struct fsnotify_event *fsnotify_add_notify_event(struct fsnotify_group *group, struct fsnotify_even… in fsnotify_add_notify_event() argument 147 struct list_head *list = &group->notification_list; in fsnotify_add_notify_event() 149 pr_debug("%s: group=%p event=%p priv=%p\n", __func__, group, event, priv); in fsnotify_add_notify_event() 166 mutex_lock(&group->notification_mutex); in fsnotify_add_notify_event() 168 if (group->q_len >= group->max_events) { in fsnotify_add_notify_event() [all …]
|
D | vfsmount_mark.c | 54 void fsnotify_clear_vfsmount_marks_by_group(struct fsnotify_group *group) in fsnotify_clear_vfsmount_marks_by_group() argument 56 fsnotify_clear_marks_by_group_flags(group, FSNOTIFY_MARK_FLAG_VFSMOUNT); in fsnotify_clear_vfsmount_marks_by_group() 92 assert_spin_locked(&mark->group->mark_lock); in fsnotify_destroy_vfsmount_mark() 104 static struct fsnotify_mark *fsnotify_find_vfsmount_mark_locked(struct fsnotify_group *group, in fsnotify_find_vfsmount_mark_locked() argument 114 if (mark->group == group) { in fsnotify_find_vfsmount_mark_locked() 126 struct fsnotify_mark *fsnotify_find_vfsmount_mark(struct fsnotify_group *group, in fsnotify_find_vfsmount_mark() argument 132 mark = fsnotify_find_vfsmount_mark_locked(group, mnt); in fsnotify_find_vfsmount_mark() 144 struct fsnotify_group *group, struct vfsmount *mnt, in fsnotify_add_vfsmount_mark() argument 155 assert_spin_locked(&group->mark_lock); in fsnotify_add_vfsmount_mark() 171 if ((lmark->group == group) && !allow_dups) { in fsnotify_add_vfsmount_mark() [all …]
|
D | inode_mark.c | 67 assert_spin_locked(&mark->group->mark_lock); in fsnotify_destroy_inode_mark() 110 void fsnotify_clear_inode_marks_by_group(struct fsnotify_group *group) in fsnotify_clear_inode_marks_by_group() argument 112 fsnotify_clear_marks_by_group_flags(group, FSNOTIFY_MARK_FLAG_INODE); in fsnotify_clear_inode_marks_by_group() 119 struct fsnotify_mark *fsnotify_find_inode_mark_locked(struct fsnotify_group *group, in fsnotify_find_inode_mark_locked() argument 128 if (mark->group == group) { in fsnotify_find_inode_mark_locked() 140 struct fsnotify_mark *fsnotify_find_inode_mark(struct fsnotify_group *group, in fsnotify_find_inode_mark() argument 146 mark = fsnotify_find_inode_mark_locked(group, inode); in fsnotify_find_inode_mark() 185 struct fsnotify_group *group, struct inode *inode, in fsnotify_add_inode_mark() argument 195 assert_spin_locked(&group->mark_lock); in fsnotify_add_inode_mark() 211 if ((lmark->group == group) && !allow_dups) { in fsnotify_add_inode_mark() [all …]
|
/linux-3.4.99/drivers/infiniband/core/ |
D | multicast.c | 118 struct mcast_group *group; member 134 struct mcast_group *group; in mcast_find() local 138 group = rb_entry(node, struct mcast_group, node); in mcast_find() 139 ret = memcmp(mgid->raw, group->rec.mgid.raw, sizeof *mgid); in mcast_find() 141 return group; in mcast_find() 152 struct mcast_group *group, in mcast_insert() argument 164 ret = memcmp(group->rec.mgid.raw, cur_group->rec.mgid.raw, in mcast_insert() 165 sizeof group->rec.mgid); in mcast_insert() 175 rb_link_node(&group->node, parent, link); in mcast_insert() 176 rb_insert_color(&group->node, &port->table); in mcast_insert() [all …]
|
/linux-3.4.99/arch/sparc/kernel/ |
D | hvapi.c | 18 unsigned long group; member 27 { .group = HV_GRP_SUN4V, .flags = FLAG_PRE_API }, 28 { .group = HV_GRP_CORE, .flags = FLAG_PRE_API }, 29 { .group = HV_GRP_INTR, }, 30 { .group = HV_GRP_SOFT_STATE, }, 31 { .group = HV_GRP_TM, }, 32 { .group = HV_GRP_PCI, .flags = FLAG_PRE_API }, 33 { .group = HV_GRP_LDOM, }, 34 { .group = HV_GRP_SVC_CHAN, .flags = FLAG_PRE_API }, 35 { .group = HV_GRP_NCS, .flags = FLAG_PRE_API }, [all …]
|
/linux-3.4.99/fs/notify/fanotify/ |
D | fanotify_user.c | 43 static struct fsnotify_event *get_one_event(struct fsnotify_group *group, in get_one_event() argument 46 BUG_ON(!mutex_is_locked(&group->notification_mutex)); in get_one_event() 48 pr_debug("%s: group=%p count=%zd\n", __func__, group, count); in get_one_event() 50 if (fsnotify_notify_queue_is_empty(group)) in get_one_event() 58 return fsnotify_remove_notify_event(group); in get_one_event() 61 static int create_fd(struct fsnotify_group *group, struct fsnotify_event *event) in create_fd() argument 68 pr_debug("%s: group=%p event=%p\n", __func__, group, event); in create_fd() 90 group->fanotify_data.f_flags | FMODE_NONOTIFY, in create_fd() 111 static int fill_event_metadata(struct fsnotify_group *group, in fill_event_metadata() argument 118 group, metadata, event); in fill_event_metadata() [all …]
|
D | fanotify.c | 95 static int fanotify_get_response_from_access(struct fsnotify_group *group, in fanotify_get_response_from_access() argument 100 pr_debug("%s: group=%p event=%p\n", __func__, group, event); in fanotify_get_response_from_access() 102 wait_event(group->fanotify_data.access_waitq, event->response || in fanotify_get_response_from_access() 103 atomic_read(&group->fanotify_data.bypass_perm)); in fanotify_get_response_from_access() 122 group, event, ret); in fanotify_get_response_from_access() 128 static int fanotify_handle_event(struct fsnotify_group *group, in fanotify_handle_event() argument 147 pr_debug("%s: group=%p event=%p\n", __func__, group, event); in fanotify_handle_event() 149 notify_event = fsnotify_add_notify_event(group, event, NULL, fanotify_merge); in fanotify_handle_event() 158 ret = fanotify_get_response_from_access(group, event); in fanotify_handle_event() 168 static bool fanotify_should_send_event(struct fsnotify_group *group, in fanotify_should_send_event() argument [all …]
|
/linux-3.4.99/fs/notify/inotify/ |
D | inotify_user.c | 114 struct fsnotify_group *group = file->private_data; in inotify_poll() local 117 poll_wait(file, &group->notification_waitq, wait); in inotify_poll() 118 mutex_lock(&group->notification_mutex); in inotify_poll() 119 if (!fsnotify_notify_queue_is_empty(group)) in inotify_poll() 121 mutex_unlock(&group->notification_mutex); in inotify_poll() 133 static struct fsnotify_event *get_one_event(struct fsnotify_group *group, in get_one_event() argument 139 if (fsnotify_notify_queue_is_empty(group)) in get_one_event() 142 event = fsnotify_peek_notify_event(group); in get_one_event() 144 pr_debug("%s: group=%p event=%p\n", __func__, group, event); in get_one_event() 154 fsnotify_remove_notify_event(group); in get_one_event() [all …]
|
D | inotify_fsnotify.c | 92 static int inotify_handle_event(struct fsnotify_group *group, in inotify_handle_event() argument 106 pr_debug("%s: group=%p event=%p to_tell=%p mask=%x\n", __func__, group, in inotify_handle_event() 121 fsn_event_priv->group = group; in inotify_handle_event() 124 added_event = fsnotify_add_notify_event(group, event, fsn_event_priv, inotify_merge); in inotify_handle_event() 139 static void inotify_freeing_mark(struct fsnotify_mark *fsn_mark, struct fsnotify_group *group) in inotify_freeing_mark() argument 141 inotify_ignored_and_remove_idr(fsn_mark, group); in inotify_freeing_mark() 144 static bool inotify_should_send_event(struct fsnotify_group *group, struct inode *inode, in inotify_should_send_event() argument 191 fsn_mark->group, fsn_mark->i.inode, i_mark->wd); in idr_callback() 195 static void inotify_free_group_priv(struct fsnotify_group *group) in inotify_free_group_priv() argument 198 idr_for_each(&group->inotify_data.idr, idr_callback, group); in inotify_free_group_priv() [all …]
|
/linux-3.4.99/drivers/gpio/ |
D | gpio-lpc32xx.c | 168 static void __set_gpio_dir_p012(struct lpc32xx_gpio_chip *group, in __set_gpio_dir_p012() argument 173 group->gpio_grp->dir_clr); in __set_gpio_dir_p012() 176 group->gpio_grp->dir_set); in __set_gpio_dir_p012() 179 static void __set_gpio_dir_p3(struct lpc32xx_gpio_chip *group, in __set_gpio_dir_p3() argument 185 __raw_writel(u, group->gpio_grp->dir_clr); in __set_gpio_dir_p3() 187 __raw_writel(u, group->gpio_grp->dir_set); in __set_gpio_dir_p3() 190 static void __set_gpio_level_p012(struct lpc32xx_gpio_chip *group, in __set_gpio_level_p012() argument 195 group->gpio_grp->outp_set); in __set_gpio_level_p012() 198 group->gpio_grp->outp_clr); in __set_gpio_level_p012() 201 static void __set_gpio_level_p3(struct lpc32xx_gpio_chip *group, in __set_gpio_level_p3() argument [all …]
|
/linux-3.4.99/fs/nilfs2/ |
D | alloc.c | 95 __u64 group = nr; in nilfs_palloc_group() local 97 *offset = do_div(group, nilfs_palloc_entries_per_group(inode)); in nilfs_palloc_group() 98 return group; in nilfs_palloc_group() 110 nilfs_palloc_desc_blkoff(const struct inode *inode, unsigned long group) in nilfs_palloc_desc_blkoff() argument 113 group / nilfs_palloc_groups_per_desc_block(inode); in nilfs_palloc_desc_blkoff() 126 nilfs_palloc_bitmap_blkoff(const struct inode *inode, unsigned long group) in nilfs_palloc_bitmap_blkoff() argument 129 group % nilfs_palloc_groups_per_desc_block(inode); in nilfs_palloc_bitmap_blkoff() 130 return nilfs_palloc_desc_blkoff(inode, group) + 1 + in nilfs_palloc_bitmap_blkoff() 141 nilfs_palloc_group_desc_nfrees(struct inode *inode, unsigned long group, in nilfs_palloc_group_desc_nfrees() argument 146 spin_lock(nilfs_mdt_bgl_lock(inode, group)); in nilfs_palloc_group_desc_nfrees() [all …]
|
/linux-3.4.99/fs/ext2/ |
D | ialloc.c | 65 static void ext2_release_inode(struct super_block *sb, int group, int dir) in ext2_release_inode() argument 70 desc = ext2_get_group_desc(sb, group, &bh); in ext2_release_inode() 73 "can't get descriptor for group %d", group); in ext2_release_inode() 77 spin_lock(sb_bgl_lock(EXT2_SB(sb), group)); in ext2_release_inode() 81 spin_unlock(sb_bgl_lock(EXT2_SB(sb), group)); in ext2_release_inode() 211 int group, best_group = -1; in find_group_dir() local 213 for (group = 0; group < ngroups; group++) { in find_group_dir() 214 desc = ext2_get_group_desc (sb, group, NULL); in find_group_dir() 222 best_group = group; in find_group_dir() 274 int group = -1, i; in find_group_orlov() local [all …]
|
/linux-3.4.99/arch/mips/rb532/ |
D | irq.c | 87 static inline int group_to_ip(unsigned int group) in group_to_ip() argument 89 return group + 2; in group_to_ip() 115 unsigned int group, intr_bit, irq_nr = d->irq; in rb532_enable_irq() local 122 group = ip >> 5; in rb532_enable_irq() 127 enable_local_irq(group_to_ip(group)); in rb532_enable_irq() 129 addr = intr_group[group].base_addr; in rb532_enable_irq() 136 unsigned int group, intr_bit, mask, irq_nr = d->irq; in rb532_disable_irq() local 143 group = ip >> 5; in rb532_disable_irq() 147 addr = intr_group[group].base_addr; in rb532_disable_irq() 153 if (group == GPIO_MAPPED_IRQ_GROUP && irq_nr <= (GROUP4_IRQ_BASE + 13)) in rb532_disable_irq() [all …]
|
/linux-3.4.99/fs/ext4/ |
D | resize.c | 58 ext4_group_t group = input->group; in verify_group_input() local 60 unsigned overhead = ext4_bg_has_super(sb, group) ? in verify_group_input() 61 (1 + ext4_bg_num_gdb(sb, group) + in verify_group_input() 74 ext4_bg_has_super(sb, input->group) ? "normal" : in verify_group_input() 75 "no-super", input->group, input->blocks_count, in verify_group_input() 79 if (group != sbi->s_groups_count) in verify_group_input() 81 input->group, sbi->s_groups_count); in verify_group_input() 219 ext4_group_t group; in ext4_alloc_group_tables() local 225 src_group = group_data[0].group; in ext4_alloc_group_tables() 231 group = group_data[0].group; in ext4_alloc_group_tables() [all …]
|
D | ialloc.c | 365 ext4_group_t *group, umode_t mode, in find_group_orlov() argument 431 *group = grp; in find_group_orlov() 448 *group = grp+i; in find_group_orlov() 494 *group = grp; in find_group_orlov() 513 ext4_group_t *group, umode_t mode) in find_group_other() argument 538 *group = i; in find_group_other() 552 *group = parent_group + flex_size; in find_group_other() 553 if (*group > ngroups) in find_group_other() 554 *group = 0; in find_group_other() 555 return find_group_orlov(sb, parent, group, mode, NULL); in find_group_other() [all …]
|
/linux-3.4.99/arch/arm/plat-s5p/ |
D | irq-gpioint.c | 83 int group, pend_offset, mask_offset; in s5p_gpioint_handler() local 89 for (group = 0; group < bank->nr_groups; group++) { in s5p_gpioint_handler() 90 struct samsung_gpio_chip *chip = bank->chips[group]; in s5p_gpioint_handler() 94 pend_offset = REG_OFFSET(group); in s5p_gpioint_handler() 99 mask_offset = REG_OFFSET(group); in s5p_gpioint_handler() 116 int group = chip->group; in s5p_gpioint_add() local 125 if (group >= b->start && group < b->start + b->nr_groups) { in s5p_gpioint_add() 154 bank->chips[group - bank->start] = chip; in s5p_gpioint_add() 166 ct->regs.ack = PEND_OFFSET + REG_OFFSET(group - bank->start); in s5p_gpioint_add() 167 ct->regs.mask = MASK_OFFSET + REG_OFFSET(group - bank->start); in s5p_gpioint_add() [all …]
|
/linux-3.4.99/fs/ext3/ |
D | ialloc.c | 210 int group = -1, i; in find_group_orlov() local 224 get_random_bytes(&group, sizeof(group)); in find_group_orlov() 225 parent_group = (unsigned)group % ngroups; in find_group_orlov() 227 group = (parent_group + i) % ngroups; in find_group_orlov() 228 desc = ext3_get_group_desc (sb, group, NULL); in find_group_orlov() 237 best_group = group; in find_group_orlov() 260 group = (parent_group + i) % ngroups; in find_group_orlov() 261 desc = ext3_get_group_desc (sb, group, NULL); in find_group_orlov() 270 return group; in find_group_orlov() 275 group = (parent_group + i) % ngroups; in find_group_orlov() [all …]
|
/linux-3.4.99/drivers/pinctrl/ |
D | pinctrl-sirf.c | 153 unsigned long group; member 181 .group = 3, 186 .group = 2, 203 .group = 3, 208 .group = 2, 211 .group = 0, 228 .group = 3, 233 .group = 2, 236 .group = 0, 253 .group = 3, [all …]
|
/linux-3.4.99/include/linux/ |
D | configfs.h | 100 extern void config_group_init(struct config_group *group); 101 extern void config_group_init_type_name(struct config_group *group, 110 static inline struct config_group *config_group_get(struct config_group *group) in config_group_get() argument 112 return group ? to_config_group(config_item_get(&group->cg_item)) : NULL; in config_group_get() 115 static inline void config_group_put(struct config_group *group) in config_group_put() argument 117 config_item_put(&group->cg_item); in config_group_put() 233 struct config_item *(*make_item)(struct config_group *group, const char *name); 234 struct config_group *(*make_group)(struct config_group *group, const char *name); 236 void (*disconnect_notify)(struct config_group *group, struct config_item *item); 237 void (*drop_item)(struct config_group *group, struct config_item *item); [all …]
|
D | fsnotify_backend.h | 96 bool (*should_send_event)(struct fsnotify_group *group, struct inode *inode, 100 int (*handle_event)(struct fsnotify_group *group, 104 void (*free_group_priv)(struct fsnotify_group *group); 105 void (*freeing_mark)(struct fsnotify_mark *mark, struct fsnotify_group *group); 199 struct fsnotify_group *group; member 283 struct fsnotify_group *group; /* group this mark is for */ member 366 extern void fsnotify_put_group(struct fsnotify_group *group); 372 …n struct fsnotify_event_private_data *fsnotify_remove_priv_from_event(struct fsnotify_group *group, 376 extern struct fsnotify_event *fsnotify_add_notify_event(struct fsnotify_group *group, 382 extern bool fsnotify_notify_queue_is_empty(struct fsnotify_group *group); [all …]
|
/linux-3.4.99/drivers/s390/block/ |
D | dasd_alias.c | 88 struct alias_pav_group, group); in _find_group() 96 list_for_each_entry(pos, &lcu->grouplist, group) { in _find_group() 316 struct alias_pav_group *group; in _add_device_to_lcu() local 340 group = _find_group(lcu, &uid); in _add_device_to_lcu() 341 if (!group) { in _add_device_to_lcu() 342 group = kzalloc(sizeof(*group), GFP_ATOMIC); in _add_device_to_lcu() 343 if (!group) in _add_device_to_lcu() 345 memcpy(group->uid.vendor, uid.vendor, sizeof(uid.vendor)); in _add_device_to_lcu() 346 memcpy(group->uid.serial, uid.serial, sizeof(uid.serial)); in _add_device_to_lcu() 347 group->uid.ssid = uid.ssid; in _add_device_to_lcu() [all …]
|
/linux-3.4.99/kernel/ |
D | uid16.c | 19 SYSCALL_DEFINE3(chown16, const char __user *, filename, old_uid_t, user, old_gid_t, group) in SYSCALL_DEFINE3() argument 21 long ret = sys_chown(filename, low2highuid(user), low2highgid(group)); in SYSCALL_DEFINE3() 23 asmlinkage_protect(3, ret, filename, user, group); in SYSCALL_DEFINE3() 27 SYSCALL_DEFINE3(lchown16, const char __user *, filename, old_uid_t, user, old_gid_t, group) in SYSCALL_DEFINE3() argument 29 long ret = sys_lchown(filename, low2highuid(user), low2highgid(group)); in SYSCALL_DEFINE3() 31 asmlinkage_protect(3, ret, filename, user, group); in SYSCALL_DEFINE3() 35 SYSCALL_DEFINE3(fchown16, unsigned int, fd, old_uid_t, user, old_gid_t, group) in SYSCALL_DEFINE3() argument 37 long ret = sys_fchown(fd, low2highuid(user), low2highgid(group)); in SYSCALL_DEFINE3() 39 asmlinkage_protect(3, ret, fd, user, group); in SYSCALL_DEFINE3() 138 old_gid_t group; in groups16_to_user() local [all …]
|
/linux-3.4.99/fs/configfs/ |
D | dir.c | 627 static void detach_groups(struct config_group *group) in detach_groups() argument 629 struct dentry * dentry = dget(group->cg_item.ci_dentry); in detach_groups() 672 struct config_group *group) in create_default_group() argument 680 if (!group->cg_item.ci_name) in create_default_group() 681 group->cg_item.ci_name = group->cg_item.ci_namebuf; in create_default_group() 682 name.name = group->cg_item.ci_name; in create_default_group() 692 &group->cg_item, child); in create_default_group() 706 static int populate_groups(struct config_group *group) in populate_groups() argument 712 if (group->default_groups) { in populate_groups() 713 for (i = 0; group->default_groups[i]; i++) { in populate_groups() [all …]
|