| /kernel/linux/linux-6.6/net/9p/ |
| H A D | trans_virtio.c | 107 struct virtio_chan *chan = client->trans; in p9_virtio_close() local 110 if (chan) in p9_virtio_close() 111 chan->inuse = false; in p9_virtio_close() 130 struct virtio_chan *chan = vq->vdev->priv; in req_done() local 138 spin_lock_irqsave(&chan->lock, flags); in req_done() 139 while ((req = virtqueue_get_buf(chan->vq, &len)) != NULL) { in req_done() 140 if (!chan->ring_bufs_avail) { in req_done() 141 chan->ring_bufs_avail = 1; in req_done() 147 p9_client_cb(chan->client, req, REQ_STATUS_RCVD); in req_done() 150 spin_unlock_irqrestore(&chan in req_done() 260 struct virtio_chan *chan = client->trans; p9_virtio_request() local 308 p9_get_mapped_pages(struct virtio_chan *chan, struct page ***pages, struct iov_iter *data, int count, size_t *offs, int *need_drop) p9_get_mapped_pages() argument 429 struct virtio_chan *chan = client->trans; p9_virtio_zc_request() local 569 struct virtio_chan *chan; p9_mount_tag_show() local 597 struct virtio_chan *chan; p9_virtio_probe() local 696 struct virtio_chan *chan; p9_virtio_create() local 736 struct virtio_chan *chan = vdev->priv; p9_virtio_remove() local [all...] |
| /kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
| H A D | channv50.c | 67 nv50_disp_chan_mthd(struct nv50_disp_chan *chan, int debug) in nv50_disp_chan_mthd() argument 69 struct nv50_disp *disp = chan->disp; in nv50_disp_chan_mthd() 71 const struct nv50_disp_chan_mthd *mthd = chan->mthd; in nv50_disp_chan_mthd() 81 u32 base = chan->head * mthd->addr; in nv50_disp_chan_mthd() 89 mthd->name, chan->chid.user); in nv50_disp_chan_mthd() 137 struct nv50_disp_chan *chan = nv50_disp_chan(object); in nv50_disp_chan_uevent_ctor() local 146 notify->index = chan->chid.user; in nv50_disp_chan_uevent_ctor() 161 nv50_disp_chan_user(struct nv50_disp_chan *chan, u64 *psize) in nv50_disp_chan_user() argument 164 return 0x640000 + (chan->chid.user * 0x1000); in nv50_disp_chan_user() 168 nv50_disp_chan_intr(struct nv50_disp_chan *chan, boo argument 179 struct nv50_disp_chan *chan = nv50_disp_chan(object); nv50_disp_chan_rd32() local 189 struct nv50_disp_chan *chan = nv50_disp_chan(object); nv50_disp_chan_wr32() local 200 struct nv50_disp_chan *chan = nv50_disp_chan(object); nv50_disp_chan_ntfy() local 216 struct nv50_disp_chan *chan = nv50_disp_chan(object); nv50_disp_chan_map() local 247 struct nv50_disp_chan *chan = nv50_disp_chan(oclass->parent); nv50_disp_chan_child_new() local 276 struct nv50_disp_chan *chan = nv50_disp_chan(object); nv50_disp_chan_child_get() local 300 struct nv50_disp_chan *chan = nv50_disp_chan(object); nv50_disp_chan_fini() local 309 struct nv50_disp_chan *chan = nv50_disp_chan(object); nv50_disp_chan_init() local 317 struct nv50_disp_chan *chan = nv50_disp_chan(object); nv50_disp_chan_dtor() local 344 struct nv50_disp_chan *chan; nv50_disp_chan_new_() local [all...] |
| /kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
| H A D | dmag84.c | 42 struct nv50_fifo_chan *chan; in g84_fifo_dma_new() local 56 if (!(chan = kzalloc(sizeof(*chan), GFP_KERNEL))) in g84_fifo_dma_new() 58 *pobject = &chan->base.object; in g84_fifo_dma_new() 61 oclass, chan); in g84_fifo_dma_new() 65 args->v0.chid = chan->base.chid; in g84_fifo_dma_new() 67 nvkm_kmap(chan->ramfc); in g84_fifo_dma_new() 68 nvkm_wo32(chan->ramfc, 0x08, lower_32_bits(args->v0.offset)); in g84_fifo_dma_new() 69 nvkm_wo32(chan->ramfc, 0x0c, upper_32_bits(args->v0.offset)); in g84_fifo_dma_new() 70 nvkm_wo32(chan in g84_fifo_dma_new() [all...] |
| H A D | gpfifogf100.c | 36 gf100_fifo_chan_ntfy(struct nvkm_fifo_chan *chan, u32 type, in gf100_fifo_chan_ntfy() argument 41 *pevent = &chan->fifo->uevent; in gf100_fifo_chan_ntfy() 44 *pevent = &chan->fifo->kevent; in gf100_fifo_chan_ntfy() 74 struct gf100_fifo_chan *chan = gf100_fifo_chan(base); in gf100_fifo_gpfifo_engine_fini() local 75 struct nvkm_subdev *subdev = &chan->fifo->base.engine.subdev; in gf100_fifo_gpfifo_engine_fini() 77 struct nvkm_gpuobj *inst = chan->base.inst; in gf100_fifo_gpfifo_engine_fini() 81 nvkm_wr32(device, 0x002634, chan->base.chid); in gf100_fifo_gpfifo_engine_fini() 83 if (nvkm_rd32(device, 0x002634) == chan->base.chid) in gf100_fifo_gpfifo_engine_fini() 87 chan->base.chid, chan in gf100_fifo_gpfifo_engine_fini() 110 struct gf100_fifo_chan *chan = gf100_fifo_chan(base); gf100_fifo_gpfifo_engine_init() local 128 struct gf100_fifo_chan *chan = gf100_fifo_chan(base); gf100_fifo_gpfifo_engine_dtor() local 138 struct gf100_fifo_chan *chan = gf100_fifo_chan(base); gf100_fifo_gpfifo_engine_ctor() local 161 struct gf100_fifo_chan *chan = gf100_fifo_chan(base); gf100_fifo_gpfifo_fini() local 180 struct gf100_fifo_chan *chan = gf100_fifo_chan(base); gf100_fifo_gpfifo_init() local 222 struct gf100_fifo_chan *chan; gf100_fifo_gpfifo_new() local [all...] |
| H A D | chang84.c | 34 g84_fifo_chan_ntfy(struct nvkm_fifo_chan *chan, u32 type, in g84_fifo_chan_ntfy() argument 39 *pevent = &chan->fifo->uevent; in g84_fifo_chan_ntfy() 93 struct nv50_fifo_chan *chan = nv50_fifo_chan(base); in g84_fifo_chan_engine_fini() local 94 struct nv50_fifo *fifo = chan->fifo; in g84_fifo_chan_engine_fini() 107 nvkm_wr32(device, 0x0032fc, chan->base.inst->addr >> 12); in g84_fifo_chan_engine_fini() 115 chan->base.chid, chan->base.object.client->name); in g84_fifo_chan_engine_fini() 120 nvkm_kmap(chan->eng); in g84_fifo_chan_engine_fini() 121 nvkm_wo32(chan->eng, offset + 0x00, 0x00000000); in g84_fifo_chan_engine_fini() 122 nvkm_wo32(chan in g84_fifo_chan_engine_fini() 136 struct nv50_fifo_chan *chan = nv50_fifo_chan(base); g84_fifo_chan_engine_init() local 164 struct nv50_fifo_chan *chan = nv50_fifo_chan(base); g84_fifo_chan_engine_ctor() local 177 struct nv50_fifo_chan *chan = nv50_fifo_chan(base); g84_fifo_chan_object_ctor() local 207 struct nv50_fifo_chan *chan = nv50_fifo_chan(base); g84_fifo_chan_init() local 232 g84_fifo_chan_ctor(struct nv50_fifo *fifo, u64 vmm, u64 push, const struct nvkm_oclass *oclass, struct nv50_fifo_chan *chan) g84_fifo_chan_ctor() argument [all...] |
| /kernel/linux/linux-5.10/arch/sh/drivers/pci/ |
| H A D | pci-sh7751.c | 19 static int __init __area_sdram_check(struct pci_channel *chan, in __area_sdram_check() argument 31 pci_write_reg(chan, word, SH4_PCIBCR1); in __area_sdram_check() 40 pci_write_reg(chan, word, SH4_PCIBCR2); in __area_sdram_check() 77 struct pci_channel *chan = &sh7751_pci_controller; in sh7751_pci_init() local 83 chan->reg_base = 0xfe200000; in sh7751_pci_init() 86 id = pci_read_reg(chan, SH7751_PCICONF0); in sh7751_pci_init() 99 pci_write_reg(chan, 0, SH4_PCICLKR); in sh7751_pci_init() 102 pci_write_reg(chan, word, SH4_PCIPINT); in sh7751_pci_init() 110 pci_write_reg(chan, word, SH7751_PCICONF1); in sh7751_pci_init() 114 pci_write_reg(chan, wor in sh7751_pci_init() [all...] |
| H A D | pcie-sh7786.c | 155 static int __init phy_wait_for_ack(struct pci_channel *chan) in phy_wait_for_ack() argument 160 if (pci_read_reg(chan, SH4A_PCIEPHYADRR) & (1 << BITS_ACK)) in phy_wait_for_ack() 169 static int __init pci_wait_for_irq(struct pci_channel *chan, unsigned int mask) in pci_wait_for_irq() argument 174 if ((pci_read_reg(chan, SH4A_PCIEINTR) & mask) == mask) in pci_wait_for_irq() 183 static void __init phy_write_reg(struct pci_channel *chan, unsigned int addr, in phy_write_reg() argument 192 pci_write_reg(chan, data, SH4A_PCIEPHYDOUTR); in phy_write_reg() 193 pci_write_reg(chan, phyaddr, SH4A_PCIEPHYADRR); in phy_write_reg() 195 phy_wait_for_ack(chan); in phy_write_reg() 198 pci_write_reg(chan, 0, SH4A_PCIEPHYDOUTR); in phy_write_reg() 199 pci_write_reg(chan, in phy_write_reg() 206 struct pci_channel *chan = port->hose; pcie_clk_init() local 261 struct pci_channel *chan = port->hose; phy_init() local 294 struct pci_channel *chan = port->hose; pcie_reset() local 304 struct pci_channel *chan = port->hose; pcie_init() local [all...] |
| /kernel/linux/linux-6.6/arch/sh/drivers/pci/ |
| H A D | pci-sh7751.c | 19 static int __init __area_sdram_check(struct pci_channel *chan, in __area_sdram_check() argument 31 pci_write_reg(chan, word, SH4_PCIBCR1); in __area_sdram_check() 40 pci_write_reg(chan, word, SH4_PCIBCR2); in __area_sdram_check() 77 struct pci_channel *chan = &sh7751_pci_controller; in sh7751_pci_init() local 83 chan->reg_base = 0xfe200000; in sh7751_pci_init() 86 id = pci_read_reg(chan, SH7751_PCICONF0); in sh7751_pci_init() 99 pci_write_reg(chan, 0, SH4_PCICLKR); in sh7751_pci_init() 102 pci_write_reg(chan, word, SH4_PCIPINT); in sh7751_pci_init() 110 pci_write_reg(chan, word, SH7751_PCICONF1); in sh7751_pci_init() 114 pci_write_reg(chan, wor in sh7751_pci_init() [all...] |
| H A D | pcie-sh7786.c | 154 static int __init phy_wait_for_ack(struct pci_channel *chan) in phy_wait_for_ack() argument 159 if (pci_read_reg(chan, SH4A_PCIEPHYADRR) & (1 << BITS_ACK)) in phy_wait_for_ack() 168 static int __init pci_wait_for_irq(struct pci_channel *chan, unsigned int mask) in pci_wait_for_irq() argument 173 if ((pci_read_reg(chan, SH4A_PCIEINTR) & mask) == mask) in pci_wait_for_irq() 182 static void __init phy_write_reg(struct pci_channel *chan, unsigned int addr, in phy_write_reg() argument 191 pci_write_reg(chan, data, SH4A_PCIEPHYDOUTR); in phy_write_reg() 192 pci_write_reg(chan, phyaddr, SH4A_PCIEPHYADRR); in phy_write_reg() 194 phy_wait_for_ack(chan); in phy_write_reg() 197 pci_write_reg(chan, 0, SH4A_PCIEPHYDOUTR); in phy_write_reg() 198 pci_write_reg(chan, in phy_write_reg() 205 struct pci_channel *chan = port->hose; pcie_clk_init() local 260 struct pci_channel *chan = port->hose; phy_init() local 293 struct pci_channel *chan = port->hose; pcie_reset() local 303 struct pci_channel *chan = port->hose; pcie_init() local [all...] |
| /kernel/linux/linux-6.6/drivers/dma/dw-edma/ |
| H A D | dw-hdma-v0-core.c | 76 static enum dma_status dw_hdma_v0_core_ch_status(struct dw_edma_chan *chan) in dw_hdma_v0_core_ch_status() argument 78 struct dw_edma *dw = chan->dw; in dw_hdma_v0_core_ch_status() 82 GET_CH_32(dw, chan->id, chan->dir, ch_stat)); in dw_hdma_v0_core_ch_status() 92 static void dw_hdma_v0_core_clear_done_int(struct dw_edma_chan *chan) in dw_hdma_v0_core_clear_done_int() argument 94 struct dw_edma *dw = chan->dw; in dw_hdma_v0_core_clear_done_int() 96 SET_CH_32(dw, chan->dir, chan->id, int_clear, HDMA_V0_STOP_INT_MASK); in dw_hdma_v0_core_clear_done_int() 99 static void dw_hdma_v0_core_clear_abort_int(struct dw_edma_chan *chan) in dw_hdma_v0_core_clear_abort_int() argument 101 struct dw_edma *dw = chan in dw_hdma_v0_core_clear_abort_int() 106 dw_hdma_v0_core_status_int(struct dw_edma_chan *chan) dw_hdma_v0_core_status_int() argument 120 struct dw_edma_chan *chan; dw_hdma_v0_core_handle_int() local 198 struct dw_edma_chan *chan = chunk->chan; dw_hdma_v0_core_write_chunk() local 241 struct dw_edma_chan *chan = chunk->chan; dw_hdma_v0_core_start() local 276 dw_hdma_v0_core_ch_config(struct dw_edma_chan *chan) dw_hdma_v0_core_ch_config() argument [all...] |
| H A D | dw-edma-core.c | 32 struct device *chan2dev(struct dw_edma_chan *chan) in chan2dev() argument 34 return &chan->vc.chan.dev->device; in chan2dev() 44 u64 dw_edma_get_pci_address(struct dw_edma_chan *chan, phys_addr_t cpu_addr) in dw_edma_get_pci_address() argument 46 struct dw_edma_chip *chip = chan->dw->chip; in dw_edma_get_pci_address() 78 struct dw_edma_chip *chip = desc->chan->dw->chip; in dw_edma_alloc_chunk() 79 struct dw_edma_chan *chan = desc->chan; in dw_edma_alloc_chunk() local 87 chunk->chan = chan; in dw_edma_alloc_chunk() 121 dw_edma_alloc_desc(struct dw_edma_chan *chan) dw_edma_alloc_desc() argument 185 dw_edma_start_transfer(struct dw_edma_chan *chan) dw_edma_start_transfer() argument 218 struct dw_edma_chan *chan = dchan2dw_edma_chan(dchan); dw_edma_device_caps() local 236 struct dw_edma_chan *chan = dchan2dw_edma_chan(dchan); dw_edma_device_config() local 246 struct dw_edma_chan *chan = dchan2dw_edma_chan(dchan); dw_edma_device_pause() local 263 struct dw_edma_chan *chan = dchan2dw_edma_chan(dchan); dw_edma_device_resume() local 282 struct dw_edma_chan *chan = dchan2dw_edma_chan(dchan); dw_edma_device_terminate_all() local 310 struct dw_edma_chan *chan = dchan2dw_edma_chan(dchan); dw_edma_device_issue_pending() local 329 struct dw_edma_chan *chan = dchan2dw_edma_chan(dchan); dw_edma_device_tx_status() local 364 struct dw_edma_chan *chan = dchan2dw_edma_chan(xfer->dchan); dw_edma_device_transfer() local 598 dw_edma_done_interrupt(struct dw_edma_chan *chan) dw_edma_done_interrupt() argument 639 dw_edma_abort_interrupt(struct dw_edma_chan *chan) dw_edma_abort_interrupt() argument 685 struct dw_edma_chan *chan = dchan2dw_edma_chan(dchan); dw_edma_alloc_chan_resources() local 714 struct dw_edma_chan *chan; dw_edma_channel_setup() local 986 struct dw_edma_chan *chan, *_chan; dw_edma_remove() local [all...] |
| /kernel/linux/linux-5.10/drivers/dma/ |
| H A D | hisi_dma.c | 108 struct hisi_dma_chan chan[]; member 113 return container_of(c, struct hisi_dma_chan, vc.chan); in to_hisi_dma_chan() 188 static void hisi_dma_reset_or_disable_hw_chan(struct hisi_dma_chan *chan, in hisi_dma_reset_or_disable_hw_chan() argument 191 struct hisi_dma_dev *hdma_dev = chan->hdma_dev; in hisi_dma_reset_or_disable_hw_chan() 192 u32 index = chan->qp_num, tmp; in hisi_dma_reset_or_disable_hw_chan() 227 struct hisi_dma_chan *chan = to_hisi_dma_chan(c); in hisi_dma_free_chan_resources() local 228 struct hisi_dma_dev *hdma_dev = chan->hdma_dev; in hisi_dma_free_chan_resources() 230 hisi_dma_reset_or_disable_hw_chan(chan, false); in hisi_dma_free_chan_resources() 231 vchan_free_chan_resources(&chan->vc); in hisi_dma_free_chan_resources() 233 memset(chan in hisi_dma_free_chan_resources() 249 struct hisi_dma_chan *chan = to_hisi_dma_chan(c); hisi_dma_prep_dma_memcpy() local 270 hisi_dma_start_transfer(struct hisi_dma_chan *chan) hisi_dma_start_transfer() argument 305 struct hisi_dma_chan *chan = to_hisi_dma_chan(c); hisi_dma_issue_pending() local 318 struct hisi_dma_chan *chan = to_hisi_dma_chan(c); hisi_dma_terminate_all() local 342 struct hisi_dma_chan *chan = to_hisi_dma_chan(c); hisi_dma_synchronize() local 352 struct hisi_dma_chan *chan; hisi_dma_alloc_qps_mem() local 373 struct hisi_dma_chan *chan = &hdma_dev->chan[index]; hisi_dma_init_hw_qp() local 433 struct hisi_dma_chan *chan = data; hisi_dma_irq() local [all...] |
| /kernel/linux/linux-5.10/drivers/soc/ti/ |
| H A D | knav_dma.c | 144 static bool check_config(struct knav_dma_chan *chan, struct knav_dma_cfg *cfg) in check_config() argument 146 if (!memcmp(&chan->cfg, cfg, sizeof(*cfg))) in check_config() 152 static int chan_start(struct knav_dma_chan *chan, in chan_start() argument 157 spin_lock(&chan->lock); in chan_start() 158 if ((chan->direction == DMA_MEM_TO_DEV) && chan->reg_chan) { in chan_start() 163 writel_relaxed(v, &chan->reg_chan->mode); in chan_start() 164 writel_relaxed(DMA_ENABLE, &chan->reg_chan->control); in chan_start() 167 if (chan->reg_tx_sched) in chan_start() 168 writel_relaxed(cfg->u.tx.priority, &chan in chan_start() 210 chan_teardown(struct knav_dma_chan *chan) chan_teardown() argument 236 chan_stop(struct knav_dma_chan *chan) chan_stop() argument 319 dma_debug_show_channels(struct seq_file *s, struct knav_dma_chan *chan) dma_debug_show_channels() argument 350 struct knav_dma_chan *chan; dma_debug_show_devices() local 418 struct knav_dma_chan *chan; knav_dma_open_channel() local 508 struct knav_dma_chan *chan = channel; knav_dma_close_channel() local 552 pktdma_init_rx_chan(struct knav_dma_chan *chan, u32 flow) pktdma_init_rx_chan() argument 564 pktdma_init_tx_chan(struct knav_dma_chan *chan, u32 channel) pktdma_init_tx_chan() argument 582 struct knav_dma_chan *chan; pktdma_init_chan() local [all...] |
| /kernel/linux/linux-6.6/drivers/soc/ti/ |
| H A D | knav_dma.c | 136 static bool check_config(struct knav_dma_chan *chan, struct knav_dma_cfg *cfg) in check_config() argument 138 if (!memcmp(&chan->cfg, cfg, sizeof(*cfg))) in check_config() 144 static int chan_start(struct knav_dma_chan *chan, in chan_start() argument 149 spin_lock(&chan->lock); in chan_start() 150 if ((chan->direction == DMA_MEM_TO_DEV) && chan->reg_chan) { in chan_start() 155 writel_relaxed(v, &chan->reg_chan->mode); in chan_start() 156 writel_relaxed(DMA_ENABLE, &chan->reg_chan->control); in chan_start() 159 if (chan->reg_tx_sched) in chan_start() 160 writel_relaxed(cfg->u.tx.priority, &chan in chan_start() 202 chan_teardown(struct knav_dma_chan *chan) chan_teardown() argument 228 chan_stop(struct knav_dma_chan *chan) chan_stop() argument 311 dma_debug_show_channels(struct seq_file *s, struct knav_dma_chan *chan) dma_debug_show_channels() argument 342 struct knav_dma_chan *chan; dma_debug_show_devices() local 411 struct knav_dma_chan *chan = NULL, *iter2; knav_dma_open_channel() local 498 struct knav_dma_chan *chan = channel; knav_dma_close_channel() local 542 pktdma_init_rx_chan(struct knav_dma_chan *chan, u32 flow) pktdma_init_rx_chan() argument 554 pktdma_init_tx_chan(struct knav_dma_chan *chan, u32 channel) pktdma_init_tx_chan() argument 572 struct knav_dma_chan *chan; pktdma_init_chan() local [all...] |
| /kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/sw/ |
| H A D | nv50.c | 28 #include <engine/fifo/chan.h> 41 struct nv50_sw_chan *chan = in nv50_sw_chan_vblsem_release() local 42 container_of(notify, typeof(*chan), vblank.notify[notify->index]); in nv50_sw_chan_vblsem_release() 43 struct nvkm_sw *sw = chan->base.sw; in nv50_sw_chan_vblsem_release() 46 nvkm_wr32(device, 0x001704, chan->base.fifo->inst->addr >> 12); in nv50_sw_chan_vblsem_release() 47 nvkm_wr32(device, 0x001710, 0x80000000 | chan->vblank.ctxdma); in nv50_sw_chan_vblsem_release() 51 nvkm_wr32(device, 0x001570, chan->vblank.offset); in nv50_sw_chan_vblsem_release() 52 nvkm_wr32(device, 0x001574, chan->vblank.value); in nv50_sw_chan_vblsem_release() 54 nvkm_wr32(device, 0x060010, chan->vblank.offset); in nv50_sw_chan_vblsem_release() 55 nvkm_wr32(device, 0x060014, chan in nv50_sw_chan_vblsem_release() 64 struct nv50_sw_chan *chan = nv50_sw_chan(base); nv50_sw_chan_mthd() local 86 struct nv50_sw_chan *chan = nv50_sw_chan(base); nv50_sw_chan_dtor() local 104 struct nv50_sw_chan *chan; nv50_sw_chan_new() local [all...] |
| H A D | chan.c | 24 #include "chan.h" 33 nvkm_sw_chan_mthd(struct nvkm_sw_chan *chan, int subc, u32 mthd, u32 data) in nvkm_sw_chan_mthd() argument 39 nvkm_event_send(&chan->event, 1, 0, NULL, 0); in nvkm_sw_chan_mthd() 42 if (chan->func->mthd) in nvkm_sw_chan_mthd() 43 return chan->func->mthd(chan, subc, mthd, data); in nvkm_sw_chan_mthd() 75 struct nvkm_sw_chan *chan = nvkm_sw_chan(object); in nvkm_sw_chan_dtor() local 76 struct nvkm_sw *sw = chan->sw; in nvkm_sw_chan_dtor() 78 void *data = chan; in nvkm_sw_chan_dtor() 80 if (chan in nvkm_sw_chan_dtor() 96 nvkm_sw_chan_ctor(const struct nvkm_sw_chan_func *func, struct nvkm_sw *sw, struct nvkm_fifo_chan *fifo, const struct nvkm_oclass *oclass, struct nvkm_sw_chan *chan) nvkm_sw_chan_ctor() argument [all...] |
| /kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/engine/sw/ |
| H A D | nv50.c | 28 #include <engine/fifo/chan.h> 41 struct nv50_sw_chan *chan = in nv50_sw_chan_vblsem_release() local 42 container_of(notify, typeof(*chan), vblank.notify[notify->id]); in nv50_sw_chan_vblsem_release() 43 struct nvkm_sw *sw = chan->base.sw; in nv50_sw_chan_vblsem_release() 46 nvkm_wr32(device, 0x001704, chan->base.fifo->inst->addr >> 12); in nv50_sw_chan_vblsem_release() 47 nvkm_wr32(device, 0x001710, 0x80000000 | chan->vblank.ctxdma); in nv50_sw_chan_vblsem_release() 51 nvkm_wr32(device, 0x001570, chan->vblank.offset); in nv50_sw_chan_vblsem_release() 52 nvkm_wr32(device, 0x001574, chan->vblank.value); in nv50_sw_chan_vblsem_release() 54 nvkm_wr32(device, 0x060010, chan->vblank.offset); in nv50_sw_chan_vblsem_release() 55 nvkm_wr32(device, 0x060014, chan in nv50_sw_chan_vblsem_release() 64 struct nv50_sw_chan *chan = nv50_sw_chan(base); nv50_sw_chan_mthd() local 86 struct nv50_sw_chan *chan = nv50_sw_chan(base); nv50_sw_chan_dtor() local 106 struct nv50_sw_chan *chan; nv50_sw_chan_new() local [all...] |
| H A D | chan.c | 24 #include "chan.h" 32 nvkm_sw_chan_mthd(struct nvkm_sw_chan *chan, int subc, u32 mthd, u32 data) in nvkm_sw_chan_mthd() argument 38 nvkm_event_ntfy(&chan->event, 0, NVKM_SW_CHAN_EVENT_PAGE_FLIP); in nvkm_sw_chan_mthd() 41 if (chan->func->mthd) in nvkm_sw_chan_mthd() 42 return chan->func->mthd(chan, subc, mthd, data); in nvkm_sw_chan_mthd() 55 struct nvkm_sw_chan *chan = nvkm_sw_chan(object); in nvkm_sw_chan_dtor() local 56 struct nvkm_sw *sw = chan->sw; in nvkm_sw_chan_dtor() 58 void *data = chan; in nvkm_sw_chan_dtor() 60 if (chan in nvkm_sw_chan_dtor() 76 nvkm_sw_chan_ctor(const struct nvkm_sw_chan_func *func, struct nvkm_sw *sw, struct nvkm_chan *fifo, const struct nvkm_oclass *oclass, struct nvkm_sw_chan *chan) nvkm_sw_chan_ctor() argument [all...] |
| /kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/ |
| H A D | dwmac4_lib.c | 28 void dwmac4_set_rx_tail_ptr(void __iomem *ioaddr, u32 tail_ptr, u32 chan) in dwmac4_set_rx_tail_ptr() argument 30 writel(tail_ptr, ioaddr + DMA_CHAN_RX_END_ADDR(chan)); in dwmac4_set_rx_tail_ptr() 33 void dwmac4_set_tx_tail_ptr(void __iomem *ioaddr, u32 tail_ptr, u32 chan) in dwmac4_set_tx_tail_ptr() argument 35 writel(tail_ptr, ioaddr + DMA_CHAN_TX_END_ADDR(chan)); in dwmac4_set_tx_tail_ptr() 38 void dwmac4_dma_start_tx(void __iomem *ioaddr, u32 chan) in dwmac4_dma_start_tx() argument 40 u32 value = readl(ioaddr + DMA_CHAN_TX_CONTROL(chan)); in dwmac4_dma_start_tx() 43 writel(value, ioaddr + DMA_CHAN_TX_CONTROL(chan)); in dwmac4_dma_start_tx() 50 void dwmac4_dma_stop_tx(void __iomem *ioaddr, u32 chan) in dwmac4_dma_stop_tx() argument 52 u32 value = readl(ioaddr + DMA_CHAN_TX_CONTROL(chan)); in dwmac4_dma_stop_tx() 55 writel(value, ioaddr + DMA_CHAN_TX_CONTROL(chan)); in dwmac4_dma_stop_tx() 58 dwmac4_dma_start_rx(void __iomem *ioaddr, u32 chan) dwmac4_dma_start_rx() argument 71 dwmac4_dma_stop_rx(void __iomem *ioaddr, u32 chan) dwmac4_dma_stop_rx() argument 79 dwmac4_set_tx_ring_len(void __iomem *ioaddr, u32 len, u32 chan) dwmac4_set_tx_ring_len() argument 84 dwmac4_set_rx_ring_len(void __iomem *ioaddr, u32 len, u32 chan) dwmac4_set_rx_ring_len() argument 89 dwmac4_enable_dma_irq(void __iomem *ioaddr, u32 chan, bool rx, bool tx) dwmac4_enable_dma_irq() argument 101 dwmac410_enable_dma_irq(void __iomem *ioaddr, u32 chan, bool rx, bool tx) dwmac410_enable_dma_irq() argument 113 dwmac4_disable_dma_irq(void __iomem *ioaddr, u32 chan, bool rx, bool tx) dwmac4_disable_dma_irq() argument 125 dwmac410_disable_dma_irq(void __iomem *ioaddr, u32 chan, bool rx, bool tx) dwmac410_disable_dma_irq() argument 137 dwmac4_dma_interrupt(void __iomem *ioaddr, struct stmmac_extra_stats *x, u32 chan) dwmac4_dma_interrupt() argument [all...] |
| /kernel/linux/linux-5.10/drivers/iio/ |
| H A D | inkern.c | 80 const struct iio_chan_spec *chan = NULL; in iio_chan_spec_from_name() local 85 chan = &indio_dev->channels[i]; in iio_chan_spec_from_name() 88 return chan; in iio_chan_spec_from_name() 188 struct iio_channel *chan = NULL; in of_iio_channel_get_by_name() local 203 chan = of_iio_channel_get(np, index); in of_iio_channel_get_by_name() 204 if (!IS_ERR(chan) || PTR_ERR(chan) == -EPROBE_DEFER) in of_iio_channel_get_by_name() 222 return chan; in of_iio_channel_get_by_name() 462 struct iio_channel *chan = &channels[0]; in iio_channel_release_all() local 464 while (chan in iio_channel_release_all() 500 iio_channel_read(struct iio_channel *chan, int *val, int *val2, enum iio_chan_info_enum info) iio_channel_read() argument 527 iio_read_channel_raw(struct iio_channel *chan, int *val) iio_read_channel_raw() argument 545 iio_read_channel_average_raw(struct iio_channel *chan, int *val) iio_read_channel_average_raw() argument 563 iio_convert_raw_to_processed_unlocked(struct iio_channel *chan, int raw, int *processed, unsigned int scale) iio_convert_raw_to_processed_unlocked() argument 641 iio_convert_raw_to_processed(struct iio_channel *chan, int raw, int *processed, unsigned int scale) iio_convert_raw_to_processed() argument 661 iio_read_channel_attribute(struct iio_channel *chan, int *val, int *val2, enum iio_chan_info_enum attribute) iio_read_channel_attribute() argument 680 iio_read_channel_offset(struct iio_channel *chan, int *val, int *val2) iio_read_channel_offset() argument 686 iio_read_channel_processed(struct iio_channel *chan, int *val) iio_read_channel_processed() argument 713 iio_read_channel_scale(struct iio_channel *chan, int *val, int *val2) iio_read_channel_scale() argument 719 iio_channel_read_avail(struct iio_channel *chan, const int **vals, int *type, int *length, enum iio_chan_info_enum info) iio_channel_read_avail() argument 730 iio_read_avail_channel_attribute(struct iio_channel *chan, const int **vals, int *type, int *length, enum iio_chan_info_enum attribute) iio_read_avail_channel_attribute() argument 750 iio_read_avail_channel_raw(struct iio_channel *chan, const int **vals, int *length) iio_read_avail_channel_raw() argument 767 iio_channel_read_max(struct iio_channel *chan, int *val, int *val2, int *type, enum iio_chan_info_enum info) iio_channel_read_max() argument 814 iio_read_max_channel_raw(struct iio_channel *chan, int *val) iio_read_max_channel_raw() argument 833 iio_get_channel_type(struct iio_channel *chan, enum iio_chan_type *type) iio_get_channel_type() argument 852 iio_channel_write(struct iio_channel *chan, int val, int val2, enum iio_chan_info_enum info) iio_channel_write() argument 859 iio_write_channel_attribute(struct iio_channel *chan, int val, int val2, enum iio_chan_info_enum attribute) iio_write_channel_attribute() argument 878 iio_write_channel_raw(struct iio_channel *chan, int val) iio_write_channel_raw() argument 884 iio_get_channel_ext_info_count(struct iio_channel *chan) iio_get_channel_ext_info_count() argument 899 iio_lookup_ext_info( const struct iio_channel *chan, const char *attr) iio_lookup_ext_info() argument 916 iio_read_channel_ext_info(struct iio_channel *chan, const char *attr, char *buf) iio_read_channel_ext_info() argument 930 iio_write_channel_ext_info(struct iio_channel *chan, const char *attr, const char *buf, size_t len) iio_write_channel_ext_info() argument [all...] |
| /kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
| H A D | g84.c | 26 #include "chan.h" 35 g84_chan_bind(struct nvkm_chan *chan) in g84_chan_bind() argument 37 struct nvkm_device *device = chan->cgrp->runl->fifo->engine.subdev.device; in g84_chan_bind() 39 nvkm_wr32(device, 0x002600 + (chan->id * 4), chan->ramfc->addr >> 8); in g84_chan_bind() 43 g84_chan_ramfc_write(struct nvkm_chan *chan, u64 offset, u64 length, u32 devm, bool priv) in g84_chan_ramfc_write() argument 45 struct nvkm_device *device = chan->cgrp->runl->fifo->engine.subdev.device; in g84_chan_ramfc_write() 49 ret = nvkm_gpuobj_new(device, 0x0200, 0, true, chan->inst, &chan->eng); in g84_chan_ramfc_write() 53 ret = nvkm_gpuobj_new(device, 0x4000, 0, false, chan in g84_chan_ramfc_write() 106 g84_ectx_bind(struct nvkm_engn *engn, struct nvkm_cctx *cctx, struct nvkm_chan *chan) g84_ectx_bind() argument [all...] |
| H A D | uchan.c | 25 #include "chan.h" 38 struct nvkm_chan *chan; member 44 struct nvkm_chan *chan = nvkm_uchan(object)->chan; in nvkm_uchan_uevent() local 45 struct nvkm_runl *runl = chan->cgrp->runl; in nvkm_uchan_uevent() 58 return nvkm_uevent_add(uevent, &runl->chid->event, chan->id, in nvkm_uchan_uevent() 69 struct nvkm_chan *chan; member 78 struct nvkm_chan *chan = uobj->chan; in nvkm_uchan_object_fini_1() local 86 if (refcount_dec_and_mutex_lock(&cctx->uses, &chan in nvkm_uchan_object_fini_1() 101 struct nvkm_chan *chan = uobj->chan; nvkm_uchan_object_init_0() local 157 struct nvkm_chan *chan = nvkm_uchan(oclass->parent)->chan; nvkm_uchan_object_new() local 206 struct nvkm_chan *chan = nvkm_uchan(object)->chan; nvkm_uchan_sclass() local 258 struct nvkm_chan *chan = nvkm_uchan(object)->chan; nvkm_uchan_map() local 274 struct nvkm_chan *chan = nvkm_uchan(object)->chan; nvkm_uchan_fini() local 288 struct nvkm_chan *chan = nvkm_uchan(object)->chan; nvkm_uchan_init() local 330 struct nvkm_chan *chan; nvkm_uchan_new() local [all...] |
| /foundation/communication/bluetooth_service/services/bluetooth/stack/src/l2cap/ |
| H A D | l2cap_le.c | 174 static void L2capLeGetChannel2(uint16_t lcid, L2capLeConnection **conn, L2capLeChannel **chan) in L2capLeGetChannel2() argument 182 *chan = L2capLeGetChannel(*conn, lcid); in L2capLeGetChannel2() 183 if ((*chan) != NULL) { in L2capLeGetChannel2() 193 static void L2capLeGetChannel3(uint16_t aclHandle, uint16_t lcid, L2capLeConnection **conn, L2capLeChannel **chan) in L2capLeGetChannel3() argument 200 *chan = L2capLeGetChannel(*conn, lcid); in L2capLeGetChannel3() 206 L2capLeChannel *chan = NULL; in L2capLeGetChannel4() local 211 chan = ListGetNodeData(node); in L2capLeGetChannel4() 212 if (chan->connIdentifier == ident) { in L2capLeGetChannel4() 213 return chan; in L2capLeGetChannel4() 229 L2capLeChannel *chan in L2capLeGetNewLcid() local 254 L2capLeChannel *chan = NULL; L2capLeNewChannel() local 273 L2capLeDestroyChannel(L2capLeChannel *chan) L2capLeDestroyChannel() argument 302 L2capLeDeleteChannel(L2capLeConnection *conn, L2capLeChannel *chan, uint16_t removeAcl) L2capLeDeleteChannel() argument 344 L2capLeChannel *chan = NULL; L2capLeDeleteConnection() local 418 L2capLeChannel *chan = NULL; L2capLeResponseTimeout() local 447 L2capSendCreditBasedConnectionReq(L2capLeConnection *conn, L2capLeChannel *chan) L2capSendCreditBasedConnectionReq() argument 470 L2capSendCreditBasedConnectionRsp( L2capLeConnection *conn, L2capLeChannel *chan, uint8_t ident, uint16_t result) L2capSendCreditBasedConnectionRsp() argument 491 L2capLeSendDisconnectionReq(L2capLeConnection *conn, const L2capLeChannel *chan) L2capLeSendDisconnectionReq() argument 510 L2capLeSendDisconnectionRsp(const L2capLeConnection *conn, const L2capLeChannel *chan, uint8_t ident) L2capLeSendDisconnectionRsp() argument 527 L2capLeSendFlowControlCredit(L2capLeConnection *conn, const L2capLeChannel *chan, uint16_t credit) L2capLeSendFlowControlCredit() argument 544 L2capLeTxWithCredit(const L2capLeConnection *conn, L2capLeChannel *chan) L2capLeTxWithCredit() argument 602 L2capLeSegmentPacketWithCredit(const L2capLeChannel *chan, Packet *pkt) L2capLeSegmentPacketWithCredit() argument 699 L2capLeChannel *chan = NULL; L2capLeProcessCreditBasedConnectionReq() local 760 L2capLeChannel *chan = NULL; L2capLeProcessCreditBasedConnectionRsp() local 819 L2capLeChannel *chan = NULL; L2capLeProcessDisconnectionReq() local 865 L2capLeChannel *chan = NULL; L2capLeProcessDisconnectionRsp() local 905 L2capLeChannel *chan = NULL; L2capLeProcessFlowControlCredit() local 1027 L2capLeDataCallback(const L2capLeChannel *chan, Packet *pkt) L2capLeDataCallback() argument 1045 L2capLeChannel *chan = NULL; L2capLeProcessLeData() local 1113 L2capLeChannel *chan = NULL; L2capLeCleanAllChannels() local 1168 L2capLeChannel *chan = NULL; L2capLeAclConnectProcess() local 1258 L2capLeChannel *chan = NULL; L2CAP_LeCreditBasedConnectionReq() local 1316 L2capLeChannel *chan = NULL; L2CAP_LeCreditBasedConnectionRsp() local 1361 L2capLeChannel *chan = NULL; L2CAP_LeDisconnectionReq() local 1385 L2capLeChannel *chan = NULL; L2CAP_LeDisconnectionRsp() local 1407 L2capLeChannel *chan = NULL; L2CAP_LeSendData() local 1514 L2capLeChannel *chan = NULL; L2CAP_LeDeregisterService() local 1537 L2CAP_LeRegisterFixChannel(uint16_t cid, const L2capLeFixChannel *chan) L2CAP_LeRegisterFixChannel() argument [all...] |
| /kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
| H A D | nv20.c | 8 #include <engine/fifo/chan.h> 19 struct nv20_gr_chan *chan = nv20_gr_chan(object); in nv20_gr_chan_init() local 20 struct nv20_gr *gr = chan->gr; in nv20_gr_chan_init() 21 u32 inst = nvkm_memory_addr(chan->inst); in nv20_gr_chan_init() 24 nvkm_wo32(gr->ctxtab, chan->chid * 4, inst >> 4); in nv20_gr_chan_init() 32 struct nv20_gr_chan *chan = nv20_gr_chan(object); in nv20_gr_chan_fini() local 33 struct nv20_gr *gr = chan->gr; in nv20_gr_chan_fini() 35 u32 inst = nvkm_memory_addr(chan->inst); in nv20_gr_chan_fini() 41 if (chan->chid == chid) { in nv20_gr_chan_fini() 54 nvkm_wo32(gr->ctxtab, chan in nv20_gr_chan_fini() 62 struct nv20_gr_chan *chan = nv20_gr_chan(object); nv20_gr_chan_dtor() local 79 struct nv20_gr_chan *chan; nv20_gr_chan_new() local 185 struct nvkm_fifo_chan *chan; nv20_gr_intr() local [all...] |
| /kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
| H A D | nv20.c | 8 #include <engine/fifo/chan.h> 19 struct nv20_gr_chan *chan = nv20_gr_chan(object); in nv20_gr_chan_init() local 20 struct nv20_gr *gr = chan->gr; in nv20_gr_chan_init() 21 u32 inst = nvkm_memory_addr(chan->inst); in nv20_gr_chan_init() 24 nvkm_wo32(gr->ctxtab, chan->chid * 4, inst >> 4); in nv20_gr_chan_init() 32 struct nv20_gr_chan *chan = nv20_gr_chan(object); in nv20_gr_chan_fini() local 33 struct nv20_gr *gr = chan->gr; in nv20_gr_chan_fini() 35 u32 inst = nvkm_memory_addr(chan->inst); in nv20_gr_chan_fini() 41 if (chan->chid == chid) { in nv20_gr_chan_fini() 54 nvkm_wo32(gr->ctxtab, chan in nv20_gr_chan_fini() 62 struct nv20_gr_chan *chan = nv20_gr_chan(object); nv20_gr_chan_dtor() local 79 struct nv20_gr_chan *chan; nv20_gr_chan_new() local 185 struct nvkm_chan *chan; nv20_gr_intr() local [all...] |