Home
last modified time | relevance | path

Searched refs:num_attrs (Results 1 – 18 of 18) sorted by relevance

/linux-5.19.10/arch/powerpc/platforms/pseries/
Dpapr_platform_attributes.c50 __be64 num_attrs; member
122 be64_to_cpu(hdr->array_offset) + (be64_to_cpu(hdr->num_attrs) in papr_get_attr()
236 uint64_t num_attrs; in papr_init() local
285 num_attrs = be64_to_cpu(esi_hdr->num_attrs); in papr_init()
291 (num_attrs * sizeof(struct energy_scale_attribute))) { in papr_init()
295 papr_groups = kcalloc(num_attrs, sizeof(*papr_groups), GFP_KERNEL); in papr_init()
312 for (idx = 0; idx < num_attrs; idx++) { in papr_init()
325 for (idx = 0; idx < num_attrs; idx++) { in papr_init()
338 idx = num_attrs; in papr_init()
/linux-5.19.10/drivers/hwmon/
Di5k_amb.c101 unsigned int num_attrs; member
269 data->num_attrs = 0; in i5k_amb_hwmon_init()
282 iattr = data->attrs + data->num_attrs; in i5k_amb_hwmon_init()
294 data->num_attrs++; in i5k_amb_hwmon_init()
297 iattr = data->attrs + data->num_attrs; in i5k_amb_hwmon_init()
309 data->num_attrs++; in i5k_amb_hwmon_init()
312 iattr = data->attrs + data->num_attrs; in i5k_amb_hwmon_init()
325 data->num_attrs++; in i5k_amb_hwmon_init()
328 iattr = data->attrs + data->num_attrs; in i5k_amb_hwmon_init()
341 data->num_attrs++; in i5k_amb_hwmon_init()
[all …]
/linux-5.19.10/include/rdma/
Duverbs_named_ioctl.h31 .num_attrs = ARRAY_SIZE(UVERBS_METHOD_ATTRS(_method_id)), \
45 .num_attrs = ARRAY_SIZE(UVERBS_METHOD_ATTRS(_method_id)), \
92 .num_attrs = ARRAY_SIZE(UVERBS_METHOD_ATTRS(_method_id)), \
Duverbs_ioctl.h303 size_t num_attrs; member
/linux-5.19.10/drivers/hwmon/occ/
Dcommon.c782 unsigned int i, s, num_attrs = 0; in occ_setup_sensor_attrs() local
798 num_attrs += (sensors->temp.num_sensors * 2); in occ_setup_sensor_attrs()
801 num_attrs += (sensors->temp.num_sensors * 4); in occ_setup_sensor_attrs()
805 num_attrs += (sensors->temp.num_sensors * 5); in occ_setup_sensor_attrs()
817 num_attrs += (sensors->freq.num_sensors * 2); in occ_setup_sensor_attrs()
828 num_attrs += (sensors->power.num_sensors * 4); in occ_setup_sensor_attrs()
831 num_attrs += (sensors->power.num_sensors * 16); in occ_setup_sensor_attrs()
840 num_attrs += (sensors->caps.num_sensors * 7); in occ_setup_sensor_attrs()
843 num_attrs += (sensors->caps.num_sensors * 8); in occ_setup_sensor_attrs()
847 num_attrs += (sensors->caps.num_sensors * 9); in occ_setup_sensor_attrs()
[all …]
/linux-5.19.10/drivers/infiniband/core/
Duverbs_ioctl.c77 unsigned int num_attrs) in uapi_compute_bundle_size() argument
83 sizeof(*pbundle->uattrs) * num_attrs; in uapi_compute_bundle_size()
414 unsigned int num_attrs) in ib_uverbs_run_method() argument
417 size_t uattrs_size = array_size(sizeof(*pbundle->uattrs), num_attrs); in ib_uverbs_run_method()
435 for (i = 0; i != num_attrs; i++) { in ib_uverbs_run_method()
600 ret = ib_uverbs_run_method(pbundle, hdr->num_attrs); in ib_uverbs_cmd_verbs()
622 hdr.length != struct_size(&hdr, attrs, hdr.num_attrs)) in ib_uverbs_ioctl()
Duverbs_uapi.c127 for (i = 0; i != method->num_attrs; i++) { in uapi_merge_method()
357 unsigned int num_attrs = 0; in uapi_finalize_ioctl_method() local
405 num_attrs++; in uapi_finalize_ioctl_method()
411 uapi_compute_bundle_size(method_elm, num_attrs); in uapi_finalize_ioctl_method()
Drdma_core.h151 unsigned int num_attrs);
/linux-5.19.10/include/uapi/linux/
Dgpio.h169 __u32 num_attrs; member
228 __u32 num_attrs; member
/linux-5.19.10/tools/gpio/
Dgpio-event-mon.c222 attr = config.num_attrs; in main()
223 config.num_attrs++; in main()
Dlsgpio.c94 for (i = 0; i < info->num_attrs; i++) { in print_attributes()
Dgpio-utils.c271 config.num_attrs = 1; in gpiotools_sets()
/linux-5.19.10/include/uapi/rdma/
Drdma_user_ioctl_cmds.h80 __u16 num_attrs; member
/linux-5.19.10/drivers/gpio/
Dgpiolib-cdev.c911 for (i = 0; i < lc->num_attrs; i++) { in gpio_v2_line_config_debounced()
925 for (i = 0; i < lc->num_attrs; i++) { in gpio_v2_line_config_debounce_period()
1043 for (i = 0; i < lc->num_attrs; i++) { in gpio_v2_line_config_flags()
1057 for (i = 0; i < lc->num_attrs; i++) { in gpio_v2_line_config_output_value()
1125 if (lc->num_attrs > GPIO_V2_LINE_NUM_ATTRS_MAX) in gpio_v2_line_config_validate()
2089 unsigned int num_attrs = 0; in gpio_desc_to_lineinfo() local
2158 info->attrs[num_attrs].id = GPIO_V2_LINE_ATTR_ID_DEBOUNCE; in gpio_desc_to_lineinfo()
2159 info->attrs[num_attrs].debounce_period_us = debounce_period_us; in gpio_desc_to_lineinfo()
2160 num_attrs++; in gpio_desc_to_lineinfo()
2162 info->num_attrs = num_attrs; in gpio_desc_to_lineinfo()
/linux-5.19.10/drivers/platform/mellanox/
Dmlxreg-hotplug.c249 int num_attrs = 0, id = 0, i, j, k, ret; in mlxreg_hotplug_attr_init() local
313 num_attrs += k; in mlxreg_hotplug_attr_init()
317 num_attrs, in mlxreg_hotplug_attr_init()
/linux-5.19.10/tools/testing/selftests/gpio/
Dgpio-mockup-cdev.c33 req.config.num_attrs = 1; in request_line_v2()
/linux-5.19.10/drivers/gpu/drm/amd/amdkfd/
Dkfd_topology.c639 uint32_t i, num_attrs; in kfd_build_sysfs_node_entry() local
761 num_attrs = ARRAY_SIZE(perf_attr_iommu); in kfd_build_sysfs_node_entry()
764 * num_attrs + sizeof(struct attribute_group), in kfd_build_sysfs_node_entry()
776 for (i = 0; i < num_attrs; i++) in kfd_build_sysfs_node_entry()
Dkfd_svm.c3542 int i, j, num_attrs, ret = 0; in kfd_criu_resume_svm() local
3557 num_attrs = nattr_common + (nattr_accessibility * p->n_pdds); in kfd_criu_resume_svm()
3564 for (j = 0; j < num_attrs; j++) { in kfd_criu_resume_svm()
3600 (num_attrs + 1); in kfd_criu_resume_svm()
3609 memcpy(set_attr, criu_svm_md->data.attrs, num_attrs * in kfd_criu_resume_svm()
3611 set_attr[num_attrs].type = KFD_IOCTL_SVM_ATTR_CLR_FLAGS; in kfd_criu_resume_svm()
3612 set_attr[num_attrs].value = ~set_flags; in kfd_criu_resume_svm()
3615 criu_svm_md->data.size, num_attrs + 1, in kfd_criu_resume_svm()