Searched refs:busy (Results 1 - 200 of 1409) sorted by relevance

12345678

/linux-4.1.27/arch/arm/mach-imx/
H A Dclk-busy.c49 struct clk_busy_divider *busy = to_clk_busy_divider(hw); clk_busy_divider_recalc_rate() local
51 return busy->div_ops->recalc_rate(&busy->div.hw, parent_rate); clk_busy_divider_recalc_rate()
57 struct clk_busy_divider *busy = to_clk_busy_divider(hw); clk_busy_divider_round_rate() local
59 return busy->div_ops->round_rate(&busy->div.hw, rate, prate); clk_busy_divider_round_rate()
65 struct clk_busy_divider *busy = to_clk_busy_divider(hw); clk_busy_divider_set_rate() local
68 ret = busy->div_ops->set_rate(&busy->div.hw, rate, parent_rate); clk_busy_divider_set_rate()
70 ret = clk_busy_wait(busy->reg, busy->shift); clk_busy_divider_set_rate()
85 struct clk_busy_divider *busy; imx_clk_busy_divider() local
89 busy = kzalloc(sizeof(*busy), GFP_KERNEL); imx_clk_busy_divider()
90 if (!busy) imx_clk_busy_divider()
93 busy->reg = busy_reg; imx_clk_busy_divider()
94 busy->shift = busy_shift; imx_clk_busy_divider()
96 busy->div.reg = reg; imx_clk_busy_divider()
97 busy->div.shift = shift; imx_clk_busy_divider()
98 busy->div.width = width; imx_clk_busy_divider()
99 busy->div.lock = &imx_ccm_lock; imx_clk_busy_divider()
100 busy->div_ops = &clk_divider_ops; imx_clk_busy_divider()
108 busy->div.hw.init = &init; imx_clk_busy_divider()
110 clk = clk_register(NULL, &busy->div.hw); imx_clk_busy_divider()
112 kfree(busy); imx_clk_busy_divider()
133 struct clk_busy_mux *busy = to_clk_busy_mux(hw); clk_busy_mux_get_parent() local
135 return busy->mux_ops->get_parent(&busy->mux.hw); clk_busy_mux_get_parent()
140 struct clk_busy_mux *busy = to_clk_busy_mux(hw); clk_busy_mux_set_parent() local
143 ret = busy->mux_ops->set_parent(&busy->mux.hw, index); clk_busy_mux_set_parent()
145 ret = clk_busy_wait(busy->reg, busy->shift); clk_busy_mux_set_parent()
159 struct clk_busy_mux *busy; imx_clk_busy_mux() local
163 busy = kzalloc(sizeof(*busy), GFP_KERNEL); imx_clk_busy_mux()
164 if (!busy) imx_clk_busy_mux()
167 busy->reg = busy_reg; imx_clk_busy_mux()
168 busy->shift = busy_shift; imx_clk_busy_mux()
170 busy->mux.reg = reg; imx_clk_busy_mux()
171 busy->mux.shift = shift; imx_clk_busy_mux()
172 busy->mux.mask = BIT(width) - 1; imx_clk_busy_mux()
173 busy->mux.lock = &imx_ccm_lock; imx_clk_busy_mux()
174 busy->mux_ops = &clk_mux_ops; imx_clk_busy_mux()
182 busy->mux.hw.init = &init; imx_clk_busy_mux()
184 clk = clk_register(NULL, &busy->mux.hw); imx_clk_busy_mux()
186 kfree(busy); imx_clk_busy_mux()
H A DMakefile18 clk-pfd.o clk-busy.o clk.o \
/linux-4.1.27/drivers/gpu/drm/gma500/
H A Dblitter.c26 int busy = 1; gma_blt_wait_idle() local
38 busy = (PSB_RSGX32(PSB_CR_2D_SOCIF) != _PSB_C2_SOCIF_EMPTY); gma_blt_wait_idle()
39 } while (busy && !time_after_eq(jiffies, stop)); gma_blt_wait_idle()
41 if (busy) gma_blt_wait_idle()
45 busy = ((PSB_RSGX32(PSB_CR_2D_BLIT_STATUS) & gma_blt_wait_idle()
47 } while (busy && !time_after_eq(jiffies, stop)); gma_blt_wait_idle()
49 /* If still busy, we probably have a hang */ gma_blt_wait_idle()
50 return (busy) ? -EBUSY : 0; gma_blt_wait_idle()
H A Daccel_2d.c330 int busy = 0; psbfb_sync() local
343 busy = (PSB_RSGX32(PSB_CR_2D_SOCIF) != _PSB_C2_SOCIF_EMPTY); psbfb_sync()
345 } while (busy && !time_after_eq(jiffies, _end)); psbfb_sync()
347 if (busy) psbfb_sync()
348 busy = (PSB_RSGX32(PSB_CR_2D_SOCIF) != _PSB_C2_SOCIF_EMPTY); psbfb_sync()
349 if (busy) psbfb_sync()
353 busy = ((PSB_RSGX32(PSB_CR_2D_BLIT_STATUS) & psbfb_sync()
356 } while (busy && !time_after_eq(jiffies, _end)); psbfb_sync()
357 if (busy) psbfb_sync()
358 busy = ((PSB_RSGX32(PSB_CR_2D_BLIT_STATUS) & psbfb_sync()
363 return (busy) ? -EBUSY : 0; psbfb_sync()
/linux-4.1.27/arch/arm/mach-spear/
H A Dpl080.c26 unsigned char busy; member in struct:__anon275
38 if (signals[signal].busy && pl080_get_signal()
45 if (!signals[signal].busy) { pl080_get_signal()
58 signals[signal].busy++; pl080_get_signal()
72 if (!signals[signal].busy) pl080_put_signal()
75 signals[signal].busy--; pl080_put_signal()
/linux-4.1.27/drivers/clk/mxs/
H A Dclk-div.c23 * @busy: busy bit shift
26 * addtional busy bit.
32 u8 busy; member in struct:clk_div
66 ret = mxs_clk_wait(div->reg, div->busy); clk_div_set_rate()
78 void __iomem *reg, u8 shift, u8 width, u8 busy) mxs_clk_div()
95 div->busy = busy; mxs_clk_div()
77 mxs_clk_div(const char *name, const char *parent_name, void __iomem *reg, u8 shift, u8 width, u8 busy) mxs_clk_div() argument
H A Dclk-frac.c25 * @busy: busy bit shift
27 * The clock is an adjustable fractional divider with a busy bit to wait
35 u8 busy; member in struct:clk_frac
102 return mxs_clk_wait(frac->reg, frac->busy); clk_frac_set_rate()
112 void __iomem *reg, u8 shift, u8 width, u8 busy) mxs_clk_frac()
131 frac->busy = busy; mxs_clk_frac()
111 mxs_clk_frac(const char *name, const char *parent_name, void __iomem *reg, u8 shift, u8 width, u8 busy) mxs_clk_frac() argument
H A Dclk.h33 void __iomem *reg, u8 shift, u8 width, u8 busy);
36 void __iomem *reg, u8 shift, u8 width, u8 busy);
/linux-4.1.27/drivers/staging/media/lirc/
H A Dlirc_parallel.h16 #define LIRC_PORT_TIMER_BIT LP_PBUSY /* busy signal */
H A Dlirc_sasem.c109 atomic_t busy; /* write in progress */ member in struct:sasem_context::tx_t
333 atomic_set(&context->tx.busy, 1); send_packet()
337 atomic_set(&context->tx.busy, 0); send_packet()
472 atomic_set(&context->tx.busy, 0); usb_tx_callback()
901 if (atomic_read(&context->tx.busy)) { sasem_disconnect()
/linux-4.1.27/kernel/
H A Dworkqueue_internal.h17 * either serving the manager role, on idle list or on busy hash. For
23 /* on idle list while idle, on busy hash table while busy */
26 struct hlist_node hentry; /* L: while busy */
H A Ddma.c49 /* Channel n is busy iff dma_chan_busy[n].lock != 0.
79 /* old flag was 0, now contains 1 to indicate busy */ request_dma()
H A Dresource.c1033 * the IO flag meanings (busy etc).
1035 * request_region creates a new busy region.
1037 * release_region releases a matching busy region.
1043 * __request_region - create a new busy resource region
1105 * The described resource region must match a currently busy region.
1156 * is released from a currently busy memory resource. The requested region
1157 * must either match exactly or fit into a single busy resource entry. In
1159 * Existing children of the busy memory resource must be immutable in the
1165 * - When a busy memory resource gets split into two entries, the code
/linux-4.1.27/include/linux/
H A Dirq_work.h11 * pending next, 3 -> {busy} : queued, pending callback
12 * busy NULL, 2 -> {free, claimed} : callback in progress, can be claimed
H A Dlp.h21 #define LP_F(minor) lp_table[(minor)].flags /* flags for busy, etc. */
22 #define LP_CHAR(minor) lp_table[(minor)].chars /* busy timeout */
H A Drxrpc.h49 #define RXRPC_BUSY 6 /* server busy received [terminal] */
H A Damifd.h55 int busy; /* true when drive is active */ member in struct:amiga_floppy_struct
H A Dmaple.h78 atomic_t busy; member in struct:maple_device
H A Dhwspinlock.h198 * is already taken, the function will busy loop waiting for it to
207 * busy after @timeout msecs). The function will never sleep.
221 * is already taken, the function will busy loop waiting for it to
230 * busy after @timeout msecs). The function will never sleep.
244 * is already taken, the function will busy loop waiting for it to
255 * busy after @timeout msecs). The function will never sleep.
H A Drio_regs.h109 #define RIO_MBOX0_BUSY 0x10000000 /* [II] Mbox 0 busy */
115 #define RIO_MBOX1_BUSY 0x00100000 /* [II] Mbox 1 busy */
121 #define RIO_MBOX2_BUSY 0x00001000 /* [II] Mbox 2 busy */
127 #define RIO_MBOX3_BUSY 0x00000010 /* [II] Mbox 3 busy */
136 #define RIO_DOORBELL_BUSY 0x10000000 /* [II] Doorbell busy */
H A Dscc.h38 unsigned int maxdefer; /* Timer for CSMA channel busy limit */
H A Dauto_dev-ioctl.h164 /* Request busy status */
H A Dnfs_fs_sb.h31 #define NFS_CS_INITING 1 /* busy initialising */
32 #define NFS_CS_SESSION_INITING 2 /* busy initialising session */
/linux-4.1.27/fs/xfs/
H A Dxfs_extent_busy.c96 * Search for a busy extent within the range of the extent we are about to
97 * allocate. You need to be holding the busy extent tree lock when calling
98 * xfs_extent_busy_search(). This function returns 0 for no overlapping busy
99 * extent, -1 for an overlapping but not exact busy extent, and 1 for an exact
146 * The found free extent [fbno, fend] overlaps part or all of the given busy
147 * extent. If the overlap covers the beginning, the end, or all of the busy
149 * allocation. We can't split a busy extent because we can't modify a
150 * transaction/CIL context busy list, but we can update an entry's block
183 * If there is a busy extent overlapping a user allocation, we have
203 * We would have to split the busy extent to be able to track
205 * modify the list of busy extents attached to the transaction
208 * Force out the log to clear the busy extent and retry the
241 * The busy extent is fully covered by the extent we are
244 * tracking busy extents in the transaction or CIL context,
247 * We also need to restart the busy extent search from the
344 * For a given extent [fbno, flen], search the busy extent list to find a
345 * subset of the extent that is not busy. If *rlen is smaller than
384 * If this is a metadata allocation, try to reuse the busy xfs_extent_busy_trim()
489 * allocation; if the segment is no longer busy at xfs_extent_busy_trim()
491 * even if it is still busy, we will get a forward xfs_extent_busy_trim()
555 * Remove all extents on the passed in list from the busy extents tree.
594 * Callback for list_sort to sort busy extents by the AG they reside in.
H A Dxfs_extent_busy.h36 struct list_head list; /* transaction busy extent list */
/linux-4.1.27/drivers/video/fbdev/via/
H A Daccel.h179 /* Command Regulator is busy */
181 /* 2D Engine is busy */
183 /* 3D Engine is busy */
185 /* Virtual Queue is busy */
189 #define VIA_CMD_RGTR_BUSY_H5 0x00000010 /* Command Regulator is busy */
190 #define VIA_2D_ENG_BUSY_H5 0x00000002 /* 2D Engine is busy */
191 #define VIA_3D_ENG_BUSY_H5 0x00001FE1 /* 3D Engine is busy */
192 #define VIA_VR_QUEUE_BUSY_H5 0x00000004 /* Virtual Queue is busy */
195 #define VIA_CMD_RGTR_BUSY_M1 0x00000010 /* Command Regulator is busy */
196 #define VIA_2D_ENG_BUSY_M1 0x00000002 /* 2D Engine is busy */
197 #define VIA_3D_ENG_BUSY_M1 0x00001FE1 /* 3D Engine is busy */
198 #define VIA_VR_QUEUE_BUSY_M1 0x00000004 /* Virtual Queue is busy */
/linux-4.1.27/drivers/mtd/maps/
H A Dvmu-flash.c149 if (atomic_read(&mdev->busy) == 1) { maple_vmu_read_block()
151 atomic_read(&mdev->busy) == 0, HZ); maple_vmu_read_block()
152 if (atomic_read(&mdev->busy) == 1) { maple_vmu_read_block()
154 " is busy\n", mdev->port, mdev->unit); maple_vmu_read_block()
160 atomic_set(&mdev->busy, 1); maple_vmu_read_block()
164 atomic_set(&mdev->busy, 0); maple_vmu_read_block()
175 (atomic_read(&mdev->busy) == 0 || maple_vmu_read_block()
176 atomic_read(&mdev->busy) == 2), HZ * 3); maple_vmu_read_block()
180 * in the middle of a read (busy == 2) maple_vmu_read_block()
182 if (error || atomic_read(&mdev->busy) == 2) { maple_vmu_read_block()
183 if (atomic_read(&mdev->busy) == 2) maple_vmu_read_block()
185 atomic_set(&mdev->busy, 0); maple_vmu_read_block()
191 atomic_set(&mdev->busy, 0); maple_vmu_read_block()
252 /* wait until the device is not busy doing something else maple_vmu_write_block()
254 if (atomic_read(&mdev->busy) == 1) { maple_vmu_write_block()
256 atomic_read(&mdev->busy) == 0, HZ); maple_vmu_write_block()
257 if (atomic_read(&mdev->busy) == 1) { maple_vmu_write_block()
260 "failed - device is busy\n", maple_vmu_write_block()
265 atomic_set(&mdev->busy, 1); maple_vmu_write_block()
270 atomic_read(&mdev->busy) == 0, HZ/10); maple_vmu_write_block()
273 atomic_set(&mdev->busy, 0); maple_vmu_write_block()
276 if (atomic_read(&mdev->busy) == 2) { maple_vmu_write_block()
277 atomic_set(&mdev->busy, 0); maple_vmu_write_block()
284 atomic_set(&mdev->busy, 0); maple_vmu_write_block()
657 if (atomic_read(&mdev->busy) == 1) { vmu_connect()
659 atomic_read(&mdev->busy) == 0, HZ); vmu_connect()
660 if (atomic_read(&mdev->busy) == 1) { vmu_connect()
661 dev_notice(&mdev->dev, "VMU at (%d, %d) is busy\n", vmu_connect()
668 atomic_set(&mdev->busy, 1); vmu_connect()
/linux-4.1.27/sound/arm/
H A Daaci.h81 #define SR_TXB (1 << 7) /* tx busy */
82 #define SR_RXB (1 << 6) /* rx busy */
145 #define SLFR_12TXB (1 << 5) /* slot 12 tx busy */
146 #define SLFR_12RXB (1 << 4) /* slot 12 rx busy */
147 #define SLFR_2TXB (1 << 3) /* slot 2 tx busy */
148 #define SLFR_2RXB (1 << 2) /* slot 2 rx busy */
149 #define SLFR_1TXB (1 << 1) /* slot 1 tx busy */
150 #define SLFR_1RXB (1 << 0) /* slot 1 rx busy */
197 #define MAINFR_TXB (1 << 1) /* transmit busy */
198 #define MAINFR_RXB (1 << 0) /* receive busy */
/linux-4.1.27/drivers/char/hw_random/
H A Dvirtio-rng.c37 bool busy; member in struct:virtrng_info
74 if (!vi->busy) { virtio_read()
75 vi->busy = true; virtio_read()
87 vi->busy = false; virtio_read()
96 if (vi->busy) virtio_cleanup()
150 vi->busy = false; remove_common()
H A Dppc4xx-rng.c34 int busy, i, present = 0; ppc4xx_rng_data_present() local
37 busy = (in_le32(rng_regs + PPC4XX_TRNG_STAT) & PPC4XX_TRNG_STAT_B); ppc4xx_rng_data_present()
38 if (!busy || !wait) { ppc4xx_rng_data_present()
/linux-4.1.27/drivers/devfreq/exynos/
H A Dexynos_ppmu.c106 int i, j, busy = 0; exynos_get_busier_ppmu() local
112 busy = i; exynos_get_busier_ppmu()
117 return busy; exynos_get_busier_ppmu()
/linux-4.1.27/include/video/
H A Dauo_k190xfb.h74 * @wait_for_rdy: wait until the controller is not busy anymore
78 * @setup_irq: method to setup the irq handling on the busy gpio
81 * @gpio_nbusy: busy gpio
/linux-4.1.27/drivers/isdn/hardware/eicon/
H A Ddiva_dma.c33 int busy; member in struct:_diva_dma_map_entry
71 if (!pmap[i].busy) { diva_alloc_dma_map_entry()
72 pmap[i].busy = 1; diva_alloc_dma_map_entry()
82 pmap[nr].busy = 0; diva_free_dma_map_entry()
/linux-4.1.27/drivers/firmware/efi/
H A Druntime-wrappers.c30 * | If previous call is busy in | Forbidden to call |
72 * | GetTime() | Yes, even if previously busy. |
73 * | GetVariable() | Yes, even if previously busy |
74 * | GetNextVariableName() | Yes, even if previously busy |
75 * | QueryVariableInfo() | Yes, even if previously busy |
76 * | SetVariable() | Yes, even if previously busy |
77 * | UpdateCapsule() | Yes, even if previously busy |
78 * | QueryCapsuleCapabilities() | Yes, even if previously busy |
79 * | ResetSystem() | Yes, even if previously busy |
/linux-4.1.27/arch/x86/um/asm/
H A Dprocessor.h22 /* REP NOP (PAUSE) is a good thing to insert into busy-wait loops. */ rep_nop()
/linux-4.1.27/include/uapi/asm-generic/
H A Derrno-base.h19 #define EBUSY 16 /* Device or resource busy */
29 #define ETXTBSY 26 /* Text file busy */
/linux-4.1.27/arch/mn10300/mm/
H A Dcache-flush-by-reg.S60 # wait for busy bit of area purge
77 # wait for busy bit of area purge
138 # wait for busy bit of area purge
158 # wait for busy bit of area purge
196 # wait for busy bit of area purge & invalidate
210 # wait for busy bit of area purge & invalidate
271 # wait for busy bit of area purge & invalidate
291 # wait for busy bit of area purge & invalidate
H A Dcache-dbg-flush-by-reg.S49 # wait for busy bit of area purge
66 # wait for busy bit of area purge
H A Dcache-inv-by-reg.S152 mov DCPGCR,a0 # make sure the purger isn't busy
301 /* wait for busy bit of area invalidation */
328 /* wait for busy bit of area invalidation */
/linux-4.1.27/drivers/isdn/hisax/
H A Delsa_cs.c71 int busy; member in struct:local_info_t
99 info->busy = 1; elsa_cs_detach()
154 i = hisax_init_pcmcia(link, &(((local_info_t *)link->priv)->busy), &icard); elsa_cs_config()
188 dev->busy = 1; elsa_suspend()
197 dev->busy = 0; elsa_resume()
H A Dteles_cs.c52 int busy; member in struct:local_info_t
81 info->busy = 1; teles_detach()
134 i = hisax_init_pcmcia(link, &(((local_info_t *)link->priv)->busy), &icard); teles_cs_config()
170 dev->busy = 1; teles_suspend()
179 dev->busy = 0; teles_resume()
H A Dst5481_d.c307 if (test_and_set_bit(buf_nr, &d_out->busy)) { usb_d_out()
308 DBG(2, "ep %d urb %d busy %#lx", EP_D_OUT, buf_nr, d_out->busy); usb_d_out()
384 test_and_clear_bit(buf_nr, &d_out->busy); usb_d_out_complete()
395 if (d_out->busy == 0) { usb_d_out_complete()
424 if (test_and_set_bit(buf_nr, &d_out->busy)) { dout_start_xmit()
425 WARNING("ep %d urb %d busy %#lx", EP_D_OUT, buf_nr, d_out->busy); dout_start_xmit()
521 if (test_bit(0, &d_out->busy) || test_bit(1, &d_out->busy)) { dout_underrun()
533 if (!test_bit(0, &d_out->busy) && !test_bit(1, &d_out->busy)) dout_check_busy()
H A Dst5481_b.c40 if (test_and_set_bit(buf_nr, &b_out->busy)) { usb_b_out()
41 DBG(4, "ep %d urb %d busy", (bcs->channel + 1) * 2, buf_nr); usb_b_out()
173 test_and_clear_bit(buf_nr, &b_out->busy); usb_b_out_complete()
184 if (b_out->busy == 0) { usb_b_out_complete()
215 b_out->busy = 0; st5481B_mode()
347 * we either start transmitting (if idle) or queue (if busy).
H A Davma1_cs.c80 int busy = 0; avma1cs_config() local
123 i = hisax_init_pcmcia(link, &busy, &icard); avma1cs_config()
H A Dst5481_usb.c34 if (test_and_set_bit(0, &ctrl->busy)) { usb_next_ctrl_msg()
39 test_and_clear_bit(0, &ctrl->busy); usb_next_ctrl_msg()
58 * The request will be queued up in a FIFO if the endpoint is busy.
158 clear_bit(0, &ctrl->busy); usb_ctrl_complete()
H A Dst5481.h328 unsigned long busy; member in struct:st5481_ctrl
340 unsigned long busy; member in struct:st5481_d_out
349 u_long busy; member in struct:st5481_b_out
/linux-4.1.27/arch/powerpc/mm/
H A Dhugepage-hash64.c33 * atomically mark the linux large page PMD busy and dirty __hash_page_thp()
39 /* If PMD busy, retry the access */ __hash_page_thp()
117 * large pte is marked busy, so we can be sure __hash_page_thp()
176 * large pte is marked busy, so we can be sure __hash_page_thp()
190 * second half of the PMD. Order this against clearing of the busy bit in __hash_page_thp()
H A Dhash_low_64.S79 * Check permissions, atomically mark the linux PTE busy
87 /* Check if PTE is busy */
100 /* Write the linux PTE atomically (setting busy) */
377 * Check permissions, atomically mark the linux PTE busy
385 /* Check if PTE is busy */
398 /* Write the linux PTE atomically (setting busy) */
736 * Check permissions, atomically mark the linux PTE busy
744 /* Check if PTE is busy */
762 /* Write the linux PTE atomically (setting busy) */
/linux-4.1.27/drivers/net/wireless/rt2x00/
H A Drt2x00mmio.h62 * rt2x00mmio_regbusy_read - Read from register with busy check
65 * @field: Field to check if register is busy
69 * register is busy. If it is, it will sleep for a couple of
/linux-4.1.27/drivers/sh/maple/
H A Dmaple.c390 atomic_set(&mdev->busy, 0); maple_attach_driver()
423 if (mdev->interval > 0 && atomic_read(&mdev->busy) == 0 && setup_maple_commands()
435 * device as busy */ setup_maple_commands()
436 if (atomic_read(&mdev->busy) == 0) { setup_maple_commands()
437 atomic_set(&mdev->busy, 1); setup_maple_commands()
476 atomic_set(&mdev->busy, 1); maple_vblank_handler()
513 atomic_set(&mdev_add->busy, 1); maple_map_subunits()
551 atomic_set(&mdev->busy, 2); maple_response_none()
573 atomic_set(&mdev->busy, 0); maple_response_none()
657 atomic_set(&mdev->busy, 0); maple_dma_handler()
663 atomic_set(&mdev->busy, 0); maple_dma_handler()
669 atomic_set(&mdev->busy, 0); maple_dma_handler()
679 atomic_set(&mdev->busy, 0); maple_dma_handler()
687 atomic_set(&mdev->busy, 0); maple_dma_handler()
691 atomic_set(&mdev->busy, 0); maple_dma_handler()
855 atomic_set(&mdev[i]->busy, 1); maple_bus_init()
/linux-4.1.27/drivers/staging/comedi/drivers/
H A Dcomedi_8254.h76 * @busy: flags used to indicate that a counter is "busy"
93 bool busy[3]; member in struct:comedi_8254
119 unsigned int counter, bool busy);
H A Dcomedi_8254.c108 * Internally flags a counter as "busy". This is done to protect the
475 * comedi_8254_set_busy - set/clear the "busy" flag for a given counter
478 * @busy: set/clear flag
481 unsigned int counter, bool busy) comedi_8254_set_busy()
484 i8254->busy[counter] = busy; comedi_8254_set_busy()
497 if (i8254->busy[chan]) comedi_8254_insn_read()
514 if (i8254->busy[chan]) comedi_8254_insn_write()
532 if (i8254->busy[chan]) comedi_8254_insn_config()
480 comedi_8254_set_busy(struct comedi_8254 *i8254, unsigned int counter, bool busy) comedi_8254_set_busy() argument
/linux-4.1.27/drivers/sbus/char/
H A Dflash.c30 unsigned long busy; /* In use? */ member in struct:__anon8505
128 if (test_and_set_bit(0, (void *)&flash.busy) != 0) { flash_open()
141 flash.busy = 0; flash_release()
182 flash.busy = 0; flash_probe()
H A Djsflash.c107 unsigned long busy; /* In use? */ member in struct:jsflash
428 if (test_and_set_bit(0, (void *)&jsf0.busy) != 0) { jsf_open()
439 jsf0.busy = 0; jsf_release()
624 if (jsf0.busy) jsflash_cleanup_module()
625 printk("jsf0: cleaning busy unit\n"); jsflash_cleanup_module()
627 jsf0.busy = 0; jsflash_cleanup_module()
/linux-4.1.27/arch/x86/math-emu/
H A Dexception.h22 #define FPU_BUSY Const_(0x8000) /* FPU busy bit (8087 compatibility) */
/linux-4.1.27/include/linux/spi/
H A Dspi_bitbang.h8 u8 busy; member in struct:spi_bitbang
/linux-4.1.27/net/llc/
H A Dsysctl_net_llc.c26 .procname = "busy",
/linux-4.1.27/sound/soc/blackfin/
H A Dbf6xx-i2s.c109 dev_err(dev, "SPORT tx is busy!\n"); bfin_i2s_hw_params()
115 dev_err(dev, "SPORT rx is busy!\n"); bfin_i2s_hw_params()
142 dev_err(dev, "SPORT tx is busy!\n"); bfin_i2s_resume()
147 dev_err(dev, "SPORT rx is busy!\n"); bfin_i2s_resume()
H A Dbf5xx-ac97.c238 pr_err("SPORT is busy!\n"); bf5xx_ac97_resume()
244 pr_err("SPORT is busy!\n"); bf5xx_ac97_resume()
250 pr_err("SPORT is busy!\n"); bf5xx_ac97_resume()
320 pr_err("SPORT is busy!\n"); asoc_bfin_ac97_probe()
327 pr_err("SPORT is busy!\n"); asoc_bfin_ac97_probe()
334 pr_err("SPORT is busy!\n"); asoc_bfin_ac97_probe()
H A Dbf5xx-i2s.c155 dev_err(dai->dev, "SPORT is busy!\n"); bf5xx_i2s_hw_params()
162 dev_err(dai->dev, "SPORT is busy!\n"); bf5xx_i2s_hw_params()
265 dev_err(dai->dev, "SPORT is busy!\n"); bf5xx_i2s_resume()
272 dev_err(dai->dev, "SPORT is busy!\n"); bf5xx_i2s_resume()
/linux-4.1.27/arch/sh/drivers/dma/
H A Ddma-api.c178 if (atomic_read(&channel->busy) == 0) dmac_search_free_channel()
187 atomic_set(&channel->busy, 1); dmac_search_free_channel()
201 if (atomic_xchg(&channel->busy, 1)) request_dma()
209 atomic_set(&channel->busy, 0); request_dma()
226 atomic_set(&channel->busy, 0); free_dma()
388 atomic_set(&chan->busy, 0); register_dmac()
/linux-4.1.27/arch/m68k/fpsp040/
H A 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
318 | Check if the frame to be restored is busy or unimp.
320 | If the frame is unimp, we must create a busy frame to
335 bnes do_restore |frame must be busy
346 | busy frame was created as the result of an exception on the final
353 moveb VER_TMP(%a6),(%a7) |write busy fmt word
H A Dx_snan.S101 moveb VER_TMP(%a6),(%a7) |format a busy frame
112 | Exit snan handler by expanding the unimp frame into a busy frame
129 moveb VER_TMP(%a6),(%a7) |format a busy frame
130 moveb #BUSY_SIZE-4,1(%a7) |write busy size
H A Dbugfix.S16 | * longword $08 in the busy frame $4x60. Bit 16
304 | The frame returned is idle. We must build a busy frame to hold
340 | The frame returned is busy. It is not possible to reconstruct
430 | The frame returned is idle. We must build a busy frame to hold
477 | The frame returned is busy. It is not possible to reconstruct
/linux-4.1.27/arch/powerpc/include/asm/
H A Dhvcall.h8 #define H_BUSY 1 /* Hardware busy -- retry later */
13 #define H_IN_PROGRESS 14 /* Kind of like busy */
18 #define H_LONG_BUSY_START_RANGE 9900 /* Start of long busy range */
19 #define H_LONG_BUSY_ORDER_1_MSEC 9900 /* Long busy, hint that 1msec \
21 #define H_LONG_BUSY_ORDER_10_MSEC 9901 /* Long busy, hint that 10msec \
23 #define H_LONG_BUSY_ORDER_100_MSEC 9902 /* Long busy, hint that 100msec \
25 #define H_LONG_BUSY_ORDER_1_SEC 9903 /* Long busy, hint that 1sec \
27 #define H_LONG_BUSY_ORDER_10_SEC 9904 /* Long busy, hint that 10sec \
29 #define H_LONG_BUSY_ORDER_100_SEC 9905 /* Long busy, hint that 100sec \
31 #define H_LONG_BUSY_END_RANGE 9905 /* End of long busy range */
H A Dpte-hash64.h27 #define _PAGE_BUSY 0x0800 /* software: PTE & hash are busy */
/linux-4.1.27/drivers/staging/comedi/
H A Dcomedi_fops.c339 if (s->busy) { resize_async_buffer()
341 "subdevice is busy, cannot resize buffer\n"); resize_async_buffer()
713 s->busy = NULL; do_become_nonbusy()
718 s->busy = NULL; do_become_nonbusy()
759 if (s->busy) is_device_busy()
972 if (s->busy) do_subdinfo_ioctl()
974 if (s->busy == file) do_subdinfo_ioctl()
1102 if (!s->busy) { do_bufinfo_ioctl()
1107 if (s->busy != file) do_bufinfo_ioctl()
1305 if (s->busy) { parse_insn()
1310 s->busy = &parse_insn; parse_insn()
1378 s->busy = NULL; parse_insn()
1658 /* are we busy? */ do_cmd_ioctl()
1659 if (s->busy) { do_cmd_ioctl()
1660 dev_dbg(dev->class_dev, "subdevice busy\n"); do_cmd_ioctl()
1712 * Set s->busy _after_ setting COMEDI_SRF_RUNNING flag to avoid do_cmd_ioctl()
1715 s->busy = file; do_cmd_ioctl()
1806 if (s->busy || s->lock) do_lock_ioctl()
1837 if (s->busy) do_unlock_ioctl()
1873 if (!s->busy) do_cancel_ioctl()
1876 if (s->busy != file) do_cancel_ioctl()
1904 if (!s->busy) do_poll_ioctl()
1907 if (s->busy != file) do_poll_ioctl()
1947 * Check the file isn't still busy handling a "read" command on the do_setrsubd_ioctl()
1950 if (s_old && s_old->busy == file && s_old->async && do_setrsubd_ioctl()
1989 * Check the file isn't still busy handling a "write" command on the do_setwsubd_ioctl()
1992 if (s_old && s_old->busy == file && s_old->async && do_setwsubd_ioctl()
2243 if (!s->busy || !comedi_is_subdevice_running(s) || comedi_poll()
2255 if (!s->busy || !comedi_is_subdevice_running(s) || comedi_poll()
2298 if (!s->busy || !nbytes) comedi_write()
2300 if (s->busy != file) { comedi_write()
2338 * Become non-busy unless things have changed comedi_write()
2376 if (!s->busy) comedi_write()
2378 if (s->busy != file) { comedi_write()
2444 if (!s->busy || !nbytes) comedi_read()
2446 if (s->busy != file) { comedi_read()
2487 if (!s->busy) { comedi_read()
2491 if (s->busy != file) { comedi_read()
2624 if (s->busy == file) comedi_close()
/linux-4.1.27/include/uapi/scsi/fc/
H A Dfc_fs.h108 FC_RCTL_P_BSY = 0xc4, /* port busy */
109 FC_RCTL_F_BSY = 0xc5, /* fabric busy to data frame */
110 FC_RCTL_F_BSYL = 0xc6, /* fabric busy to link control frame */
143 [FC_RCTL_P_BSY] = "LC port busy", \
144 [FC_RCTL_F_BSY] = "LC fabric busy to data frame", \
145 [FC_RCTL_F_BSYL] = "LC fabric busy to link control frame",\
275 FC_BA_RJT_LOG_BUSY = 0x05, /* logical busy */
H A Dfc_gs.h77 FC_FS_RJT_BSY = 0x05, /* logical busy */
/linux-4.1.27/drivers/media/common/
H A Dcx2341x.c392 static int cx2341x_set_ctrl(struct cx2341x_mpeg_params *params, int busy, cx2341x_set_ctrl() argument
397 if (busy) cx2341x_set_ctrl()
402 if (busy) cx2341x_set_ctrl()
411 if (busy) cx2341x_set_ctrl()
416 if (busy) cx2341x_set_ctrl()
464 if (busy) cx2341x_set_ctrl()
473 if (busy) cx2341x_set_ctrl()
478 if (busy) cx2341x_set_ctrl()
492 if (busy) cx2341x_set_ctrl()
963 int cx2341x_ext_ctrls(struct cx2341x_mpeg_params *params, int busy, cx2341x_ext_ctrls() argument
995 err = cx2341x_set_ctrl(params, busy, ctrl); cx2341x_ext_ctrls()
1744 void cx2341x_handler_set_busy(struct cx2341x_handler *cxhdl, int busy) cx2341x_handler_set_busy() argument
1746 v4l2_ctrl_grab(cxhdl->audio_sampling_freq, busy); cx2341x_handler_set_busy()
1747 v4l2_ctrl_grab(cxhdl->audio_encoding, busy); cx2341x_handler_set_busy()
1748 v4l2_ctrl_grab(cxhdl->audio_l2_bitrate, busy); cx2341x_handler_set_busy()
1749 v4l2_ctrl_grab(cxhdl->audio_ac3_bitrate, busy); cx2341x_handler_set_busy()
1750 v4l2_ctrl_grab(cxhdl->stream_vbi_fmt, busy); cx2341x_handler_set_busy()
1751 v4l2_ctrl_grab(cxhdl->stream_type, busy); cx2341x_handler_set_busy()
1752 v4l2_ctrl_grab(cxhdl->video_bitrate_mode, busy); cx2341x_handler_set_busy()
1753 v4l2_ctrl_grab(cxhdl->video_bitrate, busy); cx2341x_handler_set_busy()
1754 v4l2_ctrl_grab(cxhdl->video_bitrate_peak, busy); cx2341x_handler_set_busy()
/linux-4.1.27/fs/autofs4/
H A Dexpire.c59 /* Update the expiry counter if fs is busy */ autofs4_mount_busy()
186 * The tree is not busy iff no mountpoints are busy and there are no
196 /* If it's busy update the expiry counters */ autofs4_direct_busy()
212 * The tree is not busy iff no mountpoints are busy
236 * If the fs is busy update the expiry counter. autofs4_tree_busy()
380 * A symlink can't be "busy" in the usual sense so should_expire()
391 /* Case 2: tree mount, expire iff entire tree is not busy */ should_expire()
/linux-4.1.27/drivers/media/platform/omap3isp/
H A Disppreview.h62 * @busy: Bitmask of busy parameters (being updated or used)
81 u32 busy; member in struct:prev_params
H A Dispstat.h72 /* Verify is module is busy. */
73 int (*busy)(struct ispstat *stat); member in struct:ispstat_ops
H A Disppreview.c680 /* Mark all shadow parameters we are going to touch as busy. */ preview_params_lock()
681 prev->params.params[0].busy |= ~active & update; preview_params_lock()
682 prev->params.params[1].busy |= active & update; preview_params_lock()
684 /* Mark all active parameters we are going to touch as busy. */ preview_params_lock()
688 prev->params.params[0].busy |= active & update; preview_params_lock()
689 prev->params.params[1].busy |= ~active & update; preview_params_lock()
702 * updated and clear the busy flag for all shadow parameters. preview_params_unlock()
706 prev->params.params[0].busy &= active; preview_params_unlock()
707 prev->params.params[1].busy &= ~active; preview_params_unlock()
710 * applied and the busy flag for all active parameters. preview_params_unlock()
714 prev->params.params[0].busy &= ~active; preview_params_unlock()
715 prev->params.params[1].busy &= active; preview_params_unlock()
725 * shadow parameter is busy. preview_params_switch()
729 to_switch &= ~(prev->params.params[0].busy | preview_params_switch()
730 prev->params.params[1].busy); preview_params_switch()
874 /* Mark the shadow parameters we're going to update as busy. */ preview_config()
1220 * omap3isp_preview_busy - Gets busy state of preview module.
1312 prev->params.params[0].busy = 0; preview_init_params()
1314 prev->params.params[1].busy = 0; preview_init_params()
1395 /* Mark all active parameters we are going to touch as busy. */ preview_configure()
H A Disph3a_aewb.c179 * As most of them are busy-lock registers, need to wait until AEW_BUSY = 0 to
267 .busy = h3a_aewb_busy,
H A Dispstat.c420 "%s: trying to allocate memory when busy\n", isp_stat_bufs_alloc()
628 return stat->ops->busy(stat); omap3isp_stat_pcr_busy()
815 * If module isn't busy, a new interrupt may come or not to omap3isp_stat_s_stream()
847 * necessary to not inform too early the buffers aren't busy in case __stat_isr()
870 * the module wasn't busy anymore to ensure it is being __stat_isr()
881 /* If it's busy we can't process this buffer anymore */ __stat_isr()
943 * pcr_enable(0) the module was busy. __stat_isr()
969 "device is busy.\n", stat->subdev.name); __stat_isr()
/linux-4.1.27/drivers/staging/comedi/kcomedilib/
H A Dkcomedilib_main.c112 if (s->busy) { comedi_do_insn()
116 s->busy = dev; comedi_do_insn()
131 s->busy = NULL; comedi_do_insn()
/linux-4.1.27/arch/arm/mach-lpc32xx/
H A Dsuspend.S53 @ Wait for SDRAM busy status to go busy and then idle
54 @ This guarantees a small windows where DRAM isn't busy
/linux-4.1.27/drivers/media/pci/ivtv/
H A Divtv-mailbox.c151 if (is_free && !test_and_set_bit(mb, &mbdata->busy)) { try_mailbox()
210 clear_bit(i, &mbdata->busy); clear_all_mailboxes()
263 clear_bit(mb, &mbdata->busy); ivtv_api_call()
290 clear_bit(mb, &mbdata->busy); ivtv_api_call()
309 clear_bit(mb, &mbdata->busy); ivtv_api_call()
325 clear_bit(mb, &mbdata->busy); ivtv_api_call()
/linux-4.1.27/drivers/net/ethernet/altera/
H A Daltera_sgdmahw.h76 * bit 4: busy
111 #define SGDMA_STSREG_BUSY BIT(4) /* Controller busy */
/linux-4.1.27/drivers/media/pci/cx23885/
H A Dcx23885-f300.c11 * GPIO3 - busy - P0.0 F300
128 } else { /* the slave not busy, prepare for getting data */ f300_xfer()
/linux-4.1.27/drivers/scsi/bnx2i/
H A Dbnx2i_sysfs.c82 printk(KERN_ERR "bnx2i: device busy, cannot change SQ size\n"); bnx2i_set_sq_info()
131 printk(KERN_ERR "bnx2i: device busy, cannot change CCELL size\n"); bnx2i_set_ccell_info()
/linux-4.1.27/drivers/gpu/drm/msm/mdp/mdp5/
H A Dmdp5_ctl.c50 bool busy; member in struct:mdp5_ctl
77 /* pool of CTLs + lock to protect resource allocation (ctls[i].busy) */
435 if (unlikely(WARN_ON(ctl->id >= MAX_CTL) || !ctl->busy)) { mdp5_ctl_release()
437 ctl->id, ctl->busy); mdp5_ctl_release()
442 ctl->busy = false; mdp5_ctl_release()
470 if (!ctl_mgr->ctls[c].busy) mdp5_ctlm_request()
482 ctl->busy = true; mdp5_ctlm_request()
552 ctl->busy = false; mdp5_ctlm_init()
/linux-4.1.27/drivers/gpu/drm/omapdrm/
H A Dtcm-sita.h68 u16 busy; member in struct:neighbor_stats
76 u16 neighs; /* number of busy neighbors */
H A Dtcm-sita.c461 /* skip busy regions */ scan_r2l_b2t_one_dim()
620 me.neighs = me.n.edge + me.n.busy; update_candidate()
635 best->n.busy < me.n.busy || update_candidate()
636 (best->n.busy == me.n.busy && update_candidate()
683 stat->busy++; get_neighbor_stats()
688 stat->busy++; get_neighbor_stats()
696 stat->busy++; get_neighbor_stats()
701 stat->busy++; get_neighbor_stats()
/linux-4.1.27/arch/mn10300/boot/compressed/
H A Dhead.S57 btst CHCTR_ICBUSY|CHCTR_DCBUSY,d0 # wait till not busy
93 btst CHCTR_ICBUSY|CHCTR_DCBUSY,d0 # wait till not busy
/linux-4.1.27/drivers/isdn/divert/
H A Ddivert_init.c71 printk(KERN_WARNING "dss1_divert: device busy, remove cancelled\n"); divert_exit()
/linux-4.1.27/drivers/i2c/busses/
H A Di2c-isch.c80 /* Can not be busy since we checked it in sch_access */ sch_transaction()
106 /* If the SMBus is still busy, we give up */ sch_transaction()
152 /* Make sure the SMBus host is not busy */ sch_access()
155 dev_dbg(&sch_adapter.dev, "SMBus busy (%02x)\n", temp); sch_access()
H A Di2c-ali15x3.c242 /* Check the busy bit first */ ali15x3_transaction()
245 If the host controller is still busy, it may have timed out in the ali15x3_transaction()
247 I've tried the following to reset a stuck busy bit. ali15x3_transaction()
252 T_OUT command. (this clears the host busy bit if an ali15x3_transaction()
266 "clear busy condition (%02x)\n", temp); ali15x3_transaction()
271 /* now check the error bits and the busy bit */ ali15x3_transaction()
303 /* If the SMBus is still busy, we give up */ ali15x3_transaction()
H A Di2c-ali1535.c113 #define ALI1535_STS_BUSY 0x08 /* host busy */
236 /* Check the busy bit first */ ali1535_transaction()
238 /* If the host controller is still busy, it may have timed out ali1535_transaction()
240 * printk. I've tried the following to reset a stuck busy bit. ali1535_transaction()
245 * T_OUT command. (this clears the host busy bit if an ali1535_transaction()
258 "Resetting entire SMB Bus to clear busy condition (%02x)\n", ali1535_transaction()
264 /* now check the error bits and the busy bit */ ali1535_transaction()
296 /* If the SMBus is still busy, we give up */ ali1535_transaction()
H A Di2c-xiic.c112 #define XIIC_SR_BUS_BUSY_MASK 0x04 /* 1 = bus is busy */
124 #define XIIC_INTR_BNB_MASK 0x10 /* 1 = Bus not busy */
432 * receiving the bus not busy interrupt xiic_process()
444 /* IIC bus has transitioned to not busy */ xiic_process()
447 /* The bus is not busy, disable BusNotBusy interrupt */ xiic_process()
564 /* very last, enable bus not busy as well */ xiic_start_recv()
H A Di2c-amd756.c117 dev_dbg(&adap->dev, "SMBus busy (%04x). Waiting...\n", temp); amd756_transaction()
123 /* If the SMBus is still busy, we give up */ amd756_transaction()
140 /* If the SMBus is still busy, we give up */ amd756_transaction()
H A Di2c-bcm-iproc.c163 /* check if bus is busy */ bcm_iproc_i2c_xfer_single_msg()
166 dev_warn(iproc_i2c->device, "bus is busy\n"); bcm_iproc_i2c_xfer_single_msg()
192 * Enable the "start busy" interrupt, which will be triggered after the bcm_iproc_i2c_xfer_single_msg()
H A Di2c-sis96x.c98 dev_dbg(&sis96x_adapter.dev, "SMBus busy (0x%02x). " sis96x_transaction()
129 /* If the SMBus is still busy, we give up */ sis96x_transaction()
H A Di2c-sun6i-p2wi.c142 dev_err(&adap->dev, "P2WI bus busy\n"); p2wi_smbus_xfer()
157 dev_err(&adap->dev, "P2WI bus busy\n"); p2wi_smbus_xfer()
H A Di2c-st.c184 * @busy: I2C transfer on-going
197 bool busy; member in struct:st_i2c_dev
684 i2c_dev->busy = true; st_i2c_xfer()
703 i2c_dev->busy = false; st_i2c_xfer()
715 if (i2c_dev->busy) st_i2c_suspend()
H A Di2c-sis630.c68 #define SMB_PROBE 0x02 /* Bus Probe/Slave busy */
137 dev_dbg(&adap->dev, "SMBus busy (%02x). Resetting...\n", temp); sis630_transaction_start()
185 /* If the SMBus is still busy, we give up */ sis630_transaction_wait()
/linux-4.1.27/drivers/net/wireless/ti/wlcore/
H A Dspi.c178 * Read further busy words from SPI until a non-busy word is wl12xx_spi_read_busy()
199 dev_err(child->parent, "SPI read busy-word timeout!\n"); wl12xx_spi_read_busy()
237 /* Busy and non busy words read */ wl12xx_spi_raw_read()
/linux-4.1.27/drivers/net/wireless/ath/
H A Dhw.c144 u32 cycles, busy, rx, tx; ath_hw_cycle_counters_update() local
152 busy = REG_READ(ah, AR_RCCNT); ath_hw_cycle_counters_update()
167 common->cc_ani.rx_busy += busy; ath_hw_cycle_counters_update()
172 common->cc_survey.rx_busy += busy; ath_hw_cycle_counters_update()
/linux-4.1.27/arch/x86/include/asm/
H A Dmach_timer.h9 * output busy loop as low as possible. We avoid reading the CTC registers
/linux-4.1.27/include/net/
H A Daf_rxrpc.h25 RXRPC_SKB_MARK_BUSY, /* server busy message */
/linux-4.1.27/include/uapi/linux/mmc/
H A Dioctl.h25 * a "busy" indicator for read operations).
/linux-4.1.27/arch/s390/include/uapi/asm/
H A Dcmb.h17 * @device_busy_time: time of device busy (ext. format)
/linux-4.1.27/arch/powerpc/kernel/
H A Dpmc.c53 "PMC hardware busy (reserved by caller %p)\n", reserve_pmc_hardware()
/linux-4.1.27/arch/m68k/include/asm/
H A Datafdreg.h63 #define FDCSTAT_BUSY (0x01) /* FDC is busy */
H A Damigayle.h78 #define GAYLE_CS_BSY 0x04 /* credit card busy */
/linux-4.1.27/arch/arm/include/debug/
H A Dsamsung.S62 @ busy waiting for non fifo
/linux-4.1.27/lib/
H A Dratelimit.c38 * by definition we are too busy to print a message, ___ratelimit()
/linux-4.1.27/drivers/crypto/
H A Ds5p-sss.c188 bool busy; member in struct:s5p_aes_dev
246 dev->busy = false; s5p_aes_complete()
332 dev->busy = true; s5p_aes_tx()
493 dev->busy = false; s5p_tasklet_cb()
517 if (dev->busy) { s5p_aes_handle_req()
521 dev->busy = true; s5p_aes_handle_req()
692 pdata->busy = false; s5p_aes_probe()
H A Dbfin_crc.c69 u8 busy:1; /* crc device in operation flag */ member in struct:bfin_crypto_crc
314 if (crc->busy) { bfin_crypto_crc_handle_queue()
321 crc->busy = 1; bfin_crypto_crc_handle_queue()
342 crc->busy = 0; bfin_crypto_crc_handle_queue()
359 crc->busy = 0; bfin_crypto_crc_handle_queue()
548 crc->busy = 0; bfin_crypto_crc_handler()
/linux-4.1.27/drivers/spi/
H A Dspi-bfin-sport.c72 int busy; member in struct:bfin_sport_spi_master_data
494 drv_data->busy = 0; bfin_sport_spi_pump_messages()
530 /* Mark as busy and launch transfers */ bfin_sport_spi_pump_messages()
533 drv_data->busy = 1; bfin_sport_spi_pump_messages()
561 if (drv_data->run && !drv_data->busy) bfin_sport_spi_transfer()
666 drv_data->busy = 0; bfin_sport_spi_init_queue()
689 if (drv_data->run || drv_data->busy) { bfin_sport_spi_start_queue()
716 * A wait_queue on the drv_data->busy could be used, but then the common bfin_sport_spi_stop_queue()
721 while (!list_empty(&drv_data->queue) && drv_data->busy && limit--) { bfin_sport_spi_stop_queue()
727 if (!list_empty(&drv_data->queue) || drv_data->busy) bfin_sport_spi_stop_queue()
H A Dspi-bitbang.c214 if (!bitbang->busy) { spi_bitbang_setup()
263 bitbang->busy = 1; spi_bitbang_prepare_hardware()
386 bitbang->busy = 0; spi_bitbang_unprepare_hardware()
454 /* driver may get busy before register() returns, especially spi_bitbang_start()
H A Dspi-mpc52xx-psc.c43 u8 busy; member in struct:mpc52xx_psc_spi
211 mps->busy = 1; mpc52xx_psc_spi_work()
260 mps->busy = 0; mpc52xx_psc_spi_work()
284 if (!mps->busy) mpc52xx_psc_spi_setup()
H A Dspi-xtensa-xtfpga.c119 dev_err(&pdev->dev, "Device stuck in busy state\n"); xtfpga_spi_probe()
H A Dspi-bfin5xx.c75 int busy; member in struct:bfin_spi_master_data
886 drv_data->busy = 0; bfin_spi_pump_messages()
922 /* Mark as busy and launch transfers */ bfin_spi_pump_messages()
925 drv_data->busy = 1; bfin_spi_pump_messages()
952 if (drv_data->running && !drv_data->busy) bfin_spi_transfer()
1178 drv_data->busy = 0; bfin_spi_init_queue()
1200 if (drv_data->running || drv_data->busy) { bfin_spi_start_queue()
1226 * A wait_queue on the drv_data->busy could be used, but then the common bfin_spi_stop_queue()
1231 while ((!list_empty(&drv_data->queue) || drv_data->busy) && limit--) { bfin_spi_stop_queue()
1237 if (!list_empty(&drv_data->queue) || drv_data->busy) bfin_spi_stop_queue()
/linux-4.1.27/drivers/rtc/
H A Drtc-tegra.c31 /* set to 1 = busy every eight 32kHz clocks during copy of sec+msec to AHB */
66 /* RTC hardware is busy when it is updating its values over AHB once
78 * It does this by waiting for the RTC to become busy with its periodic update,
79 * then returning once the RTC first becomes not busy.
91 /* first wait for the RTC to become busy. this is when it tegra_rtc_wait_while_busy()
H A Drtc-rs5c313.c280 /* busy check. */ rs5c313_rtc_set_time()
344 /* busy check. */ rs5c313_check_xstp_bit()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb/
H A Despi.c63 int busy, attempts = TRICN_CMD_ATTEMPTS; tricn_write() local
74 busy = readl(adapter->regs + A_ESPI_GOSTAT) & F_ESPI_CMD_BUSY; tricn_write()
75 } while (busy && --attempts); tricn_write()
77 if (busy) tricn_write()
80 return busy; tricn_write()
/linux-4.1.27/arch/s390/kernel/
H A Dswsusp.S188 brc 2,smt_loop /* busy, try again */
207 brc 2,3b /* busy, try again */
223 brc 2,4b /* busy, try again */
226 brc 2,5b /* busy, try again */
235 brc 2,7b /* busy, try again */
/linux-4.1.27/arch/avr32/mach-at32ap/
H A Dpio.c71 printk(KERN_WARNING "%s: pin(s) busy (requested 0x%x, busy 0x%x)\n", at32_select_periph()
116 printk("%s: pin %u is busy\n", pio->name, pin_index); at32_select_gpio()
185 printk(KERN_WARNING "%s: pin(s) busy (req. 0x%x, busy 0x%x)\n", at32_reserve_pin()
/linux-4.1.27/net/sched/
H A Dsch_teql.c282 int busy; teql_master_xmit() local
291 busy = 0; teql_master_xmit()
305 busy = 1; teql_master_xmit()
327 busy = 1; teql_master_xmit()
344 if (busy) { teql_master_xmit()
/linux-4.1.27/sound/oss/dmasound/
H A Ddmasound_core.c321 int busy; member in struct:__anon14373
332 mixer.busy = 1; mixer_open()
340 mixer.busy = 0; mixer_release()
399 mixer.busy = 0; mixer_init()
696 sq->busy = 0; sq_init_waitqueue()
704 sq->busy = 0; /* CHECK: IS THIS OK??? */
716 if (sq->busy) { sq_open2()
722 if (wait_event_interruptible(sq->open_queue, !sq->busy)) sq_open2()
732 sq->busy = 1; /* Let's play spot-the-race-condition */ sq_open2()
743 sq->busy = 0 ; sq_open2()
886 if (write_sq.busy) sq_release()
891 write_sq.busy = 0; sq_release()
1064 busy/active - we will just return -EINVAL. sq_ioctl()
1222 int busy; member in struct:__anon14374
1273 if (state.busy) state_open()
1281 state.busy = 1; state_open()
1332 write_sq.busy, write_sq.syncing, write_sq.locked, write_sq.xruns) ; state_open()
1350 state.busy = 0; state_release()
1386 state.busy = 0; state_init()
/linux-4.1.27/drivers/isdn/i4l/
H A Disdn_net.h65 * is this particular channel busy?
76 * For the given net device, this will get a non-busy channel out of the
/linux-4.1.27/drivers/block/paride/
H A Dpg.c211 int busy; /* write done, read expected */ member in struct:pg
252 dev->busy = 0; pg_init_units()
535 if (dev->busy) { pg_open()
537 dev->busy = 0; pg_open()
574 if (dev->busy) pg_write()
609 dev->busy = 1; pg_write()
623 if (!dev->busy) pg_read()
628 dev->busy = 0; pg_read()
/linux-4.1.27/arch/mn10300/proc-mn2ws0050/include/proc/
H A Dnand-regs.h37 #define FCOMMAND_RYBY 0x08 /* ready/busy flag */
38 #define FCOMMAND_RYBYINTMSK 0x04 /* mask ready/busy interrupt */
/linux-4.1.27/arch/cris/include/arch-v32/arch/hwregs/
H A Data_defs.h130 unsigned int busy : 1; member in struct:__anon349
139 unsigned int busy : 1; member in struct:__anon350
H A Ddma.h101 do { __x = REG_RD(dma, inst, rw_stream_cmd); } while (__x.busy); \
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
H A Dspectral.h36 * @SPECTRAL_BACKGROUND: hardware sends samples when it is not busy with
/linux-4.1.27/arch/unicore32/include/mach/
H A Dregs-sdc.h104 * 48-bit short and test if busy response SDC_COMMAND_RESTYPE_SHORTBUSY
/linux-4.1.27/drivers/gpu/drm/nouveau/
H A Dnouveau_bo.h80 void nouveau_bo_placement_set(struct nouveau_bo *, u32 type, u32 busy);
/linux-4.1.27/arch/mips/include/asm/octeon/
H A Dcvmx-mixx-defs.h101 uint64_t busy:1; member in struct:cvmx_mixx_ctl::cvmx_mixx_ctl_s
113 uint64_t busy:1;
123 uint64_t busy:1; member in struct:cvmx_mixx_ctl::cvmx_mixx_ctl_cn52xx
135 uint64_t busy:1;
H A Dcvmx-mpi-defs.h245 uint64_t busy:1; member in struct:cvmx_mpi_sts::cvmx_mpi_sts_s
247 uint64_t busy:1;
/linux-4.1.27/include/sound/
H A Daci.h6 #define ACI_REG_BUSY 2 /* busy register offset */
/linux-4.1.27/include/linux/platform_data/
H A Datmel.h65 int rdy_pin; /* ready/busy */
/linux-4.1.27/include/uapi/linux/
H A Dllc.h40 LLC_OPT_BUSY_TMR_EXP, /* busy state expire time (secs). */
H A Dfdreg.h31 #define STATUS_BUSYMASK 0x0F /* drive busy mask */
32 #define STATUS_BUSY 0x10 /* FDC busy */
/linux-4.1.27/arch/alpha/
H A DMakefile28 # more likely to keep an EV4 processor busy than vice-versa.
/linux-4.1.27/net/irda/irnet/
H A Dirnet_ppp.h33 /* Bit numbers in busy */
/linux-4.1.27/sound/soc/intel/atom/sst/
H A Dsst_ipc.c137 while (header.p.header_high.part.busy) { sst_post_message_mrfld()
157 if (header.p.header_high.part.busy) { sst_post_message_mrfld()
205 clear_ipc.p.header_high.part.busy = 0; intel_sst_clear_intr_mrfld()
209 /* un mask busy interrupt */ intel_sst_clear_intr_mrfld()
/linux-4.1.27/drivers/macintosh/
H A Dsmu.c1067 int busy; member in struct:smu_private
1114 if (pp->busy) smu_write()
1137 if (pp->busy) { smu_write()
1141 pp->busy = 1; smu_write()
1146 pp->busy = 0; smu_write()
1172 if (!pp->busy) smu_read_command()
1214 pp->busy = 0; smu_read_command()
1255 if (pp->busy && pp->cmd.status != 1) smu_fpoll()
1269 unsigned int busy; smu_release() local
1279 busy = pp->busy; smu_release()
1282 if (busy && pp->cmd.status == 1) { smu_release()
/linux-4.1.27/drivers/misc/sgi-gru/
H A Dgruprocfs.c209 seq_printf(file, "#%5s%5s%7s%6s%6s%8s%6s%6s\n", "", "", "busy", gru_seq_show()
210 "busy", "busy", "free", "free", "free"); gru_seq_show()
/linux-4.1.27/drivers/misc/eeprom/
H A Deeprom_93cx6.c335 * amounts of CPU time busy waiting.
355 /* get ready to check for busy */ eeprom_93cx6_write()
360 /* wait at-least 250ns to get DO to be the busy signal */ eeprom_93cx6_write()
/linux-4.1.27/drivers/input/serio/
H A Dct82c710.c101 printk(KERN_WARNING "ct82c710.c: Device busy in close()\n"); ct82c710_close()
106 printk(KERN_WARNING "ct82c710.c: Device busy in close()\n"); ct82c710_close()
132 printk(KERN_ERR "ct82c710: Device busy in open()\n"); ct82c710_open()
H A Dhp_sdc_mlc.c199 goto busy; hp_sdc_mlc_cts()
217 busy: hp_sdc_mlc_cts()
242 /* Shouldn't be sending commands when loop may be busy */ hp_sdc_mlc_out()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/
H A Dgk20a.c46 unsigned long busy; member in struct:gk20a_pmu_dvfs_dev_status
101 status->busy = nv_rd32(priv, 0x10a508 + (BUSY_SLOT * 0x10)); gk20a_pmu_dvfs_get_dev_status()
139 utilization = div_u64((u64)status.busy * 100, status.total); gk20a_pmu_dvfs_work()
/linux-4.1.27/include/linux/mmc/
H A Dcore.h29 #define MMC_RSP_BUSY (1 << 3) /* card may send busy */
41 #define MMC_RSP_SPI_BUSY (1 << 10) /* card may send busy */
98 unsigned int busy_timeout; /* busy detect timeout in ms */
/linux-4.1.27/drivers/scsi/
H A Deata_generic.h140 #define HA_ABUSY 0x01 /* aux busy bit */
149 #define HA_SBUSY 0x80 /* drive busy */
191 __u8 busy:1; /* controller busy */ member in struct:reg_bit
195 __u8 abusy:1; /* auxiliary busy */
H A Datari_NCR5380.c261 * been issued, the host->busy array is still employed, as it is without
298 * busy by an untagged command. If the command should use tagged queuing, also
309 if (hostdata->busy[cmd->device->id] & (1 << lun)) is_lun_busy()
326 * must be called before!), or reserve the LUN in 'busy' if the command is
342 hostdata->busy[cmd->device->id] |= (1 << lun); cmd_get_tag()
369 hostdata->busy[cmd->device->id] &= ~(1 << lun); cmd_free_tag()
778 hostdata->busy[i] = 0; NCR5380_init()
981 * for a target that's not busy. NCR5380_main()
997 "MAIN tmp=%p target=%d busy=%d lun=%d\n", NCR5380_main()
998 tmp, scmd_id(tmp), hostdata->busy[scmd_id(tmp)], NCR5380_main()
1006 !(hostdata->busy[tmp->device->id] & (1 << lun)) NCR5380_main()
1068 } /* if target/lun/target queue is not busy */ NCR5380_main()
1294 * If bus busy, arbitration failed, etc, NCR5380_select() will exit
1598 hostdata->busy[cmd->device->id] |= (1 << cmd->device->lun); NCR5380_select()
2191 hostdata->busy[cmd->device->id] &= ~(1 << cmd->device->lun); NCR5380_information_transfer()
2275 hostdata->busy[cmd->device->id] |= (1 << cmd->device->lun); NCR5380_information_transfer()
2421 hostdata->busy[cmd->device->id] &= ~(1 << cmd->device->lun); NCR5380_information_transfer()
2722 hostdata->busy[cmd->device->id] &= ~(1 << cmd->device->lun); NCR5380_abort()
2784 * function was to abort if the bus was busy, and let the interrupt NCR5380_abort()
2830 hostdata->busy[cmd->device->id] &= ~(1 << cmd->device->lun); NCR5380_abort()
2898 * and no busy units; so clear the low-level status here to avoid NCR5380_bus_reset()
2918 hostdata->busy[i] = 0; NCR5380_bus_reset()
H A Dscsi_lib.c91 * Set the appropriate busy bit for the device/host. scsi_set_blocked()
93 * If the host/device isn't busy, assume that something actually scsi_set_blocked()
188 * Notes: We do this for one of two cases. Either the host is busy
1410 unsigned int busy; scsi_dev_queue_ready() local
1412 busy = atomic_inc_return(&sdev->device_busy) - 1; scsi_dev_queue_ready()
1414 if (busy) scsi_dev_queue_ready()
1432 if (busy >= sdev->queue_depth) scsi_dev_queue_ready()
1449 unsigned int busy; scsi_target_queue_ready() local
1465 busy = atomic_inc_return(&starget->target_busy) - 1; scsi_target_queue_ready()
1467 if (busy) scsi_target_queue_ready()
1480 if (busy >= starget->can_queue) scsi_target_queue_ready()
1504 unsigned int busy; scsi_host_queue_ready() local
1509 busy = atomic_inc_return(&shost->host_busy) - 1; scsi_host_queue_ready()
1511 if (busy) scsi_host_queue_ready()
1525 if (shost->can_queue > 0 && busy >= shost->can_queue) scsi_host_queue_ready()
1553 * For efficiency, no lock is taken to check the busy state of
1559 * needs to return 'not busy'. Otherwise, request stacking drivers
1573 * Ignore host/starget busy state. scsi_lld_busy()
1607 * bump busy counts. To bump the counters, we need to dance scsi_kill_request()
/linux-4.1.27/drivers/tty/serial/
H A Duartlite.c196 int busy, n = 0; ulite_isr() local
200 busy = ulite_receive(port, stat); ulite_isr()
201 busy |= ulite_transmit(port, stat); ulite_isr()
203 } while (busy); ulite_isr()
333 dev_err(port->dev, "Memory region busy\n"); ulite_request_port()
/linux-4.1.27/drivers/media/pci/cx18/
H A Dcx18-mailbox.c652 * a busy state, since we serialize access to it on our end. cx18_api_call()
655 * by a signal, we may get here and find a busy mailbox. After waiting, cx18_api_call()
656 * mark it "not busy" from our end, if the XPU hasn't ack'ed it still. cx18_api_call()
664 /* waited long enough, make the mbox "not busy" from our end */ cx18_api_call()
666 CX18_ERR("mbox was found stuck busy when setting up for %s; " cx18_api_call()
667 "clearing busy and trying to proceed\n", info->name); cx18_api_call()
669 CX18_DEBUG_API("waited %u msecs for busy mbox to be acked\n", cx18_api_call()
/linux-4.1.27/drivers/md/
H A Ddm-mpath.c1636 * We return "busy", only when we can map I/Os but underlying devices
1637 * are busy (so even if we map I/Os now, the I/Os will wait on
1640 * due to map unavailability, we don't return "busy". Otherwise,
1645 int busy = 0, has_active = 0; multipath_busy() local
1656 busy = 1; multipath_busy()
1668 * pg_init just by busy checking. multipath_busy()
1670 * at next mapping time are busy or not. Just try mapping. multipath_busy()
1675 * If there is one non-busy active path at least, the path selector multipath_busy()
1676 * will be able to select it. So we consider such a pg as not busy. multipath_busy()
1678 busy = 1; multipath_busy()
1684 busy = 0; multipath_busy()
1695 busy = 0; multipath_busy()
1700 return busy; multipath_busy()
1723 .busy = multipath_busy,
/linux-4.1.27/drivers/media/radio/
H A Dradio-wl1273.c74 struct completion busy; member in struct:wl1273_device
285 complete(&radio->busy); wl1273_fm_irq_thread_handler()
341 complete(&radio->busy); wl1273_fm_irq_thread_handler()
379 reinit_completion(&radio->busy); wl1273_fm_set_tx_freq()
382 t = wait_for_completion_timeout(&radio->busy, msecs_to_jiffies(2000)); wl1273_fm_set_tx_freq()
393 reinit_completion(&radio->busy); wl1273_fm_set_tx_freq()
396 t = wait_for_completion_timeout(&radio->busy, msecs_to_jiffies(1000)); wl1273_fm_set_tx_freq()
449 reinit_completion(&radio->busy); wl1273_fm_set_rx_freq()
451 t = wait_for_completion_timeout(&radio->busy, msecs_to_jiffies(2000)); wl1273_fm_set_rx_freq()
810 reinit_completion(&radio->busy); wl1273_fm_set_seek()
832 wait_for_completion_timeout(&radio->busy, msecs_to_jiffies(1000)); wl1273_fm_set_seek()
855 reinit_completion(&radio->busy); wl1273_fm_set_seek()
863 if (!wait_for_completion_timeout(&radio->busy, msecs_to_jiffies(1000))) wl1273_fm_set_seek()
2077 init_completion(&radio->busy); wl1273_fm_radio_probe()
/linux-4.1.27/drivers/isdn/gigaset/
H A Dusb-gigaset.c133 int busy; /* bulk output in progress */ member in struct:usb_cardstate
309 if (cs->hw.usb->busy) { gigaset_modem_fill()
310 gig_dbg(DEBUG_OUTPUT, "modem_fill: busy"); gigaset_modem_fill()
407 cs->hw.usb->busy = 0; gigaset_write_bulk_callback()
420 cs->hw.usb->busy = 0; gigaset_write_bulk_callback()
469 ucs->busy = 1; send_cb()
478 ucs->busy = 0; send_cb()
620 ucs->busy = 1; write_modem()
638 ucs->busy = 0; write_modem()
729 ucs->busy = 0; gigaset_probe()
/linux-4.1.27/drivers/video/fbdev/omap2/dss/
H A Dapply.c96 bool busy; member in struct:mgr_priv_data
284 if (mp->busy) need_isr()
698 WARN_ON(mp->busy); dss_mgr_write_regs()
748 if (!mp->enabled || mgr_manual_update(mgr) || mp->busy) dss_write_regs()
775 if (!mp->enabled || mgr_manual_update(mgr) || mp->busy) dss_set_go_bits()
781 mp->busy = true; dss_set_go_bits()
898 /* clear busy, updating flags, shadow_dirty flags */ dss_apply_irq_handler()
912 bool was_busy = mp->busy; dss_apply_irq_handler()
913 mp->busy = dispc_mgr_go_busy(i); dss_apply_irq_handler()
915 if (was_busy && !mp->busy) dss_apply_irq_handler()
/linux-4.1.27/drivers/platform/x86/
H A Dintel_ips.c351 * ips_cpu_busy - is CPU busy?
517 * ips_gpu_busy - is GPU busy?
743 * - is CPU busy?
744 * - is GPU busy?
751 * - CPU not busy, GPU not busy - nothing
752 * - CPU busy, GPU not busy - adjust CPU up
753 * - CPU not busy, GPU busy - adjust GPU up
754 * - CPU busy, GPU busy - adjust preferred unit up, taking headroom from
1549 dev_err(&dev->dev, "thermal resource busy, aborting\n"); ips_probe()
/linux-4.1.27/drivers/scsi/megaraid/
H A Dmegaraid_mbox.c160 * driver wait time if the adapter's mailbox is busy
165 "Max wait for mailbox in microseconds if busy (default=10)");
745 "megaraid: mem region busy\n")); megaraid_init_mbox()
1406 * Check for busy mailbox. If it is, return failure - the caller mbox_post_cmd()
1411 if (unlikely(mbox->busy)) { mbox_post_cmd()
1416 } while(mbox->busy && (i < max_mbox_busy_wait)); mbox_post_cmd()
1418 if (mbox->busy) { mbox_post_cmd()
1439 mbox->busy = 1; // Set busy mbox_post_cmd()
1495 * @busy : set if request could not be completed because of lack of
1503 megaraid_mbox_build_cmd(adapter_t *adapter, struct scsi_cmnd *scp, int *busy) megaraid_mbox_build_cmd() argument
1542 *busy = 1; megaraid_mbox_build_cmd()
1627 *busy = 1; megaraid_mbox_build_cmd()
1672 *busy = 1; megaraid_mbox_build_cmd()
1768 *busy = 1; megaraid_mbox_build_cmd()
1836 *busy = 1; megaraid_mbox_build_cmd()
1919 // if mailbox was busy, return SCB back to pending megaraid_mbox_runpendq()
2750 mbox->busy = 1; mbox_post_sync_cmd()
2869 // return immediately if the mailbox is busy mbox_post_sync_cmd_fast()
2870 if (mbox->busy) return -1; mbox_post_sync_cmd_fast()
2875 mbox->busy = 1; mbox_post_sync_cmd_fast()
2916 if (mbox->busy) { megaraid_busywait_mbox()
2918 for (i = 0; mbox->busy && i < 1000; i++) megaraid_busywait_mbox()
3327 mbox->busy = 1; megaraid_mbox_fire_sync_cmd()
3693 "megaraid mbox: LD delete, mailbox busy\n")); megaraid_mbox_mm_command()
/linux-4.1.27/drivers/media/v4l2-core/
H A Dvideobuf-core.c192 dprintk(1, "busy: streaming active\n"); videobuf_queue_is_busy()
196 dprintk(1, "busy: pending read #1\n"); videobuf_queue_is_busy()
200 dprintk(1, "busy: pending read #2\n"); videobuf_queue_is_busy()
207 dprintk(1, "busy: buffer #%d mapped\n", i); videobuf_queue_is_busy()
211 dprintk(1, "busy: buffer #%d queued\n", i); videobuf_queue_is_busy()
215 dprintk(1, "busy: buffer #%d avtive\n", i); videobuf_queue_is_busy()
/linux-4.1.27/drivers/pci/
H A Daccess.c286 bool busy; PCI_USER_READ_CONFIG() local
306 if (!vpd->busy) pci_vpd_pci22_wait()
316 vpd->busy = false; pci_vpd_pci22_wait()
358 vpd->busy = true; pci_vpd_pci22_read()
418 vpd->busy = true; pci_vpd_pci22_write()
498 vpd->busy = false; pci_vpd_pci22_init()
/linux-4.1.27/drivers/media/usb/usbvision/
H A Dusbvision-i2c.c296 /* USBVISION_SER_CONT -> d4 == 0 busy */ usbvision_i2c_read_max4()
298 } while (rc > 0 && ((rc & 0x10) != 0)); /* Retry while busy */ usbvision_i2c_read_max4()
376 } while (rc > 0 && ((rc & 0x10) != 0)); /* Retry while busy */ usbvision_i2c_write_max4()
/linux-4.1.27/drivers/gpu/drm/i915/
H A Dintel_frontbuffer.c98 * intel_mark_fb_busy - mark given planes as busy
177 /* Delay flushing when rings are still busy.*/ intel_frontbuffer_flush()
243 /* Remove stale busy bits due to the old buffer. */ intel_frontbuffer_flip_prepare()
/linux-4.1.27/arch/mn10300/kernel/
H A Dhead.S106 btst CHCTR_ICBUSY|CHCTR_DCBUSY,d0 # wait till not busy
348 btst CHCTR_ICBUSY|CHCTR_DCBUSY,d0 # wait till not busy (use CPU loop buffer)
396 btst CHCTR_DCBUSY,d0 # wait till not busy (use CPU loop buffer)
/linux-4.1.27/drivers/ide/
H A Dfalconide.c149 printk(KERN_ERR "%s: resources busy\n", DRV_NAME); falconide_init()
H A Dide-iops.c95 * This routine busy-waits for the drive status to be not "busy".
101 * That could be done by busy-waiting for the first jiffy or two, and then
505 * to report a non-busy status, see comments in ide_probe_port().
/linux-4.1.27/drivers/scsi/arm/
H A Dqueue.h46 * exclude - array of busy LUNs
/linux-4.1.27/drivers/devfreq/
H A Dgovernor_simpleondemand.c57 /* Set MAX if it's busy enough */ devfreq_simple_ondemand_func()
/linux-4.1.27/arch/x86/mm/kmemcheck/
H A Dkmemcheck.c123 bool busy; member in struct:kmemcheck_context
534 if (data->busy) { kmemcheck_access()
540 data->busy = true; kmemcheck_access()
617 data->busy = false; kmemcheck_access()
/linux-4.1.27/arch/xtensa/include/asm/
H A Dspinlock.h20 * When trying to obtain a spinlock, the function "spins" forever, or busy-
/linux-4.1.27/arch/tile/include/asm/
H A Dspinlock_32.h26 * an unambiguous "ticket is busy" flag.
/linux-4.1.27/include/net/irda/
H A Dirda.h44 /* Hack to do small backoff when setting media busy in IrLAP */
H A Dirttp.h135 int rx_sdu_busy; /* RxSdu.busy */
139 int tx_sdu_busy; /* TxSdu.busy */
/linux-4.1.27/arch/sh/include/asm/
H A Ddma.h81 atomic_t busy; member in struct:dma_channel
/linux-4.1.27/arch/mips/include/asm/sn/
H A Dlaunch.h69 volatile u64 busy; /* Slave currently active */ member in struct:launch_s
/linux-4.1.27/arch/mips/pnx833x/stb22x/
H A Dboard.c111 /* Setup GPIO 04 to input NAND read/busy signal */ pnx833x_board_setup()
/linux-4.1.27/arch/mn10300/include/asm/
H A Dcpu-regs.h175 #define CHCTR_ICBUSY 0x0004 /* instruction cache busy */
176 #define CHCTR_DCBUSY 0x0008 /* data cache busy */
188 #define ICIVCR_ICIVBSY 0x00000008 /* icache area invalidate busy */
194 #define DCPGCR_DCPGBSY 0x00000008 /* data cache area purge busy */
/linux-4.1.27/arch/cris/arch-v10/drivers/
H A Dsync_serial.c116 char busy; /* 1 if port is busy */ member in struct:sync_port
352 port->busy = 0; initialize_port()
460 if (port->busy == 2) { sync_serial_open()
461 DEBUG(printk(KERN_DEBUG "Device is busy.. \n")); sync_serial_open()
609 port->busy++; sync_serial_open()
645 if (port->busy) sync_serial_release()
646 port->busy--; sync_serial_release()
647 if (!port->busy) sync_serial_release()
/linux-4.1.27/sound/soc/tegra/
H A Dtegra20_spdif.h138 * Receiver(RX) shifter is busy receiving data.
148 * Transmitter(TX) shifter is busy transmitting data.
156 * TX is busy shifting out channel status.
166 * TX User data FIFO busy.
/linux-4.1.27/include/linux/i2c/
H A Dtwl4030-madc.h88 #define TWL4030_MADC_BUSY (1 << 0) /* MADC busy */
/linux-4.1.27/drivers/mmc/host/
H A Dmmc_spi.c356 /* SPI R1B == R1 + busy; STOP_TRANSMISSION (for multiblock reads) mmc_spi_response_get()
360 /* maybe we read all the busy tokens already */ mmc_spi_response_get()
637 * come zero or more busy bytes, then N(WR) [1+] all-ones bytes. mmc_spi_setup_data_message()
640 * minimize I/O ops by using a single read to collect end-of-busy. mmc_spi_setup_data_message()
666 * - followed by N(EC) [0+] all-ones bytes, card writes zero/'busy'
750 /* Return when not busy. If we didn't collect that status yet, mmc_spi_writeblock()
754 /* card is non-busy if the most recent bit is 1 */ mmc_spi_writeblock()
999 * "not busy any longer" status, and leave chip selected. mmc_spi_data_do()
1030 /* Ideally we collected "not busy" status with one I/O, mmc_spi_data_do()
1134 * wait till not-busy, skip debris from any old commands. mmc_spi_initsequence()
1406 /* setup message for status/busy readback */ mmc_spi_probe()
H A Dmmci.c75 * @busy_detect: true if busy detection on dat0 is supported
227 int busy = 0; mmci_card_busy() local
233 busy = 1; mmci_card_busy()
239 return busy; mmci_card_busy()
302 /* Keep ST Micro busy mode if enabled */ mmci_write_datactrlreg()
996 /* Check if we need to wait for busy completion. */ mmci_cmd_irq()
1000 /* Enable busy completion if needed and supported. */ mmci_cmd_irq()
1010 /* At busy completion, mask the IRQ and complete the request. */ mmci_cmd_irq()
1253 * edges while monitoring DAT0 for busy completion. mmci_irq()
1268 /* Don't poll for busy completion in irq context. */ mmci_irq()
/linux-4.1.27/drivers/net/ethernet/marvell/
H A Dmvmdio.c61 * SMI access completion instead of polling the SMI busy bit.
108 dev_err(bus->parent, "Timeout: SMI busy for too long\n"); orion_mdio_wait_ready()
/linux-4.1.27/drivers/net/wireless/orinoco/
H A Dorinoco_pci.c96 /* The card is ready when it's no longer busy */ orinoco_pci_cor_reset()
104 /* Still busy? */ orinoco_pci_cor_reset()
H A Dorinoco_tmd.c73 /* Just in case, wait more until the card is no longer busy */ orinoco_tmd_cor_reset()
81 /* Still busy? */ orinoco_tmd_cor_reset()
/linux-4.1.27/drivers/s390/net/
H A Dctcm_main.h157 * TX queue for collecting skb's during busy.
229 * Compatibility macros for busy handling
/linux-4.1.27/drivers/net/wireless/ti/wl1251/
H A Dspi.c166 /* Busy and non busy words read */ wl1251_spi_read()
177 /* FIXME: check busy words */ wl1251_spi_read()
/linux-4.1.27/drivers/gpio/
H A Dgpio-vx855.c253 "GPI I/O resource busy, probably claimed by ACPI\n"); vx855gpio_probe()
258 "GPO I/O resource busy, probably claimed by ACPI\n"); vx855gpio_probe()
/linux-4.1.27/drivers/dma/
H A Diop-adma.c119 int busy = iop_chan_is_busy(iop_chan); __iop_adma_slot_cleanup() local
128 pr_debug("\tcookie: %d slot: %d busy: %d " __iop_adma_slot_cleanup()
130 iter->async_tx.cookie, iter->idx, busy, __iop_adma_slot_cleanup()
144 * channel is busy, or if it appears that the current descriptor __iop_adma_slot_cleanup()
149 if (busy || iop_desc_get_next_desc(iter)) __iop_adma_slot_cleanup()
291 /* give up after finding the first busy slot iop_adma_alloc_slots()
1474 /* channel should not be busy */ iop_chan_start_null_memcpy()
1527 /* channel should not be busy */ iop_chan_start_null_xor()
H A Dtegra20-apb-dma.c193 bool busy; member in struct:tegra_dma_channel
423 tdc->busy = false; tegra_dma_stop()
498 tdc->busy = true; tdc_start_head_req()
583 tdc->busy = false; handle_once_dma_done()
708 if (!tdc->busy) { tegra_dma_issue_pending()
742 if (!tdc->busy) tegra_dma_terminate_all()
759 was_busy = tdc->busy; tegra_dma_terminate_all()
1069 if (tdc->busy) { tegra_dma_prep_dma_cyclic()
1200 if (tdc->busy) tegra_dma_free_chan_resources()
/linux-4.1.27/drivers/usb/musb/
H A Dmusb_dma.h101 /* allocated ... but not busy, no errors */
103 /* busy ... transactions are active */
H A Dmusb_gadget.c155 int busy = ep->busy; variable
164 ep->busy = 1;
181 ep->busy = busy;
196 ep->busy = 1; nuke()
486 dev_dbg(musb->controller, "%s dma still busy?\n", musb_ep->end_point.name); musb_g_tx()
883 dev_dbg(musb->controller, "%s busy, csr %04x\n", musb_g_rx()
1114 musb_ep->busy = 0; musb_gadget_enable()
1287 if (!musb_ep->busy && &request->list == musb_ep->req_list.next) musb_gadget_queue()
1320 if (musb_ep->req_list.next != &req->list || musb_ep->busy) musb_gadget_dequeue()
1389 dev_dbg(musb->controller, "FIFO busy, cannot halt %s\n", ep->name); musb_gadget_set_halt()
1424 if (!musb_ep->busy && !value && request) { musb_gadget_set_halt()
/linux-4.1.27/drivers/pps/generators/
H A Dpps_gen_parport.c104 /* busy loop until the time is right for an assert edge */ hrtimer_event()
113 /* busy loop until the time is right for a clear edge */ hrtimer_event()
/linux-4.1.27/include/media/
H A Dcx2341x.h99 int cx2341x_ext_ctrls(struct cx2341x_mpeg_params *params, int busy,
197 void cx2341x_handler_set_busy(struct cx2341x_handler *cxhdl, int busy);
/linux-4.1.27/arch/arm/kernel/
H A Ddma.c66 goto busy; request_dma()
85 busy: request_dma()
/linux-4.1.27/fs/afs/
H A Dfile.c346 * release a page and clean up its private state if it's not busy
362 _leave(" = F [cache busy]"); afs_releasepage()
/linux-4.1.27/net/9p/
H A Derror.c73 {"Device or resource busy", EBUSY},
82 {"Text file busy", ETXTBSY},
/linux-4.1.27/drivers/mmc/core/
H A Dmmc_ops.c460 * @use_busy_signal: use the busy signal as response type
461 * @send_status: send status cmd to poll for busy
462 * @ignore_crc: ignore CRC errors when sending status cmd to poll for busy
480 * the host from doing hw busy detection, which is done by converting __mmc_switch()
517 * to detect busy completion. __mmc_switch()
/linux-4.1.27/drivers/net/can/
H A Dslcan.c725 int busy = 0; slcan_exit() local
733 if (busy) slcan_exit()
736 busy = 0; slcan_exit()
744 busy++; slcan_exit()
749 } while (busy && time_before(jiffies, timeout)); slcan_exit()
/linux-4.1.27/arch/x86/include/asm/uv/
H A Duv_bau.h41 /* the 'throttle' to prevent the hardware stay-busy bug */
520 unsigned long s_busy; /* status stayed busy past
526 unsigned long s_uv2_wars; /* uv2 workaround, perm. busy */
611 short busy; /* all were busy (war) */ member in struct:bau_control
/linux-4.1.27/drivers/usb/image/
H A Dmdc800.c149 int camera_busy; // is camera busy ?
151 char camera_response [8]; // last Bytes send after busy
247 * Checks whether the camera responds busy
296 dev_dbg(dev, "gets busy\n"); mdc800_usb_irq()
342 * 2: Wait for camera gets busy
/linux-4.1.27/arch/cris/arch-v32/drivers/
H A Dsync_serial.c114 char busy; /* 1 if port is busy */ member in struct:sync_port
448 if (port->busy == 2) { sync_serial_open()
449 DEBUG(pr_info("syncser%d is busy\n", dev)); sync_serial_open()
463 port->busy++; sync_serial_open()
533 port->busy++; sync_serial_open()
551 if (port->busy) sync_serial_release()
552 port->busy--; sync_serial_release()
553 if (!port->busy) sync_serial_release()

Completed in 4909 milliseconds

12345678