Home
last modified time | relevance | path

Searched refs:pend (Results 1 – 25 of 36) sorted by relevance

12

/drivers/net/can/c_can/
Dc_can_main.c727 u32 idx, obj, pkts = 0, bytes = 0, pend; in c_can_do_tx() local
731 pend = priv->read_reg32(priv, C_CAN_INTPND3_REG); in c_can_do_tx()
733 pend = priv->read_reg(priv, C_CAN_INTPND2_REG); in c_can_do_tx()
735 while ((idx = ffs(pend))) { in c_can_do_tx()
737 pend &= ~BIT(idx); in c_can_do_tx()
782 static u32 c_can_adjust_pending(u32 pend, u32 rx_mask) in c_can_adjust_pending() argument
786 if (pend == rx_mask) in c_can_adjust_pending()
787 return pend; in c_can_adjust_pending()
792 weight = hweight32(pend); in c_can_adjust_pending()
793 lasts = fls(pend); in c_can_adjust_pending()
[all …]
/drivers/irqchip/
Dirq-sunxi-nmi.c54 u32 pend; member
60 .pend = SUN6I_NMI_PENDING,
66 .pend = SUN7I_NMI_PENDING,
72 .pend = SUN9I_NMI_PENDING,
191 gc->chip_types[0].regs.ack = reg_offs->pend; in sunxi_sc_nmi_irq_init()
201 gc->chip_types[1].regs.ack = reg_offs->pend; in sunxi_sc_nmi_irq_init()
210 sunxi_sc_nmi_write(gc, reg_offs->pend, SUNXI_NMI_IRQ_BIT); in sunxi_sc_nmi_irq_init()
Dspear-shirq.c188 u32 pend; in shirq_handler() local
190 pend = readl(shirq->base + shirq->status_reg) & shirq->mask; in shirq_handler()
191 pend >>= shirq->offset; in shirq_handler()
193 while (pend) { in shirq_handler()
194 int irq = __ffs(pend); in shirq_handler()
196 pend &= ~(0x1 << irq); in shirq_handler()
/drivers/clocksource/
Dtimer-ti-dm-systimer.c42 u8 pend; member
400 t->pend = _OMAP_TIMER_WRITE_PEND_OFFSET; in dmtimer_systimer_setup()
406 t->pend = regbase + _OMAP_TIMER_WRITE_PEND_OFFSET; in dmtimer_systimer_setup()
452 void __iomem *pend = t->base + t->pend; in dmtimer_set_next_event() local
454 while (readl_relaxed(pend) & WP_TCRR) in dmtimer_set_next_event()
458 while (readl_relaxed(pend) & WP_TCLR) in dmtimer_set_next_event()
490 void __iomem *pend = t->base + t->pend; in dmtimer_set_periodic() local
495 while (readl_relaxed(pend) & WP_TLDR) in dmtimer_set_periodic()
499 while (readl_relaxed(pend) & WP_TCRR) in dmtimer_set_periodic()
503 while (readl_relaxed(pend) & WP_TCLR) in dmtimer_set_periodic()
/drivers/i2c/busses/
Di2c-xiic.c376 u32 pend, isr, ier; in xiic_process() local
390 pend = isr & ier; in xiic_process()
393 __func__, ier, isr, pend); in xiic_process()
400 if ((pend & XIIC_INTR_ARB_LOST_MASK) || in xiic_process()
401 ((pend & XIIC_INTR_TX_ERROR_MASK) && in xiic_process()
402 !(pend & XIIC_INTR_RX_FULL_MASK))) { in xiic_process()
428 if (pend & XIIC_INTR_RX_FULL_MASK) { in xiic_process()
464 if (pend & XIIC_INTR_BNB_MASK) { in xiic_process()
482 if (pend & (XIIC_INTR_TX_EMPTY_MASK | XIIC_INTR_TX_HALF_MASK)) { in xiic_process()
485 clr |= (pend & in xiic_process()
[all …]
/drivers/pinctrl/samsung/
Dpinctrl-s3c64xx.c597 unsigned int pend, mask; in s3c64xx_irq_demux_eint() local
601 pend = readl(drvdata->virt_base + EINT0PEND_REG); in s3c64xx_irq_demux_eint()
604 pend = pend & range & ~mask; in s3c64xx_irq_demux_eint()
605 pend &= range; in s3c64xx_irq_demux_eint()
607 while (pend) { in s3c64xx_irq_demux_eint()
611 irq = fls(pend) - 1; in s3c64xx_irq_demux_eint()
612 pend &= ~(1 << irq); in s3c64xx_irq_demux_eint()
Dpinctrl-s3c24xx.c352 unsigned int pend, mask; in s3c24xx_demux_eint() local
356 pend = readl(d->virt_base + EINTPEND_REG); in s3c24xx_demux_eint()
359 pend &= ~mask; in s3c24xx_demux_eint()
360 pend &= range; in s3c24xx_demux_eint()
362 while (pend) { in s3c24xx_demux_eint()
366 irq = __ffs(pend); in s3c24xx_demux_eint()
367 pend &= ~(1 << irq); in s3c24xx_demux_eint()
Dpinctrl-exynos.c485 static inline void exynos_irq_demux_eint(unsigned int pend, in exynos_irq_demux_eint() argument
490 while (pend) { in exynos_irq_demux_eint()
491 irq = fls(pend) - 1; in exynos_irq_demux_eint()
493 pend &= ~(1 << irq); in exynos_irq_demux_eint()
502 unsigned int pend; in exynos_irq_demux_eint16_31() local
510 pend = readl(b->eint_base + b->irq_chip->eint_pend in exynos_irq_demux_eint16_31()
514 exynos_irq_demux_eint(pend & ~mask, b->irq_domain); in exynos_irq_demux_eint16_31()
/drivers/net/fddi/skfp/
Dsmt.c180 smc->sm.pend[i] = 0 ; in smt_agent_init()
378 if (!smc->sm.pend[SMT_TID_NIF]) in smt_event()
379 smc->sm.pend[SMT_TID_NIF] = smt_get_tid(smc) ; in smt_event()
381 smc->sm.pend[SMT_TID_NIF], SMT_REQUEST,0) ; in smt_event()
623 smc->sm.pend[SMT_TID_NIF] = 0 ; in smt_received_pack()
633 if (sm->smt_tid == smc->sm.pend[SMT_TID_NIF]) { in smt_received_pack()
634 smc->sm.pend[SMT_TID_NIF] = 0 ; in smt_received_pack()
665 smc->sm.pend[SMT_TID_NIF_TEST]) { in smt_received_pack()
670 smc->sm.pend[SMT_TID_NIF], sm->smt_tid); in smt_received_pack()
702 if (sm->smt_tid == smc->sm.pend[SMT_TID_ECF]) { in smt_received_pack()
[all …]
/drivers/misc/habanalabs/common/
Dirq.c143 struct hl_user_pending_interrupt *pend; in handle_user_cq() local
146 list_for_each_entry(pend, &user_cq->wait_list_head, wait_list_node) in handle_user_cq()
147 complete_all(&pend->fence.completion); in handle_user_cq()
Dcommand_submission.c932 struct hl_user_pending_interrupt *pend; in wake_pending_user_interrupt_threads() local
936 list_for_each_entry(pend, &interrupt->wait_list_head, wait_list_node) { in wake_pending_user_interrupt_threads()
937 pend->fence.error = -EIO; in wake_pending_user_interrupt_threads()
938 complete_all(&pend->fence.completion); in wake_pending_user_interrupt_threads()
2746 struct hl_user_pending_interrupt *pend; in _hl_interrupt_wait_ioctl() local
2760 pend = kmalloc(sizeof(*pend), GFP_KERNEL); in _hl_interrupt_wait_ioctl()
2761 if (!pend) { in _hl_interrupt_wait_ioctl()
2766 hl_fence_init(&pend->fence, ULONG_MAX); in _hl_interrupt_wait_ioctl()
2777 list_add_tail(&pend->wait_list_node, &interrupt->wait_list_head); in _hl_interrupt_wait_ioctl()
2799 completion_rc = wait_for_completion_interruptible_timeout(&pend->fence.completion, in _hl_interrupt_wait_ioctl()
[all …]
/drivers/gpio/
Dgpio-rockchip.c334 u32 pend; in rockchip_irq_demux() local
340 pend = readl_relaxed(bank->reg_base + bank->gpio_regs->int_status); in rockchip_irq_demux()
342 while (pend) { in rockchip_irq_demux()
345 irq = __ffs(pend); in rockchip_irq_demux()
346 pend &= ~BIT(irq); in rockchip_irq_demux()
/drivers/video/fbdev/
Dtcx.c129 u32 __iomem *p, *pend; in __tcx_set_control_plane() local
137 for (pend = p + info->fix.smem_len; p < pend; p++) { in __tcx_set_control_plane()
/drivers/mtd/
Dinftlcore.c812 char *p, *pend; in inftl_writeblock() local
818 pend = buffer + SECTORSIZE; in inftl_writeblock()
819 for (p = buffer; p < pend && !*p; p++) in inftl_writeblock()
822 if (p < pend) { in inftl_writeblock()
/drivers/staging/rtl8712/
Drtl8712_recv.h101 u8 *pend; member
Drecv_linux.c55 precvbuf->pend = NULL; in r8712_os_recvbuf_resource_alloc()
Dusb_ops_linux.c276 precvbuf->pend = skb_end_pointer(precvbuf->pskb); in r8712_usb_read_port()
282 precvbuf->pend = skb_end_pointer(precvbuf->pskb); in r8712_usb_read_port()
/drivers/staging/r8188eu/hal/
Drtl8188eu_recv.c27 precvbuf->pend = precvbuf->pdata + MAX_RECVBUF_SZ; in rtl8188eu_init_recvbuf()
Dusb_ops_linux.c478 precvbuf->pend = skb_end_pointer(precvbuf->pskb); in usb_read_port()
484 precvbuf->pend = skb_end_pointer(precvbuf->pskb); in usb_read_port()
/drivers/staging/r8188eu/os_dep/
Drecv_linux.c53 precvbuf->pend = NULL; in rtw_os_recvbuf_resource_alloc()
/drivers/staging/wlan-ng/
Dprism2fw.c682 u32 pend; in plugimage() local
691 pend = s3plug[i].addr + s3plug[i].len; in plugimage()
731 if (pstart >= cstart && pend <= cend) in plugimage()
/drivers/tty/serial/
Dsamsung_tty.c949 unsigned int pend = rd_regl(port, S3C64XX_UINTP); in s3c64xx_serial_handle_irq() local
952 if (pend & S3C64XX_UINTM_RXD_MSK) { in s3c64xx_serial_handle_irq()
956 if (pend & S3C64XX_UINTM_TXD_MSK) { in s3c64xx_serial_handle_irq()
968 unsigned int pend = rd_regl(port, S3C2410_UTRSTAT); in apple_serial_handle_irq() local
971 if (pend & (APPLE_S5L_UTRSTAT_RXTHRESH | APPLE_S5L_UTRSTAT_RXTO)) { in apple_serial_handle_irq()
976 if (pend & APPLE_S5L_UTRSTAT_TXTHRESH) { in apple_serial_handle_irq()
/drivers/nvdimm/
Dbus.c953 resource_size_t offset = 0, end_trunc = 0, start, end, pstart, pend; in nd_pmem_forget_poison_check() local
976 pend = nsio->res.end - end_trunc; in nd_pmem_forget_poison_check()
978 if ((pstart >= start) && (pend <= end)) in nd_pmem_forget_poison_check()
/drivers/net/fddi/skfp/h/
Dsmc.h337 u_long pend[SMT_MAX_TEST] ; /* TID of requests */ member
/drivers/crypto/cavium/zip/
Dzip_regs.h811 u64 pend : 64; member
813 u64 pend : 64;

12