Searched refs:steal (Results 1 - 92 of 92) sorted by relevance

/linux-4.4.14/drivers/media/pci/ivtv/
H A Divtv-queue.c107 If 'steal' != NULL, then buffers may also taken from that queue if
111 also cleared if buffers need to be taken from the 'steal' queue and
116 bytesused value. For the 'steal' queue the total available buffer
122 int ivtv_queue_move(struct ivtv_stream *s, struct ivtv_queue *from, struct ivtv_queue *steal, ivtv_queue_move() argument
138 bytes_steal = (from_free && steal) ? steal->length : 0; ivtv_queue_move()
145 struct ivtv_buffer *buf = list_entry(steal->list.prev, struct ivtv_buffer, list); ivtv_queue_move()
148 /* move buffers from the tail of the 'steal' queue to the tail of the ivtv_queue_move()
153 list_move_tail(steal->list.prev, &from->list); ivtv_queue_move()
155 steal->buffers--; ivtv_queue_move()
156 steal->length -= s->buf_size; ivtv_queue_move()
157 steal->bytesused -= buf->bytesused - buf->readpos; ivtv_queue_move()
162 if (list_empty(&steal->list)) ivtv_queue_move()
164 buf = list_entry(steal->list.prev, struct ivtv_buffer, list); ivtv_queue_move()
H A Divtv-queue.h74 int ivtv_queue_move(struct ivtv_stream *s, struct ivtv_queue *from, struct ivtv_queue *steal,
/linux-4.4.14/arch/arm/mm/
H A Dfault.h5 * Fault status register encodings. We steal bit 31 for our own purposes.
/linux-4.4.14/fs/proc/
H A Dstat.c84 u64 user, nice, system, idle, iowait, irq, softirq, steal; show_stat() local
92 irq = softirq = steal = 0; show_stat()
105 steal += kcpustat_cpu(i).cpustat[CPUTIME_STEAL]; for_each_possible_cpu()
128 seq_put_decimal_ull(p, ' ', cputime64_to_clock_t(steal));
142 steal = kcpustat_cpu(i).cpustat[CPUTIME_STEAL]; for_each_online_cpu()
153 seq_put_decimal_ull(p, ' ', cputime64_to_clock_t(steal)); for_each_online_cpu()
/linux-4.4.14/include/linux/
H A Dpercpu_ida.h27 * steal_tags() uses this to decide when to steal tags, and which cpus
39 * When we go to steal tags from another cpu (see steal_tags()),
41 * time we steal is a bit easier and more or less equivalent:
H A Dpipe_fs_i.h68 * ->steal()
75 * same goes for ->steal(). See below for the meaning of each
104 * ->steal() returns 0 for success, in which case the contents
110 int (*steal)(struct pipe_inode_info *, struct pipe_buffer *); member in struct:pipe_buf_operations
/linux-4.4.14/arch/x86/include/uapi/asm/
H A Dkvm_para.h45 __u64 steal; member in struct:kvm_steal_time
/linux-4.4.14/arch/s390/kernel/
H A Dvtime.c98 u64 timer, clock, user, system, steal; do_account_vtime() local
141 steal = S390_lowcore.steal_timer; do_account_vtime()
142 if ((s64) steal > 0) { do_account_vtime()
144 account_steal_time(steal); do_account_vtime()
/linux-4.4.14/arch/powerpc/mm/
H A Dmmu_context_nohash.c98 * we cannot steal active contexts steal_context_smp()
106 pr_hardcont(" | steal %d from 0x%p", id, mm); steal_context_smp()
149 pr_hardcont(" | steal %d from 0x%p", id, mm); steal_all_contexts()
184 pr_hardcont(" | steal %d from 0x%p", id, mm); steal_context_up()
269 /* No more free contexts, let's try to steal one */ switch_mmu_context()
441 * should normally never have to steal though the facility is mmu_context_init()
/linux-4.4.14/drivers/gpu/drm/radeon/
H A Dradeon_object.c596 int steal; radeon_bo_get_surface_reg() local
610 steal = -1; radeon_bo_get_surface_reg()
619 steal = i; radeon_bo_get_surface_reg()
624 if (steal == -1) radeon_bo_get_surface_reg()
627 reg = &rdev->surface_regs[steal]; radeon_bo_get_surface_reg()
630 DRM_DEBUG("stealing surface reg %d from %p\n", steal, old_object); radeon_bo_get_surface_reg()
633 i = steal; radeon_bo_get_surface_reg()
/linux-4.4.14/kernel/sched/
H A Dcputime.c261 u64 steal; steal_account_process_tick() local
264 steal = paravirt_steal_clock(smp_processor_id()); steal_account_process_tick()
265 steal -= this_rq()->prev_steal_time; steal_account_process_tick()
268 * steal is in nsecs but our caller is expecting steal steal_account_process_tick()
272 steal_jiffies = nsecs_to_jiffies(steal); steal_account_process_tick()
490 * Account multiple ticks of steal time.
H A Dcore.c869 s64 steal = 0, irq_delta = 0; update_rq_clock_task() local
897 steal = paravirt_steal_clock(cpu_of(rq)); update_rq_clock_task()
898 steal -= rq->prev_steal_time_rq; update_rq_clock_task()
900 if (unlikely(steal > delta)) update_rq_clock_task()
901 steal = delta; update_rq_clock_task()
903 rq->prev_steal_time_rq += steal; update_rq_clock_task()
904 delta -= steal; update_rq_clock_task()
911 if ((irq_delta + steal) && sched_feat(NONTASK_CAPACITY)) update_rq_clock_task()
912 sched_rt_avg_update(rq, irq_delta + steal); update_rq_clock_task()
H A Drt.c658 * Either all rqs have inf runtime and there's nothing to steal do_balance_runtime()
H A Dfair.c3882 * expired/exceeded, otherwise it may be allowed to steal additional ticks of
5781 * We don't want to steal all, otherwise we may be treated likewise, detach_tasks()
5829 * We only want to steal up to the prescribed amount of detach_tasks()
/linux-4.4.14/arch/x86/kernel/
H A Dkvm.c67 early_param("no-steal-acc", parse_no_stealacc);
404 u64 steal; kvm_steal_clock() local
412 steal = src->steal; kvm_steal_clock()
416 return steal; kvm_steal_clock()
H A Dmpparse.c890 /* steal 16 bytes from [0, 1k) */ update_mp_table()
/linux-4.4.14/kernel/locking/
H A Drwsem-xadd.c50 * Note: writer can attempt to steal lock for this count by adding
66 * steal the lock.
134 * to be able to steal it. Readers, on the other hand, __rwsem_do_wake()
141 /* Writers might steal the lock before we grant it to the next reader. __rwsem_do_wake()
446 /* do optimistic spinning and steal lock if possible */ rwsem_down_write_failed()
H A Drtmutex.c1000 * the top waiter can steal this lock. mark_wakeup_next_waiter()
/linux-4.4.14/drivers/staging/speakup/
H A Dserialio.c54 pr_info("Ports not available, trying to steal them\n"); spk_serial_init()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/disp/
H A Drootgf119.c111 /* steal display away from vbios, or something like that */ gf119_disp_root_init()
H A Drootnv50.c350 /* steal display away from vbios, or something like that */ nv50_disp_root_init()
/linux-4.4.14/arch/m68k/include/asm/
H A Dmcfdma.h34 #define MCFDMA_DCR_CS 0x2000 /* Enable cycle steal */
/linux-4.4.14/arch/m68k/mm/
H A Dmcfmmu.c174 * whether the MM we steal is in use.
/linux-4.4.14/arch/microblaze/include/asm/
H A Dmmu_context_mm.h71 * that could be in the system, we need to be able to steal contexts.
/linux-4.4.14/arch/frv/mm/
H A Dmmu-context.c62 /* none remaining - need to steal someone else's cxn */ get_cxn()
/linux-4.4.14/lib/
H A Dpercpu_ida.c52 * Try to steal tags from a remote cpu's percpu freelist.
57 * to find the "best" cpu to steal from, to keep cacheline bouncing to a
H A Dbtree.c547 /* Because we don't steal entries from a neighbour, this case rebalance()
583 * We could also try to steal one entry from the left or right rebalance()
/linux-4.4.14/net/sunrpc/auth_gss/
H A Dgss_rpc_upcall.c313 /* steal group info from struct svc_cred */ gssp_accept_sec_context_upcall()
H A Dsvcauth_gss.c1176 /* steal creds */ gss_proxy_save_rsc()
/linux-4.4.14/fs/
H A Dpipe.c143 * @buf: the buffer to attempt to steal
146 * This function attempts to steal the &struct page attached to
222 .steal = generic_pipe_buf_steal,
230 .steal = generic_pipe_buf_steal,
H A Dsplice.c38 * Attempt to steal a page from a pipe buffer. This should perhaps go into
141 .steal = page_cache_pipe_buf_steal,
159 .steal = user_page_pipe_buf_steal,
555 .steal = generic_pipe_buf_steal,
570 .steal = generic_pipe_buf_nosteal,
/linux-4.4.14/drivers/virtio/
H A Dvirtio_pci_legacy.c28 * steal a bit to indicate that the rest are somewhere else. */ vp_get_features()
/linux-4.4.14/fs/btrfs/
H A Ddelayed-inode.c612 * Now if src_rsv == delalloc_block_rsv we'll let it just steal since btrfs_delayed_inode_reserve_metadata()
651 * to steal from the delalloc block rsv. btrfs_delayed_inode_reserve_metadata()
663 * Ok this is a problem, let's just steal from the global rsv btrfs_delayed_inode_reserve_metadata()
1897 * - At the worst, we can steal some space from the global reservation. btrfs_delayed_delete_inode_ref()
H A Droot-tree.c479 * for subvolumes. To work around this problem, we steal a bit from
H A Draid56.c580 * steal from cached rbio's though, other functions rbio_can_merge()
677 /* can we steal this cached rbio's pages? */ lock_stripe_add()
767 * to steal from later unlock_stripe()
H A Dfree-space-cache.c2341 * Only steal free space from adjacent bitmaps if we're sure we're not __btrfs_add_free_space()
2344 * attempt to steal space from bitmaps if we're adding an extent entry. __btrfs_add_free_space()
H A Dinode.c5204 * Try and steal from the global reserve since we will btrfs_evict_inode()
5239 * We can't just steal from the global reserve, we need tomake btrfs_evict_inode()
5252 * Couldn't steal from the global reserve, we have too much btrfs_evict_inode()
8898 * 2) rsv - for the truncate reservation, which we will steal from the btrfs_truncate()
H A Dextent-tree.c6728 * tree, so we just steal the ref the tree was holding. check_ref_cleanup()
/linux-4.4.14/fs/xfs/
H A Dxfs_log_cil.c40 * We don't reserve any space for the ticket - we are going to steal whatever
43 * zero so that we know to steal the initial transaction overhead from the
57 * set the current reservation to zero so we know to steal the basic xlog_cil_ticket_alloc()
331 * steal from tickets so we can correctly determine the space used xlog_cil_insert_items()
H A Dxfs_inode.c980 * transaction commit so that no other process can steal xfs_dir_ialloc()
/linux-4.4.14/arch/s390/include/uapi/asm/
H A Ddasd.h257 #define BIODASDSLCK _IO(DASD_IOCTL_LETTER,4) /* steal lock */
/linux-4.4.14/drivers/staging/lustre/lnet/lnet/
H A Dlib-ptl.c468 /* steal buffer from other CPTs, and delay it if nothing to steal, lnet_ptl_match_delay()
512 /* nothing to steal, delay or drop */ lnet_ptl_match_delay()
/linux-4.4.14/arch/x86/kernel/cpu/
H A Dperf_event_intel_cqm.c796 * 1. rotate ("steal") another RMID __intel_cqm_rmid_rotate()
800 * We do both of 1. and 2. until we hit the steal limit. __intel_cqm_rmid_rotate()
802 * The steal limit prevents all RMIDs ending up on the __intel_cqm_rmid_rotate()
/linux-4.4.14/fs/btrfs/tests/
H A Dfree-space-tests.c430 * Before we were able to steal free space from a bitmap entry to an extent
582 * steal this space region. test_steal_space_from_bitmap_to_extent()
790 * steal this space region. test_steal_space_from_bitmap_to_extent()
/linux-4.4.14/drivers/video/fbdev/
H A Dsticore.h37 * for them to fix it and steal their solution. prumpf
H A Damifb.c227 - you really don't want to make ddfstrt < 128, since this will steal DMA
/linux-4.4.14/drivers/mtd/nand/
H A Dau1550nd.c324 * steal our precious bytes of data... au1550_command()
/linux-4.4.14/arch/unicore32/mm/
H A Dfault.c27 * Fault status register encodings. We steal bit 31 for our own purposes.
/linux-4.4.14/include/uapi/linux/
H A Dsysctl.h182 VM_SWAPPINESS=19, /* Tendency to steal mapped memory */
/linux-4.4.14/drivers/gpu/drm/
H A Ddrm_atomic_helper.c114 * We can only steal an encoder coming from a connector, which means we steal_encoder()
295 * Each encoder has at most one connector (since we always steal for_each_connector_in_state()
614 * Each encoder has at most one connector (since we always steal for_each_connector_in_state()
783 * Each encoder has at most one connector (since we always steal for_each_connector_in_state()
882 * Each encoder has at most one connector (since we always steal for_each_connector_in_state()
H A Ddrm_fb_helper.c490 /* Sometimes user space wants everything disabled, so don't steal the drm_fb_helper_is_bound()
H A Ddrm_crtc.c2528 * NOTE: ->set_config can also disable other crtcs (if we steal all drm_mode_set_config_internal()
/linux-4.4.14/drivers/s390/cio/
H A Ddevice_pgid.c687 /* Check if steal lock operation is valid for this device. */ ccw_device_stlck()
/linux-4.4.14/drivers/scsi/sym53c8xx_2/
H A Dsym_defs.h435 /* We steal the `indirect addressing' flag for target mode MOVE in scripts */
/linux-4.4.14/drivers/misc/sgi-gru/
H A Dgrutables.h272 * steal a context from another process.
H A Dgrukservices.c150 * the bs_kgts_sema for READ. Will steal user contexts if necessary.
H A Dgrumain.c820 * success are high. If trylock fails, try to steal a gru_steal_context()
/linux-4.4.14/fs/udf/
H A Dballoc.c443 * we just steal a block from the extent we are trying to add. udf_table_free_blocks()
/linux-4.4.14/arch/m68k/amiga/
H A Dconfig.c633 /* Just steal the block, the chipram allocator isn't functional yet */ amiga_savekmsg_setup()
/linux-4.4.14/mm/
H A Dpage_alloc.c1566 * steal extra free pages from the same pageblocks to satisfy further
1570 * be more free pages in the pageblock, so try to steal them all. For
1571 * reclaimable and unmovable allocations, we steal regardless of page size,
1581 * we can actually steal whole pageblock if this condition met, can_steal_fallback()
1598 * This function implements actual steal behaviour. If order is large enough,
1599 * we can steal whole pageblock. If not, we first move freepages in this
1627 * we can steal other freepages all together. This would help to reduce
H A Dcompaction.c1242 * Job done if allocation would steal freepages from __compact_finished()
/linux-4.4.14/kernel/
H A Dworkqueue.c618 * try to steal the PENDING bit.
1186 * try_to_grab_pending - steal work item from worklist and disable irq
1187 * @work: work item to steal
1220 /* try to steal the timer if it exists */ try_to_grab_pending()
1239 * steal it from ->worklist without clearing WORK_STRUCT_PENDING. try_to_grab_pending()
1347 * steal the PENDING will busy-loop waiting for it to either get __queue_work()
H A Dfutex.c1502 * target futex if it is uncontended or via a lock steal. Set the futex_q key
2115 * did a lock-steal - fix up the PI-state in that case: fixup_owner()
2138 * pi_state is incorrect, some other task did a lock steal and fixup_owner()
2772 * did a lock-steal - fix up the PI-state in that case. futex_wait_requeue_pi()
H A Drelay.c1197 .steal = generic_pipe_buf_steal,
H A Dfork.c965 * We need to steal a active VM for that.. copy_mm()
H A Dsignal.c564 * signalfd steal them dequeue_signal()
/linux-4.4.14/fs/fuse/
H A Ddev.c835 printk(KERN_WARNING "fuse: trying to steal weird page\n"); fuse_check_page()
868 if (buf->ops->steal(cs->pipe, buf) != 0) fuse_try_move_page()
/linux-4.4.14/drivers/gpu/vga/
H A Dvgaarb.c246 /* looks like he doesn't have a lock, we can steal __vga_tryget()
/linux-4.4.14/drivers/net/wireless/rt2x00/
H A Drt61pci.h170 * We steal 16 tail bytes to save debugging settings.
H A Drt73usb.h119 * We steal 16 tail bytes to save debugging settings.
H A Drt2800.h1995 * We steal 16 tail bytes to save debugging settings
/linux-4.4.14/drivers/gpu/drm/i915/
H A Di915_gem_fence.c332 /* None available, try to steal one or wait for a user to finish */ i915_find_fence_reg()
H A Di915_gem.c2449 * so that we don't steal from recently used but inactive objects i915_gem_object_retire__read()
3793 * to steal a fence from someone else on the next i915_gem_object_set_cache_level()
H A Dintel_dp.c2701 /* make sure vdd is off before we steal it */ vlv_steal_power_sequencer()
/linux-4.4.14/arch/x86/include/asm/
H A Dkvm_host.h493 struct kvm_steal_time steal; member in struct:kvm_vcpu_arch::__anon3074
/linux-4.4.14/kernel/rcu/
H A Dsrcu.c429 /* steal the processing owner */ __synchronize_srcu()
/linux-4.4.14/arch/frv/kernel/
H A Dsetup.c662 /* find the first non-kernel memory tile and steal it */ reserve_dma_coherent()
/linux-4.4.14/net/ipv4/
H A Dping.c122 * that other ping processes can steal its packets. ping_portaddr_for_each_entry()
H A Dip_output.c1140 * We steal reference to this route, caller should not release it ip_setup_cork()
/linux-4.4.14/tools/perf/util/scripting-engines/
H A Dtrace-event-python.c93 * steal a reference, as opposed to PyTuple_SetItem().
/linux-4.4.14/fs/ocfs2/
H A Dsuballoc.c935 /* Start to steal resource from the first slot after ours. */ ocfs2_steal_resource()
1072 * slot is set when we successfully steal inode from other nodes. ocfs2_reserve_new_inode()
/linux-4.4.14/drivers/media/usb/usbvision/
H A Dusbvision-video.c969 /* Then try to steal a frame (like a VIDIOC_DQBUF would do) */ usbvision_read()
/linux-4.4.14/fs/xfs/libxfs/
H A Dxfs_format.h772 * Size of the AGFL. For CRC-enabled filesystes we steal a couple of
/linux-4.4.14/arch/x86/kvm/
H A Dx86.c2016 &vcpu->arch.st.steal, sizeof(struct kvm_steal_time)))) record_steal_time()
2019 vcpu->arch.st.steal.steal += vcpu->arch.st.accum_steal; record_steal_time()
2020 vcpu->arch.st.steal.version += 2; record_steal_time()
2024 &vcpu->arch.st.steal, sizeof(struct kvm_steal_time)); record_steal_time()
/linux-4.4.14/drivers/atm/
H A Dfirestream.c113 match channel for channel 0 will "steal" the traffic from channel
/linux-4.4.14/drivers/char/
H A Dvirtio_console.c885 if (buf->ops->steal(pipe, buf) == 0) { pipe_to_sg()
/linux-4.4.14/arch/sh/kernel/cpu/sh5/
H A Dentry.S624 ! EXPEVT==0x80 is unused, so 'steal' this value to put the
/linux-4.4.14/drivers/staging/lustre/lustre/ptlrpc/
H A Dservice.c1802 nlocks = rs->rs_nlocks; /* atomic "steal", but */ ptlrpc_handle_rs()
/linux-4.4.14/drivers/scsi/
H A Datari_NCR5380.c862 * Otherwise a running NCR5380_main may steal the lock. NCR5380_queue_command()
/linux-4.4.14/kernel/trace/
H A Dtrace.c4827 .steal = generic_pipe_buf_steal,
5722 .steal = generic_pipe_buf_steal,
/linux-4.4.14/drivers/s390/block/
H A Ddasd.c2353 * Whoa nelly now it gets really hairy. For some functions (e.g. steal lock
/linux-4.4.14/sound/pci/hda/
H A Dhda_generic.c1362 /* try to steal the DAC of surrounds for the front */ try_assign_dacs()

Completed in 4292 milliseconds