Home
last modified time | relevance | path

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

/Linux-v5.4/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-v5.4/drivers/staging/gasket/
Dgasket_sysfs.c301 int num_attrs; in gasket_sysfs_get_attr() local
309 num_attrs = mapping->attribute_count; in gasket_sysfs_get_attr()
310 for (i = 0; i < num_attrs; ++i) { in gasket_sysfs_get_attr()
325 int num_attrs; in gasket_sysfs_put_attr() local
333 num_attrs = mapping->attribute_count; in gasket_sysfs_put_attr()
334 for (i = 0; i < num_attrs; ++i) { in gasket_sysfs_put_attr()
/Linux-v5.4/include/rdma/
Duverbs_named_ioctl.h58 .num_attrs = ARRAY_SIZE(UVERBS_METHOD_ATTRS(_method_id)), \
72 .num_attrs = ARRAY_SIZE(UVERBS_METHOD_ATTRS(_method_id)), \
119 .num_attrs = ARRAY_SIZE(UVERBS_METHOD_ATTRS(_method_id)), \
Duverbs_ioctl.h330 size_t num_attrs; member
/Linux-v5.4/drivers/hwmon/occ/
Dcommon.c726 unsigned int i, s, num_attrs = 0; in occ_setup_sensor_attrs() local
742 num_attrs += (sensors->temp.num_sensors * 2); in occ_setup_sensor_attrs()
745 num_attrs += (sensors->temp.num_sensors * 4); in occ_setup_sensor_attrs()
757 num_attrs += (sensors->freq.num_sensors * 2); in occ_setup_sensor_attrs()
768 num_attrs += (sensors->power.num_sensors * 4); in occ_setup_sensor_attrs()
771 num_attrs += (sensors->power.num_sensors * 16); in occ_setup_sensor_attrs()
780 num_attrs += (sensors->caps.num_sensors * 7); in occ_setup_sensor_attrs()
786 num_attrs += (sensors->caps.num_sensors * 8); in occ_setup_sensor_attrs()
794 num_attrs += (sensors->extended.num_sensors * 3); in occ_setup_sensor_attrs()
800 occ->attrs = devm_kzalloc(dev, sizeof(*occ->attrs) * num_attrs, in occ_setup_sensor_attrs()
[all …]
/Linux-v5.4/drivers/infiniband/core/
Duverbs_ioctl.c76 unsigned int num_attrs) in uapi_compute_bundle_size() argument
82 sizeof(*pbundle->uattrs) * num_attrs; in uapi_compute_bundle_size()
419 unsigned int num_attrs) in ib_uverbs_run_method() argument
422 size_t uattrs_size = array_size(sizeof(*pbundle->uattrs), num_attrs); in ib_uverbs_run_method()
440 for (i = 0; i != num_attrs; i++) { in ib_uverbs_run_method()
612 ret = ib_uverbs_run_method(pbundle, hdr->num_attrs); in ib_uverbs_cmd_verbs()
637 hdr.length != struct_size(&hdr, attrs, hdr.num_attrs)) in ib_uverbs_ioctl()
Duverbs_uapi.c130 for (i = 0; i != method->num_attrs; i++) { in uapi_merge_method()
360 unsigned int num_attrs = 0; in uapi_finalize_ioctl_method() local
408 num_attrs++; in uapi_finalize_ioctl_method()
414 uapi_compute_bundle_size(method_elm, num_attrs); in uapi_finalize_ioctl_method()
Drdma_core.h189 unsigned int num_attrs);
/Linux-v5.4/include/uapi/rdma/
Drdma_user_ioctl_cmds.h80 __u16 num_attrs; member
/Linux-v5.4/drivers/net/wireless/intel/iwlwifi/fw/api/
Dfilter.h148 u8 num_attrs; member
/Linux-v5.4/drivers/platform/mellanox/
Dmlxreg-hotplug.c199 int num_attrs = 0, id = 0, i, j; in mlxreg_hotplug_attr_init() local
206 num_attrs += item->count; in mlxreg_hotplug_attr_init()
233 num_attrs, in mlxreg_hotplug_attr_init()
/Linux-v5.4/drivers/gpu/drm/amd/amdkfd/
Dkfd_topology.c600 uint32_t i, num_attrs; in kfd_build_sysfs_node_entry() local
714 num_attrs = ARRAY_SIZE(perf_attr_iommu); in kfd_build_sysfs_node_entry()
717 * num_attrs + sizeof(struct attribute_group), in kfd_build_sysfs_node_entry()
729 for (i = 0; i < num_attrs; i++) in kfd_build_sysfs_node_entry()
/Linux-v5.4/drivers/net/wireless/intel/iwlwifi/mvm/
Dmac80211.c1812 out_filter->num_attrs++; in iwl_mvm_set_bcast_filter()
1860 if (!cmd->filters[data->current_filter].num_attrs) in iwl_mvm_bcast_filter_iterator()
Ddebugfs.c1473 filter.num_attrs++; in iwl_dbgfs_bcast_filters_write()