/kernel/linux/linux-5.10/drivers/video/fbdev/core/ |
H A D | sysfillrect.c | 26 unsigned long pat, unsigned n, int bits) in bitfill_aligned() 40 *dst = comp(pat, *dst, first); in bitfill_aligned() 46 *dst = comp(pat, *dst, first); in bitfill_aligned() 54 *dst++ = pat; in bitfill_aligned() 55 *dst++ = pat; in bitfill_aligned() 56 *dst++ = pat; in bitfill_aligned() 57 *dst++ = pat; in bitfill_aligned() 58 *dst++ = pat; in bitfill_aligned() 59 *dst++ = pat; in bitfill_aligned() 60 *dst++ = pat; in bitfill_aligned() 25 bitfill_aligned(struct fb_info *p, unsigned long *dst, int dst_idx, unsigned long pat, unsigned n, int bits) bitfill_aligned() argument 81 bitfill_unaligned(struct fb_info *p, unsigned long *dst, int dst_idx, unsigned long pat, int left, int right, unsigned n, int bits) bitfill_unaligned() argument 135 bitfill_aligned_rev(struct fb_info *p, unsigned long *dst, int dst_idx, unsigned long pat, unsigned n, int bits) bitfill_aligned_rev() argument 191 bitfill_unaligned_rev(struct fb_info *p, unsigned long *dst, int dst_idx, unsigned long pat, int left, int right, unsigned n, int bits) bitfill_unaligned_rev() argument 245 unsigned long pat, pat2, fg; sys_fillrect() local [all...] |
H A D | cfbfillrect.c | 36 unsigned long pat, unsigned n, int bits, u32 bswapmask) in bitfill_aligned() 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, ds in bitfill_aligned() 35 bitfill_aligned(struct fb_info *p, unsigned long __iomem *dst, int dst_idx, unsigned long pat, unsigned n, int bits, u32 bswapmask) bitfill_aligned() argument 92 bitfill_unaligned(struct fb_info *p, unsigned long __iomem *dst, int dst_idx, unsigned long pat, int left, int right, unsigned n, int bits) bitfill_unaligned() argument 146 bitfill_aligned_rev(struct fb_info *p, unsigned long __iomem *dst, int dst_idx, unsigned long pat, unsigned n, int bits, u32 bswapmask) bitfill_aligned_rev() argument 217 bitfill_unaligned_rev(struct fb_info *p, unsigned long __iomem *dst, int dst_idx, unsigned long pat, int left, int right, unsigned n, int bits) bitfill_unaligned_rev() argument 280 unsigned long pat, pat2, fg; cfb_fillrect() local [all...] |
H A D | fbcon_rotate.h | 23 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()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | string.c | 73 static bool __match_charclass(const char *pat, char c, const char **npat) in __match_charclass() argument 77 if (*pat == '!') { in __match_charclass() 79 pat++; in __match_charclass() 81 if (*pat++ == c) /* First character is special */ in __match_charclass() 84 while (*pat && *pat != ']') { /* Matching */ in __match_charclass() 85 if (*pat == '-' && *(pat + 1) != ']') { /* Range */ in __match_charclass() 86 if (*(pat - 1) <= c && c <= *(pat in __match_charclass() 111 __match_glob(const char *str, const char *pat, bool ignore_space, bool case_ins) __match_glob() argument 171 strglobmatch(const char *str, const char *pat) strglobmatch() argument 176 strglobmatch_nocase(const char *str, const char *pat) strglobmatch_nocase() argument 189 strlazymatch(const char *str, const char *pat) strlazymatch() argument [all...] |
H A D | util.c | 117 static bool match_pat(char *file, const char **pat) in match_pat() argument 121 if (!pat) in match_pat() 124 while (pat[i]) { in match_pat() 125 if (strglobmatch(file, pat[i])) in match_pat() 139 * If specified the pat is array of string patterns ended with NULL, 148 static int rm_rf_depth_pat(const char *path, int depth, const char **pat) in rm_rf_depth_pat() argument 175 if (!match_pat(d->d_name, pat)) { in rm_rf_depth_pat() 191 ret = depth ? rm_rf_depth_pat(namebuf, depth - 1, pat) : 0; in rm_rf_depth_pat() 206 const char *pat[] = { in rm_rf_kcore_dir() local 215 return rm_rf_depth_pat(kcore_dir_path, 0, pat); in rm_rf_kcore_dir() 220 const char *pat[] = { rm_rf_perf_data() local [all...] |
H A D | string2.h | 15 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);
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | string.c | 72 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 in __match_charclass() 110 __match_glob(const char *str, const char *pat, bool ignore_space, bool case_ins) __match_glob() argument 170 strglobmatch(const char *str, const char *pat) strglobmatch() argument 175 strglobmatch_nocase(const char *str, const char *pat) strglobmatch_nocase() argument 188 strlazymatch(const char *str, const char *pat) strlazymatch() argument [all...] |
H A D | util.c | 120 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() 142 * If specified the pat is array of string patterns ended with NULL, 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[] = { kcore_dir_filter() local 256 const char *pat[] = { rm_rf_perf_data() local [all...] |
H A D | string2.h | 15 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);
|
/kernel/linux/linux-6.6/drivers/video/fbdev/core/ |
H A D | sysfillrect.c | 26 unsigned long pat, unsigned n, int bits) in bitfill_aligned() 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() 86 *dst = comp(pat, *dst, first); in bitfill_unaligned() 91 *dst = comp(pat, *dst, first); in bitfill_unaligned() 93 pat = pat << lef in bitfill_unaligned() 25 bitfill_aligned(struct fb_info *p, unsigned long *dst, int dst_idx, unsigned long pat, unsigned n, int bits) bitfill_aligned() argument 71 bitfill_unaligned(struct fb_info *p, unsigned long *dst, int dst_idx, unsigned long pat, int left, int right, unsigned n, int bits) bitfill_unaligned() argument 125 bitfill_aligned_rev(struct fb_info *p, unsigned long *dst, int dst_idx, unsigned long pat, unsigned n, int bits) bitfill_aligned_rev() argument 181 bitfill_unaligned_rev(struct fb_info *p, unsigned long *dst, int dst_idx, unsigned long pat, int left, int right, unsigned n, int bits) bitfill_unaligned_rev() argument 235 unsigned long pat, pat2, fg; sys_fillrect() local [all...] |
H A D | cfbfillrect.c | 36 unsigned long pat, unsigned n, int bits, u32 bswapmask) in bitfill_aligned() 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, ds in bitfill_aligned() 35 bitfill_aligned(struct fb_info *p, unsigned long __iomem *dst, int dst_idx, unsigned long pat, unsigned n, int bits, u32 bswapmask) bitfill_aligned() argument 92 bitfill_unaligned(struct fb_info *p, unsigned long __iomem *dst, int dst_idx, unsigned long pat, int left, int right, unsigned n, int bits) bitfill_unaligned() argument 146 bitfill_aligned_rev(struct fb_info *p, unsigned long __iomem *dst, int dst_idx, unsigned long pat, unsigned n, int bits, u32 bswapmask) bitfill_aligned_rev() argument 217 bitfill_unaligned_rev(struct fb_info *p, unsigned long __iomem *dst, int dst_idx, unsigned long pat, int left, int right, unsigned n, int bits) bitfill_unaligned_rev() argument 280 unsigned long pat, pat2, fg; cfb_fillrect() local [all...] |
H A D | fbcon_rotate.h | 23 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()
|
/kernel/linux/linux-5.10/lib/ |
H A D | glob.c | 13 * glob_match - Shell-style pattern matching, like !fnmatch(pat, str, 0) 14 * @pat: Shell-style pattern to match, e.g. "*.[ch]". 18 * succeeds, or false (0) if it fails. Equivalent to !fnmatch(@pat, @str, 0). 26 * is at most quadratic: strlen(@str)*strlen(@pat). 31 * Like !fnmatch(@pat, @str, 0) and unlike the shell, this does NOT 40 bool __pure glob_match(char const *pat, char const *str) in glob_match() argument 51 * Loop over each token (character or class) in pat, matching in glob_match() 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() [all...] |
H A D | globtest.c | 15 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()
|
/kernel/linux/linux-6.6/lib/ |
H A D | glob.c | 13 * glob_match - Shell-style pattern matching, like !fnmatch(pat, str, 0) 14 * @pat: Shell-style pattern to match, e.g. "*.[ch]". 18 * succeeds, or false (0) if it fails. Equivalent to !fnmatch(@pat, @str, 0). 26 * is at most quadratic: strlen(@str)*strlen(@pat). 31 * Like !fnmatch(@pat, @str, 0) and unlike the shell, this does NOT 40 bool __pure glob_match(char const *pat, char const *str) in glob_match() argument 51 * Loop over each token (character or class) in pat, matching in glob_match() 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() [all...] |
H A D | globtest.c | 15 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()
|
/kernel/linux/linux-5.10/drivers/isdn/mISDN/ |
H A D | dsp_tones.c | 378 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 in dsp_tone_copy() 464 struct pattern *pat = (struct pattern *)tone->pattern; dsp_tone_timeout() local 498 struct pattern *pat; dsp_tone() local [all...] |
/kernel/linux/linux-6.6/drivers/isdn/mISDN/ |
H A D | dsp_tones.c | 378 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 in dsp_tone_copy() 464 struct pattern *pat = (struct pattern *)tone->pattern; dsp_tone_timeout() local 498 struct pattern *pat; dsp_tone() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igc/ |
H A D | igc_diag.c | 39 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()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/igc/ |
H A D | igc_diag.c | 39 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_diag.c | 19 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() 29 "%s: reg pattern test failed - reg 0x%08x pat 0x%08x val 0x%08x\n", in i40e_diag_reg_pattern_test() 30 __func__, reg, pat, val); in i40e_diag_reg_pattern_test()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_diag.c | 19 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() 29 "%s: reg pattern test failed - reg 0x%08x pat 0x%08x val 0x%08x\n", in i40e_diag_reg_pattern_test() 30 __func__, reg, pat, val); in i40e_diag_reg_pattern_test()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/ |
H A D | intel_gtt.c | 352 u64 pat; in bdw_setup_private_ppat() local 354 pat = GEN8_PPAT(0, GEN8_PPAT_WB | GEN8_PPAT_LLC) | /* for normal objects, no eLLC */ in bdw_setup_private_ppat() 363 intel_uncore_write(uncore, GEN8_PRIVATE_PAT_LO, lower_32_bits(pat)); in bdw_setup_private_ppat() 364 intel_uncore_write(uncore, GEN8_PRIVATE_PAT_HI, upper_32_bits(pat)); in bdw_setup_private_ppat() 369 u64 pat; in chv_setup_private_ppat() local 390 pat = GEN8_PPAT(0, CHV_PPAT_SNOOP) | in chv_setup_private_ppat() 399 intel_uncore_write(uncore, GEN8_PRIVATE_PAT_LO, lower_32_bits(pat)); in chv_setup_private_ppat() 400 intel_uncore_write(uncore, GEN8_PRIVATE_PAT_HI, upper_32_bits(pat)); in chv_setup_private_ppat()
|
/kernel/linux/linux-5.10/arch/x86/mm/pat/ |
H A D | memtype.c | 220 static void __init_cache_modes(u64 pat) in __init_cache_modes() argument 230 cache = pat_get_cache_mode((pat >> (i * 8)) & 7, in __init_cache_modes() 241 static void pat_bp_init(u64 pat) in pat_bp_init() argument 256 wrmsrl(MSR_IA32_CR_PAT, pat); in pat_bp_init() 259 __init_cache_modes(pat); in pat_bp_init() 262 static void pat_ap_init(u64 pat) in pat_ap_init() argument 272 wrmsrl(MSR_IA32_CR_PAT, pat); in pat_ap_init() 277 u64 pat = 0; in init_cache_modes() local 292 rdmsrl(MSR_IA32_CR_PAT, pat); in init_cache_modes() 295 if (!pat) { in init_cache_modes() 333 u64 pat; pat_init() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gt/ |
H A D | intel_gtt.c | 581 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() [all...] |