Home
last modified time | relevance | path

Searched refs:readq (Results 1 – 25 of 151) sorted by relevance

1234567

/Linux-v4.19/sound/core/seq/oss/
Dseq_oss_rw.c46 struct seq_oss_readq *readq = dp->readq; in snd_seq_oss_read() local
52 if (readq == NULL || ! is_read_mode(dp->file_mode)) in snd_seq_oss_read()
56 snd_seq_oss_readq_lock(readq, flags); in snd_seq_oss_read()
57 err = snd_seq_oss_readq_pick(readq, &rec); in snd_seq_oss_read()
60 snd_seq_oss_readq_unlock(readq, flags); in snd_seq_oss_read()
61 snd_seq_oss_readq_wait(readq); in snd_seq_oss_read()
62 snd_seq_oss_readq_lock(readq, flags); in snd_seq_oss_read()
66 err = snd_seq_oss_readq_pick(readq, &rec); in snd_seq_oss_read()
69 snd_seq_oss_readq_unlock(readq, flags); in snd_seq_oss_read()
74 snd_seq_oss_readq_unlock(readq, flags); in snd_seq_oss_read()
[all …]
Dseq_oss_readq.h44 void snd_seq_oss_readq_clear(struct seq_oss_readq *readq);
45 unsigned int snd_seq_oss_readq_poll(struct seq_oss_readq *readq, struct file *file, poll_table *wai…
46 int snd_seq_oss_readq_puts(struct seq_oss_readq *readq, int dev, unsigned char *data, int len);
49 int snd_seq_oss_readq_put_event(struct seq_oss_readq *readq, union evrec *ev);
50 int snd_seq_oss_readq_put_timestamp(struct seq_oss_readq *readq, unsigned long curt, int seq_mode);
Dseq_oss_init.c245 dp->readq = snd_seq_oss_readq_new(dp, maxqlen); in snd_seq_oss_open()
246 if (!dp->readq) { in snd_seq_oss_open()
408 snd_seq_oss_readq_delete(dp->readq); in free_devinfo()
457 if (dp->readq) in snd_seq_oss_reset()
458 snd_seq_oss_readq_clear(dp->readq); in snd_seq_oss_reset()
513 if (is_read_mode(dp->file_mode) && dp->readq) in snd_seq_oss_system_info_read()
514 snd_seq_oss_readq_info_read(dp->readq, buf); in snd_seq_oss_system_info_read()
Dseq_oss_ioctl.c115 if (dp->readq == NULL || ! is_read_mode(dp->file_mode)) in snd_seq_oss_ioctl()
117 return put_user(dp->readq->qlen, p) ? -EFAULT : 0; in snd_seq_oss_ioctl()
173 if (dp->readq == NULL || !is_read_mode(dp->file_mode)) in snd_seq_oss_ioctl()
181 dp->readq->pre_event_timeout = val; in snd_seq_oss_ioctl()
Dseq_oss_readq.c125 struct seq_oss_readq *readq; member
133 return snd_seq_oss_readq_puts(ctx->readq, ctx->dev, buf, count); in readq_dump_sysex()
140 .readq = q, in snd_seq_oss_readq_sysex()
/Linux-v4.19/drivers/fpga/
Ddfl-fme-mgr.c97 pr_status = readq(fme_pr + FME_PR_STS); in fme_mgr_pr_error_handle()
101 pr_error = readq(fme_pr + FME_PR_ERR); in fme_mgr_pr_error_handle()
123 pr_ctrl = readq(fme_pr + FME_PR_CTRL); in fme_mgr_write_init()
134 pr_ctrl = readq(fme_pr + FME_PR_CTRL); in fme_mgr_write_init()
157 pr_ctrl = readq(fme_pr + FME_PR_CTRL); in fme_mgr_write_init()
176 pr_ctrl = readq(fme_pr + FME_PR_CTRL); in fme_mgr_write()
188 pr_status = readq(fme_pr + FME_PR_STS); in fme_mgr_write()
199 pr_status = readq(fme_pr + FME_PR_STS); in fme_mgr_write()
228 pr_ctrl = readq(fme_pr + FME_PR_CTRL); in fme_mgr_write_complete()
278 id->id_l = readq(fme_pr + FME_PR_INTFC_ID_L); in fme_mgr_get_compat_id()
[all …]
Ddfl-fme-main.c32 v = readq(base + FME_HDR_CAP); in ports_num_show()
51 v = readq(base + FME_HDR_BITSTREAM_ID); in bitstream_id_show()
69 v = readq(base + FME_HDR_BITSTREAM_MD); in bitstream_metadata_show()
90 (unsigned long long)readq(base + FME_HDR_CAP)); in fme_hdr_init()
/Linux-v4.19/drivers/bluetooth/
Dhci_vhci.c51 struct sk_buff_head readq; member
66 skb_queue_purge(&data->readq); in vhci_close_dev()
75 skb_queue_purge(&data->readq); in vhci_flush()
85 skb_queue_tail(&data->readq, skb); in vhci_send_frame()
152 skb_queue_tail(&data->readq, skb); in __vhci_create_device()
270 skb = skb_dequeue(&data->readq); in vhci_read()
274 skb_queue_head(&data->readq, skb); in vhci_read()
286 !skb_queue_empty(&data->readq)); in vhci_read()
308 if (!skb_queue_empty(&data->readq)) in vhci_poll()
330 skb_queue_head_init(&data->readq); in vhci_open()
[all …]
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/
Dnfp_net_repr.c94 stats->tx_packets = readq(mem + NFP_MAC_STATS_TX_FRAMES_TRANSMITTED_OK); in nfp_repr_phy_port_get_stats64()
95 stats->tx_bytes = readq(mem + NFP_MAC_STATS_TX_OUT_OCTETS); in nfp_repr_phy_port_get_stats64()
96 stats->tx_dropped = readq(mem + NFP_MAC_STATS_TX_OUT_ERRORS); in nfp_repr_phy_port_get_stats64()
98 stats->rx_packets = readq(mem + NFP_MAC_STATS_RX_FRAMES_RECEIVED_OK); in nfp_repr_phy_port_get_stats64()
99 stats->rx_bytes = readq(mem + NFP_MAC_STATS_RX_IN_OCTETS); in nfp_repr_phy_port_get_stats64()
100 stats->rx_dropped = readq(mem + NFP_MAC_STATS_RX_IN_ERRORS); in nfp_repr_phy_port_get_stats64()
110 stats->tx_packets = readq(port->vnic + NFP_NET_CFG_STATS_RX_FRAMES); in nfp_repr_vnic_get_stats64()
111 stats->tx_bytes = readq(port->vnic + NFP_NET_CFG_STATS_RX_OCTETS); in nfp_repr_vnic_get_stats64()
112 stats->tx_dropped = readq(port->vnic + NFP_NET_CFG_STATS_RX_DISCARDS); in nfp_repr_vnic_get_stats64()
114 stats->rx_packets = readq(port->vnic + NFP_NET_CFG_STATS_TX_FRAMES); in nfp_repr_vnic_get_stats64()
[all …]
/Linux-v4.19/drivers/net/ethernet/neterion/vxge/
Dvxge-config.c37 val64 = readq(&vp_reg->rxmac_vcfg0); in vxge_hw_vpath_set_zero_rx_frm_len()
40 val64 = readq(&vp_reg->rxmac_vcfg0); in vxge_hw_vpath_set_zero_rx_frm_len()
63 val64 = readq(&vp_reg->prc_cfg6); in vxge_hw_vpath_wait_receive_idle()
73 rxd_count = readq(&vp_reg->prc_rxd_doorbell); in vxge_hw_vpath_wait_receive_idle()
78 val64 = readq(&vp_reg->frm_in_progress_cnt); in vxge_hw_vpath_wait_receive_idle()
126 val64 = readq(reg); in __vxge_hw_device_register_poll()
134 val64 = readq(reg); in __vxge_hw_device_register_poll()
206 val64 = readq(&vp_reg->rts_access_steer_ctrl); in vxge_hw_vpath_fw_api()
208 *data0 = readq(&vp_reg->rts_access_steer_data0); in vxge_hw_vpath_fw_api()
209 *data1 = readq(&vp_reg->rts_access_steer_data1); in vxge_hw_vpath_fw_api()
[all …]
Dvxge-traffic.c86 val64 = readq(&vp_reg->vpath_general_int_status); in vxge_hw_vpath_intr_enable()
236 val64 = readq(&vp_reg->tim_cfg1_int_num[VXGE_HW_VPATH_INTR_TX]); in vxge_hw_vpath_tti_ci_set()
405 val64 = readq(&hldev->common_reg->titan_general_int_status); in vxge_hw_device_intr_enable()
622 alarm_status = readq(&vp_reg->vpath_general_int_status); in __vxge_hw_vpath_alarm_process()
646 val64 = readq(&vp_reg->xgmac_vp_int_status); in __vxge_hw_vpath_alarm_process()
651 val64 = readq(&vp_reg->asic_ntwk_vp_err_reg); in __vxge_hw_vpath_alarm_process()
707 pic_status = readq(&vp_reg->vpath_ppif_int_status); in __vxge_hw_vpath_alarm_process()
712 val64 = readq(&vp_reg->general_errors_reg); in __vxge_hw_vpath_alarm_process()
713 mask64 = readq(&vp_reg->general_errors_mask); in __vxge_hw_vpath_alarm_process()
760 val64 = readq(&vp_reg->kdfcctl_errors_reg); in __vxge_hw_vpath_alarm_process()
[all …]
/Linux-v4.19/net/qrtr/
Dtun.c16 wait_queue_head_t readq; member
26 wake_up_interruptible(&tun->readq); in qrtr_tun_send()
40 init_waitqueue_head(&tun->readq); in qrtr_tun_open()
61 if (wait_event_interruptible(tun->readq, in qrtr_tun_read_iter()
100 poll_wait(filp, &tun->readq, wait); in qrtr_tun_poll()
/Linux-v4.19/drivers/edac/
Dthunderx_edac.c265 sprintf(buf, "0x%016llx", readq(pdata->regs + _reg)); \
328 u64 lmc_int = readq(lmc->regs + LMC_INT); in thunderx_lmc_int_read()
355 readq(lmc->regs + LMC_CHAR_MASK0); in inject_ecc_fn()
356 readq(lmc->regs + LMC_CHAR_MASK2); in inject_ecc_fn()
357 readq(lmc->regs + LMC_ECC_PARITY_TEST); in inject_ecc_fn()
557 ctx->reg_int = readq(lmc->regs + LMC_INT); in thunderx_lmc_err_isr()
558 ctx->reg_fadr = readq(lmc->regs + LMC_FADR); in thunderx_lmc_err_isr()
559 ctx->reg_nxm_fadr = readq(lmc->regs + LMC_NXM_FADR); in thunderx_lmc_err_isr()
560 ctx->reg_scram_fadr = readq(lmc->regs + LMC_SCRAM_FADR); in thunderx_lmc_err_isr()
561 ctx->reg_ecc_synd = readq(lmc->regs + LMC_ECC_SYND); in thunderx_lmc_err_isr()
[all …]
/Linux-v4.19/drivers/char/
Dhpet.c60 #define read_counter(MC) readq(MC)
127 #ifndef readq
128 static inline unsigned long long readq(void __iomem *addr) in readq() function
223 v = (readq(&timer->hpet_config) & Tn_INT_ROUTE_CAP_MASK) >> in hpet_timer_set_irq()
429 writeq((readq(&timer->hpet_config) & ~Tn_INT_ENB_CNF_MASK), in hpet_release()
438 && readq(&timer->hpet_config) & Tn_TYPE_CNF_MASK) { in hpet_release()
441 v = readq(&timer->hpet_config); in hpet_release()
523 v = readq(&timer->hpet_config); in hpet_ioctl_ieon()
607 v = readq(&timer->hpet_config); in hpet_ioctl_common()
623 readq(&timer->hpet_config) & Tn_PER_INT_CAP_MASK; in hpet_ioctl_common()
[all …]
/Linux-v4.19/drivers/net/ethernet/neterion/
Ds2io.c1013 val64 = readq(&bar0->pci_mode); in s2io_verify_pci_mode()
1049 val64 = readq(&bar0->pci_mode); in s2io_print_pci_mode()
1212 val64 = readq(&bar0->sw_reset); in init_nic()
1219 val64 = readq(&bar0->sw_reset); in init_nic()
1226 val64 = readq(&bar0->adapter_status); in init_nic()
1237 val64 = readq(&bar0->mac_cfg); in init_nic()
1245 val64 = readq(&bar0->mac_int_mask); in init_nic()
1246 val64 = readq(&bar0->mc_int_mask); in init_nic()
1247 val64 = readq(&bar0->xgxs_int_mask); in init_nic()
1265 val64 = readq(&bar0->dtx_control); in init_nic()
[all …]
/Linux-v4.19/drivers/net/ethernet/cavium/common/
Dcavium_ptp.c45 ret = CLOCK_BASE_RATE * ((readq(base + RST_BOOT) >> 33) & 0x3f); in ptp_cavium_clock_get()
214 return readq(clock->reg_base + PTP_CLOCK_HI); in cavium_ptp_cc_read()
272 clock_cfg = readq(clock->reg_base + PTP_CLOCK_CFG); in cavium_ptp_probe()
293 clock_cfg = readq(clock->reg_base + PTP_CLOCK_CFG); in cavium_ptp_probe()
322 clock_cfg = readq(clock->reg_base + PTP_CLOCK_CFG); in cavium_ptp_remove()
/Linux-v4.19/drivers/mmc/host/
Dcavium.c169 emm_switch = readq(host->base + MIO_EMM_SWITCH(host)); in check_switch_errors()
219 rsp_sts = readq(host->base + MIO_EMM_RSP_STS(host)); in do_switch()
255 emm_switch = readq(slot->host->base + MIO_EMM_SWITCH(host)); in cvm_mmc_reset_bus()
260 wdog = readq(slot->host->base + MIO_EMM_WDOG(host)); in cvm_mmc_reset_bus()
282 old_slot->cached_switch = readq(host->base + MIO_EMM_SWITCH(host)); in cvm_mmc_switch_to()
283 old_slot->cached_rca = readq(host->base + MIO_EMM_RCA(host)); in cvm_mmc_switch_to()
317 dat = readq(host->base + MIO_EMM_BUF_DAT(host)); in do_read()
348 rsp_lo = readq(host->base + MIO_EMM_RSP_LO(host)); in set_cmd_response()
361 rsp_hi = readq(host->base + MIO_EMM_RSP_HI(host)); in set_cmd_response()
386 fifo_cfg = readq(host->dma_base + MIO_EMM_DMA_FIFO_CFG(host)); in finish_dma_sg()
[all …]
/Linux-v4.19/drivers/char/ipmi/
Dipmi_si_mem_io.c44 #ifdef readq
47 return (readq((io->addr)+(offset * io->regspacing)) >> io->regshift) in mem_inq()
103 #ifdef readq in ipmi_si_mem_setup()
/Linux-v4.19/include/linux/
Dio-64-nonatomic-hi-lo.h42 #ifndef readq
43 #define readq hi_lo_readq macro
Dio-64-nonatomic-lo-hi.h42 #ifndef readq
43 #define readq lo_hi_readq macro
/Linux-v4.19/arch/parisc/include/asm/
Dio.h192 static inline unsigned long long readq(const volatile void __iomem *addr) in readq() function
217 #define readq readq macro
226 #define readq_relaxed(addr) readq(addr)
/Linux-v4.19/drivers/scsi/csiostor/
Dcsio_defs.h53 #ifndef readq
54 static inline u64 readq(void __iomem *addr) in readq() function
/Linux-v4.19/arch/powerpc/kernel/
Diomap.c46 return readq(addr); in ioread64()
50 return readq(addr); in ioread64_lo_hi()
54 return readq(addr); in ioread64_hi_lo()
/Linux-v4.19/arch/alpha/include/asm/
Dio.h165 REMAP1(u64, readq, const volatile) in REMAP1()
255 extern u64 readq(const volatile void __iomem *addr);
456 return IO_CONCAT(__IO_PREFIX,readq)(addr); in __raw_readq()
476 extern inline u64 readq(const volatile void __iomem *addr) in readq() function
573 #define readq readq macro
/Linux-v4.19/arch/ia64/kernel/
Dcyclone.c27 return (u64)readq((void __iomem *)cyclone_mc); in read_cyclone()
60 base = readq(reg); in init_cyclone_clock()

1234567