/linux/drivers/clk/imx/ |
H A D | clk-busy.c | 44 struct clk_busy_divider *busy = to_clk_busy_divider(hw); in clk_busy_divider_recalc_rate() local 46 return busy->div_ops->recalc_rate(&busy->div.hw, parent_rate); in clk_busy_divider_recalc_rate() 52 struct clk_busy_divider *busy = to_clk_busy_divider(hw); in clk_busy_divider_round_rate() local 54 return busy->div_ops->round_rate(&busy->div.hw, rate, prate); in clk_busy_divider_round_rate() 60 struct clk_busy_divider *busy = to_clk_busy_divider(hw); in clk_busy_divider_set_rate() local 63 ret = busy->div_ops->set_rate(&busy->div.hw, rate, parent_rate); in clk_busy_divider_set_rate() 65 ret = clk_busy_wait(busy->reg, busy->shift); in clk_busy_divider_set_rate() 80 struct clk_busy_divider *busy; in imx_clk_hw_busy_divider() local 85 busy = kzalloc(sizeof(*busy), GFP_KERNEL); in imx_clk_hw_busy_divider() 86 if (!busy) in imx_clk_hw_busy_divider() [all …]
|
/linux/arch/arm/mach-spear/ |
H A D | pl080.c | 24 unsigned char busy; member 36 if (signals[signal].busy && in pl080_get_signal() 43 if (!signals[signal].busy) { in pl080_get_signal() 56 signals[signal].busy++; in pl080_get_signal() 70 if (!signals[signal].busy) in pl080_put_signal() 73 signals[signal].busy--; in pl080_put_signal()
|
/linux/drivers/mtd/maps/ |
H A D | vmu-flash.c | 147 if (atomic_read(&mdev->busy) == 1) { in maple_vmu_read_block() 149 atomic_read(&mdev->busy) == 0, HZ); in maple_vmu_read_block() 150 if (atomic_read(&mdev->busy) == 1) { in maple_vmu_read_block() 158 atomic_set(&mdev->busy, 1); in maple_vmu_read_block() 162 atomic_set(&mdev->busy, 0); in maple_vmu_read_block() 173 (atomic_read(&mdev->busy) == 0 || in maple_vmu_read_block() 174 atomic_read(&mdev->busy) == 2), HZ * 3); in maple_vmu_read_block() 180 if (error || atomic_read(&mdev->busy) == 2) { in maple_vmu_read_block() 181 if (atomic_read(&mdev->busy) == 2) in maple_vmu_read_block() 183 atomic_set(&mdev->busy, 0); in maple_vmu_read_block() [all …]
|
/linux/drivers/clk/mxs/ |
H A D | clk-div.c | 25 u8 busy; member 59 ret = mxs_clk_wait(div->reg, div->busy); in clk_div_set_rate() 71 void __iomem *reg, u8 shift, u8 width, u8 busy) in mxs_clk_div() argument 88 div->busy = busy; in mxs_clk_div()
|
H A D | clk-frac.c | 28 u8 busy; member 101 return mxs_clk_wait(frac->reg, frac->busy); in clk_frac_set_rate() 111 void __iomem *reg, u8 shift, u8 width, u8 busy) in mxs_clk_frac() argument 130 frac->busy = busy; in mxs_clk_frac()
|
/linux/include/trace/events/ |
H A D | fsi_master_gpio.h | 112 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/drivers/sh/maple/ |
H A D | maple.c | 390 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/drivers/fpga/ |
H A D | lattice-sysconfig.c | 28 u8 busy; in sysconfig_read_busy() local 32 &busy, sizeof(busy)); in sysconfig_read_busy() 34 return ret ? : busy; in sysconfig_read_busy() 39 int ret, busy; in sysconfig_poll_busy() local 41 ret = read_poll_timeout(sysconfig_read_busy, busy, busy <= 0, in sysconfig_poll_busy() 45 return ret ? : busy; in sysconfig_poll_busy()
|
/linux/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_busy.c | 145 args->busy = 0; in i915_gem_busy_ioctl() 149 args->busy = 0; in i915_gem_busy_ioctl() 153 args->busy |= busy_check_writer(fence); in i915_gem_busy_ioctl() 156 args->busy |= busy_check_reader(fence); in i915_gem_busy_ioctl()
|
/linux/drivers/net/wireless/ath/ |
H A D | hw.c | 144 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/sound/oss/dmasound/ |
H A D | dmasound_core.c | 321 int busy; member 332 mixer.busy = 1; in mixer_open() 340 mixer.busy = 0; in mixer_release() 396 mixer.busy = 0; in mixer_init() 693 sq->busy = 0; in sq_init_waitqueue() 701 sq->busy = 0; /* CHECK: IS THIS OK??? */ 713 if (sq->busy) { in sq_open2() 719 if (wait_event_interruptible(sq->open_queue, !sq->busy)) in sq_open2() 729 sq->busy = 1; /* Let's play spot-the-race-condition */ in sq_open2() 740 sq->busy = 0 ; in sq_open2() [all …]
|
/linux/Documentation/networking/ |
H A D | napi.rst | 16 interrupts first (:ref:`busy polling<poll>`). 228 the device interrupt fires. As is the case with any busy polling it trades 229 off CPU cycles for lower latency (production uses of NAPI busy polling 234 ``net.core.busy_read`` sysctls. An io_uring API for NAPI busy polling 237 epoll-based busy polling 255 In order to enable busy polling, there are two choices: 257 1. ``/proc/sys/net/core/busy_poll`` can be set with a time in useconds to busy 259 epoll-based applications to busy poll when they call epoll_wait. This may 260 not be desirable as many applications may not have the need to busy poll. 280 While busy polling is supposed to be used by low latency applications, [all …]
|
/linux/arch/m68k/fpsp040/ |
H A D | gen_except.S | 68 | 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/drivers/firmware/ |
H A D | turris-mox-rwtm.c | 95 struct mutex busy; member 291 if (!mutex_trylock(&rwtm->busy)) in mox_hwrng_read() 294 mutex_lock(&rwtm->busy); in mox_hwrng_read() 305 mutex_unlock(&rwtm->busy); in mox_hwrng_read() 355 if (!mutex_trylock(&rwtm->busy)) in do_sign_write() 396 mutex_unlock(&rwtm->busy); in do_sign_write() 399 mutex_unlock(&rwtm->busy); in do_sign_write() 458 ret = devm_mutex_init(dev, &rwtm->busy); in turris_mox_rwtm_probe()
|
/linux/drivers/net/ethernet/mellanox/mlxbf_gige/ |
H A D | mlxbf_gige_mdio.c | 33 .busy = { 65 .busy = { 203 gw_reg |= ((MLXBF_GIGE_MDIO_SET_BUSY << mdio_gw->busy.shift) & in mlxbf_gige_mdio_create_cmd() 204 mdio_gw->busy.mask); in mlxbf_gige_mdio_create_cmd() 223 val, !(val & priv->mdio_gw->busy.mask), in mlxbf_gige_mdio_read() 256 temp, !(temp & priv->mdio_gw->busy.mask), in mlxbf_gige_mdio_write()
|
/linux/mm/ |
H A D | vmalloc.c | 883 struct rb_list busy; member 1065 spin_lock(&vn->busy.lock); in find_vmap_area_exceed_addr_lock() 1066 *va = __find_vmap_area_exceed_addr(addr, &vn->busy.root); in find_vmap_area_exceed_addr_lock() 1071 spin_unlock(&vn->busy.lock); in find_vmap_area_exceed_addr_lock() 1082 spin_lock(&vn->busy.lock); in find_vmap_area_exceed_addr_lock() 1083 *va = __find_vmap_area(va_start_lowest, &vn->busy.root); in find_vmap_area_exceed_addr_lock() 1088 spin_unlock(&vn->busy.lock); in find_vmap_area_exceed_addr_lock() 1804 spin_lock(&vn->busy.lock); in free_vmap_area() 1805 unlink_va(va, &vn->busy.root); in free_vmap_area() 1806 spin_unlock(&vn->busy.lock); in free_vmap_area() [all …]
|
/linux/drivers/media/common/ |
H A D | cx2341x.c | 379 static int cx2341x_set_ctrl(struct cx2341x_mpeg_params *params, int busy, in cx2341x_set_ctrl() argument 384 if (busy) in cx2341x_set_ctrl() 389 if (busy) in cx2341x_set_ctrl() 398 if (busy) in cx2341x_set_ctrl() 403 if (busy) in cx2341x_set_ctrl() 451 if (busy) in cx2341x_set_ctrl() 460 if (busy) in cx2341x_set_ctrl() 465 if (busy) in cx2341x_set_ctrl() 479 if (busy) in cx2341x_set_ctrl() 950 int cx2341x_ext_ctrls(struct cx2341x_mpeg_params *params, int busy, in cx2341x_ext_ctrls() argument [all …]
|
/linux/drivers/dma/ |
H A D | lpc18xx-dmamux.c | 30 bool busy; member 49 mux->busy = false; in lpc18xx_dmamux_free() 87 if (dmamux->muxes[mux].busy) { in lpc18xx_dmamux_reserve() 95 dmamux->muxes[mux].busy = true; in lpc18xx_dmamux_reserve()
|
H A D | lpc32xx-dmamux.c | 29 bool busy; member 87 mux->busy = false; in lpc32xx_dmamux_release() 131 if (mux->busy) { in lpc32xx_dmamux_reserve() 139 mux->busy = true; in lpc32xx_dmamux_reserve()
|
/linux/drivers/mailbox/ |
H A D | sprd-mailbox.c | 157 u32 fifo_sts, send_sts, busy, id; in sprd_mbox_inbox_isr() local 179 busy = fifo_sts & SPRD_INBOX_FIFO_BUSY_MASK; in sprd_mbox_inbox_isr() 180 if (!(busy & BIT(id))) in sprd_mbox_inbox_isr() 218 u32 busy; in sprd_mbox_flush() local 223 busy = readl(priv->inbox_base + SPRD_MBOX_FIFO_STS) & in sprd_mbox_flush() 225 if (!(busy & BIT(id))) { in sprd_mbox_flush()
|
/linux/drivers/sbus/char/ |
H A D | flash.c | 30 unsigned long busy; /* In use? */ member 126 if (test_and_set_bit(0, (void *)&flash.busy) != 0) { in flash_open() 139 flash.busy = 0; in flash_release() 180 flash.busy = 0; in flash_probe()
|
/linux/drivers/crypto/amcc/ |
H A D | crypto4xx_trng.c | 31 int busy, i, present = 0; in ppc4xx_trng_data_present() local 34 busy = (in_le32(dev->trng_base + PPC4XX_TRNG_STAT) & in ppc4xx_trng_data_present() 36 if (!busy || !wait) { in ppc4xx_trng_data_present()
|
/linux/drivers/infiniband/hw/hfi1/ |
H A D | user_sdma.c | 72 container_of(wait->iow, struct hfi1_user_sdma_pkt_q, busy); in defer_packet_queue() 75 trace_hfi1_usdma_defer(pq, sde, &pq->busy); in defer_packet_queue() 84 if (list_empty(&pq->busy.list)) { in defer_packet_queue() 85 pq->busy.lock = &sde->waitlock; in defer_packet_queue() 86 iowait_get_priority(&pq->busy); in defer_packet_queue() 87 iowait_queue(pkts_sent, &pq->busy, &sde->dmawait); in defer_packet_queue() 99 container_of(wait, struct hfi1_user_sdma_pkt_q, busy); in activate_packet_queue() 134 iowait_init(&pq->busy, 0, NULL, NULL, defer_packet_queue, in hfi1_user_sdma_alloc_queues() 200 seqlock_t *lock = pq->busy.lock; in flush_pq_iowait() 205 if (!list_empty(&pq->busy.list)) { in flush_pq_iowait() [all …]
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | read_bpf_task_storage_busy.c | 13 int busy = 0; variable 35 busy = *value; in BPF_PROG()
|
/linux/arch/sh/drivers/dma/ |
H A D | dma-api.c | 96 if (atomic_xchg(&channel->busy, 1)) in request_dma() 104 atomic_set(&channel->busy, 0); in request_dma() 121 atomic_set(&channel->busy, 0); in free_dma() 230 atomic_set(&chan->busy, 0); in register_dmac()
|