/drivers/clk/imx/ |
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 …]
|
/drivers/mtd/maps/ |
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 …]
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_txrx.c | 135 bool busy = false; in mlx5e_napi_poll() local 150 busy |= mlx5e_poll_tx_cq(&c->sq[i].cq, budget); in mlx5e_napi_poll() 160 busy |= mlx5e_poll_tx_cq(&sq->cq, budget); in mlx5e_napi_poll() 168 busy |= mlx5e_poll_xdpsq_cq(&c->xdpsq.cq); in mlx5e_napi_poll() 171 busy |= mlx5e_poll_xdpsq_cq(&c->rq_xdpsq.cq); in mlx5e_napi_poll() 179 busy |= work_done == budget; in mlx5e_napi_poll() 190 busy |= mlx5e_ktls_rx_handle_resync_list(c, budget); in mlx5e_napi_poll() 192 busy |= INDIRECT_CALL_2(rq->post_wqes, in mlx5e_napi_poll() 197 busy |= mlx5e_poll_xdpsq_cq(&xsksq->cq); in mlx5e_napi_poll() 201 busy |= busy_xsk; in mlx5e_napi_poll() [all …]
|
/drivers/clk/mxs/ |
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()
|
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()
|
/drivers/sh/maple/ |
D | maple.c | 389 atomic_set(&mdev->busy, 0); in maple_attach_driver() 422 if (mdev->interval > 0 && atomic_read(&mdev->busy) == 0 && in setup_maple_commands() 435 if (atomic_read(&mdev->busy) == 0) { in setup_maple_commands() 436 atomic_set(&mdev->busy, 1); in setup_maple_commands() 475 atomic_set(&mdev->busy, 1); in maple_vblank_handler() 512 atomic_set(&mdev_add->busy, 1); in maple_map_subunits() 550 atomic_set(&mdev->busy, 2); in maple_response_none() 572 atomic_set(&mdev->busy, 0); in maple_response_none() 656 atomic_set(&mdev->busy, 0); in maple_dma_handler() 662 atomic_set(&mdev->busy, 0); in maple_dma_handler() [all …]
|
/drivers/gpu/drm/i915/gem/ |
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()
|
/drivers/net/wireless/ath/ |
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()
|
/drivers/mmc/core/ |
D | mmc_ops.c | 185 static int __mmc_send_op_cond_cb(void *cb_data, bool *busy) in __mmc_send_op_cond_cb() argument 199 *busy = false; in __mmc_send_op_cond_cb() 204 *busy = false; in __mmc_send_op_cond_cb() 209 *busy = true; in __mmc_send_op_cond_cb() 461 static int mmc_busy_cb(void *cb_data, bool *busy) in mmc_busy_cb() argument 469 *busy = host->ops->card_busy(host); in mmc_busy_cb() 475 *busy = true; in mmc_busy_cb() 499 *busy = !mmc_ready_for_data(status); in mmc_busy_cb() 505 int (*busy_cb)(void *cb_data, bool *busy), in __mmc_poll_for_busy() argument 512 bool busy = false; in __mmc_poll_for_busy() local [all …]
|
/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
D | uvmm.c | 124 if (ret = -ENOENT, vma->busy) { in nvkm_uvmm_mthd_unmap() 125 VMM_DEBUG(vmm, "denied %016llx: %d", addr, vma->busy); in nvkm_uvmm_mthd_unmap() 174 if (ret = -ENOENT, vma->busy) { in nvkm_uvmm_mthd_map() 175 VMM_DEBUG(vmm, "denied %016llx: %d", addr, vma->busy); in nvkm_uvmm_mthd_map() 200 vma->busy = true; in nvkm_uvmm_mthd_map() 211 vma->busy = false; in nvkm_uvmm_mthd_map() 243 if (ret = -ENOENT, vma->busy) { in nvkm_uvmm_mthd_put() 244 VMM_DEBUG(vmm, "denied %016llx: %d", addr, vma->busy); in nvkm_uvmm_mthd_put()
|
/drivers/media/common/ |
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 …]
|
/drivers/firmware/ |
D | turris-mox-rwtm.c | 61 struct mutex busy; member 299 if (!mutex_trylock(&rwtm->busy)) in mox_hwrng_read() 302 mutex_lock(&rwtm->busy); in mox_hwrng_read() 321 mutex_unlock(&rwtm->busy); in mox_hwrng_read() 373 if (!mutex_trylock(&rwtm->busy)) in do_sign_write() 419 mutex_unlock(&rwtm->busy); in do_sign_write() 422 mutex_unlock(&rwtm->busy); in do_sign_write() 501 mutex_init(&rwtm->busy); in turris_mox_rwtm_probe()
|
/drivers/dma/ |
D | lpc18xx-dmamux.c | 28 bool busy; member 47 mux->busy = false; in lpc18xx_dmamux_free() 85 if (dmamux->muxes[mux].busy) { in lpc18xx_dmamux_reserve() 93 dmamux->muxes[mux].busy = true; in lpc18xx_dmamux_reserve()
|
/drivers/gpu/drm/i915/selftests/ |
D | i915_request.c | 1904 ktime_t busy; member 2877 p->busy = intel_engine_get_busy_time(p->engine, in perf_series_engines() 2892 u64 busy, dt, now; in perf_series_engines() local 2894 if (p->busy) in perf_series_engines() 2895 p->busy = ktime_sub(intel_engine_get_busy_time(p->engine, in perf_series_engines() 2897 p->busy - 1); in perf_series_engines() 2906 busy = 100 * ktime_to_ns(p->busy); in perf_series_engines() 2909 integer = div64_u64(busy, dt); in perf_series_engines() 2910 busy -= integer * dt; in perf_series_engines() 2911 decimal = div64_u64(100 * busy, dt); in perf_series_engines() [all …]
|
/drivers/mailbox/ |
D | sprd-mailbox.c | 158 u32 fifo_sts, send_sts, busy, id; in sprd_mbox_inbox_isr() local 180 busy = fifo_sts & SPRD_INBOX_FIFO_BUSY_MASK; in sprd_mbox_inbox_isr() 181 if (!(busy & BIT(id))) in sprd_mbox_inbox_isr() 219 u32 busy; in sprd_mbox_flush() local 224 busy = readl(priv->inbox_base + SPRD_MBOX_FIFO_STS) & in sprd_mbox_flush() 226 if (!(busy & BIT(id))) { in sprd_mbox_flush()
|
/drivers/sbus/char/ |
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()
|
/drivers/crypto/amcc/ |
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()
|
/drivers/block/paride/ |
D | pg.c | 211 int busy; /* write done, read expected */ member 253 dev->busy = 0; in pg_init_units() 543 if (dev->busy) { in pg_open() 545 dev->busy = 0; in pg_open() 582 if (dev->busy) in pg_write() 617 dev->busy = 1; in pg_write() 631 if (!dev->busy) in pg_read() 636 dev->busy = 0; in pg_read()
|
/drivers/comedi/drivers/ |
D | comedi_8254.c | 470 unsigned int counter, bool busy) in comedi_8254_set_busy() argument 473 i8254->busy[counter] = busy; in comedi_8254_set_busy() 486 if (i8254->busy[chan]) in comedi_8254_insn_read() 503 if (i8254->busy[chan]) in comedi_8254_insn_write() 521 if (i8254->busy[chan]) in comedi_8254_insn_config()
|
/drivers/net/wireless/silabs/wfx/ |
D | traces.h | 336 TP_PROTO(int ind, int req, int cnf, int busy, bool release), 337 TP_ARGS(ind, req, cnf, busy, release), 342 __field(int, busy) 349 __entry->busy = busy; 356 __entry->busy, 360 #define _trace_bh_stats(ind, req, cnf, busy, release)\ argument 361 trace_bh_stats(ind, req, cnf, busy, release)
|
/drivers/comedi/ |
D | comedi_fops.c | 349 if (s->busy) { in resize_async_buffer() 743 s->busy = NULL; in do_become_nonbusy() 748 s->busy = NULL; in do_become_nonbusy() 792 if (s->busy) in is_device_busy() 1009 if (s->busy) in do_subdinfo_ioctl() 1011 if (s->busy == file) in do_subdinfo_ioctl() 1125 if (!async || s->busy != file) in do_bufinfo_ioctl() 1424 if (s->busy) { in parse_insn() 1429 s->busy = parse_insn; in parse_insn() 1497 s->busy = NULL; in parse_insn() [all …]
|
/drivers/media/pci/ivtv/ |
D | ivtv-mailbox.c | 137 if (is_free && !test_and_set_bit(mb, &mbdata->busy)) { in try_mailbox() 196 clear_bit(i, &mbdata->busy); in clear_all_mailboxes() 249 clear_bit(mb, &mbdata->busy); in ivtv_api_call() 276 clear_bit(mb, &mbdata->busy); in ivtv_api_call() 295 clear_bit(mb, &mbdata->busy); in ivtv_api_call() 311 clear_bit(mb, &mbdata->busy); in ivtv_api_call()
|
/drivers/macintosh/ |
D | smu.c | 1075 int busy; member 1122 if (pp->busy) in smu_write() 1145 if (pp->busy) { in smu_write() 1149 pp->busy = 1; in smu_write() 1154 pp->busy = 0; in smu_write() 1180 if (!pp->busy) in smu_read_command() 1222 pp->busy = 0; in smu_read_command() 1263 if (pp->busy && pp->cmd.status != 1) in smu_fpoll() 1277 unsigned int busy; in smu_release() local 1287 busy = pp->busy; in smu_release() [all …]
|
/drivers/net/ethernet/chelsio/cxgb/ |
D | espi.c | 54 int busy, attempts = TRICN_CMD_ATTEMPTS; in tricn_write() local 65 busy = readl(adapter->regs + A_ESPI_GOSTAT) & F_ESPI_CMD_BUSY; in tricn_write() 66 } while (busy && --attempts); in tricn_write() 68 if (busy) in tricn_write() 71 return busy; in tricn_write()
|
/drivers/net/mdio/ |
D | mdio-ipq8064.c | 45 u32 busy; in ipq8064_mdio_wait_busy() local 47 return regmap_read_poll_timeout(priv->base, MII_ADDR_REG_ADDR, busy, in ipq8064_mdio_wait_busy() 48 !(busy & MII_BUSY), MII_MDIO_DELAY_USEC, in ipq8064_mdio_wait_busy()
|