Home
last modified time | relevance | path

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

/linux/tools/net/ynl/lib/
H A Dynl-priv.h272 ynl_attr_nest_start(struct nlmsghdr *nlh, unsigned int attr_type) in ynl_attr_nest_start() argument
280 attr->nla_type = attr_type | NLA_F_NESTED; in ynl_attr_nest_start()
293 ynl_attr_put(struct nlmsghdr *nlh, unsigned int attr_type, in ynl_attr_put() argument
302 attr->nla_type = attr_type; in ynl_attr_put()
311 ynl_attr_put_str(struct nlmsghdr *nlh, unsigned int attr_type, const char *str) in ynl_attr_put_str() argument
321 attr->nla_type = attr_type; in ynl_attr_put_str()
381 ynl_attr_put_s8(struct nlmsghdr *nlh, unsigned int attr_type, __s8 value) in ynl_attr_put_s8() argument
383 ynl_attr_put(nlh, attr_type, &value, sizeof(value)); in ynl_attr_put_s8()
387 ynl_attr_put_s16(struct nlmsghdr *nlh, unsigned int attr_type, __s16 value) in ynl_attr_put_s16() argument
389 ynl_attr_put(nlh, attr_type, &value, sizeof(value)); in ynl_attr_put_s16()
[all …]
/linux/drivers/platform/x86/hp/hp-bioscfg/
H A Dbioscfg.c407 static int hp_alloc_attributes_data(int attr_type) in hp_alloc_attributes_data() argument
409 switch (attr_type) { in hp_alloc_attributes_data()
585 static int hp_add_other_attributes(int attr_type) in hp_add_other_attributes() argument
598 switch (attr_type) { in hp_add_other_attributes()
610 pr_err("Error: Unknown attr_type: %d\n", attr_type); in hp_add_other_attributes()
624 switch (attr_type) { in hp_add_other_attributes()
650 static int hp_init_bios_package_attribute(enum hp_wmi_data_type attr_type, in hp_init_bios_package_attribute() argument
682 if (attr_type == HPWMI_PASSWORD_TYPE) in hp_init_bios_package_attribute()
731 switch (attr_type) { in hp_init_bios_package_attribute()
758 pr_debug("Unknown attribute type found: 0x%x\n", attr_type); in hp_init_bios_package_attribute()
[all …]
/linux/net/ethtool/
H A Dcoalesce.c23 static u32 attr_to_mask(unsigned int attr_type) in attr_to_mask()
25 return BIT(attr_type - __SUPPORTED_OFFSET); in attr_to_mask()
127 static bool coalesce_put_u32(struct sk_buff *skb, u16 attr_type, u32 val, in coalesce_put_u32()
130 if (!val && !(supported_params & attr_to_mask(attr_type))) in coalesce_put_u32()
132 return nla_put_u32(skb, attr_type, val); in coalesce_put_bool() argument
135 static bool coalesce_put_bool(struct sk_buff *skb, u16 attr_type, u32 val, in coalesce_put_bool()
138 if (!val && !(supported_params & attr_to_mask(attr_type))) in coalesce_put_bool()
140 return nla_put_u8(skb, attr_type, !!val);
146 * @attr_type: nest attr type ETHTOOL_A_COALESCE_*X_PROFILE
154 static int coalesce_put_profile(struct sk_buff *skb, u16 attr_type, in coalesce_put_profile()
22 attr_to_mask(unsigned int attr_type) attr_to_mask() argument
124 coalesce_put_u32(struct sk_buff * skb,u16 attr_type,u32 val,u32 supported_params) coalesce_put_u32() argument
151 coalesce_put_profile(struct sk_buff * skb,u16 attr_type,const struct dim_cq_moder * profile,u8 coal_flags) coalesce_put_profile() argument
391 ethnl_update_irq_moder(struct dim_irq_moder * irq_moder,u16 * irq_field,u16 attr_type,struct nlattr ** tb,u8 coal_bit,bool * mod,struct netlink_ext_ack * extack) ethnl_update_irq_moder() argument
[all...]
/linux/tools/testing/selftests/powerpc/papr_attributes/
H 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/drivers/platform/x86/dell/dell-wmi-sysman/
H A Dsysman.c286 * @attr_type: Attribute type to allocate
288 static int alloc_attributes_data(int attr_type)
292 switch (attr_type) { in get_wmiobj_pointer()
354 * @attr_type: The attribute type to initialize in destroy_attribute_objs()
360 static int init_bios_attributes(int attr_type, const char *guid) in release_attributes_data()
375 retval = alloc_attributes_data(attr_type); in release_attributes_data()
379 switch (attr_type) { in release_attributes_data()
385 pr_err("Error: Unknown attr_type: %d\n", attr_type);
419 if (attr_type in init_bios_attributes()
318 alloc_attributes_data(int attr_type) alloc_attributes_data() argument
390 init_bios_attributes(int attr_type,const char * guid) init_bios_attributes() argument
[all...]
/linux/drivers/media/usb/pvrusb2/
H 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/tools/net/ynl/pyynl/lib/
H A Dynl.py281 def get_format(cls, attr_type, byte_order=None):
282 format_ = cls.type_formats[attr_type]
288 def as_scalar(self, attr_type, byte_order=None):
289 format_ = self.get_format(attr_type, byte_order)
292 def as_auto_scalar(self, attr_type, byte_order=None):
295 real_type = attr_type[0] + str(len(self.raw) * 8)
833 attr_type = attr["type"][0] + ('32' if scalar.bit_length() <= 32 else '64')
835 attr_type = attr["type"]
836 format_ = NlAttr.get_format(attr_type, attr.byte_order)
138 get_format(cls, attr_type, byte_order=None) global() argument
145 as_scalar(self, attr_type, byte_order=None) global() argument
149 as_auto_scalar(self, attr_type, byte_order=None) global() argument
/linux/drivers/gpu/drm/xe/
H A Dxe_vm_madvise.c688 int err, attr_type;
795 attr_type = array_index_nospec(args->type, ARRAY_SIZE(madvise_funcs));
798 if (!madvise_funcs[attr_type]) {
803 madvise_funcs[attr_type](xe, vm, madvise_range.vmas, madvise_range.num_vmas, args,
423 int err, attr_type; xe_vm_madvise_ioctl() local
/linux/drivers/scsi/
H A Discsi_boot_sysfs.c69 #define iscsi_boot_rd_attr(fnname, sysfs_name, attr_type) \ argument
72 .type = attr_type, \
/linux/drivers/net/wireless/microchip/wilc1000/
H A Dcfg80211.c81 u8 attr_type; member
87 u8 attr_type; member
95 u8 attr_type; member
959 if (e->attr_type == IEEE80211_P2P_ATTR_CHANNEL_LIST && in wilc_wfi_cfg_parse_ch_attr()
962 else if (e->attr_type == IEEE80211_P2P_ATTR_OPER_CHANNEL && in wilc_wfi_cfg_parse_ch_attr()
/linux/drivers/net/ethernet/mellanox/mlxsw/
H 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/lenovo/
H A Dthink-lmi.c1221 static struct kobj_attribute attr_type = __ATTR_RO(type); variable
1239 &attr_type.attr,
/linux/scripts/
H A Dcheckpatch.pl6598 my $attr_type = $2;