/openbmc/linux/arch/powerpc/platforms/pseries/ |
H A D | papr_platform_attributes.c | 51 __be64 num_attrs; member 125 be64_to_cpu(hdr->array_offset) + (be64_to_cpu(hdr->num_attrs) in papr_get_attr() 239 uint64_t num_attrs; in papr_init() local 288 num_attrs = be64_to_cpu(esi_hdr->num_attrs); in papr_init() 294 (num_attrs * sizeof(struct energy_scale_attribute))) { in papr_init() 298 papr_groups = kcalloc(num_attrs, sizeof(*papr_groups), GFP_KERNEL); in papr_init() 315 for (idx = 0; idx < num_attrs; idx++) { in papr_init() 328 for (idx = 0; idx < num_attrs; idx++) { in papr_init() 341 idx = num_attrs; in papr_init()
|
/openbmc/linux/drivers/hwmon/ |
H A D | i5k_amb.c | 101 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 …]
|
/openbmc/linux/include/rdma/ |
H A D | uverbs_named_ioctl.h | 31 .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)), \
|
H A D | uverbs_ioctl.h | 304 size_t num_attrs; member
|
/openbmc/linux/drivers/hwmon/occ/ |
H A D | common.c | 779 unsigned int i, s, num_attrs = 0; in occ_setup_sensor_attrs() local 795 num_attrs += (sensors->temp.num_sensors * 2); in occ_setup_sensor_attrs() 798 num_attrs += (sensors->temp.num_sensors * 4); in occ_setup_sensor_attrs() 802 num_attrs += (sensors->temp.num_sensors * 5); in occ_setup_sensor_attrs() 814 num_attrs += (sensors->freq.num_sensors * 2); in occ_setup_sensor_attrs() 825 num_attrs += (sensors->power.num_sensors * 4); in occ_setup_sensor_attrs() 828 num_attrs += (sensors->power.num_sensors * 16); in occ_setup_sensor_attrs() 837 num_attrs += (sensors->caps.num_sensors * 7); in occ_setup_sensor_attrs() 840 num_attrs += (sensors->caps.num_sensors * 8); in occ_setup_sensor_attrs() 844 num_attrs += (sensors->caps.num_sensors * 9); in occ_setup_sensor_attrs() [all …]
|
/openbmc/linux/drivers/infiniband/core/ |
H A D | uverbs_ioctl.c | 77 unsigned int num_attrs) in uapi_compute_bundle_size() argument 83 sizeof(*pbundle->uattrs) * num_attrs; in uapi_compute_bundle_size() 422 unsigned int num_attrs) in ib_uverbs_run_method() argument 425 size_t uattrs_size = array_size(sizeof(*pbundle->uattrs), num_attrs); in ib_uverbs_run_method() 443 for (i = 0; i != num_attrs; i++) { in ib_uverbs_run_method() 608 ret = ib_uverbs_run_method(pbundle, hdr->num_attrs); in ib_uverbs_cmd_verbs() 630 hdr.length != struct_size(&hdr, attrs, hdr.num_attrs)) in ib_uverbs_ioctl()
|
H A D | uverbs_uapi.c | 127 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()
|
H A D | rdma_core.h | 151 unsigned int num_attrs);
|
/openbmc/linux/include/uapi/linux/ |
H A D | gpio.h | 169 __u32 num_attrs; member 228 __u32 num_attrs; member
|
/openbmc/linux/tools/gpio/ |
H A D | gpio-event-mon.c | 223 attr = config.num_attrs; in main() 224 config.num_attrs++; in main()
|
H A D | gpio-utils.c | 271 config.num_attrs = 1; in gpiotools_sets()
|
H A D | lsgpio.c | 94 for (i = 0; i < info->num_attrs; i++) { in print_attributes()
|
/openbmc/linux/include/uapi/rdma/ |
H A D | rdma_user_ioctl_cmds.h | 80 __u16 num_attrs; member
|
/openbmc/linux/drivers/platform/mellanox/ |
H A D | mlxreg-hotplug.c | 259 int num_attrs = 0, id = 0, i, j, k, count, ret; in mlxreg_hotplug_attr_init() local 325 num_attrs += k; in mlxreg_hotplug_attr_init() 329 num_attrs, in mlxreg_hotplug_attr_init()
|
/openbmc/linux/tools/testing/selftests/gpio/ |
H A D | gpio-mockup-cdev.c | 33 req.config.num_attrs = 1; in request_line_v2()
|
/openbmc/linux/drivers/gpio/ |
H A D | gpiolib-cdev.c | 670 attr = &info->attrs[info->num_attrs]; in supinfo_to_lineinfo() 673 info->num_attrs++; in supinfo_to_lineinfo() 1144 for (i = 0; i < lc->num_attrs; i++) { in gpio_v2_line_config_debounced() 1158 for (i = 0; i < lc->num_attrs; i++) { in gpio_v2_line_config_debounce_period() 1293 for (i = 0; i < lc->num_attrs; i++) { in gpio_v2_line_config_flags() 1307 for (i = 0; i < lc->num_attrs; i++) { in gpio_v2_line_config_output_value() 1381 if (lc->num_attrs > GPIO_V2_LINE_NUM_ATTRS_MAX) in gpio_v2_line_config_validate()
|
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_svm.c | 3828 int i, j, num_attrs, ret = 0; in kfd_criu_resume_svm() local 3843 num_attrs = nattr_common + (nattr_accessibility * p->n_pdds); in kfd_criu_resume_svm() 3850 for (j = 0; j < num_attrs; j++) { in kfd_criu_resume_svm() 3886 (num_attrs + 1); in kfd_criu_resume_svm() 3895 memcpy(set_attr, criu_svm_md->data.attrs, num_attrs * in kfd_criu_resume_svm() 3897 set_attr[num_attrs].type = KFD_IOCTL_SVM_ATTR_CLR_FLAGS; in kfd_criu_resume_svm() 3898 set_attr[num_attrs].value = ~set_flags; in kfd_criu_resume_svm() 3901 criu_svm_md->data.size, num_attrs + 1, in kfd_criu_resume_svm()
|
H A D | kfd_topology.c | 651 uint32_t i, num_attrs; in kfd_build_sysfs_node_entry() local 798 num_attrs = ARRAY_SIZE(perf_attr_iommu); in kfd_build_sysfs_node_entry() 801 * num_attrs + sizeof(struct attribute_group), in kfd_build_sysfs_node_entry() 813 for (i = 0; i < num_attrs; i++) in kfd_build_sysfs_node_entry()
|