/Linux-v4.19/sound/soc/intel/common/ |
D | sst-ipc.c | 41 static struct ipc_message *msg_get_empty(struct sst_generic_ipc *ipc) in msg_get_empty() argument 45 if (!list_empty(&ipc->empty_list)) { in msg_get_empty() 46 msg = list_first_entry(&ipc->empty_list, struct ipc_message, in msg_get_empty() 54 static int tx_wait_done(struct sst_generic_ipc *ipc, in tx_wait_done() argument 64 spin_lock_irqsave(&ipc->dsp->spinlock, flags); in tx_wait_done() 66 if (ipc->ops.shim_dbg != NULL) in tx_wait_done() 67 ipc->ops.shim_dbg(ipc, "message timeout"); in tx_wait_done() 79 list_add_tail(&msg->list, &ipc->empty_list); in tx_wait_done() 80 spin_unlock_irqrestore(&ipc->dsp->spinlock, flags); in tx_wait_done() 84 static int ipc_tx_message(struct sst_generic_ipc *ipc, u64 header, in ipc_tx_message() argument [all …]
|
D | sst-ipc.h | 77 int sst_ipc_tx_message_wait(struct sst_generic_ipc *ipc, u64 header, 80 int sst_ipc_tx_message_nowait(struct sst_generic_ipc *ipc, u64 header, 83 int sst_ipc_tx_message_nopm(struct sst_generic_ipc *ipc, u64 header, 86 struct ipc_message *sst_ipc_reply_find_msg(struct sst_generic_ipc *ipc, 89 void sst_ipc_tx_msg_reply_complete(struct sst_generic_ipc *ipc, 92 void sst_ipc_drop_all(struct sst_generic_ipc *ipc); 93 int sst_ipc_init(struct sst_generic_ipc *ipc); 94 void sst_ipc_fini(struct sst_generic_ipc *ipc);
|
D | Makefile | 4 snd-soc-sst-ipc-objs := sst-ipc.o 12 obj-$(CONFIG_SND_SOC_INTEL_SST) += snd-soc-sst-dsp.o snd-soc-sst-ipc.o
|
/Linux-v4.19/drivers/net/wireless/quantenna/qtnfmac/ |
D | shm_ipc.c | 25 static bool qtnf_shm_ipc_has_new_data(struct qtnf_shm_ipc *ipc) in qtnf_shm_ipc_has_new_data() argument 27 const u32 flags = readl(&ipc->shm_region->headroom.hdr.flags); in qtnf_shm_ipc_has_new_data() 32 static void qtnf_shm_handle_new_data(struct qtnf_shm_ipc *ipc) in qtnf_shm_handle_new_data() argument 38 shm_reg_hdr = &ipc->shm_region->headroom.hdr; in qtnf_shm_handle_new_data() 46 memcpy_fromio(ipc->rx_data, ipc->shm_region->data, size); in qtnf_shm_handle_new_data() 52 ipc->interrupt.fn(ipc->interrupt.arg); in qtnf_shm_handle_new_data() 55 ipc->rx_packet_count++; in qtnf_shm_handle_new_data() 56 ipc->rx_callback.fn(ipc->rx_callback.arg, ipc->rx_data, size); in qtnf_shm_handle_new_data() 62 struct qtnf_shm_ipc *ipc = container_of(work, struct qtnf_shm_ipc, in qtnf_shm_ipc_irq_work() local 65 while (qtnf_shm_ipc_has_new_data(ipc)) in qtnf_shm_ipc_irq_work() [all …]
|
D | shm_ipc.h | 59 void (*irq_handler)(struct qtnf_shm_ipc *ipc); 66 int qtnf_shm_ipc_init(struct qtnf_shm_ipc *ipc, 72 void qtnf_shm_ipc_free(struct qtnf_shm_ipc *ipc); 73 int qtnf_shm_ipc_send(struct qtnf_shm_ipc *ipc, const u8 *buf, size_t size); 75 static inline void qtnf_shm_ipc_irq_handler(struct qtnf_shm_ipc *ipc) in qtnf_shm_ipc_irq_handler() argument 77 ipc->irq_handler(ipc); in qtnf_shm_ipc_irq_handler()
|
/Linux-v4.19/sound/soc/intel/skylake/ |
D | skl-sst-ipc.c | 302 static void skl_ipc_tx_msg(struct sst_generic_ipc *ipc, struct ipc_message *msg) in skl_ipc_tx_msg() argument 307 sst_dsp_outbox_write(ipc->dsp, msg->tx_data, msg->tx_size); in skl_ipc_tx_msg() 308 sst_dsp_shim_write_unlocked(ipc->dsp, SKL_ADSP_REG_HIPCIE, in skl_ipc_tx_msg() 310 sst_dsp_shim_write_unlocked(ipc->dsp, SKL_ADSP_REG_HIPCI, in skl_ipc_tx_msg() 331 static struct ipc_message *skl_ipc_reply_get_msg(struct sst_generic_ipc *ipc, in skl_ipc_reply_get_msg() argument 337 if (list_empty(&ipc->rx_list)) { in skl_ipc_reply_get_msg() 338 dev_err(ipc->dev, "ipc: rx list is empty but received 0x%x\n", in skl_ipc_reply_get_msg() 343 msg = list_first_entry(&ipc->rx_list, struct ipc_message, list); in skl_ipc_reply_get_msg() 350 int skl_ipc_process_notification(struct sst_generic_ipc *ipc, in skl_ipc_process_notification() argument 353 struct skl_sst *skl = container_of(ipc, struct skl_sst, ipc); in skl_ipc_process_notification() [all …]
|
D | skl-sst-ipc.h | 92 struct sst_generic_ipc ipc; member 174 int skl_ipc_save_pipeline(struct sst_generic_ipc *ipc, 177 int skl_ipc_restore_pipeline(struct sst_generic_ipc *ipc, u8 instance_id); 185 int skl_ipc_load_modules(struct sst_generic_ipc *ipc, 188 int skl_ipc_unload_modules(struct sst_generic_ipc *ipc, 191 int skl_ipc_set_dx(struct sst_generic_ipc *ipc, 194 int skl_ipc_set_large_config(struct sst_generic_ipc *ipc, 197 int skl_ipc_get_large_config(struct sst_generic_ipc *ipc, 200 int skl_sst_ipc_load_library(struct sst_generic_ipc *ipc, 203 int skl_ipc_set_d0ix(struct sst_generic_ipc *ipc, [all …]
|
D | cnl-sst.c | 221 ret = skl_ipc_set_dx(&cnl->ipc, CNL_INSTANCE_ID, in cnl_set_dsp_D0() 248 ret = skl_ipc_set_dx(&cnl->ipc, CNL_INSTANCE_ID, in cnl_set_dsp_D3() 305 struct sst_generic_ipc *ipc = &cnl->ipc; in cnl_dsp_irq_thread_handler() local 345 skl_ipc_process_reply(ipc, header); in cnl_dsp_irq_thread_handler() 348 skl_ipc_process_notification(ipc, header); in cnl_dsp_irq_thread_handler() 366 schedule_work(&ipc->kwork); in cnl_dsp_irq_thread_handler() 376 static void cnl_ipc_tx_msg(struct sst_generic_ipc *ipc, struct ipc_message *msg) in cnl_ipc_tx_msg() argument 381 sst_dsp_outbox_write(ipc->dsp, msg->tx_data, msg->tx_size); in cnl_ipc_tx_msg() 382 sst_dsp_shim_write_unlocked(ipc->dsp, CNL_ADSP_REG_HIPCIDD, in cnl_ipc_tx_msg() 384 sst_dsp_shim_write_unlocked(ipc->dsp, CNL_ADSP_REG_HIPCIDR, in cnl_ipc_tx_msg() [all …]
|
D | skl-ssp-clk.c | 76 union skl_clk_ctrl_ipc *ipc; in skl_fill_clk_ipc() local 82 ipc = &rcfg->dma_ctl_ipc; in skl_fill_clk_ipc() 88 ipc->sclk_fs.hdr.size = sizeof(struct skl_dmactrl_sclkfs_cfg) - in skl_fill_clk_ipc() 90 ipc->sclk_fs.sampling_frequency = wfmt->samples_per_sec; in skl_fill_clk_ipc() 91 ipc->sclk_fs.bit_depth = wfmt->bits_per_sample; in skl_fill_clk_ipc() 92 ipc->sclk_fs.valid_bit_depth = in skl_fill_clk_ipc() 94 ipc->sclk_fs.number_of_channels = wfmt->channels; in skl_fill_clk_ipc() 96 ipc->mclk.hdr.type = DMA_CLK_CONTROLS; in skl_fill_clk_ipc() 98 ipc->mclk.hdr.size = sizeof(struct skl_dmactrl_mclk_cfg) - in skl_fill_clk_ipc() 112 union skl_clk_ctrl_ipc *ipc; in skl_send_clk_dma_control() local [all …]
|
D | Makefile | 12 snd-soc-skl-ipc-objs := skl-sst-ipc.o skl-sst-dsp.o cnl-sst-dsp.o \ 16 obj-$(CONFIG_SND_SOC_INTEL_SKYLAKE) += snd-soc-skl-ipc.o
|
/Linux-v4.19/net/qrtr/ |
D | qrtr.c | 362 static void qrtr_port_put(struct qrtr_sock *ipc); 377 struct qrtr_sock *ipc; in qrtr_node_rx_work() local 390 ipc = qrtr_port_lookup(cb->dst_port); in qrtr_node_rx_work() 391 if (!ipc) { in qrtr_node_rx_work() 394 if (sock_queue_rcv_skb(&ipc->sk, skb)) in qrtr_node_rx_work() 397 qrtr_port_put(ipc); in qrtr_node_rx_work() 487 struct qrtr_sock *ipc; in qrtr_port_lookup() local 493 ipc = idr_find(&qrtr_ports, port); in qrtr_port_lookup() 494 if (ipc) in qrtr_port_lookup() 495 sock_hold(&ipc->sk); in qrtr_port_lookup() [all …]
|
/Linux-v4.19/sound/soc/intel/baytrail/ |
D | sst-baytrail-ipc.c | 181 struct sst_generic_ipc ipc; member 247 msg = sst_ipc_reply_find_msg(&byt->ipc, header); in sst_byt_process_reply() 261 sst_ipc_tx_msg_reply_complete(&byt->ipc, msg); in sst_byt_process_reply() 308 struct sst_generic_ipc *ipc = &byt->ipc; in sst_byt_irq_thread() local 340 schedule_work(&ipc->kwork); in sst_byt_irq_thread() 427 ret = sst_ipc_tx_message_wait(&byt->ipc, header, str_req, in sst_byt_stream_commit() 451 ret = sst_ipc_tx_message_wait(&byt->ipc, header, NULL, 0, NULL, 0); in sst_byt_stream_free() 475 return sst_ipc_tx_message_wait(&byt->ipc, header, NULL, in sst_byt_stream_operations() 478 return sst_ipc_tx_message_nowait(&byt->ipc, header, in sst_byt_stream_operations() 499 ret = sst_ipc_tx_message_nowait(&byt->ipc, header, tx_msg, size); in sst_byt_stream_start() [all …]
|
/Linux-v4.19/drivers/gpu/drm/i915/selftests/ |
D | i915_sw_fence.c | 514 struct task_ipc *ipc = container_of(work, typeof(*ipc), work); in task_ipc() local 516 complete(&ipc->started); in task_ipc() 518 i915_sw_fence_wait(ipc->in); in task_ipc() 519 smp_store_mb(ipc->value, 1); in task_ipc() 520 i915_sw_fence_commit(ipc->out); in task_ipc() 525 struct task_ipc ipc; in test_ipc() local 529 ipc.in = alloc_fence(); in test_ipc() 530 if (!ipc.in) in test_ipc() 532 ipc.out = alloc_fence(); in test_ipc() 533 if (!ipc.out) { in test_ipc() [all …]
|
/Linux-v4.19/drivers/hid/intel-ish-hid/ |
D | Makefile | 15 obj-$(CONFIG_INTEL_ISH_HID) += intel-ish-ipc.o 16 intel-ish-ipc-objs := ipc/ipc.o 17 intel-ish-ipc-objs += ipc/pci-ish.o
|
/Linux-v4.19/drivers/mailbox/ |
D | hi6220-mailbox.c | 85 void __iomem *ipc; member 153 writel(BIT(mchan->dst_irq), DST_INT_RAW_REG(mbox->ipc)); in hi6220_mbox_send_data() 165 state = readl(ACK_INT_STAT_REG(mbox->ipc)); in hi6220_mbox_interrupt() 195 writel(BIT(mchan->ack_irq), ACK_INT_CLR_REG(mbox->ipc)); in hi6220_mbox_interrupt() 210 writel(BIT(mchan->ack_irq), ACK_INT_ENA_REG(mbox->ipc)); in hi6220_mbox_startup() 220 writel(BIT(mchan->ack_irq), ACK_INT_DIS_REG(mbox->ipc)); in hi6220_mbox_shutdown() 300 mbox->ipc = devm_ioremap_resource(dev, res); in hi6220_mbox_probe() 301 if (IS_ERR(mbox->ipc)) { in hi6220_mbox_probe() 303 return PTR_ERR(mbox->ipc); in hi6220_mbox_probe() 336 writel(0x0, ACK_INT_MSK_REG(mbox->ipc)); in hi6220_mbox_probe() [all …]
|
/Linux-v4.19/ipc/ |
D | util.c | 728 struct kern_ipc_perm *ipc; in sysvipc_find_ipc() local 733 ipc = idr_find(&ids->ipcs_idr, id); in sysvipc_find_ipc() 734 if (ipc != NULL) in sysvipc_find_ipc() 742 ipc = idr_find(&ids->ipcs_idr, pos); in sysvipc_find_ipc() 743 if (ipc != NULL) { in sysvipc_find_ipc() 746 ipc_lock_object(ipc); in sysvipc_find_ipc() 747 return ipc; in sysvipc_find_ipc() 759 struct kern_ipc_perm *ipc = it; in sysvipc_proc_next() local 762 if (ipc && ipc != SEQ_START_TOKEN) in sysvipc_proc_next() 763 ipc_unlock(ipc); in sysvipc_proc_next() [all …]
|
/Linux-v4.19/net/ipv4/ |
D | raw.c | 507 struct ipcm_cookie ipc; in raw_sendmsg() local 565 ipcm_init_sk(&ipc, inet); in raw_sendmsg() 568 err = ip_cmsg_send(sk, msg, &ipc, false); in raw_sendmsg() 570 kfree(ipc.opt); in raw_sendmsg() 573 if (ipc.opt) in raw_sendmsg() 577 saddr = ipc.addr; in raw_sendmsg() 578 ipc.addr = daddr; in raw_sendmsg() 580 if (!ipc.opt) { in raw_sendmsg() 588 ipc.opt = &opt_copy.opt; in raw_sendmsg() 593 if (ipc.opt) { in raw_sendmsg() [all …]
|
D | ping.c | 704 struct ipcm_cookie ipc; in ping_v4_sendmsg() local 740 ipcm_init_sk(&ipc, inet); in ping_v4_sendmsg() 743 err = ip_cmsg_send(sk, msg, &ipc, false); in ping_v4_sendmsg() 745 kfree(ipc.opt); in ping_v4_sendmsg() 748 if (ipc.opt) in ping_v4_sendmsg() 751 if (!ipc.opt) { in ping_v4_sendmsg() 759 ipc.opt = &opt_copy.opt; in ping_v4_sendmsg() 764 saddr = ipc.addr; in ping_v4_sendmsg() 765 ipc.addr = faddr = daddr; in ping_v4_sendmsg() 767 if (ipc.opt && ipc.opt->opt.srr) { in ping_v4_sendmsg() [all …]
|
D | icmp.c | 369 struct ipcm_cookie *ipc, struct rtable **rt) in icmp_push_reply() argument 378 ipc, rt, MSG_DONTWAIT) < 0) { in icmp_push_reply() 404 struct ipcm_cookie ipc; in icmp_reply() local 432 ipcm_init(&ipc); in icmp_reply() 435 daddr = ipc.addr = ip_hdr(skb)->saddr; in icmp_reply() 439 ipc.opt = &icmp_param->replyopts.opt; in icmp_reply() 440 if (ipc.opt->opt.srr) in icmp_reply() 456 icmp_push_reply(icmp_param, &fl4, &ipc, &rt); in icmp_reply() 579 struct ipcm_cookie ipc; in icmp_send() local 710 ipcm_init(&ipc); in icmp_send() [all …]
|
/Linux-v4.19/sound/soc/intel/haswell/ |
D | sst-haswell-ipc.c | 315 struct sst_generic_ipc ipc; member 563 msg = sst_ipc_reply_find_msg(&hsw->ipc, header); in hsw_process_reply() 574 hsw->ipc.pending = true; in hsw_process_reply() 581 hsw->ipc.pending = false; in hsw_process_reply() 637 sst_ipc_tx_msg_reply_complete(&hsw->ipc, msg); in hsw_process_reply() 778 struct sst_generic_ipc *ipc = &hsw->ipc; in hsw_irq_thread() local 820 schedule_work(&ipc->kwork); in hsw_irq_thread() 830 ret = sst_ipc_tx_message_wait(&hsw->ipc, in sst_hsw_fw_get_version() 895 ret = sst_ipc_tx_message_wait(&hsw->ipc, header, req, in sst_hsw_stream_set_volume() 961 ret = sst_ipc_tx_message_wait(&hsw->ipc, header, &req, in sst_hsw_mixer_set_volume() [all …]
|
/Linux-v4.19/arch/s390/kernel/ |
D | jump_label.c | 42 unsigned char *ipc = (unsigned char *)entry->code; in jump_label_bug() local 46 pr_emerg("Jump label code mismatch at %pS [%p]\n", ipc, ipc); in jump_label_bug() 47 pr_emerg("Found: %6ph\n", ipc); in jump_label_bug()
|
/Linux-v4.19/drivers/isdn/i4l/ |
D | isdn_ppp.c | 596 struct isdn_ppp_compressor *ipc = ipc_head; in isdn_ppp_ioctl() local 597 while (ipc) { in isdn_ppp_ioctl() 598 j = ipc->num / (sizeof(long) * 8); in isdn_ppp_ioctl() 599 i = ipc->num % (sizeof(long) * 8); in isdn_ppp_ioctl() 602 ipc = ipc->next; in isdn_ppp_ioctl() 2535 struct isdn_ppp_compressor *ipc = NULL; in isdn_ppp_decompress() local 2545 ipc = is->link_decompressor; in isdn_ppp_decompress() 2549 ipc = master->decompressor; in isdn_ppp_decompress() 2553 if (!ipc) { in isdn_ppp_decompress() 2574 len = ipc->decompress(stat, skb, skb_out, &rsparm); in isdn_ppp_decompress() [all …]
|
D | isdn_ppp.h | 32 extern int isdn_ppp_register_compressor(struct isdn_ppp_compressor *ipc); 33 extern int isdn_ppp_unregister_compressor(struct isdn_ppp_compressor *ipc);
|
/Linux-v4.19/include/trace/events/ |
D | hswadsp.h | 57 DECLARE_EVENT_CLASS(ipc, 77 DEFINE_EVENT(ipc, ipc_request, 85 DEFINE_EVENT(ipc, ipc_reply, 93 DEFINE_EVENT(ipc, ipc_pending_reply, 101 DEFINE_EVENT(ipc, ipc_notification, 109 DEFINE_EVENT(ipc, ipc_error,
|
/Linux-v4.19/arch/nds32/include/asm/ |
D | ptrace.h | 30 long ipc; member 73 #define instruction_pointer(regs) ((regs)->ipc)
|