Home
last modified time | relevance | path

Searched refs:c2 (Results 1 – 25 of 272) sorted by relevance

1234567891011

/openbmc/linux/fs/hfsplus/
H A Dunicode.c35 u16 len1, len2, c1, c2; in hfsplus_strcasecmp() local
44 c1 = c2 = 0; in hfsplus_strcasecmp()
51 while (len2 && !c2) { in hfsplus_strcasecmp()
52 c2 = case_fold(be16_to_cpu(*p2)); in hfsplus_strcasecmp()
57 if (c1 != c2) in hfsplus_strcasecmp()
58 return (c1 < c2) ? -1 : 1; in hfsplus_strcasecmp()
59 if (!c1 && !c2) in hfsplus_strcasecmp()
68 u16 len1, len2, c1, c2; in hfsplus_strcmp() local
79 c2 = be16_to_cpu(*p2); in hfsplus_strcmp()
80 if (c1 != c2) in hfsplus_strcmp()
[all …]
/openbmc/phosphor-logging/test/openpower-pels/
H A Dsrc_callout_test.cpp441 Callout c2{CalloutPriority::high, "A1", "1234567", "ABCD", in TEST() local
443 EXPECT_EQ(c1, c2); in TEST()
450 Callout c2{CalloutPriority::high, "A2", "1234567", "ABCD", in TEST() local
452 EXPECT_NE(c1, c2); in TEST()
458 Callout c2{CalloutPriority::medium, "bmc_code"}; in TEST() local
459 EXPECT_EQ(c1, c2); in TEST()
465 Callout c2{CalloutPriority::medium, "sbe_code"}; in TEST() local
466 EXPECT_NE(c1, c2); in TEST()
472 Callout c2{CalloutPriority::high, "service_docs", "", false}; in TEST() local
473 EXPECT_EQ(c1, c2); in TEST()
[all …]
/openbmc/linux/drivers/gpu/drm/tidss/
H A Dtidss_scale_coefs.c17 .c2 = { 28, 34, 40, 46, 52, 58, 64, 70, 0, 2, 4, 8, 12, 16, 20, 24, },
23 .c2 = { 24, 28, 32, 38, 44, 50, 56, 64, 0, 2, 4, 6, 8, 12, 16, 20, },
29 .c2 = { 16, 20, 24, 30, 36, 42, 48, 56, 0, 0, 0, 2, 4, 8, 12, 14, },
35 .c2 = { 12, 14, 16, 22, 28, 34, 40, 48, 0, 0, 0, 2, 4, 4, 4, 8, },
41 .c2 = { 0, 2, 4, 8, 12, 18, 24, 32, 0, 0, 0, -2, -4, -4, -4, -2, },
47 .c2 = { -8, -6, -4, -2, 0, 6, 12, 18, 0, -2, -4, -6, -8, -8, -8, -8, },
53 .c2 = { -12, -12, -12, -10, -8, -4, 0, 6, 0, -2, -4, -6, -8, -10, -12, -12, },
59 .c2 = { -16, -18, -20, -18, -16, -14, -12, -6, 0, -2, -4, -6, -8, -10, -12, -14, },
65 .c2 = { -20, -22, -24, -24, -24, -24, -24, -20, 0, -2, -4, -6, -8, -10, -12, -16, },
71 .c2 = { -16, -20, -24, -28, -32, -34, -36, -34, 0, 0, 0, -2, -4, -8, -12, -14, },
[all …]
/openbmc/linux/drivers/net/ethernet/marvell/mvpp2/
H A Dmvpp2_cls.c502 struct mvpp2_cls_c2_entry *c2) in mvpp2_cls_c2_write() argument
505 mvpp2_write(priv, MVPP22_CLS_C2_TCAM_IDX, c2->index); in mvpp2_cls_c2_write()
508 if (c2->valid) in mvpp2_cls_c2_write()
514 mvpp2_write(priv, MVPP22_CLS_C2_ACT, c2->act); in mvpp2_cls_c2_write()
516 mvpp2_write(priv, MVPP22_CLS_C2_ATTR0, c2->attr[0]); in mvpp2_cls_c2_write()
517 mvpp2_write(priv, MVPP22_CLS_C2_ATTR1, c2->attr[1]); in mvpp2_cls_c2_write()
518 mvpp2_write(priv, MVPP22_CLS_C2_ATTR2, c2->attr[2]); in mvpp2_cls_c2_write()
519 mvpp2_write(priv, MVPP22_CLS_C2_ATTR3, c2->attr[3]); in mvpp2_cls_c2_write()
521 mvpp2_write(priv, MVPP22_CLS_C2_TCAM_DATA0, c2->tcam[0]); in mvpp2_cls_c2_write()
522 mvpp2_write(priv, MVPP22_CLS_C2_TCAM_DATA1, c2 in mvpp2_cls_c2_write()
530 mvpp2_cls_c2_read(struct mvpp2 * priv,int index,struct mvpp2_cls_c2_entry * c2) mvpp2_cls_c2_read() argument
869 struct mvpp2_cls_c2_entry c2; mvpp2_port_c2_cls_init() local
912 struct mvpp2_cls_c2_entry c2; mvpp2_cls_init() local
992 struct mvpp2_cls_c2_entry c2; mvpp2_rss_port_c2_enable() local
1013 struct mvpp2_cls_c2_entry c2; mvpp2_rss_port_c2_disable() local
1057 struct mvpp2_cls_c2_entry c2; mvpp22_port_c2_lookup_disable() local
1087 struct mvpp2_cls_c2_entry c2; mvpp2_port_c2_tcam_rule_add() local
[all...]
/openbmc/u-boot/lib/bzip2/
H A Dbzlib_blocksort.c395 UChar c1, c2; in mainGtU() local
400 c1 = block[i1]; c2 = block[i2]; in mainGtU()
401 if (c1 != c2) return (c1 > c2); in mainGtU()
404 c1 = block[i1]; c2 = block[i2]; in mainGtU()
405 if (c1 != c2) return (c1 > c2); in mainGtU()
408 c1 = block[i1]; c2 = block[i2]; in mainGtU()
409 if (c1 != c2) return (c1 > c2); in mainGtU()
412 c1 = block[i1]; c2 = block[i2]; in mainGtU()
413 if (c1 != c2) return (c1 > c2); in mainGtU()
416 c1 = block[i1]; c2 = block[i2]; in mainGtU()
[all …]
/openbmc/linux/fs/ntfs/
H A Dunistr.c89 u16 c1, c2; in ntfs_collate_names() local
96 c2 = le16_to_cpu(*name2++); in ntfs_collate_names()
100 if (c2 < upcase_len) in ntfs_collate_names()
101 c2 = le16_to_cpu(upcase[c2]); in ntfs_collate_names()
105 if (c1 < c2) in ntfs_collate_names()
107 if (c1 > c2) in ntfs_collate_names()
137 u16 c1, c2; in ntfs_ucsncmp() local
142 c2 = le16_to_cpu(s2[i]); in ntfs_ucsncmp()
143 if (c1 < c2) in ntfs_ucsncmp()
145 if (c1 > c2) in ntfs_ucsncmp()
[all …]
/openbmc/linux/security/selinux/ss/
H A Dcontext.h100 const struct context *c1, const struct context *c2) in mls_context_glblub() argument
103 const struct mls_range *r1 = &c1->range, *r2 = &c2->range; in mls_context_glblub()
131 static inline int mls_context_cmp(const struct context *c1, const struct context *c2) in mls_context_cmp() argument
133 return ((c1->range.level[0].sens == c2->range.level[0].sens) && in mls_context_cmp()
134 ebitmap_cmp(&c1->range.level[0].cat, &c2->range.level[0].cat) && in mls_context_cmp()
135 (c1->range.level[1].sens == c2->range.level[1].sens) && in mls_context_cmp()
136 ebitmap_cmp(&c1->range.level[1].cat, &c2->range.level[1].cat)); in mls_context_cmp()
186 static inline int context_cmp(const struct context *c1, const struct context *c2) in context_cmp() argument
188 if (c1->len && c2->len) in context_cmp()
189 return (c1->len == c2->len && !strcmp(c1->str, c2->str)); in context_cmp()
[all …]
/openbmc/linux/drivers/firmware/efi/libstub/
H A Dstring.c75 unsigned char c1, c2; in strcmp() local
79 c2 = *ct++; in strcmp()
80 if (c1 != c2) in strcmp()
81 return c1 < c2 ? -1 : 1; in strcmp()
97 unsigned char c1, c2; in strncmp() local
101 c2 = *ct++; in strncmp()
102 if (c1 != c2) in strncmp()
103 return c1 < c2 ? -1 : 1; in strncmp()
/openbmc/linux/lib/
H A Dstring.c42 unsigned char c1, c2; in strncasecmp() local
49 c2 = *s2++; in strncasecmp()
50 if (!c1 || !c2) in strncasecmp()
52 if (c1 == c2) in strncasecmp()
55 c2 = tolower(c2); in strncasecmp()
56 if (c1 != c2) in strncasecmp()
59 return (int)c1 - (int)c2; in strncasecmp()
67 int c1, c2; in strcasecmp() local
71 c2 = tolower(*s2++); in strcasecmp()
72 } while (c1 == c2 && c1 != 0); in strcasecmp()
[all …]
/openbmc/linux/fs/unicode/
H A Dutf8-core.c24 int c1, c2; in utf8_strncmp() local
34 c2 = utf8byte(&cur2); in utf8_strncmp()
36 if (c1 < 0 || c2 < 0) in utf8_strncmp()
38 if (c1 != c2) in utf8_strncmp()
50 int c1, c2; in utf8_strncasecmp() local
60 c2 = utf8byte(&cur2); in utf8_strncasecmp()
62 if (c1 < 0 || c2 < 0) in utf8_strncasecmp()
64 if (c1 != c2) in utf8_strncasecmp()
80 int c1, c2; in utf8_strncasecmp_folded() local
88 c2 = cf->name[i++]; in utf8_strncasecmp_folded()
[all …]
/openbmc/linux/drivers/media/usb/pvrusb2/
H A Dpvrusb2-std.c178 unsigned int c1,c2; in pvr2_std_id_to_str() local
189 c2 = scnprintf(bufPtr,bufSize,";"); in pvr2_std_id_to_str()
190 c1 += c2; in pvr2_std_id_to_str()
191 bufSize -= c2; in pvr2_std_id_to_str()
192 bufPtr += c2; in pvr2_std_id_to_str()
195 c2 = scnprintf(bufPtr,bufSize, in pvr2_std_id_to_str()
199 c2 = scnprintf(bufPtr,bufSize,"/"); in pvr2_std_id_to_str()
201 c1 += c2; in pvr2_std_id_to_str()
202 bufSize -= c2; in pvr2_std_id_to_str()
203 bufPtr += c2; in pvr2_std_id_to_str()
[all …]
/openbmc/qemu/tests/unit/
H A Dtest-coroutine.c173 Coroutine *c2 = opaque; in c1_fn() local
174 qemu_coroutine_enter(c2); in c1_fn()
180 Coroutine *c2; in test_no_dangling_access() local
183 c2 = qemu_coroutine_create(c2_fn, NULL); in test_no_dangling_access()
184 c1 = qemu_coroutine_create(c1_fn, c2); in test_no_dangling_access()
191 qemu_coroutine_enter(c2); in test_no_dangling_access()
227 Coroutine *c2 = qemu_coroutine_create(entry, opaque); in do_test_co_mutex() local
232 qemu_coroutine_enter(c2); in do_test_co_mutex()
241 qemu_coroutine_enter(c2); in do_test_co_mutex()
308 Coroutine *c1, *c2; in test_co_rwlock_upgrade() local
[all …]
/openbmc/linux/arch/arm/include/asm/hardware/
H A Dcp14.h54 #define RCP14_DBGDSCRext() MRC14(0, c0, c2, 2)
59 #define RCP14_DBGBVR2() MRC14(0, c0, c2, 4)
75 #define RCP14_DBGBCR2() MRC14(0, c0, c2, 5)
91 #define RCP14_DBGWVR2() MRC14(0, c0, c2, 6)
107 #define RCP14_DBGWCR2() MRC14(0, c0, c2, 7)
124 #define RCP14_DBGBXVR2() MRC14(0, c1, c2, 1)
139 #define RCP14_DBGOSSRR() MRC14(0, c1, c2, 4)
143 #define RCP14_DBGDSAR() MRC14(0, c2, c0, 0)
150 #define RCP14_DBGDEVID() MRC14(0, c7, c2, 7)
159 #define WCP14_DBGDSCRext(val) MCR14(val, 0, c0, c2, 2)
[all …]
/openbmc/linux/drivers/char/
H A Dnwflash.c63 volatile unsigned int c1, c2; in get_flash_id() local
69 c2 = inb(0x80); in get_flash_id()
73 c2 = inb(0x80); in get_flash_id()
79 c2 = *(volatile unsigned char *) (FLASH_BASE + 2); in get_flash_id()
81 c2 = *(volatile unsigned char *) (FLASH_BASE + 1); in get_flash_id()
83 c2 += (c1 << 8); in get_flash_id()
90 if (c2 == KFLASH_ID4) in get_flash_id()
93 return c2; in get_flash_id()
400 volatile unsigned int c2; in write_block() local
425 if (__get_user(c2, buf + offset)) in write_block()
[all …]
/openbmc/u-boot/arch/arm/include/asm/arch-armv7/
H A Dgenerictimer.h35 mcr p15, 0, \reg, c14, c2, 0
38 mcr p15, 0, \reg, c14, c2, 1
40 mrc p15, 0, \reg, c14, c2, 1
44 mcr p15, 0, \reg, c14, c2, 1
/openbmc/linux/drivers/leds/
H A Dleds-tca6507.c209 int c1, c2; in choose_times() local
223 for (c2 = 0; c2 <= c1; c2++) { in choose_times()
224 int tt = t + time_codes[c2]; in choose_times()
236 *c2p = c2; in choose_times()
315 int c1, c2; in set_times() local
318 result = choose_times(tca->bank[bank].ontime, &c1, &c2); in set_times()
324 c2, time_codes[c2], tca->bank[bank].ontime); in set_times()
325 set_code(tca, TCA6507_FADE_ON, bank, c2); in set_times()
329 result = choose_times(tca->bank[bank].offtime, &c1, &c2); in set_times()
333 c2, time_codes[c2], tca->bank[bank].offtime); in set_times()
[all …]
/openbmc/u-boot/arch/arm/cpu/pxa/
H A Dstart.S124 mrc p15, 0, \reg, c2, c0, 0
135 mcr p15, 0, r0, c2, c0, 0
148 mcr p15, 0, r0, c9, c2, 1
168 mcr p15, 0, r0, c9, c2, 0
176 mcr p15, 0, r1, c7, c2, 5
188 mcr p15, 0, r2, c9, c2, 0
/openbmc/openbmc-tools/dbus-vis/
H A Drenderer.js11 let c2 = document.getElementById('my_canvas_dbus');
14 this.canvas2 = c2;
17 this.width2 = c2.width; this.height2 = c2.height;
/openbmc/u-boot/test/
H A Dunicode_ut.c24 static const u16 c2[] = {0x6b, 0x61, 0x66, 0x62, 0xe1, 0x74, 0x75, 0x72, 0x00}; variable
84 sprintf(buf, "%8.6ls", c2); in unicode_test_string16()
130 ut_asserteq(c2[i], code); in unicode_test_utf8_get()
261 ut_assert(!unicode_test_u16_strcmp(buf, c2, SIZE_MAX)); in unicode_test_utf8_utf16_strcpy()
310 ut_assert(!unicode_test_u16_strcmp(buf, c2, SIZE_MAX)); in unicode_test_utf8_utf16_strncpy()
344 s = c2; in unicode_test_utf16_get()
347 ut_asserteq(c2[i], code); in unicode_test_utf16_get()
351 ut_asserteq_ptr(c2 + 8, s); in unicode_test_utf16_get()
395 ut_asserteq(6, utf16_strnlen(c2, 6)); in unicode_test_utf16_strnlen()
412 ut_asserteq(9, utf16_utf8_strlen(c2)); in unicode_test_utf16_utf8_strlen()
[all …]
/openbmc/linux/arch/s390/boot/
H A Dstring.c11 unsigned char c1, c2; in strncmp() local
15 c2 = *ct++; in strncmp()
16 if (c1 != c2) in strncmp()
17 return c1 < c2 ? -1 : 1; in strncmp()
/openbmc/linux/drivers/acpi/acpica/
H A Dutnonansi.c93 int c2; in acpi_ut_stricmp() local
97 c2 = tolower((int)*string2); in acpi_ut_stricmp()
102 while ((c1 == c2) && (c1)); in acpi_ut_stricmp()
104 return (c1 - c2); in acpi_ut_stricmp()
/openbmc/linux/drivers/clk/davinci/
H A Dpsc.h36 #define LPSC_CLKDEV2(n, c1, d1, c2, d2) \ argument
39 LPSC_CLKDEV((c2), (d2)), \
43 #define LPSC_CLKDEV3(n, c1, d1, c2, d2, c3, d3) \ argument
46 LPSC_CLKDEV((c2), (d2)), \
/openbmc/u-boot/lib/
H A Dstring.c34 unsigned char c1, c2; in strncasecmp() local
36 c1 = 0; c2 = 0; in strncasecmp()
39 c1 = *s1; c2 = *s2; in strncasecmp()
43 if (!c2) in strncasecmp()
45 if (c1 == c2) in strncasecmp()
48 c2 = tolower(c2); in strncasecmp()
49 if (c1 != c2) in strncasecmp()
53 return (int)c1 - (int)c2; in strncasecmp()
/openbmc/linux/tools/power/cpupower/utils/helpers/
H A Dbitmask.c203 const char *c1, *c2; /* next tokens after '-' or ',' */ in bitmask_parselist() local
213 c2 = nexttoken(p, ','); in bitmask_parselist()
214 if (c1 != NULL && (c2 == NULL || c1 < c2)) { in bitmask_parselist()
219 if (c1 != NULL && (c2 == NULL || c1 < c2)) { in bitmask_parselist()
/openbmc/linux/arch/mips/include/asm/sibyte/
H A Dboard.h25 #define setleds(t0, t1, c0, c1, c2, c3) \
31 li t1, c2; \
36 #define setleds(t0, t1, c0, c1, c2, c3)

1234567891011