Home
last modified time | relevance | path

Searched refs:dw (Results 1 – 25 of 223) sorted by relevance

123456789

/linux/drivers/dma/dw-edma/
H A Ddw-edma-v0-debugfs.c12 #include "dw-edma-v0-debugfs.h"
13 #include "dw-edma-v0-regs.h"
14 #include "dw-edma-core.h"
16 #define REGS_ADDR(dw, name) \ argument
18 struct dw_edma_v0_regs __iomem *__regs = (dw)->chip->reg_base; \
23 #define REGS_CH_ADDR(dw, name, _dir, _ch) \ argument
27 if ((dw)->chip->mf == EDMA_MF_EDMA_LEGACY) \
28 __ch_regs = REGS_ADDR(dw, type.legacy.ch); \
30 __ch_regs = REGS_ADDR(dw, type.unroll.ch[_ch].rd); \
32 __ch_regs = REGS_ADDR(dw, typ
37 REGISTER(dw,name) global() argument
40 CTX_REGISTER(dw,name,dir,ch) global() argument
43 WR_REGISTER(dw,name) global() argument
45 RD_REGISTER(dw,name) global() argument
48 WR_REGISTER_LEGACY(dw,name) global() argument
53 WR_REGISTER_UNROLL(dw,name) global() argument
55 RD_REGISTER_UNROLL(dw,name) global() argument
64 struct dw_edma *dw; global() member
74 struct dw_edma *dw = entry->dw; dw_edma_debugfs_u32_get() local
99 dw_edma_debugfs_create_x32(struct dw_edma * dw,const struct dw_edma_debugfs_entry ini[],int nr_entries,struct dentry * dent) dw_edma_debugfs_create_x32() argument
119 dw_edma_debugfs_regs_ch(struct dw_edma * dw,enum dw_edma_dir dir,u16 ch,struct dentry * dent) dw_edma_debugfs_regs_ch() argument
140 dw_edma_debugfs_regs_wr(struct dw_edma * dw,struct dentry * dent) dw_edma_debugfs_regs_wr() argument
201 dw_edma_debugfs_regs_rd(struct dw_edma * dw,struct dentry * dent) dw_edma_debugfs_regs_rd() argument
264 dw_edma_debugfs_regs(struct dw_edma * dw) dw_edma_debugfs_regs() argument
282 dw_edma_v0_debugfs_on(struct dw_edma * dw) dw_edma_v0_debugfs_on() argument
[all...]
H A Ddw-edma-v0-core.c14 #include "dw-edma-core.h"
15 #include "dw-edma-v0-core.h"
16 #include "dw-edma-v0-regs.h"
17 #include "dw-edma-v0-debugfs.h"
31 static inline struct dw_edma_v0_regs __iomem *__dw_regs(struct dw_edma *dw) in __dw_regs() argument
33 return dw->chip->reg_base; in __dw_regs()
36 #define SET_32(dw, name, value) \ argument
37 writel(value, &(__dw_regs(dw)->name))
39 #define GET_32(dw, name) \ argument
40 readl(&(__dw_regs(dw)
42 SET_RW_32(dw,dir,name,value) global() argument
50 GET_RW_32(dw,dir,name) global() argument
55 SET_BOTH_32(dw,name,value) global() argument
61 SET_64(dw,name,value) global() argument
64 GET_64(dw,name) global() argument
67 SET_RW_64(dw,dir,name,value) global() argument
75 GET_RW_64(dw,dir,name) global() argument
80 SET_BOTH_64(dw,name,value) global() argument
86 SET_COMPAT(dw,name,value) global() argument
89 SET_RW_COMPAT(dw,dir,name,value) global() argument
98 __dw_ch_regs(struct dw_edma * dw,enum dw_edma_dir dir,u16 ch) __dw_ch_regs() argument
109 writel_ch(struct dw_edma * dw,enum dw_edma_dir dir,u16 ch,u32 value,void __iomem * addr) writel_ch() argument
132 readl_ch(struct dw_edma * dw,enum dw_edma_dir dir,u16 ch,const void __iomem * addr) readl_ch() argument
159 SET_CH_32(dw,dir,ch,name,value) global() argument
162 GET_CH_32(dw,dir,ch,name) global() argument
171 dw_edma_v0_core_ch_power(struct dw_edma * dw,enum dw_edma_dir dir,u16 id,bool enable) dw_edma_v0_core_ch_power() argument
207 dw_edma_v0_core_engine_disable(struct dw_edma * dw,enum dw_edma_dir dir) dw_edma_v0_core_engine_disable() argument
223 dw_edma_v0_core_dir_off(struct dw_edma * dw,enum dw_edma_dir dir) dw_edma_v0_core_dir_off() argument
252 dw_edma_v0_core_off(struct dw_edma * dw) dw_edma_v0_core_off() argument
261 dw_edma_v0_core_quiesce(struct dw_edma * dw) dw_edma_v0_core_quiesce() argument
288 dw_edma_v0_core_ch_count(struct dw_edma * dw,enum dw_edma_dir dir) dw_edma_v0_core_ch_count() argument
307 struct dw_edma *dw = chan->dw; dw_edma_v0_core_ch_status() local
323 struct dw_edma *dw = chan->dw; dw_edma_v0_core_clear_done_int() local
331 struct dw_edma *dw = chan->dw; dw_edma_v0_core_clear_abort_int() local
341 struct dw_edma *dw = dw_irq->dw; dw_edma_v0_core_handle_int() local
444 struct dw_edma *dw = chan->dw; dw_edma_v0_core_ch_enable() local
499 struct dw_edma *dw = chan->dw; dw_edma_v0_core_ch_config() local
610 struct dw_edma *dw = chan->dw; dw_edma_v0_core_ch_doorbell() local
620 dw_edma_v0_core_debugfs_on(struct dw_edma * dw) dw_edma_v0_core_debugfs_on() argument
625 dw_edma_v0_core_ack_emulated_irq(struct dw_edma * dw) dw_edma_v0_core_ack_emulated_irq() argument
635 dw_edma_v0_core_db_offset(struct dw_edma * dw) dw_edma_v0_core_db_offset() argument
661 dw_edma_v0_core_register(struct dw_edma * dw) dw_edma_v0_core_register() argument
[all...]
H A Ddw-hdma-v0-debugfs.c12 #include "dw-hdma-v0-debugfs.h"
13 #include "dw-hdma-v0-regs.h"
14 #include "dw-edma-core.h"
16 #define REGS_CH_ADDR(dw, name, _dir, _ch) \ argument
19 off_t __off = (dw)->chip->ch_space_sz; \
26 __ch_regs = ((dw)->chip->reg_base + __off); \
30 #define CTX_REGISTER(dw, name, dir, ch) \
31 {#name, REGS_CH_ADDR(dw, name, dir, ch)}
54 static void dw_hdma_debugfs_create_x32(struct dw_edma *dw, in dw_hdma_debugfs_u32_get()
61 entries = devm_kzalloc_objs(dw in dw_hdma_debugfs_create_x32()
23 REGS_CH_ADDR(dw,name,_dir,_ch) global() argument
35 CTX_REGISTER(dw,name,dir,ch) global() argument
59 dw_hdma_debugfs_create_x32(struct dw_edma * dw,const struct dw_hdma_debugfs_entry ini[],int nr_entries,struct dentry * dent) dw_hdma_debugfs_create_x32() argument
79 dw_hdma_debugfs_regs_ch(struct dw_edma * dw,enum dw_edma_dir dir,u16 ch,struct dentry * dent) dw_hdma_debugfs_regs_ch() argument
116 dw_hdma_debugfs_regs_wr(struct dw_edma * dw,struct dentry * dent) dw_hdma_debugfs_regs_wr() argument
133 dw_hdma_debugfs_regs_rd(struct dw_edma * dw,struct dentry * dent) dw_hdma_debugfs_regs_rd() argument
150 dw_hdma_debugfs_regs(struct dw_edma * dw) dw_hdma_debugfs_regs() argument
160 dw_hdma_v0_debugfs_on(struct dw_edma * dw) dw_hdma_v0_debugfs_on() argument
[all...]
H A Ddw-hdma-v0-core.c11 #include "dw-edma-core.h"
12 #include "dw-hdma-v0-core.h"
13 #include "dw-hdma-v0-regs.h"
14 #include "dw-hdma-v0-debugfs.h"
27 __dw_ch_regs(struct dw_edma *dw, enum dw_edma_dir dir, u16 ch) in __dw_regs()
42 return dw->chip->reg_base + (ch_base * dw->chip->ch_space_sz);
45 #define SET_CH_32(dw, dir, ch, name, value) \
46 writel(value, &(__dw_ch_regs(dw, dir, ch)->name)) argument
48 #define GET_CH_32(dw, di
26 __dw_regs(struct dw_edma * dw) __dw_regs() argument
32 __dw_ch_regs(struct dw_edma * dw,enum dw_edma_dir dir,u16 ch) __dw_ch_regs() argument
40 SET_CH_32(dw,dir,ch,name,value) global() argument
43 GET_CH_32(dw,dir,ch,name) global() argument
75 dw_hdma_v0_core_ch_off(struct dw_edma * dw,enum dw_edma_dir dir,u16 id) dw_hdma_v0_core_ch_off() argument
85 dw_hdma_v0_core_off(struct dw_edma * dw) dw_hdma_v0_core_off() argument
109 dw_hdma_v0_core_quiesce(struct dw_edma * dw) dw_hdma_v0_core_quiesce() argument
128 dw_hdma_v0_core_ch_count(struct dw_edma * dw,enum dw_edma_dir dir) dw_hdma_v0_core_ch_count() argument
140 struct dw_edma *dw = chan->dw; dw_hdma_v0_core_ch_status() local
156 struct dw_edma *dw = chan->dw; dw_hdma_v0_core_clear_done_int() local
163 struct dw_edma *dw = chan->dw; dw_hdma_v0_core_clear_abort_int() local
170 struct dw_edma *dw = chan->dw; dw_hdma_v0_core_status_int() local
179 struct dw_edma *dw = dw_irq->dw; dw_hdma_v0_core_handle_int() local
263 struct dw_edma *dw = chan->dw; dw_hdma_v0_core_ch_enable() local
302 struct dw_edma *dw = chan->dw; dw_hdma_v0_core_non_ll_start() local
338 struct dw_edma *dw = chan->dw; dw_hdma_v0_core_ch_config() local
379 struct dw_edma *dw = chan->dw; dw_hdma_v0_core_ch_doorbell() local
388 dw_hdma_v0_core_debugfs_on(struct dw_edma * dw) dw_hdma_v0_core_debugfs_on() argument
393 dw_hdma_v0_core_db_offset(struct dw_edma * dw) dw_hdma_v0_core_db_offset() argument
416 dw_hdma_v0_core_register(struct dw_edma * dw) dw_hdma_v0_core_register() argument
[all...]
H A Ddw-edma-core.h76 struct dw_edma *dw;
125 struct dw_edma *dw;
161 void (*off)(struct dw_edma *dw);
162 int (*quiesce)(struct dw_edma *dw);
164 u16 (*ch_count)(struct dw_edma *dw, enum dw_edma_dir dir);
178 void (*debugfs_on)(struct dw_edma *dw);
179 void (*ack_emulated_irq)(struct dw_edma *dw); in dchan2dw_edma_chan()
180 resource_size_t (*db_offset)(struct dw_edma *dw); in dchan2dw_edma_chan()
224 return chan->dw->core->ll_cur_idx(chan); in dw_edma_core_handle_int()
230 return chan->dw
70 struct dw_edma *dw; global() member
95 struct dw_edma *dw; global() member
193 dw_edma_core_off(struct dw_edma * dw) dw_edma_core_off() argument
199 dw_edma_core_quiesce(struct dw_edma * dw) dw_edma_core_quiesce() argument
211 dw_edma_core_ch_count(struct dw_edma * dw,enum dw_edma_dir dir) dw_edma_core_ch_count() argument
259 dw_edma_core_debugfs_on(struct dw_edma * dw) dw_edma_core_debugfs_on() argument
264 dw_edma_core_ack_emulated_irq(struct dw_edma * dw) dw_edma_core_ack_emulated_irq() argument
274 dw_edma_core_db_offset(struct dw_edma * dw) dw_edma_core_db_offset() argument
282 struct dw_edma *dw = chan->dw; dw_edma_core_ch_ignore_irq() local
[all...]
H A Ddw-edma-core.c23 #include "dw-edma-core.h"
24 #include "dw-edma-v0-core.h"
25 #include "dw-hdma-v0-core.h"
43 struct dw_edma_chip *chip = chan->dw->chip; in dw_edma_get_pci_address()
186 chan->dw->core->non_ll_start(chan, in dw_edma_device_config()
265 if (!(chan->dw->chip->flags & DW_EDMA_CHIP_LOCAL)) in dw_edma_device_resume()
291 if (chan->dw->chip->flags & DW_EDMA_CHIP_LOCAL) { in dw_edma_device_terminate_all()
307 struct dw_edma_chip *chip = chan->dw->chip; in dw_edma_device_terminate_all()
316 if (!(chan->dw->chip->flags & DW_EDMA_CHIP_LOCAL) || in dw_edma_device_issue_pending()
361 non_ll = chan->dw in dw_edma_device_tx_status()
719 struct dw_edma *dw = irq_data_get_irq_chip_data(d); dw_edma_emul_irq_ack() local
740 dw_edma_emul_irq_alloc(struct dw_edma * dw) dw_edma_emul_irq_alloc() argument
777 dw_edma_emul_irq_free(struct dw_edma * dw) dw_edma_emul_irq_free() argument
794 struct dw_edma *dw = dw_irq->dw; dw_edma_interrupt_emulated() local
916 dw_edma_channel_setup(struct dw_edma * dw,u32 wr_alloc,u32 rd_alloc) dw_edma_channel_setup() argument
1036 dw_edma_irq_request(struct dw_edma * dw,u32 * wr_alloc,u32 * rd_alloc) dw_edma_irq_request() argument
1136 struct dw_edma *dw; dw_edma_probe() local
1272 struct dw_edma *dw = chip->dw; dw_edma_remove() local
[all...]
H A DMakefile3 obj-$(CONFIG_DW_EDMA) += dw-edma.o
4 dw-edma-$(CONFIG_DEBUG_FS) := dw-edma-v0-debugfs.o \
5 dw-hdma-v0-debugfs.o
6 dw-edma-objs := dw-edma-core.o \
7 dw-edma-v0-core.o \
8 dw-hdma-v0-core.o $(dw-edma-y)
9 obj-$(CONFIG_DW_EDMA_PCIE) += dw-edma-pcie.o
/linux/drivers/gpu/drm/xe/
H A Dxe_ring_ops.c83 static int emit_aux_table_inv(struct xe_hw_engine *hwe, u32 *dw, int i) in emit_aux_table_inv() argument
90 return emit(gt, dw + i) - dw; in emit_aux_table_inv()
95 static int emit_user_interrupt(u32 *dw, int i) in emit_user_interrupt() argument
97 dw[i++] = MI_USER_INTERRUPT; in emit_user_interrupt()
98 dw[i++] = MI_ARB_ON_OFF | MI_ARB_ENABLE; in emit_user_interrupt()
99 dw[i++] = MI_ARB_CHECK; in emit_user_interrupt()
104 static int emit_store_imm_ggtt(u32 addr, u32 value, u32 *dw, int i) in emit_store_imm_ggtt() argument
106 dw[i++] = MI_STORE_DATA_IMM | MI_SDI_GGTT | MI_SDI_NUM_DW(1); in emit_store_imm_ggtt()
107 dw[ in emit_store_imm_ggtt()
114 emit_flush_dw(u32 * dw,int i) emit_flush_dw() argument
124 emit_flush_imm_ggtt(u32 addr,u32 value,u32 flags,u32 * dw,int i) emit_flush_imm_ggtt() argument
135 emit_bb_start(u64 batch_addr,u32 ppgtt_flag,u32 * dw,int i) emit_bb_start() argument
144 emit_flush_invalidate(u32 addr,u32 val,u32 flush_flags,u32 * dw,int i) emit_flush_invalidate() argument
157 emit_pipe_control(u32 * dw,int i,u32 bit_group_0,u32 bit_group_1,u32 offset,u32 value) emit_pipe_control() argument
170 emit_pipe_invalidate(struct xe_exec_queue * q,u32 mask_flags,bool invalidate_tlb,u32 * dw,int i) emit_pipe_invalidate() argument
200 emit_store_imm_ppgtt_posted(u64 addr,u64 value,u32 * dw,int i) emit_store_imm_ppgtt_posted() argument
211 emit_render_cache_flush(struct xe_sched_job * job,u32 * dw,int i) emit_render_cache_flush() argument
257 emit_pipe_imm_ggtt(struct xe_exec_queue * q,u32 addr,u32 value,bool stall_only,u32 * dw,int i) emit_pipe_imm_ggtt() argument
281 emit_copy_timestamp(struct xe_device * xe,struct xe_lrc * lrc,u32 * dw,int i) emit_copy_timestamp() argument
307 emit_fake_watchdog(struct xe_lrc * lrc,u32 * dw,int i) emit_fake_watchdog() argument
337 u32 dw[MAX_JOB_SIZE_DW], i = 0; __emit_job_gen12_simple() local
396 u32 dw[MAX_JOB_SIZE_DW], i = 0; __emit_job_gen12_video() local
449 u32 dw[MAX_JOB_SIZE_DW], i = 0; __emit_job_gen12_render_compute() local
515 u32 dw[MAX_JOB_SIZE_DW], i = 0; emit_migration_job_gen12() local
[all...]
/linux/drivers/gpu/drm/bridge/synopsys/
H A Ddw-hdmi-ahb-audio.c154 static void dw_hdmi_reformat_iec958(struct snd_dw_hdmi *dw, in dw_hdmi_reformat_iec958() argument
157 u32 *src = dw->buf_src + offset; in dw_hdmi_reformat_iec958()
158 u32 *dst = dw->buf_dst + offset; in dw_hdmi_reformat_iec958()
159 u32 *end = dw->buf_src + offset + bytes; in dw_hdmi_reformat_iec958()
182 static void dw_hdmi_reformat_s24(struct snd_dw_hdmi *dw, in dw_hdmi_reformat_s24() argument
185 u32 *src = dw->buf_src + offset; in dw_hdmi_reformat_s24()
186 u32 *dst = dw->buf_dst + offset; in dw_hdmi_reformat_s24()
187 u32 *end = dw->buf_src + offset + bytes; in dw_hdmi_reformat_s24()
193 cs = dw->cs[dw->iec_offset++]; in dw_hdmi_reformat_s24()
194 if (dw->iec_offset >= 192) in dw_hdmi_reformat_s24()
[all …]
/linux/drivers/dma/dw/
H A Dcore.c75 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in dwc_tx_submit()
79 desc = dma_pool_zalloc(dw->desc_pool, GFP_ATOMIC, &phys); in dwc_desc_get()
94 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in dwc_desc_get()
102 dma_pool_free(dw->desc_pool, child, child->txd.phys); in dwc_desc_put()
106 dma_pool_free(dw->desc_pool, desc, desc->txd.phys); in dwc_desc_put()
112 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in dwc_desc_put()
114 dw->initialize_chan(dwc);
117 channel_set_bit(dw, MASK.XFER, dwc->mask); in dwc_initialize() local
118 channel_set_bit(dw, MASK.ERROR, dwc->mask); in dwc_initialize()
134 static inline void dwc_chan_disable(struct dw_dma *dw, struc in dwc_dump_chan_regs()
80 struct dw_dma *dw = to_dw_dma(dwc->chan.device); dwc_desc_get() local
99 struct dw_dma *dw = to_dw_dma(dwc->chan.device); dwc_desc_put() local
139 dwc_chan_disable(struct dw_dma * dw,struct dw_dma_chan * dwc) dwc_chan_disable() argument
152 struct dw_dma *dw = to_dw_dma(dwc->chan.device); dwc_do_single_block() local
174 struct dw_dma *dw = to_dw_dma(dwc->chan.device); dwc_dostart() local
260 dwc_complete_all(struct dw_dma * dw,struct dw_dma_chan * dwc) dwc_complete_all() argument
291 struct dw_dma *dw = to_dw_dma(dwc->chan.device); dwc_get_sent() local
298 dwc_scan_descriptors(struct dw_dma * dw,struct dw_dma_chan * dwc) dwc_scan_descriptors() argument
421 dwc_handle_error(struct dw_dma * dw,struct dw_dma_chan * dwc) dwc_handle_error() argument
466 struct dw_dma *dw = from_tasklet(dw, t, tasklet); dw_dma_tasklet() local
494 struct dw_dma *dw = dev_id; dw_dma_interrupt() local
542 struct dw_dma *dw = to_dw_dma(chan->device); dwc_prep_dma_memcpy() local
620 struct dw_dma *dw = to_dw_dma(chan->device); dwc_prep_slave_sg() local
802 struct dw_dma *dw = to_dw_dma(chan->device); dwc_verify_p_buswidth() local
834 struct dw_dma *dw = to_dw_dma(chan->device); dwc_verify_m_buswidth() local
890 struct dw_dma *dw = to_dw_dma(dwc->chan.device); dwc_chan_pause() local
915 struct dw_dma *dw = to_dw_dma(dwc->chan.device); dwc_chan_resume() local
940 struct dw_dma *dw = to_dw_dma(chan->device); dwc_terminate_all() local
1042 do_dw_dma_off(struct dw_dma * dw) do_dw_dma_off() argument
1056 do_dw_dma_on(struct dw_dma * dw) do_dw_dma_on() argument
1064 struct dw_dma *dw = to_dw_dma(chan->device); dwc_alloc_chan_resources() local
1101 struct dw_dma *dw = to_dw_dma(chan->device); dwc_free_chan_resources() local
1153 struct dw_dma *dw = chip->dw; do_dma_probe() local
1364 struct dw_dma *dw = chip->dw; do_dma_remove() local
1387 struct dw_dma *dw = chip->dw; do_dw_dma_disable() local
1396 struct dw_dma *dw = chip->dw; do_dw_dma_enable() local
[all...]
H A Ddw.c17 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in dw_dma_initialize_chan()
24 cfghi |= DWC_CFGH_PROTCTL(dw->pdata->protctl); in dw_dma_initialize_chan()
101 static void dw_dma_set_device_name(struct dw_dma *dw, int id) in dw_dma_set_device_name()
103 snprintf(dw->name, sizeof(dw->name), "dw:dmac%d", id); in dw_dma_set_device_name()
106 static void dw_dma_disable(struct dw_dma *dw) in dw_dma_disable()
108 do_dw_dma_off(dw); in dw_dma_disable()
111 static void dw_dma_enable(struct dw_dma *dw) in dw_dma_enable()
113 do_dw_dma_on(dw); in dw_dma_enable()
16 struct dw_dma *dw = to_dw_dma(dwc->chan.device); dw_dma_initialize_chan() local
100 dw_dma_set_device_name(struct dw_dma * dw,int id) dw_dma_set_device_name() argument
105 dw_dma_disable(struct dw_dma * dw) dw_dma_disable() argument
110 dw_dma_enable(struct dw_dma * dw) dw_dma_enable() argument
117 struct dw_dma *dw; dw_dma_probe() local
[all...]
H A Didma32.c48 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in idma32_initialize_chan_xbar() local
49 void __iomem *misc = __dw_regs(dw); in idma32_initialize_chan_xbar()
221 static void idma32_set_device_name(struct dw_dma *dw, int id) in idma32_set_device_name() argument
223 snprintf(dw->name, sizeof(dw->name), "idma32:dmac%d", id); in idma32_set_device_name()
232 static void idma32_fifo_partition(struct dw_dma *dw) in idma32_fifo_partition() argument
245 idma32_writeq(dw, FIFO_PARTITION1, fifo_partition); in idma32_fifo_partition()
246 idma32_writeq(dw, FIFO_PARTITION0, fifo_partition); in idma32_fifo_partition()
249 static void idma32_disable(struct dw_dma *dw) in idma32_disable() argument
251 do_dw_dma_off(dw); in idma32_disable()
255 idma32_enable(struct dw_dma * dw) idma32_enable() argument
263 struct dw_dma *dw; idma32_dma_probe() local
[all...]
H A Dinternal.h18 void do_dw_dma_on(struct dw_dma *dw);
19 void do_dw_dma_off(struct dw_dma *dw);
27 void dw_dma_acpi_controller_register(struct dw_dma *dw);
28 void dw_dma_acpi_controller_free(struct dw_dma *dw);
30 static inline void dw_dma_acpi_controller_register(struct dw_dma *dw) {} in dw_dma_acpi_controller_register() argument
31 static inline void dw_dma_acpi_controller_free(struct dw_dma *dw) {} in dw_dma_acpi_controller_free() argument
38 void dw_dma_of_controller_register(struct dw_dma *dw);
39 void dw_dma_of_controller_free(struct dw_dma *dw);
45 static inline void dw_dma_of_controller_register(struct dw_dma *dw) {} in dw_dma_of_controller_register() argument
46 static inline void dw_dma_of_controller_free(struct dw_dma *dw) {} in dw_dma_of_controller_free() argument
H A Dregs.h335 void (*set_device_name)(struct dw_dma *dw, int id);
336 void (*disable)(struct dw_dma *dw);
337 void (*enable)(struct dw_dma *dw);
343 static inline struct dw_dma_regs __iomem *__dw_regs(struct dw_dma *dw) in __dw_regs() argument
345 return dw->regs; in __dw_regs()
348 #define dma_readl(dw, name) \ argument
349 readl(&(__dw_regs(dw)->name))
350 #define dma_writel(dw, name, val) \ argument
351 writel((val), &(__dw_regs(dw)->name))
353 #define idma32_readq(dw, name) \ argument
[all …]
H A Dof.c19 struct dw_dma *dw = ofdma->of_dma_data; in dw_dma_of_xlate() local
21 .dma_dev = dw->dma.dev, in dw_dma_of_xlate()
37 slave.m_master >= dw->pdata->nr_masters || in dw_dma_of_xlate()
38 slave.p_master >= dw->pdata->nr_masters || in dw_dma_of_xlate()
39 slave.channels >= BIT(dw->pdata->nr_channels))) in dw_dma_of_xlate()
101 void dw_dma_of_controller_register(struct dw_dma *dw) in dw_dma_of_controller_register() argument
103 struct device *dev = dw->dma.dev; in dw_dma_of_controller_register()
109 ret = of_dma_controller_register(dev->of_node, dw_dma_of_xlate, dw); in dw_dma_of_controller_register()
114 void dw_dma_of_controller_free(struct dw_dma *dw) in dw_dma_of_controller_free() argument
116 struct device *dev = dw in dw_dma_of_controller_free()
[all...]
H A Dacpi.c11 struct dw_dma *dw = to_dw_dma(chan->device); in dw_dma_acpi_filter() local
12 struct dw_dma_chip_pdata *data = dev_get_drvdata(dw->dma.dev); in dw_dma_acpi_filter()
25 void dw_dma_acpi_controller_register(struct dw_dma *dw) in dw_dma_acpi_controller_register() argument
27 struct device *dev = dw->dma.dev; in dw_dma_acpi_controller_register()
48 void dw_dma_acpi_controller_free(struct dw_dma *dw) in dw_dma_acpi_controller_free() argument
50 struct device *dev = dw->dma.dev; in dw_dma_acpi_controller_free()
/linux/drivers/dma/dw-axi-dmac/
H A Ddw-axi-dmac-platform.c33 #include "dw-axi-dmac.h"
105 if (chan->chip->dw->hdata->reg_map_8_channels && in axi_chan_config_write()
106 !chan->chip->dw->hdata->use_cfg2) { in axi_chan_config_write()
202 if (chan->chip->dw->hdata->nr_channels >= DMAC_CHAN_16) { in axi_chan_disable()
217 if (chan->chip->dw->hdata->reg_map_8_channels) in axi_chan_disable()
229 if (chan->chip->dw->hdata->nr_channels >= DMAC_CHAN_16) { in axi_chan_enable()
243 if (chan->chip->dw->hdata->reg_map_8_channels) { in axi_chan_enable()
258 if (chan->chip->dw->hdata->nr_channels >= DMAC_CHAN_16) in axi_chan_is_hw_enable()
274 for (i = 0; i < chip->dw->hdata->nr_channels; i++) { in axi_dma_hw_init()
275 axi_chan_irq_disable(&chip->dw in axi_dma_hw_init()
1153 struct dw_axi_dma *dw = chip->dw; dw_axi_dma_interrupt() local
1365 struct dw_axi_dma *dw = ofdma->of_dma_data; dw_axi_dma_of_xlate() local
1479 struct dw_axi_dma *dw; dw_probe() local
1640 struct dw_axi_dma *dw = chip->dw; dw_remove() local
[all...]
/linux/arch/arm/boot/dts/synaptics/
H A Dberlin2cd.dtsi175 compatible = "snps,dw-apb-gpio";
181 compatible = "snps,dw-apb-gpio-port";
193 compatible = "snps,dw-apb-gpio";
199 compatible = "snps,dw-apb-gpio-port";
211 compatible = "snps,dw-apb-gpio";
217 compatible = "snps,dw-apb-gpio-port";
229 compatible = "snps,dw-apb-gpio";
235 compatible = "snps,dw-apb-gpio-port";
267 compatible = "snps,dw-apb-ssi";
277 compatible = "snps,dw-wdt";
[all …]
H A Dberlin2.dtsi185 compatible = "snps,dw-apb-gpio";
191 compatible = "snps,dw-apb-gpio-port";
203 compatible = "snps,dw-apb-gpio";
209 compatible = "snps,dw-apb-gpio-port";
221 compatible = "snps,dw-apb-gpio";
227 compatible = "snps,dw-apb-gpio-port";
239 compatible = "snps,dw-apb-gpio";
245 compatible = "snps,dw-apb-gpio-port";
257 compatible = "snps,dw-apb-timer";
266 compatible = "snps,dw-apb-timer";
[all …]
H A Dberlin2q.dtsi246 compatible = "snps,dw-apb-gpio";
252 compatible = "snps,dw-apb-gpio-port";
264 compatible = "snps,dw-apb-gpio";
270 compatible = "snps,dw-apb-gpio-port";
282 compatible = "snps,dw-apb-gpio";
288 compatible = "snps,dw-apb-gpio-port";
300 compatible = "snps,dw-apb-gpio";
306 compatible = "snps,dw-apb-gpio-port";
342 compatible = "snps,dw-apb-timer";
350 compatible = "snps,dw-apb-timer";
[all …]
/linux/arch/arm64/boot/dts/synaptics/
H A Dberlin4ct.dtsi136 compatible = "snps,dw-apb-gpio";
142 compatible = "snps,dw-apb-gpio-port";
154 compatible = "snps,dw-apb-gpio";
160 compatible = "snps,dw-apb-gpio-port";
172 compatible = "snps,dw-apb-gpio";
178 compatible = "snps,dw-apb-gpio-port";
190 compatible = "snps,dw-apb-gpio";
196 compatible = "snps,dw-apb-gpio-port";
208 compatible = "snps,dw-apb-ictl";
235 compatible = "snps,dw-apb-ictl";
[all …]
/linux/drivers/gpu/drm/i915/display/
H A Dvlv_dpio_phy_regs.h11 #define _VLV_CMN(dw) (0x8100 + (dw) * 4) argument
12 #define _CHV_CMN(cl, dw) (0x8100 - (cl) * 0x80 + (dw) * 4) argument
13 #define _VLV_PLL(ch, dw) (0x8000 + (ch) * 0x20 + (dw) * 4) /* dw 0-7,16-23 */ argument
14 #define _CHV_PLL(ch, dw) (0x8000 + (ch) * 0x180 + (dw) * 4) argument
15 #define _VLV_REF(dw) (0x80a0 + ((dw) - 8) * 4) /* dw 8-15 */ argument
16 #define _VLV_PCS(ch, spline, dw) (0x200 + (ch) * 0x2400 + (spline) * 0x200 + (dw) * 4) argument
17 #define _VLV_PCS_GRP(ch, dw) (0x8200 + (ch) * 0x200 + (dw) * 4) argument
18 #define _VLV_PCS_BCAST(dw) (0xc000 + (dw) * 4) argument
19 #define _VLV_TX(ch, lane, dw) (0x80 + (ch) * 0x2400 + (lane) * 0x200 + (dw) * 4) argument
20 #define _VLV_TX_GRP(ch, dw) (0x8280 + (ch) * 0x200 + (dw) * 4) argument
[all …]
/linux/drivers/pci/pcie/
H A Dtlp.c72 if (tlp_len > ARRAY_SIZE(log->dw)) in pcie_read_tlp_log()
73 tlp_len = ARRAY_SIZE(log->dw); in pcie_read_tlp_log()
83 ret = pci_read_config_dword(dev, off, &log->dw[i]); in pcie_read_tlp_log()
98 /* The Prefix Log registers hold dw[4..13] in Flit mode. */
142 * dw[4..7] alias the Prefix Log. Take all four whatever
149 tlp_len = min(tlp_len, ARRAY_SIZE(regs->header_log.dw));
162 regs->header_log.dw[i] = get_unaligned_le32(raw + off);
204 log->dw[0], log->dw[1], log->dw[
[all...]
/linux/drivers/scsi/be2iscsi/
H A Dbe.h167 u32 *dw = (u32 *) ptr + dw_offset; in amap_set() local
168 *dw &= ~(mask << offset); in amap_set()
169 *dw |= (mask & value) << offset; in amap_set()
181 u32 *dw = ptr; in amap_get() local
182 return mask & (*(dw + dw_offset) >> offset); in amap_get()
196 u32 *dw = wrb; in swap_dws() local
199 *dw = cpu_to_le32(*dw); in swap_dws()
200 dw++; in swap_dws()
/linux/drivers/i3c/master/
H A Dast2600-i3c-master.c14 #include "dw-i3c-master.h"
42 struct dw_i3c_master dw; member
48 static struct ast2600_i3c *to_ast2600_i3c(struct dw_i3c_master *dw) in to_ast2600_i3c() argument
50 return container_of(dw, struct ast2600_i3c, dw); in to_ast2600_i3c()
77 static int ast2600_i3c_init(struct dw_i3c_master *dw) in ast2600_i3c_init() argument
79 struct ast2600_i3c *i3c = to_ast2600_i3c(dw); in ast2600_i3c_init()
158 i3c->dw.platform_ops = &ast2600_i3c_ops; in ast2600_i3c_probe()
159 return dw_i3c_common_probe(&i3c->dw, pdev); in ast2600_i3c_probe()

123456789