Home
last modified time | relevance | path

Searched refs:busy (Results 1 – 25 of 357) sorted by relevance

12345678910>>...15

/Linux-v4.19/drivers/clk/imx/
Dclk-busy.c49 struct clk_busy_divider *busy = to_clk_busy_divider(hw); in clk_busy_divider_recalc_rate() local
51 return busy->div_ops->recalc_rate(&busy->div.hw, parent_rate); in clk_busy_divider_recalc_rate()
57 struct clk_busy_divider *busy = to_clk_busy_divider(hw); in clk_busy_divider_round_rate() local
59 return busy->div_ops->round_rate(&busy->div.hw, rate, prate); in clk_busy_divider_round_rate()
65 struct clk_busy_divider *busy = to_clk_busy_divider(hw); in clk_busy_divider_set_rate() local
68 ret = busy->div_ops->set_rate(&busy->div.hw, rate, parent_rate); in clk_busy_divider_set_rate()
70 ret = clk_busy_wait(busy->reg, busy->shift); in clk_busy_divider_set_rate()
85 struct clk_busy_divider *busy; in imx_clk_busy_divider() local
89 busy = kzalloc(sizeof(*busy), GFP_KERNEL); in imx_clk_busy_divider()
90 if (!busy) in imx_clk_busy_divider()
[all …]
/Linux-v4.19/arch/riscv/include/asm/
Dspinlock.h37 int tmp = 1, busy; in arch_spin_trylock() local
42 : "=r" (busy), "+A" (lock->lock) in arch_spin_trylock()
46 return !busy; in arch_spin_trylock()
94 int busy; in arch_read_trylock() local
104 : "+A" (lock->lock), "=&r" (busy) in arch_read_trylock()
107 return !busy; in arch_read_trylock()
112 int busy; in arch_write_trylock() local
122 : "+A" (lock->lock), "=&r" (busy) in arch_write_trylock()
125 return !busy; in arch_write_trylock()
/Linux-v4.19/drivers/gpu/drm/gma500/
Dblitter.c26 int busy = 1; in gma_blt_wait_idle() local
38 busy = (PSB_RSGX32(PSB_CR_2D_SOCIF) != _PSB_C2_SOCIF_EMPTY); in gma_blt_wait_idle()
39 } while (busy && !time_after_eq(jiffies, stop)); in gma_blt_wait_idle()
41 if (busy) in gma_blt_wait_idle()
45 busy = ((PSB_RSGX32(PSB_CR_2D_BLIT_STATUS) & in gma_blt_wait_idle()
47 } while (busy && !time_after_eq(jiffies, stop)); in gma_blt_wait_idle()
50 return (busy) ? -EBUSY : 0; in gma_blt_wait_idle()
Daccel_2d.c329 int busy = 0; in psbfb_sync() local
342 busy = (PSB_RSGX32(PSB_CR_2D_SOCIF) != _PSB_C2_SOCIF_EMPTY); in psbfb_sync()
344 } while (busy && !time_after_eq(jiffies, _end)); in psbfb_sync()
346 if (busy) in psbfb_sync()
347 busy = (PSB_RSGX32(PSB_CR_2D_SOCIF) != _PSB_C2_SOCIF_EMPTY); in psbfb_sync()
348 if (busy) in psbfb_sync()
352 busy = ((PSB_RSGX32(PSB_CR_2D_BLIT_STATUS) & in psbfb_sync()
355 } while (busy && !time_after_eq(jiffies, _end)); in psbfb_sync()
356 if (busy) in psbfb_sync()
357 busy = ((PSB_RSGX32(PSB_CR_2D_BLIT_STATUS) & in psbfb_sync()
[all …]
/Linux-v4.19/arch/arm/mach-spear/
Dpl080.c26 unsigned char busy; member
38 if (signals[signal].busy && in pl080_get_signal()
45 if (!signals[signal].busy) { in pl080_get_signal()
58 signals[signal].busy++; in pl080_get_signal()
72 if (!signals[signal].busy) in pl080_put_signal()
75 signals[signal].busy--; in pl080_put_signal()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Den_txrx.c79 bool busy = false; in mlx5e_napi_poll() local
86 busy |= mlx5e_poll_tx_cq(&c->sq[i].cq, budget); in mlx5e_napi_poll()
88 busy |= mlx5e_poll_xdpsq_cq(&c->xdpsq.cq); in mlx5e_napi_poll()
91 busy |= mlx5e_poll_xdpsq_cq(&c->rq.xdpsq.cq); in mlx5e_napi_poll()
95 busy |= work_done == budget; in mlx5e_napi_poll()
98 busy |= c->rq.post_wqes(&c->rq); in mlx5e_napi_poll()
100 if (busy) { in mlx5e_napi_poll()
/Linux-v4.19/drivers/mtd/maps/
Dvmu-flash.c149 if (atomic_read(&mdev->busy) == 1) { in maple_vmu_read_block()
151 atomic_read(&mdev->busy) == 0, HZ); in maple_vmu_read_block()
152 if (atomic_read(&mdev->busy) == 1) { in maple_vmu_read_block()
160 atomic_set(&mdev->busy, 1); in maple_vmu_read_block()
164 atomic_set(&mdev->busy, 0); in maple_vmu_read_block()
175 (atomic_read(&mdev->busy) == 0 || in maple_vmu_read_block()
176 atomic_read(&mdev->busy) == 2), HZ * 3); in maple_vmu_read_block()
182 if (error || atomic_read(&mdev->busy) == 2) { in maple_vmu_read_block()
183 if (atomic_read(&mdev->busy) == 2) in maple_vmu_read_block()
185 atomic_set(&mdev->busy, 0); in maple_vmu_read_block()
[all …]
/Linux-v4.19/drivers/isdn/hardware/eicon/
Ddiva_dma.c33 int busy; member
71 if (!pmap[i].busy) { in diva_alloc_dma_map_entry()
72 pmap[i].busy = 1; in diva_alloc_dma_map_entry()
82 pmap[nr].busy = 0; in diva_free_dma_map_entry()
/Linux-v4.19/drivers/clk/mxs/
Dclk-div.c31 u8 busy; member
65 ret = mxs_clk_wait(div->reg, div->busy); in clk_div_set_rate()
77 void __iomem *reg, u8 shift, u8 width, u8 busy) in mxs_clk_div() argument
94 div->busy = busy; in mxs_clk_div()
Dclk-frac.c34 u8 busy; member
107 return mxs_clk_wait(frac->reg, frac->busy); in clk_frac_set_rate()
117 void __iomem *reg, u8 shift, u8 width, u8 busy) in mxs_clk_frac() argument
136 frac->busy = busy; in mxs_clk_frac()
/Linux-v4.19/drivers/char/hw_random/
Dvirtio-rng.c37 bool busy; member
74 if (!vi->busy) { in virtio_read()
75 vi->busy = true; in virtio_read()
87 vi->busy = false; in virtio_read()
96 if (vi->busy) in virtio_cleanup()
150 vi->busy = false; in remove_common()
/Linux-v4.19/include/trace/events/
Dfsi_master_gpio.h112 TP_PROTO(const struct fsi_master_gpio *master, int busy),
113 TP_ARGS(master, busy),
116 __field(int, busy)
120 __entry->busy = busy;
123 __entry->master_idx, __entry->busy)
/Linux-v4.19/crypto/
Dcrypto_engine.c93 if (!engine->busy) in crypto_pump_requests()
103 engine->busy = false; in crypto_pump_requests()
126 if (engine->busy) in crypto_pump_requests()
129 engine->busy = true; in crypto_pump_requests()
202 if (!engine->busy && need_pump) in crypto_transfer_request()
370 if (engine->running || engine->busy) { in crypto_engine_start()
402 while ((crypto_queue_len(&engine->queue) || engine->busy) && limit--) { in crypto_engine_stop()
408 if (crypto_queue_len(&engine->queue) || engine->busy) in crypto_engine_stop()
446 engine->busy = false; in crypto_engine_alloc_init()
/Linux-v4.19/drivers/isdn/hisax/
Delsa_cs.c71 int busy; member
99 info->busy = 1; in elsa_cs_detach()
154 i = hisax_init_pcmcia(link, &(((local_info_t *)link->priv)->busy), &icard); in elsa_cs_config()
188 dev->busy = 1; in elsa_suspend()
197 dev->busy = 0; in elsa_resume()
Dteles_cs.c52 int busy; member
81 info->busy = 1; in teles_detach()
134 i = hisax_init_pcmcia(link, &(((local_info_t *)link->priv)->busy), &icard); in teles_cs_config()
170 dev->busy = 1; in teles_suspend()
179 dev->busy = 0; in teles_resume()
/Linux-v4.19/drivers/net/wireless/ath/
Dhw.c144 u32 cycles, busy, rx, tx; in ath_hw_cycle_counters_update() local
152 busy = REG_READ(ah, AR_RCCNT); in ath_hw_cycle_counters_update()
167 common->cc_ani.rx_busy += busy; in ath_hw_cycle_counters_update()
172 common->cc_survey.rx_busy += busy; in ath_hw_cycle_counters_update()
/Linux-v4.19/drivers/sh/maple/
Dmaple.c390 atomic_set(&mdev->busy, 0); in maple_attach_driver()
423 if (mdev->interval > 0 && atomic_read(&mdev->busy) == 0 && in setup_maple_commands()
436 if (atomic_read(&mdev->busy) == 0) { in setup_maple_commands()
437 atomic_set(&mdev->busy, 1); in setup_maple_commands()
476 atomic_set(&mdev->busy, 1); in maple_vblank_handler()
513 atomic_set(&mdev_add->busy, 1); in maple_map_subunits()
551 atomic_set(&mdev->busy, 2); in maple_response_none()
573 atomic_set(&mdev->busy, 0); in maple_response_none()
657 atomic_set(&mdev->busy, 0); in maple_dma_handler()
663 atomic_set(&mdev->busy, 0); in maple_dma_handler()
[all …]
/Linux-v4.19/sound/oss/dmasound/
Ddmasound_core.c322 int busy; member
333 mixer.busy = 1; in mixer_open()
341 mixer.busy = 0; in mixer_release()
400 mixer.busy = 0; in mixer_init()
697 sq->busy = 0; in sq_init_waitqueue()
705 sq->busy = 0; /* CHECK: IS THIS OK??? */
717 if (sq->busy) { in sq_open2()
723 if (wait_event_interruptible(sq->open_queue, !sq->busy)) in sq_open2()
733 sq->busy = 1; /* Let's play spot-the-race-condition */ in sq_open2()
744 sq->busy = 0 ; in sq_open2()
[all …]
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
Duvmm.c70 if (ret = -ENOENT, (!vma->user && !client->super) || vma->busy) { in nvkm_uvmm_mthd_unmap()
72 vma->user, !client->super, vma->busy); in nvkm_uvmm_mthd_unmap()
121 if (ret = -ENOENT, (!vma->user && !client->super) || vma->busy) { in nvkm_uvmm_mthd_map()
123 vma->user, !client->super, vma->busy); in nvkm_uvmm_mthd_map()
156 vma->busy = true; in nvkm_uvmm_mthd_map()
167 vma->busy = false; in nvkm_uvmm_mthd_map()
200 if (ret = -ENOENT, (!vma->user && !client->super) || vma->busy) { in nvkm_uvmm_mthd_put()
202 vma->user, !client->super, vma->busy); in nvkm_uvmm_mthd_put()
/Linux-v4.19/arch/m68k/fpsp040/
Dgen_except.S68 | Fix up the new busy frame with entries from the unimp frame
71 movel ETEMP_HI(%a6),ETEMP_HI(%a1) |frame to busy frame
84 movel %d0,CMDREG3B(%a1) |in the busy frame
138 | On a busy frame, we must clear the nmnexc bits.
141 bnes check_fr |if busy, clr nmnexc
203 movel %d0,CMDREG3B(%a6) |in the busy frame
278 cmpib #BUSY_SIZE-4,1(%a7) |check for busy frame
279 beqs busy_fr |if unimp, grow to busy
295 moveb #BUSY_SIZE-4,1(%a7) |write busy fmt word.
315 movel %d0,CMDREG3B(%a6) |in the busy frame
[all …]
/Linux-v4.19/drivers/dma/
Dlpc18xx-dmamux.c32 bool busy; member
51 mux->busy = false; in lpc18xx_dmamux_free()
89 if (dmamux->muxes[mux].busy) { in lpc18xx_dmamux_reserve()
97 dmamux->muxes[mux].busy = true; in lpc18xx_dmamux_reserve()
/Linux-v4.19/drivers/tee/optee/
Dsupp.c22 bool busy; member
57 req->busy = false; in optee_supp_release()
133 interruptable = !req->busy; in optee_supp_thrd_req()
134 if (!req->busy) in optee_supp_thrd_req()
179 req->busy = true; in supp_pop_entry()
321 req->busy = false; in supp_pop_req()
/Linux-v4.19/arch/sh/drivers/dma/
Ddma-api.c178 if (atomic_read(&channel->busy) == 0) in dmac_search_free_channel()
187 atomic_set(&channel->busy, 1); in dmac_search_free_channel()
201 if (atomic_xchg(&channel->busy, 1)) in request_dma()
209 atomic_set(&channel->busy, 0); in request_dma()
226 atomic_set(&channel->busy, 0); in free_dma()
376 atomic_set(&chan->busy, 0); in register_dmac()
/Linux-v4.19/drivers/crypto/amcc/
Dcrypto4xx_trng.c34 int busy, i, present = 0; in ppc4xx_trng_data_present() local
37 busy = (in_le32(dev->trng_base + PPC4XX_TRNG_STAT) & in ppc4xx_trng_data_present()
39 if (!busy || !wait) { in ppc4xx_trng_data_present()
/Linux-v4.19/drivers/sbus/char/
Dflash.c30 unsigned long busy; /* In use? */ member
128 if (test_and_set_bit(0, (void *)&flash.busy) != 0) { in flash_open()
141 flash.busy = 0; in flash_release()
182 flash.busy = 0; in flash_probe()

12345678910>>...15