Home
last modified time | relevance | path

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

12345678910>>...22

/linux/drivers/memory/tegra/
A Dmc.c104 if (mc->soc->ops && mc->soc->ops->probe_device) in tegra_mc_probe_device()
105 return mc->soc->ops->probe_device(mc, dev); in tegra_mc_probe_device()
333 mc->reset.of_node = mc->dev->of_node; in tegra_mc_reset_setup()
335 mc->reset.nr_resets = mc->soc->num_resets; in tegra_mc_reset_setup()
824 mc->provider.dev = mc->dev; in tegra_mc_interconnect_setup()
825 mc->provider.data = &mc->provider; in tegra_mc_interconnect_setup()
826 mc->provider.set = mc->soc->icc_ops->set; in tegra_mc_interconnect_setup()
885 mc->num_channels = mc->soc->num_channels; in tegra_mc_num_channel_enabled()
927 if (mc->soc->ops && mc->soc->ops->probe) { in tegra_mc_probe()
928 err = mc->soc->ops->probe(mc); in tegra_mc_probe()
[all …]
A Dtegra20.c75 const struct tegra_mc *mc; member
287 value = mc_readl(mc, rst->reset); in tegra20_mc_hotreset_assert()
303 value = mc_readl(mc, rst->reset); in tegra20_mc_hotreset_deassert()
452 const struct tegra_mc *mc = stat->mc; in tegra20_mc_stat_gather() local
503 stat.mc = mc; in tegra20_mc_stat_events()
685 debugfs_create_devm_seqfile(mc->dev, "stats", mc->debugfs.root, in tegra20_mc_probe()
693 struct tegra_mc *mc = data; in tegra20_mc_handle_irq() local
698 status = mc_readl(mc, MC_INTSTATUS) & mc->soc->intmask; in tegra20_mc_handle_irq()
713 value = mc_readl(mc, reg); in tegra20_mc_handle_irq()
724 value = mc_readl(mc, reg); in tegra20_mc_handle_irq()
[all …]
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 …]
A Dtegra186.c34 if (IS_ERR(mc->bcast_ch_regs)) { in tegra186_mc_probe()
35 if (PTR_ERR(mc->bcast_ch_regs) == -EINVAL) { in tegra186_mc_probe()
38 mc->bcast_ch_regs = NULL; in tegra186_mc_probe()
42 return PTR_ERR(mc->bcast_ch_regs); in tegra186_mc_probe()
45 mc->ch_regs = devm_kcalloc(mc->dev, mc->soc->num_channels, sizeof(*mc->ch_regs), in tegra186_mc_probe()
47 if (!mc->ch_regs) in tegra186_mc_probe()
54 if (IS_ERR(mc->ch_regs[i])) in tegra186_mc_probe()
55 return PTR_ERR(mc->ch_regs[i]); in tegra186_mc_probe()
59 err = of_platform_populate(mc->dev->of_node, NULL, NULL, mc->dev); in tegra186_mc_probe()
68 of_platform_depopulate(mc->dev); in tegra186_mc_remove()
[all …]
/linux/drivers/crypto/amlogic/
A Damlogic-gxl-core.c158 mc->chanlist = devm_kcalloc(mc->dev, MAXFLOW, in meson_allocate_chanlist()
160 if (!mc->chanlist) in meson_allocate_chanlist()
166 mc->chanlist[i].engine = crypto_engine_alloc_init(mc->dev, true); in meson_allocate_chanlist()
178 mc->chanlist[i].tl = dma_alloc_coherent(mc->dev, in meson_allocate_chanlist()
198 mc_algs[i].mc = mc; in meson_register_algs()
220 if (!mc_algs[i].mc) in meson_unregister_algs()
232 struct meson_dev *mc; in meson_crypto_probe() local
235 mc = devm_kzalloc(&pdev->dev, sizeof(*mc), GFP_KERNEL); in meson_crypto_probe()
236 if (!mc) in meson_crypto_probe()
239 mc->dev = &pdev->dev; in meson_crypto_probe()
[all …]
A Damlogic-gxl-cipher.c89 struct meson_dev *mc = op->mc; in meson_cipher() local
114 mc->chanlist[flow].stat_req++; in meson_cipher()
227 mc->chanlist[flow].status = 0; in meson_cipher()
228 writel(mc->chanlist[flow].t_phy | 2, mc->base + (flow << 2)); in meson_cipher()
231 if (mc->chanlist[flow].status == 0) { in meson_cipher()
285 e = get_engine_number(op->mc); in meson_skdecrypt()
286 engine = op->mc->chanlist[e].engine; in meson_skdecrypt()
303 e = get_engine_number(op->mc); in meson_skencrypt()
304 engine = op->mc->chanlist[e].engine; in meson_skencrypt()
321 op->mc = algt->mc; in meson_cipher_init()
[all …]
/linux/drivers/gpio/
A Dgpio-mc33880.c45 return spi_write(mc->spi, &mc->port_config, sizeof(mc->port_config)); in mc33880_write_config()
64 mutex_lock(&mc->lock); in mc33880_set()
68 mutex_unlock(&mc->lock); in mc33880_set()
73 struct mc33880 *mc; in mc33880_probe() local
93 if (!mc) in mc33880_probe()
96 mutex_init(&mc->lock); in mc33880_probe()
100 mc->spi = spi; in mc33880_probe()
110 mc->port_config = 0x00; in mc33880_probe()
116 mc->port_config = 0x00; in mc33880_probe()
126 ret = gpiochip_add_data(&mc->chip, mc); in mc33880_probe()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mc/
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
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()
94 device->mc->func->device->enable(device->mc, pmc_enable); in nvkm_mc_enable()
110 mc->func->init(mc); in nvkm_mc_init()
133 if (!(mc = *pmc = kzalloc(sizeof(*mc), GFP_KERNEL))) in nvkm_mc_new_()
140 ret = nvkm_intr_add(mc->func->intr, mc->func->intrs, &mc->subdev, in nvkm_mc_new_()
[all …]
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
74 struct nvkm_mc *mc = container_of(intr, typeof(*mc), intr); in nv04_mc_intr_rearm() local
84 struct nvkm_mc *mc = container_of(intr, typeof(*mc), intr); in nv04_mc_intr_unarm() local
90 nvkm_rd32(mc->subdev.device, 0x000140); in nv04_mc_intr_unarm()
96 struct nvkm_mc *mc = container_of(intr, typeof(*mc), intr); in nv04_mc_intr_pending() local
117 nv04_mc_init(struct nvkm_mc *mc) in nv04_mc_init() argument
[all …]
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 …]
/linux/sound/soc/
A Dsoc-ops.c183 max = uinfo->value.integer.max = mc->max - mc->min; in snd_soc_info_volsw()
184 if (mc->platform_max && mc->platform_max < max) in snd_soc_info_volsw()
454 if (mc->platform_max && val > mc->platform_max) in snd_soc_put_volsw_sx()
470 if (mc->platform_max && val2 > mc->platform_max) in snd_soc_put_volsw_sx()
510 mc->platform_max = mc->max; in snd_soc_info_volsw_range()
550 if (mc->platform_max && tmp > mc->platform_max) in snd_soc_put_volsw_range()
552 if (tmp > mc->max - mc->min) in snd_soc_put_volsw_range()
571 if (mc->platform_max && tmp > mc->platform_max) in snd_soc_put_volsw_range()
573 if (tmp > mc->max - mc->min) in snd_soc_put_volsw_range()
665 if (max <= mc->max - mc->min) { in snd_soc_limit_volume()
[all …]
/linux/drivers/net/can/usb/peak_usb/
A Dpcan_usb.c426 if ((mc->ptr + 2) > mc->end) in pcan_usb_update_ts()
429 mc->ts16 = get_unaligned_le16(mc->ptr); in pcan_usb_update_ts()
446 if ((mc->ptr + 2) > mc->end) in pcan_usb_decode_ts()
450 mc->prev_ts8 = mc->ts16 & 0x00ff; in pcan_usb_decode_ts()
456 if ((mc->ptr + 1) > mc->end) in pcan_usb_decode_ts()
586 if ((mc->ptr + 2) > mc->end) in pcan_usb_decode_status()
639 if ((mc->ptr + rec_len) > mc->end) in pcan_usb_decode_status()
663 if ((mc->ptr + 4) > mc->end) in pcan_usb_decode_data()
670 if ((mc->ptr + 2) > mc->end) in pcan_usb_decode_data()
692 if ((mc->ptr + rec_len) > mc->end) in pcan_usb_decode_data()
[all …]
/linux/drivers/dma/
A Dmilbeaut-hdmac.c103 mc->md = NULL; in milbeaut_hdmac_next_desc()
111 return mc->md; in milbeaut_hdmac_next_desc()
177 spin_lock(&mc->vc.lock); in milbeaut_hdmac_interrupt()
187 md = mc->md; in milbeaut_hdmac_interrupt()
218 spin_lock(&mc->vc.lock); in milbeaut_hdmac_chan_config()
219 mc->cfg = *cfg; in milbeaut_hdmac_chan_config()
302 if (mc->md) { in milbeaut_hdmac_terminate_all()
304 mc->md = NULL; in milbeaut_hdmac_terminate_all()
345 if (mc->md && mc->md->vd.tx.cookie == cookie) { in milbeaut_hdmac_tx_status()
349 md = mc->md; in milbeaut_hdmac_tx_status()
[all …]
A Duniphier-mdmac.c94 mc->md = NULL; in uniphier_mdmac_next_desc()
102 return mc->md; in uniphier_mdmac_next_desc()
182 spin_lock(&mc->vc.lock); in uniphier_mdmac_interrupt()
203 md = mc->md; in uniphier_mdmac_interrupt()
219 spin_unlock(&mc->vc.lock); in uniphier_mdmac_interrupt()
262 if (mc->md) { in uniphier_mdmac_terminate_all()
264 mc->md = NULL; in uniphier_mdmac_terminate_all()
304 if (mc->md && mc->md->vd.tx.cookie == cookie) { in uniphier_mdmac_tx_status()
308 md = mc->md; in uniphier_mdmac_tx_status()
370 mc->mdev = mdev; in uniphier_mdmac_chan_init()
[all …]
A Dmilbeaut-xdmac.c98 vd = vchan_next_desc(&mc->vc); in milbeaut_xdmac_next_desc()
100 mc->md = NULL; in milbeaut_xdmac_next_desc()
108 return mc->md; in milbeaut_xdmac_next_desc()
156 milbeaut_chan_start(mc, md); in milbeaut_xdmac_start()
165 spin_lock(&mc->vc.lock); in milbeaut_xdmac_interrupt()
171 md = mc->md; in milbeaut_xdmac_interrupt()
177 milbeaut_xdmac_start(mc); in milbeaut_xdmac_interrupt()
179 spin_unlock(&mc->vc.lock); in milbeaut_xdmac_interrupt()
223 if (mc->md) { in milbeaut_xdmac_terminate_all()
225 mc->md = NULL; in milbeaut_xdmac_terminate_all()
[all …]
/linux/drivers/irqchip/
A Dirq-riscv-aplic-msi.c84 struct aplic_msicfg *mc = &priv->msicfg; in aplic_msi_write_msg() local
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()
115 hart_index |= (group_index << mc->lhxw); in aplic_msi_write_msg()
180 struct aplic_msicfg *mc; in aplic_msi_setup() local
193 mc = &priv->msicfg; in aplic_msi_setup()
213 mc->lhxw = imsic_global->hart_index_bits; in aplic_msi_setup()
241 mc->base_ppn &= ~APLIC_xMSICFGADDR_PPN_HART(mc->lhxs); in aplic_msi_setup()
242 mc->base_ppn &= ~APLIC_xMSICFGADDR_PPN_LHX(mc->lhxw, mc->lhxs); in aplic_msi_setup()
[all …]
/linux/arch/x86/kernel/cpu/microcode/
A Dintel.c254 if (mc) in save_microcode_patch()
308 if (!mc) in __apply_microcode()
341 struct microcode_intel *mc = uci->mc; in apply_microcode_early() local
402 if (uci.mc) in save_builtin_microcode()
427 if (uci.mc) in load_ucode_intel_ap()
436 if (uci.mc) in reload_ucode_intel()
524 kvfree(mc); in parse_microcode_blobs()
526 if (!mc) in parse_microcode_blobs()
551 mc = NULL; in parse_microcode_blobs()
557 kvfree(mc); in parse_microcode_blobs()
[all …]
/linux/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_gmc.c213 mc->vram_end = mc->vram_start + mc->mc_vram_size - 1; in amdgpu_gmc_vram_location()
224 mc->fb_start = mc->vram_start; in amdgpu_gmc_vram_location()
225 mc->fb_end = mc->vram_end; in amdgpu_gmc_vram_location()
253 mc->vram_end = mc->vram_start + mc->xgmi.node_segment_size - 1; in amdgpu_gmc_sysvm_location()
255 mc->gart_end = mc->gart_start + mc->gart_size - 1; in amdgpu_gmc_sysvm_location()
262 mc->gart_size >> 20, mc->gart_start, mc->gart_end); in amdgpu_gmc_sysvm_location()
313 mc->gart_end = mc->gart_start + mc->gart_size - 1; in amdgpu_gmc_gart_location()
315 mc->gart_size >> 20, mc->gart_start, mc->gart_end); in amdgpu_gmc_gart_location()
335 if (mc->fb_start > mc->gart_start) { in amdgpu_gmc_agp_location()
353 mc->agp_end = mc->agp_start + mc->agp_size - 1; in amdgpu_gmc_agp_location()
[all …]
/linux/include/soc/tegra/
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/
A Dopal-msglog.c41 if (!mc) in memcons_copy()
44 out_pos = be32_to_cpu(READ_ONCE(mc->out_pos)); 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()
130 return mc; in memcons_init()
136 u32 __init memcons_get_size(struct memcons *mc) in memcons_get_size() argument
[all …]
/linux/drivers/gpu/drm/radeon/
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/drivers/media/mc/
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/arch/x86/um/shared/sysdep/
A Dmcontext.h13 #define GET_FAULTINFO_FROM_MC(fi, mc) \ argument
15 (fi).cr2 = (mc)->cr2; \
16 (fi).error_code = (mc)->gregs[REG_ERR]; \
17 (fi).trap_no = (mc)->gregs[REG_TRAPNO]; \
22 #define GET_FAULTINFO_FROM_MC(fi, mc) \ argument
24 (fi).cr2 = (mc)->gregs[REG_CR2]; \
25 (fi).error_code = (mc)->gregs[REG_ERR]; \
26 (fi).trap_no = (mc)->gregs[REG_TRAPNO]; \
/linux/drivers/slimbus/
A Dslimbus.h130 u8 mc; member
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()
441 mc == SLIM_MSG_MC_REQUEST_VALUE || in slim_tid_txn()
442 mc == SLIM_MSG_MC_REQUEST_CHANGE_VALUE)); in slim_tid_txn()
445 static inline bool slim_ec_txn(u8 mt, u8 mc) in slim_ec_txn() argument
448 ((mc >= SLIM_MSG_MC_REQUEST_INFORMATION && in slim_ec_txn()
449 mc <= SLIM_MSG_MC_REPORT_INFORMATION) || in slim_ec_txn()
450 (mc >= SLIM_MSG_MC_REQUEST_VALUE && in slim_ec_txn()
[all …]
/linux/drivers/bus/fsl-mc/
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

Completed in 40 milliseconds

12345678910>>...22