Home
last modified time | relevance | path

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

12345678910>>...15

/linux/drivers/memory/tegra/
H A Dmc.c61 struct tegra_mc *mc = data; in tegra_mc_devm_action_put_device() local
63 put_device(mc->dev); in tegra_mc_devm_action_put_device()
79 struct tegra_mc *mc; in devm_tegra_memory_controller_get() local
91 mc = platform_get_drvdata(pdev); in devm_tegra_memory_controller_get()
92 if (!mc) { in devm_tegra_memory_controller_get()
97 err = devm_add_action_or_reset(dev, tegra_mc_devm_action_put_device, mc); in devm_tegra_memory_controller_get()
101 return mc; in devm_tegra_memory_controller_get()
105 int tegra_mc_probe_device(struct tegra_mc *mc, struct device *dev) in tegra_mc_probe_device() argument
107 if (mc->soc->ops && mc->soc->ops->probe_device) in tegra_mc_probe_device()
108 return mc->soc->ops->probe_device(mc, dev); in tegra_mc_probe_device()
[all …]
H A Dtegra20.c75 const struct tegra_mc *mc; member
279 static int tegra20_mc_hotreset_assert(struct tegra_mc *mc, in tegra20_mc_hotreset_assert() argument
285 spin_lock_irqsave(&mc->lock, flags); in tegra20_mc_hotreset_assert()
287 value = mc_readl(mc, rst->reset); in tegra20_mc_hotreset_assert()
288 mc_writel(mc, value & ~BIT(rst->bit), rst->reset); in tegra20_mc_hotreset_assert()
290 spin_unlock_irqrestore(&mc->lock, flags); in tegra20_mc_hotreset_assert()
295 static int tegra20_mc_hotreset_deassert(struct tegra_mc *mc, in tegra20_mc_hotreset_deassert() argument
301 spin_lock_irqsave(&mc->lock, flags); in tegra20_mc_hotreset_deassert()
303 value = mc_readl(mc, rst->reset); in tegra20_mc_hotreset_deassert()
304 mc_writel(mc, value | BIT(rst->bit), rst->reset); in tegra20_mc_hotreset_deassert()
[all …]
H A DMakefile2 tegra-mc-y := mc.o
4 tegra-mc-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra20.o
5 tegra-mc-$(CONFIG_ARCH_TEGRA_3x_SOC) += tegra30.o
6 tegra-mc-$(CONFIG_ARCH_TEGRA_114_SOC) += tegra114.o
7 tegra-mc-$(CONFIG_ARCH_TEGRA_124_SOC) += tegra124.o
8 tegra-mc-$(CONFIG_ARCH_TEGRA_132_SOC) += tegra124.o
9 tegra-mc-$(CONFIG_ARCH_TEGRA_210_SOC) += tegra210.o
10 tegra-mc-$(CONFIG_ARCH_TEGRA_186_SOC) += tegra186.o
11 tegra-mc-$(CONFIG_ARCH_TEGRA_194_SOC) += tegra186.o tegra194.o
12 tegra-mc-$(CONFIG_ARCH_TEGRA_234_SOC) += tegra186.o tegra234.o
[all …]
H A Dtegra186.c26 static int tegra186_mc_probe(struct tegra_mc *mc) in tegra186_mc_probe() argument
28 struct platform_device *pdev = to_platform_device(mc->dev); in tegra186_mc_probe()
43 mc->bcast_ch_regs = devm_platform_ioremap_resource_byname(pdev, "broadcast"); in tegra186_mc_probe()
45 mc->bcast_ch_regs = mc->regs; in tegra186_mc_probe()
47 if (IS_ERR(mc->bcast_ch_regs)) { in tegra186_mc_probe()
48 if (PTR_ERR(mc->bcast_ch_regs) == -EINVAL) { in tegra186_mc_probe()
51 mc->bcast_ch_regs = NULL; in tegra186_mc_probe()
55 return PTR_ERR(mc->bcast_ch_regs); in tegra186_mc_probe()
58 mc->ch_regs = devm_kcalloc(mc->dev, mc->soc->num_channels, sizeof(*mc->ch_regs), in tegra186_mc_probe()
60 if (!mc->ch_regs) in tegra186_mc_probe()
[all …]
H A Dmc.h112 static inline u32 mc_ch_readl(const struct tegra_mc *mc, int ch, in mc_ch_readl() argument
115 if (!mc->bcast_ch_regs) in mc_ch_readl()
119 return readl_relaxed(mc->bcast_ch_regs + offset); in mc_ch_readl()
121 return readl_relaxed(mc->ch_regs[ch] + offset); in mc_ch_readl()
124 static inline void mc_ch_writel(const struct tegra_mc *mc, int ch, in mc_ch_writel() argument
127 if (!mc->bcast_ch_regs) in mc_ch_writel()
131 writel_relaxed(value, mc->bcast_ch_regs + offset); in mc_ch_writel()
133 writel_relaxed(value, mc->ch_regs[ch] + offset); in mc_ch_writel()
136 static inline u32 mc_readl(const struct tegra_mc *mc, unsigned long offset) in mc_readl() argument
138 return readl_relaxed(mc->regs + offset); in mc_readl()
[all …]
/linux/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
65 mutex_lock(&mc->lock); in mc33880_set()
67 ret = __mc33880_set(mc, offset, value); in mc33880_set()
69 mutex_unlock(&mc->lock); in mc33880_set()
[all …]
/linux/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()
53 struct nvkm_mc *mc = device->mc; in nvkm_mc_reset_mask() local
56 if (likely(mc)) { in nvkm_mc_reset_mask()
58 for (map = mc->func->reset; map && map->stat; map++) { in nvkm_mc_reset_mask()
76 device->mc->func->device->disable(device->mc, pmc_enable); in nvkm_mc_reset()
77 device->mc->func->device->enable(device->mc, pmc_enable); in nvkm_mc_reset()
86 device->mc->func->device->disable(device->mc, pmc_enable); in nvkm_mc_disable()
94 device->mc->func->device->enable(device->mc, pmc_enable); in nvkm_mc_enable()
[all …]
H A Dnv04.c34 nv04_mc_device_disable(struct nvkm_mc *mc, u32 mask) in nv04_mc_device_disable() argument
36 nvkm_mask(mc->subdev.device, 0x000200, mask, 0x00000000); in nv04_mc_device_disable()
40 nv04_mc_device_enable(struct nvkm_mc *mc, u32 mask) in nv04_mc_device_enable() argument
42 struct nvkm_device *device = mc->subdev.device; in nv04_mc_device_enable()
49 nv04_mc_device_enabled(struct nvkm_mc *mc, u32 mask) in nv04_mc_device_enabled() argument
51 return (nvkm_rd32(mc->subdev.device, 0x000200) & mask) == mask; in nv04_mc_device_enabled()
74 struct nvkm_mc *mc = container_of(intr, typeof(*mc), intr); in nv04_mc_intr_rearm() local
78 nvkm_wr32(mc->subdev.device, 0x000140 + (leaf * 4), 0x00000001); in nv04_mc_intr_rearm()
84 struct nvkm_mc *mc = container_of(intr, typeof(*mc), intr); in nv04_mc_intr_unarm() local
88 nvkm_wr32(mc->subdev.device, 0x000140 + (leaf * 4), 0x00000000); in nv04_mc_intr_unarm()
[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 …]
H A Dga100.c27 ga100_mc_device_disable(struct nvkm_mc *mc, u32 mask) in ga100_mc_device_disable() argument
29 struct nvkm_device *device = mc->subdev.device; in ga100_mc_device_disable()
37 ga100_mc_device_enable(struct nvkm_mc *mc, u32 mask) in ga100_mc_device_enable() argument
39 struct nvkm_device *device = mc->subdev.device; in ga100_mc_device_enable()
47 ga100_mc_device_enabled(struct nvkm_mc *mc, u32 mask) in ga100_mc_device_enabled() argument
49 return (nvkm_rd32(mc->subdev.device, 0x000600) & mask) == mask; in ga100_mc_device_enabled()
60 ga100_mc_init(struct nvkm_mc *mc) in ga100_mc_init() argument
62 struct nvkm_device *device = mc->subdev.device; in ga100_mc_init()
/linux/drivers/irqchip/
H A Dirq-riscv-aplic-msi.c84 struct aplic_msicfg *mc = &priv->msicfg; in aplic_msi_write_msg() local
105 tbppn &= ~APLIC_xMSICFGADDR_PPN_HART(mc->lhxs); in aplic_msi_write_msg()
106 tbppn &= ~APLIC_xMSICFGADDR_PPN_LHX(mc->lhxw, mc->lhxs); in aplic_msi_write_msg()
107 tbppn &= ~APLIC_xMSICFGADDR_PPN_HHX(mc->hhxw, mc->hhxs); in aplic_msi_write_msg()
108 WARN_ON(tbppn != mc->base_ppn); in aplic_msi_write_msg()
111 group_index = (tppn >> APLIC_xMSICFGADDR_PPN_HHX_SHIFT(mc->hhxs)) & in aplic_msi_write_msg()
112 APLIC_xMSICFGADDR_PPN_HHX_MASK(mc->hhxw); in aplic_msi_write_msg()
113 hart_index = (tppn >> APLIC_xMSICFGADDR_PPN_LHX_SHIFT(mc->lhxs)) & in aplic_msi_write_msg()
114 APLIC_xMSICFGADDR_PPN_LHX_MASK(mc->lhxw); in aplic_msi_write_msg()
115 hart_index |= (group_index << mc->lhxw); in aplic_msi_write_msg()
[all …]
/linux/drivers/crypto/amlogic/
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 …]
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_gmc.c213 void amdgpu_gmc_vram_location(struct amdgpu_device *adev, struct amdgpu_gmc *mc, in amdgpu_gmc_vram_location() argument
219 mc->vram_start = base; in amdgpu_gmc_vram_location()
220 mc->vram_end = mc->vram_start + mc->mc_vram_size - 1; in amdgpu_gmc_vram_location()
221 if (limit < mc->real_vram_size) in amdgpu_gmc_vram_location()
222 mc->real_vram_size = limit; in amdgpu_gmc_vram_location()
224 if (vis_limit && vis_limit < mc->visible_vram_size) in amdgpu_gmc_vram_location()
225 mc->visible_vram_size = vis_limit; in amdgpu_gmc_vram_location()
227 if (mc->real_vram_size < mc->visible_vram_size) in amdgpu_gmc_vram_location()
228 mc->visible_vram_size = mc->real_vram_size; in amdgpu_gmc_vram_location()
230 if (mc->xgmi.num_physical_nodes == 0) { in amdgpu_gmc_vram_location()
[all …]
/linux/include/soc/tegra/
H A Dmc.h103 struct tegra_mc *mc);
108 struct tegra_mc *mc) in tegra_smmu_probe() argument
128 int (*hotreset_assert)(struct tegra_mc *mc,
130 int (*hotreset_deassert)(struct tegra_mc *mc,
132 int (*block_dma)(struct tegra_mc *mc,
134 bool (*dma_idling)(struct tegra_mc *mc,
136 int (*unblock_dma)(struct tegra_mc *mc,
138 int (*reset_status)(struct tegra_mc *mc,
164 int (*probe)(struct tegra_mc *mc);
165 void (*remove)(struct tegra_mc *mc);
[all …]
/linux/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 …]
/linux/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 …]
/linux/arch/x86/um/os-Linux/
H A Dmcontext.c12 void get_regs_from_mc(struct uml_pt_regs *regs, mcontext_t *mc) in get_regs_from_mc() argument
15 #define COPY2(X,Y) regs->gp[X] = mc->gregs[REG_##Y] in get_regs_from_mc()
16 #define COPY(X) regs->gp[X] = mc->gregs[REG_##X] in get_regs_from_mc()
17 #define COPY_SEG(X) regs->gp[X] = mc->gregs[REG_##X] & 0xffff; in get_regs_from_mc()
18 #define COPY_SEG_CPL3(X) regs->gp[X] = (mc->gregs[REG_##X] & 0xffff) | 3; in get_regs_from_mc()
29 #define COPY2(X,Y) regs->gp[X/sizeof(unsigned long)] = mc->gregs[REG_##Y] in get_regs_from_mc()
30 #define COPY(X) regs->gp[X/sizeof(unsigned long)] = mc->gregs[REG_##X] in get_regs_from_mc()
38 regs->gp[SS / sizeof(unsigned long)] = mc->gregs[REG_CSGSFS] >> 48; in get_regs_from_mc()
46 mcontext_t *mc = _mc; in mc_set_rip() local
49 mc->gregs[REG_EIP] = (unsigned long)target; in mc_set_rip()
[all …]
/linux/arch/x86/um/shared/sysdep/
H A Dmcontext.h12 extern void get_mc_from_regs(struct uml_pt_regs *regs, mcontext_t *mc,
22 #define GET_FAULTINFO_FROM_MC(fi, mc) \ argument
24 (fi).cr2 = (mc)->cr2; \
25 (fi).error_code = (mc)->gregs[REG_ERR]; \
26 (fi).trap_no = (mc)->gregs[REG_TRAPNO]; \
31 #define GET_FAULTINFO_FROM_MC(fi, mc) \ argument
33 (fi).cr2 = (mc)->gregs[REG_CR2]; \
34 (fi).error_code = (mc)->gregs[REG_ERR]; \
35 (fi).trap_no = (mc)->gregs[REG_TRAPNO]; \
/linux/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 …]
/linux/drivers/slimbus/
H A Dslimbus.h130 u8 mc; member
140 #define DEFINE_SLIM_LDEST_TXN(name, mc, rl, la, msg) \ argument
141 struct slim_msg_txn name = { rl, 0, mc, SLIM_MSG_DEST_LOGICALADDR, 0,\
144 #define DEFINE_SLIM_BCAST_TXN(name, mc, rl, la, msg) \ argument
145 struct slim_msg_txn name = { rl, 0, mc, SLIM_MSG_DEST_BROADCAST, 0,\
148 #define DEFINE_SLIM_EDEST_TXN(name, mc, rl, la, msg) \ argument
149 struct slim_msg_txn name = { rl, 0, mc, SLIM_MSG_DEST_ENUMADDR, 0,\
436 static inline bool slim_tid_txn(u8 mt, u8 mc) in slim_tid_txn() argument
439 (mc == SLIM_MSG_MC_REQUEST_INFORMATION || in slim_tid_txn()
440 mc == SLIM_MSG_MC_REQUEST_CLEAR_INFORMATION || in slim_tid_txn()
[all …]
/linux/drivers/media/mc/
H A DMakefile3 mc-objs := mc-device.o mc-devnode.o mc-entity.o \
4 mc-request.o
7 mc-objs += mc-dev-allocator.o
10 obj-$(CONFIG_MEDIA_SUPPORT) += mc.o
/linux/Documentation/ABI/testing/
H A Dsysfs-devices-edac1 What: /sys/devices/system/edac/mc/mc*/reset_counters
12 What: /sys/devices/system/edac/mc/mc*/seconds_since_reset
19 What: /sys/devices/system/edac/mc/mc*/mc_name
25 What: /sys/devices/system/edac/mc/mc*/size_mb
31 What: /sys/devices/system/edac/mc/mc*/ue_count
39 What: /sys/devices/system/edac/mc/mc*/ue_noinfo_count
46 What: /sys/devices/system/edac/mc/mc*/ce_count
56 What: /sys/devices/system/edac/mc/mc*/ce_noinfo_count
66 What: /sys/devices/system/edac/mc/mc*/sdram_scrub_rate
78 What: /sys/devices/system/edac/mc/mc*/max_location
[all …]
/linux/drivers/bus/fsl-mc/
H A DMakefile7 obj-$(CONFIG_FSL_MC_BUS) += mc-bus-driver.o
9 mc-bus-driver-objs := fsl-mc-bus.o \
10 mc-sys.o \
11 mc-io.o \
16 fsl-mc-allocator.o \
17 fsl-mc-msi.o \
22 obj-$(CONFIG_FSL_MC_UAPI_SUPPORT) += fsl-mc-uapi.o
/linux/arch/um/os-Linux/
H A Dsignal.c25 void (*sig_info[NSIG])(int, struct siginfo *, struct uml_pt_regs *, void *mc) = {
36 static void sig_handler_common(int sig, struct siginfo *si, mcontext_t *mc) in sig_handler_common() argument
44 get_regs_from_mc(&r, mc); in sig_handler_common()
45 GET_FAULTINFO_FROM_MC(r.faultinfo, mc); in sig_handler_common()
52 (*sig_info[sig])(sig, si, &r, mc); in sig_handler_common()
79 static void sig_handler(int sig, struct siginfo *si, mcontext_t *mc) in sig_handler() argument
117 sig_handler_common(sig, si, mc); in sig_handler()
122 static void timer_real_alarm_handler(mcontext_t *mc) in timer_real_alarm_handler() argument
126 if (mc != NULL) in timer_real_alarm_handler()
127 get_regs_from_mc(&regs, mc); in timer_real_alarm_handler()
[all …]
/linux/drivers/acpi/apei/
H A Dhest.c50 struct acpi_hest_ia_machine_check *mc; member
89 struct acpi_hest_ia_machine_check *mc; in hest_esrc_len() local
90 mc = (struct acpi_hest_ia_machine_check *)hest_hdr; in hest_esrc_len()
91 len = sizeof(*mc) + mc->num_hardware_banks * in hest_esrc_len()
93 mces.mc = mc; in hest_esrc_len()
95 struct acpi_hest_ia_deferred_check *mc; in hest_esrc_len() local
96 mc = (struct acpi_hest_ia_deferred_check *)hest_hdr; in hest_esrc_len()
97 len = sizeof(*mc) + mc->num_hardware_banks * in hest_esrc_len()
99 mces.dmc = mc; in hest_esrc_len()
125 if (mces.mc && mces.mc->flags & ACPI_HEST_GHES_ASSIST && in is_ghes_assist_struct()
[all …]

12345678910>>...15