Home
last modified time | relevance | path

Searched refs:attr_type (Results 1 – 15 of 15) sorted by relevance

/linux/tools/net/ynl/lib/
A Dynl-priv.h268 attr->nla_type = attr_type | NLA_F_NESTED; in ynl_attr_nest_start()
290 attr->nla_type = attr_type; in ynl_attr_put()
309 attr->nla_type = attr_type; in ynl_attr_put_str()
371 ynl_attr_put(nlh, attr_type, &value, sizeof(value)); in ynl_attr_put_s8()
377 ynl_attr_put(nlh, attr_type, &value, sizeof(value)); in ynl_attr_put_s16()
383 ynl_attr_put(nlh, attr_type, &value, sizeof(value)); in ynl_attr_put_s32()
389 ynl_attr_put(nlh, attr_type, &value, sizeof(value)); in ynl_attr_put_s64()
395 ynl_attr_put(nlh, attr_type, &value, sizeof(value)); in ynl_attr_put_u8()
401 ynl_attr_put(nlh, attr_type, &value, sizeof(value)); in ynl_attr_put_u16()
407 ynl_attr_put(nlh, attr_type, &value, sizeof(value)); in ynl_attr_put_u32()
[all …]
A Dynl.py135 def get_format(cls, attr_type, byte_order=None): argument
136 format = cls.type_formats[attr_type]
142 def as_scalar(self, attr_type, byte_order=None): argument
143 format = self.get_format(attr_type, byte_order)
146 def as_auto_scalar(self, attr_type, byte_order=None): argument
149 real_type = attr_type[0] + str(len(self.raw) * 8)
579 attr_type = attr["type"][0] + ('32' if scalar.bit_length() <= 32 else '64')
581 attr_type = attr["type"]
582 format = NlAttr.get_format(attr_type, attr.byte_order)
/linux/drivers/platform/x86/hp/hp-bioscfg/
A Dbioscfg.c412 switch (attr_type) { in hp_alloc_attributes_data()
601 switch (attr_type) { in hp_add_other_attributes()
627 switch (attr_type) { in hp_add_other_attributes()
685 if (attr_type == HPWMI_PASSWORD_TYPE) in hp_init_bios_package_attribute()
729 switch (attr_type) { in hp_init_bios_package_attribute()
789 if (attr_type == HPWMI_PASSWORD_TYPE || in hp_init_bios_buffer_attribute()
790 attr_type == HPWMI_SECURE_PLATFORM_TYPE) in hp_init_bios_buffer_attribute()
814 if (attr_type == HPWMI_SECURE_PLATFORM_TYPE) in hp_init_bios_buffer_attribute()
825 switch (attr_type) { in hp_init_bios_buffer_attribute()
887 ret = hp_alloc_attributes_data(attr_type); in hp_init_bios_attributes()
[all …]
/linux/tools/testing/selftests/powerpc/papr_attributes/
A Dattr_test.c77 int id, attr_type; in verify_energy_info() local
85 attr_type = value_type(id); in verify_energy_info()
86 FAIL_IF(attr_type == INVALID); in verify_energy_info()
99 if (attr_type == STR_VAL) { in verify_energy_info()
/linux/net/ethtool/
A Dcoalesce.c22 static u32 attr_to_mask(unsigned int attr_type) in attr_to_mask() argument
24 return BIT(attr_type - __SUPPORTED_OFFSET); in attr_to_mask()
127 if (!val && !(supported_params & attr_to_mask(attr_type))) in coalesce_put_u32()
129 return nla_put_u32(skb, attr_type, val); in coalesce_put_u32()
135 if (!val && !(supported_params & attr_to_mask(attr_type))) in coalesce_put_bool()
137 return nla_put_u8(skb, attr_type, !!val); in coalesce_put_bool()
161 profile_attr = nla_nest_start(skb, attr_type); in coalesce_put_profile()
391 u16 *irq_field, u16 attr_type, in ethnl_update_irq_moder() argument
399 if (!tb[attr_type]) in ethnl_update_irq_moder()
403 val = nla_get_u32(tb[attr_type]); in ethnl_update_irq_moder()
[all …]
/linux/drivers/platform/x86/dell/dell-wmi-sysman/
A Dsysman.c319 static int alloc_attributes_data(int attr_type) in alloc_attributes_data() argument
323 switch (attr_type) { in alloc_attributes_data()
391 static int init_bios_attributes(int attr_type, const char *guid) in init_bios_attributes() argument
406 retval = alloc_attributes_data(attr_type); in init_bios_attributes()
410 switch (attr_type) { in init_bios_attributes()
416 pr_err("Error: Unknown attr_type: %d\n", attr_type); in init_bios_attributes()
450 if (attr_type == PO) in init_bios_attributes()
480 switch (attr_type) { in init_bios_attributes()
/linux/drivers/media/usb/pvrusb2/
A Dpvrusb2-sysfs.c51 struct device_attribute attr_type; member
90 cip = container_of(attr, struct pvr2_sysfs_ctl_item, attr_type); in show_type()
313 sysfs_attr_init(&cip->attr_type.attr); in pvr2_sysfs_add_control()
314 cip->attr_type.attr.name = "type"; in pvr2_sysfs_add_control()
315 cip->attr_type.attr.mode = S_IRUGO; in pvr2_sysfs_add_control()
316 cip->attr_type.show = show_type; in pvr2_sysfs_add_control()
358 cip->attr_gen[acnt++] = &cip->attr_type.attr; in pvr2_sysfs_add_control()
/linux/drivers/scsi/
A Discsi_boot_sysfs.c69 #define iscsi_boot_rd_attr(fnname, sysfs_name, attr_type) \ argument
72 .type = attr_type, \
/linux/drivers/hwtracing/coresight/
A Dcoresight-cti-sysfs.c1010 enum cti_conn_attr_type attr_type, in cti_create_con_sysfs_attr() argument
1019 name = devm_kstrdup(dev, con_attr_names[attr_type], in cti_create_con_sysfs_attr()
1027 eattr->attr.show = show_fns[attr_type]; in cti_create_con_sysfs_attr()
/linux/drivers/net/wireless/realtek/rtw89/
A Dps.c315 noa_head->attr_type = IEEE80211_P2P_ATTR_ABSENCE_NOTICE; in rtw89_p2p_noa_renew()
A Dcore.h3445 u8 attr_type; member
/linux/drivers/net/wireless/microchip/wilc1000/
A Dcfg80211.c81 u8 attr_type; member
87 u8 attr_type; member
95 u8 attr_type; member
966 if (e->attr_type == IEEE80211_P2P_ATTR_CHANNEL_LIST && in wilc_wfi_cfg_parse_ch_attr()
969 else if (e->attr_type == IEEE80211_P2P_ATTR_OPER_CHANNEL && in wilc_wfi_cfg_parse_ch_attr()
/linux/drivers/net/ethernet/mellanox/mlxsw/
A Dcore_hwmon.c491 enum mlxsw_hwmon_attr_type attr_type, in mlxsw_hwmon_attr_add() argument
500 switch (attr_type) { in mlxsw_hwmon_attr_add()
/linux/drivers/platform/x86/
A Dthink-lmi.c1099 static struct kobj_attribute attr_type = __ATTR_RO(type); variable
1117 &attr_type.attr,
/linux/scripts/
A Dcheckpatch.pl6547 my $attr_type = $2;

Completed in 81 milliseconds