Searched refs:substr (Results 1 - 20 of 20) sorted by relevance

/linux-4.4.14/scripts/selinux/genheaders/
H A Dgenheaders.c47 char *substr; main() local
99 substr = strstr(map->name, needle); main()
100 if (substr && strcmp(substr, needle) == 0) main()
/linux-4.4.14/Documentation/arm/Samsung/
H A Dclksrc-change-registers.awk14 return substr(s, eqat+2, (comat-eqat)-2)
19 return substr(b, 2, length(b)-2)
56 return substr(s, id+2)
/linux-4.4.14/scripts/
H A Dcleanpatch26 $c = substr($li, $i, 1);
63 $c = substr($li,$i,1);
161 $text = substr($line, 1);
H A Dcleanfile26 $c = substr($li, $i, 1);
63 $c = substr($li,$i,1);
H A Dcheckpatch.pl716 $id = substr($lines[0], 0, 12);
717 $desc = substr($lines[0], 41);
968 $res = substr($line, 0, 1);
971 $c = substr($line, $off, 1);
975 if ($sanitise_quote eq '' && substr($line, $off, 2) eq '/*') {
978 substr($res, $off, 2, "$;$;");
982 if ($sanitise_quote eq '*/' && substr($line, $off, 2) eq '*/') {
984 substr($res, $off, 2, "$;$;");
988 if ($sanitise_quote eq '' && substr($line, $off, 2) eq '//') {
991 substr($res, $off, 2, $sanitise_quote);
999 substr($res, $off, 2, 'XX');
1008 substr($res, $off, 1, $c);
1017 substr($res, $off, 1, $;);
1019 substr($res, $off, 1, $;);
1021 substr($res, $off, 1, 'X');
1023 substr($res, $off, 1, $c);
1049 return substr($rawline, $-[0], $+[0] - $-[0]);
1092 if ($level == 0 && substr($blk, $off) =~ /^.\s*#\s*define/) {
1098 $c = substr($blk, $off, 1);
1099 $remainder = substr($blk, $off);
1126 #warn "[" . substr($blk, $soff, $coff - $soff + 1) . "]\n";
1152 if (substr($blk, $off + 1, 1) eq ';') {
1174 my $statement = substr($blk, $soff, $off - $soff + 1);
1175 my $condition = substr($blk, $soff, $coff - $soff + 1);
1581 substr($var, length($res), 1, $av_pend_colon);
1603 substr($var, length($res), 1, $variant);
1616 $cur = substr($cur, length($1));
1856 substr($prefix, -length($file)) = '';
1929 my $string = substr($line, $pos);
1932 } elsif (substr($line, $pos, 1) eq '(') {
1939 return length(expand_tabs(substr($line, 0, $last_openparen))) + 1;
2443 my $ptr = substr($blank, 0, length($utf8_prefix)) . "^";
2651 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
2664 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
2669 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
2980 substr($lines[$realline_next - 1], $off_next) =~ /^\s*$/)) {
3018 substr($ctx, 0, $name_len + 1, '');
3112 substr($s, 0, length($c), '');
3215 $prev_values = substr($curr_values, -1);
3713 my $ctx_before = substr($line, 0, $-[1]);
3768 push(@fix_elements, substr($rawline, $off, length($el)));
3786 my $ca = substr($opline, 0, $off);
3789 $cc = substr($opline, $off + length($elements[$n + 1]));
3819 my $ptr = substr($blank, 0, $off) . "^";
3823 my $op_type = substr($curr_values, $off + 1, 1);
3826 my $opv = $op . substr($curr_vars, $off, 1);
4319 substr($s, 0, length($c), '');
4409 substr($s, 0, length($c), '');
4701 substr($block, 0, length($cond), '');
4741 if (substr($line, 0, $-[0]) =~ /(\}\s*)$/) {
4753 substr($block, 0, length($cond), '');
4771 substr($block, 0, length($cond), '');
4836 $fixedline .= substr($extracted_string, 1) . trim($comma_close);
4878 $string = substr($rawline, $-[1], $+[1] - $-[1]);
5435 substr($s, 0, length($cond), '');
H A Dget_maintainer.pl642 $value_pd++ if (substr($value,-1,1) ne "/");
751 if (substr($pattern, -1) eq "/") {
857 if ($lk_path ne "" && substr($lk_path,length($lk_path)-1,1) ne "/") {
984 $subsystem = substr($subsystem, 0, $output_section_maxlen - 3);
1600 my $sel = substr($nr, 0, 1);
1601 my $str = substr($nr, 1);
2158 (length($first) == 2 && substr($first, -1) eq ".")) ||
2160 (length($middle) == 2 && substr($middle, -1) eq "."))) {
2167 if (substr($name, -1) =~ /[,\.]/) {
2168 $name = substr($name, 0, length($name) - 1);
2169 } elsif (substr($name, -2) =~ /[,\.]"/) {
2170 $name = substr($name, 0, length($name) - 2) . '"';
2173 if (substr($name, 0, 1) =~ /[,\.]/) {
2174 $name = substr($name, 1, length($name) - 1);
2175 } elsif (substr($name, 0, 2) =~ /"[,\.]/) {
2176 $name = '"' . substr($name, 2, length($name) - 2);
H A Dkernel-doc565 if ($output_mode eq "man" && substr($line, 0, 1) eq ".") {
2325 if (substr($prototype, $ix, 1) eq ',') {
2328 substr($prototype, $ix, 1) = ' ';
2537 while ((substr($contents, 0, 1) eq " ") ||
2538 substr($contents, 0, 1) eq "\t") {
2539 $contents = substr($contents, 1);
2591 while ((substr($contents, 0, 1) eq " ") ||
2592 substr($contents, 0, 1) eq "\t") {
2593 $contents = substr($contents, 1);
H A Dnamespace.pl250 $comment .= substr($_, 43);
324 $name = substr($name, 10);
/linux-4.4.14/drivers/s390/block/
H A Ddasd_proc.c39 char *substr; dasd_devices_show() local
70 substr = (device->features & DASD_FEATURE_READONLY) ? "(ro)" : " "; dasd_devices_show()
71 seq_printf(m, "%4s: ", substr); dasd_devices_show()
/linux-4.4.14/security/selinux/include/
H A Dclassmap.h17 * and doesn't contain more than one substr of "socket".
/linux-4.4.14/include/linux/
H A Dmod_devicetable.h475 char substr[79]; member in struct:dmi_strmatch
492 #define DMI_MATCH(a, b) { .slot = a, .substr = b }
493 #define DMI_EXACT_MATCH(a, b) { .slot = a, .substr = b, .exact_match = 1 }
/linux-4.4.14/fs/nfs/
H A Dnfs4idmap.c499 substring_t substr; nfs_idmap_prepare_message() local
503 token = match_token(desc, nfs_idmap_tokens, &substr); nfs_idmap_prepare_message()
510 ret = match_strlcpy(im->im_name, &substr, IDMAP_NAMESZ); nfs_idmap_prepare_message()
517 ret = match_int(&substr, &im->im_id); nfs_idmap_prepare_message()
/linux-4.4.14/sound/drivers/
H A Daloop.c1009 int err, dev, substr, substr_count, idx; loopback_mixer_new() local
1016 for (substr = 0; substr < substr_count; substr++) { loopback_mixer_new()
1017 setup = &loopback->setup[substr][dev]; loopback_mixer_new()
1030 kctl->id.subdevice = substr; loopback_mixer_new()
/linux-4.4.14/Documentation/video4linux/
H A Dextract_xc3028.pl110 printf "%02x ",ord(substr($out,$i,1)) if ($debug);
125 printf "%02x ",ord(substr($out,$i,1)) if ($debug);
131 my $size = ord(substr($out,$i,1))*256+ord(substr($out,$i+1,1));
132 syswrite(OUTFILE, substr($out,$i+1,1));
133 syswrite(OUTFILE, substr($out,$i,1));
137 syswrite(OUTFILE, substr($out,$j+$i,1));
/linux-4.4.14/drivers/platform/x86/
H A Deeepc-wmi.c141 model = (char *)dmi->matches[1].substr; dmi_matched()
/linux-4.4.14/arch/x86/tools/
H A Dgen-insn-attr-x86.awk260 idx = "0x" substr($1, 1, index($1,":") - 1)
/linux-4.4.14/tools/perf/util/intel-pt-decoder/
H A Dgen-insn-attr-x86.awk260 idx = "0x" substr($1, 1, index($1,":") - 1)
/linux-4.4.14/Documentation/dvb/
H A Dget_dvb_firmware922 $len=ord(substr($buf,0,1));
923 print OUTFILE substr($buf,0,1);
924 print OUTFILE substr($buf,2,$len+3);
/linux-4.4.14/drivers/firmware/
H A Ddmi_scan.c748 strstr(dmi_ident[s], dmi->matches[i].substr)) dmi_matches()
751 !strcmp(dmi_ident[s], dmi->matches[i].substr)) dmi_matches()
/linux-4.4.14/scripts/mod/
H A Dfile2alias.c995 (*matches)[j].substr); do_dmi_entry()

Completed in 1271 milliseconds