Home
last modified time | relevance | path

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

12

/drivers/misc/habanalabs/common/
Dirq.c230 static int handle_registration_node(struct hl_device *hdev, struct hl_user_pending_interrupt *pend, in handle_registration_node() argument
251 *pend->ts_reg_info.timestamp_kernel_addr = timestamp; in handle_registration_node()
254 pend->ts_reg_info.timestamp_kernel_addr, in handle_registration_node()
255 *(u64 *)pend->ts_reg_info.timestamp_kernel_addr); in handle_registration_node()
257 list_del(&pend->wait_list_node); in handle_registration_node()
260 pend->ts_reg_info.in_use = 0; in handle_registration_node()
265 free_node->buf = pend->ts_reg_info.buf; in handle_registration_node()
266 free_node->cq_cb = pend->ts_reg_info.cq_cb; in handle_registration_node()
274 struct hl_user_pending_interrupt *pend, *temp_pend; in handle_user_interrupt() local
295 list_for_each_entry_safe(pend, temp_pend, &intr->wait_list_head, wait_list_node) { in handle_user_interrupt()
[all …]
Dcommand_submission.c1047 struct hl_user_pending_interrupt *pend, *temp; in wake_pending_user_interrupt_threads() local
1051 list_for_each_entry_safe(pend, temp, &interrupt->wait_list_head, wait_list_node) { in wake_pending_user_interrupt_threads()
1052 if (pend->ts_reg_info.buf) { in wake_pending_user_interrupt_threads()
1053 list_del(&pend->wait_list_node); in wake_pending_user_interrupt_threads()
1054 hl_mmap_mem_buf_put(pend->ts_reg_info.buf); in wake_pending_user_interrupt_threads()
1055 hl_cb_put(pend->ts_reg_info.cq_cb); in wake_pending_user_interrupt_threads()
1057 pend->fence.error = -EIO; in wake_pending_user_interrupt_threads()
1058 complete_all(&pend->fence.completion); in wake_pending_user_interrupt_threads()
3040 struct hl_user_pending_interrupt **pend) in ts_buff_get_kernel_ts_record() argument
3106 *pend = requested_offset_record; in ts_buff_get_kernel_ts_record()
[all …]
/drivers/net/can/c_can/
Dc_can_main.c725 u32 idx, obj, pkts = 0, bytes = 0, pend; in c_can_do_tx() local
729 pend = priv->read_reg32(priv, C_CAN_INTPND3_REG); in c_can_do_tx()
731 pend = priv->read_reg(priv, C_CAN_INTPND2_REG); in c_can_do_tx()
733 while ((idx = ffs(pend))) { in c_can_do_tx()
735 pend &= ~BIT(idx); in c_can_do_tx()
778 static u32 c_can_adjust_pending(u32 pend, u32 rx_mask) in c_can_adjust_pending() argument
782 if (pend == rx_mask) in c_can_adjust_pending()
783 return pend; in c_can_adjust_pending()
788 weight = hweight32(pend); in c_can_adjust_pending()
789 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.c190 u32 pend; in shirq_handler() local
192 pend = readl(shirq->base + shirq->status_reg) & shirq->mask; in shirq_handler()
193 pend >>= shirq->offset; in shirq_handler()
195 while (pend) { in shirq_handler()
196 int irq = __ffs(pend); in shirq_handler()
198 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()
Dtimer-ti-dm.c129 void __iomem *pend; /* write pending */ member
177 while (readl_relaxed(timer->pend) & wp) in dmtimer_read()
202 while (readl_relaxed(timer->pend) & wp) in dmtimer_write()
219 timer->pend = timer->io_base + _OMAP_TIMER_WRITE_PEND_OFFSET; in __omap_dm_timer_init_regs()
226 timer->pend = timer->io_base + in __omap_dm_timer_init_regs()
/drivers/i2c/busses/
Di2c-xiic.c382 u32 pend, isr, ier; in xiic_process() local
397 pend = isr & ier; in xiic_process()
400 __func__, ier, isr, pend); in xiic_process()
407 if ((pend & XIIC_INTR_ARB_LOST_MASK) || in xiic_process()
408 ((pend & XIIC_INTR_TX_ERROR_MASK) && in xiic_process()
409 !(pend & XIIC_INTR_RX_FULL_MASK))) { in xiic_process()
437 if (pend & XIIC_INTR_RX_FULL_MASK) { in xiic_process()
473 if (pend & (XIIC_INTR_TX_EMPTY_MASK | XIIC_INTR_TX_HALF_MASK)) { in xiic_process()
476 clr |= (pend & in xiic_process()
510 if (pend & XIIC_INTR_BNB_MASK) { in xiic_process()
/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.c488 static inline void exynos_irq_demux_eint(unsigned int pend, in exynos_irq_demux_eint() argument
493 while (pend) { in exynos_irq_demux_eint()
494 irq = fls(pend) - 1; in exynos_irq_demux_eint()
496 pend &= ~(1 << irq); in exynos_irq_demux_eint()
505 unsigned int pend; in exynos_irq_demux_eint16_31() local
513 pend = readl(b->eint_base + b->irq_chip->eint_pend in exynos_irq_demux_eint16_31()
517 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/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/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.c954 unsigned int pend = rd_regl(port, S3C64XX_UINTP); in s3c64xx_serial_handle_irq() local
957 if (pend & S3C64XX_UINTM_RXD_MSK) { in s3c64xx_serial_handle_irq()
961 if (pend & S3C64XX_UINTM_TXD_MSK) { in s3c64xx_serial_handle_irq()
973 unsigned int pend = rd_regl(port, S3C2410_UTRSTAT); in apple_serial_handle_irq() local
976 if (pend & (APPLE_S5L_UTRSTAT_RXTHRESH | APPLE_S5L_UTRSTAT_RXTO)) { in apple_serial_handle_irq()
981 if (pend & APPLE_S5L_UTRSTAT_TXTHRESH) { in apple_serial_handle_irq()
/drivers/nvdimm/
Dbus.c957 resource_size_t offset = 0, end_trunc = 0, start, end, pstart, pend; in nd_pmem_forget_poison_check() local
980 pend = nsio->res.end - end_trunc; in nd_pmem_forget_poison_check()
982 if ((pstart >= start) && (pend <= end)) in nd_pmem_forget_poison_check()
/drivers/crypto/cavium/zip/
Dzip_regs.h811 u64 pend : 64; member
813 u64 pend : 64;
/drivers/net/fddi/skfp/h/
Dsmc.h337 u_long pend[SMT_MAX_TEST] ; /* TID of requests */ member
/drivers/staging/rtl8723bs/include/
Drtw_recv.h291 u8 *pend; member
/drivers/infiniband/hw/mlx4/
Dmcg.c1177 int pend = 0; in clear_pending_reqs() local
1188 pend = !clear; in clear_pending_reqs()
1200 if (!pend && (!list_empty(&group->func[vf].pending) || group->func[vf].num_pend_reqs)) { in clear_pending_reqs()
/drivers/soc/fsl/dpio/
Dqbman-portal.h156 u32 pend; member

12