/drivers/clk/imx/ |
D | clk-busy.c | 49 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 …]
|
/drivers/gpu/drm/gma500/ |
D | blitter.c | 26 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()
|
D | accel_2d.c | 329 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 …]
|
/drivers/mtd/maps/ |
D | vmu-flash.c | 149 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 …]
|
/drivers/clk/mxs/ |
D | clk-div.c | 31 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()
|
D | clk-frac.c | 34 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()
|
/drivers/char/hw_random/ |
D | virtio-rng.c | 37 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()
|
/drivers/isdn/hardware/eicon/ |
D | diva_dma.c | 33 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()
|
/drivers/sh/maple/ |
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 …]
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_txrx.c | 172 bool busy = false; in mlx5e_napi_poll() local 179 busy |= mlx5e_poll_tx_cq(&c->sq[i].cq, budget); in mlx5e_napi_poll() 182 busy |= work_done == budget; in mlx5e_napi_poll() 185 busy |= mlx5e_poll_xdp_tx_cq(&c->xdp_sq.cq); in mlx5e_napi_poll() 189 busy |= mlx5e_post_rx_wqes(&c->rq); in mlx5e_napi_poll() 191 if (busy) in mlx5e_napi_poll()
|
/drivers/isdn/hisax/ |
D | teles_cs.c | 52 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()
|
D | elsa_cs.c | 71 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()
|
D | st5481_d.c | 307 if (test_and_set_bit(buf_nr, &d_out->busy)) { in usb_d_out() 308 DBG(2, "ep %d urb %d busy %#lx", EP_D_OUT, buf_nr, d_out->busy); in usb_d_out() 384 test_and_clear_bit(buf_nr, &d_out->busy); in usb_d_out_complete() 395 if (d_out->busy == 0) { in usb_d_out_complete() 424 if (test_and_set_bit(buf_nr, &d_out->busy)) { in dout_start_xmit() 425 WARNING("ep %d urb %d busy %#lx", EP_D_OUT, buf_nr, d_out->busy); in dout_start_xmit() 521 if (test_bit(0, &d_out->busy) || test_bit(1, &d_out->busy)) { in dout_underrun() 533 if (!test_bit(0, &d_out->busy) && !test_bit(1, &d_out->busy)) in dout_check_busy()
|
/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/media/common/ |
D | cx2341x.c | 392 static int cx2341x_set_ctrl(struct cx2341x_mpeg_params *params, int busy, in cx2341x_set_ctrl() argument 397 if (busy) in cx2341x_set_ctrl() 402 if (busy) in cx2341x_set_ctrl() 411 if (busy) in cx2341x_set_ctrl() 416 if (busy) in cx2341x_set_ctrl() 464 if (busy) in cx2341x_set_ctrl() 473 if (busy) in cx2341x_set_ctrl() 478 if (busy) in cx2341x_set_ctrl() 492 if (busy) in cx2341x_set_ctrl() 963 int cx2341x_ext_ctrls(struct cx2341x_mpeg_params *params, int busy, in cx2341x_ext_ctrls() argument [all …]
|
/drivers/tee/optee/ |
D | supp.c | 22 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()
|
/drivers/dma/ |
D | lpc18xx-dmamux.c | 32 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()
|
/drivers/sbus/char/ |
D | flash.c | 30 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()
|
/drivers/staging/comedi/ |
D | comedi_fops.c | 355 if (s->busy) { in resize_async_buffer() 748 s->busy = NULL; in do_become_nonbusy() 753 s->busy = NULL; in do_become_nonbusy() 794 if (s->busy) in is_device_busy() 1007 if (s->busy) in do_subdinfo_ioctl() 1009 if (s->busy == file) in do_subdinfo_ioctl() 1124 if (!async || s->busy != file) in do_bufinfo_ioctl() 1347 if (s->busy) { in parse_insn() 1352 s->busy = parse_insn; in parse_insn() 1420 s->busy = NULL; in parse_insn() [all …]
|
/drivers/crypto/amcc/ |
D | crypto4xx_trng.c | 34 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()
|
/drivers/staging/comedi/drivers/ |
D | comedi_8254.c | 481 unsigned int counter, bool busy) in comedi_8254_set_busy() argument 484 i8254->busy[counter] = busy; in comedi_8254_set_busy() 497 if (i8254->busy[chan]) in comedi_8254_insn_read() 514 if (i8254->busy[chan]) in comedi_8254_insn_write() 532 if (i8254->busy[chan]) in comedi_8254_insn_config()
|
/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/nvdimm/ |
D | dimm_devs.c | 315 return sprintf(buf, "%s\n", atomic_read(&nvdimm->busy) in state_show() 376 atomic_set(&nvdimm->busy, 0); in nvdimm_create() 514 resource_size_t map_start, map_end, busy = 0, available, blk_start; in nd_pmem_available_dpa() local 534 busy += resource_size(res); in nd_pmem_available_dpa() 544 busy += resource_size(res); in nd_pmem_available_dpa() 547 busy += nd_mapping->size; in nd_pmem_available_dpa() 554 if (busy < available) in nd_pmem_available_dpa() 555 return available - busy; in nd_pmem_available_dpa()
|
/drivers/media/pci/ivtv/ |
D | ivtv-mailbox.c | 151 if (is_free && !test_and_set_bit(mb, &mbdata->busy)) { in try_mailbox() 210 clear_bit(i, &mbdata->busy); in clear_all_mailboxes() 263 clear_bit(mb, &mbdata->busy); in ivtv_api_call() 290 clear_bit(mb, &mbdata->busy); in ivtv_api_call() 309 clear_bit(mb, &mbdata->busy); in ivtv_api_call() 325 clear_bit(mb, &mbdata->busy); in ivtv_api_call()
|
/drivers/macintosh/ |
D | smu.c | 1074 int busy; member 1121 if (pp->busy) in smu_write() 1144 if (pp->busy) { in smu_write() 1148 pp->busy = 1; in smu_write() 1153 pp->busy = 0; in smu_write() 1179 if (!pp->busy) in smu_read_command() 1221 pp->busy = 0; in smu_read_command() 1262 if (pp->busy && pp->cmd.status != 1) in smu_fpoll() 1276 unsigned int busy; in smu_release() local 1286 busy = pp->busy; in smu_release() [all …]
|