Home
last modified time | relevance | path

Searched full:carry (Results 1 – 25 of 1041) sorted by relevance

12345678910>>...42

/kernel/linux/linux-4.19/net/ipv6/
Dip6_checksum.c13 int carry; in csum_ipv6_magic() local
19 carry = (sum < (__force u32)saddr->s6_addr32[0]); in csum_ipv6_magic()
20 sum += carry; in csum_ipv6_magic()
23 carry = (sum < (__force u32)saddr->s6_addr32[1]); in csum_ipv6_magic()
24 sum += carry; in csum_ipv6_magic()
27 carry = (sum < (__force u32)saddr->s6_addr32[2]); in csum_ipv6_magic()
28 sum += carry; in csum_ipv6_magic()
31 carry = (sum < (__force u32)saddr->s6_addr32[3]); in csum_ipv6_magic()
32 sum += carry; in csum_ipv6_magic()
35 carry = (sum < (__force u32)daddr->s6_addr32[0]); in csum_ipv6_magic()
[all …]
/kernel/linux/linux-5.10/net/ipv6/
Dip6_checksum.c13 int carry; in csum_ipv6_magic() local
19 carry = (sum < (__force u32)saddr->s6_addr32[0]); in csum_ipv6_magic()
20 sum += carry; in csum_ipv6_magic()
23 carry = (sum < (__force u32)saddr->s6_addr32[1]); in csum_ipv6_magic()
24 sum += carry; in csum_ipv6_magic()
27 carry = (sum < (__force u32)saddr->s6_addr32[2]); in csum_ipv6_magic()
28 sum += carry; in csum_ipv6_magic()
31 carry = (sum < (__force u32)saddr->s6_addr32[3]); in csum_ipv6_magic()
32 sum += carry; in csum_ipv6_magic()
35 carry = (sum < (__force u32)daddr->s6_addr32[0]); in csum_ipv6_magic()
[all …]
/kernel/linux/linux-5.10/arch/alpha/lib/
Dcsum_partial_copy.c87 unsigned long carry = 0; in csum_partial_cfu_aligned() local
93 checksum += carry; in csum_partial_cfu_aligned()
97 carry = checksum < word; in csum_partial_cfu_aligned()
102 checksum += carry; in csum_partial_cfu_aligned()
111 carry = checksum < word; in csum_partial_cfu_aligned()
113 checksum += carry; in csum_partial_cfu_aligned()
129 unsigned long word, carry; in csum_partial_cfu_dest_aligned() local
135 carry = 0; in csum_partial_cfu_dest_aligned()
145 checksum += carry; in csum_partial_cfu_dest_aligned()
151 carry = checksum < word; in csum_partial_cfu_dest_aligned()
[all …]
/kernel/linux/linux-4.19/arch/alpha/lib/
Dcsum_partial_copy.c101 unsigned long carry = 0; in csum_partial_cfu_aligned() local
107 checksum += carry; in csum_partial_cfu_aligned()
111 carry = checksum < word; in csum_partial_cfu_aligned()
116 checksum += carry; in csum_partial_cfu_aligned()
124 carry = checksum < word; in csum_partial_cfu_aligned()
126 checksum += carry; in csum_partial_cfu_aligned()
144 unsigned long word, carry; in csum_partial_cfu_dest_aligned() local
149 carry = 0; in csum_partial_cfu_dest_aligned()
158 checksum += carry; in csum_partial_cfu_dest_aligned()
164 carry = checksum < word; in csum_partial_cfu_dest_aligned()
[all …]
Dchecksum.c77 * ways to do the carry, but this is reasonable.
110 unsigned long carry = 0; in do_csum() local
115 result += carry; in do_csum()
117 carry = (w > result); in do_csum()
119 result += carry; in do_csum()
167 /* add in old sum, and carry.. */ in csum_partial()
/kernel/linux/linux-5.10/crypto/
Decc.c219 /* Computes result = in << c, returning carry. Can modify in place
225 u64 carry = 0; in vli_lshift() local
231 result[i] = (temp << shift) | carry; in vli_lshift()
232 carry = temp >> (64 - shift); in vli_lshift()
235 return carry; in vli_lshift()
242 u64 carry = 0; in vli_rshift1() local
248 *vli = (temp >> 1) | carry; in vli_rshift1()
249 carry = temp << 63; in vli_rshift1()
253 /* Computes result = left + right, returning carry. Can modify in place. */
257 u64 carry = 0; in vli_add() local
[all …]
/kernel/linux/linux-4.19/crypto/
Decc.c188 /* Computes result = in << c, returning carry. Can modify in place
194 u64 carry = 0; in vli_lshift() local
200 result[i] = (temp << shift) | carry; in vli_lshift()
201 carry = temp >> (64 - shift); in vli_lshift()
204 return carry; in vli_lshift()
211 u64 carry = 0; in vli_rshift1() local
217 *vli = (temp >> 1) | carry; in vli_rshift1()
218 carry = temp << 63; in vli_rshift1()
222 /* Computes result = left + right, returning carry. Can modify in place. */
226 u64 carry = 0; in vli_add() local
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
Dpio_copy.c169 * Handle carry bytes using shifts and masks.
171 * NOTE: the value the unused portion of carry is expected to always be zero.
181 * "merge" shift - bit shift used to merge with carry bytes. Input is
217 * of pbuf->carry. Other bytes are left as-is. Any previous
218 * value in pbuf->carry is lost.
227 pbuf->carry.val64 = 0; in read_low_bytes()
228 jcopy(&pbuf->carry.val8[0], from, nbytes); in read_low_bytes()
233 * Read nbytes bytes from "from" and put them at the end of pbuf->carry.
234 * It is expected that the extra read does not overfill carry.
243 jcopy(&pbuf->carry.val8[pbuf->carry_bytes], from, nbytes); in read_extra_bytes()
[all …]
/kernel/linux/linux-4.19/drivers/infiniband/hw/hfi1/
Dpio_copy.c169 * Handle carry bytes using shifts and masks.
171 * NOTE: the value the unused portion of carry is expected to always be zero.
181 * "merge" shift - bit shift used to merge with carry bytes. Input is
218 * of pbuf->carry. Other bytes are left as-is. Any previous
219 * value in pbuf->carry is lost.
228 pbuf->carry.val64 = 0; in read_low_bytes()
229 jcopy(&pbuf->carry.val8[0], from, nbytes); in read_low_bytes()
234 * Read nbytes bytes from "from" and put them at the end of pbuf->carry.
235 * It is expected that the extra read does not overfill carry.
244 jcopy(&pbuf->carry.val8[pbuf->carry_bytes], from, nbytes); in read_extra_bytes()
[all …]
/kernel/linux/linux-5.10/arch/sparc/lib/
Dudivdi3.S26 addx %i0,%i0,%i0 ! so this cannot give carry
38 ! Got carry from n. Subtract next step to cancel this carry.
64 addx %o4,%o4,%o4 ! so this cannot give carry
76 ! Got carry from n. Subtract next step to cancel this carry.
90 addx %i0,%i0,%i0 ! so this cannot give carry
102 ! Got carry from n. Subtract next step to cancel this carry.
169 addx %o4,%o4,%o4 ! so this cannot give carry
181 ! Got carry from n. Subtract next step to cancel this carry.
Ddivdi3.S50 addx %i0,%i0,%i0 ! so this cannot give carry
62 ! Got carry from n. Subtract next step to cancel this carry.
86 addx %g3,%g3,%g3 ! so this cannot give carry
98 ! Got carry from n. Subtract next step to cancel this carry.
110 addx %i0,%i0,%i0 ! so this cannot give carry
122 ! Got carry from n. Subtract next step to cancel this carry.
185 addx %o2,%o2,%o2 ! so this cannot give carry
197 ! Got carry from n. Subtract next step to cancel this carry.
/kernel/linux/linux-5.10/arch/mips/include/asm/
Dchecksum.h102 int carry; in ip_fast_csum() local
106 carry = (csum < word[1]); in ip_fast_csum()
107 csum += carry; in ip_fast_csum()
110 carry = (csum < word[2]); in ip_fast_csum()
111 csum += carry; in ip_fast_csum()
114 carry = (csum < word[3]); in ip_fast_csum()
115 csum += carry; in ip_fast_csum()
120 carry = (csum < *word); in ip_fast_csum()
121 csum += carry; in ip_fast_csum()
241 " addu %0, $1 # Add final carry\n" in csum_ipv6_magic()
/kernel/linux/linux-4.19/arch/sparc/lib/
Dudivdi3.S38 addx %i0,%i0,%i0 ! so this cannot give carry
50 ! Got carry from n. Subtract next step to cancel this carry.
76 addx %o4,%o4,%o4 ! so this cannot give carry
88 ! Got carry from n. Subtract next step to cancel this carry.
102 addx %i0,%i0,%i0 ! so this cannot give carry
114 ! Got carry from n. Subtract next step to cancel this carry.
181 addx %o4,%o4,%o4 ! so this cannot give carry
193 ! Got carry from n. Subtract next step to cancel this carry.
Ddivdi3.S62 addx %i0,%i0,%i0 ! so this cannot give carry
74 ! Got carry from n. Subtract next step to cancel this carry.
98 addx %g3,%g3,%g3 ! so this cannot give carry
110 ! Got carry from n. Subtract next step to cancel this carry.
122 addx %i0,%i0,%i0 ! so this cannot give carry
134 ! Got carry from n. Subtract next step to cancel this carry.
197 addx %o2,%o2,%o2 ! so this cannot give carry
209 ! Got carry from n. Subtract next step to cancel this carry.
/kernel/linux/linux-4.19/arch/mips/include/asm/
Dchecksum.h136 int carry; in ip_fast_csum() local
140 carry = (csum < word[1]); in ip_fast_csum()
141 csum += carry; in ip_fast_csum()
144 carry = (csum < word[2]); in ip_fast_csum()
145 csum += carry; in ip_fast_csum()
148 carry = (csum < word[3]); in ip_fast_csum()
149 csum += carry; in ip_fast_csum()
154 carry = (csum < *word); in ip_fast_csum()
155 csum += carry; in ip_fast_csum()
275 " addu %0, $1 # Add final carry\n" in csum_ipv6_magic()
/kernel/linux/linux-5.10/lib/
Dchecksum.c41 /* add up carry.. */ in from32to16()
71 unsigned int carry = 0; in do_csum() local
75 result += carry; in do_csum()
77 carry = (w > result); in do_csum()
79 result += carry; in do_csum()
130 /* add in old sum, and carry.. */ in csum_partial()
153 /* add up carry.. */ in from64to32()
/kernel/linux/linux-4.19/arch/x86/mm/
Dphysaddr.c18 /* use the carry flag to determine if x was < __START_KERNEL_map */ in __phys_addr()
26 /* carry flag will be set if starting x was >= PAGE_OFFSET */ in __phys_addr()
38 /* only check upper bounds since lower bounds will trigger carry */ in __phys_addr_symbol()
50 /* use the carry flag to determine if x was < __START_KERNEL_map */ in __virt_addr_valid()
59 /* carry flag will be set if starting x was >= PAGE_OFFSET */ in __virt_addr_valid()
/kernel/linux/linux-5.10/arch/x86/mm/
Dphysaddr.c19 /* use the carry flag to determine if x was < __START_KERNEL_map */ in __phys_addr()
27 /* carry flag will be set if starting x was >= PAGE_OFFSET */ in __phys_addr()
39 /* only check upper bounds since lower bounds will trigger carry */ in __phys_addr_symbol()
51 /* use the carry flag to determine if x was < __START_KERNEL_map */ in __virt_addr_valid()
60 /* carry flag will be set if starting x was >= PAGE_OFFSET */ in __virt_addr_valid()
/kernel/linux/linux-4.19/arch/ia64/lib/
Dcsum_partial_copy.c29 /* add up carry.. */ in from64to16()
66 unsigned long carry = 0; in do_csum_c() local
71 result += carry; in do_csum_c()
73 carry = (w > result); in do_csum_c()
75 result += carry; in do_csum_c()
125 /* add in old sum, and carry.. */ in csum_partial_copy_from_user()
/kernel/linux/linux-5.10/arch/ia64/lib/
Dcsum_partial_copy.c29 /* add up carry.. */ in from64to16()
66 unsigned long carry = 0; in do_csum_c() local
71 result += carry; in do_csum_c()
73 carry = (w > result); in do_csum_c()
75 result += carry; in do_csum_c()
/kernel/linux/linux-4.19/arch/m68k/fpsp040/
Dsrem_mod.S206 clrl %d6 | ...D6 := carry <- 0
210 |..(Carry,D1,D2) is R
223 tstl %d6 | ...test carry bit
226 |..At this point carry = 0, R = (D1,D2), Y = (D4,D5)
240 |..If Carry is set, then Y < (Carry,D1,D2) < 2Y. Otherwise, Carry = 0
244 clrl %d6 | ...clear carry
248 |..At this point, Carry=0, R < Y. R = 2^(k-L)X - QY; k+j = L; j >= 0.
254 roxll #1,%d1 | ...hi(R) = 2hi(R) + carry
255 scs %d6 | ...set Carry if 2(R) overflows
258 |..At this point, R=(Carry,D1,D2) = 2^(k-L)X - QY, j+k=L, j >= 0, R < 2Y.
[all …]
/kernel/linux/linux-5.10/arch/m68k/fpsp040/
Dsrem_mod.S206 clrl %d6 | ...D6 := carry <- 0
210 |..(Carry,D1,D2) is R
223 tstl %d6 | ...test carry bit
226 |..At this point carry = 0, R = (D1,D2), Y = (D4,D5)
240 |..If Carry is set, then Y < (Carry,D1,D2) < 2Y. Otherwise, Carry = 0
244 clrl %d6 | ...clear carry
248 |..At this point, Carry=0, R < Y. R = 2^(k-L)X - QY; k+j = L; j >= 0.
254 roxll #1,%d1 | ...hi(R) = 2hi(R) + carry
255 scs %d6 | ...set Carry if 2(R) overflows
258 |..At this point, R=(Carry,D1,D2) = 2^(k-L)X - QY, j+k=L, j >= 0, R < 2Y.
[all …]
/kernel/linux/linux-4.19/lib/
Dchecksum.c45 /* add up carry.. */ in from32to16()
75 unsigned int carry = 0; in do_csum() local
79 result += carry; in do_csum()
81 carry = (w > result); in do_csum()
83 result += carry; in do_csum()
134 /* add in old sum, and carry.. */ in csum_partial()
188 /* add up carry.. */ in from64to32()
/kernel/linux/linux-5.10/block/
Dblk-crypto.c126 * carry 1 into the next limb. Else the carry is 0. in bio_crypt_dun_increment()
152 unsigned int carry = bytes >> bc->bc_key->data_unit_size_bits; in bio_crypt_dun_is_contiguous() local
155 if (bc->bc_dun[i] + carry != next_dun[i]) in bio_crypt_dun_is_contiguous()
159 * carry 1 into the next limb. Else the carry is 0. in bio_crypt_dun_is_contiguous()
161 if ((bc->bc_dun[i] + carry) < carry) in bio_crypt_dun_is_contiguous()
162 carry = 1; in bio_crypt_dun_is_contiguous()
164 carry = 0; in bio_crypt_dun_is_contiguous()
168 return carry == 0; in bio_crypt_dun_is_contiguous()
/kernel/linux/linux-5.10/arch/parisc/include/asm/
Dchecksum.h67 a possible carry from adding the two 16-bit halves, in csum_fold()
68 will carry from the lower half into the upper half, in csum_fold()
125 ** But add insn's get serialized waiting for the carry bit. in csum_ipv6_magic()
137 " add,dc %3, %0, %0\n" /* fold in proto+len | carry bit */ in csum_ipv6_magic()
141 " addc 0, %0, %0\n" /* add carry */ in csum_ipv6_magic()
147 ** Insn stream is serialized on the carry bit here too. in csum_ipv6_magic()
166 " addc %3, %0, %0\n" /* fold in proto+len, catch carry */ in csum_ipv6_magic()

12345678910>>...42