Searched refs:leftover (Results 1 - 25 of 29) sorted by relevance

12

/linux-master/tools/testing/selftests/net/tcp_ao/lib/
H A Dutils.c9 size_t leftover = buflen % sizeof(int); local
17 if (leftover) {
20 memcpy(buf + buflen - leftover, &tmp, leftover);
/linux-master/drivers/comedi/drivers/
H A Dni_labpc_isadma.c81 unsigned int leftover; local
98 leftover = 0;
100 leftover = devpriv->count - nsamples;
101 if (leftover > max_samples)
102 leftover = max_samples;
106 leftover = max_samples;
108 desc->size = comedi_samples_to_bytes(s, leftover);
H A Dni_at_a2150.c140 unsigned int max_points, num_points, residue, leftover; local
177 leftover = 0;
179 leftover = comedi_bytes_to_samples(s, desc->size);
181 leftover = devpriv->count - max_points;
182 if (leftover > max_points)
183 leftover = max_points;
191 leftover = 0;
207 if (leftover) {
208 desc->size = comedi_samples_to_bytes(s, leftover);
/linux-master/drivers/net/ethernet/cavium/liquidio/
H A Docteon_console.c446 /* We need to output 'line', prefaced by 'leftover'.
448 * output 'leftover' by itself (in the case of nothing
453 if (console->leftover[0] &&
454 (line != console->leftover)) {
457 console->leftover,
459 console->leftover[0] = '\0';
472 len = strlen(console->leftover);
473 strscpy(&console->leftover[len], line,
474 sizeof(console->leftover) - len + 1);
519 (console->leftover[
[all...]
H A Docteon_device.h222 char leftover[OCTEON_CONSOLE_MAX_READ_BYTES]; member in struct:octeon_console
/linux-master/fs/xfs/libxfs/
H A Dxfs_ag_resv.c397 xfs_extlen_t leftover; local
419 leftover = min_t(xfs_extlen_t, len, resv->ar_asked - resv->ar_reserved);
420 resv->ar_reserved += leftover;
426 if (len > leftover)
427 xfs_trans_mod_sb(tp, XFS_TRANS_SB_FDBLOCKS, len - leftover);
/linux-master/mm/
H A Dpage_reporting.c250 /* Rotate any leftover pages to the head of the freelist */
263 unsigned int order, mt, leftover, offset = PAGE_REPORTING_CAPACITY; local
292 /* report the leftover pages before going idle */
293 leftover = PAGE_REPORTING_CAPACITY - offset;
294 if (leftover) {
296 err = prdev->report(prdev, sgl, leftover);
300 page_reporting_drain(prdev, sgl, leftover, !err);
/linux-master/drivers/crypto/nx/
H A Dnx-aes-xcbc.c174 u32 to_process = 0, leftover, total; local
187 * 2: > AES_BLOCK_SIZE: process X blocks, copy in leftover
216 leftover = total - to_process;
223 if (!leftover) {
225 leftover = AES_BLOCK_SIZE;
281 } while (leftover > AES_BLOCK_SIZE);
283 /* copy the leftover back into the state struct */
284 memcpy(sctx->buffer, data, leftover);
285 sctx->count = leftover;
H A Dnx-sha512.c68 u64 to_process, leftover = 0, total; local
79 * 2: >= SHA512_BLOCK_SIZE: process X blocks, copy in leftover
127 * for leftover data. (see above)
147 leftover = total - to_process;
172 } while (leftover >= SHA512_BLOCK_SIZE);
174 /* copy the leftover back into the state struct */
175 if (leftover)
176 memcpy(sctx->buf, data, leftover);
H A Dnx-sha256.c68 u64 to_process = 0, leftover, total; local
79 * 2: >= SHA256_BLOCK_SIZE: process X blocks, copy in leftover
128 * for leftover data. (see above)
143 leftover = total - to_process;
168 } while (leftover >= SHA256_BLOCK_SIZE);
170 /* copy the leftover back into the state struct */
171 if (leftover)
172 memcpy(sctx->buf, data, leftover);
/linux-master/drivers/crypto/
H A Dpadlock-sha.c84 unsigned int leftover; local
94 leftover = ((state.count - 1) & (SHA1_BLOCK_SIZE - 1)) + 1;
95 space = SHA1_BLOCK_SIZE - leftover;
105 memcpy(state.buffer + leftover, in, count);
107 count += leftover;
145 unsigned int leftover; local
155 leftover = ((state.count - 1) & (SHA256_BLOCK_SIZE - 1)) + 1;
156 space = SHA256_BLOCK_SIZE - leftover;
166 memcpy(state.buf + leftover, in, count);
168 count += leftover;
[all...]
/linux-master/drivers/mmc/host/
H A Dmmc_spi.c222 u8 leftover = 0; local
286 leftover = rotator;
336 rotator = leftover << 8;
346 rotator = leftover << 8;
694 u8 leftover; local
719 leftover = status << 1;
737 *cp++ = leftover | (temp >> bitshift);
738 leftover = temp << bitright;
742 *cp++ = leftover | (temp >> bitshift);
743 leftover
[all...]
/linux-master/drivers/scsi/aic94xx/
H A Daic94xx_tmf.c327 int leftover; local
339 leftover = wait_for_completion_timeout(&completion,
344 if (leftover < 1)
394 int leftover; local
505 leftover =
509 if (leftover < 1)
/linux-master/drivers/hwmon/
H A Dfam15h_power.c206 signed long leftover; local
223 leftover = schedule_timeout_interruptible(msecs_to_jiffies(data->power_period));
224 if (leftover)
H A Dibmaem.c834 signed long leftover; local
841 leftover = schedule_timeout_interruptible(
844 if (leftover) {
/linux-master/arch/s390/kvm/
H A Dpv.c39 * @list: list head for the list of leftover VMs
40 * @old_gmap_table: the gmap table of the leftover protected VM
41 * @handle: the handle of the leftover protected VM
42 * @stor_var: pointer to the variable storage of the leftover protected VM
43 * @stor_base: address of the base storage of the leftover protected VM
202 * kvm_s390_pv_dispose_one_leftover - Clean up one leftover protected VM.
203 * @kvm: the KVM that was associated with this leftover protected VM
204 * @leftover: details about the leftover protected VM that needs a clean up
208 * Destroy one leftover protecte
214 kvm_s390_pv_dispose_one_leftover(struct kvm *kvm, struct pv_vm_to_be_destroyed *leftover, u16 *rc, u16 *rrc) argument
[all...]
/linux-master/drivers/net/ethernet/intel/ice/
H A Dice_xsk.c523 u16 leftover, i, tail_bumps; local
526 leftover = count - (tail_bumps * rx_thresh);
531 return __ice_alloc_rx_bufs_zc(rx_ring, leftover);
1028 u32 batched, leftover, i; local
1031 leftover = nb_pkts & (PKTS_PER_BATCH - 1);
1034 for (; i < batched + leftover; i++)
/linux-master/drivers/pcmcia/
H A Dds.c321 static void pcmcia_card_remove(struct pcmcia_socket *s, struct pcmcia_device *leftover) argument
326 dev_dbg(leftover ? &leftover->dev : &s->dev,
328 leftover ? leftover->devname : "");
331 if (!leftover)
337 /* unregister all pcmcia_devices registered with this socket, except leftover */
339 if (p_dev == leftover)
/linux-master/drivers/net/ethernet/intel/i40e/
H A Di40e_xsk.c576 u32 batched, leftover, i; local
579 leftover = nb_pkts & (PKTS_PER_BATCH - 1);
582 for (i = batched; i < batched + leftover; i++)
/linux-master/drivers/mtd/maps/
H A Dvmu-flash.c358 int index = 0, retval, partition, leftover, numblocks; local
382 leftover = card->blocklen - vblock->ofs;
392 vblock->ofs, leftover);
393 index += leftover;
/linux-master/arch/x86/kernel/cpu/microcode/
H A Damd.c277 * but is present in the leftover file length so we need to subtract
746 static int verify_and_add_patch(u8 family, u8 *fw, unsigned int leftover, argument
754 ret = verify_patch(family, fw, leftover, patch_size);
/linux-master/arch/sparc/lib/
H A DM7memset.S337 and %o2, 3, %o2 ! leftover count, if any
/linux-master/arch/m68k/kernel/
H A Dentry.S104 movel %d0,%sp | discard the leftover junk
/linux-master/tools/testing/selftests/net/
H A Dipsec.c121 size_t leftover = buflen % sizeof(int); local
129 if (leftover) {
132 memcpy(buf + buflen - leftover, &tmp, leftover);
/linux-master/drivers/vfio/
H A Dvfio_iommu_type1.c1155 unsigned long leftover; local
1168 if (copy_from_user(&leftover,
1170 sizeof(leftover)))
1173 bitmap_or(dma->bitmap, dma->bitmap, &leftover, shift);

Completed in 279 milliseconds

12