/freebsd/sbin/nvmecontrol/modules/wdc/ |
H A D | wdc.c | 120 char *walker; in wdc_append_serial_name() local 127 walker = sn + NVME_SERIAL_NUMBER_LENGTH - 1; in wdc_append_serial_name() 128 while (walker > sn && *walker == ' ') in wdc_append_serial_name() 129 walker--; in wdc_append_serial_name() 130 *++walker = '\0'; in wdc_append_serial_name() 540 uint8_t *walker = buf; in print_hgst_info_self_test() local 546 code = le16dec(walker); in print_hgst_info_self_test() 547 walker += 2; in print_hgst_info_self_test() 548 walker++; /* Ignore fixed flags */ in print_hgst_info_self_test() 549 if (*walker == 0) /* Last entry is zero length */ in print_hgst_info_self_test() [all …]
|
/freebsd/sbin/nvmecontrol/modules/intel/ |
H A D | intel.c | 88 const char *walker = buf; in print_intel_read_write_lat_log() 91 printf("Major: %d\n", le16dec(walker + 0)); in print_intel_read_write_lat_log() 92 printf("Minor: %d\n", le16dec(walker + 2)); in print_intel_read_write_lat_log() 94 printf("%4dus-%4dus: %ju\n", i * 32, (i + 1) * 32, (uintmax_t)le32dec(walker + 4 + i * 4)); in print_intel_read_write_lat_log() 96 printf("%4dms-%4dms: %ju\n", i, i + 1, (uintmax_t)le32dec(walker + 132 + i * 4)); in print_intel_read_write_lat_log() 98 printf("%4dms-%4dms: %ju\n", i * 32, (i + 1) * 32, (uintmax_t)le32dec(walker + 256 + i * 4)); 125 uint8_t *walker = buf; in print_intel_add_smart() 126 uint8_t *end = walker + 150; in print_intel_add_smart() 151 * walker[0] = Key in print_intel_add_smart() 152 * walker[ in print_intel_add_smart() 85 const char *walker = buf; print_intel_read_write_lat_log() local 122 uint8_t *walker = buf; print_intel_add_smart() local [all...] |
/freebsd/sbin/nvmecontrol/modules/samsung/ |
H A D | samsung.c | 70 uint8_t *walker = buf; in print_samsung_extended_smart() local 71 uint8_t *end = walker + 150; in print_samsung_extended_smart() 102 while (walker < end) { in print_samsung_extended_smart() 103 name = kv_lookup(kv, nitems(kv), *walker); in print_samsung_extended_smart() 104 normalized = walker[3]; in print_samsung_extended_smart() 105 raw = le48dec(walker + 5); in print_samsung_extended_smart() 106 switch (*walker){ in print_samsung_extended_smart() 111 le16dec(walker), name, normalized, in print_samsung_extended_smart() 112 le16dec(walker + 5), le16dec(walker + 7), le16dec(walker + 9)); in print_samsung_extended_smart() 116 le16dec(walker), name, normalized, in print_samsung_extended_smart() [all …]
|
/freebsd/usr.sbin/efivar/ |
H A D | efiutil.c | 123 uint8_t *walker = data; in efi_print_load_option() local 138 attr = le32dec(walker); in efi_print_load_option() 139 walker += sizeof(attr); in efi_print_load_option() 141 fplen = le16dec(walker); in efi_print_load_option() 142 walker += sizeof(fplen); in efi_print_load_option() 144 descr = (efi_char *)(intptr_t)(void *)walker; in efi_print_load_option() 146 walker += (len + 1) * sizeof(efi_char); in efi_print_load_option() 147 if (walker > ep) in efi_print_load_option() 150 dp = (efidp)walker; in efi_print_load_option() 151 walker += fplen; in efi_print_load_option() [all …]
|
/freebsd/lib/libefivar/ |
H A D | efivar-dp-xlate.c | 131 const_efidp media, file, walker; in efi_hd_to_unix() local 140 walker = media = dp; in efi_hd_to_unix() 148 if (!ValidLen(walker)) in efi_hd_to_unix() 150 walker = (const_efidp)NextDevicePathNode(walker); in efi_hd_to_unix() 151 if ((uintptr_t)walker - (uintptr_t)dp > MAX_DP_SANITY) in efi_hd_to_unix() 153 if (DevicePathType(walker) == MEDIA_DEVICE_PATH && in efi_hd_to_unix() 154 DevicePathSubType(walker) == MEDIA_FILEPATH_DP) in efi_hd_to_unix() 155 file = walker; in efi_hd_to_unix() 156 else if (DevicePathType(walker) == MEDIA_DEVICE_PATH && in efi_hd_to_unix() 157 DevicePathType(walker) == END_DEVICE_PATH_TYPE) in efi_hd_to_unix() [all …]
|
/freebsd/usr.sbin/efidp/ |
H A D | efidp.c | 140 char *walker; in unix_to_efi() local 145 walker= trim(buffer); in unix_to_efi() 148 rv = efivar_unix_path_to_device_path(walker, &dp); in unix_to_efi() 151 warn("Can't convert '%s' to efi", walker); in unix_to_efi() 156 warnx("Can't format dp for '%s'", walker); in unix_to_efi() 170 char *walker, *dev, *relpath, *abspath; in efi_to_unix() local 175 walker= trim(buffer); in efi_to_unix() 176 efidp_parse_device_path(walker, dp, sizeof(dpbuf)); in efi_to_unix() 182 warn("Can't convert '%s' to unix", walker); in efi_to_unix() 219 char *walker; in parse() local [all …]
|
/freebsd/sys/arm/arm/ |
H A D | machdep_boot.c | 188 struct arm_lbabi_tag *walker; in linux_parse_boot_param() local 216 walker = (struct arm_lbabi_tag *)abp->abp_r2; in linux_parse_boot_param() 218 if (ATAG_TAG(walker) != ATAG_CORE) in linux_parse_boot_param() 221 atag_list = walker; in linux_parse_boot_param() 222 while (ATAG_TAG(walker) != ATAG_NONE) { in linux_parse_boot_param() 223 switch (ATAG_TAG(walker)) { in linux_parse_boot_param() 227 physmem_hardware_region(walker->u.tag_mem.start, in linux_parse_boot_param() 228 walker->u.tag_mem.size); in linux_parse_boot_param() 233 serial = walker->u.tag_sn.high; in linux_parse_boot_param() 235 serial |= walker->u.tag_sn.low; in linux_parse_boot_param() [all …]
|
/freebsd/usr.sbin/kldxref/ |
H A D | kldxref.c | 266 const char *walker, *ep; in parse_pnp_list() local 275 walker = desc; in parse_pnp_list() 283 while (walker < ep) { in parse_pnp_list() 284 colon = strchr(walker, ':'); in parse_pnp_list() 285 semi = strchr(walker, ';'); in parse_pnp_list() 288 if (colon - walker > sizeof(type)) in parse_pnp_list() 290 strncpy(type, walker, colon - walker); in parse_pnp_list() 291 type[colon - walker] = '\0'; in parse_pnp_list() 297 walker = semi + 1; in parse_pnp_list() 299 while (walker < ep && isspace(*walker)) in parse_pnp_list() [all …]
|
/freebsd/stand/kboot/kboot/ |
H A D | seg.c | 225 const char *walker; in parse_line() local 234 walker = line; in parse_line() 235 start = strtoull(walker, &next, 16); in parse_line() 236 if (start == ULLONG_MAX || walker == next) in parse_line() 238 walker = next; in parse_line() 239 if (*walker != '-') in parse_line() 241 walker++; in parse_line() 242 end = strtoull(walker, &next, 16); in parse_line() 243 if (end == ULLONG_MAX || walker == next) in parse_line() 245 walker = next; in parse_line() [all …]
|
H A D | main.c | 160 char *walker, *ep; in kboot_rsdp_from_efi() local 165 walker = buffer; in kboot_rsdp_from_efi() 166 while (walker < ep) { in kboot_rsdp_from_efi() 167 if (strncmp("ACPI20=", walker, 7) == 0) in kboot_rsdp_from_efi() 168 return((vm_offset_t)strtoull(walker + 7, NULL, 0)); in kboot_rsdp_from_efi() 169 if (strncmp("ACPI=", walker, 5) == 0) in kboot_rsdp_from_efi() 170 return((vm_offset_t)strtoull(walker + 5, NULL, 0)); in kboot_rsdp_from_efi() 171 walker += strcspn(walker, "\n") + 1; in kboot_rsdp_from_efi() 257 char *walker, *ep; in kboot_find_smbios() local 262 walker = buffer; in kboot_find_smbios() [all …]
|
/freebsd/sbin/nvmecontrol/ |
H A D | comnd.c | 72 struct cmd *walker; in gen_usage() local 75 SLIST_FOREACH(walker, &t->subcmd, link) { in gen_usage() 76 print_usage(walker); in gen_usage() 84 struct cmd *walker; in cmd_dispatch() local 93 SLIST_FOREACH(walker, &t->subcmd, link) { in cmd_dispatch() 94 if (strcmp(argv[1], walker->name) == 0) { in cmd_dispatch() 95 walker->fn(walker, argc-1, &argv[1]); in cmd_dispatch() 318 struct cmd *walker, *last; in cmd_register() local 325 SLIST_FOREACH(walker, &up->subcmd, link) { in cmd_register() 326 if (strcmp(walker->name, cmd->name) > 0) in cmd_register() [all …]
|
/freebsd/sbin/devd/ |
H A D | devd.cc | 755 char *walker; in chop_var() local 759 walker = lhs = buffer; in chop_var() 760 while (is_id_char(*walker)) in chop_var() 761 walker++; in chop_var() 762 if (*walker != '=') in chop_var() 764 walker++; // skip = in chop_var() 765 if (*walker == '"') { in chop_var() 766 walker++; // skip " in chop_var() 767 rhs = walker; in chop_var() 768 while (*walker && *walker != '"') { in chop_var() [all …]
|
/freebsd/usr.sbin/efibootmgr/ |
H A D | efibootmgr.c | 752 uint8_t *walker = data; in print_loadopt_str() local 762 attr = le32dec(walker); in print_loadopt_str() 763 walker += sizeof(attr); in print_loadopt_str() 765 fplen = le16dec(walker); in print_loadopt_str() 766 walker += sizeof(fplen); in print_loadopt_str() 768 descr = (efi_char *)(intptr_t)(void *)walker; in print_loadopt_str() 770 walker += (len + 1) * sizeof(efi_char); in print_loadopt_str() 771 if (walker > ep) in print_loadopt_str() 774 dp = (efidp)walker; in print_loadopt_str() 775 walker += fplen; in print_loadopt_str() [all …]
|
/freebsd/lib/libdevinfo/ |
H A D | devinfo.c | 177 char *name, *walker, *ep; in devinfo_init_devices() local 235 walker = udev.dv_fields; in devinfo_init_devices() 236 ep = walker + sizeof(udev.dv_fields); in devinfo_init_devices() 243 dd->dd_dev.x = dd->x = strdup(walker); \ in devinfo_init_devices() 248 if (walker + strnlen(walker, ep - walker) >= ep) { \ in devinfo_init_devices() 252 walker += strlen(walker) + 1; in devinfo_init_devices()
|
/freebsd/sbin/devmatch/ |
H A D | devmatch.c | 253 void *ptr, *walker; in search_hints() local 256 walker = hints; in search_hints() 257 getint(&walker); in search_hints() 262 while (walker < hints_end) { in search_hints() 263 len = getint(&walker); in search_hints() 264 ival = getint(&walker); in search_hints() 265 ptr = walker; in search_hints() 431 walker = (void *)(len - sizeof(int) + (intptr_t)walker); in search_hints()
|
/freebsd/stand/libsa/ |
H A D | uuid_to_string.c | 43 char *walker = *buf; in tohex() local 47 walker[i] = hexstr[val & 0xf]; in tohex() 50 *buf = walker + len; in tohex()
|
/freebsd/sys/arm/ti/twl/ |
H A D | twl_vreg.c | 860 const struct twl_regulator *walker; in twl_vreg_add_regulators() local 868 walker = ®ulators[0]; in twl_vreg_add_regulators() 869 while (walker->name != NULL) { in twl_vreg_add_regulators() 871 entry = twl_vreg_add_regulator(sc, walker->name, walker->subdev, in twl_vreg_add_regulators() 872 walker->regbase, walker->fixedvoltage, in twl_vreg_add_regulators() 873 walker->voltages, walker->num_voltages); in twl_vreg_add_regulators() 877 walker++; in twl_vreg_add_regulators()
|
H A D | twl_clks.c | 484 const struct twl_clock *walker; in twl_clks_add_clocks() local 495 walker = &clks[0]; in twl_clks_add_clocks() 496 while (walker->name != NULL) { in twl_clks_add_clocks() 498 entry = twl_clks_add_clock(sc, walker->name, walker->subdev, in twl_clks_add_clocks() 499 walker->regbase); in twl_clks_add_clocks() 503 walker++; in twl_clks_add_clocks()
|
/freebsd/stand/efi/loader/ |
H A D | main.c | 123 EFI_HANDLE *hin, *hin_end, *walker; in has_keyboard() local 151 for (walker = hin; walker < hin_end; walker++) { in has_keyboard() 152 status = OpenProtocolByHandle(*walker, &devid, (void **)&path); in has_keyboard() 355 char *walker, *ep; in match_boot_info() local 386 walker = boot_info; in match_boot_info() 387 ep = walker + bisz; in match_boot_info() 388 memcpy(&attr, walker, sizeof(attr)); in match_boot_info() 389 walker += sizeof(attr); in match_boot_info() 390 memcpy(&fplen, walker, sizeof(fplen)); in match_boot_info() 391 walker += sizeof(fplen); in match_boot_info() [all …]
|
/freebsd/usr.bin/systat/ |
H A D | iolat.c | 269 char *walker, *dev, *opstr; in walk_sysctl() local 288 walker = name + strlen(CAM_BASE) + 1; in walk_sysctl() 289 dev = strsep(&walker, "."); in walk_sysctl() 290 unit = (int)strtol(strsep(&walker, "."), NULL, 10); in walk_sysctl() 291 strsep(&walker, "."); in walk_sysctl() 292 opstr = strsep(&walker, "."); in walk_sysctl()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | LLVMConventionsChecker.cpp | 138 StringRefCheckerVisitor walker(D, BR, Checker); in CheckStringRefAssignedTemporary() local 139 walker.Visit(D->getBody()); in CheckStringRefAssignedTemporary() 236 ASTFieldVisitor walker(R, BR, Checker); in CheckASTMemory() local 237 walker.Visit(I); in CheckASTMemory()
|
H A D | ObjCContainersASTChecker.cpp | 165 WalkAST walker(BR, this, Mgr.getAnalysisDeclContext(D)); in checkASTCodeBody() local 166 walker.Visit(D->getBody()); in checkASTCodeBody()
|
H A D | CStringSyntaxChecker.cpp | 284 WalkAST walker(this, BR, Mgr.getAnalysisDeclContext(D)); in checkASTCodeBody() local 285 walker.Visit(D->getBody()); in checkASTCodeBody()
|
/freebsd/sys/arm/ti/omap4/ |
H A D | omap4_prcm_clks.c | 458 struct omap4_clk_details *walker; in omap4_clk_details() local 460 for (walker = g_omap4_clk_details; walker->id != INVALID_CLK_IDENT; walker++) { in omap4_clk_details() 461 if (id == walker->id) in omap4_clk_details() 462 return (walker); in omap4_clk_details()
|
/freebsd/stand/common/ |
H A D | module.c | 1335 void *ptr, *walker, *hints_end; in devmatch_search_hints() 1342 walker = mdp->d_hints; in devmatch_search_hints() 1343 hints_end = walker + mdp->d_hintsz; in devmatch_search_hints() 1344 while (walker < hints_end && !found) { in devmatch_search_hints() 1345 len = getint(&walker); in devmatch_search_hints() 1346 ival = getint(&walker); in devmatch_search_hints() 1347 ptr = walker; in devmatch_search_hints() 1488 walker = (void *)(len - sizeof(int) + (intptr_t)walker); in devmatch_search_hints() 1334 void *ptr, *walker, *hints_end; devmatch_search_hints() local
|