Home
last modified time | relevance | path

Searched refs:l1 (Results 1 – 25 of 350) sorted by relevance

12345678910>>...14

/freebsd/contrib/sendmail/libsm/
H A Dstrcaseeq.c35 char *l1, *l2; local
47 l1 = sm_lowercase(s1);
48 if (l1 != s1)
50 f1 = sm_strdup_x(l1);
51 l1 = f1;
57 while (*l1 == *l2 && '\0' != *l1)
58 l1++, l2++;
59 same = *l1 == *l2;
83 char *l1, *l2; local
97 l1 = sm_lowercase(s1);
[all …]
/freebsd/sys/contrib/libsodium/test/default/
H A Dmetamorphic.c18 size_t l1, l2; in mm_generichash() local
38 l1 = randombytes_uniform((uint32_t) mlen); in mm_generichash()
39 l2 = randombytes_uniform((uint32_t) (mlen - l1)); in mm_generichash()
40 crypto_generichash_update(&st, m, l1); in mm_generichash()
41 crypto_generichash_update(&st, m + l1, l2); in mm_generichash()
42 crypto_generichash_update(&st, m + l1 + l2, mlen - l1 - l2); in mm_generichash()
64 size_t l1, l2; in mm_onetimeauth() local
78 l1 = randombytes_uniform((uint32_t) mlen); in mm_onetimeauth()
79 l2 = randombytes_uniform((uint32_t) (mlen - l1)); in mm_onetimeauth()
80 crypto_onetimeauth_update(&st, m, l1); in mm_onetimeauth()
[all …]
/freebsd/contrib/atf/atf-c/detail/
H A Dlist_test.c180 atf_list_t l1, l2; in ATF_TC_BODY() local
182 RE(atf_list_init(&l1)); in ATF_TC_BODY()
185 atf_list_append_list(&l1, &l2); in ATF_TC_BODY()
186 ATF_CHECK_EQ(atf_list_size(&l1), 0); in ATF_TC_BODY()
188 atf_list_fini(&l1); in ATF_TC_BODY()
192 atf_list_t l1, l2; in ATF_TC_BODY() local
195 RE(atf_list_init(&l1)); in ATF_TC_BODY()
196 RE(atf_list_append(&l1, &item, false)); in ATF_TC_BODY()
199 atf_list_append_list(&l1, &l2); in ATF_TC_BODY()
200 ATF_CHECK_EQ(atf_list_size(&l1), 1); in ATF_TC_BODY()
[all …]
/freebsd/crypto/krb5/src/lib/krb5/unicode/
H A Ducstr.c99 int i, l1, l2, len, ulen, res = 0; in krb5int_utf8_normcmp() local
113 l1 = data1->length; in krb5int_utf8_normcmp()
116 len = (l1 < l2) ? l1 : l2; in krb5int_utf8_normcmp()
118 return l1 == 0 ? (l2 == 0 ? 0 : -1) : 1; in krb5int_utf8_normcmp()
140 } else if (((len < l1) && !KRB5_UTF8_ISASCII(s1)) || in krb5int_utf8_normcmp()
155 ((len == l1) || KRB5_UTF8_ISASCII(s1)) && in krb5int_utf8_normcmp()
158 return l1 - l2; in krb5int_utf8_normcmp()
163 l1 -= i - 1; in krb5int_utf8_normcmp()
170 ucs = malloc(((norm1 || l1 > l2) ? l1 : l2) * sizeof(*ucs)); in krb5int_utf8_normcmp()
172 return l1 > l2 ? 1 : -1;/* what to do??? */ in krb5int_utf8_normcmp()
[all …]
/freebsd/sys/arm64/iommu/
H A Diommu_pmap.c113 pd_entry_t *l1; in smmu_pmap_l0_to_l1() local
115 l1 = PHYS_TO_DMAP(smmu_pmap_load(l0) & ~ATTR_MASK); in smmu_pmap_l0_to_l1()
116 return (&l1[smmu_l1_index(va)]); in smmu_pmap_l0_to_l1()
134 pd_entry_t l1, *l2p; in smmu_pmap_l1_to_l2() local
136 l1 = smmu_pmap_load(l1p); in smmu_pmap_l1_to_l2()
142 KASSERT(va >= VM_MAX_USER_ADDRESS || (l1 & ATTR_DESCR_VALID) != 0, in smmu_pmap_l1_to_l2()
143 ("%s: L1 entry %#lx for %#lx is invalid", __func__, l1, va)); in smmu_pmap_l1_to_l2()
144 KASSERT((l1 & ATTR_DESCR_TYPE_MASK) == ATTR_DESCR_TYPE_TABLE, in smmu_pmap_l1_to_l2()
145 ("%s: L1 entry %#lx for %#lx is a leaf", __func__, l1, va)); in smmu_pmap_l1_to_l2()
146 l2p = PHYS_TO_DMAP(l1 & ~ATTR_MASK); in smmu_pmap_l1_to_l2()
[all …]
/freebsd/crypto/openssl/crypto/rc2/
H A Drc2_local.h18 #define c2ln(c, l1, l2, n) \ argument
21 l1 = l2 = 0; \
36 l1 = ((unsigned long)(*(--(c)))) << 24L; \
39 l1 |= ((unsigned long)(*(--(c)))) << 16L; \
42 l1 |= ((unsigned long)(*(--(c)))) << 8L; \
45 l1 |= ((unsigned long)(*(--(c)))); \
57 #define l2cn(l1, l2, c, n) \ argument
74 *(--(c)) = (unsigned char)(((l1) >> 24L) & 0xff); \
77 *(--(c)) = (unsigned char)(((l1) >> 16L) & 0xff); \
80 *(--(c)) = (unsigned char)(((l1) >> 8L) & 0xff); \
[all …]
/freebsd/crypto/openssl/crypto/bf/
H A Dbf_local.h15 #define n2ln(c, l1, l2, n) \ argument
18 l1 = l2 = 0; \
33 l1 = ((unsigned long)(*(--(c)))); \
36 l1 |= ((unsigned long)(*(--(c)))) << 8; \
39 l1 |= ((unsigned long)(*(--(c)))) << 16; \
42 l1 |= ((unsigned long)(*(--(c)))) << 24; \
47 #define l2nn(l1, l2, c, n) \ argument
64 *(--(c)) = (unsigned char)(((l1)) & 0xff); \
67 *(--(c)) = (unsigned char)(((l1) >> 8) & 0xff); \
70 *(--(c)) = (unsigned char)(((l1) >> 16) & 0xff); \
[all …]
/freebsd/sys/riscv/iommu/
H A Diommu_pmap.c75 #define L1PTE_TO_PHYS(l1) \ argument
76 ((((l1) & ~PTE_HI_MASK) >> PTE_PPN2_S) << L1_SHIFT)
97 pd_entry_t *l1; in pmap_l0_to_l1() local
102 l1 = (pd_entry_t *)PHYS_TO_DMAP(phys); in pmap_l0_to_l1()
104 return (&l1[pmap_l1_index(va)]); in pmap_l0_to_l1()
127 pmap_l1_to_l2(pd_entry_t *l1, vm_offset_t va) in pmap_l1_to_l2() argument
132 phys = PTE_TO_PHYS(pmap_load(l1)); in pmap_l1_to_l2()
141 pd_entry_t *l1; in pmap_l2() local
143 l1 = pmap_l1(pmap, va); in pmap_l2()
144 if (l1 == NULL) in pmap_l2()
[all …]
/freebsd/sys/contrib/openzfs/lib/libspl/
H A Dstrlcat.c34 size_t l1; in strlcat() local
40 l1 = df - dst; in strlcat()
41 if (dstsize == l1) in strlcat()
42 return (l1 + l2); in strlcat()
44 copied = l1 + l2 >= dstsize ? dstsize - l1 - 1 : l2; in strlcat()
45 (void) memcpy(dst + l1, src, copied); in strlcat()
46 dst[l1+copied] = '\0'; in strlcat()
48 return (l1 + l2); in strlcat()
/freebsd/crypto/openssl/test/testutil/
H A Dformat_output.c41 const char *op, const char *m1, size_t l1, in test_fail_string_common() argument
52 l1 = 0; in test_fail_string_common()
55 if (l1 == 0 && l2 == 0) { in test_fail_string_common()
66 if (l1 != l2 || strncmp(m1, m2, l1) != 0) in test_fail_string_common()
69 while (l1 > 0 || l2 > 0) { in test_fail_string_common()
71 if (l1 > 0) { in test_fail_string_common()
72 b1[n1 = l1 > width ? width : l1] = 0; in test_fail_string_common()
113 l1 -= n1; in test_fail_string_common()
129 const char *op, const char *m1, size_t l1, in test_fail_string_message() argument
133 m1, l1, m2, l2); in test_fail_string_message()
[all …]
/freebsd/crypto/openssl/crypto/idea/
H A Didea_local.h20 #define n2ln(c, l1, l2, n) \ argument
23 l1 = l2 = 0; \
38 l1 = ((unsigned long)(*(--(c)))); \
41 l1 |= ((unsigned long)(*(--(c)))) << 8; \
44 l1 |= ((unsigned long)(*(--(c)))) << 16; \
47 l1 |= ((unsigned long)(*(--(c)))) << 24; \
52 #define l2nn(l1, l2, c, n) \ argument
69 *(--(c)) = (unsigned char)(((l1)) & 0xff); \
72 *(--(c)) = (unsigned char)(((l1) >> 8) & 0xff); \
75 *(--(c)) = (unsigned char)(((l1) >> 16) & 0xff); \
[all …]
H A Di_ecb.c29 unsigned long l0, l1, d[2]; in IDEA_ecb_encrypt() local
33 n2l(in, l1); in IDEA_ecb_encrypt()
34 d[1] = l1; in IDEA_ecb_encrypt()
38 l1 = d[1]; in IDEA_ecb_encrypt()
39 l2n(l1, out); in IDEA_ecb_encrypt()
40 l0 = l1 = d[0] = d[1] = 0; in IDEA_ecb_encrypt()
/freebsd/crypto/openssl/crypto/rc5/
H A Drc5_local.h20 #define c2ln(c, l1, l2, n) \ argument
23 l1 = l2 = 0; \
38 l1 = ((unsigned long)(*(--(c)))) << 24L; \
41 l1 |= ((unsigned long)(*(--(c)))) << 16L; \
44 l1 |= ((unsigned long)(*(--(c)))) << 8L; \
47 l1 |= ((unsigned long)(*(--(c)))); \
59 #define l2cn(l1, l2, c, n) \ argument
76 *(--(c)) = (unsigned char)(((l1) >> 24L) & 0xff); \
79 *(--(c)) = (unsigned char)(((l1) >> 16L) & 0xff); \
82 *(--(c)) = (unsigned char)(((l1) >> 8L) & 0xff); \
[all …]
/freebsd/crypto/openssl/crypto/cast/
H A Dcast_local.h15 #define n2ln(c, l1, l2, n) \ argument
18 l1 = l2 = 0; \
33 l1 = ((unsigned long)(*(--(c)))); \
36 l1 |= ((unsigned long)(*(--(c)))) << 8; \
39 l1 |= ((unsigned long)(*(--(c)))) << 16; \
42 l1 |= ((unsigned long)(*(--(c)))) << 24; \
47 #define l2nn(l1, l2, c, n) \ argument
64 *(--(c)) = (unsigned char)(((l1)) & 0xff); \
67 *(--(c)) = (unsigned char)(((l1) >> 8) & 0xff); \
70 *(--(c)) = (unsigned char)(((l1) >> 16) & 0xff); \
[all …]
/freebsd/sys/arm64/vmm/
H A Dvmm_mmu.c113 pt_entry_t *l1; in vmmpmap_release_l1() local
117 l1 = PHYS_TO_DMAP(l0e & ~ATTR_MASK); in vmmpmap_release_l1()
119 if (l1[i] != 0) { in vmmpmap_release_l1()
120 vmmpmap_release_l2(l1[i]); in vmmpmap_release_l1()
160 pt_entry_t new_l0e, l0e, *l1; in vmmpmap_l1_table() local
192 l1 = PHYS_TO_DMAP(l0e & ~ATTR_MASK); in vmmpmap_l1_table()
193 return (l1); in vmmpmap_l1_table()
199 pt_entry_t new_l1e, l1e, *l1, *l2; in vmmpmap_l2_table() local
203 l1 = vmmpmap_l1_table(va); in vmmpmap_l2_table()
204 if (l1 == NULL) in vmmpmap_l2_table()
[all …]
/freebsd/crypto/openssl/include/internal/
H A Dcommon.h110 #define c2ln(c, l1, l2, n) \ argument
113 l1 = l2 = 0; \
124 l1 = ((unsigned long)(*(--(c)))) << 24; \
126 l1 |= ((unsigned long)(*(--(c)))) << 16; \
128 l1 |= ((unsigned long)(*(--(c)))) << 8; \
130 l1 |= ((unsigned long)(*(--(c)))); \
168 #define l2cn(l1, l2, c, n) \ argument
181 *(--(c)) = (unsigned char)(((l1) >> 24) & 0xff); \
183 *(--(c)) = (unsigned char)(((l1) >> 16) & 0xff); \
185 *(--(c)) = (unsigned char)(((l1) >> 8) & 0xff); \
[all …]
/freebsd/crypto/openssl/crypto/des/
H A Ddes_local.h35 #define c2ln(c, l1, l2, n) \ argument
38 l1 = l2 = 0; \
53 l1 = ((DES_LONG)(*(--(c)))) << 24L; \
56 l1 |= ((DES_LONG)(*(--(c)))) << 16L; \
59 l1 |= ((DES_LONG)(*(--(c)))) << 8L; \
62 l1 |= ((DES_LONG)(*(--(c)))); \
72 #define l2cn(l1, l2, c, n) \ argument
89 *(--(c)) = (unsigned char)(((l1) >> 24L) & 0xff); \
92 *(--(c)) = (unsigned char)(((l1) >> 16L) & 0xff); \
95 *(--(c)) = (unsigned char)(((l1) >> 8L) & 0xff); \
[all …]
H A Decb3_enc.c22 register DES_LONG l0, l1; in DES_ecb3_encrypt() local
28 c2l(in, l1); in DES_ecb3_encrypt()
30 ll[1] = l1; in DES_ecb3_encrypt()
36 l1 = ll[1]; in DES_ecb3_encrypt()
38 l2c(l1, out); in DES_ecb3_encrypt()
/freebsd/contrib/sendmail/libmilter/
H A Dsmfi.c45 size_t len, l1, l2, offset; local
55 l1 = strlen(headerf) + 1;
57 len = l1 + l2;
70 (void) memcpy(buf + offset, headerf, l1);
71 (void) memcpy(buf + offset + l1, headerv, l2);
179 size_t len, l0, l1, offset;
193 l1 = strlen(arg) + 1;
194 len += l1;
195 SM_ASSERT(len > l1);
207 l1 = strlen(arg) + 1;
[all …]
/freebsd/crypto/openssl/fuzz/
H A Dbignum.c32 size_t l1 = 0, l2 = 0, l3 = 0; in FuzzerTestOneInput() local
55 l1 = ((buf[0] * len) / 255) % 512; in FuzzerTestOneInput()
57 l2 = ((buf[0] * (len - l1)) / 255) % 512; in FuzzerTestOneInput()
59 l3 = (len - l1 - l2) % 512; in FuzzerTestOneInput()
65 OPENSSL_assert(BN_bin2bn(buf, l1, b1) == b1); in FuzzerTestOneInput()
67 OPENSSL_assert(BN_bin2bn(buf + l1, l2, b2) == b2); in FuzzerTestOneInput()
68 OPENSSL_assert(BN_bin2bn(buf + l1 + l2, l3, b3) == b3); in FuzzerTestOneInput()
/freebsd/lib/libc/tests/locale/
H A Dnewlocale_test.c63 locale_t l1, l2; in do_locale_switch() local
66 l1 = newlocale(LC_ALL_MASK, loc1, NULL); in do_locale_switch()
67 ATF_REQUIRE(l1 != NULL); in do_locale_switch()
68 ATF_REQUIRE(uselocale(l1) != NULL); in do_locale_switch()
80 ATF_REQUIRE(uselocale(l1) != NULL); in do_locale_switch()
83 freelocale(l1); in do_locale_switch()
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_fd.cpp84 uptr l1 = atomic_load(pl1, memory_order_consume); in fddesc() local
85 if (l1 == 0) { in fddesc()
91 if (atomic_compare_exchange_strong(pl1, &l1, (uptr)p, memory_order_acq_rel)) in fddesc()
92 l1 = (uptr)p; in fddesc()
96 FdDesc *fds = reinterpret_cast<FdDesc *>(l1); in fddesc()
149 for (int l1 = 0; l1 < kTableSizeL1; l1++) { in FdOnFork() local
150 FdDesc *tab = (FdDesc*)atomic_load(&fdctx.tab[l1], memory_order_relaxed); in FdOnFork()
161 for (int l1 = 0; l1 < kTableSizeL1; l1++) { in FdLocation() local
162 FdDesc *tab = (FdDesc*)atomic_load(&fdctx.tab[l1], memory_order_relaxed); in FdLocation()
168 *fd = l1 * kTableSizeL1 + l2; in FdLocation()
/freebsd/sys/crypto/des/
H A Ddes_ecb.c117 register DES_LONG l0,l1; in des_ecb3_encrypt() local
123 c2l(in,l1); in des_ecb3_encrypt()
125 ll[1]=l1; in des_ecb3_encrypt()
133 l1=ll[1]; in des_ecb3_encrypt()
135 l2c(l1,out); in des_ecb3_encrypt()
H A Ddes_locl.h74 #define c2ln(c,l1,l2,n) { \ argument
76 l1=l2=0; \
82 case 4: l1 =((DES_LONG)(*(--(c))))<<24L; \
83 case 3: l1|=((DES_LONG)(*(--(c))))<<16L; \
84 case 2: l1|=((DES_LONG)(*(--(c))))<< 8L; \
85 case 1: l1|=((DES_LONG)(*(--(c)))); \
109 #define l2cn(l1,l2,c,n) { \ argument
116 case 4: *(--(c))=(unsigned char)(((l1)>>24L)&0xff); \
117 case 3: *(--(c))=(unsigned char)(((l1)>>16L)&0xff); \
118 case 2: *(--(c))=(unsigned char)(((l1)>> 8L)&0xff); \
[all …]
/freebsd/sys/riscv/riscv/
H A Dpmap.c295 static SYSCTL_NODE(_vm_pmap, OID_AUTO, l1, CTLFLAG_RD | CTLFLAG_MPSAFE, 0,
326 static bool pmap_demote_l1(pmap_t pmap, pd_entry_t *l1, vm_offset_t va);
386 #define L1PTE_TO_PHYS(l1) \ argument
387 ((((l1) & ~PTE_HI_MASK) >> PTE_PPN2_S) << L1_SHIFT)
425 pd_entry_t *l1; in pmap_l0_to_l1() local
429 l1 = PHYS_TO_DMAP(phys); in pmap_l0_to_l1()
431 return (&l1[pmap_l1_index(va)]); in pmap_l0_to_l1()
454 pmap_l1_to_l2(pd_entry_t *l1, vm_offset_t va) in pmap_l1_to_l2() argument
459 phys = PTE_TO_PHYS(pmap_load(l1)); in pmap_l1_to_l2()
468 pd_entry_t *l1; in pmap_l2() local
[all …]

12345678910>>...14