/drivers/memory/tegra/ |
D | mc.c | 58 struct tegra_mc *mc = data; in tegra_mc_devm_action_put_device() local 60 put_device(mc->dev); in tegra_mc_devm_action_put_device() 76 struct tegra_mc *mc; in devm_tegra_memory_controller_get() local 88 mc = platform_get_drvdata(pdev); in devm_tegra_memory_controller_get() 89 if (!mc) { in devm_tegra_memory_controller_get() 94 err = devm_add_action_or_reset(dev, tegra_mc_devm_action_put_device, mc); in devm_tegra_memory_controller_get() 98 return mc; in devm_tegra_memory_controller_get() 102 int tegra_mc_probe_device(struct tegra_mc *mc, struct device *dev) in tegra_mc_probe_device() argument 104 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() [all …]
|
D | tegra20.c | 75 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 …]
|
D | Makefile | 2 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 …]
|
D | tegra186.c | 26 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() 33 mc->bcast_ch_regs = devm_platform_ioremap_resource_byname(pdev, "broadcast"); in tegra186_mc_probe() 34 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() 50 for (i = 0; i < mc->soc->num_channels; i++) { in tegra186_mc_probe() [all …]
|
D | mc.h | 112 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 …]
|
/drivers/crypto/amlogic/ |
D | amlogic-gxl-core.c | 27 struct meson_dev *mc = (struct meson_dev *)data; in meson_irq_handler() local 32 if (mc->irqs[flow] == irq) { in meson_irq_handler() 33 p = readl(mc->base + ((0x04 + flow) << 2)); in meson_irq_handler() 35 writel_relaxed(0xF, mc->base + ((0x4 + flow) << 2)); in meson_irq_handler() 36 mc->chanlist[flow].status = 1; in meson_irq_handler() 37 complete(&mc->chanlist[flow].complete); in meson_irq_handler() 40 dev_err(mc->dev, "%s %d Got irq for flow %d but ctrl is empty\n", __func__, irq, flow); in meson_irq_handler() 44 dev_err(mc->dev, "%s %d from unknown irq\n", __func__, irq); in meson_irq_handler() 110 struct meson_dev *mc __maybe_unused = seq->private; in meson_debugfs_show() 116 mc->chanlist[i].stat_req); in meson_debugfs_show() [all …]
|
D | amlogic-gxl-cipher.c | 20 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 …]
|
/drivers/gpio/ |
D | gpio-mc33880.c | 43 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 …]
|
/drivers/gpu/drm/nouveau/nvkm/subdev/mc/ |
D | base.c | 32 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 …]
|
D | nv04.c | 34 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 …]
|
D | Kbuild | 2 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 …]
|
D | ga100.c | 25 ga100_mc_device_disable(struct nvkm_mc *mc, u32 mask) in ga100_mc_device_disable() argument 27 struct nvkm_device *device = mc->subdev.device; in ga100_mc_device_disable() 35 ga100_mc_device_enable(struct nvkm_mc *mc, u32 mask) in ga100_mc_device_enable() argument 37 struct nvkm_device *device = mc->subdev.device; in ga100_mc_device_enable() 45 ga100_mc_device_enabled(struct nvkm_mc *mc, u32 mask) in ga100_mc_device_enabled() argument 47 return (nvkm_rd32(mc->subdev.device, 0x000600) & mask) == mask; in ga100_mc_device_enabled() 58 ga100_mc_init(struct nvkm_mc *mc) in ga100_mc_init() argument 60 struct nvkm_device *device = mc->subdev.device; in ga100_mc_init()
|
/drivers/net/can/usb/peak_usb/ |
D | pcan_usb.c | 424 static int pcan_usb_update_ts(struct pcan_usb_msg_context *mc) in pcan_usb_update_ts() argument 426 if ((mc->ptr + 2) > mc->end) in pcan_usb_update_ts() 429 mc->ts16 = get_unaligned_le16(mc->ptr); in pcan_usb_update_ts() 431 if (mc->rec_idx > 0) in pcan_usb_update_ts() 432 peak_usb_update_ts_now(&mc->pdev->time_ref, mc->ts16); in pcan_usb_update_ts() 434 peak_usb_set_ts_now(&mc->pdev->time_ref, mc->ts16); in pcan_usb_update_ts() 442 static int pcan_usb_decode_ts(struct pcan_usb_msg_context *mc, u8 first_packet) in pcan_usb_decode_ts() argument 446 if ((mc->ptr + 2) > mc->end) in pcan_usb_decode_ts() 449 mc->ts16 = get_unaligned_le16(mc->ptr); in pcan_usb_decode_ts() 450 mc->prev_ts8 = mc->ts16 & 0x00ff; in pcan_usb_decode_ts() [all …]
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_gmc.c | 202 void amdgpu_gmc_vram_location(struct amdgpu_device *adev, struct amdgpu_gmc *mc, in amdgpu_gmc_vram_location() argument 208 mc->vram_start = base; in amdgpu_gmc_vram_location() 209 mc->vram_end = mc->vram_start + mc->mc_vram_size - 1; in amdgpu_gmc_vram_location() 210 if (limit < mc->real_vram_size) in amdgpu_gmc_vram_location() 211 mc->real_vram_size = limit; in amdgpu_gmc_vram_location() 213 if (vis_limit && vis_limit < mc->visible_vram_size) in amdgpu_gmc_vram_location() 214 mc->visible_vram_size = vis_limit; in amdgpu_gmc_vram_location() 216 if (mc->real_vram_size < mc->visible_vram_size) in amdgpu_gmc_vram_location() 217 mc->visible_vram_size = mc->real_vram_size; in amdgpu_gmc_vram_location() 219 if (mc->xgmi.num_physical_nodes == 0) { in amdgpu_gmc_vram_location() [all …]
|
/drivers/dma/ |
D | milbeaut-hdmac.c | 97 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 …]
|
D | uniphier-mdmac.c | 88 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 …]
|
D | milbeaut-xdmac.c | 94 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 …]
|
/drivers/gpu/drm/radeon/ |
D | r520.c | 97 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 …]
|
D | radeon_device.c | 567 void radeon_vram_location(struct radeon_device *rdev, struct radeon_mc *mc, u64 base) in radeon_vram_location() argument 571 mc->vram_start = base; in radeon_vram_location() 572 if (mc->mc_vram_size > (rdev->mc.mc_mask - base + 1)) { in radeon_vram_location() 574 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() 580 mc->real_vram_size = mc->aper_size; 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() [all …]
|
D | rv770.c | 926 WREG32(VM_CONTEXT0_PAGE_TABLE_START_ADDR, rdev->mc.gtt_start >> 12); in rv770_pcie_gart_enable() 927 WREG32(VM_CONTEXT0_PAGE_TABLE_END_ADDR, rdev->mc.gtt_end >> 12); in rv770_pcie_gart_enable() 938 (unsigned)(rdev->mc.gtt_size >> 20), in rv770_pcie_gart_enable() 1032 if (rdev->mc.vram_start < rdev->mc.gtt_start) { in rv770_mc_program() 1035 rdev->mc.vram_start >> 12); in rv770_mc_program() 1037 rdev->mc.gtt_end >> 12); in rv770_mc_program() 1041 rdev->mc.gtt_start >> 12); in rv770_mc_program() 1043 rdev->mc.vram_end >> 12); in rv770_mc_program() 1047 rdev->mc.vram_start >> 12); in rv770_mc_program() 1049 rdev->mc.vram_end >> 12); in rv770_mc_program() [all …]
|
/drivers/soc/fsl/qbman/ |
D | bman.c | 187 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 …]
|
/drivers/slimbus/ |
D | slimbus.h | 130 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 …]
|
/drivers/media/mc/ |
D | Makefile | 3 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/ |
D | clk-mtk.c | 219 const struct mtk_composite *mc, void __iomem *base, spinlock_t *lock) in mtk_clk_register_composite() argument 232 if (mc->mux_shift >= 0) { in mtk_clk_register_composite() 237 mux->reg = base + mc->mux_reg; in mtk_clk_register_composite() 238 mux->mask = BIT(mc->mux_width) - 1; 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() 245 parent_names = mc->parent_names; 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() [all …]
|
/drivers/bus/fsl-mc/ |
D | Makefile | 7 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
|