Home
last modified time | relevance | path

Searched refs:groups (Results 1 – 25 of 128) sorted by relevance

123456

/linux-4.19.296/drivers/rtc/
Drtc-sysfs.c324 const struct attribute_group **groups, **old; in rtc_add_groups() local
331 groups = rtc->dev.groups; in rtc_add_groups()
332 if (groups) in rtc_add_groups()
333 for (; *groups; groups++) in rtc_add_groups()
336 for (groups = grps; *groups; groups++) in rtc_add_groups()
340 groups = devm_kcalloc(&rtc->dev, new_cnt, sizeof(*groups), GFP_KERNEL); in rtc_add_groups()
341 if (!groups) in rtc_add_groups()
343 memcpy(groups, rtc->dev.groups, old_cnt * sizeof(*groups)); in rtc_add_groups()
344 memcpy(groups + old_cnt, grps, add_cnt * sizeof(*groups)); in rtc_add_groups()
345 groups[old_cnt + add_cnt] = NULL; in rtc_add_groups()
[all …]
/linux-4.19.296/include/linux/
Dsh_intc.h86 struct intc_group *groups; member
105 #define INTC_HW_DESC(vectors, groups, mask_regs, \ argument
108 _INTC_ARRAY(vectors), _INTC_ARRAY(groups), \
123 #define DECLARE_INTC_DESC(symbol, chipname, vectors, groups, \ argument
127 .hw = INTC_HW_DESC(vectors, groups, mask_regs, \
131 #define DECLARE_INTC_DESC_ACK(symbol, chipname, vectors, groups, \ argument
135 .hw = INTC_HW_DESC(vectors, groups, mask_regs, \
Ddevice.h295 const struct attribute_group **groups; member
370 const struct attribute_group **groups);
372 const struct attribute_group **groups);
555 const struct attribute_group **groups; member
1042 const struct attribute_group **groups; /* optional groups */ member
1292 const struct attribute_group **groups,
1297 const struct attribute_group **groups);
1299 const struct attribute_group **groups);
1304 const struct attribute_group *groups[] = { grp, NULL }; in device_add_group() local
1306 return device_add_groups(dev, groups); in device_add_group()
[all …]
Dnetlink.h45 unsigned int groups; member
114 extern int __netlink_change_ngroups(struct sock *sk, unsigned int groups);
115 extern int netlink_change_ngroups(struct sock *sk, unsigned int groups);
Dsysfs.h270 const struct attribute_group **groups);
276 const struct attribute_group **groups);
436 const struct attribute_group **groups) in sysfs_create_groups() argument
453 const struct attribute_group **groups) in sysfs_remove_groups() argument
Dmiscdevice.h73 const struct attribute_group **groups; member
Dconnector.h64 u32 seq, groups; member
Dleds.h92 const struct attribute_group **groups; member
266 const struct attribute_group **groups; member
/linux-4.19.296/fs/nfsd/
Dnfs4acl.c183 unsigned short groups; member
215 pas->groups |= pa->e_perm; in summarize_posix_acl()
228 pas->groups &= pas->mask; in summarize_posix_acl()
255 deny &= pas.users | pas.group | pas.groups | pas.other; in _posix_to_nfsv4_one()
275 deny &= pas.groups | pas.group | pas.other; in _posix_to_nfsv4_one()
451 struct posix_ace_state_array *groups; member
471 state->groups = kzalloc(alloc, GFP_KERNEL); in init_state()
472 if (!state->groups) { in init_state()
482 kfree(state->groups); in free_state()
511 if (!state->users->n && !state->groups->n) in posix_state_to_acl()
[all …]
/linux-4.19.296/drivers/base/
Ddriver.c127 const struct attribute_group **groups) in driver_add_groups() argument
129 return sysfs_create_groups(&drv->p->kobj, groups); in driver_add_groups()
133 const struct attribute_group **groups) in driver_remove_groups() argument
135 sysfs_remove_groups(&drv->p->kobj, groups); in driver_remove_groups()
173 ret = driver_add_groups(drv, drv->groups); in driver_register()
196 driver_remove_groups(drv, drv->groups); in driver_unregister()
Dcpu.c381 cpu->dev.groups = common_cpu_attr_groups; in register_cpu()
383 cpu->dev.groups = hotplugable_cpu_attr_groups; in register_cpu()
414 const struct attribute_group **groups, in __cpu_device_create() argument
428 dev->groups = groups; in __cpu_device_create()
448 const struct attribute_group **groups, in cpu_device_create() argument
455 dev = __cpu_device_create(parent, drvdata, groups, fmt, vargs); in cpu_device_create()
Dcore.c1299 int device_add_groups(struct device *dev, const struct attribute_group **groups) in device_add_groups() argument
1301 return sysfs_create_groups(&dev->kobj, groups); in device_add_groups()
1306 const struct attribute_group **groups) in device_remove_groups() argument
1308 sysfs_remove_groups(&dev->kobj, groups); in device_remove_groups()
1314 const struct attribute_group **groups; member
1334 const struct attribute_group **groups = devres->groups; in devm_attr_groups_remove() local
1336 dev_dbg(dev, "%s: removing groups %p\n", __func__, groups); in devm_attr_groups_remove()
1337 sysfs_remove_groups(&dev->kobj, groups); in devm_attr_groups_remove()
1403 const struct attribute_group **groups) in devm_device_add_groups() argument
1413 error = sysfs_create_groups(&dev->kobj, groups); in devm_device_add_groups()
[all …]
Dbus.c806 const struct attribute_group **groups) in bus_add_groups() argument
808 return sysfs_create_groups(&bus->p->subsys.kobj, groups); in bus_add_groups()
812 const struct attribute_group **groups) in bus_remove_groups() argument
814 sysfs_remove_groups(&bus->p->subsys.kobj, groups); in bus_remove_groups()
1147 const struct attribute_group **groups, in subsys_register() argument
1168 dev->groups = groups; in subsys_register()
1207 const struct attribute_group **groups) in subsys_system_register() argument
1209 return subsys_register(subsys, groups, &system_kset->kobj); in subsys_system_register()
1225 const struct attribute_group **groups) in subsys_virtual_register() argument
1233 return subsys_register(subsys, groups, virtual_dir); in subsys_virtual_register()
Dbase.h128 const struct attribute_group **groups);
130 const struct attribute_group **groups);
Dclass.c135 const struct attribute_group **groups) in class_add_groups() argument
137 return sysfs_create_groups(&cls->p->subsys.kobj, groups); in class_add_groups()
141 const struct attribute_group **groups) in class_remove_groups() argument
143 return sysfs_remove_groups(&cls->p->subsys.kobj, groups); in class_remove_groups()
/linux-4.19.296/drivers/gpio/
Dgpio-stp-xway.c85 u8 groups; /* we can drive 1-3 groups of 8bit each */ member
179 chip->groups, XWAY_STP_CON1); in xway_stp_hw_init()
214 u32 shadow, groups, dsl, phy; in xway_stp_probe() local
242 if (!of_property_read_u32(pdev->dev.of_node, "lantiq,groups", &groups)) in xway_stp_probe()
243 chip->groups = groups & XWAY_STP_GROUP_MASK; in xway_stp_probe()
245 chip->groups = XWAY_STP_GROUP0; in xway_stp_probe()
246 chip->gc.ngpio = fls(chip->groups) * 8; in xway_stp_probe()
/linux-4.19.296/fs/sysfs/
Dgroup.c191 const struct attribute_group **groups) in sysfs_create_groups() argument
196 if (!groups) in sysfs_create_groups()
199 for (i = 0; groups[i]; i++) { in sysfs_create_groups()
200 error = sysfs_create_group(kobj, groups[i]); in sysfs_create_groups()
203 sysfs_remove_group(kobj, groups[i]); in sysfs_create_groups()
280 const struct attribute_group **groups) in sysfs_remove_groups() argument
284 if (!groups) in sysfs_remove_groups()
286 for (i = 0; groups[i]; i++) in sysfs_remove_groups()
287 sysfs_remove_group(kobj, groups[i]); in sysfs_remove_groups()
/linux-4.19.296/drivers/hid/
Dwacom_sys.c893 if (!wacom->led.groups) in wacom_led_control()
914 buf[2] = wacom->led.groups[0].select & 0x03; in wacom_led_control()
923 int ring_led = wacom->led.groups[0].select & 0x03; in wacom_led_control()
945 buf[10] = wacom->led.groups[0].select & 0x03; in wacom_led_control()
948 int led = wacom->led.groups[0].select | 0x4; in wacom_led_control()
952 led |= (wacom->led.groups[1].select << 4) | 0x40; in wacom_led_control()
1024 wacom->led.groups[set_id].select = id & 0x3; in wacom_led_select_store()
1044 wacom->led.groups[SET_ID].select); \
1298 if (wacom->led.groups[led->group].select != led->id) in __wacom_led_brightness_get()
1313 if (!wacom->led.groups || (brightness == LED_OFF && in wacom_led_brightness_set()
[all …]
/linux-4.19.296/drivers/char/tpm/
Dtpm-chip.c234 chip->dev.groups = chip->groups; in tpm_chip_alloc()
352 for (i = chip->groups[0]->attrs; *i != NULL; ++i) in tpm_del_legacy_sysfs()
374 for (i = chip->groups[0]->attrs; *i != NULL; ++i) { in tpm_add_legacy_sysfs()
/linux-4.19.296/fs/ext4/
Dresize.c226 struct ext4_new_group_data *groups; /* new_group_data for groups member
252 flex_gd->groups = kmalloc_array(flexbg_size, in alloc_flex_gd()
255 if (flex_gd->groups == NULL) in alloc_flex_gd()
266 kfree(flex_gd->groups); in alloc_flex_gd()
276 kfree(flex_gd->groups); in free_flex_gd()
297 struct ext4_new_group_data *group_data = flex_gd->groups; in ext4_alloc_group_tables()
485 group -= flex_gd->groups[0].group; in set_flexbg_block_bitmap()
500 bh = sb_getblk(sb, flex_gd->groups[group].block_bitmap); in set_flexbg_block_bitmap()
545 struct ext4_new_group_data *group_data = flex_gd->groups; in setup_new_flex_group_blocks()
1326 struct ext4_new_group_data *group_data = flex_gd->groups; in ext4_setup_new_descs()
[all …]
/linux-4.19.296/include/linux/pinctrl/
Dpinmux.h71 const char * const **groups,
/linux-4.19.296/drivers/iio/trigger/
Diio-trig-sysfs.c90 .groups = iio_sysfs_trig_groups,
160 t->trig->dev.groups = iio_sysfs_trigger_attr_groups; in iio_sysfs_trigger_probe()
/linux-4.19.296/drivers/edac/
Dedac_mc_sysfs.c286 .groups = csrow_attr_groups,
411 csrow->dev.groups = csrow_dev_groups; in edac_create_csrow_object()
632 .groups = dimm_attr_groups,
908 .groups = mci_attr_groups,
921 const struct attribute_group **groups) in edac_create_sysfs_mci_device() argument
950 mci->dev.groups = groups; in edac_create_sysfs_mci_device()
/linux-4.19.296/include/linux/fpga/
Dfpga-bridge.h22 const struct attribute_group **groups; member
/linux-4.19.296/block/
Dgenhd.c586 const struct attribute_group **groups) in register_disk() argument
601 if (groups) { in register_disk()
602 WARN_ON(ddev->groups); in register_disk()
603 ddev->groups = groups; in register_disk()
679 const struct attribute_group **groups, in __device_add_disk() argument
723 register_disk(parent, disk, groups); in __device_add_disk()
738 const struct attribute_group **groups) in device_add_disk() argument
741 __device_add_disk(parent, disk, groups, true); in device_add_disk()
1331 .groups = disk_attr_groups,

123456