Home
last modified time | relevance | path

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

12345678910

/drivers/memory/tegra/
A Dmc.c107 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()
336 mc->reset.of_node = mc->dev->of_node; in tegra_mc_reset_setup()
338 mc->reset.nr_resets = mc->soc->num_resets; in tegra_mc_reset_setup()
827 mc->provider.dev = mc->dev; in tegra_mc_interconnect_setup()
828 mc->provider.data = &mc->provider; in tegra_mc_interconnect_setup()
829 mc->provider.set = mc->soc->icc_ops->set; in tegra_mc_interconnect_setup()
888 mc->num_channels = mc->soc->num_channels; in tegra_mc_num_channel_enabled()
930 if (mc->soc->ops && mc->soc->ops->probe) { in tegra_mc_probe()
931 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 Dtegra186.c45 mc->bcast_ch_regs = mc->regs; in tegra186_mc_probe()
47 if (IS_ERR(mc->bcast_ch_regs)) { 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()
67 if (IS_ERR(mc->ch_regs[i])) in tegra186_mc_probe()
68 return PTR_ERR(mc->ch_regs[i]); in tegra186_mc_probe()
72 err = of_platform_populate(mc->dev->of_node, NULL, NULL, mc->dev); in tegra186_mc_probe()
81 of_platform_depopulate(mc->dev); in tegra186_mc_remove()
[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 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()
138 return readl_relaxed(mc->regs + offset); in mc_readl()
144 writel_relaxed(value, mc->regs + offset); in mc_writel()
[all …]
/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 …]
/drivers/gpio/
A Dgpio-mc33880.c45 return spi_write(mc->spi, &mc->port_config, sizeof(mc->port_config)); in mc33880_write_config()
65 mutex_lock(&mc->lock); in mc33880_set()
69 mutex_unlock(&mc->lock); in mc33880_set()
76 struct mc33880 *mc; in mc33880_probe() local
96 if (!mc) in mc33880_probe()
99 mutex_init(&mc->lock); in mc33880_probe()
103 mc->spi = spi; in mc33880_probe()
113 mc->port_config = 0x00; in mc33880_probe()
119 mc->port_config = 0x00; in mc33880_probe()
129 ret = gpiochip_add_data(&mc->chip, mc); in mc33880_probe()
[all …]
/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 …]
/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 …]
/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 …]
/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 …]
/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_gmc.c220 mc->vram_end = mc->vram_start + mc->mc_vram_size - 1; in amdgpu_gmc_vram_location()
231 mc->fb_start = mc->vram_start; in amdgpu_gmc_vram_location()
232 mc->fb_end = mc->vram_end; in amdgpu_gmc_vram_location()
260 mc->vram_end = mc->vram_start + mc->xgmi.node_segment_size - 1; in amdgpu_gmc_sysvm_location()
263 mc->gart_end = mc->gart_start + mc->gart_size - 1; in amdgpu_gmc_sysvm_location()
269 mc->vram_end = mc->vram_start + mc->mc_vram_size - 1; in amdgpu_gmc_sysvm_location()
279 mc->gart_size >> 20, mc->gart_start, mc->gart_end); in amdgpu_gmc_sysvm_location()
329 mc->gart_end = mc->gart_start + mc->gart_size - 1; in amdgpu_gmc_gart_location()
331 mc->gart_size >> 20, mc->gart_start, mc->gart_end); in amdgpu_gmc_gart_location()
369 mc->agp_end = mc->agp_start + mc->agp_size - 1; in amdgpu_gmc_agp_location()
[all …]
/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 …]
A Dradeon_device.c574 mc->real_vram_size = mc->aper_size; in radeon_vram_location()
575 mc->mc_vram_size = mc->aper_size; in radeon_vram_location()
577 mc->vram_end = mc->vram_start + mc->mc_vram_size - 1; in radeon_vram_location()
578 if (rdev->flags & RADEON_IS_AGP && mc->vram_end > mc->gtt_start && mc->vram_start <= mc->gtt_end) { in radeon_vram_location()
581 mc->mc_vram_size = mc->aper_size; in radeon_vram_location()
583 mc->vram_end = mc->vram_start + mc->mc_vram_size - 1; in radeon_vram_location()
607 size_af = ((rdev->mc.mc_mask - mc->vram_end) + mc->gtt_base_align) & ~mc->gtt_base_align; in radeon_gtt_location()
614 mc->gtt_start = (mc->vram_start & ~mc->gtt_base_align) - mc->gtt_size; in radeon_gtt_location()
620 mc->gtt_start = (mc->vram_end + 1 + mc->gtt_base_align) & ~mc->gtt_base_align; in radeon_gtt_location()
622 mc->gtt_end = mc->gtt_start + mc->gtt_size - 1; in radeon_gtt_location()
[all …]
/drivers/soc/fsl/qbman/
A Dbman.c430 struct bm_mc *mc = &portal->mc; in bm_mc_init() local
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()
446 struct bm_mc *mc = &portal->mc; in bm_mc_finish() local
456 struct bm_mc *mc = &portal->mc; in bm_mc_start() local
463 return mc->cr; in bm_mc_start()
468 struct bm_mc *mc = &portal->mc; in bm_mc_commit() local
469 union bm_mc_result *rr = mc->rr + mc->rridx; in bm_mc_commit()
473 mc->cr->_ncw_verb = myverb | mc->vbit; in bm_mc_commit()
483 struct bm_mc *mc = &portal->mc; in bm_mc_result() local
[all …]
/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 …]
/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
/drivers/clk/mediatek/
A Dclk-mtk.c232 if (mc->mux_shift >= 0) { in mtk_clk_register_composite()
237 mux->reg = base + mc->mux_reg; in mtk_clk_register_composite()
239 mux->shift = mc->mux_shift; in mtk_clk_register_composite()
241 mux->flags = mc->mux_flags; in mtk_clk_register_composite()
246 num_parents = mc->num_parents; in mtk_clk_register_composite()
248 parent = mc->parent; in mtk_clk_register_composite()
253 if (mc->gate_shift >= 0) { in mtk_clk_register_composite()
269 if (mc->divider_shift >= 0) { in mtk_clk_register_composite()
289 mc->flags); in mtk_clk_register_composite()
345 mc->id); in mtk_clk_register_composites()
[all …]
/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
/drivers/acpi/apei/
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 …]

Completed in 54 milliseconds

12345678910