Home
last modified time | relevance | path

Searched refs:mc (Results 1 – 25 of 549) sorted by relevance

12345678910>>...22

/OK3568_Linux_fs/kernel/drivers/memory/tegra/
H A Dmc.c45 static int tegra_mc_block_dma_common(struct tegra_mc *mc, in tegra_mc_block_dma_common() argument
51 spin_lock_irqsave(&mc->lock, flags); in tegra_mc_block_dma_common()
53 value = mc_readl(mc, rst->control) | BIT(rst->bit); in tegra_mc_block_dma_common()
54 mc_writel(mc, value, rst->control); in tegra_mc_block_dma_common()
56 spin_unlock_irqrestore(&mc->lock, flags); in tegra_mc_block_dma_common()
61 static bool tegra_mc_dma_idling_common(struct tegra_mc *mc, in tegra_mc_dma_idling_common() argument
64 return (mc_readl(mc, rst->status) & BIT(rst->bit)) != 0; in tegra_mc_dma_idling_common()
67 static int tegra_mc_unblock_dma_common(struct tegra_mc *mc, in tegra_mc_unblock_dma_common() argument
73 spin_lock_irqsave(&mc->lock, flags); in tegra_mc_unblock_dma_common()
75 value = mc_readl(mc, rst->control) & ~BIT(rst->bit); in tegra_mc_unblock_dma_common()
[all …]
H A Dtegra20.c198 static int tegra20_mc_hotreset_assert(struct tegra_mc *mc, in tegra20_mc_hotreset_assert() argument
204 spin_lock_irqsave(&mc->lock, flags); in tegra20_mc_hotreset_assert()
206 value = mc_readl(mc, rst->reset); in tegra20_mc_hotreset_assert()
207 mc_writel(mc, value & ~BIT(rst->bit), rst->reset); in tegra20_mc_hotreset_assert()
209 spin_unlock_irqrestore(&mc->lock, flags); in tegra20_mc_hotreset_assert()
214 static int tegra20_mc_hotreset_deassert(struct tegra_mc *mc, in tegra20_mc_hotreset_deassert() argument
220 spin_lock_irqsave(&mc->lock, flags); in tegra20_mc_hotreset_deassert()
222 value = mc_readl(mc, rst->reset); in tegra20_mc_hotreset_deassert()
223 mc_writel(mc, value | BIT(rst->bit), rst->reset); in tegra20_mc_hotreset_deassert()
225 spin_unlock_irqrestore(&mc->lock, flags); in tegra20_mc_hotreset_deassert()
[all …]
/OK3568_Linux_fs/kernel/drivers/crypto/amlogic/
H A Damlogic-gxl-core.c25 struct meson_dev *mc = (struct meson_dev *)data; in meson_irq_handler() local
30 if (mc->irqs[flow] == irq) { in meson_irq_handler()
31 p = readl(mc->base + ((0x04 + flow) << 2)); in meson_irq_handler()
33 writel_relaxed(0xF, mc->base + ((0x4 + flow) << 2)); in meson_irq_handler()
34 mc->chanlist[flow].status = 1; in meson_irq_handler()
35 complete(&mc->chanlist[flow].complete); in meson_irq_handler()
38 dev_err(mc->dev, "%s %d Got irq for flow %d but ctrl is empty\n", __func__, irq, flow); in meson_irq_handler()
42 dev_err(mc->dev, "%s %d from unknown irq\n", __func__, irq); in meson_irq_handler()
103 struct meson_dev *mc = seq->private; in meson_debugfs_show() local
107 seq_printf(seq, "Channel %d: nreq %lu\n", i, mc->chanlist[i].stat_req); in meson_debugfs_show()
[all …]
H A Damlogic-gxl-cipher.c20 static int get_engine_number(struct meson_dev *mc) in get_engine_number() argument
22 return atomic_inc_return(&mc->flow) % MAXFLOW; in get_engine_number()
89 struct meson_dev *mc = op->mc; in meson_cipher() local
106 dev_dbg(mc->dev, "%s %s %u %x IV(%u) key=%u flow=%d\n", __func__, in meson_cipher()
114 mc->chanlist[flow].stat_req++; in meson_cipher()
132 dev_err(mc->dev, "invalid ivsize=%d vs len=%d\n", ivsize, areq->cryptlen); in meson_cipher()
152 phykeyiv = dma_map_single(mc->dev, bkeyiv, keyivlen, in meson_cipher()
154 err = dma_mapping_error(mc->dev, phykeyiv); in meson_cipher()
156 dev_err(mc->dev, "Cannot DMA MAP KEY IV\n"); in meson_cipher()
164 desc = &mc->chanlist[flow].tl[tloffset]; in meson_cipher()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/subdev/mc/
H A Dbase.c32 struct nvkm_mc *mc = device->mc; in nvkm_mc_unk260() local
33 if (likely(mc) && mc->func->unk260) in nvkm_mc_unk260()
34 mc->func->unk260(mc, data); in nvkm_mc_unk260()
40 struct nvkm_mc *mc = device->mc; in nvkm_mc_intr_mask() local
42 if (likely(mc) && mc->func->intr_mask) { in nvkm_mc_intr_mask()
44 for (map = mc->func->intr; !mask && map->stat; map++) { in nvkm_mc_intr_mask()
48 mc->func->intr_mask(mc, mask, en ? mask : 0); in nvkm_mc_intr_mask()
55 struct nvkm_mc *mc = device->mc; in nvkm_mc_intr_unarm() local
56 if (likely(mc)) in nvkm_mc_intr_unarm()
57 mc->func->intr_unarm(mc); in nvkm_mc_intr_unarm()
[all …]
H A Dgp100.c35 gp100_mc_intr_update(struct gp100_mc *mc) in gp100_mc_intr_update() argument
37 struct nvkm_device *device = mc->base.subdev.device; in gp100_mc_intr_update()
38 u32 mask = mc->intr ? mc->mask : 0, i; in gp100_mc_intr_update()
48 struct gp100_mc *mc = gp100_mc(base); in gp100_mc_intr_unarm() local
50 spin_lock_irqsave(&mc->lock, flags); in gp100_mc_intr_unarm()
51 mc->intr = false; in gp100_mc_intr_unarm()
52 gp100_mc_intr_update(mc); in gp100_mc_intr_unarm()
53 spin_unlock_irqrestore(&mc->lock, flags); in gp100_mc_intr_unarm()
59 struct gp100_mc *mc = gp100_mc(base); in gp100_mc_intr_rearm() local
61 spin_lock_irqsave(&mc->lock, flags); in gp100_mc_intr_rearm()
[all …]
H A DKbuild2 nvkm-y += nvkm/subdev/mc/base.o
3 nvkm-y += nvkm/subdev/mc/nv04.o
4 nvkm-y += nvkm/subdev/mc/nv11.o
5 nvkm-y += nvkm/subdev/mc/nv17.o
6 nvkm-y += nvkm/subdev/mc/nv44.o
7 nvkm-y += nvkm/subdev/mc/nv50.o
8 nvkm-y += nvkm/subdev/mc/g84.o
9 nvkm-y += nvkm/subdev/mc/g98.o
10 nvkm-y += nvkm/subdev/mc/gt215.o
11 nvkm-y += nvkm/subdev/mc/gf100.o
[all …]
/OK3568_Linux_fs/kernel/drivers/gpio/
H A Dgpio-mc33880.c43 static int mc33880_write_config(struct mc33880 *mc) in mc33880_write_config() argument
45 return spi_write(mc->spi, &mc->port_config, sizeof(mc->port_config)); in mc33880_write_config()
49 static int __mc33880_set(struct mc33880 *mc, unsigned offset, int value) in __mc33880_set() argument
52 mc->port_config |= 1 << offset; in __mc33880_set()
54 mc->port_config &= ~(1 << offset); in __mc33880_set()
56 return mc33880_write_config(mc); in __mc33880_set()
62 struct mc33880 *mc = gpiochip_get_data(chip); in mc33880_set() local
64 mutex_lock(&mc->lock); in mc33880_set()
66 __mc33880_set(mc, offset, value); in mc33880_set()
68 mutex_unlock(&mc->lock); in mc33880_set()
[all …]
/OK3568_Linux_fs/u-boot/arch/x86/lib/
H A Dmpspec.c28 ulong mc; in mp_write_floating_table() local
44 mc = (ulong)mf + sizeof(struct mp_floating_table); in mp_write_floating_table()
45 return (struct mp_config_table *)mc; in mp_write_floating_table()
48 void mp_config_table_init(struct mp_config_table *mc) in mp_config_table_init() argument
50 memcpy(mc->mpc_signature, MPC_SIGNATURE, 4); in mp_config_table_init()
51 mc->mpc_length = sizeof(struct mp_config_table); in mp_config_table_init()
52 mc->mpc_spec = MPSPEC_V14; in mp_config_table_init()
53 mc->mpc_checksum = 0; in mp_config_table_init()
54 mc->mpc_oemptr = 0; in mp_config_table_init()
55 mc->mpc_oemsize = 0; in mp_config_table_init()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/can/usb/peak_usb/
H A Dpcan_usb.c392 static int pcan_usb_update_ts(struct pcan_usb_msg_context *mc) in pcan_usb_update_ts() argument
396 if ((mc->ptr+2) > mc->end) in pcan_usb_update_ts()
399 memcpy(&tmp16, mc->ptr, 2); in pcan_usb_update_ts()
401 mc->ts16 = le16_to_cpu(tmp16); in pcan_usb_update_ts()
403 if (mc->rec_idx > 0) in pcan_usb_update_ts()
404 peak_usb_update_ts_now(&mc->pdev->time_ref, mc->ts16); in pcan_usb_update_ts()
406 peak_usb_set_ts_now(&mc->pdev->time_ref, mc->ts16); in pcan_usb_update_ts()
414 static int pcan_usb_decode_ts(struct pcan_usb_msg_context *mc, u8 first_packet) in pcan_usb_decode_ts() argument
420 if ((mc->ptr + 2) > mc->end) in pcan_usb_decode_ts()
423 memcpy(&tmp16, mc->ptr, 2); in pcan_usb_decode_ts()
[all …]
/OK3568_Linux_fs/kernel/sound/soc/
H A Dsoc-ops.c178 struct soc_mixer_control *mc = in snd_soc_info_volsw() local
182 if (!mc->platform_max) in snd_soc_info_volsw()
183 mc->platform_max = mc->max; in snd_soc_info_volsw()
184 platform_max = mc->platform_max; in snd_soc_info_volsw()
191 uinfo->count = snd_soc_volsw_is_stereo(mc) ? 2 : 1; in snd_soc_info_volsw()
193 uinfo->value.integer.max = platform_max - mc->min; in snd_soc_info_volsw()
213 struct soc_mixer_control *mc = in snd_soc_info_volsw_sx() local
220 uinfo->value.integer.max += mc->min; in snd_soc_info_volsw_sx()
240 struct soc_mixer_control *mc = in snd_soc_get_volsw() local
242 unsigned int reg = mc->reg; in snd_soc_get_volsw()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_gmc.c147 void amdgpu_gmc_vram_location(struct amdgpu_device *adev, struct amdgpu_gmc *mc, in amdgpu_gmc_vram_location() argument
152 mc->vram_start = base; in amdgpu_gmc_vram_location()
153 mc->vram_end = mc->vram_start + mc->mc_vram_size - 1; in amdgpu_gmc_vram_location()
154 if (limit && limit < mc->real_vram_size) in amdgpu_gmc_vram_location()
155 mc->real_vram_size = limit; in amdgpu_gmc_vram_location()
157 if (mc->xgmi.num_physical_nodes == 0) { in amdgpu_gmc_vram_location()
158 mc->fb_start = mc->vram_start; in amdgpu_gmc_vram_location()
159 mc->fb_end = mc->vram_end; in amdgpu_gmc_vram_location()
162 mc->mc_vram_size >> 20, mc->vram_start, in amdgpu_gmc_vram_location()
163 mc->vram_end, mc->real_vram_size >> 20); in amdgpu_gmc_vram_location()
[all …]
/OK3568_Linux_fs/kernel/drivers/dma/
H A Dmilbeaut-hdmac.c97 milbeaut_hdmac_next_desc(struct milbeaut_hdmac_chan *mc) in milbeaut_hdmac_next_desc() argument
101 vd = vchan_next_desc(&mc->vc); in milbeaut_hdmac_next_desc()
103 mc->md = NULL; in milbeaut_hdmac_next_desc()
109 mc->md = to_milbeaut_hdmac_desc(vd); in milbeaut_hdmac_next_desc()
111 return mc->md; in milbeaut_hdmac_next_desc()
115 static void milbeaut_chan_start(struct milbeaut_hdmac_chan *mc, in milbeaut_chan_start() argument
128 width = mc->cfg.dst_addr_width; in milbeaut_chan_start()
129 burst = mc->cfg.dst_maxburst; in milbeaut_chan_start()
131 dest_addr = mc->cfg.dst_addr; in milbeaut_chan_start()
134 width = mc->cfg.src_addr_width; in milbeaut_chan_start()
[all …]
H A Duniphier-mdmac.c88 uniphier_mdmac_next_desc(struct uniphier_mdmac_chan *mc) in uniphier_mdmac_next_desc() argument
92 vd = vchan_next_desc(&mc->vc); in uniphier_mdmac_next_desc()
94 mc->md = NULL; in uniphier_mdmac_next_desc()
100 mc->md = to_uniphier_mdmac_desc(vd); in uniphier_mdmac_next_desc()
102 return mc->md; in uniphier_mdmac_next_desc()
106 static void uniphier_mdmac_handle(struct uniphier_mdmac_chan *mc, in uniphier_mdmac_handle() argument
109 struct uniphier_mdmac_device *mdev = mc->mdev; in uniphier_mdmac_handle()
130 writel(src_mode, mc->reg_ch_base + UNIPHIER_MDMAC_CH_SRC_MODE); in uniphier_mdmac_handle()
131 writel(dest_mode, mc->reg_ch_base + UNIPHIER_MDMAC_CH_DEST_MODE); in uniphier_mdmac_handle()
132 writel(src_addr, mc->reg_ch_base + UNIPHIER_MDMAC_CH_SRC_ADDR); in uniphier_mdmac_handle()
[all …]
H A Dmilbeaut-xdmac.c94 milbeaut_xdmac_next_desc(struct milbeaut_xdmac_chan *mc) in milbeaut_xdmac_next_desc() argument
98 vd = vchan_next_desc(&mc->vc); in milbeaut_xdmac_next_desc()
100 mc->md = NULL; in milbeaut_xdmac_next_desc()
106 mc->md = to_milbeaut_xdmac_desc(vd); in milbeaut_xdmac_next_desc()
108 return mc->md; in milbeaut_xdmac_next_desc()
112 static void milbeaut_chan_start(struct milbeaut_xdmac_chan *mc, in milbeaut_chan_start() argument
119 writel_relaxed(val, mc->reg_ch_base + M10V_XDTBC); in milbeaut_chan_start()
122 writel_relaxed(val, mc->reg_ch_base + M10V_XDSSA); in milbeaut_chan_start()
125 writel_relaxed(val, mc->reg_ch_base + M10V_XDDSA); in milbeaut_chan_start()
127 val = readl_relaxed(mc->reg_ch_base + M10V_XDSAC); in milbeaut_chan_start()
[all …]
/OK3568_Linux_fs/kernel/drivers/misc/
H A Dpti.c51 struct pti_masterchannel *mc; member
99 static void pti_write_to_aperture(struct pti_masterchannel *mc, in pti_write_to_aperture() argument
114 aperture = drv_data->pti_ioaddr + (mc->master << 15) in pti_write_to_aperture()
115 + (mc->channel << 8); in pti_write_to_aperture()
157 static void pti_control_frame_built_and_sent(struct pti_masterchannel *mc, in pti_control_frame_built_and_sent() argument
187 snprintf(control_frame, CONTROL_FRAME_LEN, control_format, mc->master, in pti_control_frame_built_and_sent()
188 mc->channel, thread_name_p); in pti_control_frame_built_and_sent()
206 static void pti_write_full_frame_to_aperture(struct pti_masterchannel *mc, in pti_write_full_frame_to_aperture() argument
210 pti_control_frame_built_and_sent(mc, NULL); in pti_write_full_frame_to_aperture()
211 pti_write_to_aperture(mc, (u8 *)buf, len); in pti_write_full_frame_to_aperture()
[all …]
/OK3568_Linux_fs/kernel/arch/x86/kernel/cpu/microcode/
H A Dintel.c65 static int find_matching_signature(void *mc, unsigned int csig, int cpf) in find_matching_signature() argument
67 struct microcode_header_intel *mc_hdr = mc; in find_matching_signature()
79 ext_hdr = mc + get_datasize(mc_hdr) + MC_HEADER_SIZE; in find_matching_signature()
93 static int has_newer_microcode(void *mc, unsigned int csig, int cpf, int new_rev) in has_newer_microcode() argument
95 struct microcode_header_intel *mc_hdr = mc; in has_newer_microcode()
100 return find_matching_signature(mc, csig, cpf); in has_newer_microcode()
180 static int microcode_sanity_check(void *mc, int print_err) in microcode_sanity_check() argument
183 struct microcode_header_intel *mc_header = mc; in microcode_sanity_check()
215 ext_header = mc + MC_HEADER_SIZE + data_size; in microcode_sanity_check()
249 orig_sum += ((u32 *)mc)[i]; in microcode_sanity_check()
[all …]
/OK3568_Linux_fs/yocto/poky/bitbake/lib/bb/
H A Dcooker.py402 for mc in self.databuilder.mcdata.values():
403 mc.renameVar("__depends", "__base_depends")
404 self.add_filewatch(mc.getVar("__base_depends", False), self.configwatcher)
441 for mc in self.databuilder.mcdata:
442 self.databuilder.mcdata[mc].setVar("BB_HASHSERVE", self.hashservaddr)
470 for mc in self.multiconfigs:
471 self.recipecaches[mc] = bb.cache.CacheData(self.caches_array)
579 mc = ''
602 fn, cls, mc = bb.cache.virtualfn2realfn(buildfile)
603 fn = self.matchFile(fn, mc)
[all …]
H A Dcommand.py251 mc = params[0]
253 mc = ''
254 return command.cooker.matchFile(fMatch, mc)
308 mc = params[0]
310 mc = ''
311 return list(command.cooker.recipecaches[mc].pkg_pn.items())
316 mc = params[0]
318 mc = ''
319 return list(command.cooker.recipecaches[mc].deps.items())
324 mc = params[0]
[all …]
/OK3568_Linux_fs/u-boot/arch/x86/include/asm/
H A Dmpspec.h227 static inline ulong mp_next_mpc_entry(struct mp_config_table *mc) in mp_next_mpc_entry() argument
229 return (ulong)mc + mc->mpc_length; in mp_next_mpc_entry()
241 static inline void mp_add_mpc_entry(struct mp_config_table *mc, uint length) in mp_add_mpc_entry() argument
243 mc->mpc_length += length; in mp_add_mpc_entry()
244 mc->mpc_entry_count++; in mp_add_mpc_entry()
257 static inline ulong mp_next_mpe_entry(struct mp_config_table *mc) in mp_next_mpe_entry() argument
259 return (ulong)mc + mc->mpc_length + mc->mpe_length; in mp_next_mpe_entry()
271 static inline void mp_add_mpe_entry(struct mp_config_table *mc, in mp_add_mpe_entry() argument
274 mc->mpe_length += mpe->mpe_length; in mp_add_mpe_entry()
296 void mp_config_table_init(struct mp_config_table *mc);
[all …]
/OK3568_Linux_fs/kernel/drivers/clk/mediatek/
H A Dclk-mtk.c149 struct clk *mtk_clk_register_composite(const struct mtk_composite *mc, in mtk_clk_register_composite() argument
163 if (mc->mux_shift >= 0) { in mtk_clk_register_composite()
168 mux->reg = base + mc->mux_reg; in mtk_clk_register_composite()
169 mux->mask = BIT(mc->mux_width) - 1; in mtk_clk_register_composite()
170 mux->shift = mc->mux_shift; in mtk_clk_register_composite()
172 mux->flags = mc->mux_flags; in mtk_clk_register_composite()
176 parent_names = mc->parent_names; in mtk_clk_register_composite()
177 num_parents = mc->num_parents; in mtk_clk_register_composite()
179 parent = mc->parent; in mtk_clk_register_composite()
184 if (mc->gate_shift >= 0) { in mtk_clk_register_composite()
[all …]
/OK3568_Linux_fs/kernel/arch/powerpc/platforms/powernv/
H A Dopal-msglog.c34 ssize_t memcons_copy(struct memcons *mc, char *to, loff_t pos, size_t count) in memcons_copy() argument
41 if (!mc) in memcons_copy()
44 out_pos = be32_to_cpu(READ_ONCE(mc->out_pos)); in memcons_copy()
50 conbuf = phys_to_virt(be64_to_cpu(mc->obuf_phys)); in memcons_copy()
58 avail = be32_to_cpu(mc->obuf_size) - out_pos; in memcons_copy()
76 if (out_pos > be32_to_cpu(mc->obuf_size)) { in memcons_copy()
111 struct memcons *mc; in memcons_init() local
119 mc = phys_to_virt(mcaddr); in memcons_init()
120 if (!mc) { in memcons_init()
125 if (be64_to_cpu(mc->magic) != MEMCONS_MAGIC) { in memcons_init()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/radeon/
H A Dr520.c97 rdev->mc.vram_width = 128; in r520_vram_get_type()
98 rdev->mc.vram_is_ddr = true; in r520_vram_get_type()
102 rdev->mc.vram_width = 32; in r520_vram_get_type()
105 rdev->mc.vram_width = 64; in r520_vram_get_type()
108 rdev->mc.vram_width = 128; in r520_vram_get_type()
111 rdev->mc.vram_width = 256; in r520_vram_get_type()
114 rdev->mc.vram_width = 128; in r520_vram_get_type()
118 rdev->mc.vram_width *= 2; in r520_vram_get_type()
126 radeon_vram_location(rdev, &rdev->mc, 0); in r520_mc_init()
127 rdev->mc.gtt_base_align = 0; in r520_mc_init()
[all …]
/OK3568_Linux_fs/kernel/drivers/soc/fsl/qbman/
H A Dbman.c187 struct bm_mc mc; member
430 struct bm_mc *mc = &portal->mc; in bm_mc_init() local
432 mc->cr = portal->addr.ce + BM_CL_CR; in bm_mc_init()
433 mc->rr = portal->addr.ce + BM_CL_RR0; in bm_mc_init()
434 mc->rridx = (mc->cr->_ncw_verb & BM_MCC_VERB_VBIT) ? in bm_mc_init()
436 mc->vbit = mc->rridx ? BM_MCC_VERB_VBIT : 0; in bm_mc_init()
438 mc->state = mc_idle; in bm_mc_init()
446 struct bm_mc *mc = &portal->mc; in bm_mc_finish() local
448 DPAA_ASSERT(mc->state == mc_idle); in bm_mc_finish()
449 if (mc->state != mc_idle) in bm_mc_finish()
[all …]
/OK3568_Linux_fs/u-boot/arch/arm/mach-tegra/
H A Dap.c170 struct mc_ctlr *mc = (struct mc_ctlr *)NV_PA_MC_BASE; in protect_secure_section() local
176 writel(CONFIG_ARMV7_SECURE_BASE, &mc->mc_security_cfg0); in protect_secure_section()
177 writel(CONFIG_ARMV7_SECURE_RESERVE_SIZE >> 20, &mc->mc_security_cfg1); in protect_secure_section()
182 static void smmu_flush(struct mc_ctlr *mc) in smmu_flush() argument
184 (void)readl(&mc->mc_smmu_config); in smmu_flush()
189 struct mc_ctlr *mc = (struct mc_ctlr *)NV_PA_MC_BASE; in smmu_enable() local
197 writel(0xffffffff, &mc->mc_smmu_translation_enable_0); in smmu_enable()
198 writel(0xffffffff, &mc->mc_smmu_translation_enable_1); in smmu_enable()
199 writel(0xffffffff, &mc->mc_smmu_translation_enable_2); in smmu_enable()
200 writel(0xffffffff, &mc->mc_smmu_translation_enable_3); in smmu_enable()
[all …]

12345678910>>...22