Searched refs:mc (Results 1 - 25 of 451) sorted by relevance

1234567891011>>

/linux-master/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-master/arch/x86/um/shared/sysdep/
H A Dmcontext.h13 #define GET_FAULTINFO_FROM_MC(fi, mc) \
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) \
24 (fi).cr2 = (mc)->gregs[REG_CR2]; \
25 (fi).error_code = (mc)->gregs[REG_ERR]; \
26 (fi).trap_no = (mc)->gregs[REG_TRAPNO]; \
/linux-master/drivers/vfio/fsl-mc/
H A DMakefile3 vfio-fsl-mc-y := vfio_fsl_mc.o vfio_fsl_mc_intr.o
4 obj-$(CONFIG_VFIO_FSL_MC) += vfio-fsl-mc.o
/linux-master/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-master/drivers/memory/tegra/
H A Dmc.c22 #include "mc.h"
26 { .compatible = "nvidia,tegra20-mc-gart", .data = &tegra20_mc_soc },
29 { .compatible = "nvidia,tegra30-mc", .data = &tegra30_mc_soc },
32 { .compatible = "nvidia,tegra114-mc", .data = &tegra114_mc_soc },
35 { .compatible = "nvidia,tegra124-mc", .data = &tegra124_mc_soc },
38 { .compatible = "nvidia,tegra132-mc", .data = &tegra132_mc_soc },
41 { .compatible = "nvidia,tegra210-mc", .data = &tegra210_mc_soc },
44 { .compatible = "nvidia,tegra186-mc", .data = &tegra186_mc_soc },
47 { .compatible = "nvidia,tegra194-mc", .data = &tegra194_mc_soc },
50 { .compatible = "nvidia,tegra234-mc",
58 struct tegra_mc *mc = data; local
76 struct tegra_mc *mc; local
102 tegra_mc_probe_device(struct tegra_mc *mc, struct device *dev) argument
111 tegra_mc_get_carveout_info(struct tegra_mc *mc, unsigned int id, phys_addr_t *base, u64 *size) argument
136 tegra_mc_block_dma_common(struct tegra_mc *mc, const struct tegra_mc_reset *rst) argument
152 tegra_mc_dma_idling_common(struct tegra_mc *mc, const struct tegra_mc_reset *rst) argument
158 tegra_mc_unblock_dma_common(struct tegra_mc *mc, const struct tegra_mc_reset *rst) argument
174 tegra_mc_reset_status_common(struct tegra_mc *mc, const struct tegra_mc_reset *rst) argument
192 tegra_mc_reset_find(struct tegra_mc *mc, unsigned long id) argument
207 struct tegra_mc *mc = reset_to_mc(rcdev); local
267 struct tegra_mc *mc = reset_to_mc(rcdev); local
306 struct tegra_mc *mc = reset_to_mc(rcdev); local
327 tegra_mc_reset_setup(struct tegra_mc *mc) argument
344 tegra_mc_write_emem_configuration(struct tegra_mc *mc, unsigned long rate) argument
369 tegra_mc_get_emem_device_count(struct tegra_mc *mc) argument
386 tegra_mc_setup_latency_allowance(struct tegra_mc *mc) argument
418 load_one_timing(struct tegra_mc *mc, struct tegra_mc_timing *timing, struct device_node *node) argument
451 load_timings(struct tegra_mc *mc, struct device_node *node) argument
478 tegra_mc_setup_timings(struct tegra_mc *mc) argument
509 tegra30_mc_probe(struct tegra_mc *mc) argument
543 mc_global_intstatus_to_channel(const struct tegra_mc *mc, u32 status, unsigned int *mc_channel) argument
555 mc_channel_to_global_intstatus(const struct tegra_mc *mc, unsigned int channel) argument
563 struct tegra_mc *mc = data; local
760 struct tegra_mc *mc = icc_provider_to_tegra_mc(data); local
818 tegra_mc_interconnect_setup(struct tegra_mc *mc) argument
883 tegra_mc_num_channel_enabled(struct tegra_mc *mc) argument
902 struct tegra_mc *mc; local
987 struct tegra_mc *mc = dev_get_drvdata(dev); local
[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
[all...]
H A Dtegra20.c14 #include <dt-bindings/memory/tegra20-mc.h>
16 #include "mc.h"
75 const struct tegra_mc *mc; member in struct:tegra20_mc_stat
279 static int tegra20_mc_hotreset_assert(struct tegra_mc *mc, argument
285 spin_lock_irqsave(&mc->lock, flags);
287 value = mc_readl(mc, rst->reset);
288 mc_writel(mc, value & ~BIT(rst->bit), rst->reset);
290 spin_unlock_irqrestore(&mc->lock, flags);
295 static int tegra20_mc_hotreset_deassert(struct tegra_mc *mc, argument
301 spin_lock_irqsave(&mc
311 tegra20_mc_block_dma(struct tegra_mc *mc, const struct tegra_mc_reset *rst) argument
327 tegra20_mc_dma_idling(struct tegra_mc *mc, const struct tegra_mc_reset *rst) argument
333 tegra20_mc_reset_status(struct tegra_mc *mc, const struct tegra_mc_reset *rst) argument
339 tegra20_mc_unblock_dma(struct tegra_mc *mc, const struct tegra_mc_reset *rst) argument
395 struct tegra_mc *mc = icc_provider_to_tegra_mc(data); local
452 const struct tegra_mc *mc = stat->mc; local
479 tegra20_mc_stat_events(const struct tegra_mc *mc, const struct tegra_mc_client *client0, const struct tegra_mc_client *client1, unsigned int pri_filter, unsigned int pri_event, unsigned int event, unsigned int *result0, unsigned int *result1) argument
511 tegra20_mc_collect_stats(const struct tegra_mc *mc, struct tegra20_mc_client_stat *stats) argument
614 const struct tegra_mc *mc = dev_get_drvdata(s->private); local
683 tegra20_mc_probe(struct tegra_mc *mc) argument
693 struct tegra_mc *mc = data; local
[all...]
H A Dmc.h13 #include <soc/tegra/mc.h>
112 static inline u32 mc_ch_readl(const struct tegra_mc *mc, int ch, argument
115 if (!mc->bcast_ch_regs)
119 return readl_relaxed(mc->bcast_ch_regs + offset);
121 return readl_relaxed(mc->ch_regs[ch] + offset);
124 static inline void mc_ch_writel(const struct tegra_mc *mc, int ch, argument
127 if (!mc->bcast_ch_regs)
131 writel_relaxed(value, mc->bcast_ch_regs + offset);
133 writel_relaxed(value, mc->ch_regs[ch] + offset);
136 static inline u32 mc_readl(const struct tegra_mc *mc, unsigne argument
141 mc_writel(const struct tegra_mc *mc, u32 value, unsigned long offset) argument
[all...]
/linux-master/drivers/gpio/
H A Dgpio-mc33880.c43 static int mc33880_write_config(struct mc33880 *mc) argument
45 return spi_write(mc->spi, &mc->port_config, sizeof(mc->port_config));
49 static int __mc33880_set(struct mc33880 *mc, unsigned offset, int value) argument
52 mc->port_config |= 1 << offset;
54 mc->port_config &= ~(1 << offset);
56 return mc33880_write_config(mc);
62 struct mc33880 *mc = gpiochip_get_data(chip); local
64 mutex_lock(&mc
73 struct mc33880 *mc; local
139 struct mc33880 *mc; local
[all...]
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/mc/
H A Dbase.c32 struct nvkm_mc *mc = device->mc; local
33 if (likely(mc) && mc->func->unk260)
34 mc->func->unk260(mc, data);
53 struct nvkm_mc *mc = device->mc; local
56 if (likely(mc)) {
58 for (map = mc
108 struct nvkm_mc *mc = nvkm_mc(subdev); local
130 struct nvkm_mc *mc; local
[all...]
H A Dnv04.c34 nv04_mc_device_disable(struct nvkm_mc *mc, u32 mask) argument
36 nvkm_mask(mc->subdev.device, 0x000200, mask, 0x00000000);
40 nv04_mc_device_enable(struct nvkm_mc *mc, u32 mask) argument
42 struct nvkm_device *device = mc->subdev.device;
49 nv04_mc_device_enabled(struct nvkm_mc *mc, u32 mask) argument
51 return (nvkm_rd32(mc->subdev.device, 0x000200) & mask) == mask;
74 struct nvkm_mc *mc = container_of(intr, typeof(*mc), intr); local
78 nvkm_wr32(mc->subdev.device, 0x000140 + (leaf * 4), 0x00000001);
84 struct nvkm_mc *mc local
96 struct nvkm_mc *mc = container_of(intr, typeof(*mc), intr); local
117 nv04_mc_init(struct nvkm_mc *mc) argument
[all...]
H A Dga100.c27 ga100_mc_device_disable(struct nvkm_mc *mc, u32 mask) argument
29 struct nvkm_device *device = mc->subdev.device;
37 ga100_mc_device_enable(struct nvkm_mc *mc, u32 mask) argument
39 struct nvkm_device *device = mc->subdev.device;
47 ga100_mc_device_enabled(struct nvkm_mc *mc, u32 mask) argument
49 return (nvkm_rd32(mc->subdev.device, 0x000600) & mask) == mask;
60 ga100_mc_init(struct nvkm_mc *mc) argument
62 struct nvkm_device *device = mc->subdev.device;
H A Dgt215.c59 struct nvkm_mc *mc = container_of(intr, typeof(*mc), intr); local
61 nvkm_mask(mc->subdev.device, 0x000640 + (leaf * 4), mask, mask);
67 struct nvkm_mc *mc = container_of(intr, typeof(*mc), intr); local
69 nvkm_mask(mc->subdev.device, 0x000640 + (leaf * 4), mask, 0);
/linux-master/drivers/crypto/amlogic/
H A Damlogic-gxl-core.c27 struct meson_dev *mc = (struct meson_dev *)data; local
32 if (mc->irqs[flow] == irq) {
33 p = readl(mc->base + ((0x04 + flow) << 2));
35 writel_relaxed(0xF, mc->base + ((0x4 + flow) << 2));
36 mc->chanlist[flow].status = 1;
37 complete(&mc->chanlist[flow].complete);
40 dev_err(mc->dev, "%s %d Got irq for flow %d but ctrl is empty\n", __func__, irq, flow);
44 dev_err(mc->dev, "%s %d from unknown irq\n", __func__, irq);
110 struct meson_dev *mc __maybe_unused = seq->private;
116 mc
139 meson_free_chanlist(struct meson_dev *mc, int i) argument
154 meson_allocate_chanlist(struct meson_dev *mc) argument
193 meson_register_algs(struct meson_dev *mc) argument
215 meson_unregister_algs(struct meson_dev *mc) argument
232 struct meson_dev *mc; local
304 struct meson_dev *mc = platform_get_drvdata(pdev); local
[all...]
H A Damlogic-gxl-cipher.c20 static int get_engine_number(struct meson_dev *mc) argument
22 return atomic_inc_return(&mc->flow) % MAXFLOW;
89 struct meson_dev *mc = op->mc; local
106 dev_dbg(mc->dev, "%s %s %u %x IV(%u) key=%u flow=%d\n", __func__,
114 mc->chanlist[flow].stat_req++;
132 dev_err(mc->dev, "invalid ivsize=%d vs len=%d\n", ivsize, areq->cryptlen);
152 phykeyiv = dma_map_single(mc->dev, bkeyiv, keyivlen,
154 err = dma_mapping_error(mc->dev, phykeyiv);
156 dev_err(mc
348 struct meson_dev *mc = op->mc; local
[all...]
/linux-master/drivers/soc/fsl/dpio/
H A DMakefile6 obj-$(CONFIG_FSL_MC_DPIO) += fsl-mc-dpio.o
8 fsl-mc-dpio-objs := dpio.o qbman-portal.o dpio-service.o dpio-driver.o
/linux-master/arch/powerpc/platforms/powernv/
H A Dopal-msglog.c34 ssize_t memcons_copy(struct memcons *mc, char *to, loff_t pos, size_t count) argument
41 if (!mc)
44 out_pos = be32_to_cpu(READ_ONCE(mc->out_pos));
50 conbuf = phys_to_virt(be64_to_cpu(mc->obuf_phys));
58 avail = be32_to_cpu(mc->obuf_size) - out_pos;
76 if (out_pos > be32_to_cpu(mc->obuf_size)) {
111 struct memcons *mc; local
119 mc = phys_to_virt(mcaddr);
120 if (!mc) {
125 if (be64_to_cpu(mc
136 memcons_get_size(struct memcons *mc) argument
[all...]
/linux-master/drivers/dma/
H A Duniphier-mdmac.c86 /* mc->vc.lock must be held by caller */
88 uniphier_mdmac_next_desc(struct uniphier_mdmac_chan *mc) argument
92 vd = vchan_next_desc(&mc->vc);
94 mc->md = NULL;
100 mc->md = to_uniphier_mdmac_desc(vd);
102 return mc->md;
105 /* mc->vc.lock must be held by caller */
106 static void uniphier_mdmac_handle(struct uniphier_mdmac_chan *mc, argument
109 struct uniphier_mdmac_device *mdev = mc->mdev;
130 writel(src_mode, mc
145 uniphier_mdmac_start(struct uniphier_mdmac_chan *mc) argument
155 uniphier_mdmac_abort(struct uniphier_mdmac_chan *mc) argument
177 struct uniphier_mdmac_chan *mc = dev_id; local
255 struct uniphier_mdmac_chan *mc = to_uniphier_mdmac_chan(vc); local
287 struct uniphier_mdmac_chan *mc; local
331 struct uniphier_mdmac_chan *mc = to_uniphier_mdmac_chan(vc); local
352 struct uniphier_mdmac_chan *mc = &mdev->channels[chan_id]; local
[all...]
H A Dmilbeaut-hdmac.c95 /* mc->vc.lock must be held by caller */
97 milbeaut_hdmac_next_desc(struct milbeaut_hdmac_chan *mc) argument
101 vd = vchan_next_desc(&mc->vc);
103 mc->md = NULL;
109 mc->md = to_milbeaut_hdmac_desc(vd);
111 return mc->md;
114 /* mc->vc.lock must be held by caller */
115 static void milbeaut_chan_start(struct milbeaut_hdmac_chan *mc, argument
128 width = mc->cfg.dst_addr_width;
129 burst = mc
162 milbeaut_hdmac_start(struct milbeaut_hdmac_chan *mc) argument
173 struct milbeaut_hdmac_chan *mc = dev_id; local
216 struct milbeaut_hdmac_chan *mc = to_milbeaut_hdmac_chan(vc); local
228 struct milbeaut_hdmac_chan *mc = to_milbeaut_hdmac_chan(vc); local
243 struct milbeaut_hdmac_chan *mc = to_milbeaut_hdmac_chan(vc); local
290 struct milbeaut_hdmac_chan *mc = to_milbeaut_hdmac_chan(vc); local
327 struct milbeaut_hdmac_chan *mc; local
383 struct milbeaut_hdmac_chan *mc = to_milbeaut_hdmac_chan(vc); local
406 struct milbeaut_hdmac_chan *mc; local
429 struct milbeaut_hdmac_chan *mc = &mdev->channels[chan_id]; local
[all...]
/linux-master/sound/soc/
H A Dsoc-ops.c177 struct soc_mixer_control *mc = local
182 max = uinfo->value.integer.max = mc->max - mc->min;
183 if (mc->platform_max && mc->platform_max < max)
184 max = mc->platform_max;
197 uinfo->count = snd_soc_volsw_is_stereo(mc) ? 2 : 1;
221 struct soc_mixer_control *mc = local
225 if (mc->platform_max)
226 max = mc
257 struct soc_mixer_control *mc = local
317 struct soc_mixer_control *mc = local
399 struct soc_mixer_control *mc = local
436 struct soc_mixer_control *mc = local
503 struct soc_mixer_control *mc = local
533 struct soc_mixer_control *mc = local
607 struct soc_mixer_control *mc = local
663 struct soc_mixer_control *mc = (struct soc_mixer_control *)kctl->private_value; local
853 struct soc_mreg_control *mc = local
881 struct soc_mreg_control *mc = local
926 struct soc_mreg_control *mc = local
972 struct soc_mixer_control *mc = local
1005 struct soc_mixer_control *mc = local
[all...]
/linux-master/include/soc/tegra/
H A Dmc.h103 struct tegra_mc *mc);
108 struct tegra_mc *mc)
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);
107 tegra_smmu_probe(struct device *dev, const struct tegra_smmu_soc *soc, struct tegra_mc *mc) argument
246 tegra_mc_probe_device(struct tegra_mc *mc, struct device *dev) argument
252 tegra_mc_get_carveout_info(struct tegra_mc *mc, unsigned int id, phys_addr_t *base, u64 *size) argument
[all...]
/linux-master/arch/x86/kernel/cpu/microcode/
H A Dintel.c97 bool intel_find_matching_signature(void *mc, struct cpu_signature *sig) argument
99 struct microcode_header_intel *mc_hdr = mc;
111 ext_hdr = mc + intel_microcode_get_datasize(mc_hdr) + MC_HEADER_SIZE;
125 * @mc: Pointer to the microcode file contents.
137 int intel_microcode_sanity_check(void *mc, bool print_err, int hdr_type) argument
140 struct microcode_header_intel *mc_header = mc;
173 ext_header = mc + MC_HEADER_SIZE + data_size;
207 orig_sum += ((u32 *)mc)[i];
237 static void update_ucode_pointer(struct microcode_intel *mc) argument
245 ucode_patch_va = mc;
251 struct microcode_intel *mc; local
302 __apply_microcode(struct ucode_cpu_info *uci, struct microcode_intel *mc, u32 *cur_rev) argument
341 struct microcode_intel *mc = uci->mc; local
449 struct microcode_intel *mc = ucode_patch_late; local
499 u8 *new_mc = NULL, *mc = NULL; local
[all...]
/linux-master/drivers/net/can/usb/peak_usb/
H A Dpcan_usb.c424 static int pcan_usb_update_ts(struct pcan_usb_msg_context *mc) argument
426 if ((mc->ptr + 2) > mc->end)
429 mc->ts16 = get_unaligned_le16(mc->ptr);
431 if (mc->rec_idx > 0)
432 peak_usb_update_ts_now(&mc->pdev->time_ref, mc->ts16);
434 peak_usb_set_ts_now(&mc->pdev->time_ref, mc
442 pcan_usb_decode_ts(struct pcan_usb_msg_context *mc, u8 first_packet) argument
472 pcan_usb_decode_error(struct pcan_usb_msg_context *mc, u8 n, u8 status_len) argument
553 pcan_usb_handle_bus_evt(struct pcan_usb_msg_context *mc, u8 ir) argument
578 pcan_usb_decode_status(struct pcan_usb_msg_context *mc, u8 status_len) argument
650 pcan_usb_decode_data(struct pcan_usb_msg_context *mc, u8 status_len) argument
726 struct pcan_usb_msg_context mc = { local
[all...]
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_gmc.c200 * @mc: memory controller structure holding memory information
206 void amdgpu_gmc_vram_location(struct amdgpu_device *adev, struct amdgpu_gmc *mc, argument
212 mc->vram_start = base;
213 mc->vram_end = mc->vram_start + mc->mc_vram_size - 1;
214 if (limit < mc->real_vram_size)
215 mc->real_vram_size = limit;
217 if (vis_limit && vis_limit < mc->visible_vram_size)
218 mc
248 amdgpu_gmc_sysvm_location(struct amdgpu_device *adev, struct amdgpu_gmc *mc) argument
276 amdgpu_gmc_gart_location(struct amdgpu_device *adev, struct amdgpu_gmc *mc, enum amdgpu_gart_placement gart_placement) argument
329 amdgpu_gmc_agp_location(struct amdgpu_device *adev, struct amdgpu_gmc *mc) argument
369 amdgpu_gmc_set_agp_default(struct amdgpu_device *adev, struct amdgpu_gmc *mc) argument
[all...]
/linux-master/arch/x86/um/os-Linux/
H A Dmcontext.c7 void get_regs_from_mc(struct uml_pt_regs *regs, mcontext_t *mc) argument
10 #define COPY2(X,Y) regs->gp[X] = mc->gregs[REG_##Y]
11 #define COPY(X) regs->gp[X] = mc->gregs[REG_##X]
12 #define COPY_SEG(X) regs->gp[X] = mc->gregs[REG_##X] & 0xffff;
13 #define COPY_SEG_CPL3(X) regs->gp[X] = (mc->gregs[REG_##X] & 0xffff) | 3;
20 #define COPY2(X,Y) regs->gp[X/sizeof(unsigned long)] = mc->gregs[REG_##Y]
21 #define COPY(X) regs->gp[X/sizeof(unsigned long)] = mc->gregs[REG_##X]

Completed in 357 milliseconds

1234567891011>>