Home
last modified time | relevance | path

Searched refs:in_use (Results 1 – 25 of 90) sorted by relevance

1234

/linux-3.4.99/drivers/infiniband/hw/cxgb4/
Dt4.h302 u16 in_use; member
325 u16 in_use; member
342 return wq->rq.in_use; in t4_rqes_posted()
347 return wq->rq.in_use == 0; in t4_rq_empty()
352 return wq->rq.in_use == (wq->rq.size - 1); in t4_rq_full()
357 return wq->rq.size - 1 - wq->rq.in_use; in t4_rq_avail()
362 wq->rq.in_use++; in t4_rq_produce()
372 wq->rq.in_use--; in t4_rq_consume()
385 return wq->sq.in_use == 0; in t4_sq_empty()
390 return wq->sq.in_use == (wq->sq.size - 1); in t4_sq_full()
[all …]
Dcq.c197 int in_use = wq->rq.in_use - count; in c4iw_flush_rq() local
199 BUG_ON(in_use < 0); in c4iw_flush_rq()
201 wq, cq, wq->rq.in_use, count); in c4iw_flush_rq()
202 while (in_use--) { in c4iw_flush_rq()
232 int in_use = wq->sq.in_use - count; in c4iw_flush_sq() local
234 BUG_ON(in_use < 0); in c4iw_flush_sq()
235 while (in_use--) { in c4iw_flush_sq()
326 int count = wq->sq.in_use; in flush_completed_wrs()
347 wq->sq.in_use -= unsignaled; in flush_completed_wrs()
/linux-3.4.99/ipc/
Dnamespace.c77 int total, in_use; in free_ipcs() local
81 in_use = ids->in_use; in free_ipcs()
83 for (total = 0, next_id = 0; total < in_use; next_id++) { in free_ipcs()
Dutil.c123 ids->in_use = 0; in ipc_init_ids()
187 for (total = 0, next_id = 0; total < ids->in_use; next_id++) { in ipc_findkey()
218 if (ids->in_use == 0) in ipc_get_maxid()
221 if (ids->in_use == IPCMNI) in ipc_get_maxid()
226 for (id = 0; id < IPCMNI && total < ids->in_use; id++) { in ipc_get_maxid()
259 if (ids->in_use >= size) in ipc_addid()
274 ids->in_use++; in ipc_addid()
430 ids->in_use--; in ipc_rmid()
847 for (id = 0; id < pos && total < ids->in_use; id++) { in sysvipc_find_ipc()
853 if (total >= ids->in_use) in sysvipc_find_ipc()
Dshm.c304 if (shm_ids(ns).in_use) in shm_destroy_orphaned()
314 if (shm_ids(ns).in_use == 0) in exit_shm()
319 if (shm_ids(ns).in_use) in exit_shm()
696 int total, in_use; in shm_get_stat() local
701 in_use = shm_ids(ns).in_use; in shm_get_stat()
703 for (total = 0, next_id = 0; total < in_use; next_id++) { in shm_get_stat()
814 shm_info.used_ids = shm_ids(ns).in_use; in SYSCALL_DEFINE3()
/linux-3.4.99/arch/powerpc/platforms/512x/
Dmpc512x_shared.c66 bool in_use; member
212 if (diu_shared_fb.in_use) { in mpc512x_release_bootmem()
219 diu_shared_fb.in_use = false; in mpc512x_release_bootmem()
277 diu_shared_fb.in_use = true; in mpc512x_init_diu()
284 diu_shared_fb.in_use = false; in mpc512x_init_diu()
316 if (diu_shared_fb.in_use) { in mpc512x_setup_diu()
322 diu_shared_fb.in_use = false; in mpc512x_setup_diu()
/linux-3.4.99/drivers/media/video/
Dv4l2-event.c61 kev->sev->in_use--; in __v4l2_event_dequeue()
127 if (sev->in_use == sev->elems) { in __v4l2_event_queue_fh()
131 sev->in_use--; in __v4l2_event_queue_fh()
147 kev = sev->events + sev_pos(sev, sev->in_use); in __v4l2_event_queue_fh()
154 sev->in_use++; in __v4l2_event_queue_fh()
301 for (i = 0; i < sev->in_use; i++) { in v4l2_event_unsubscribe()
/linux-3.4.99/security/tomoyo/
Dgc.c42 bool in_use = false; in tomoyo_struct_used_by_io_buffer() local
51 in_use = true; in tomoyo_struct_used_by_io_buffer()
55 if (in_use) in tomoyo_struct_used_by_io_buffer()
59 return in_use; in tomoyo_struct_used_by_io_buffer()
74 bool in_use = false; in tomoyo_name_used_by_io_buffer() local
86 in_use = true; in tomoyo_name_used_by_io_buffer()
92 if (in_use) in tomoyo_name_used_by_io_buffer()
96 return in_use; in tomoyo_name_used_by_io_buffer()
/linux-3.4.99/arch/powerpc/sysdev/
Dmpic_msgr.c62 if (msgr->in_use == MSGR_FREE) in mpic_msgr_get()
63 msgr->in_use = MSGR_INUSE; in mpic_msgr_get()
75 msgr->in_use = MSGR_FREE; in mpic_msgr_put()
232 msgr->in_use = MSGR_FREE; in mpic_msgr_probe()
/linux-3.4.99/drivers/watchdog/
Ddw_wdt.c60 unsigned long in_use; member
124 (!nowayout && !dw_wdt.in_use)) { in dw_wdt_ping()
133 if (test_and_set_bit(0, &dw_wdt.in_use)) in dw_wdt_open()
239 clear_bit(0, &dw_wdt.in_use); in dw_wdt_release()
/linux-3.4.99/mm/
Ddmapool.c60 unsigned int in_use; member
90 blocks += page->in_use; in show_pools()
226 page->in_use = 0; in pool_alloc_page()
237 return page->in_use != 0; in is_page_busy()
329 page->in_use++; in dma_pool_alloc()
420 page->in_use--; in dma_pool_free()
/linux-3.4.99/lib/
Dlru_cache.c98 INIT_LIST_HEAD(&lc->in_use); in lc_create()
175 INIT_LIST_HEAD(&lc->in_use); in lc_reset()
364 list_move(&e->list, &lc->in_use); /* Not evictable... */ in lc_get()
420 list_move(&e->list, &lc->in_use); /* Not evictable... */ in lc_try_get()
437 list_add(&e->list, &lc->in_use); in lc_changed()
516 list_move(&e->list, e->refcnt ? &lc->in_use : &lc->lru); in lc_set()
/linux-3.4.99/sound/soc/s6000/
Ds6000-pcm.c397 !(par->in_use & ~(1 << substream->stream))) { in s6000_pcm_hw_params()
399 par->in_use |= 1 << substream->stream; in s6000_pcm_hw_params()
402 par->in_use &= ~(1 << substream->stream); in s6000_pcm_hw_params()
417 par->in_use &= ~(1 << substream->stream); in s6000_pcm_hw_free()
418 if (!par->in_use) in s6000_pcm_hw_free()
494 params->in_use = 0; in s6000_pcm_new()
Ds6000-pcm.h29 int in_use; member
/linux-3.4.99/drivers/virtio/
Dvirtio_ring.c59 if ((_vq)->in_use) \
61 (_vq)->vq.name, (_vq)->in_use); \
62 (_vq)->in_use = __LINE__; \
65 do { BUG_ON(!(_vq)->in_use); (_vq)->in_use = 0; } while(0)
111 unsigned int in_use; member
691 vq->in_use = false; in vring_new_virtqueue()
/linux-3.4.99/drivers/hid/
Dhid-prodikeys.c48 unsigned long in_use; member
248 pms->in_use = 0; in pcmidi_sustained_note_release()
258 pms->in_use = 0; in init_sustain_timers()
272 pms->in_use = 1; in stop_sustain_timers()
367 if (!pms->in_use) { in pcmidi_handle_report3()
371 pms->in_use = 1; in pcmidi_handle_report3()
/linux-3.4.99/drivers/net/ethernet/chelsio/cxgb/
Dsge.c181 unsigned int in_use; /* # of in-use command descriptors */ member
638 q->in_use -= n; in free_cmdQ_buffers()
675 if (q->in_use) in free_tx_resources()
676 free_cmdQ_buffers(sge, q, q->in_use); in free_tx_resources()
701 q->in_use = 0; in alloc_tx_resources()
1330 credits = q->size - q->in_use; in restart_sched()
1336 q->in_use += count; in restart_sched()
1345 credits = q->size - q->in_use; in restart_sched()
1415 return q->in_use - r < (q->size >> 1); in enough_free_Tx_descs()
1460 if (cmdq->cleaned + cmdq->in_use != cmdq->processed && in update_tx_info()
[all …]
/linux-3.4.99/arch/powerpc/include/asm/
Dmpic_msgr.h22 unsigned char in_use; member
/linux-3.4.99/include/media/
Dv4l2-event.h108 unsigned in_use; member
/linux-3.4.99/fs/ubifs/
Dtnc_commit.c260 int in_use, level; in layout_leb_in_gaps() local
267 in_use = is_idx_node_in_use(c, &snod->key, level, lnum, in layout_leb_in_gaps()
269 if (in_use < 0) { in layout_leb_in_gaps()
271 return in_use; /* Error code */ in layout_leb_in_gaps()
273 if (in_use) { in layout_leb_in_gaps()
274 if (in_use == 1) in layout_leb_in_gaps()
/linux-3.4.99/arch/arm/mach-s3c64xx/include/mach/
Ddma.h96 unsigned char in_use; /* channel allocated */ member
/linux-3.4.99/drivers/gpu/drm/i810/
Di810_dma.c61 used = cmpxchg(buf_priv->in_use, I810_BUF_FREE, in i810_freelist_get()
79 used = cmpxchg(buf_priv->in_use, I810_BUF_CLIENT, I810_BUF_FREE); in i810_freelist_put()
298 buf_priv->in_use = hw_status++; in i810_freelist_init()
302 *buf_priv->in_use = I810_BUF_FREE; in i810_freelist_init()
774 (void)cmpxchg(buf_priv->in_use, I810_BUF_CLIENT, in i810_dma_dispatch_vertex()
873 int used = cmpxchg(buf_priv->in_use, I810_BUF_HARDWARE, in i810_flush_queue()
906 int used = cmpxchg(buf_priv->in_use, I810_BUF_CLIENT, in i810_reclaim_buffers()
1046 u = cmpxchg(buf_priv->in_use, I810_BUF_CLIENT, I810_BUF_HARDWARE); in i810_dma_dispatch_mc()
/linux-3.4.99/drivers/staging/crystalhd/
Dcrystalhd_cmds.h51 uint32_t in_use; member
Dcrystalhd_cmds.c35 if (!ctx->user[i].in_use) { in bc_cproc_get_uid()
49 if (ctx->user[i].in_use) in bc_cproc_get_user_count()
61 if (!ctx->user[i].in_use) in bc_cproc_mark_pwr_state()
901 uc->in_use = 1; in crystalhd_user_open()
924 ctx->user[uc->uid].in_use = 0; in crystalhd_user_close()
970 ctx->user[i].in_use = 0; in crystalhd_setup_cmd_context()
/linux-3.4.99/arch/arm/plat-s3c24xx/
Ddma.c736 chan->in_use = 1; in s3c2410_dma_request()
751 chan->in_use = 0; in s3c2410_dma_request()
811 chan->in_use = 0; in s3c2410_dma_free()
1232 if (!cp->in_use) in s3c2410_dma_resume_chan()
1388 if (s3c2410_chans[tmp].in_use == 0) { in s3c2410_dma_map_channel()
1404 if (s3c2410_chans[ch].in_use == 0) { in s3c2410_dma_map_channel()

1234