Home
last modified time | relevance | path

Searched refs:chan (Results 1 – 25 of 1436) sorted by relevance

12345678910>>...58

/linux/drivers/dma/
A Dfsldma.c701 chan->desc_pool = dma_pool_create(chan->name, chan->dev, in fsl_dma_alloc_chan_resources()
1012 chan = fdev->chan[i]; in fsldma_ctrl_irq()
1041 chan = fdev->chan[i]; in fsldma_free_irqs()
1042 if (chan && chan->irq) { in fsldma_free_irqs()
1065 chan = fdev->chan[i]; in fsldma_request_irqs()
1088 chan = fdev->chan[i]; in fsldma_request_irqs()
1095 free_irq(chan->irq, chan); in fsldma_request_irqs()
1153 fdev->chan[chan->id] = chan; in fsl_dma_chan_probe()
1338 chan = fdev->chan[i]; in fsldma_suspend_late()
1353 chan = fdev->chan[i]; in fsldma_suspend_late()
[all …]
A Ddmaengine.c510 chan->router->route_free(chan->router->dev, chan->route_data); in dma_chan_put()
689 return chan ? chan : ERR_PTR(-EPROBE_DEFER); in find_candidate()
741 return IS_ERR(chan) ? NULL : chan; in dma_get_any_slave_channel()
779 chan ? dma_chan_name(chan) : NULL); in __dma_request_channel()
1068 chan->dev->chan = chan; in __dma_async_device_channel_register()
1114 chan->dev->chan = NULL; in __dma_async_device_channel_unregister()
1294 chan->dev->chan = NULL; in dma_async_device_register()
1499 tx->chan = chan; in dma_async_tx_descriptor_init()
1622 chan = dep->chan; in dma_run_dependencies()
1632 if (dep_next && dep_next->chan == chan) in dma_run_dependencies()
[all …]
A Dstm32-dma.c239 return &chan->vchan.chan.dev->device; in chan2dev()
564 if (chan->next_sg == chan->desc->num_sgs) in stm32_dma_start_transfer()
567 sg_req = &chan->desc->sg_req[chan->next_sg]; in stm32_dma_start_transfer()
609 if (chan->next_sg == chan->desc->num_sgs) in stm32_dma_configure_next_sg()
612 sg_req = &chan->desc->sg_req[chan->next_sg]; in stm32_dma_configure_next_sg()
637 if (chan->next_sg == chan->desc->num_sgs) { in stm32_dma_handle_chan_done()
706 if (vchan_issue_pending(&chan->vchan) && !chan->desc && !chan->busy) { in stm32_dma_issue_pending()
1298 chan = &dmadev->chan[cfg.channel_id]; in stm32_dma_of_xlate()
1403 chan = &dmadev->chan[i]; in stm32_dma_probe()
1414 chan = &dmadev->chan[i]; in stm32_dma_probe()
[all …]
/linux/net/bluetooth/
A Dl2cap_core.c280 chan->ops->state_change(chan, chan->state, err); in l2cap_state_change_and_error()
285 chan->ops->state_change(chan, chan->state, err); in l2cap_chan_set_err()
438 chan->ops->close(chan); in l2cap_chan_timeout()
538 chan->rx_credits = (chan->imtu / chan->mps) + 1; in l2cap_le_flowctl_init()
550 chan->rx_credits = (chan->imtu / chan->mps) + 1; in l2cap_ecred_init()
1356 chan->ops->ready(chan); in l2cap_chan_ready()
1399 if (chan == conn->chan) in l2cap_ecred_defer_connect()
1449 data.chan = chan; in l2cap_ecred_connect()
6587 err = chan->ops->recv(chan, chan->sdu); in l2cap_reassemble_sdu()
7796 if (chan == d->chan) in l2cap_chan_by_pid()
[all …]
A Dl2cap_sock.c84 struct l2cap_chan *chan = l2cap_pi(sk)->chan; in l2cap_sock_bind() local
179 struct l2cap_chan *chan = l2cap_pi(sk)->chan; in l2cap_sock_connect() local
243 if (chan->psm && bdaddr_type_is_le(chan->src_type) && !chan->mode) in l2cap_sock_connect()
264 struct l2cap_chan *chan = l2cap_pi(sk)->chan; in l2cap_sock_listen() local
379 struct l2cap_chan *chan = l2cap_pi(sk)->chan; in l2cap_sock_getname() local
428 struct l2cap_chan *chan = l2cap_pi(sk)->chan; in l2cap_sock_getsockopt_old() local
547 struct l2cap_chan *chan = l2cap_pi(sk)->chan; in l2cap_sock_getsockopt() local
1304 chan = l2cap_pi(sk)->chan; in l2cap_sock_shutdown()
1391 chan = l2cap_pi(sk)->chan; in l2cap_sock_release()
1599 bt_cb(skb)->l2cap.chan = chan; in l2cap_sock_alloc_skb_cb()
[all …]
/linux/drivers/gpu/drm/nouveau/
A Dnouveau_chan.c63 if (likely(chan && chan->fence && !atomic_read(&chan->killed))) { in nouveau_channel_idle()
116 chan->dma.cur = chan->dma.cur + (chan->chan._push.cur - chan->chan._push.bgn); in nouveau_channel_kick()
118 chan->chan._push.bgn = chan->chan._push.cur; in nouveau_channel_kick()
126 chan->dma.cur = chan->dma.cur + (chan->chan._push.cur - chan->chan._push.bgn); in nouveau_channel_wait()
129 chan->chan._push.bgn = chan->chan._push.mem.object.map.ptr; in nouveau_channel_wait()
130 chan->chan._push.bgn = chan->chan._push.bgn + chan->dma.cur; in nouveau_channel_wait()
131 chan->chan._push.cur = chan->chan._push.bgn; in nouveau_channel_wait()
132 chan->chan._push.end = chan->chan._push.bgn + size; in nouveau_channel_wait()
180 chan->chan.push = &chan->chan._push; in nouveau_channel_prep()
466 chan->dma.ib_free = chan->dma.ib_max - chan->dma.ib_put; in nouveau_channel_init()
[all …]
A Dnouveau_dma.c45 val = nvif_rd32(&chan->user, chan->user_get); in READ_GET()
65 val > chan->push.addr + (chan->dma.max << 2)) in READ_GET()
83 chan->dma.ib_put = (chan->dma.ib_put + 1) & chan->dma.ib_max; in nv50_dma_push()
89 nvif_wr32(&chan->user, 0x8c, chan->dma.ib_put); in nv50_dma_push()
113 chan->dma.ib_free = get - chan->dma.ib_put; in nv50_dma_push_wait()
115 chan->dma.ib_free += chan->dma.ib_max; in nv50_dma_push_wait()
141 chan->dma.free = chan->dma.max - chan->dma.cur; in nv50_dma_wait()
158 chan->dma.free = get - chan->dma.cur - 1; in nv50_dma_wait()
204 chan->dma.free = chan->dma.max - chan->dma.cur; in nouveau_dma_wait()
212 OUT_RING(chan, chan->push.addr | 0x20000000); in nouveau_dma_wait()
[all …]
/linux/arch/um/drivers/
A Dchan_kern.c93 else fd = (*chan->ops->open)(chan->input, chan->output, chan->primary, in open_one_chan()
113 struct chan *chan; in open_chan() local
127 if (chan && chan->primary && chan->ops->winch) in chan_enable_winch()
142 struct chan *chan; in enable_chan() local
185 struct chan *chan; in free_irqs() local
224 (*chan->ops->close)(chan->fd, chan->data); in close_one_chan()
232 struct chan *chan; in close_chan() local
294 struct chan *chan; in chan_window_size() local
330 struct chan *chan; in free_chan() local
443 struct chan *chan; in parse_chan() local
[all …]
/linux/drivers/dma/xilinx/
A Dxilinx_dma.c1132 chan->seg_v[i].phys = chan->seg_p + in xilinx_dma_alloc_chan_resources()
1156 chan->seg_mv[i].phys = chan->seg_p + in xilinx_dma_alloc_chan_resources()
1654 chan->start_transfer(chan); in xilinx_dma_issue_pending()
1781 chan = chan->xdev->chan[chan_offset]; in xilinx_mcdma_irq_handler()
1813 chan->start_transfer(chan); in xilinx_mcdma_irq_handler()
1877 chan->start_transfer(chan); in xilinx_dma_irq_handler()
2447 err = chan->stop_transfer(chan); in xilinx_dma_terminate_all()
2450 chan, dma_ctrl_read(chan, in xilinx_dma_terminate_all()
2569 free_irq(chan->irq, chan); in xilinx_dma_chan_remove()
2818 chan->tdest = chan->id; in xilinx_dma_chan_probe()
[all …]
A Dzynqmp_dma.c140 #define ZYNQMP_DMA_DESC_SIZE(chan) (chan->desc_size) argument
370 struct zynqmp_dma_chan *chan = to_chan(tx->chan); in zynqmp_dma_tx_submit() local
488 chan->desc_pool_v = dma_alloc_coherent(chan->dev, in zynqmp_dma_alloc_chan_resources()
664 zynqmp_dma_free_desc_list(chan, &chan->active_list); in zynqmp_dma_free_descriptors()
665 zynqmp_dma_free_desc_list(chan, &chan->pending_list); in zynqmp_dma_free_descriptors()
666 zynqmp_dma_free_desc_list(chan, &chan->done_list); in zynqmp_dma_free_descriptors()
681 chan->desc_pool_v, chan->desc_pool_p); in zynqmp_dma_free_chan_resources()
861 if (!chan) in zynqmp_dma_chan_remove()
865 devm_free_irq(chan->zdev->dev, chan->irq, chan); in zynqmp_dma_chan_remove()
886 if (!chan) in zynqmp_dma_chan_probe()
[all …]
/linux/drivers/video/fbdev/savage/
A Dsavagefb-i2c.c50 r = readl(chan->ioaddr + chan->reg); in savage4_gpio_setscl()
55 writel(r, chan->ioaddr + chan->reg); in savage4_gpio_setscl()
64 r = readl(chan->ioaddr + chan->reg); in savage4_gpio_setsda()
69 writel(r, chan->ioaddr + chan->reg); in savage4_gpio_setsda()
92 r = VGArCR(chan->reg, chan->par); in prosavage_gpio_setscl()
100 VGAwCR(chan->reg, r, chan->par); in prosavage_gpio_setscl()
108 r = VGArCR(chan->reg, chan->par); in prosavage_gpio_setsda()
116 VGAwCR(chan->reg, r, chan->par); in prosavage_gpio_setsda()
145 chan->algo.data = chan; in savage_setup_i2c_bus()
150 chan->algo.setsda(chan, 1); in savage_setup_i2c_bus()
[all …]
/linux/drivers/mailbox/
A Dmailbox.c62 if (!chan->msg_count || chan->active_req) in msg_submit()
75 chan->cl->tx_prepare(chan->cl, data); in msg_submit()
77 err = chan->mbox->ops->send_data(chan, data); in msg_submit()
111 chan->cl->tx_done(chan->cl, mssg, r); in tx_tick()
127 if (chan->active_req && chan->cl) { in txdone_hrtimer()
156 chan->cl->rx_callback(chan->cl, mssg); in mbox_chan_received_data()
220 return chan->mbox->ops->peek_data(chan); in mbox_client_peek_data()
254 if (!chan || !chan->cl) in mbox_send_message()
388 ret = chan->mbox->ops->startup(chan); in mbox_request_channel()
442 if (!chan || !chan->cl) in mbox_free_channel()
[all …]
/linux/arch/sh/drivers/dma/
A Ddma-sh.c45 chan -= 6; in dma_base_addr()
130 chan->dev_id, chan); in sh_dmac_request_dma()
135 free_irq(get_dmte_irq(chan->chan), chan); in sh_dmac_free_dma()
171 irq = get_dmte_irq(chan->chan); in sh_dmac_enable_dma()
182 irq = get_dmte_irq(chan->chan); in sh_dmac_disable_dma()
218 chan->chan == PVR2_CASCADE_CHAN)) in sh_dmac_xfer_dma()
219 __raw_writel(chan->sar, (dma_base_addr(chan->chan) + SAR)); in sh_dmac_xfer_dma()
221 chan->chan == PVR2_CASCADE_CHAN)) in sh_dmac_xfer_dma()
222 __raw_writel(chan->dar, (dma_base_addr(chan->chan) + DAR)); in sh_dmac_xfer_dma()
224 __raw_writel(chan->count >> calc_xmit_shift(chan), in sh_dmac_xfer_dma()
[all …]
/linux/arch/mips/include/asm/mach-au1x00/
A Dau1000_dma.h158 if (!chan) in enable_dma_buffer0()
167 if (!chan) in enable_dma_buffer1()
175 if (!chan) in enable_dma_buffers()
184 if (!chan) in start_dma()
196 if (!chan) in halt_dma()
212 if (!chan) in disable_dma()
225 if (!chan) in dma_halted()
236 if (!chan) in init_dma()
244 mode = chan->mode | (chan->dev_id << DMA_DID_BIT); in init_dma()
259 if (!chan) in set_dma_mode()
[all …]
/linux/drivers/video/fbdev/i810/
A Di810-i2c.c96 chan->adapter.algo_data = &chan->algo; in i810_setup_i2c_bus()
97 chan->adapter.dev.parent = &chan->par->dev->dev; in i810_setup_i2c_bus()
104 chan->algo.data = chan; in i810_setup_i2c_bus()
106 i2c_set_adapdata(&chan->adapter, chan); in i810_setup_i2c_bus()
109 chan->algo.setsda(chan, 1); in i810_setup_i2c_bus()
110 chan->algo.setscl(chan, 1); in i810_setup_i2c_bus()
120 chan->par = NULL; in i810_setup_i2c_bus()
146 if (par->chan[1].par) in i810_delete_i2c_busses()
148 par->chan[1].par = NULL; in i810_delete_i2c_busses()
150 if (par->chan[2].par) in i810_delete_i2c_busses()
[all …]
/linux/include/sound/
A Demu8000_reg.h24 #define EMU8000_CMD(reg, chan) ((reg)<<5 | (chan)) argument
30 #define EMU8000_CPF_READ(emu, chan) \ argument
32 #define EMU8000_PTRX_READ(emu, chan) \ argument
34 #define EMU8000_CVCF_READ(emu, chan) \ argument
36 #define EMU8000_VTFT_READ(emu, chan) \ argument
38 #define EMU8000_PSST_READ(emu, chan) \ argument
40 #define EMU8000_CSL_READ(emu, chan) \ argument
42 #define EMU8000_CCCA_READ(emu, chan) \ argument
70 #define EMU8000_INIT1_READ(emu, chan) \ argument
94 #define EMU8000_IP_READ(emu, chan) \ argument
[all …]
/linux/sound/soc/qcom/
A Dlpass-lpaif-reg.h87 #define LPAIF_IRQ_PER(chan) (1 << (LPAIF_IRQ_BITSTRIDE * (chan))) argument
88 #define LPAIF_IRQ_XRUN(chan) (2 << (LPAIF_IRQ_BITSTRIDE * (chan))) argument
89 #define LPAIF_IRQ_ERR(chan) (4 << (LPAIF_IRQ_BITSTRIDE * (chan))) argument
91 #define LPAIF_IRQ_ALL(chan) (7 << (LPAIF_IRQ_BITSTRIDE * (chan))) argument
92 #define LPAIF_IRQ_HDMI_REQ_ON_PRELOAD(chan) (1 << (14 + chan)) argument
93 #define LPAIF_IRQ_HDMI_SDEEP_AUD_DIS(chan) (1 << (24 + chan)) argument
114 #define LPAIF_RDMACTL_REG(v, chan) LPAIF_RDMA_REG_ADDR(v, 0x00, (chan)) argument
115 #define LPAIF_RDMABASE_REG(v, chan) LPAIF_RDMA_REG_ADDR(v, 0x04, (chan)) argument
116 #define LPAIF_RDMABUFF_REG(v, chan) LPAIF_RDMA_REG_ADDR(v, 0x08, (chan)) argument
117 #define LPAIF_RDMACURR_REG(v, chan) LPAIF_RDMA_REG_ADDR(v, 0x0C, (chan)) argument
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
A Dchan.c53 struct nvkm_fifo_chan *chan = object->chan; in nvkm_fifo_chan_child_fini() local
86 struct nvkm_fifo_chan *chan = object->chan; in nvkm_fifo_chan_child_init() local
119 struct nvkm_fifo_chan *chan = object->chan; in nvkm_fifo_chan_child_del() local
127 chan->func->engine_dtor(chan, engine); in nvkm_fifo_chan_child_del()
154 object->chan = chan; in nvkm_fifo_chan_child_new()
279 chan->user = ioremap(chan->addr, chan->size); in nvkm_fifo_chan_rd32()
294 chan->user = ioremap(chan->addr, chan->size); in nvkm_fifo_chan_wr32()
308 chan->func->fini(chan); in nvkm_fifo_chan_fini()
316 chan->func->init(chan); in nvkm_fifo_chan_init()
325 void *data = chan->func->dtor(chan); in nvkm_fifo_chan_dtor()
[all …]
A Dga102.c45 u32 chan; member
91 nvkm_wr32(device, chan->ctrl.chan, 0x00000003); in ga102_chan_fini()
101 nvkm_wr32(device, chan->ctrl.chan, 0xffffffff); in ga102_chan_fini()
117 nvkm_wr32(device, chan->ctrl.chan, 0x00000002); in ga102_chan_init()
127 if (chan->vmm) { in ga102_chan_dtor()
128 nvkm_vmm_part(chan->vmm, chan->inst); in ga102_chan_dtor()
136 return chan; in ga102_chan_dtor()
165 if (!(chan = kzalloc(sizeof(*chan), GFP_KERNEL))) in ga102_chan_new()
178 if (!chan->ctrl.runl) in ga102_chan_new()
181 chan->ctrl.chan = nvkm_rd32(device, chan->ctrl.runl + 0x004) & 0xfffffff0; in ga102_chan_new()
[all …]
/linux/drivers/dma/sf-pdma/
A Dsf-pdma.c59 if (chan->desc && !chan->desc->in_use) { in sf_pdma_alloc_desc()
61 return chan->desc; in sf_pdma_alloc_desc()
70 desc->chan = chan; in sf_pdma_alloc_desc()
114 chan->desc = desc; in sf_pdma_prep_dma_memcpy()
157 kfree(chan->desc); in sf_pdma_free_chan_resources()
158 chan->desc = NULL; in sf_pdma_free_chan_resources()
221 kfree(chan->desc); in sf_pdma_terminate_all()
271 if (vchan_issue_pending(&chan->vchan) && chan->desc) in sf_pdma_issue_pending()
287 struct sf_pdma_chan *chan = from_tasklet(chan, t, done_tasklet); in sf_pdma_donebh_tasklet() local
306 struct sf_pdma_chan *chan = from_tasklet(chan, t, err_tasklet); in sf_pdma_errbh_tasklet() local
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/
A Dnv25.c25 struct nv20_gr_chan *chan; in nv25_gr_chan_new() local
28 if (!(chan = kzalloc(sizeof(*chan), GFP_KERNEL))) in nv25_gr_chan_new()
31 chan->gr = gr; in nv25_gr_chan_new()
32 chan->chid = fifoch->chid; in nv25_gr_chan_new()
33 *pobject = &chan->object; in nv25_gr_chan_new()
37 &chan->inst); in nv25_gr_chan_new()
41 nvkm_kmap(chan->inst); in nv25_gr_chan_new()
42 nvkm_wo32(chan->inst, 0x0028, 0x00000001 | (chan->chid << 24)); in nv25_gr_chan_new()
54 nvkm_wo32(chan->inst, i, 0x00030303); in nv25_gr_chan_new()
56 nvkm_wo32(chan->inst, i, 0x00080000); in nv25_gr_chan_new()
[all …]
A Dnv34.c25 struct nv20_gr_chan *chan; in nv34_gr_chan_new() local
28 if (!(chan = kzalloc(sizeof(*chan), GFP_KERNEL))) in nv34_gr_chan_new()
31 chan->gr = gr; in nv34_gr_chan_new()
32 chan->chid = fifoch->chid; in nv34_gr_chan_new()
33 *pobject = &chan->object; in nv34_gr_chan_new()
37 &chan->inst); in nv34_gr_chan_new()
41 nvkm_kmap(chan->inst); in nv34_gr_chan_new()
42 nvkm_wo32(chan->inst, 0x0028, 0x00000001 | (chan->chid << 24)); in nv34_gr_chan_new()
52 nvkm_wo32(chan->inst, i, 0x0fff0000); in nv34_gr_chan_new()
55 nvkm_wo32(chan->inst, i, 0x07ff0000); in nv34_gr_chan_new()
[all …]
A Dnv35.c25 struct nv20_gr_chan *chan; in nv35_gr_chan_new() local
28 if (!(chan = kzalloc(sizeof(*chan), GFP_KERNEL))) in nv35_gr_chan_new()
31 chan->gr = gr; in nv35_gr_chan_new()
32 chan->chid = fifoch->chid; in nv35_gr_chan_new()
33 *pobject = &chan->object; in nv35_gr_chan_new()
37 &chan->inst); in nv35_gr_chan_new()
41 nvkm_kmap(chan->inst); in nv35_gr_chan_new()
42 nvkm_wo32(chan->inst, 0x0028, 0x00000001 | (chan->chid << 24)); in nv35_gr_chan_new()
52 nvkm_wo32(chan->inst, i, 0x0fff0000); in nv35_gr_chan_new()
55 nvkm_wo32(chan->inst, i, 0x07ff0000); in nv35_gr_chan_new()
[all …]
/linux/drivers/gpu/drm/gma500/
A Doaktrail_lvds_i2c.c63 #define LPC_READ_REG(chan, r) inl((chan)->reg + (r)) argument
64 #define LPC_WRITE_REG(chan, r, val) outl((val), (chan)->reg + (r)) argument
140 if (!chan) in oaktrail_lvds_i2c_init()
143 chan->drm_dev = dev; in oaktrail_lvds_i2c_init()
147 chan->adapter.algo_data = &chan->algo; in oaktrail_lvds_i2c_init()
153 chan->algo.udelay = 100; in oaktrail_lvds_i2c_init()
155 chan->algo.data = chan; in oaktrail_lvds_i2c_init()
157 i2c_set_adapdata(&chan->adapter, chan); in oaktrail_lvds_i2c_init()
159 set_data(chan, 1); in oaktrail_lvds_i2c_init()
160 set_clock(chan, 1); in oaktrail_lvds_i2c_init()
[all …]
/linux/drivers/video/fbdev/nvidia/
A Dnv_i2c.c92 chan->adapter.algo_data = &chan->algo; in nvidia_setup_i2c_bus()
93 chan->adapter.dev.parent = &chan->par->pci_dev->dev; in nvidia_setup_i2c_bus()
98 chan->algo.udelay = 40; in nvidia_setup_i2c_bus()
100 chan->algo.data = chan; in nvidia_setup_i2c_bus()
102 i2c_set_adapdata(&chan->adapter, chan); in nvidia_setup_i2c_bus()
116 chan->par = NULL; in nvidia_setup_i2c_bus()
124 par->chan[0].par = par; in nvidia_create_i2c_busses()
125 par->chan[1].par = par; in nvidia_create_i2c_busses()
126 par->chan[2].par = par; in nvidia_create_i2c_busses()
145 if (!par->chan[i].par) in nvidia_delete_i2c_busses()
[all …]

Completed in 103 milliseconds

12345678910>>...58