/openbmc/linux/include/trace/events/ |
H A D | hwmon.h | 12 TP_PROTO(int index, const char *attr_name, long val), 14 TP_ARGS(index, attr_name, val), 18 __string(attr_name, attr_name) 24 __assign_str(attr_name, attr_name); 29 __entry->index, __get_str(attr_name), __entry->val) 34 TP_PROTO(int index, const char *attr_name, long val), 36 TP_ARGS(index, attr_name, val) 41 TP_PROTO(int index, const char *attr_name, long val), 43 TP_ARGS(index, attr_name, val) 48 TP_PROTO(int index, const char *attr_name, const char *s), [all …]
|
/openbmc/openbmc-test-automation/lib/ |
H A D | pldm_utils.py | 141 def GetRandomBIOSIntAndStrValues(attr_name, count): argument 157 if "gateway" in attr_name: 163 elif "ipaddr" in attr_name: 169 elif "name" in attr_name: 175 elif "mfg_flags" in attr_name: 181 elif "hb_lid_ids" in attr_name: 203 attr_name = attr_handle[0][1:-1] 208 "bios GetBIOSAttributeCurrentValueByHandle -a " + attr_name 215 if "name" in attr_name: 216 attr_val_data_dict[attr_name] = '""' [all …]
|
H A D | state.py | 810 for attr_name in ret_values[url_path]: 813 ret_values[url_path][attr_name] = re.sub( 814 r".*\.", "", ret_values[url_path][attr_name] 820 r"^Current|(State|Transition)$", "", attr_name 832 attr_name
|
/openbmc/linux/drivers/hwmon/ |
H A D | ibmpowernv.c | 251 const char *attr_name = NULL; in convert_opal_attr_name() local 254 attr_name = "fault"; in convert_opal_attr_name() 256 attr_name = "input"; in convert_opal_attr_name() 259 attr_name = "max"; in convert_opal_attr_name() 261 attr_name = "min"; in convert_opal_attr_name() 264 return attr_name; in convert_opal_attr_name() 277 const char *attr_name; in parse_opal_node_name() local 284 attr_name = convert_opal_attr_name(type, attr_suffix); in parse_opal_node_name() 285 if (!attr_name) in parse_opal_node_name() 288 return attr_name; in parse_opal_node_name() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/hplip/hplip/ |
H A D | 0005-hp_ipp.c-Add-printf-format-to-snprintf-calls.patch | 30 if ( strcmp(attr_name, "printer-name") == 0 && 35 else if ( strcmp(attr_name, "device-uri") == 0 && 40 else if ( strcmp(attr_name, "printer-uri-supported") == 0 && 45 else if ( strcmp(attr_name, "printer-info") == 0 && 50 else if ( strcmp(attr_name, "printer-location") == 0 && 55 else if ( strcmp(attr_name, "printer-make-and-model") == 0 && 60 else if ( strcmp(attr_name, "printer-state") == 0 &&
|
/openbmc/linux/drivers/s390/net/ |
H A D | qeth_l2_sys.c | 253 static u32 qeth_l2_vnicc_sysfs_attr_to_char(const char *attr_name) in qeth_l2_vnicc_sysfs_attr_to_char() argument 255 if (sysfs_streq(attr_name, "flooding")) in qeth_l2_vnicc_sysfs_attr_to_char() 257 else if (sysfs_streq(attr_name, "mcast_flooding")) in qeth_l2_vnicc_sysfs_attr_to_char() 259 else if (sysfs_streq(attr_name, "learning")) in qeth_l2_vnicc_sysfs_attr_to_char() 261 else if (sysfs_streq(attr_name, "takeover_setvmac")) in qeth_l2_vnicc_sysfs_attr_to_char() 263 else if (sysfs_streq(attr_name, "takeover_learning")) in qeth_l2_vnicc_sysfs_attr_to_char() 265 else if (sysfs_streq(attr_name, "bridge_invisible")) in qeth_l2_vnicc_sysfs_attr_to_char() 267 else if (sysfs_streq(attr_name, "rx_bcast")) in qeth_l2_vnicc_sysfs_attr_to_char()
|
/openbmc/linux/tools/usb/usbip/src/ |
H A D | usbip_bind.c | 40 char attr_name[] = "bind"; in bind_usbip() local 46 SYSFS_DRIVERS_NAME, USBIP_HOST_DRV_NAME, attr_name); in bind_usbip() 63 char attr_name[] = "unbind"; in unbind_other() local 111 SYSFS_DRIVERS_NAME, driver, attr_name); in unbind_other()
|
H A D | utils.c | 17 char attr_name[] = "match_busid"; in modify_match_busid() local 26 attr_name); in modify_match_busid()
|
/openbmc/linux/drivers/platform/chrome/ |
H A D | chromeos_acpi.c | 150 static int parse_attr_name(const char *name, char *attr_name, int *attr_num) in parse_attr_name() argument 154 ret = strscpy(attr_name, name, ACPI_ATTR_NAME_LEN + 1); in parse_attr_name() 163 char attr_name[ACPI_ATTR_NAME_LEN + 1]; in chromeos_first_level_attr_show() local 166 ret = parse_attr_name(attr->attr.name, attr_name, &attr_num); in chromeos_first_level_attr_show() 169 return chromeos_acpi_evaluate_method(dev, attr_num, 0, attr_name, buf); in chromeos_first_level_attr_show()
|
/openbmc/linux/arch/alpha/kernel/ |
H A D | pci-sysfs.c | 179 char *suffix, *attr_name; in pci_create_attr() local 211 attr_name = (char *)(attr + res_count); in pci_create_attr() 213 retval = pci_create_one_attr(pdev, num, attr_name, suffix, attr, in pci_create_attr() 219 attr_name += nlen1; in pci_create_attr() 222 return pci_create_one_attr(pdev, num, attr_name, "_dense", attr, 0); in pci_create_attr()
|
/openbmc/linux/drivers/char/mwave/ |
H A D | mwavedd.c | 503 #define mwave_show_function(attr_name, format_string, field) \ 504 static ssize_t mwave_show_##attr_name(struct device *dev, struct device_attribute *attr, char *buf)… 512 #define mwave_dev_rd_attr(attr_name, format_string, field) \ 513 mwave_show_function(attr_name, format_string, field) \ 514 static DEVICE_ATTR(attr_name, S_IRUGO, mwave_show_##attr_name, NULL)
|
/openbmc/linux/fs/smb/server/ |
H A D | vfs.h | 109 struct dentry *dentry, char *attr_name, 112 const struct path *path, const char *attr_name, 118 const struct path *path, char *attr_name,
|
/openbmc/linux/drivers/leds/ |
H A D | leds-bd2802.c | 472 #define BD2802_CONTROL_ATTR(attr_name, name_str) \ argument 473 static ssize_t bd2802_show_##attr_name(struct device *dev, \ 479 ret = sprintf(buf, "0x%02x\n", led->attr_name); \ 483 static ssize_t bd2802_store_##attr_name(struct device *dev, \ 495 led->attr_name = val; \ 499 static struct device_attribute bd2802_##attr_name##_attr = { \ 504 .show = bd2802_show_##attr_name, \ 505 .store = bd2802_store_##attr_name, \
|
/openbmc/linux/lib/kunit/ |
H A D | attributes.c | 230 const char *attr_name, *attr_str; in kunit_print_attr() local 240 attr_name = kunit_attr_list[i].name; in kunit_print_attr() 245 attr_name, attr_str); in kunit_print_attr() 248 KUNIT_INDENT_LEN * test_level, "", attr_name, attr_str); in kunit_print_attr()
|
/openbmc/linux/drivers/platform/x86/hp/hp-bioscfg/ |
H A D | bioscfg.c | 510 void hp_friendly_user_name_update(char *path, const char *attr_name, in hp_friendly_user_name_update() argument 514 snprintf(attr_display, attr_size, "%s - %s", SCHEDULE_POWER_ON, attr_name); in hp_friendly_user_name_update() 516 strscpy(attr_display, attr_name, attr_size); in hp_friendly_user_name_update() 593 char *attr_name; in hp_add_other_attributes() local 605 attr_name = SPM_STR; in hp_add_other_attributes() 610 attr_name = SURE_START_STR; in hp_add_other_attributes() 621 NULL, "%s", attr_name); in hp_add_other_attributes()
|
/openbmc/linux/drivers/power/supply/ |
H A D | power_supply_sysfs.c | 25 char attr_name[MAX_PROP_NAME_LEN + 1]; member 35 .attr_name = #_name "\0", \ 421 sprintf(power_supply_attrs[i].attr_name, "_err_%d", i); in power_supply_init_attrs() 423 str_to_lower(power_supply_attrs[i].attr_name); in power_supply_init_attrs() 428 attr->attr.name = power_supply_attrs[i].attr_name; in power_supply_init_attrs()
|
/openbmc/linux/arch/powerpc/platforms/pseries/ |
H A D | papr_platform_attributes.c | 198 const char *attr_name; member 211 attr->kobj_attr.attr.name = ops_info[index].attr_name; in add_attr() 221 if (!strcmp(ops_info[i].attr_name, "value_desc") && in add_attr_group()
|
/openbmc/qemu/scripts/tracetool/ |
H A D | __init__.py | 384 def try_import(mod_name, attr_name=None, attr_default=None): argument 403 if attr_name is None: 405 return True, getattr(module, str(attr_name), attr_default)
|
/openbmc/linux/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-sysfs.c | 50 struct device_attribute attr_name; member 75 cip = container_of(attr, struct pvr2_sysfs_ctl_item, attr_name); in show_name() 308 sysfs_attr_init(&cip->attr_name.attr); in pvr2_sysfs_add_control() 309 cip->attr_name.attr.name = "name"; in pvr2_sysfs_add_control() 310 cip->attr_name.attr.mode = S_IRUGO; in pvr2_sysfs_add_control() 311 cip->attr_name.show = show_name; in pvr2_sysfs_add_control() 357 cip->attr_gen[acnt++] = &cip->attr_name.attr; in pvr2_sysfs_add_control()
|
/openbmc/linux/tools/usb/usbip/libsrc/ |
H A D | usbip_host_common.c | 214 char attr_name[] = "usbip_sockfd"; in usbip_export_device() local 240 edev->udev.path, attr_name); in usbip_export_device()
|
/openbmc/linux/drivers/extcon/ |
H A D | extcon.c | 224 struct device_attribute attr_name; member 400 attr_name); in cable_name_show() 1122 cable->attrs[0] = &cable->attr_name.attr; in extcon_alloc_cables() 1128 sysfs_attr_init(&cable->attr_name.attr); in extcon_alloc_cables() 1129 cable->attr_name.attr.name = "name"; in extcon_alloc_cables() 1130 cable->attr_name.attr.mode = 0444; in extcon_alloc_cables() 1131 cable->attr_name.show = cable_name_show; in extcon_alloc_cables()
|
/openbmc/linux/arch/powerpc/platforms/powernv/ |
H A D | opal-sensor-groups.c | 113 const char *attr_name; member 124 attr->attr.attr.name = ops_info[index].attr_name; in add_attr()
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_attr_item.c | 725 const void *attr_name; in xlog_recover_attri_commit_pass2() local 779 attr_name = item->ri_buf[i].i_addr; in xlog_recover_attri_commit_pass2() 780 if (!xfs_attr_namecheck(attri_formatp->alfi_attr_filter, attr_name, in xlog_recover_attri_commit_pass2() 827 if (attr_name == NULL || attri_formatp->alfi_name_len == 0) { in xlog_recover_attri_commit_pass2() 840 nv = xfs_attri_log_nameval_alloc(attr_name, in xlog_recover_attri_commit_pass2()
|
/openbmc/linux/include/linux/power/ |
H A D | charger-manager.h | 116 struct device_attribute attr_name; member
|
/openbmc/linux/drivers/misc/cxl/ |
H A D | guest.c | 711 static bool guest_support_attributes(const char *attr_name, in guest_support_attributes() argument 716 if ((strcmp(attr_name, "base_image") == 0) || in guest_support_attributes() 717 (strcmp(attr_name, "load_image_on_perst") == 0) || in guest_support_attributes() 718 (strcmp(attr_name, "perst_reloads_same_image") == 0) || in guest_support_attributes() 719 (strcmp(attr_name, "image_loaded") == 0)) in guest_support_attributes() 723 if ((strcmp(attr_name, "pp_mmio_off") == 0)) in guest_support_attributes()
|