/linux-master/tools/perf/util/ |
H A D | record.c | 221 bool evlist__can_select_event(struct evlist *evlist, const char *str) argument 234 err = parse_event(temp_evlist, str); 271 int record__parse_freq(const struct option *opt, const char *str, int unset __maybe_unused) argument 276 if (!str) 279 if (strcasecmp(str, "max") == 0) { 286 freq = atoi(str);
|
H A D | pmus.c | 43 int pmu_name_len_no_suffix(const char *str, unsigned long *num) argument 47 orig_len = len = strlen(str); 50 if (!strstarts(str, "uncore_")) 57 while (len > 0 && isdigit(str[len - 1])) 60 if (len > 0 && len != orig_len && str[len - 1] == '_') { 62 *num = strtoul(&str[len], NULL, 10); 330 const struct perf_pmu *perf_pmus__pmu_for_pmu_filter(const char *str) argument 335 if (!strcmp(pmu->name, str)) 339 if (!strcmp(pmu->name + 7, str)) 344 if (!strcmp(pmu->name + 4, str)) [all...] |
H A D | parse-events.y | 75 %type <str> PE_RAW 76 %type <str> PE_NAME 77 %type <str> PE_LEGACY_CACHE 78 %type <str> PE_MODIFIER_BP 79 %type <str> PE_EVENT_NAME 80 %type <str> PE_DRV_CFG_TERM 81 %type <str> name_or_raw 82 %destructor { free ($$); } <str> 108 %destructor { free ($$.str); } <hardware_term> 112 char *str; [all...] |
/linux-master/arch/um/drivers/ |
H A D | mconsole_kern.c | 290 static int mem_config(char *str, char **error_out) argument 296 if (str[0] != '=') { 301 str++; 302 if (str[0] == '-') 304 else if (str[0] == '+') { 312 str++; 313 diff = memparse(str, &ret); 383 static int mem_get_config(char *name, char *str, int size, char **error_out) argument 389 CONFIG_CHUNK(str, size, len, buf, 1); 394 static int mem_id(char **str, in argument 819 mconsole_setup(char *str) argument [all...] |
/linux-master/fs/hfsplus/ |
H A D | catalog.c | 44 hfsplus_btree_key *key, u32 parent, const struct qstr *str) 50 str->name, str->len); 178 u32 parentid, const struct qstr *str) 186 str->name, str->len); 254 const struct qstr *str, struct inode *inode) 263 str->name, cnid, inode->i_nlink); 280 dir->i_ino, str); 296 err = hfsplus_cat_build_key(sb, fd.search_key, dir->i_ino, str); 43 hfsplus_cat_build_key(struct super_block *sb, hfsplus_btree_key *key, u32 parent, const struct qstr *str) argument 176 hfsplus_fill_cat_thread(struct super_block *sb, hfsplus_cat_entry *entry, int type, u32 parentid, const struct qstr *str) argument 253 hfsplus_create_cat(u32 cnid, struct inode *dir, const struct qstr *str, struct inode *inode) argument 330 hfsplus_delete_cat(u32 cnid, struct inode *dir, const struct qstr *str) argument [all...] |
/linux-master/drivers/firmware/efi/ |
H A D | efi.c | 98 static int __init parse_efi_cmdline(char *str) argument 100 if (!str) { 105 if (parse_option_str(str, "debug")) 108 if (parse_option_str(str, "noruntime")) 111 if (parse_option_str(str, "runtime")) 114 if (parse_option_str(str, "nosoftreserve")) 132 char *str = buf; local 138 str += sprintf(str, "ACPI20=0x%lx\n", efi.acpi20); 140 str 255 efivar_ssdt_setup(char *str) argument [all...] |
H A D | esrt.c | 108 char *str = buf; local 110 efi_guid_to_str(&entry->esre.esre1->fw_class, str); 111 str += strlen(str); 112 str += sprintf(str, "\n"); 114 return str - buf;
|
/linux-master/drivers/net/wireless/microchip/wilc1000/ |
H A D | wlan_cfg.c | 96 static int wilc_wlan_cfg_set_str(u8 *frame, u32 offset, u16 id, u8 *str, argument 104 if (str && size != 0) 105 memcpy(&frame[offset + 4], str, size); 184 memcpy(cfg->s[i].str, &info[2], 306 u16 size = get_unaligned_le16(cfg->s[i].str); 309 memcpy(buffer, &cfg->s[i].str[2], size); 386 wl->cfg.s[i].str = str_vals->firmware_version; 389 wl->cfg.s[i].str = str_vals->mac_address; 392 wl->cfg.s[i].str = str_vals->assoc_rsp; 395 wl->cfg.s[i].str [all...] |
/linux-master/drivers/char/ |
H A D | apm-emulation.c | 687 static int __init apm_setup(char *str) argument 689 while ((str != NULL) && (*str != '\0')) { 690 if (strncmp(str, "off", 3) == 0) 692 if (strncmp(str, "on", 2) == 0) 694 str = strchr(str, ','); 695 if (str != NULL) 696 str += strspn(str, ", \ [all...] |
/linux-master/scripts/dtc/libfdt/ |
H A D | libfdt.h | 1104 * @str: String to search for 1112 int fdt_stringlist_contains(const char *strlist, int listlen, const char *str); 1513 #define fdt_property_string(fdt, name, str) \ 1514 fdt_property(fdt, name, str, strlen(str)+1) 1755 * @str: string value for the property 1778 #define fdt_setprop_string(fdt, nodeoffset, name, str) \ 1779 fdt_setprop((fdt), (nodeoffset), (name), (str), strlen(str)+1) 1933 * @str [all...] |
/linux-master/drivers/media/test-drivers/vimc/ |
H A D | vimc-sensor.c | 201 char str[100]; local 211 snprintf(str, sizeof(str), 217 tpg_gen_text(&vsensor->tpg, basep, line++ * line_height, 16, str); 218 snprintf(str, sizeof(str), "sensor size: %dx%d", 221 tpg_gen_text(&vsensor->tpg, basep, line++ * line_height, 16, str); 228 snprintf(str, sizeof(str), "%02d:%02d:%02d:%03d", 233 tpg_gen_text(&vsensor->tpg, basep, line++ * line_height, 16, str); [all...] |
/linux-master/drivers/net/ethernet/broadcom/asp2/ |
H A D | bcmasp_ethtool.c | 25 #define STAT_BCMASP_SOFT_MIB(str) { \ 26 .stat_string = str, \ 30 #define STAT_BCMASP_OFFSET(str, _type, offset) { \ 31 .stat_string = str, \ 36 #define STAT_BCMASP_RX_EDPKT(str, offset) \ 37 STAT_BCMASP_OFFSET(str, BCMASP_STAT_RX_EDPKT, offset) 38 #define STAT_BCMASP_RX_CTRL(str, offset) \ 39 STAT_BCMASP_OFFSET(str, BCMASP_STAT_RX_CTRL, offset) 40 #define STAT_BCMASP_RX_CTRL_PER_INTF(str, offset) \ 41 STAT_BCMASP_OFFSET(str, BCMASP_STAT_RX_CTRL_PER_INT [all...] |
/linux-master/drivers/xen/xen-pciback/ |
H A D | xenbus.c | 209 char str[64]; local 211 len = snprintf(str, sizeof(str), "vdev-%d", devid); 212 if (unlikely(len >= (sizeof(str) - 1))) { 218 err = xenbus_printf(XBT_NIL, pdev->xdev->nodename, str, 307 char str[64]; local 320 len = snprintf(str, sizeof(str), "root-%d", i); 321 if (unlikely(len >= (sizeof(str) - 1))) { 327 str, " [all...] |
/linux-master/tools/perf/tests/shell/lib/ |
H A D | perf_metric_validation.py | 11 def __init__(self, metric: list[str], wl: str, value: list[float], low: float, up=float('nan'), description=str()): 19 def __repr__(self) -> str: 42 self.collectlist: str = metrics 76 def read_json(self, filename: str) -> dict: 105 @param lb: str/float, lower bound 106 @param ub: str/float, upper bound 107 @param error: float/str, error tolerance 117 elif isinstance(bound, str) [all...] |
/linux-master/kernel/ |
H A D | reboot.c | 1012 static int __init reboot_setup(char *str) argument 1024 if (!strncmp(str, "panic_", 6)) { 1026 str += 6; 1031 switch (*str) { 1049 str += str[1] == 'm' && str[2] == 'p' ? 3 : 1; 1051 if (isdigit(str[0])) { 1052 int cpu = simple_strtoul(str, NULL, 0); 1075 reboot_type = *str; [all...] |
/linux-master/drivers/greybus/ |
H A D | manifest.c | 393 char *str; local 396 str = gb_string_get(intf, desc_intf->vendor_stringid); 397 if (IS_ERR(str)) 399 control->vendor_string = str; 401 str = gb_string_get(intf, desc_intf->product_stringid); 402 if (IS_ERR(str)) 404 control->product_string = str;
|
/linux-master/arch/arm/mach-tegra/ |
H A D | reset-handler.S | 58 str r1, [r2, r3] 69 str r1, [r0] 241 str lr, [r7, #PMC_SCRATCH41] 252 str r1, [r7, #0x340] @ CLK_RST_CPU_CMPLX_SET 270 str r0, [r6, +r2] 274 str r0, [r6, +r1] 284 str r0, [r7, #348] @ CLK_CPU_CMPLX_SET
|
/linux-master/arch/powerpc/kernel/ |
H A D | rtasd.c | 116 char * str = "RTAS event"; local 120 error_log_cnt, str); 147 error_log_cnt, str); 563 static int __init surveillance_setup(char *str) argument 571 if (get_option(&str,&i)) { 580 static int __init rtasmsgs_setup(char *str) argument 582 return (kstrtobool(str, &full_rtas_msgs) == 0);
|
/linux-master/drivers/power/supply/ |
H A D | max1721x_battery.c | 227 uint16_t reg, uint8_t nr, char *str) 231 if (!str || !(reg == MAX1721X_REG_MFG_STR || 238 *str++ = val>>8 & 0x00FF; 239 *str++ = val & 0x00FF; 245 static int get_sn_string(struct max17211_device_info *info, char *str) argument 249 if (!str) 259 snprintf(str, 13, "%04X%04X%04X", val[0], val[1], val[2]); 226 get_string(struct max17211_device_info *info, uint16_t reg, uint8_t nr, char *str) argument
|
/linux-master/arch/s390/mm/ |
H A D | cmm.c | 238 char *str; local 240 for (str = cp; *str == ' ' || *str == '\t'; str++) 242 *endp = str; 243 return str != cp;
|
/linux-master/drivers/mtd/devices/ |
H A D | phram.c | 232 static inline void kill_final_newline(char *str) argument 234 char *newline = strrchr(str, '\n'); 261 char buf[64 + 20 + 20 + 20], *str = buf; local 273 strcpy(str, val); 274 kill_final_newline(str); 277 token[i] = strsep(&str, ","); 279 if (str)
|
/linux-master/tools/testing/selftests/arm64/fp/ |
H A D | za-test.S | 67 0: str w3, [x0], #4 109 str x2, [sp, #0x10] 157 str x0, [x2, #ucontext_regs + 8 * 23] 174 str x0, [x2, #ucontext_regs + 8 * 23] 203 str x30, [sp, #-((sa_sz + 15) / 16 * 16 + 16)]! 215 str w6, [x1, #sa_flags] 216 str x5, [x1, #sa_handler]
|
/linux-master/drivers/s390/char/ |
H A D | zcore.c | 174 static char str[18]; local 177 snprintf(str, sizeof(str), "%lx\n", sclp.hsa_size); 179 snprintf(str, sizeof(str), "0\n"); 180 return simple_read_from_buffer(buf, count, ppos, str, strlen(str));
|
/linux-master/arch/s390/kernel/ |
H A D | traps.c | 53 void do_report_trap(struct pt_regs *regs, int si_signo, int si_code, char *str) argument 60 die(regs, str); 64 static void do_trap(struct pt_regs *regs, int si_signo, int si_code, char *str) argument 66 if (notify_die(DIE_TRAP, str, regs, 0, 69 do_report_trap(regs, si_signo, si_code, str); 93 #define DO_ERROR_INFO(name, signr, sicode, str) \ 96 do_trap(regs, signr, sicode, str); \
|
/linux-master/drivers/net/ethernet/intel/ice/devlink/ |
H A D | devlink_port.c | 53 const char *str; local 85 str = "Active"; 87 str = "Pending"; 89 str = ""; 92 "%-8s", str); 99 str = ice_devlink_port_opt_speed_str(speed); 101 "%3s ", str);
|