Home
last modified time | relevance | path

Searched refs:leftover (Results 1 – 25 of 35) sorted by relevance

12

/linux-6.6.21/drivers/comedi/drivers/
Dni_labpc_isadma.c81 unsigned int leftover; in labpc_drain_dma() local
98 leftover = 0; in labpc_drain_dma()
100 leftover = devpriv->count - nsamples; in labpc_drain_dma()
101 if (leftover > max_samples) in labpc_drain_dma()
102 leftover = max_samples; in labpc_drain_dma()
106 leftover = max_samples; in labpc_drain_dma()
108 desc->size = comedi_samples_to_bytes(s, leftover); in labpc_drain_dma()
Dni_at_a2150.c140 unsigned int max_points, num_points, residue, leftover; in a2150_interrupt() local
177 leftover = 0; in a2150_interrupt()
179 leftover = comedi_bytes_to_samples(s, desc->size); in a2150_interrupt()
181 leftover = devpriv->count - max_points; in a2150_interrupt()
182 if (leftover > max_points) in a2150_interrupt()
183 leftover = max_points; in a2150_interrupt()
191 leftover = 0; in a2150_interrupt()
207 if (leftover) { in a2150_interrupt()
208 desc->size = comedi_samples_to_bytes(s, leftover); in a2150_interrupt()
/linux-6.6.21/drivers/net/ethernet/cavium/liquidio/
Docteon_console.c453 if (console->leftover[0] && in output_console_line()
454 (line != console->leftover)) { in output_console_line()
457 console->leftover, in output_console_line()
459 console->leftover[0] = '\0'; in output_console_line()
472 len = strlen(console->leftover); in output_console_line()
473 strscpy(&console->leftover[len], line, in output_console_line()
474 sizeof(console->leftover) - len + 1); in output_console_line()
519 (console->leftover[0])) { in check_console()
521 len = strlen(console->leftover); in check_console()
522 console->leftover[len] = '\n'; in check_console()
[all …]
Docteon_device.h222 char leftover[OCTEON_CONSOLE_MAX_READ_BYTES]; member
/linux-6.6.21/drivers/crypto/
Dpadlock-sha.c84 unsigned int leftover; in padlock_sha1_finup() local
94 leftover = ((state.count - 1) & (SHA1_BLOCK_SIZE - 1)) + 1; in padlock_sha1_finup()
95 space = SHA1_BLOCK_SIZE - leftover; in padlock_sha1_finup()
105 memcpy(state.buffer + leftover, in, count); in padlock_sha1_finup()
107 count += leftover; in padlock_sha1_finup()
145 unsigned int leftover; in padlock_sha256_finup() local
155 leftover = ((state.count - 1) & (SHA256_BLOCK_SIZE - 1)) + 1; in padlock_sha256_finup()
156 space = SHA256_BLOCK_SIZE - leftover; in padlock_sha256_finup()
166 memcpy(state.buf + leftover, in, count); in padlock_sha256_finup()
168 count += leftover; in padlock_sha256_finup()
/linux-6.6.21/drivers/crypto/nx/
Dnx-aes-xcbc.c174 u32 to_process = 0, leftover, total; in nx_xcbc_update() local
216 leftover = total - to_process; in nx_xcbc_update()
223 if (!leftover) { in nx_xcbc_update()
225 leftover = AES_BLOCK_SIZE; in nx_xcbc_update()
281 } while (leftover > AES_BLOCK_SIZE); in nx_xcbc_update()
284 memcpy(sctx->buffer, data, leftover); in nx_xcbc_update()
285 sctx->count = leftover; in nx_xcbc_update()
Dnx-sha256.c68 u64 to_process = 0, leftover, total; in nx_sha256_update() local
143 leftover = total - to_process; in nx_sha256_update()
168 } while (leftover >= SHA256_BLOCK_SIZE); in nx_sha256_update()
171 if (leftover) in nx_sha256_update()
172 memcpy(sctx->buf, data, leftover); in nx_sha256_update()
Dnx-sha512.c68 u64 to_process, leftover = 0, total; in nx_sha512_update() local
147 leftover = total - to_process; in nx_sha512_update()
172 } while (leftover >= SHA512_BLOCK_SIZE); in nx_sha512_update()
175 if (leftover) in nx_sha512_update()
176 memcpy(sctx->buf, data, leftover); in nx_sha512_update()
/linux-6.6.21/mm/
Dpage_reporting.c263 unsigned int order, mt, leftover, offset = PAGE_REPORTING_CAPACITY; in page_reporting_process_zone() local
293 leftover = PAGE_REPORTING_CAPACITY - offset; in page_reporting_process_zone()
294 if (leftover) { in page_reporting_process_zone()
296 err = prdev->report(prdev, sgl, leftover); in page_reporting_process_zone()
300 page_reporting_drain(prdev, sgl, leftover, !err); in page_reporting_process_zone()
/linux-6.6.21/fs/xfs/libxfs/
Dxfs_ag_resv.c397 xfs_extlen_t leftover; in xfs_ag_resv_free_extent() local
417 leftover = min_t(xfs_extlen_t, len, resv->ar_asked - resv->ar_reserved); in xfs_ag_resv_free_extent()
418 resv->ar_reserved += leftover; in xfs_ag_resv_free_extent()
424 if (len > leftover) in xfs_ag_resv_free_extent()
425 xfs_trans_mod_sb(tp, XFS_TRANS_SB_FDBLOCKS, len - leftover); in xfs_ag_resv_free_extent()
/linux-6.6.21/drivers/mmc/host/
Dmmc_spi.c223 u8 leftover = 0; in mmc_spi_response_get() local
287 leftover = rotator; in mmc_spi_response_get()
337 rotator = leftover << 8; in mmc_spi_response_get()
347 rotator = leftover << 8; in mmc_spi_response_get()
698 u8 leftover; in mmc_spi_readblock() local
723 leftover = status << 1; in mmc_spi_readblock()
741 *cp++ = leftover | (temp >> bitshift); in mmc_spi_readblock()
742 leftover = temp << bitright; in mmc_spi_readblock()
746 *cp++ = leftover | (temp >> bitshift); in mmc_spi_readblock()
747 leftover = temp << bitright; in mmc_spi_readblock()
[all …]
/linux-6.6.21/drivers/scsi/aic94xx/
Daic94xx_tmf.c327 int leftover; in asd_clear_nexus() local
339 leftover = wait_for_completion_timeout(&completion, in asd_clear_nexus()
344 if (leftover < 1) in asd_clear_nexus()
394 int leftover; in asd_abort_task() local
505 leftover = in asd_abort_task()
509 if (leftover < 1) in asd_abort_task()
/linux-6.6.21/arch/s390/kvm/
Dpv.c215 struct pv_vm_to_be_destroyed *leftover, in kvm_s390_pv_dispose_one_leftover() argument
221 if (!leftover->handle) in kvm_s390_pv_dispose_one_leftover()
223 cc = uv_cmd_nodata(leftover->handle, UVC_CMD_DESTROY_SEC_CONF, rc, rrc); in kvm_s390_pv_dispose_one_leftover()
234 free_pages(leftover->stor_base, get_order(uv_info.guest_base_stor_len)); in kvm_s390_pv_dispose_one_leftover()
235 free_pages(leftover->old_gmap_table, CRST_ALLOC_ORDER); in kvm_s390_pv_dispose_one_leftover()
236 vfree(leftover->stor_var); in kvm_s390_pv_dispose_one_leftover()
/linux-6.6.21/drivers/hwmon/
Dfam15h_power.c207 signed long leftover; in power1_average_show() local
224 leftover = schedule_timeout_interruptible(msecs_to_jiffies(data->power_period)); in power1_average_show()
225 if (leftover) in power1_average_show()
Dibmaem.c834 signed long leftover; in aem_show_power() local
841 leftover = schedule_timeout_interruptible( in aem_show_power()
844 if (leftover) { in aem_show_power()
/linux-6.6.21/drivers/net/ethernet/intel/ice/
Dice_xsk.c537 u16 leftover, i, tail_bumps; in ice_alloc_rx_bufs_zc() local
540 leftover = count - (tail_bumps * rx_thresh); in ice_alloc_rx_bufs_zc()
545 return __ice_alloc_rx_bufs_zc(rx_ring, leftover); in ice_alloc_rx_bufs_zc()
1046 u32 batched, leftover, i; in ice_fill_tx_hw_ring() local
1049 leftover = nb_pkts & (PKTS_PER_BATCH - 1); in ice_fill_tx_hw_ring()
1052 for (; i < batched + leftover; i++) in ice_fill_tx_hw_ring()
/linux-6.6.21/drivers/pcmcia/
Dds.c321 static void pcmcia_card_remove(struct pcmcia_socket *s, struct pcmcia_device *leftover) in pcmcia_card_remove() argument
326 dev_dbg(leftover ? &leftover->dev : &s->dev, in pcmcia_card_remove()
328 leftover ? leftover->devname : ""); in pcmcia_card_remove()
331 if (!leftover) in pcmcia_card_remove()
339 if (p_dev == leftover) in pcmcia_card_remove()
/linux-6.6.21/drivers/mtd/maps/
Dvmu-flash.c358 int index = 0, retval, partition, leftover, numblocks; in vmu_flash_read() local
382 leftover = card->blocklen - vblock->ofs; in vmu_flash_read()
392 vblock->ofs, leftover); in vmu_flash_read()
393 index += leftover; in vmu_flash_read()
/linux-6.6.21/drivers/net/ethernet/intel/i40e/
Di40e_xsk.c581 u32 batched, leftover, i; in i40e_fill_tx_hw_ring() local
584 leftover = nb_pkts & (PKTS_PER_BATCH - 1); in i40e_fill_tx_hw_ring()
587 for (i = batched; i < batched + leftover; i++) in i40e_fill_tx_hw_ring()
/linux-6.6.21/arch/x86/kernel/cpu/microcode/
Damd.c779 static int verify_and_add_patch(u8 family, u8 *fw, unsigned int leftover, in verify_and_add_patch() argument
787 ret = verify_patch(family, fw, leftover, patch_size, false); in verify_and_add_patch()
/linux-6.6.21/arch/sparc/lib/
DM7memset.S337 and %o2, 3, %o2 ! leftover count, if any
/linux-6.6.21/arch/m68k/kernel/
Dentry.S107 movel %d0,%sp | discard the leftover junk
/linux-6.6.21/tools/testing/selftests/net/
Dipsec.c121 size_t leftover = buflen % sizeof(int); in randomize_buffer() local
129 if (leftover) { in randomize_buffer()
132 memcpy(buf + buflen - leftover, &tmp, leftover); in randomize_buffer()
/linux-6.6.21/drivers/vfio/
Dvfio_iommu_type1.c1167 unsigned long leftover; in update_user_bitmap() local
1180 if (copy_from_user(&leftover, in update_user_bitmap()
1182 sizeof(leftover))) in update_user_bitmap()
1185 bitmap_or(dma->bitmap, dma->bitmap, &leftover, shift); in update_user_bitmap()
/linux-6.6.21/include/linux/
Dtrace_events.h120 int leftover; member

12