Searched refs:pending (Results 1 - 200 of 2607) sorted by relevance

1234567891011>>

/linux-4.1.27/arch/mips/cobalt/
H A Dirq.c25 unsigned pending = read_c0_status() & read_c0_cause() & ST0_IM; plat_irq_dispatch() local
28 if (pending & CAUSEF_IP2) plat_irq_dispatch()
30 else if (pending & CAUSEF_IP6) { plat_irq_dispatch()
36 } else if (pending & CAUSEF_IP3) plat_irq_dispatch()
38 else if (pending & CAUSEF_IP4) plat_irq_dispatch()
40 else if (pending & CAUSEF_IP5) plat_irq_dispatch()
42 else if (pending & CAUSEF_IP7) plat_irq_dispatch()
/linux-4.1.27/include/linux/
H A Dasync.h21 struct list_head pending; member in struct:async_domain
29 struct async_domain _name = { .pending = LIST_HEAD_INIT(_name.pending), \
33 * domain is free to go out of scope as soon as all pending work is
37 struct async_domain _name = { .pending = LIST_HEAD_INIT(_name.pending), \
H A Dsem.h17 struct list_head pending_alter; /* pending operations */
19 struct list_head pending_const; /* pending complex operations */
23 int complex_count; /* pending complex operations */
H A Dirq_work.h10 * claimed NULL, 3 -> {pending} : claimed to be enqueued
11 * pending next, 3 -> {busy} : queued, pending callback
H A Dudp.h48 int pending; /* Any pending frames ? */ member in struct:udp_sock
57 __u16 len; /* total length of pending frames */
H A Dshrinker.h37 * deadlock condition is no longer pending.
61 /* objs pending delete, per node */
H A Dlguest.h41 * Interrupt pending set by the Host. The Guest should do a hypercall
52 /* 0xFF == done (set by Host), 0 == pending (set by Guest). */
H A Dhid-sensor-hub.h52 * struct sensor_hub_pending - Synchronous read pending information
78 * @pending: Holds information of pending sync read request.
88 struct sensor_hub_pending pending; member in struct:hid_sensor_hub_device
/linux-4.1.27/arch/mips/pmcs-msp71xx/
H A Dmsp_irq.c57 u32 pending; plat_irq_dispatch() local
59 pending = read_c0_status() & read_c0_cause(); plat_irq_dispatch()
68 if (pending & C_IRQ4) /* do the peripherals first, that's the timer */ plat_irq_dispatch()
71 else if (pending & C_IRQ0) plat_irq_dispatch()
74 else if (pending & C_IRQ1) plat_irq_dispatch()
77 else if (pending & C_IRQ2) plat_irq_dispatch()
80 else if (pending & C_IRQ3) plat_irq_dispatch()
83 else if (pending & C_IRQ5) plat_irq_dispatch()
87 if (pending & C_IRQ5) plat_irq_dispatch()
90 else if (pending & C_IRQ0) plat_irq_dispatch()
93 else if (pending & C_IRQ1) plat_irq_dispatch()
96 else if (pending & C_IRQ3) plat_irq_dispatch()
99 else if (pending & C_IRQ4) plat_irq_dispatch()
103 else if (pending & C_SW0) /* do software after hardware */ plat_irq_dispatch()
106 else if (pending & C_SW1) plat_irq_dispatch()
H A Dmsp_irq_slp.c85 u32 pending; msp_slp_irq_dispatch() local
89 pending = *SLP_INT_STS_REG & *SLP_INT_MSK_REG; msp_slp_irq_dispatch()
92 if (pending == (1 << (MSP_INT_PER - MSP_SLP_INTBASE))) { msp_slp_irq_dispatch()
94 pending = *PER_INT_STS_REG & *PER_INT_MSK_REG; msp_slp_irq_dispatch()
98 if (pending == 0x00000000) { msp_slp_irq_dispatch()
105 do_IRQ(ffs(pending) + intbase - 1); msp_slp_irq_dispatch()
H A Dmsp_irq_per.c123 u32 pending; msp_per_irq_dispatch() local
125 pending = per_status & per_mask; msp_per_irq_dispatch()
126 if (pending) { msp_per_irq_dispatch()
127 do_IRQ(ffs(pending) + MSP_PER_INTBASE - 1); msp_per_irq_dispatch()
H A Dmsp_irq_cic.c196 u32 pending; msp_cic_irq_dispatch() local
199 pending = cic_status & cic_mask; msp_cic_irq_dispatch()
200 if (pending & (1 << (MSP_INT_VPE0_TIMER - MSP_CIC_INTBASE))) { msp_cic_irq_dispatch()
202 } else if (pending & (1 << (MSP_INT_VPE1_TIMER - MSP_CIC_INTBASE))) { msp_cic_irq_dispatch()
204 } else if (pending & (1 << (MSP_INT_PER - MSP_CIC_INTBASE))) { msp_cic_irq_dispatch()
206 } else if (pending) { msp_cic_irq_dispatch()
207 do_IRQ(ffs(pending) + MSP_CIC_INTBASE - 1); msp_cic_irq_dispatch()
/linux-4.1.27/arch/mips/sni/
H A Dpcit.c183 u32 pending = *(volatile u32 *)SNI_PCIT_INT_REG; pcit_hwint1() local
187 irq = ffs((pending >> 16) & 0x7f); pcit_hwint1()
196 u32 pending = *(volatile u32 *)SNI_PCIT_INT_REG; pcit_hwint0() local
200 irq = ffs((pending >> 16) & 0x3f); pcit_hwint0()
209 u32 pending = read_c0_cause() & read_c0_status(); sni_pcit_hwint() local
211 if (pending & C_IRQ1) sni_pcit_hwint()
213 else if (pending & C_IRQ2) sni_pcit_hwint()
215 else if (pending & C_IRQ3) sni_pcit_hwint()
217 else if (pending & C_IRQ5) sni_pcit_hwint()
223 u32 pending = read_c0_cause() & read_c0_status(); sni_pcit_hwint_cplus() local
225 if (pending & C_IRQ0) sni_pcit_hwint_cplus()
227 else if (pending & C_IRQ1) sni_pcit_hwint_cplus()
229 else if (pending & C_IRQ2) sni_pcit_hwint_cplus()
231 else if (pending & C_IRQ3) sni_pcit_hwint_cplus()
233 else if (pending & C_IRQ5) sni_pcit_hwint_cplus()
H A Dpcimt.c278 u32 pending = read_c0_cause() & read_c0_status(); sni_pcimt_hwint() local
280 if (pending & C_IRQ5) sni_pcimt_hwint()
282 else if (pending & C_IRQ4) sni_pcimt_hwint()
284 else if (pending & C_IRQ3) sni_pcimt_hwint()
286 else if (pending & C_IRQ1) sni_pcimt_hwint()
288 else if (pending & C_IRQ0) { sni_pcimt_hwint()
/linux-4.1.27/arch/mips/loongson1/common/
H A Dirq.c77 /* Get pending sources, masked by current enables */ ls1x_irq_dispatch()
89 unsigned int pending; plat_irq_dispatch() local
91 pending = read_c0_cause() & read_c0_status() & ST0_IM; plat_irq_dispatch()
93 if (pending & CAUSEF_IP7) plat_irq_dispatch()
95 else if (pending & CAUSEF_IP2) plat_irq_dispatch()
97 else if (pending & CAUSEF_IP3) plat_irq_dispatch()
99 else if (pending & CAUSEF_IP4) plat_irq_dispatch()
101 else if (pending & CAUSEF_IP5) plat_irq_dispatch()
103 else if (pending & CAUSEF_IP6) plat_irq_dispatch()
120 /* Disable interrupts and clear pending, ls1x_irq_init()
/linux-4.1.27/arch/mips/ralink/
H A Dirq.c101 u32 pending = rt_intc_r32(INTC_REG_STATUS0); ralink_intc_irq_handler() local
103 if (pending) { ralink_intc_irq_handler()
105 generic_handle_irq(irq_find_mapping(domain, __ffs(pending))); ralink_intc_irq_handler()
113 unsigned long pending; plat_irq_dispatch() local
115 pending = read_c0_status() & read_c0_cause() & ST0_IM; plat_irq_dispatch()
117 if (pending & STATUSF_IP7) plat_irq_dispatch()
120 else if (pending & STATUSF_IP5) plat_irq_dispatch()
123 else if (pending & STATUSF_IP6) plat_irq_dispatch()
126 else if (pending & STATUSF_IP4) plat_irq_dispatch()
129 else if (pending & STATUSF_IP2) plat_irq_dispatch()
/linux-4.1.27/arch/mips/vr41xx/common/
H A Dirq.c98 unsigned int pending = read_c0_cause() & read_c0_status() & ST0_IM; plat_irq_dispatch() local
100 if (pending & CAUSEF_IP7) plat_irq_dispatch()
102 else if (pending & 0x7800) { plat_irq_dispatch()
103 if (pending & CAUSEF_IP3) plat_irq_dispatch()
105 else if (pending & CAUSEF_IP4) plat_irq_dispatch()
107 else if (pending & CAUSEF_IP5) plat_irq_dispatch()
109 else if (pending & CAUSEF_IP6) plat_irq_dispatch()
111 } else if (pending & CAUSEF_IP2) plat_irq_dispatch()
113 else if (pending & CAUSEF_IP0) plat_irq_dispatch()
115 else if (pending & CAUSEF_IP1) plat_irq_dispatch()
/linux-4.1.27/drivers/staging/fwserial/
H A Ddma_fifo.c50 INIT_LIST_HEAD(&fifo->pending); dma_fifo_init()
107 struct dma_pending *pending, *next; dma_fifo_free() local
112 list_for_each_entry_safe(pending, next, &fifo->pending, link) dma_fifo_free()
113 list_del_init(&pending->link); dma_fifo_free()
124 struct dma_pending *pending, *next; dma_fifo_reset() local
129 list_for_each_entry_safe(pending, next, &fifo->pending, link) dma_fifo_reset()
130 list_del_init(&pending->link); dma_fifo_reset()
231 list_add_tail(&pended->link, &fifo->pending); dma_fifo_out_pend()
253 struct dma_pending *pending, *next, *tmp; dma_fifo_out_complete() local
259 if (list_empty(&fifo->pending) && fifo->open == 0) dma_fifo_out_complete()
262 if (FAIL(fifo, list_empty(&fifo->pending) != (fifo->open == 0), dma_fifo_out_complete()
263 "pending list disagrees with open count:%d", dma_fifo_out_complete()
273 list_for_each_entry_safe(pending, next, &fifo->pending, link) { dma_fifo_out_complete()
274 if (!dp_is_completed(pending)) { dma_fifo_out_complete()
275 df_trace("still pending: saved out: %u len: %d", dma_fifo_out_complete()
276 pending->out, pending->len); dma_fifo_out_complete()
280 if (FAIL(fifo, pending->out != fifo->done || dma_fifo_out_complete()
281 addr_check(fifo->in, fifo->done, pending->next), dma_fifo_out_complete()
283 fifo->in, fifo->out, fifo->done, pending->out, dma_fifo_out_complete()
284 pending->next)) dma_fifo_out_complete()
287 list_del_init(&pending->link); dma_fifo_out_complete()
288 fifo->done = pending->next; dma_fifo_out_complete()
289 fifo->avail += pending->len; dma_fifo_out_complete()
293 fifo->out, fifo->done, pending->len, fifo->avail); dma_fifo_out_complete()
/linux-4.1.27/arch/x86/kvm/
H A Dirq.c31 * check if there are pending timer events
41 * check if there is pending interrupt from
61 return v->arch.interrupt.pending; kvm_cpu_has_injectable_intr()
73 * check if there is pending interrupt without
79 return v->arch.interrupt.pending; kvm_cpu_has_interrupt()
89 * Read pending interrupt(from non-APIC source)
100 * Read pending interrupt vector and intack.
H A Dx86.h9 vcpu->arch.exception.pending = false; kvm_clear_exception_queue()
15 vcpu->arch.interrupt.pending = true; kvm_queue_interrupt()
22 vcpu->arch.interrupt.pending = false; kvm_clear_interrupt_queue()
27 return vcpu->arch.exception.pending || vcpu->arch.interrupt.pending || kvm_event_needs_reinjection()
H A Di8254.h30 atomic_t pending; /* accumulated triggered timers */ member in struct:kvm_kpit_state
/linux-4.1.27/arch/mips/loongson/fuloong-2e/
H A Dirq.c28 asmlinkage void mach_irq_dispatch(unsigned int pending) mach_irq_dispatch() argument
30 if (pending & CAUSEF_IP7) mach_irq_dispatch()
32 else if (pending & CAUSEF_IP6) /* perf counter loverflow */ mach_irq_dispatch()
34 else if (pending & CAUSEF_IP5) mach_irq_dispatch()
36 else if (pending & CAUSEF_IP2) mach_irq_dispatch()
/linux-4.1.27/drivers/gpu/drm/qxl/
H A Dqxl_irq.c32 uint32_t pending; qxl_irq_handler() local
34 pending = xchg(&qdev->ram_header->int_pending, 0); qxl_irq_handler()
36 if (!pending) qxl_irq_handler()
41 if (pending & QXL_INTERRUPT_DISPLAY) { qxl_irq_handler()
46 if (pending & QXL_INTERRUPT_CURSOR) { qxl_irq_handler()
50 if (pending & QXL_INTERRUPT_IO_CMD) { qxl_irq_handler()
54 if (pending & QXL_INTERRUPT_ERROR) { qxl_irq_handler()
62 if (pending & QXL_INTERRUPT_CLIENT_MONITORS_CONFIG) { qxl_irq_handler()
/linux-4.1.27/drivers/target/
H A Dtarget_core_iblock.h10 atomic_t pending; member in struct:iblock_req
/linux-4.1.27/arch/mips/loongson/common/
H A Dirq.c29 /* Get pending sources, masked by current enables */ bonito_irqdispatch()
40 unsigned int pending; plat_irq_dispatch() local
42 pending = read_c0_cause() & read_c0_status() & ST0_IM; plat_irq_dispatch()
45 mach_irq_dispatch(pending); plat_irq_dispatch()
/linux-4.1.27/arch/mips/txx9/rbtx4939/
H A Dirq.c53 static int rbtx4939_irq_dispatch(int pending) rbtx4939_irq_dispatch() argument
57 if (pending & CAUSEF_IP7) rbtx4939_irq_dispatch()
67 } else if (pending & CAUSEF_IP0) rbtx4939_irq_dispatch()
69 else if (pending & CAUSEF_IP1) rbtx4939_irq_dispatch()
/linux-4.1.27/arch/avr32/include/asm/
H A Dirq.h19 * Returns a bitmask of pending interrupts in a group.
H A Dthread_info.h65 * - pending work-to-be-done flags are in LSW
69 #define TIF_SIGPENDING 1 /* signal pending */
/linux-4.1.27/drivers/irqchip/
H A Dirq-keystone.c90 unsigned long pending; keystone_irq_handler() local
97 pending = keystone_irq_readl(kirq); keystone_irq_handler()
98 keystone_irq_writel(kirq, pending); keystone_irq_handler()
100 dev_dbg(kirq->dev, "pending 0x%lx, mask 0x%x\n", pending, kirq->mask); keystone_irq_handler()
102 pending = (pending >> BIT_OFS) & ~kirq->mask; keystone_irq_handler()
104 dev_dbg(kirq->dev, "pending after mask 0x%lx\n", pending); keystone_irq_handler()
107 if (BIT(src) & pending) { keystone_irq_handler()
H A Dirq-sun4i.c115 /* Clear all the pending interrupts */ sun4i_of_init()
143 * 1) no more irqs pending sun4i_handle_irq()
144 * 2) irq 0 pending sun4i_handle_irq()
146 * So if we immediately get a reading of 0, check the irq-pending reg sun4i_handle_irq()
H A Dirq-mips-gic.c279 DECLARE_BITMAP(pending, GIC_MAX_INTRS); gic_handle_shared_int()
289 pending[i] = gic_read(pending_reg); gic_handle_shared_int()
295 bitmap_and(pending, pending, intrmask, gic_shared_intrs); gic_handle_shared_int()
296 bitmap_and(pending, pending, pcpu_mask, gic_shared_intrs); gic_handle_shared_int()
298 intr = find_first_bit(pending, gic_shared_intrs); gic_handle_shared_int()
307 /* go to next pending bit */ gic_handle_shared_int()
308 bitmap_clear(pending, intr, 1); gic_handle_shared_int()
309 intr = find_first_bit(pending, gic_shared_intrs); gic_handle_shared_int()
439 unsigned long pending, masked; gic_handle_local_int() local
442 pending = gic_read(GIC_REG(VPE_LOCAL, GIC_VPE_PEND)); gic_handle_local_int()
445 bitmap_and(&pending, &pending, &masked, GIC_NUM_LOCAL_INTRS); gic_handle_local_int()
447 intr = find_first_bit(&pending, GIC_NUM_LOCAL_INTRS); gic_handle_local_int()
456 /* go to next pending bit */ gic_handle_local_int()
457 bitmap_clear(&pending, intr, 1); gic_handle_local_int()
458 intr = find_first_bit(&pending, GIC_NUM_LOCAL_INTRS); gic_handle_local_int()
H A Dirq-bcm2835.c15 * Quirk 1: Shortcut interrupts don't set the bank 1/2 register pending bits
25 * Quirk 2: You can't mask the register 1/2 pending interrupts
91 void __iomem *pending[NR_BANKS]; member in struct:armctrl_ic
159 intc.pending[b] = base + reg_pending[b]; armctrl_of_init()
186 while ((stat = readl_relaxed(intc.pending[bank]))) { armctrl_handle_bank()
204 while ((stat = readl_relaxed(intc.pending[0]) & BANK0_VALID_MASK)) { bcm2835_handle_irq()
/linux-4.1.27/arch/mips/loongson/lemote-2f/
H A Dirq.c76 void mach_irq_dispatch(unsigned int pending) mach_irq_dispatch() argument
78 if (pending & CAUSEF_IP7) mach_irq_dispatch()
80 else if (pending & CAUSEF_IP6) { /* North Bridge, Perf counter */ mach_irq_dispatch()
83 } else if (pending & CAUSEF_IP3) /* CPU UART */ mach_irq_dispatch()
85 else if (pending & CAUSEF_IP2) /* South Bridge */ mach_irq_dispatch()
/linux-4.1.27/arch/mips/loongson/loongson-3/
H A Dirq.c27 void mach_irq_dispatch(unsigned int pending) mach_irq_dispatch() argument
29 if (pending & CAUSEF_IP7) mach_irq_dispatch()
32 else if (pending & CAUSEF_IP6) mach_irq_dispatch()
35 else if (pending & CAUSEF_IP3) mach_irq_dispatch()
37 else if (pending & CAUSEF_IP2) mach_irq_dispatch()
/linux-4.1.27/drivers/gpu/drm/msm/mdp/mdp5/
H A Dmdp5_smp.c37 * free, or pending/in-use by a client. The updates happen in three steps:
42 * pending by any other client are added to client's pending
47 * are configured for the union(pending, inuse)
50 * After next vblank, copy pending -> inuse. Optionally update
54 * client's pending blocks become it's in-use blocks (and no-longer
65 * inuse and pending state of all clients..
110 /* step #1: update # of blocks pending for the client: */ smp_request_block()
139 cur_nblks = bitmap_weight(ps->pending, cnt); smp_request_block()
141 /* grow the existing pending reservation: */ smp_request_block()
144 set_bit(blk, ps->pending); smp_request_block()
148 /* shrink the existing pending reservation: */ smp_request_block()
150 int blk = find_first_bit(ps->pending, cnt); smp_request_block()
151 clear_bit(blk, ps->pending); smp_request_block()
266 /* step #2: configure hw for union(pending, inuse): */ mdp5_smp_configure()
277 bitmap_or(assigned, ps->inuse, ps->pending, cnt); mdp5_smp_configure()
282 /* step #3: after vblank, copy pending -> inuse: */ mdp5_smp_commit()
298 if (bitmap_andnot(released, ps->inuse, ps->pending, cnt)) { mdp5_smp_commit()
309 bitmap_copy(ps->inuse, ps->pending, cnt); mdp5_smp_commit()
H A Dmdp5_smp.h26 mdp5_smp_state_t pending; member in struct:mdp5_client_smp_state
/linux-4.1.27/arch/x86/xen/
H A Dxen-asm.S21 * Enable events. This clears the event mask and tests the pending
22 * event status with one and operation. If there are pending events,
31 * pending interrupts. The pending check may end up being run
35 /* Test for pending */
81 * interrupt mask state, it checks for unmasked pending events and
93 * pending interrupts. The pending check may end up being run
97 /* check for unmasked and pending */
H A Dxen-asm_32.S57 * This attempts to make sure that any pending events are dealt with
60 * interrupt ends up setting one of the TIF_WORK_MASK pending work
62 * usermode. This means that a process can end up with pending work,
65 * means that a pending signal or reschedule event could be
72 * all pending work will be dealt with appropriately.
121 /* check for unmasked and pending */
125 * If there's something pending, mask events again so we can
H A Dirq.c19 * down into Xen. The pending flag will be checked by Xen on return.
92 pending event will get dealt with anyway. */ xen_irq_enable()
H A Dmulticalls.h38 /* Flush all pending multicalls */
H A Dspinlock.c151 /* clear pending */ xen_lock_spinning()
154 /* Only check lock once pending cleared */ xen_lock_spinning()
181 * pending, which will cause xen_poll_irq() to return xen_lock_spinning()
185 /* Block until irq becomes pending (or perhaps a spurious wakeup) */ xen_lock_spinning()
/linux-4.1.27/arch/mips/ath79/
H A Dirq.c33 u32 pending; ath79_misc_irq_handler() local
35 pending = __raw_readl(base + AR71XX_RESET_REG_MISC_INT_STATUS) & ath79_misc_irq_handler()
38 if (!pending) { ath79_misc_irq_handler()
43 while (pending) { ath79_misc_irq_handler()
44 int bit = __ffs(pending); ath79_misc_irq_handler()
47 pending &= ~BIT(bit); ath79_misc_irq_handler()
240 unsigned long pending; plat_irq_dispatch() local
242 pending = read_c0_status() & read_c0_cause() & ST0_IM; plat_irq_dispatch()
244 if (pending & STATUSF_IP7) plat_irq_dispatch()
247 else if (pending & STATUSF_IP2) plat_irq_dispatch()
250 else if (pending & STATUSF_IP4) plat_irq_dispatch()
253 else if (pending & STATUSF_IP5) plat_irq_dispatch()
256 else if (pending & STATUSF_IP3) plat_irq_dispatch()
259 else if (pending & STATUSF_IP6) plat_irq_dispatch()
/linux-4.1.27/arch/mips/kernel/
H A Dirq_cpu.c104 unsigned long pending = read_c0_cause() & read_c0_status() & ST0_IM; plat_irq_dispatch() local
107 if (!pending) { plat_irq_dispatch()
112 pending >>= CAUSEB_IP; plat_irq_dispatch()
113 while (pending) { plat_irq_dispatch()
114 irq = fls(pending) - 1; plat_irq_dispatch()
116 pending &= ~BIT(irq); plat_irq_dispatch()
H A Dsignal-common.h27 /* Check and clear pending FPU exceptions in saved CSR */
/linux-4.1.27/drivers/xen/events/
H A Devents_2l.c97 * Need to clear the mask before checking pending to evtchn_2l_unmask()
98 * avoid a race with an event becoming pending. evtchn_2l_unmask()
114 * an hvm domain and an event is pending (hvm domains don't have evtchn_2l_unmask()
154 * Search the CPU's pending events bitmasks. For each one found, map
158 * a bitset of words which contain pending event bits. The second
159 * level is a bitset of pending events themselves.
220 * pending again it would just be scanned on evtchn_2l_handle_events()
279 int pending; for_each_online_cpu() local
281 pending = (get_irq_regs() && i == cpu) for_each_online_cpu()
284 printk("%d: masked=%d pending=%d event_sel %0*"PRI_xen_ulong"\n ", i, for_each_online_cpu()
285 pending, v->evtchn_upcall_pending, for_each_online_cpu()
319 xen_ulong_t pending = sh->evtchn_pending[i] local
324 pending, i % 8 == 0 ? "\n " : " ");
/linux-4.1.27/drivers/gpu/drm/atmel-hlcdc/
H A Datmel_hlcdc_layer.c98 if (upd->pending < 0 || upd->pending > 1) atmel_hlcdc_layer_update_apply()
101 slot = &upd->slots[upd->pending]; atmel_hlcdc_layer_update_apply()
172 atmel_hlcdc_layer_update_reset(layer, upd->pending); atmel_hlcdc_layer_update_apply()
174 upd->pending = -1; atmel_hlcdc_layer_update_apply()
317 /* Clear all pending interrupts */ atmel_hlcdc_layer_disable()
332 * Then discard the pending update request (if any) to prevent atmel_hlcdc_layer_disable()
336 if (upd->pending >= 0) { atmel_hlcdc_layer_disable()
337 atmel_hlcdc_layer_update_reset(layer, upd->pending); atmel_hlcdc_layer_disable()
338 upd->pending = -1; atmel_hlcdc_layer_disable()
368 upd->next = upd->pending ? 0 : 1; atmel_hlcdc_layer_update_start()
395 if (upd->pending >= 0) { atmel_hlcdc_layer_update_start()
397 upd->slots[upd->pending].configs, atmel_hlcdc_layer_update_start()
400 upd->slots[upd->pending].updated_configs, atmel_hlcdc_layer_update_start()
404 slot->fb_flip->fb = upd->slots[upd->pending].fb_flip->fb; atmel_hlcdc_layer_update_start()
405 if (upd->slots[upd->pending].fb_flip->fb) { atmel_hlcdc_layer_update_start()
407 upd->slots[upd->pending].fb_flip->fb; atmel_hlcdc_layer_update_start()
409 upd->slots[upd->pending].fb_flip->ngems; atmel_hlcdc_layer_update_start()
510 * Release pending update request and replace it by the new one. atmel_hlcdc_layer_update_commit()
512 if (upd->pending >= 0) atmel_hlcdc_layer_update_commit()
513 atmel_hlcdc_layer_update_reset(layer, upd->pending); atmel_hlcdc_layer_update_commit()
515 upd->pending = upd->next; atmel_hlcdc_layer_update_commit()
594 upd->pending = -1; atmel_hlcdc_layer_update_init()
/linux-4.1.27/drivers/mtd/tests/
H A Dmtd_test.h8 pr_info("aborting test due to pending signal!\n"); mtdtest_relax()
/linux-4.1.27/arch/um/os-Linux/
H A Dsignal.c140 unsigned long pending = 1UL << sig; hard_handler() local
146 * pending comes back with one bit set for each hard_handler()
155 bail = to_irq_stack(&pending); hard_handler()
159 nested = pending & 1; hard_handler()
160 pending &= ~1; hard_handler()
162 while ((sig = ffs(pending)) != 0){ hard_handler()
164 pending &= ~(1 << sig); hard_handler()
169 * Again, pending comes back with a mask of signals hard_handler()
175 pending = from_irq_stack(nested); hard_handler()
176 } while (pending); hard_handler()
266 * We have pending interrupts, so disable signals, as the unblock_signals()
275 * schedule, leaving the pending SIGIO stranded until we come unblock_signals()
/linux-4.1.27/crypto/
H A Dmichael_mic.c25 u8 pending[4]; member in struct:michael_mic_desc_ctx
72 memcpy(&mctx->pending[mctx->pending_len], data, flen); michael_update()
80 src = (const __le32 *)mctx->pending; michael_update()
96 memcpy(mctx->pending, src, len); michael_update()
106 u8 *data = mctx->pending; michael_final()
/linux-4.1.27/arch/mips/jazz/
H A Dirq.c63 r4030_read_reg16(JAZZ_IO_IRQ_SOURCE); /* clear pending IRQs */ init_r4030_ints()
95 unsigned int pending = read_c0_cause() & read_c0_status(); plat_irq_dispatch() local
98 if (pending & IE_IRQ4) { plat_irq_dispatch()
101 } else if (pending & IE_IRQ2) { plat_irq_dispatch()
104 } else if (pending & IE_IRQ1) { plat_irq_dispatch()
/linux-4.1.27/arch/mips/txx9/rbtx4938/
H A Dirq.c110 static int rbtx4938_irq_dispatch(int pending) rbtx4938_irq_dispatch() argument
114 if (pending & STATUSF_IP7) rbtx4938_irq_dispatch()
116 else if (pending & STATUSF_IP2) { rbtx4938_irq_dispatch()
120 } else if (pending & STATUSF_IP1) rbtx4938_irq_dispatch()
122 else if (pending & STATUSF_IP0) rbtx4938_irq_dispatch()
/linux-4.1.27/arch/mips/kvm/
H A Dinterrupt.c38 * Cause bits to reflect the pending timer interrupt, kvm_mips_queue_timer_int_cb()
61 * Cause bits to reflect the pending IO interrupt, kvm_mips_queue_io_int_cb()
206 unsigned long *pending = &vcpu->arch.pending_exceptions; kvm_mips_deliver_interrupts() local
210 if (!(*pending) && !(*pending_clr)) kvm_mips_deliver_interrupts()
225 priority = __ffs(*pending); kvm_mips_deliver_interrupts()
232 priority = find_next_bit(pending, kvm_mips_deliver_interrupts()
233 BITS_PER_BYTE * sizeof(*pending), kvm_mips_deliver_interrupts()
/linux-4.1.27/arch/arm/mach-ux500/
H A Dpm.c78 * This function checks if there are pending irq on the gic. It only
83 * becoming pending, or active and pending if it is already
84 * active. Hence, we have to check the interrupt is pending *and* is
101 return true; /* There is a pending interrupt */ prcmu_gic_pending_irq()
108 * This function checks if there are pending interrupt on the
121 return true; /* There is a pending interrupt */ prcmu_pending_irq()
/linux-4.1.27/kernel/
H A Dfutex_compat.c53 struct robust_list __user *entry, *next_entry, *pending; compat_exit_robust_list() local
75 * Fetch any possibly pending lock-add first, and handle it compat_exit_robust_list()
78 if (fetch_robust_entry(&upending, &pending, compat_exit_robust_list()
91 * A pending lock might already be on the list, so compat_exit_robust_list()
94 if (entry != pending) { compat_exit_robust_list()
113 if (pending) { compat_exit_robust_list()
114 void __user *uaddr = futex_uaddr(pending, futex_offset); compat_exit_robust_list()
H A Dasync.c67 static LIST_HEAD(async_global_pending); /* pending from all registered doms */
87 struct list_head *pending; lowest_in_progress() local
94 pending = &domain->pending; lowest_in_progress()
96 pending = &async_global_pending; lowest_in_progress()
98 if (!list_empty(pending)) lowest_in_progress()
99 ret = list_first_entry(pending, struct async_entry, lowest_in_progress()
107 * pick the first pending entry and run it
133 /* 2) remove self from the pending queues */ async_run_entry_fn()
159 * pending already, we execute synchronously. __async_schedule()
183 list_add_tail(&entry->domain_list, &domain->pending); __async_schedule()
255 WARN_ON(!domain->registered || !list_empty(&domain->pending)); async_unregister_domain()
H A Dtask_work.c42 * task_work_cancel - cancel a pending work added by task_work_add()
46 * Find the last queued pending work with ->func == @func and remove
80 * Flush the pending works. Should be used by the core kernel code.
H A Dsoftirq.c68 * to the pending events, so lets the scheduler to balance
139 * without processing still-pending softirqs:
167 * Run softirq if any pending. And do it in its own stack __local_bh_enable_ip()
237 __u32 pending; __do_softirq() local
247 pending = local_softirq_pending(); __do_softirq()
254 /* Reset the pending bitmask before enabling irqs */ __do_softirq()
261 while ((softirq_bit = ffs(pending))) { __do_softirq()
282 pending >>= softirq_bit; __do_softirq()
288 pending = local_softirq_pending(); __do_softirq()
289 if (pending) { __do_softirq()
306 __u32 pending; do_softirq() local
314 pending = local_softirq_pending(); do_softirq()
316 if (pending) do_softirq()
H A Dirq_work.c61 * Enqueue the irq_work @work on @cpu unless it's already pending
74 /* Only queue if not already pending */ irq_work_queue_on()
89 /* Only queue if not already pending */ irq_work_queue()
/linux-4.1.27/drivers/hid/
H A Dhid-sensor-hub.c35 * @lock: Spin lock to protect pending request structure.
299 memset(&hsdev->pending, 0, sizeof(hsdev->pending)); sensor_hub_input_attr_get_raw_value()
300 init_completion(&hsdev->pending.ready); sensor_hub_input_attr_get_raw_value()
301 hsdev->pending.usage_id = usage_id; sensor_hub_input_attr_get_raw_value()
302 hsdev->pending.attr_usage_id = attr_usage_id; sensor_hub_input_attr_get_raw_value()
303 hsdev->pending.raw_size = 0; sensor_hub_input_attr_get_raw_value()
306 hsdev->pending.status = true; sensor_hub_input_attr_get_raw_value()
314 &hsdev->pending.ready, HZ*5); sensor_hub_input_attr_get_raw_value()
315 switch (hsdev->pending.raw_size) { sensor_hub_input_attr_get_raw_value()
317 ret_val = *(u8 *)hsdev->pending.raw_data; sensor_hub_input_attr_get_raw_value()
320 ret_val = *(u16 *)hsdev->pending.raw_data; sensor_hub_input_attr_get_raw_value()
323 ret_val = *(u32 *)hsdev->pending.raw_data; sensor_hub_input_attr_get_raw_value()
328 kfree(hsdev->pending.raw_data); sensor_hub_input_attr_get_raw_value()
329 hsdev->pending.status = false; sensor_hub_input_attr_get_raw_value()
500 if (hsdev->pending.status && (hsdev->pending.attr_usage_id == sensor_hub_raw_event()
502 hsdev->pending.attr_usage_id == sensor_hub_raw_event()
504 hid_dbg(hdev, "data was pending ...\n"); sensor_hub_raw_event()
505 hsdev->pending.raw_data = kmemdup(ptr, sz, GFP_ATOMIC); sensor_hub_raw_event()
506 if (hsdev->pending.raw_data) sensor_hub_raw_event()
507 hsdev->pending.raw_size = sz; sensor_hub_raw_event()
509 hsdev->pending.raw_size = 0; sensor_hub_raw_event()
510 complete(&hsdev->pending.ready); sensor_hub_raw_event()
740 if (hsdev->pending.status) sensor_hub_remove()
741 complete(&hsdev->pending.ready); sensor_hub_remove()
/linux-4.1.27/fs/btrfs/
H A Dasync-thread.c44 atomic_t pending; member in struct:__btrfs_workqueue
99 atomic_set(&ret->pending, 0); __btrfs_alloc_workqueue()
172 atomic_inc(&wq->pending); thresh_queue_hook()
183 long pending; thresh_exec_hook() local
189 atomic_dec(&wq->pending); thresh_exec_hook()
202 * pending may be changed later, but it's OK since we really thresh_exec_hook()
205 pending = atomic_read(&wq->pending); thresh_exec_hook()
206 if (pending > wq->thresh) thresh_exec_hook()
208 if (pending < wq->thresh / 2) thresh_exec_hook()
H A Dtransaction.c68 printk(KERN_ERR "pending csums is %llu\n", btrfs_put_transaction()
1251 * the creation of the pending snapshots, just return 0.
1255 struct btrfs_pending_snapshot *pending) create_pending_snapshot()
1260 struct btrfs_root *root = pending->root; create_pending_snapshot()
1279 pending->error = -ENOMEM; create_pending_snapshot()
1285 pending->error = -ENOMEM; create_pending_snapshot()
1289 pending->error = btrfs_find_free_objectid(tree_root, &objectid); create_pending_snapshot()
1290 if (pending->error) create_pending_snapshot()
1293 btrfs_reloc_pre_snapshot(trans, pending, &to_reserve); create_pending_snapshot()
1296 pending->error = btrfs_block_rsv_add(root, create_pending_snapshot()
1297 &pending->block_rsv, create_pending_snapshot()
1300 if (pending->error) create_pending_snapshot()
1309 trans->block_rsv = &pending->block_rsv; create_pending_snapshot()
1312 dentry = pending->dentry; create_pending_snapshot()
1313 parent_inode = pending->dir; create_pending_snapshot()
1329 pending->error = -EEXIST; create_pending_snapshot()
1356 if (pending->readonly) create_pending_snapshot()
1412 objectid, pending->inherit); create_pending_snapshot()
1446 pending->snap = btrfs_read_fs_root_no_name(root->fs_info, &key); create_pending_snapshot()
1447 if (IS_ERR(pending->snap)) { create_pending_snapshot()
1448 ret = PTR_ERR(pending->snap); create_pending_snapshot()
1453 ret = btrfs_reloc_post_snapshot(trans, pending); create_pending_snapshot()
1501 pending->error = ret; create_pending_snapshot()
1518 struct btrfs_pending_snapshot *pending, *next; create_pending_snapshots() local
1522 list_for_each_entry_safe(pending, next, head, list) { list_for_each_entry_safe()
1523 list_del(&pending->list); list_for_each_entry_safe()
1524 ret = create_pending_snapshot(trans, fs_info, pending); list_for_each_entry_safe()
1903 /* some pending stuffs might be added after the previous flush. */ btrfs_commit_transaction()
2000 * Since the transaction is done, we can apply the pending changes btrfs_commit_transaction()
2201 btrfs_debug(fs_info, "pending commit done"); btrfs_apply_pending_changes()
2206 "unknown pending changes left 0x%lx, ignoring", prev); btrfs_apply_pending_changes()
1253 create_pending_snapshot(struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, struct btrfs_pending_snapshot *pending) create_pending_snapshot() argument
/linux-4.1.27/drivers/scsi/libsas/
H A Dsas_event.c36 /* add it to the defer list, if not already pending */ sas_queue_work()
43 static void sas_queue_event(int event, unsigned long *pending, sas_queue_event() argument
47 if (!test_and_set_bit(event, pending)) { sas_queue_event()
111 if (!test_and_clear_bit(ev, &d->pending)) sas_enable_revalidation()
114 sas_queue_event(ev, &d->pending, &d->disc_work[ev].work, ha); sas_enable_revalidation()
123 sas_queue_event(event, &sas_ha->pending, notify_ha_event()
H A Dsas_discover.c221 clear_bit(DISCE_PROBE, &port->disc.pending); sas_probe_devices()
252 clear_bit(DISCE_SUSPEND, &port->disc.pending); sas_suspend_devices()
279 clear_bit(DISCE_RESUME, &port->disc.pending); sas_resume_devices()
362 clear_bit(DISCE_DESTRUCT, &port->disc.pending); sas_destruct_devices()
446 clear_bit(DISCE_DISCOVER_DOMAIN, &port->disc.pending); sas_discover_domain()
513 clear_bit(DISCE_REVALIDATE_DOMAIN, &port->disc.pending); sas_revalidate_domain()
540 static void sas_chain_event(int event, unsigned long *pending, sas_chain_event() argument
544 if (!test_and_set_bit(event, pending)) { sas_chain_event()
563 sas_chain_event(ev, &disc->pending, &disc->disc_work[ev].work, port->ha); sas_discover_event()
587 disc->pending = 0; sas_init_disc()
/linux-4.1.27/arch/mips/sgi-ip27/
H A Dip27-irq.c164 unsigned long pending = read_c0_cause() & read_c0_status(); plat_irq_dispatch() local
167 if (pending & CAUSEF_IP4) plat_irq_dispatch()
169 else if (pending & CAUSEF_IP2) /* PI_INT_PEND_0 or CC_PEND_{A|B} */ plat_irq_dispatch()
171 else if (pending & CAUSEF_IP3) /* PI_INT_PEND_1 */ plat_irq_dispatch()
173 else if (pending & CAUSEF_IP5) plat_irq_dispatch()
175 else if (pending & CAUSEF_IP6) plat_irq_dispatch()
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_sp.h29 /* Wait until all pending commands complete */
39 * pending commands list.
42 /* If there is another pending ramrod, wait until it finishes and
86 int state; /* "ramrod is pending" state bit */
191 /* Commands pending for an execution. */
194 /* Commands pending for an completion. */
214 * Called before removing pending commands, cleaning allocated
220 * This will try to cancel the current pending commands list
300 unsigned long saved_ramrod_flags; /* Ramrods of pending execution */
377 * vlan_mac_flags specification. Assumes no pending for
389 * if there are pending for completion commands,
423 * pending commands will be executed.
427 * @return 0 if there are neither pending nor waiting for
429 * pending for execution or for completion commands.
523 * - Add a new command type for handling pending commands
527 * pending commands.
564 /* A state that is set in raw.pstate, when there are pending commands */
570 /* Total number of currently pending MACs to configure: both
571 * in the pending commands list and in the current command.
608 * command is still pending.
619 /* Wait until all pending commands complete */
1054 * pending" paradigm but for debug and tracing purposes it's
1058 unsigned long pending; member in struct:bnx2x_queue_sp_obj
1073 * Sets the pending bit according to the requested transition.
1086 * Completes the pending command.
1304 * pending" paradigm but for debug and tracing purposes it's
1308 unsigned long pending; member in struct:bnx2x_func_sp_obj
1321 /* this mutex validates that when pending flag is taken, the next
1322 * ramrod to be sent will be the one set the pending bit
1345 * Completes the pending command.
1422 * Return: 0 - if operation was successful and there is no pending completions,
1423 * positive number - if there are pending completions,
1446 * configuration, continue to execute the pending commands
1449 * If previous command is still pending or if number of MACs to
1452 * pending commands list.
1454 * Return: 0 is operation was successful and there are no pending completions,
1455 * negative if there were errors, positive if there are pending
H A Dbnx2x_sp.c184 * 'pending' list. bnx2x_exe_queue_step()
195 /* Run through the pending commands list and create a next bnx2x_exe_queue_step()
228 /* If zero is returned, means there are no outstanding pending bnx2x_exe_queue_step()
229 * completions and we may dismiss the pending list. bnx2x_exe_queue_step()
422 DP(BNX2X_MSG_SP, "vlan_mac_lock execute pending command with ramrod flags %lu\n", __bnx2x_vlan_mac_h_exec_pending()
428 BNX2X_ERR("execution of pending commands failed with rc %d\n", __bnx2x_vlan_mac_h_exec_pending()
451 DP(BNX2X_MSG_SP, "Placing pending execution with ramrod flags %lu\n", __bnx2x_vlan_mac_h_pend()
461 * @details Should be called under execution queue lock. Notice if a pending
468 /* It's possible a new pending execution was added since this writer __bnx2x_vlan_mac_h_write_unlock()
472 DP(BNX2X_MSG_SP, "vlan_mac_lock - writer release encountered a pending request\n"); __bnx2x_vlan_mac_h_write_unlock()
524 * @details Should be called under execution queue lock. Notice if a pending
542 /* It's possible a new pending execution was added, and that this reader __bnx2x_vlan_mac_h_read_unlock()
546 DP(BNX2X_MSG_SP, "vlan_mac_lock - reader release encountered a pending request\n"); __bnx2x_vlan_mac_h_read_unlock()
559 * @details Notice if a pending execution exists, it would be performed if this
1111 /* Check pending for execution commands */ bnx2x_exeq_get_mac()
1128 /* Check pending for execution commands */ bnx2x_exeq_get_vlan()
1166 /* Check if there is a pending ADD command for this bnx2x_validate_vlan_mac_add()
1170 DP(BNX2X_MSG_SP, "There is a pending ADD command already\n"); bnx2x_validate_vlan_mac_add()
1174 /* TODO: Check the pending MOVE from other objects where this bnx2x_validate_vlan_mac_add()
1217 /* Check if there are pending DEL or MOVE commands for this bnx2x_validate_vlan_mac_del()
1225 BNX2X_ERR("There is a pending MOVE command already\n"); bnx2x_validate_vlan_mac_del()
1231 DP(BNX2X_MSG_SP, "There is a pending DEL command already\n"); bnx2x_validate_vlan_mac_del()
1277 /* Check if there is an already pending DEL or MOVE command for the bnx2x_validate_vlan_mac_move()
1286 BNX2X_ERR("There is a pending DEL command on the source queue already\n"); bnx2x_validate_vlan_mac_move()
1292 DP(BNX2X_MSG_SP, "There is a pending MOVE command already\n"); bnx2x_validate_vlan_mac_move()
1299 BNX2X_ERR("There is a pending ADD command on the destination queue already\n"); bnx2x_validate_vlan_mac_move()
1385 /* Wait until there are no pending commands */ bnx2x_wait_vlan_mac()
1410 * and the case in which there is already a pending ramrod __bnx2x_vlan_mac_execute_step()
1438 /* Clearing the pending list & raw state should be made bnx2x_complete_vlan_mac()
1443 /* Reset pending list */ bnx2x_complete_vlan_mac()
1446 /* Clear pending */ bnx2x_complete_vlan_mac()
1455 /* Run the next bulk of pending commands if requested */ bnx2x_complete_vlan_mac()
1612 /* Set pending */ bnx2x_execute_vlan_mac()
1740 /* Try to add a new command to the pending list */ bnx2x_vlan_mac_push_new_cmd()
1770 * return PENDING if there are pending commands bnx2x_config_vlan_mac()
1776 DP(BNX2X_MSG_SP, "RAMROD_DRV_CLR_ONLY requested: clearing a pending bit.\n"); bnx2x_config_vlan_mac()
1794 * one (for the current pending command). bnx2x_config_vlan_mac()
1846 /* Clear pending commands first */ bnx2x_vlan_mac_del_all()
2295 /* Ramrod completion is pending */ bnx2x_set_rx_mode_e2()
2366 * practically used in 57712 handling only, where one pending
2395 /* If the command is empty ("handle pending commands only"), break */ bnx2x_mcast_enqueue_cmd()
2421 /* Push the MACs of the current command into the pending command bnx2x_mcast_enqueue_cmd()
2446 /* Push the new pending command to the tail of the pending list: FIFO */ bnx2x_mcast_enqueue_cmd()
2846 * handle all pending commands. bnx2x_mcast_validate_e2()
2856 /* Increase the total number of MACs pending to be configured */ bnx2x_mcast_validate_e2()
2936 /* If there are no more pending commands - clear SCHEDULED state */ bnx2x_mcast_setup_e2()
2941 * data for all pending commands and for the current bnx2x_mcast_setup_e2()
2943 * to the pending commands and p->mcast_list_len would have been bnx2x_mcast_setup_e2()
2960 /* Update a registry size if there are no more pending operations. bnx2x_mcast_setup_e2()
2963 * pending operations because we want it to always be equal to the bnx2x_mcast_setup_e2()
3000 /* Ramrod completion is pending */ bnx2x_mcast_setup_e2()
3076 * and clear a pending bit. bnx2x_mcast_setup_e1h()
3429 /* Handle pending commands first */ bnx2x_mcast_setup_e1()
3432 /* If there are no more pending commands - clear SCHEDULED state */ bnx2x_mcast_setup_e1()
3436 /* The below may be true iff there were no pending commands */ bnx2x_mcast_setup_e1()
3484 /* Ramrod completion is pending */ bnx2x_mcast_setup_e1()
3536 /* Enqueue the current command to the pending list if we can't complete bnx2x_config_mcast()
3553 /* Set 'pending' state */ bnx2x_config_mcast()
4171 * to that is still pending (possible only if RAMROD_COMP_WAIT is
4180 unsigned long *pending = &o->pending; bnx2x_queue_state_change() local
4189 /* Set "pending" bit */ bnx2x_queue_state_change()
4190 DP(BNX2X_MSG_SP, "pending bit was=%lx\n", o->pending); bnx2x_queue_state_change()
4192 DP(BNX2X_MSG_SP, "pending bit now=%lx\n", o->pending); bnx2x_queue_state_change()
4202 clear_bit(pending_bit, pending); bnx2x_queue_state_change()
4216 return !!test_bit(pending_bit, pending); bnx2x_queue_state_change()
4233 set_bit(bit, &obj->pending); bnx2x_queue_set_pending()
4241 return bnx2x_state_wait(bp, cmd, &o->pending); bnx2x_queue_wait_comp()
4257 unsigned long cur_pending = o->pending; bnx2x_queue_comp_cmd()
4260 BNX2X_ERR("Bad MC reply %d for queue %d in state %d pending 0x%lx, next_state %d\n", bnx2x_queue_comp_cmd()
4286 * updated before o->pending. bnx2x_queue_comp_cmd()
4290 clear_bit(cmd, &o->pending); bnx2x_queue_comp_cmd()
5023 /* Forget all pending for completion commands if a driver only state bnx2x_queue_chk_transition()
5027 o->pending = 0; bnx2x_queue_chk_transition()
5034 if (o->pending) { bnx2x_queue_chk_transition()
5035 BNX2X_ERR("Blocking transition since pending was %lx\n", bnx2x_queue_chk_transition()
5036 o->pending); bnx2x_queue_chk_transition()
5237 if (o->pending) bnx2x_func_get_state()
5240 /* unsure the order of reading of o->pending and o->state bnx2x_func_get_state()
5241 * o->pending should be read first bnx2x_func_get_state()
5252 return bnx2x_state_wait(bp, cmd, &o->pending); bnx2x_func_wait_comp()
5269 unsigned long cur_pending = o->pending; bnx2x_func_state_change_comp()
5272 BNX2X_ERR("Bad MC reply %d for func %d in state %d pending 0x%lx, next_state %d\n", bnx2x_func_state_change_comp()
5286 * updated before o->pending. bnx2x_func_state_change_comp()
5290 clear_bit(cmd, &o->pending); bnx2x_func_state_change_comp()
5338 /* Forget all pending for completion commands if a driver only state bnx2x_func_chk_transition()
5342 o->pending = 0; bnx2x_func_chk_transition()
5349 if (o->pending) bnx2x_func_chk_transition()
5370 * if not pending for function_stop ramrod completion bnx2x_func_chk_transition()
5374 (!test_bit(BNX2X_F_CMD_STOP, &o->pending))) bnx2x_func_chk_transition()
5378 (!test_bit(BNX2X_F_CMD_STOP, &o->pending))) bnx2x_func_chk_transition()
5385 (!test_bit(BNX2X_F_CMD_STOP, &o->pending))) bnx2x_func_chk_transition()
5389 (!test_bit(BNX2X_F_CMD_STOP, &o->pending))) bnx2x_func_chk_transition()
5398 (!test_bit(BNX2X_F_CMD_STOP, &o->pending))) bnx2x_func_chk_transition()
5402 (!test_bit(BNX2X_F_CMD_STOP, &o->pending))) bnx2x_func_chk_transition()
5996 * still pending (possible only if RAMROD_COMP_WAIT is
6006 unsigned long *pending = &o->pending; bnx2x_func_state_change() local
6030 /* Set "pending" bit */ bnx2x_func_state_change()
6031 set_bit(cmd, pending); bnx2x_func_state_change()
6045 clear_bit(cmd, pending); bnx2x_func_state_change()
6059 return !!test_bit(cmd, pending); bnx2x_func_state_change()
/linux-4.1.27/include/uapi/linux/
H A Dunix_diag.h19 #define UDIAG_SHOW_ICONS 0x00000008 /* show pending connections */
H A Drtc.h38 unsigned char pending; /* 0 = alarm not pending, 1 = alarm pending */ member in struct:rtc_wkalrm
H A Dsem.h28 struct sem_queue *sem_pending; /* pending operations to be processed */
29 struct sem_queue **sem_pending_last; /* last pending operation */
/linux-4.1.27/arch/s390/kernel/vdso32/
H A Dclock_gettime.S36 tml %r4,0x0001 /* pending update ? loop */
79 tml %r4,0x0001 /* pending update ? loop */
89 tml %r4,0x0001 /* pending update ? loop */
99 tml %r4,0x0001 /* pending update ? loop */
/linux-4.1.27/arch/powerpc/kvm/
H A Dtrace_booke.h202 __field( unsigned long, pending )
208 __entry->pending = vcpu->arch.pending_exceptions;
211 TP_printk("vcpu=%x prio=%s pending=%lx",
214 __entry->pending)
H A Dbook3s_hv_rm_xics.c59 /* Mark the target VCPU as having an interrupt pending */ icp_rm_set_vcpu_irq()
117 * for that is that we opportunistically remove the pending interrupt icp_rm_try_update()
119 * interrupt is still pending. icp_rm_try_update()
246 * Note: PAPR doesn't mention anything about masked pending icp_rm_deliver_irq()
337 * the case of an MFRR causing a reject of a pending irq, icp_rm_down_cppr()
356 * The logic is that we cannot have a pending interrupt icp_rm_down_cppr()
358 * know that either the pending interrupt is already an icp_rm_down_cppr()
402 * Return the pending interrupt (if any) along with the kvmppc_rm_h_xirr()
404 * pending priority kvmppc_rm_h_xirr()
459 * Besides rejecting any pending interrupts, we also kvmppc_rm_h_ipi()
460 * update XISR and pending_pri to mark IPI as pending. kvmppc_rm_h_ipi()
468 * where pending interrupt is the one that was rejected. But kvmppc_rm_h_ipi()
482 /* Reject a pending interrupt if not an IPI */ kvmppc_rm_h_ipi()
538 * in a rejection of a pending interrupt: kvmppc_rm_h_cppr()
590 * a pending interrupt, this is a SW error and PAPR sepcifies kvmppc_rm_h_eoi()
/linux-4.1.27/arch/blackfin/kernel/
H A Dirqchip.c69 unsigned short pending, other_ints; maybe_lower_to_irq14() local
80 pending = bfin_read_IPEND() & ~0x8000; maybe_lower_to_irq14()
81 other_ints = pending & (pending - 1); maybe_lower_to_irq14()
/linux-4.1.27/drivers/uwb/
H A Ddrp-avail.c53 bitmap_fill(rc->drp_avail.pending, UWB_NUM_MAS); uwb_drp_avail_init()
59 * avail = global & local & pending
64 bitmap_and(avail->bm, avail->bm, rc->drp_avail.pending, UWB_NUM_MAS); uwb_drp_available()
82 bitmap_andnot(rc->drp_avail.pending, rc->drp_avail.pending, mas->bm, UWB_NUM_MAS); uwb_drp_avail_reserve_pending()
93 bitmap_or(rc->drp_avail.pending, rc->drp_avail.pending, mas->bm, UWB_NUM_MAS); uwb_drp_avail_reserve()
99 * uwb_drp_avail_release - release MAS from a pending or established reservation
106 bitmap_or(rc->drp_avail.pending, rc->drp_avail.pending, mas->bm, UWB_NUM_MAS); uwb_drp_avail_release()
266 * includes local and pending reservations).
/linux-4.1.27/arch/mips/sibyte/bcm1480/
H A Dirq.c156 u64 pending; ack_bcm1480_irq() local
170 pending = __raw_readq(IOADDR(A_BCM1480_IMR_REGISTER(bcm1480_irq_owner[irq], ack_bcm1480_irq()
172 pending &= ((u64)1 << (irq_dirty)); ack_bcm1480_irq()
173 if (pending) { ack_bcm1480_irq()
181 __raw_writeq(pending, IOADDR(A_BCM1480_IMR_REGISTER(cpu_logical_map(i), ack_bcm1480_irq()
185 __raw_writeq(pending, IOADDR(A_BCM1480_IMR_REGISTER(0, R_BCM1480_IMR_LDT_INTERRUPT_CLR_H + (k*BCM1480_IMR_HL_SPACING)))); ack_bcm1480_irq()
348 unsigned int pending; plat_irq_dispatch() local
350 pending = read_c0_cause() & read_c0_status(); plat_irq_dispatch()
352 if (pending & CAUSEF_IP4) plat_irq_dispatch()
355 else if (pending & CAUSEF_IP3) plat_irq_dispatch()
359 else if (pending & CAUSEF_IP2) plat_irq_dispatch()
/linux-4.1.27/arch/mips/sibyte/sb1250/
H A Dirq.c144 u64 pending; ack_sb1250_irq() local
152 pending = __raw_readq(IOADDR(A_IMR_REGISTER(sb1250_irq_owner[irq], ack_sb1250_irq()
154 pending &= ((u64)1 << (irq)); ack_sb1250_irq()
155 if (pending) { ack_sb1250_irq()
168 __raw_writeq(pending, ack_sb1250_irq()
309 unsigned int pending; plat_irq_dispatch() local
321 pending = read_c0_cause() & read_c0_status() & ST0_IM; plat_irq_dispatch()
323 if (pending & CAUSEF_IP7) /* CPU performance counter interrupt */ plat_irq_dispatch()
325 else if (pending & CAUSEF_IP4) plat_irq_dispatch()
329 else if (pending & CAUSEF_IP3) plat_irq_dispatch()
333 else if (pending & CAUSEF_IP2) plat_irq_dispatch()
/linux-4.1.27/drivers/staging/ozwpan/
H A Dozproto.h24 /* Maximum number of uncompleted isoc frames that can be pending in network. */
27 /* Maximum number of uncompleted isoc frames that can be pending in Tx Queue. */
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/
H A Dpriv.h33 /* read and ack pending interrupts, returning only data
35 * performing the ack for anything that was pending.
/linux-4.1.27/arch/mips/ath25/
H A Dar2315.c74 u32 pending = ar2315_rst_reg_read(AR2315_ISR) & ar2315_misc_irq_handler() local
78 if (pending) { ar2315_misc_irq_handler()
81 nr = __ffs(pending); ar2315_misc_irq_handler()
133 u32 pending = read_c0_status() & read_c0_cause(); ar2315_irq_dispatch() local
135 if (pending & CAUSEF_IP3) ar2315_irq_dispatch()
138 else if (pending & CAUSEF_IP5) ar2315_irq_dispatch()
141 else if (pending & CAUSEF_IP2) ar2315_irq_dispatch()
143 else if (pending & CAUSEF_IP7) ar2315_irq_dispatch()
H A Dar5312.c78 u32 pending = ar5312_rst_reg_read(AR5312_ISR) & ar5312_misc_irq_handler() local
82 if (pending) { ar5312_misc_irq_handler()
85 nr = __ffs(pending); ar5312_misc_irq_handler()
130 u32 pending = read_c0_status() & read_c0_cause(); ar5312_irq_dispatch() local
132 if (pending & CAUSEF_IP2) ar5312_irq_dispatch()
134 else if (pending & CAUSEF_IP5) ar5312_irq_dispatch()
136 else if (pending & CAUSEF_IP6) ar5312_irq_dispatch()
138 else if (pending & CAUSEF_IP7) ar5312_irq_dispatch()
/linux-4.1.27/drivers/usb/serial/
H A Dio_16654.h87 #define ISR_INT_MDM_STATUS 0x00 // Modem status int pending
88 #define ISR_INT_NONE 0x01 // No interrupt pending
89 #define ISR_INT_TXRDY 0x02 // Tx ready int pending
90 #define ISR_INT_RXRDY 0x04 // Rx ready int pending
91 #define ISR_INT_LINE_STATUS 0x06 // Line status int pending
92 #define ISR_INT_RX_TIMEOUT 0x0C // Rx timeout int pending
93 #define ISR_INT_RX_XOFF 0x10 // Rx Xoff int pending
94 #define ISR_INT_RTS_CTS 0x20 // RTS/CTS change int pending
H A Dkobil_sct.h26 /* Kill the pending/current writes to the comm port. */
28 /* Kill the pending/current reads to the comm port. */
/linux-4.1.27/arch/s390/include/asm/
H A Dnmi.h25 __u32 w : 1; /* 08 warning pending */
26 __u32 cp : 1; /* 09 channel-report pending */
H A Dcrw.h45 #define CRW_ERC_EVENT 0x00 /* event information pending */
/linux-4.1.27/drivers/cdrom/
H A Dgdrom.c120 int pending; member in struct:gdrom_unit
256 gd.pending = 1; gdrom_preparedisk_cmd()
259 wait_event_interruptible_timeout(command_queue, gd.pending == 0, gdrom_preparedisk_cmd()
261 gd.pending = 0; gdrom_preparedisk_cmd()
293 if (gd.pending) { gdrom_readtoc_cmd()
297 gd.pending = 1; gdrom_readtoc_cmd()
299 wait_event_interruptible_timeout(command_queue, gd.pending == 0, gdrom_readtoc_cmd()
301 if (gd.pending) { gdrom_readtoc_cmd()
310 gd.pending = 0; gdrom_readtoc_cmd()
444 /* even if something is pending try to get gdrom_getsense()
446 if (gd.pending && !gdrom_wait_clrbusy()) { gdrom_getsense()
450 gd.pending = 1; gdrom_getsense()
452 wait_event_interruptible_timeout(command_queue, gd.pending == 0, gdrom_getsense()
454 if (gd.pending) gdrom_getsense()
472 gd.pending = 0; gdrom_getsense()
542 if (gd.pending != 1) gdrom_command_interrupt()
544 gd.pending = 0; gdrom_command_interrupt()
632 gd.pending = 1; gdrom_readdisk_dma()
636 /* Wait for any pending DMA to finish */ gdrom_readdisk_dma()
646 gd.pending = 0; gdrom_readdisk_dma()
/linux-4.1.27/drivers/atm/
H A Deni.h59 int rxing; /* number of pending PDUs */
61 int txing; /* number of pending TX bytes */
63 struct atm_vcc *next; /* next pending RX */
72 u32 events; /* pending events */
97 struct atm_vcc *fast,*last_fast;/* queues of VCCs with pending PDUs */
/linux-4.1.27/include/net/
H A Daf_vsock.h51 /* Used for pending list and accept queue during connection handshake.
53 * for connection requests are placed in the pending list until they
167 void vsock_release_pending(struct sock *pending);
168 void vsock_add_pending(struct sock *listener, struct sock *pending);
169 void vsock_remove_pending(struct sock *listener, struct sock *pending);
H A Dinet_connection_sock.h111 __u8 pending; /* ACK is pending */ member in struct:inet_connection_sock::__anon12661
174 inet_csk(sk)->icsk_ack.pending |= ICSK_ACK_SCHED; inet_csk_schedule_ack()
179 return inet_csk(sk)->icsk_ack.pending & ICSK_ACK_SCHED; inet_csk_ack_scheduled()
204 icsk->icsk_ack.blocked = icsk->icsk_ack.pending = 0; inet_csk_clear_xmit_timer()
239 icsk->icsk_ack.pending |= ICSK_ACK_TIMER; inet_csk_reset_xmit_timer()
H A Datmclip.h39 pending */
/linux-4.1.27/arch/mips/txx9/rbtx4927/
H A Dirq.c172 static int rbtx4927_irq_dispatch(int pending) rbtx4927_irq_dispatch() argument
176 if (pending & STATUSF_IP7) /* cpu timer */ rbtx4927_irq_dispatch()
178 else if (pending & STATUSF_IP2) { /* tx4927 pic */ rbtx4927_irq_dispatch()
182 } else if (pending & STATUSF_IP0) /* user line 0 */ rbtx4927_irq_dispatch()
184 else if (pending & STATUSF_IP1) /* user line 1 */ rbtx4927_irq_dispatch()
/linux-4.1.27/arch/avr32/mach-at32ap/
H A Dextint.c150 unsigned long status, pending; demux_eic_irq() local
154 pending = status & eic_readl(eic, IMR); demux_eic_irq()
156 while (pending) { demux_eic_irq()
157 i = fls(pending) - 1; demux_eic_irq()
158 pending &= ~(1 << i); demux_eic_irq()
/linux-4.1.27/net/vmw_vsock/
H A Dvmci_transport.c54 struct sock *pending,
474 struct sock *pending; vmci_transport_get_pending() local
485 pending = sk_vsock(vpending); vmci_transport_get_pending()
486 sock_hold(pending); vmci_transport_get_pending()
491 pending = NULL; vmci_transport_get_pending()
493 return pending; vmci_transport_get_pending()
497 static void vmci_transport_release_pending(struct sock *pending) vmci_transport_release_pending() argument
499 sock_put(pending); vmci_transport_release_pending()
926 /* Processing of pending connections for servers goes through vmci_transport_recv_pkt_work()
957 struct sock *pending; vmci_transport_recv_listen() local
968 * If it's the latter, we try to find a socket in our list of pending vmci_transport_recv_listen()
973 pending = vmci_transport_get_pending(sk, pkt); vmci_transport_recv_listen()
974 if (pending) { vmci_transport_recv_listen()
975 lock_sock(pending); vmci_transport_recv_listen()
978 vsock_sk(pending)->local_addr.svm_cid = pkt->dg.dst.context; vmci_transport_recv_listen()
980 switch (pending->sk_state) { vmci_transport_recv_listen()
983 pending, vmci_transport_recv_listen()
987 vmci_transport_send_reset(pending, pkt); vmci_transport_recv_listen()
992 vsock_remove_pending(sk, pending); vmci_transport_recv_listen()
994 release_sock(pending); vmci_transport_recv_listen()
995 vmci_transport_release_pending(pending); vmci_transport_recv_listen()
1024 pending = __vsock_create(sock_net(sk), NULL, sk, GFP_KERNEL, vmci_transport_recv_listen()
1026 if (!pending) { vmci_transport_recv_listen()
1031 vpending = vsock_sk(pending); vmci_transport_recv_listen()
1065 pending, &version, true)) vmci_transport_recv_listen()
1066 err = vmci_transport_send_negotiate(pending, qp_size); vmci_transport_recv_listen()
1089 pending, &active_proto_version, false)) vmci_transport_recv_listen()
1090 err = vmci_transport_send_negotiate2(pending, vmci_transport_recv_listen()
1103 sock_put(pending); vmci_transport_recv_listen()
1108 vsock_add_pending(sk, pending); vmci_transport_recv_listen()
1111 pending->sk_state = SS_CONNECTING; vmci_transport_recv_listen()
1116 vmci_trans(vpending)->notify_ops->process_request(pending); vmci_transport_recv_listen()
1129 sock_hold(pending); vmci_transport_recv_listen()
1139 struct sock *pending, vmci_transport_recv_connecting_server()
1151 vpending = vsock_sk(pending); vmci_transport_recv_connecting_server()
1157 vmci_transport_send_reset(pending, pkt); vmci_transport_recv_connecting_server()
1165 vmci_transport_send_reset(pending, pkt); vmci_transport_recv_connecting_server()
1184 pending, &detach_sub_id); vmci_transport_recv_connecting_server()
1186 vmci_transport_send_reset(pending, pkt); vmci_transport_recv_connecting_server()
1216 vmci_transport_send_reset(pending, pkt); vmci_transport_recv_connecting_server()
1226 * pending socket to the connected state before sending the attach vmci_transport_recv_connecting_server()
1230 * will find the listening socket instead of the (currently) pending vmci_transport_recv_connecting_server()
1237 * releasing the lock, so a pending slow path processing of an incoming vmci_transport_recv_connecting_server()
1240 pending->sk_state = SS_CONNECTED; vmci_transport_recv_connecting_server()
1245 err = vmci_transport_send_attach(pending, handle); vmci_transport_recv_connecting_server()
1249 vmci_transport_send_reset(pending, pkt); vmci_transport_recv_connecting_server()
1256 * listener's pending list to the accept queue so callers of accept() vmci_transport_recv_connecting_server()
1259 vsock_remove_pending(listener, pending); vmci_transport_recv_connecting_server()
1260 vsock_enqueue_accept(listener, pending); vmci_transport_recv_connecting_server()
1263 * the pending socket. vmci_transport_recv_connecting_server()
1270 pending->sk_err = skerr; vmci_transport_recv_connecting_server()
1271 pending->sk_state = SS_UNCONNECTED; vmci_transport_recv_connecting_server()
1275 * remove pending from the pending list upon our failure, the cleanup vmci_transport_recv_connecting_server()
1279 sock_put(pending); vmci_transport_recv_connecting_server()
1138 vmci_transport_recv_connecting_server(struct sock *listener, struct sock *pending, struct vmci_transport_packet *pkt) vmci_transport_recv_connecting_server() argument
/linux-4.1.27/drivers/net/ethernet/intel/i40evf/
H A Di40evf_virtchnl.c216 /* bail because we already have a command pending */ i40evf_configure_queues()
217 dev_err(&adapter->pdev->dev, "%s: command %d pending\n", i40evf_configure_queues()
270 /* bail because we already have a command pending */ i40evf_enable_queues()
271 dev_err(&adapter->pdev->dev, "%s: command %d pending\n", i40evf_enable_queues()
295 /* bail because we already have a command pending */ i40evf_disable_queues()
296 dev_err(&adapter->pdev->dev, "%s: command %d pending\n", i40evf_disable_queues()
323 /* bail because we already have a command pending */ i40evf_map_queues()
324 dev_err(&adapter->pdev->dev, "%s: command %d pending\n", i40evf_map_queues()
375 /* bail because we already have a command pending */ i40evf_add_ether_addrs()
376 dev_err(&adapter->pdev->dev, "%s: command %d pending\n", i40evf_add_ether_addrs()
435 /* bail because we already have a command pending */ i40evf_del_ether_addrs()
436 dev_err(&adapter->pdev->dev, "%s: command %d pending\n", i40evf_del_ether_addrs()
495 /* bail because we already have a command pending */ i40evf_add_vlans()
496 dev_err(&adapter->pdev->dev, "%s: command %d pending\n", i40evf_add_vlans()
554 /* bail because we already have a command pending */ i40evf_del_vlans()
555 dev_err(&adapter->pdev->dev, "%s: command %d pending\n", i40evf_del_vlans()
611 /* bail because we already have a command pending */ i40evf_set_promiscuous()
612 dev_err(&adapter->pdev->dev, "%s: command %d pending\n", i40evf_set_promiscuous()
/linux-4.1.27/drivers/mmc/core/
H A Dsdio_irq.c35 unsigned char pending; process_sdio_pending_irqs() local
49 ret = mmc_io_rw_direct(card, 0, 0, SDIO_CCCR_INTx, 0, &pending); process_sdio_pending_irqs()
56 if (pending && mmc_card_broken_irq_polling(card) && process_sdio_pending_irqs()
69 if (pending & (1 << i)) { process_sdio_pending_irqs()
72 pr_warn("%s: pending IRQ for non-existent function\n", process_sdio_pending_irqs()
79 pr_warn("%s: pending IRQ with no handler\n", process_sdio_pending_irqs()
113 * asynchronous notification of pending SDIO card interrupts sdio_irq_thread()
/linux-4.1.27/drivers/char/
H A Defirtc.c157 unsigned char enabled, pending; efi_rtc_ioctl() local
239 status = efi.get_wakeup_time((efi_bool_t *)&enabled, (efi_bool_t *)&pending, &eft); efi_rtc_ioctl()
248 || put_user(pending, &ewp->pending)) return -EFAULT; efi_rtc_ioctl()
304 efi_bool_t enabled, pending; efi_rtc_proc_show() local
314 efi.get_wakeup_time(&enabled, &pending, &alm); efi_rtc_proc_show()
343 pending == 1 ? "yes" : "no"); efi_rtc_proc_show()
/linux-4.1.27/drivers/acpi/acpica/
H A Devglock.c144 * release interrupt occurs. If there is actually a pending
157 * If a request for the global lock is not actually pending, acpi_ev_global_lock_handler()
260 * Did not get the lock. The pending bit was set above, and acpi_ev_acquire_global_lock()
302 u8 pending = FALSE; acpi_ev_release_global_lock() local
319 ACPI_RELEASE_GLOBAL_LOCK(acpi_gbl_FACS, pending); acpi_ev_release_global_lock()
322 * If the pending bit was set, we must write GBL_RLS to the control acpi_ev_release_global_lock()
325 if (pending) { acpi_ev_release_global_lock()
/linux-4.1.27/arch/mips/sgi-ip22/
H A Dip22-int.c222 * then we just return, if multiple IRQs are pending then we will just take
228 unsigned int pending = read_c0_status() & read_c0_cause(); plat_irq_dispatch() local
233 if (pending & CAUSEF_IP7) plat_irq_dispatch()
235 else if (pending & CAUSEF_IP2) plat_irq_dispatch()
237 else if (pending & CAUSEF_IP3) plat_irq_dispatch()
239 else if (pending & CAUSEF_IP6) plat_irq_dispatch()
241 else if (pending & (CAUSEF_IP4 | CAUSEF_IP5)) plat_irq_dispatch()
/linux-4.1.27/arch/powerpc/platforms/cell/
H A Dinterrupt.c61 /* Convert between "pending" bits and hw irq number */ iic_pending_to_hwnum()
144 /* Get an IRQ number from the pending state register of the IIC */ iic_get_irq()
147 struct cbe_iic_pending_bits pending; iic_get_irq() local
152 *(unsigned long *) &pending = iic_get_irq()
154 if (!(pending.flags & CBE_IIC_IRQ_VALID)) iic_get_irq()
156 virq = irq_linear_revmap(iic_host, iic_pending_to_hwnum(pending)); iic_get_irq()
159 iic->eoi_stack[++iic->eoi_ptr] = pending.prio; iic_get_irq()
366 /* Flush pending (make sure it triggers if there is setup_iic()
367 * anything pending setup_iic()
/linux-4.1.27/drivers/net/wireless/rt2x00/
H A Drt2x00mmio.h96 * Returns true if there are still rx frames pending and false if all
97 * pending rx frames were processed.
104 * @drop: True to drop all pending frames.
/linux-4.1.27/arch/mips/jz4740/
H A Dirq.c116 unsigned int pending = read_c0_status() & read_c0_cause() & ST0_IM; plat_irq_dispatch() local
117 if (pending & STATUSF_IP2) plat_irq_dispatch()
119 else if (pending & STATUSF_IP3) plat_irq_dispatch()
/linux-4.1.27/arch/mips/txx9/jmr3927/
H A Dirq.c83 static int jmr3927_irq_dispatch(int pending) jmr3927_irq_dispatch() argument
87 if ((pending & CAUSEF_IP7) == 0) jmr3927_irq_dispatch()
89 irq = (pending >> CAUSEB_IP2) & 0x0f; jmr3927_irq_dispatch()
/linux-4.1.27/arch/arm/kernel/
H A Dentry-v7m.S56 @ Check for any pending work if returning to user
66 beq 2f @ no work pending
88 @ execute the pending work, including reschedule
/linux-4.1.27/arch/sparc/include/asm/
H A Dobio.h90 #define CC_ICLR 0x1F00606 /* Clear pending Interrupts */
160 unsigned pending; cc_get_ipen() local
163 "=r" (pending) : cc_get_ipen()
166 return pending; cc_get_ipen()
/linux-4.1.27/arch/mips/ar7/
H A Dirq.c109 * Disable interrupts and clear pending ar7_irq_init()
171 unsigned int pending = read_c0_status() & read_c0_cause() & ST0_IM; plat_irq_dispatch() local
172 if (pending & STATUSF_IP7) /* cpu timer */ plat_irq_dispatch()
174 else if (pending & STATUSF_IP2) /* int0 hardware line */ plat_irq_dispatch()
/linux-4.1.27/arch/s390/kernel/vdso64/
H A Dclock_gettime.S37 tmll %r4,0x0001 /* pending update ? loop */
63 tmll %r4,0x0001 /* pending update ? loop */
73 tmll %r4,0x0001 /* pending update ? loop */
83 tmll %r4,0x0001 /* pending update ? loop */
H A Dgettimeofday.S30 tmll %r4,0x0001 /* pending update ? loop */
/linux-4.1.27/arch/cris/kernel/
H A Dptrace.c36 /* deal with pending signal delivery */ do_notify_resume()
/linux-4.1.27/arch/arm/mach-pxa/include/mach/
H A Dmtd-xip.h29 * to save power and to be woken up only when some interrupts are pending.
/linux-4.1.27/arch/arm/mach-imx/
H A Davic.c47 #define AVIC_NIPNDH 0x58 /* norm int pending high */
48 #define AVIC_NIPNDL 0x5C /* norm int pending low */
49 #define AVIC_FIPNDH 0x60 /* fast int pending high */
50 #define AVIC_FIPNDL 0x64 /* fast int pending low */
/linux-4.1.27/arch/arm/mach-lpc32xx/include/mach/
H A Dentry-macro.S30 * as set if an interrupt is pending.
/linux-4.1.27/drivers/net/ethernet/sgi/
H A Dmeth.h191 #define METH_INT_TX_EMPTY BIT(0) /* 0: No interrupt pending, 1: The TX ring buffer is empty */
192 #define METH_INT_TX_PKT BIT(1) /* 0: No interrupt pending */
194 #define METH_INT_TX_LINK_FAIL BIT(2) /* 0: No interrupt pending, 1: PHY has reported a link failure */
195 #define METH_INT_MEM_ERROR BIT(3) /* 0: No interrupt pending */
197 #define METH_INT_TX_ABORT BIT(4) /* 0: No interrupt pending, 1: The TX aborted operation, DMA stopped, FATAL */
198 #define METH_INT_RX_THRESHOLD BIT(5) /* 0: No interrupt pending, 1: Selected receive threshold condition Valid */
199 #define METH_INT_RX_UNDERFLOW BIT(6) /* 0: No interrupt pending, 1: FIFO was empty, packet could not be queued */
200 #define METH_INT_RX_OVERFLOW BIT(7) /* 0: No interrupt pending, 1: DMA FIFO Overflow, DMA stopped, FATAL */
/linux-4.1.27/drivers/net/ethernet/sun/
H A Dsunvnet.h14 /* length of time (or less) we expect pending descriptors to be marked
21 #define VNET_TX_WAKEUP_THRESH(dr) ((dr)->pending / 4)
/linux-4.1.27/arch/sparc/kernel/
H A Dirq.h29 u32 pending; member in struct:sun4m_irq_percpu
36 u32 pending; member in struct:sun4m_irq_global
H A Dsun4d_irq.c91 * 2) For each bus showing interrupt pending from #1, read the
93 * have interrupts pending for that SBUS interrupt level.
107 /* Loop for each pending SBI */ sun4d_sbus_handler_irq()
121 /* Loop for each pending SBI slot */ sun4d_sbus_handler_irq()
497 /* Get rid of pending irqs from PROM */ sun4d_init_sbi_irq()
500 printk(KERN_ERR "Clearing pending IRQs %08x on SBI %d\n", sun4d_init_sbi_irq()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
H A Dpriv.h71 /* read and ack pending interrupts, returning only data
73 * performing the ack for anything that was pending.
/linux-4.1.27/drivers/tty/serial/
H A Daltera_jtaguart.c147 unsigned int pending, count; altera_jtaguart_tx_chars() local
157 pending = uart_circ_chars_pending(xmit); altera_jtaguart_tx_chars()
158 if (pending > 0) { altera_jtaguart_tx_chars()
162 if (count > pending) altera_jtaguart_tx_chars()
163 count = pending; altera_jtaguart_tx_chars()
165 pending -= count; altera_jtaguart_tx_chars()
172 if (pending < WAKEUP_CHARS) altera_jtaguart_tx_chars()
177 if (pending == 0) { altera_jtaguart_tx_chars()
H A Datmel_serial.c179 unsigned int pending; member in struct:atmel_uart_port
1107 atmel_handle_receive(struct uart_port *port, unsigned int pending) atmel_handle_receive() argument
1119 if (pending & (ATMEL_US_ENDRX | ATMEL_US_TIMEOUT)) { atmel_handle_receive()
1125 if (pending & (ATMEL_US_RXBRK | ATMEL_US_OVRE | atmel_handle_receive()
1127 atmel_pdc_rxerr(port, pending); atmel_handle_receive()
1131 if (pending & ATMEL_US_TIMEOUT) { atmel_handle_receive()
1138 if (pending & ATMEL_US_RXRDY) atmel_handle_receive()
1140 else if (pending & ATMEL_US_RXBRK) { atmel_handle_receive()
1155 atmel_handle_transmit(struct uart_port *port, unsigned int pending) atmel_handle_transmit() argument
1159 if (pending & atmel_port->tx_done_mask) { atmel_handle_transmit()
1170 atmel_handle_status(struct uart_port *port, unsigned int pending, atmel_handle_status() argument
1175 if (pending & (ATMEL_US_RIIC | ATMEL_US_DSRIC | ATMEL_US_DCDIC atmel_handle_status()
1189 unsigned int status, pending, mask, pass_counter = 0; atmel_interrupt() local
1197 pending = status & mask; atmel_interrupt()
1203 pending |= ATMEL_US_CTSIC; atmel_interrupt()
1206 pending |= ATMEL_US_DSRIC; atmel_interrupt()
1209 pending |= ATMEL_US_RIIC; atmel_interrupt()
1212 pending |= ATMEL_US_DCDIC; atmel_interrupt()
1216 if (!pending) atmel_interrupt()
1220 atmel_port->pending |= pending; atmel_interrupt()
1227 atmel_handle_receive(port, pending); atmel_interrupt()
1228 atmel_handle_status(port, pending, status); atmel_interrupt()
1229 atmel_handle_transmit(port, pending); atmel_interrupt()
2561 if (atmel_port->pending) { atmel_serial_resume()
2562 atmel_handle_receive(port, atmel_port->pending); atmel_serial_resume()
2563 atmel_handle_status(port, atmel_port->pending, atmel_serial_resume()
2565 atmel_handle_transmit(port, atmel_port->pending); atmel_serial_resume()
2566 atmel_port->pending = 0; atmel_serial_resume()
/linux-4.1.27/arch/score/include/asm/
H A Dthread_info.h73 * - pending work-to-be-done flags are in LSW
77 #define TIF_SIGPENDING 1 /* signal pending */
/linux-4.1.27/arch/mips/sgi-ip32/
H A Dip32-irq.c30 /* issue a PIO read to make sure no PIO writes are pending */ flush_crime_bus()
419 unsigned int pending = read_c0_status() & read_c0_cause(); plat_irq_dispatch() local
421 if (likely(pending & IE_IRQ0)) plat_irq_dispatch()
423 else if (unlikely(pending & IE_IRQ1)) plat_irq_dispatch()
425 else if (unlikely(pending & IE_IRQ2)) plat_irq_dispatch()
427 else if (unlikely(pending & IE_IRQ3)) plat_irq_dispatch()
429 else if (unlikely(pending & IE_IRQ4)) plat_irq_dispatch()
431 else if (likely(pending & IE_IRQ5)) plat_irq_dispatch()
/linux-4.1.27/arch/c6x/include/asm/
H A Dthread_info.h83 * - pending work-to-be-done flags are in LSW
88 #define TIF_SIGPENDING 2 /* signal pending */
/linux-4.1.27/arch/cris/include/asm/
H A Dthread_info.h65 * - pending work-to-be-done flags are in LSW
70 #define TIF_SIGPENDING 2 /* signal pending */
/linux-4.1.27/arch/m68k/include/asm/
H A Dm54xxsim.h21 #define MCFINTC_IPRH 0x00 /* Interrupt pending 32-63 */
22 #define MCFINTC_IPRL 0x04 /* Interrupt pending 1-31 */
H A Dmac_oss.h66 __u16 irq_pending; /* [0x202-0x203] pending interrupts bits */
H A Dthread_info.h67 #define TIF_SIGPENDING 6 /* signal pending */
/linux-4.1.27/arch/arm/mach-pxa/
H A Dpcm990-baseboard.c289 unsigned long pending; pcm990_irq_handler() local
291 pending = ~pcm990_cpld_readb(PCM990_CTRL_INTSETCLR); pcm990_irq_handler()
292 pending &= pcm990_irq_enabled; pcm990_irq_handler()
297 if (likely(pending)) { pcm990_irq_handler()
298 irq = PCM027_IRQ(0) + __ffs(pending); pcm990_irq_handler()
301 pending = ~pcm990_cpld_readb(PCM990_CTRL_INTSETCLR); pcm990_irq_handler()
302 pending &= pcm990_irq_enabled; pcm990_irq_handler()
303 } while (pending); pcm990_irq_handler()
H A Dlpd270.c125 unsigned long pending; lpd270_irq_handler() local
127 pending = __raw_readw(LPD270_INT_STATUS) & lpd270_irq_enabled; lpd270_irq_handler()
131 if (likely(pending)) { lpd270_irq_handler()
132 irq = LPD270_IRQ(0) + __ffs(pending); lpd270_irq_handler()
135 pending = __raw_readw(LPD270_INT_STATUS) & lpd270_irq_handler()
138 } while (pending); lpd270_irq_handler()
H A Dpxa_cplds_irqs.c41 unsigned long pending; cplds_irq_handler() local
44 pending = readl(fpga->base + FPGA_IRQ_SET_CLR) & fpga->irq_mask; cplds_irq_handler()
45 for_each_set_bit(bit, &pending, CPLDS_NB_IRQ) cplds_irq_handler()
H A Dballoon3.c501 unsigned long pending = __raw_readl(BALLOON3_INT_CONTROL_REG) & balloon3_irq_handler() local
512 while (pending) { balloon3_irq_handler()
513 irq = BALLOON3_IRQ(0) + __ffs(pending); balloon3_irq_handler()
515 pending &= pending - 1; balloon3_irq_handler()
517 pending = __raw_readl(BALLOON3_INT_CONTROL_REG) & balloon3_irq_handler()
519 } while (pending); balloon3_irq_handler()
/linux-4.1.27/kernel/irq/
H A Dresend.c61 * active. Clear the pending bit so suspend/resume does not check_irq_resend()
93 /* Set it pending and activate the softirq: */ check_irq_resend()
/linux-4.1.27/sound/soc/txx9/
H A Dtxx9aclc.h39 #define ACDMA_AUDO 0x00000001 /* AUDODMA pending */
40 #define ACDMA_AUDI 0x00000010 /* AUDIDMA pending */
/linux-4.1.27/sound/soc/intel/common/
H A Dsst-ipc.h41 bool pending; member in struct:ipc_message
69 bool pending; member in struct:sst_generic_ipc
/linux-4.1.27/arch/mips/pci/
H A Dpci-ar71xx.c233 u32 pending; ar71xx_pci_irq_handler() local
237 pending = __raw_readl(base + AR71XX_RESET_REG_PCI_INT_STATUS) & ar71xx_pci_irq_handler()
240 if (pending & AR71XX_PCI_INT_DEV0) ar71xx_pci_irq_handler()
243 else if (pending & AR71XX_PCI_INT_DEV1) ar71xx_pci_irq_handler()
246 else if (pending & AR71XX_PCI_INT_DEV2) ar71xx_pci_irq_handler()
249 else if (pending & AR71XX_PCI_INT_CORE) ar71xx_pci_irq_handler()
H A Dpci-rt3883.c135 u32 pending; rt3883_pci_irq_handler() local
139 pending = rt3883_pci_r32(rpc, RT3883_PCI_REG_PCIINT) & rt3883_pci_irq_handler()
142 if (!pending) { rt3883_pci_irq_handler()
147 while (pending) { rt3883_pci_irq_handler()
148 unsigned bit = __ffs(pending); rt3883_pci_irq_handler()
153 pending &= ~BIT(bit); rt3883_pci_irq_handler()
/linux-4.1.27/arch/arc/kernel/
H A Dsmp.c230 * Only do so if there's no pending msg from other concurrent sender(s). ipi_send_msg_one()
307 unsigned long pending; do_IPI() local
319 pending = xchg(this_cpu_ptr(&ipi_data), 0); do_IPI()
322 unsigned long msg = __ffs(pending); do_IPI()
324 pending &= ~(1U << msg); do_IPI()
325 } while (pending); do_IPI()
/linux-4.1.27/drivers/gpio/
H A Dgpio-adnp.c230 const char *pending = ""; adnp_gpio_dbg_show() local
242 pending = "pending"; adnp_gpio_dbg_show()
245 direction, level, interrupt, pending); adnp_gpio_dbg_show()
290 unsigned long pending; adnp_irq() local
319 pending = changed & ((adnp->irq_fall[i] & ~level) | adnp_irq()
323 pending |= (adnp->irq_high[i] & level) | adnp_irq()
326 /* mask out non-pending and disabled interrupts */ adnp_irq()
327 pending &= isr & ier; adnp_irq()
329 for_each_set_bit(bit, &pending, 8) { adnp_irq()
H A Dgpio-crystalcove.c75 * @update: pending IRQ setting update, to be written to the chip upon unlock.
265 int pending; crystalcove_gpio_irq_handler() local
276 pending = p0 | p1 << 8; crystalcove_gpio_irq_handler()
279 if (pending & BIT(gpio)) { crystalcove_gpio_irq_handler()
314 irq & BIT(offset) ? "pending" : " "); crystalcove_gpio_dbg_show()
H A Dgpio-msic.c244 unsigned long pending = 0; msic_gpio_irq_handler() local
248 pending = pin; msic_gpio_irq_handler()
250 if (pending) { msic_gpio_irq_handler()
251 for_each_set_bit(bitnr, &pending, BITS_PER_BYTE) msic_gpio_irq_handler()
H A Dgpio-max732x.c446 uint8_t pending; max732x_irq_pending() local
465 pending = (old_stat & chip->irq_trig_fall) | max732x_irq_pending()
467 pending &= trigger; max732x_irq_pending()
469 return pending; max732x_irq_pending()
475 uint8_t pending; max732x_irq_handler() local
478 pending = max732x_irq_pending(chip); max732x_irq_handler()
480 if (!pending) max732x_irq_handler()
484 level = __ffs(pending); max732x_irq_handler()
488 pending &= ~(1 << level); max732x_irq_handler()
489 } while (pending); max732x_irq_handler()
/linux-4.1.27/drivers/gpu/drm/msm/mdp/mdp4/
H A Dmdp4_crtc.c51 /* if there is a pending flip, these will be non-null: */
56 atomic_t pending; member in struct:mdp4_crtc
72 static void request_pending(struct drm_crtc *crtc, uint32_t pending) request_pending() argument
76 atomic_or(pending, &mdp4_crtc->pending); request_pending()
516 unsigned pending; mdp4_crtc_vblank_irq() local
520 pending = atomic_xchg(&mdp4_crtc->pending, 0); mdp4_crtc_vblank_irq()
522 if (pending & PENDING_FLIP) { mdp4_crtc_vblank_irq()
526 if (pending & PENDING_CURSOR) { mdp4_crtc_vblank_irq()
/linux-4.1.27/arch/mips/include/asm/octeon/
H A Dcvmx-pow.h297 * If set, return current status rather than pending
503 /* Set when there is a pending non-NULL SWTAG or
510 * Set when there is a pending NULL SWTAG, or an
514 /* Set when there is a pending DESCHED or SWTAG_DESCHED. */
517 * Set when there is a pending SWTAG_DESCHED and
523 /* Set when there is a pending GET_WORK. */
530 /* Set when there is a pending NULL_RD. */
532 /* Set when there is a pending CLR_NSCHED. */
581 * Set when there is a pending non-NULL SWTAG or
589 * Set when there is a pending NULL SWTAG, or an
594 * Set when there is a pending DESCHED or
599 * Set when there is a pending SWTAG_DESCHED and
605 /* Set when there is a pending GET_WORK. */
612 /* Set when there is a pending NULL_RD. */
614 /* Set when there is a pending CLR_NSCHED. */
898 /* There is a pending tag switch */
1173 * NOTE: The following is the behavior of the pending switch bit at the PP
1175 * - did<2:0> == 0 => pending switch bit is set
1176 * - did<2:0> == 1 => no affect on the pending switch bit
1177 * - did<2:0> == 3 => pending switch bit is cleared
1178 * - did<2:0> == 7 => no affect on the pending switch bit
1180 * - No other loads/stores have an affect on the pending switch bit
1181 * - The switch bus from POW can clear the pending switch bit
1254 * If a tag switch is pending this routine returns the tag before
1307 * Print a warning if a tag switch is pending for this core
1309 * @function: Function name checking for a pending tag switch
1343 * so the caller must ensure that there is not a pending tag switch.
1390 /* Must not have a switch pending when requesting work */ cvmx_pow_work_request_sync()
1411 /* Must not have a switch pending when requesting work */ cvmx_pow_work_request_null_rd()
1429 * there is not a pending tag switch.
1473 /* Must not have a switch pending when requesting work */ cvmx_pow_work_request_async()
1522 * be used for switches to NULL, as the tag switch pending bit will be
1586 * be used for switches to NULL, as the tag switch pending bit will be
1613 * Ensure that there is not a pending tag switch, as a tag cvmx_pow_tag_sw()
1615 * pending. cvmx_pow_tag_sw()
1627 * be used for switches to NULL, as the tag switch pending bit will be
1701 * be used for switches to NULL, as the tag switch pending bit will be
1706 * This function waits for any pending tag switches to complete
1723 * Ensure that there is not a pending tag switch, as a tag cvmx_pow_tag_sw_full()
1725 * pending. cvmx_pow_tag_sw_full()
1774 * This function waits for any pending tag switches to complete
1783 * Ensure that there is not a pending tag switch, as a tag cvmx_pow_tag_sw_null()
1785 * pending. cvmx_pow_tag_sw_null()
1921 * - If there are no switches pending at the time that the
1930 * - If there is a pending switch to ORDERED at the time
1940 * Note that since there are never any tag switches pending
1987 * since TAG3 is used, this store will clear the local pending cvmx_pow_tag_sw_desched_nocheck()
1999 * calling code may call this function with a pending tag switch.
2004 * - If there are no switches pending at the time that the
2013 * - If there is a pending switch to ORDERED at the time
2023 * Note that since there are never any tag switches pending
2044 * Ensure that there is not a pending tag switch, as a tag cvmx_pow_tag_sw_desched()
2046 * pending. cvmx_pow_tag_sw_desched()
2087 * since TAG3 is used, this store will clear the local pending cvmx_pow_desched()
H A Dcvmx-mdio.h318 } while (smi_rd.s.pending && timeout--); cvmx_mdio_read()
361 } while (smi_wr.s.pending && --timeout); cvmx_mdio_write()
407 } while (smi_wr.s.pending && --timeout); cvmx_mdio_45_read()
424 } while (smi_rd.s.pending && --timeout); cvmx_mdio_45_read()
482 } while (smi_wr.s.pending && --timeout); cvmx_mdio_45_write()
499 } while (smi_wr.s.pending && --timeout); cvmx_mdio_45_write()
H A Dcvmx-smix-defs.h299 uint64_t pending:1; member in struct:cvmx_smix_rd_dat::cvmx_smix_rd_dat_s
305 uint64_t pending:1;
334 uint64_t pending:1; member in struct:cvmx_smix_wr_dat::cvmx_smix_wr_dat_s
340 uint64_t pending:1;
/linux-4.1.27/drivers/isdn/mISDN/
H A Dtimerdev.c36 struct list_head pending; member in struct:mISDNtimerdev
61 INIT_LIST_HEAD(&dev->pending); mISDN_open()
74 struct list_head *list = &dev->pending; mISDN_close()
195 list_add_tail(&timer->list, &dev->pending); misdn_add_timer()
209 list_for_each_entry(timer, &dev->pending, list) { misdn_del_timer()
/linux-4.1.27/arch/mips/dec/
H A Dint-handler.S42 * and moving across all the pending IRQ bits in the cause
44 * pending IRQ so optimize in that direction.
121 * then we just return. If multiple IRQs are pending then we will
129 * Get pending Interrupts
131 mfc0 t0,CP0_CAUSE # get pending interrupts
/linux-4.1.27/arch/mips/emma/markeins/
H A Dirq.c295 unsigned int pending = read_c0_status() & read_c0_cause() & ST0_IM; plat_irq_dispatch() local
297 if (pending & STATUSF_IP7) plat_irq_dispatch()
299 else if (pending & STATUSF_IP2) plat_irq_dispatch()
301 else if (pending & STATUSF_IP1) plat_irq_dispatch()
303 else if (pending & STATUSF_IP0) plat_irq_dispatch()
/linux-4.1.27/drivers/isdn/hisax/
H A Dbkm_ax.h68 #define guestADI1_INT_S 0x20000000 /* ADI #1 int pending (low) */
69 #define guestADI2_INT_S 0x40000000 /* ADI #2 int pending (low) */
70 #define guestISDN_INT_S 0x80000000 /* ISAC int pending (low) */
/linux-4.1.27/drivers/misc/vmw_vmci/
H A Dvmci_context.h78 /* Doorbells pending for context. */
109 * VMCINotificationReceiveInfo: Used to recieve pending notifications
143 int vmci_ctx_pending_datagrams(u32 cid, u32 *pending);
H A Dvmci_datagram.h29 * content is accessed while holding a spinlock. The pending datagram
/linux-4.1.27/drivers/net/phy/
H A Dmdio-octeon.c86 } while (smi_wr.s.pending && --timeout); octeon_mdiobus_c45_addr()
125 } while (smi_rd.s.pending && --timeout); octeon_mdiobus_read()
170 } while (smi_wr.s.pending && --timeout); octeon_mdiobus_write()
/linux-4.1.27/drivers/rtc/
H A Drtc-sh.c107 unsigned int tmp, pending; __sh_rtc_interrupt() local
110 pending = tmp & RCR1_CF; __sh_rtc_interrupt()
115 if (pending && rtc->periodic_freq & PF_OXS) __sh_rtc_interrupt()
118 return pending; __sh_rtc_interrupt()
123 unsigned int tmp, pending; __sh_rtc_alarm() local
126 pending = tmp & RCR1_AF; __sh_rtc_alarm()
130 if (pending) __sh_rtc_alarm()
133 return pending; __sh_rtc_alarm()
140 unsigned int tmp, pending; __sh_rtc_periodic() local
143 pending = tmp & RCR2_PEF; __sh_rtc_periodic()
147 if (!pending) __sh_rtc_periodic()
166 return pending; __sh_rtc_periodic()
H A Drtc-pcf8563.c174 char pending; pcf8563_irq() local
176 err = pcf8563_get_alarm_mode(pcf8563->client, NULL, &pending); pcf8563_irq()
180 if (pending) { pcf8563_irq()
349 err = pcf8563_get_alarm_mode(client, &tm->enabled, &tm->pending); pcf8563_rtc_read_alarm()
354 " enabled=%d, pending=%d\n", __func__, tm->time.tm_min, pcf8563_rtc_read_alarm()
356 tm->enabled, tm->pending); pcf8563_rtc_read_alarm()
376 "enabled=%d pending=%d\n", __func__, pcf8563_rtc_set_alarm()
378 tm->time.tm_mday, tm->enabled, tm->pending); pcf8563_rtc_set_alarm()
H A Drtc-mc13xxx.c162 int enabled, pending; mc13xxx_rtc_read_alarm() local
180 &enabled, &pending); mc13xxx_rtc_read_alarm()
189 alarm->pending = pending; mc13xxx_rtc_read_alarm()
/linux-4.1.27/drivers/tty/
H A Dmxser.h110 /* GDA interrupt pending */
116 /* received Xon/Xoff or specical interrupt pending */
119 /* RTS/CTS change state interrupt pending */
/linux-4.1.27/include/xen/
H A Devents.h72 /* Clear an irq's pending state, in preparation for polling on it */
77 /* Poll waiting for an irq to become pending. In the usual case, the
81 /* Poll waiting for an irq to become pending with a timeout. In the usual case,
/linux-4.1.27/drivers/net/wireless/ath/ath5k/
H A Ddma.c184 * have any pending frames. Returns -EBUSY if we still have pending frames,
191 u32 tx_queue, pending; ath5k_hw_stop_tx_dma() local
226 * flush any pending frames from QCU ath5k_hw_stop_tx_dma()
246 /* Check for pending frames */ ath5k_hw_stop_tx_dma()
249 pending = ath5k_hw_reg_read(ah, ath5k_hw_stop_tx_dma()
253 } while (--i && pending); ath5k_hw_stop_tx_dma()
258 pending) { ath5k_hw_stop_tx_dma()
282 /* Re-check for pending frames */ ath5k_hw_stop_tx_dma()
285 pending = ath5k_hw_reg_read(ah, ath5k_hw_stop_tx_dma()
289 } while (--i && pending); ath5k_hw_stop_tx_dma()
294 if (pending) ath5k_hw_stop_tx_dma()
308 if (pending) { ath5k_hw_stop_tx_dma()
311 queue, pending); ath5k_hw_stop_tx_dma()
499 * ath5k_hw_is_intr_pending() - Check if we have pending interrupts
502 * Check if we have pending interrupts to process. Returns 1 if we
503 * have pending interrupts and 0 if we haven't.
909 /* Clear any pending interrupts ath5k_hw_dma_stop()
/linux-4.1.27/drivers/scsi/
H A Dsun3_scsi.h83 #define CSR_SDB_INT 0x200 /* sbc interrupt pending */
84 #define CSR_DMA_INT 0x100 /* dma interrupt pending */
H A Dqlogicpti.h406 #define SBUS_STAT_DINT 0x0020 /* Data DVMA IRQ pending */
407 #define SBUS_STAT_CINT 0x0010 /* Command DVMA IRQ pending */
408 #define SBUS_STAT_SINT 0x0008 /* SCSI Processor IRQ pending */
409 #define SBUS_STAT_RINT 0x0004 /* RISC Processor IRQ pending */
410 #define SBUS_STAT_GINT 0x0002 /* Global IRQ pending */
476 #define RISC_PSR_IPEND 0x0002 /* Interrupt pending */
496 #define HCCTRL_HIRQ 0x0080 /* Host IRQ pending */
/linux-4.1.27/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_kernel_queue.h42 * pending write pointer to that location so subsequent calls to
51 * packet for some reason. It just overwrites the pending wptr with the current
/linux-4.1.27/arch/xtensa/include/asm/
H A Dthread_info.h104 * - pending work-to-be-done flags are in LSW
108 #define TIF_SIGPENDING 1 /* signal pending */
/linux-4.1.27/block/
H A Dblk-flush.c33 * completes, all the requests which were pending are proceeded to the next
88 * If flush has been pending longer than the following timeout,
170 struct list_head *pending = &fq->flush_queue[fq->flush_pending_idx]; blk_flush_complete_seq() local
185 if (list_empty(pending)) blk_flush_complete_seq()
187 list_move_tail(&rq->flush.list, pending); blk_flush_complete_seq()
286 struct list_head *pending = &fq->flush_queue[fq->flush_pending_idx]; blk_kick_flush() local
288 list_first_entry(pending, struct request, flush.list); blk_kick_flush()
292 if (fq->flush_pending_idx != fq->flush_running_idx || list_empty(pending)) blk_kick_flush()
/linux-4.1.27/drivers/gpu/drm/nouveau/
H A Dnouveau_fence.c96 while (!list_empty(&fctx->pending)) { nouveau_fence_context_del()
97 fence = list_entry(fctx->pending.next, typeof(*fence), head); nouveau_fence_context_del()
133 while (!list_empty(&fctx->pending)) { nouveau_fence_update()
134 fence = list_entry(fctx->pending.next, typeof(*fence), head); nouveau_fence_update()
154 if (!list_empty(&fctx->pending)) { nouveau_fence_wait_uevent_handler()
158 fence = list_entry(fctx->pending.next, typeof(*fence), head); nouveau_fence_wait_uevent_handler()
176 INIT_LIST_HEAD(&fctx->pending); nouveau_fence_context_new()
285 list_add_tail(&fence->head, &fctx->pending); nouveau_fence_emit()
/linux-4.1.27/arch/metag/include/asm/
H A Dthread_info.h102 * - pending work-to-be-done flags are in LSW
106 #define TIF_SIGPENDING 1 /* signal pending */
/linux-4.1.27/include/net/iucv/
H A Daf_iucv.h87 /* transfer pending queue full */
91 /* transmission of skb is pending - may interleave
/linux-4.1.27/include/linux/mtd/
H A Dxip.h42 * return non zero when any hardware interrupt is pending.
86 * to save power and to be woken up only when some interrupts are pending.
/linux-4.1.27/include/xen/interface/
H A Dsched.h38 * reenable event delivery and check for pending events before blocking the
55 * Poll a set of event-channel ports. Return when one or more are pending. An
/linux-4.1.27/arch/mips/include/asm/sn/sn0/
H A Dhubpi.h70 #define PI_INT_PEND_MOD 0x000090 /* Write to set pending ints */
71 #define PI_INT_PEND0 0x000098 /* Read to get pending ints */
72 #define PI_INT_PEND1 0x0000a0 /* Read to get pending ints */
96 #define PI_RT_PEND_A 0x000120 /* Set if RT int for A pending */
97 #define PI_RT_PEND_B 0x000128 /* Set if RT int for B pending */
98 #define PI_PROF_PEND_A 0x000130 /* Set if Prof int for A pending */
99 #define PI_PROF_PEND_B 0x000138 /* Set if Prof int for B pending */
374 /* Interrupt pending bits on R10000 */
/linux-4.1.27/arch/nios2/include/asm/
H A Dthread_info.h82 * - pending work-to-be-done flags are in LSW
87 #define TIF_SIGPENDING 2 /* signal pending */
/linux-4.1.27/arch/openrisc/include/asm/
H A Dthread_info.h97 * - pending work-to-be-done flags are in LSW
102 #define TIF_SIGPENDING 2 /* signal pending */
/linux-4.1.27/arch/frv/include/asm/
H A Dthread_info.h80 * - pending work-to-be-done flags are in LSW
85 #define TIF_SIGPENDING 2 /* signal pending */
/linux-4.1.27/arch/hexagon/include/asm/
H A Dthread_info.h104 * - pending work-to-be-done flags are in LSW
110 #define TIF_SIGPENDING 2 /* signal pending */
/linux-4.1.27/arch/m32r/include/asm/
H A Dthread_info.h95 * - pending work-to-be-done flags are in LSW
99 #define TIF_SIGPENDING 1 /* signal pending */
/linux-4.1.27/arch/alpha/include/asm/
H A Dthread_info.h57 * - pending work-to-be-done flags come first and must be assigned to be
64 #define TIF_SIGPENDING 2 /* signal pending */
/linux-4.1.27/arch/arc/include/asm/
H A Dthread_info.h79 * - pending work-to-be-done flags are in LSW
84 #define TIF_SIGPENDING 2 /* signal pending */
/linux-4.1.27/virt/kvm/arm/
H A Dvgic.c42 * something is pending on the CPU interface.
43 * - Interrupts that are pending on the distributor are stored on the
74 * - Note that level-triggered interrupts can also be set to pending from
486 /* Mark both level and edge triggered irqs as pending */ vgic_handle_set_pending_reg()
492 /* Set the soft-pending flag only for level-triggered irqs */ vgic_handle_set_pending_reg()
536 /* Clear soft-pending flags */ vgic_handle_clear_pending_reg()
653 * vgic_unqueue_irqs - move pending/active IRQs from LRs to the distributor
671 * 01: pending vgic_unqueue_irqs()
673 * 11: pending and active vgic_unqueue_irqs()
677 /* Reestablish SGI source for pending and active IRQs */ vgic_unqueue_irqs()
682 * If the LR holds an active (10) or a pending and active (11) vgic_unqueue_irqs()
692 * Reestablish the pending state on the distributor and the vgic_unqueue_irqs()
693 * CPU interface. It may have already been pending, but that vgic_unqueue_irqs()
953 unsigned long *pending, *enabled, *pend_percpu, *pend_shared; compute_pending_for_cpu() local
962 pending = vgic_bitmap_get_cpu_map(&dist->irq_pending, vcpu_id); compute_pending_for_cpu()
964 bitmap_and(pend_percpu, pending, enabled, VGIC_NR_PRIVATE_IRQS); compute_pending_for_cpu()
966 pending = vgic_bitmap_get_shared_map(&dist->irq_pending); compute_pending_for_cpu()
968 bitmap_and(pend_shared, pending, enabled, nr_shared); compute_pending_for_cpu()
980 * Update the interrupt state and determine which CPUs have pending
1080 * An interrupt may have been disabled after being made pending on the
1114 kvm_debug("Set pending: 0x%x\n", vlr.state); vgic_queue_irq_to_lr()
1194 * Fill the list registers with pending interrupts before running the
1216 * We may not have any pending interrupt, or the interrupts __kvm_vgic_flush_hwstate()
1252 * us. Claim we don't have anything pending. We'll
1289 * therefore assume we can clear the soft pending vgic_process_maintenance()
1292 * Note: if the IRQ soft pending state was set after vgic_process_maintenance()
1295 * we start trapping ACKs when the soft-pending state vgic_process_maintenance()
1311 /* Any additional pending interrupt? */ vgic_process_maintenance()
1336 * pending signals and vmid rollovers), then make sure we don't pick vgic_process_maintenance()
1351 int lr, pending; __kvm_vgic_sync_hwstate() local
1372 pending = find_first_zero_bit(elrsr_ptr, vgic->nr_lr); __kvm_vgic_sync_hwstate()
1373 if (level_pending || pending < vgic->nr_lr) __kvm_vgic_sync_hwstate()
/linux-4.1.27/include/linux/ceph/
H A Dmon_client.h34 /* a pending monitor request */
74 /* pending generic requests */
/linux-4.1.27/drivers/net/can/softing/
H A Dsofting_main.c80 (card->tx.pending >= TXMAX) || softing_netdev_start_xmit()
81 (priv->tx.pending >= TX_ECHO_SKB_MAX)) softing_netdev_start_xmit()
116 ++card->tx.pending; softing_netdev_start_xmit()
117 ++priv->tx.pending; softing_netdev_start_xmit()
126 if (card->tx.pending >= TXMAX) { softing_netdev_start_xmit()
302 if (priv->tx.pending) softing_handle_1()
303 --priv->tx.pending; softing_handle_1()
304 if (card->tx.pending) softing_handle_1()
305 --card->tx.pending; softing_handle_1()
346 if (card->tx.pending >= TXMAX) softing_irq_thread()
355 if (priv->tx.pending >= TX_ECHO_SKB_MAX) softing_irq_thread()
/linux-4.1.27/drivers/isdn/gigaset/
H A Dbas-gigaset.c118 int pending; /* uncompleted base request */ member in struct:bas_cardstate
207 return "URB still pending"; get_usb_statmsg()
371 * check for completion of pending control request
380 switch (ucs->pending) { check_pending()
385 ucs->pending = 0; check_pending()
389 ucs->pending = 0; check_pending()
393 ucs->pending = 0; check_pending()
397 ucs->pending = 0; check_pending()
401 ucs->pending = 0; check_pending()
405 ucs->pending = 0; check_pending()
408 ucs->pending = 0; check_pending()
412 ucs->pending = 0; check_pending()
420 "unknown pending request 0x%02x cleared\n", check_pending()
421 ucs->pending); check_pending()
422 ucs->pending = 0; check_pending()
425 if (!ucs->pending) check_pending()
510 case -EINPROGRESS: /* pending */ read_ctrl_callback()
548 * -EBUSY if another request is pending
691 case -EINPROGRESS: /* pending */ read_int_callback()
1448 int pending; req_timeout() local
1454 pending = ucs->pending; req_timeout()
1455 ucs->pending = 0; req_timeout()
1458 switch (pending) { req_timeout()
1459 case 0: /* no pending request */ req_timeout()
1460 gig_dbg(DEBUG_USBREQ, "%s: no request pending", __func__); req_timeout()
1502 pending); req_timeout()
1526 switch (ucs->pending) { write_ctrl_callback()
1529 ucs->pending = 0; write_ctrl_callback()
1537 case -EINPROGRESS: /* pending */ write_ctrl_callback()
1572 /* failed, clear pending request */ write_ctrl_callback()
1575 ucs->pending = 0; write_ctrl_callback()
1590 * -EBUSY if another request is pending
1602 if (ucs->pending) { req_submit()
1606 "request 0x%02x still pending\n", req_submit()
1607 req, ucs->pending); req_submit()
1628 ucs->pending = req; req_submit()
1790 case -EINPROGRESS: /* pending */ write_command_callback()
1860 * -EBUSY if another request is pending
1991 * The subsequent AT channel close then discards any pending gigaset_write_cmd()
2221 ucs->pending = 0; gigaset_initcshw()
2498 wait_event_timeout(ucs->waitqueue, !ucs->pending, gigaset_suspend()
2503 /* kill all URBs and delayed work that might still be pending */ gigaset_suspend()
/linux-4.1.27/drivers/media/pci/cx23885/
H A Dcx23885-av.c33 then probbaly flatiron does have pending interrupts. cx23885_av_work_handler()
/linux-4.1.27/drivers/net/wireless/libertas/
H A Dif_usb.h55 /* bootcmdresp == 0 means command is pending
/linux-4.1.27/drivers/parisc/
H A Dgsc.h15 #define OFFSET_IPR 0x0008 /* Interrupt pending register */
/linux-4.1.27/drivers/clocksource/
H A Dtimer-atmel-st.c114 /* Disable and flush pending timer interrupts */ clkevt32k_mode()
161 /* Cancel any pending alarm; flush any pending IRQ */ clkevt32k_next_event()
192 /* Disable all timer interrupts, and clear any pending ones */ atmel_st_timer_init()
/linux-4.1.27/arch/tile/include/hv/
H A Ddrv_srom_intf.h32 /** Write this offset to flush any pending writes. */
/linux-4.1.27/arch/um/drivers/
H A Dport_kern.c26 struct list_head pending; member in struct:port_list
113 list_add(&conn->list, &port->pending); port_accept()
197 .pending = LIST_HEAD_INIT(port->pending), port_data()
/linux-4.1.27/arch/um/include/asm/
H A Dthread_info.h58 #define TIF_SIGPENDING 1 /* signal pending */
/linux-4.1.27/drivers/gpu/drm/msm/
H A Dmsm_atomic.c32 /* block until specified crtcs are no longer pending update, and
33 * atomically mark them as pending update
51 /* clear specified crtcs (no longer pending update)
218 * Wait for pending updates on any of the same crtc's and then msm_atomic_commit()
/linux-4.1.27/arch/mips/include/asm/netlogic/xlr/
H A Dfmn.h283 * Make sure that all the writes pending at the cpu are flushed. nlm_fmn_send()
284 * Any writes pending on CPU will not be see by devices. L1/L2 nlm_fmn_send()
305 pr_info("Send pending fail!\n"); nlm_fmn_send()
321 /* wait for load pending to clear */ nlm_fmn_receive()
/linux-4.1.27/drivers/gpu/drm/sti/
H A Dsti_mixer.h25 * @pending_event: set if a flip event is pending on crtc
/linux-4.1.27/fs/squashfs/
H A Dsquashfs_fs_sb.h47 int pending; member in struct:squashfs_cache_entry
/linux-4.1.27/include/uapi/asm-generic/
H A Dresource.h42 #define RLIMIT_SIGPENDING 11 /* max number of pending signals */
/linux-4.1.27/arch/powerpc/sysdev/
H A Dipic.h50 u8 ack; /* pending register offset from base if the irq
/linux-4.1.27/arch/s390/include/uapi/asm/
H A Dcmb.h13 * @function_pending_time: time of function pending
/linux-4.1.27/arch/s390/kernel/
H A Dvtime.c154 * In s390, accounting pending user time also implies
337 * returns whether it has modified a pending timer (1) or not (0)
346 * returns whether it has modified a pending timer (1) or not (0)
357 * returns whether the deleted timer was pending (1) or not (0)
/linux-4.1.27/arch/mips/include/uapi/asm/
H A Dtermbits.h203 #define PENDIN 0040000 /* Retype pending input (state). */
220 #define TCIOFLUSH 2 /* Discard all pending data. */
224 #define TCSADRAIN TCSETSW /* Change when pending output is written. */
225 #define TCSAFLUSH TCSETSF /* Flush pending input before changing. */
/linux-4.1.27/arch/parisc/include/asm/
H A Dthread_info.h47 #define TIF_SIGPENDING 1 /* signal pending */
/linux-4.1.27/arch/m68k/sun3x/
H A Dtime.c84 /* Clear the pending interrupt - pulse the enable line low */
/linux-4.1.27/arch/arm/mach-omap1/include/mach/
H A Dmtd-xip.h55 * to save power and to be woken up only when some interrupts are pending.
/linux-4.1.27/arch/alpha/kernel/
H A Dirq_pyxis.c99 /* Send -INTA pulses to clear any pending interrupts ...*/ init_pyxis_irqs()
/linux-4.1.27/net/netlink/
H A Daf_netlink.h22 atomic_t pending; member in struct:netlink_ring
/linux-4.1.27/sound/pci/hda/
H A Dhda_intel.h25 /* for pending irqs */
/linux-4.1.27/drivers/net/wireless/cw1200/
H A Dqueue.c179 INIT_LIST_HEAD(&queue->pending); cw1200_queue_init()
212 list_splice_tail_init(&queue->queue, &queue->pending); cw1200_queue_clear()
213 list_for_each_entry_safe(item, tmp, &queue->pending, head) { cw1200_queue_clear()
357 list_move_tail(&item->head, &queue->pending); cw1200_queue_get()
422 list_for_each_entry_safe_reverse(item, tmp, &queue->pending, head) { cw1200_queue_requeue_all()
546 ret = !list_empty(&queue->pending); cw1200_queue_get_xmit_timestamp()
548 list_for_each_entry(item, &queue->pending, head) { cw1200_queue_get_xmit_timestamp()

Completed in 10001 milliseconds

1234567891011>>