Home
last modified time | relevance | path

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

1234

/linux-6.3-rc2/tools/perf/util/
A Dstring.c78 pat++; in __match_charclass()
83 while (*pat && *pat != ']') { /* Matching */ in __match_charclass()
85 if (*(pat - 1) <= c && c <= *(pat + 1)) in __match_charclass()
87 if (*(pat - 1) > *(pat + 1)) in __match_charclass()
99 pat++; in __match_charclass()
113 while (*str && *pat && *pat != '*') { in __match_glob()
127 pat++; in __match_glob()
130 if (__match_charclass(pat + 1, *str, &pat)) { in __match_glob()
136 pat++; in __match_glob()
143 pat++; in __match_glob()
[all …]
A Dutil.c118 static bool match_pat(char *file, const char **pat) in match_pat() argument
122 if (!pat) in match_pat()
125 while (pat[i]) { in match_pat()
126 if (strglobmatch(file, pat[i])) in match_pat()
176 if (!match_pat(d->d_name, pat)) { in rm_rf_depth_pat()
207 const char *pat[] = { in rm_rf_a_kcore_dir() local
216 return rm_rf_depth_pat(kcore_dir_path, 0, pat); in rm_rf_a_kcore_dir()
221 const char *pat[] = { in kcore_dir_filter() local
227 return match_pat(d->d_name, pat); in kcore_dir_filter()
254 const char *pat[] = { in rm_rf_perf_data() local
[all …]
A 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.3-rc2/drivers/video/fbdev/core/
A Dsysfillrect.c93 pat = pat << left | pat >> right; in bitfill_unaligned()
101 pat = pat << left | pat >> right; in bitfill_unaligned()
103 pat = pat << left | pat >> right; in bitfill_unaligned()
105 pat = pat << left | pat >> right; in bitfill_unaligned()
107 pat = pat << left | pat >> right; in bitfill_unaligned()
112 pat = pat << left | pat >> right; in bitfill_unaligned()
205 pat = pat << left | pat >> right; in bitfill_unaligned_rev()
213 pat = pat << left | pat >> right; in bitfill_unaligned_rev()
215 pat = pat << left | pat >> right; in bitfill_unaligned_rev()
217 pat = pat << left | pat >> right; in bitfill_unaligned_rev()
[all …]
A Dcfbfillrect.c114 pat = pat << left | pat >> right; in bitfill_unaligned()
122 pat = pat << left | pat >> right; in bitfill_unaligned()
124 pat = pat << left | pat >> right; in bitfill_unaligned()
126 pat = pat << left | pat >> right; in bitfill_unaligned()
128 pat = pat << left | pat >> right; in bitfill_unaligned()
133 pat = pat << left | pat >> right; in bitfill_unaligned()
243 pat = pat << left | pat >> right; in bitfill_unaligned_rev()
252 pat = pat << left | pat >> right; in bitfill_unaligned_rev()
255 pat = pat << left | pat >> right; in bitfill_unaligned_rev()
258 pat = pat << left | pat >> right; in bitfill_unaligned_rev()
[all …]
A 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.3-rc2/lib/
A 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()
A 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.3-rc2/drivers/isdn/mISDN/
A Ddsp_tones.c378 struct pattern *pat; in dsp_tone_copy() local
398 if (!pat->seq[index]) { in dsp_tone_copy()
408 count -= pat->seq[index]; in dsp_tone_copy()
471 if (!pat->seq[index]) in dsp_tone_timeout()
479 dsp_tone_hw_message(dsp, pat->data[index], *(pat->siz[index])); in dsp_tone_timeout()
498 struct pattern *pat; in dsp_tone() local
515 pat = NULL; in dsp_tone()
519 pat = &pattern[i]; in dsp_tone()
524 if (!pat) { in dsp_tone()
532 tonet->pattern = pat; in dsp_tone()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/intel/igc/
A 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.3-rc2/drivers/net/ethernet/intel/i40e/
A 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.3-rc2/sound/core/
A 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.3-rc2/drivers/media/test-drivers/vidtv/
A Dvidtv_psi.c908 if (p == pat->program) in vidtv_psi_pat_program_assign()
916 pat->num_pat = program_count; in vidtv_psi_pat_program_assign()
917 pat->program = p; in vidtv_psi_pat_program_assign()
935 pat = kzalloc(sizeof(*pat), GFP_KERNEL); in vidtv_psi_pat_table_init()
936 if (!pat) in vidtv_psi_pat_table_init()
939 pat->header.table_id = 0x0; in vidtv_psi_pat_table_init()
943 pat->header.current_next = 0x1; in vidtv_psi_pat_table_init()
945 pat->header.version = 0x1f; in vidtv_psi_pat_table_init()
953 return pat; in vidtv_psi_pat_table_init()
1484 program = pat->program; in vidtv_psi_pmt_create_sec_for_each_pat_entry()
[all …]
A 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()
A 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
A 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.3-rc2/drivers/gpu/drm/i915/gt/
A Dintel_gtt.c543 u64 pat; in bdw_setup_private_ppat() local
545 pat = GEN8_PPAT(0, GEN8_PPAT_WB | GEN8_PPAT_LLC) | /* for normal objects, no eLLC */ in bdw_setup_private_ppat()
555 pat |= GEN8_PPAT(2, GEN8_PPAT_WB | GEN8_PPAT_ELLC_OVERRIDE); in bdw_setup_private_ppat()
557 pat |= GEN8_PPAT(2, GEN8_PPAT_WT | GEN8_PPAT_LLCELLC); in bdw_setup_private_ppat()
559 intel_uncore_write(uncore, GEN8_PRIVATE_PAT_LO, lower_32_bits(pat)); in bdw_setup_private_ppat()
560 intel_uncore_write(uncore, GEN8_PRIVATE_PAT_HI, upper_32_bits(pat)); in bdw_setup_private_ppat()
565 u64 pat; in chv_setup_private_ppat() local
586 pat = GEN8_PPAT(0, CHV_PPAT_SNOOP) | in chv_setup_private_ppat()
595 intel_uncore_write(uncore, GEN8_PRIVATE_PAT_LO, lower_32_bits(pat)); in chv_setup_private_ppat()
596 intel_uncore_write(uncore, GEN8_PRIVATE_PAT_HI, upper_32_bits(pat)); in chv_setup_private_ppat()
/linux-6.3-rc2/drivers/mtd/nand/raw/
A 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()
423 oob[3*p/2 - 2048] ^= pat[i]; in cafe_nand_read_page()
426 buf[3*p/2] ^= pat[i] >> 4; in cafe_nand_read_page()
427 buf[3*p/2 + 1] ^= pat[i] << 4; in cafe_nand_read_page()
429 buf[3*p/2 - 1] ^= pat[i] >> 8; in cafe_nand_read_page()
[all …]
/linux-6.3-rc2/Documentation/sphinx/
A Dmaintainers_include.py80 pat = '(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.3-rc2/drivers/media/common/v4l2-tpg/
A 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()
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()
1762 unsigned pat; in tpg_precalculate_line() local
1778 for (pat = 0; pat < tpg_get_pat_lines(tpg); pat++) { in tpg_precalculate_line()
[all …]
/linux-6.3-rc2/drivers/video/fbdev/
A Dwmt_ge_rops.c44 unsigned long fg, pat; in wmt_ge_fillrect() local
55 pat = pixel_to_pat(p->var.bits_per_pixel, fg); in wmt_ge_fillrect()
71 writel(pat, regbase + GE_PAT0C_OFF); in wmt_ge_fillrect()
/linux-6.3-rc2/drivers/gpu/drm/omapdrm/
A Domap_dmm_priv.h96 struct pat { struct
127 struct pat *last_pat;
A 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.3-rc2/include/linux/
A Dglob.h8 bool __pure glob_match(char const *pat, char const *str);
/linux-6.3-rc2/tools/testing/selftests/bpf/
A 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()

Completed in 44 milliseconds

1234