Home
last modified time | relevance | path

Searched refs:pat (Results 1 – 25 of 78) sorted by relevance

1234

/linux-6.6.21/tools/perf/util/
Dstring.c72 static bool __match_charclass(const char *pat, char c, const char **npat) in __match_charclass() argument
76 if (*pat == '!') { in __match_charclass()
78 pat++; in __match_charclass()
80 if (*pat++ == c) /* First character is special */ in __match_charclass()
83 while (*pat && *pat != ']') { /* Matching */ in __match_charclass()
84 if (*pat == '-' && *(pat + 1) != ']') { /* Range */ in __match_charclass()
85 if (*(pat - 1) <= c && c <= *(pat + 1)) in __match_charclass()
87 if (*(pat - 1) > *(pat + 1)) in __match_charclass()
89 pat += 2; in __match_charclass()
90 } else if (*pat++ == c) in __match_charclass()
[all …]
Dutil.c120 static bool match_pat(char *file, const char **pat) in match_pat() argument
124 if (!pat) in match_pat()
127 while (pat[i]) { in match_pat()
128 if (strglobmatch(file, pat[i])) in match_pat()
151 static int rm_rf_depth_pat(const char *path, int depth, const char **pat) in rm_rf_depth_pat() argument
178 if (!match_pat(d->d_name, pat)) { in rm_rf_depth_pat()
194 ret = depth ? rm_rf_depth_pat(namebuf, depth - 1, pat) : 0; in rm_rf_depth_pat()
209 const char *pat[] = { in rm_rf_a_kcore_dir() local
218 return rm_rf_depth_pat(kcore_dir_path, 0, pat); in rm_rf_a_kcore_dir()
223 const char *pat[] = { in kcore_dir_filter() local
[all …]
Dstring2.h15 bool strglobmatch(const char *str, const char *pat);
16 bool strglobmatch_nocase(const char *str, const char *pat);
17 bool strlazymatch(const char *str, const char *pat);
/linux-6.6.21/drivers/video/fbdev/core/
Dsysfillrect.c26 unsigned long pat, unsigned n, int bits) in bitfill_aligned() argument
40 *dst = comp(pat, *dst, first); in bitfill_aligned()
46 *dst = comp(pat, *dst, first); in bitfill_aligned()
53 memset_l(dst, pat, n); in bitfill_aligned()
58 *dst = comp(pat, *dst, last); in bitfill_aligned()
72 unsigned long pat, int left, int right, unsigned n, int bits) in bitfill_unaligned() argument
86 *dst = comp(pat, *dst, first); in bitfill_unaligned()
91 *dst = comp(pat, *dst, first); in bitfill_unaligned()
93 pat = pat << left | pat >> right; in bitfill_unaligned()
100 *dst++ = pat; in bitfill_unaligned()
[all …]
Dcfbfillrect.c36 unsigned long pat, unsigned n, int bits, u32 bswapmask) in bitfill_aligned() argument
50 FB_WRITEL(comp(pat, FB_READL(dst), first), dst); in bitfill_aligned()
56 FB_WRITEL(comp(pat, FB_READL(dst), first), dst); in bitfill_aligned()
64 FB_WRITEL(pat, dst++); in bitfill_aligned()
65 FB_WRITEL(pat, dst++); in bitfill_aligned()
66 FB_WRITEL(pat, dst++); in bitfill_aligned()
67 FB_WRITEL(pat, dst++); in bitfill_aligned()
68 FB_WRITEL(pat, dst++); in bitfill_aligned()
69 FB_WRITEL(pat, dst++); in bitfill_aligned()
70 FB_WRITEL(pat, dst++); in bitfill_aligned()
[all …]
Dfbcon_rotate.h23 static inline int pattern_test_bit(u32 x, u32 y, u32 pitch, const char *pat) in pattern_test_bit() argument
27 pat +=index; in pattern_test_bit()
28 return (*pat) & (0x80 >> bit); in pattern_test_bit()
31 static inline void pattern_set_bit(u32 x, u32 y, u32 pitch, char *pat) in pattern_set_bit() argument
35 pat += index; in pattern_set_bit()
37 (*pat) |= 0x80 >> bit; in pattern_set_bit()
/linux-6.6.21/lib/
Dglob.c40 bool __pure glob_match(char const *pat, char const *str) in glob_match() argument
57 unsigned char d = *pat++; in glob_match()
65 if (*pat == '\0') /* Optimize trailing * case */ in glob_match()
67 back_pat = pat; in glob_match()
71 bool match = false, inverted = (*pat == '!'); in glob_match()
72 char const *class = pat + inverted; in glob_match()
100 pat = class; in glob_match()
104 d = *pat++; in glob_match()
117 pat = back_pat; in glob_match()
Dglobtest.c15 char const *pat, *str; member
19 static bool __pure __init test(char const *pat, char const *str, bool expected) in test() argument
21 bool match = glob_match(pat, str); in test()
39 printk(message, pat, str, mismatch + 3*match); in test()
145 char const *pat = p; in glob_init() local
148 successes += test(pat, p, expected); in glob_init()
/linux-6.6.21/drivers/isdn/mISDN/
Ddsp_tones.c378 struct pattern *pat; in dsp_tone_copy() local
388 pat = (struct pattern *)tone->pattern; in dsp_tone_copy()
398 if (!pat->seq[index]) { in dsp_tone_copy()
403 if (count < pat->seq[index]) in dsp_tone_copy()
408 count -= pat->seq[index]; in dsp_tone_copy()
412 start = count % (*(pat->siz[index])); in dsp_tone_copy()
414 if (num + count > pat->seq[index]) in dsp_tone_copy()
415 num = pat->seq[index] - count; in dsp_tone_copy()
416 if (num + start > (*(pat->siz[index]))) in dsp_tone_copy()
417 num = (*(pat->siz[index])) - start; in dsp_tone_copy()
[all …]
/linux-6.6.21/drivers/net/ethernet/intel/igc/
Digc_diag.c39 u32 pat, val, before; in reg_pattern_test() local
44 for (pat = 0; pat < ARRAY_SIZE(test_pattern); pat++) { in reg_pattern_test()
46 wr32(reg, test_pattern[pat] & write); in reg_pattern_test()
48 if (val != (test_pattern[pat] & write & mask)) { in reg_pattern_test()
51 reg, val, test_pattern[pat] & write & mask); in reg_pattern_test()
/linux-6.6.21/drivers/net/ethernet/intel/i40e/
Di40e_diag.c19 u32 pat, val, orig_val; in i40e_diag_reg_pattern_test() local
24 pat = patterns[i]; in i40e_diag_reg_pattern_test()
25 wr32(hw, reg, (pat & mask)); in i40e_diag_reg_pattern_test()
27 if ((val & mask) != (pat & mask)) { in i40e_diag_reg_pattern_test()
30 __func__, reg, pat, val); in i40e_diag_reg_pattern_test()
/linux-6.6.21/sound/core/
Dpcm_misc.c428 const unsigned char *pat; in snd_pcm_format_set_silence() local
435 pat = pcm_formats[(INT)format].silence; in snd_pcm_format_set_silence()
436 if (!width || !pat) in snd_pcm_format_set_silence()
441 memset(data, *pat, bytes); in snd_pcm_format_set_silence()
449 memcpy(dst, pat, width); in snd_pcm_format_set_silence()
457 memcpy(dst, pat, 2); in snd_pcm_format_set_silence()
463 memcpy(dst, pat, 3); in snd_pcm_format_set_silence()
469 memcpy(dst, pat, 4); in snd_pcm_format_set_silence()
475 memcpy(dst, pat, 8); in snd_pcm_format_set_silence()
/linux-6.6.21/drivers/media/test-drivers/vidtv/
Dvidtv_psi.c803 vidtv_psi_pat_table_update_sec_len(struct vidtv_psi_table_pat *pat) in vidtv_psi_pat_table_update_sec_len() argument
814 for (i = 0; i < pat->num_pat; ++i) in vidtv_psi_pat_table_update_sec_len()
820 vidtv_psi_set_sec_len(&pat->header, length); in vidtv_psi_pat_table_update_sec_len()
933 vidtv_psi_pat_program_assign(struct vidtv_psi_table_pat *pat, in vidtv_psi_pat_program_assign() argument
943 if (p == pat->program) in vidtv_psi_pat_program_assign()
951 pat->num_pat = program_count; in vidtv_psi_pat_program_assign()
952 pat->program = p; in vidtv_psi_pat_program_assign()
955 vidtv_psi_pat_table_update_sec_len(pat); in vidtv_psi_pat_program_assign()
958 } while (vidtv_psi_get_sec_len(&pat->header) > MAX_SECTION_LEN); in vidtv_psi_pat_program_assign()
960 vidtv_psi_update_version_num(&pat->header); in vidtv_psi_pat_program_assign()
[all …]
Dvidtv_channel.c423 m->si.pat = vidtv_psi_pat_table_init(m->transport_stream_id); in vidtv_channel_si_init()
424 if (!m->si.pat) in vidtv_channel_si_init()
463 vidtv_psi_pat_program_assign(m->si.pat, programs); in vidtv_channel_si_init()
471 m->si.pmt_secs = vidtv_psi_pmt_create_sec_for_each_pat_entry(m->si.pat, in vidtv_channel_si_init()
478 m->si.pat->num_pmt); in vidtv_channel_si_init()
499 vidtv_psi_pat_table_destroy(m->si.pat); in vidtv_channel_si_init()
507 for (i = 0; i < m->si.pat->num_pmt; ++i) in vidtv_channel_si_destroy()
510 vidtv_psi_pat_table_destroy(m->si.pat); in vidtv_channel_si_destroy()
Dvidtv_psi.h459 void vidtv_psi_pat_program_assign(struct vidtv_psi_table_pat *pat,
484 vidtv_psi_pmt_create_sec_for_each_pat_entry(struct vidtv_psi_table_pat *pat, u16 pcr_pid);
494 struct vidtv_psi_table_pat *pat);
505 void vidtv_psi_pat_table_update_sec_len(struct vidtv_psi_table_pat *pat);
541 struct vidtv_psi_table_pat *pat; member
Dvidtv_mux.c78 struct vidtv_psi_table_pat_program *p = m->si.pat->program; in vidtv_mux_pid_ctx_init()
135 .pat = m->si.pat, in vidtv_mux_push_si()
178 for (i = 0; i < m->si.pat->num_pmt; ++i) { in vidtv_mux_push_si()
180 m->si.pat); in vidtv_mux_push_si()
/linux-6.6.21/drivers/gpu/drm/i915/gt/
Dintel_gtt.c581 u64 pat; in bdw_setup_private_ppat() local
583 pat = GEN8_PPAT(0, GEN8_PPAT_WB | GEN8_PPAT_LLC) | /* for normal objects, no eLLC */ in bdw_setup_private_ppat()
593 pat |= GEN8_PPAT(2, GEN8_PPAT_WB | GEN8_PPAT_ELLC_OVERRIDE); in bdw_setup_private_ppat()
595 pat |= GEN8_PPAT(2, GEN8_PPAT_WT | GEN8_PPAT_LLCELLC); in bdw_setup_private_ppat()
597 intel_uncore_write(uncore, GEN8_PRIVATE_PAT_LO, lower_32_bits(pat)); in bdw_setup_private_ppat()
598 intel_uncore_write(uncore, GEN8_PRIVATE_PAT_HI, upper_32_bits(pat)); in bdw_setup_private_ppat()
603 u64 pat; in chv_setup_private_ppat() local
624 pat = GEN8_PPAT(0, CHV_PPAT_SNOOP) | in chv_setup_private_ppat()
633 intel_uncore_write(uncore, GEN8_PRIVATE_PAT_LO, lower_32_bits(pat)); in chv_setup_private_ppat()
634 intel_uncore_write(uncore, GEN8_PRIVATE_PAT_HI, upper_32_bits(pat)); in chv_setup_private_ppat()
/linux-6.6.21/drivers/mtd/nand/raw/
Dcafe_nand.c385 unsigned short syn[8], pat[4]; in cafe_nand_read_page() local
398 pat); in cafe_nand_read_page()
410 if (pat[i] > 0xff) in cafe_nand_read_page()
413 buf[0] ^= pat[i]; in cafe_nand_read_page()
415 buf[2047] ^= pat[i] >> 4; in cafe_nand_read_page()
416 oob[0] ^= pat[i] << 4; in cafe_nand_read_page()
419 oob[3*p/2 - 2048] ^= pat[i] >> 4; in cafe_nand_read_page()
420 oob[3*p/2 - 2047] ^= pat[i] << 4; in cafe_nand_read_page()
422 oob[3*p/2 - 2049] ^= pat[i] >> 8; in cafe_nand_read_page()
423 oob[3*p/2 - 2048] ^= pat[i]; in cafe_nand_read_page()
[all …]
/linux-6.6.21/Documentation/sphinx/
Dmaintainers_include.py80 pat = r'(Documentation/([^\s\?\*]*)\.rst)'
81 m = re.search(pat, line)
84 line = re.sub(pat, ':doc:`%s <../%s>`' % (m.group(2), m.group(2)), line)
/linux-6.6.21/drivers/media/common/v4l2-tpg/
Dv4l2-tpg-core.c114 unsigned pat; in tpg_alloc() local
118 for (pat = 0; pat < TPG_MAX_PAT_LINES; pat++) { in tpg_alloc()
122 tpg->lines[pat][plane] = in tpg_alloc()
124 if (!tpg->lines[pat][plane]) in tpg_alloc()
128 tpg->downsampled_lines[pat][plane] = in tpg_alloc()
130 if (!tpg->downsampled_lines[pat][plane]) in tpg_alloc()
156 unsigned pat; in tpg_free() local
159 for (pat = 0; pat < TPG_MAX_PAT_LINES; pat++) in tpg_free()
161 vfree(tpg->lines[pat][plane]); in tpg_free()
162 tpg->lines[pat][plane] = NULL; in tpg_free()
[all …]
/linux-6.6.21/drivers/video/fbdev/
Dwmt_ge_rops.c46 unsigned long fg, pat; in wmt_ge_fillrect() local
57 pat = pixel_to_pat(p->var.bits_per_pixel, fg); in wmt_ge_fillrect()
73 writel(pat, regbase + GE_PAT0C_OFF); in wmt_ge_fillrect()
/linux-6.6.21/drivers/gpu/drm/omapdrm/
Domap_dmm_priv.h96 struct pat { struct
127 struct pat *last_pat;
Domap_dmm_tiler.c349 struct pat *pat; in dmm_txn_append() local
355 pat = alloc_dma(txn, sizeof(*pat), &pat_pa); in dmm_txn_append()
360 pat->area = *area; in dmm_txn_append()
363 pat->area.y0 += engine->tcm->y_offset; in dmm_txn_append()
364 pat->area.y1 += engine->tcm->y_offset; in dmm_txn_append()
366 pat->ctrl = (struct pat_ctrl){ in dmm_txn_append()
373 pat->data_pa = data_pa; in dmm_txn_append()
383 txn->last_pat = pat; in dmm_txn_append()
/linux-6.6.21/include/linux/
Dglob.h8 bool __pure glob_match(char const *pat, char const *str);
/linux-6.6.21/tools/testing/selftests/bpf/
Dtest_progs.c110 static bool glob_match(const char *str, const char *pat) in glob_match() argument
112 while (*str && *pat && *pat != '*') { in glob_match()
113 if (*str != *pat) in glob_match()
116 pat++; in glob_match()
119 if (*pat == '*') { in glob_match()
120 while (*pat == '*') in glob_match()
121 pat++; in glob_match()
122 if (!*pat) /* Tail wild card matches all */ in glob_match()
125 if (glob_match(str++, pat)) in glob_match()
128 return !*str && !*pat; in glob_match()

1234