Home
last modified time | relevance | path

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

12345678910>>...33

/kernel/linux/linux-6.6/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; tegra_mc_devm_action_put_device() local
76 struct tegra_mc *mc; devm_tegra_memory_controller_get() local
102 tegra_mc_probe_device(struct tegra_mc *mc, struct device *dev) tegra_mc_probe_device() argument
111 tegra_mc_get_carveout_info(struct tegra_mc *mc, unsigned int id, phys_addr_t *base, u64 *size) tegra_mc_get_carveout_info() argument
136 tegra_mc_block_dma_common(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra_mc_block_dma_common() argument
152 tegra_mc_dma_idling_common(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra_mc_dma_idling_common() argument
158 tegra_mc_unblock_dma_common(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra_mc_unblock_dma_common() argument
174 tegra_mc_reset_status_common(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra_mc_reset_status_common() argument
192 tegra_mc_reset_find(struct tegra_mc *mc, unsigned long id) tegra_mc_reset_find() argument
207 struct tegra_mc *mc = reset_to_mc(rcdev); tegra_mc_hotreset_assert() local
267 struct tegra_mc *mc = reset_to_mc(rcdev); tegra_mc_hotreset_deassert() local
306 struct tegra_mc *mc = reset_to_mc(rcdev); tegra_mc_hotreset_status() local
327 tegra_mc_reset_setup(struct tegra_mc *mc) tegra_mc_reset_setup() argument
344 tegra_mc_write_emem_configuration(struct tegra_mc *mc, unsigned long rate) tegra_mc_write_emem_configuration() argument
369 tegra_mc_get_emem_device_count(struct tegra_mc *mc) tegra_mc_get_emem_device_count() argument
386 tegra_mc_setup_latency_allowance(struct tegra_mc *mc) tegra_mc_setup_latency_allowance() argument
418 load_one_timing(struct tegra_mc *mc, struct tegra_mc_timing *timing, struct device_node *node) load_one_timing() argument
451 load_timings(struct tegra_mc *mc, struct device_node *node) load_timings() argument
478 tegra_mc_setup_timings(struct tegra_mc *mc) tegra_mc_setup_timings() argument
509 tegra30_mc_probe(struct tegra_mc *mc) tegra30_mc_probe() argument
543 mc_global_intstatus_to_channel(const struct tegra_mc *mc, u32 status, unsigned int *mc_channel) mc_global_intstatus_to_channel() argument
555 mc_channel_to_global_intstatus(const struct tegra_mc *mc, unsigned int channel) mc_channel_to_global_intstatus() argument
563 struct tegra_mc *mc = data; tegra30_mc_handle_irq() local
760 struct tegra_mc *mc = icc_provider_to_tegra_mc(data); tegra_mc_icc_xlate() local
818 tegra_mc_interconnect_setup(struct tegra_mc *mc) tegra_mc_interconnect_setup() argument
883 tegra_mc_num_channel_enabled(struct tegra_mc *mc) tegra_mc_num_channel_enabled() argument
902 struct tegra_mc *mc; tegra_mc_probe() local
996 struct tegra_mc *mc = dev_get_drvdata(dev); tegra_mc_suspend() local
1006 struct tegra_mc *mc = dev_get_drvdata(dev); tegra_mc_resume() local
1016 struct tegra_mc *mc = dev_get_drvdata(dev); tegra_mc_sync_state() local
[all...]
H A Dtegra20.c14 #include <dt-bindings/memory/tegra20-mc.h>
16 #include "mc.h"
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 in tegra20_mc_hotreset_deassert()
311 tegra20_mc_block_dma(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra20_mc_block_dma() argument
327 tegra20_mc_dma_idling(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra20_mc_dma_idling() argument
333 tegra20_mc_reset_status(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra20_mc_reset_status() argument
339 tegra20_mc_unblock_dma(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra20_mc_unblock_dma() argument
395 struct tegra_mc *mc = icc_provider_to_tegra_mc(data); tegra20_mc_of_icc_xlate_extended() local
452 const struct tegra_mc *mc = stat->mc; tegra20_mc_stat_gather() 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) tegra20_mc_stat_events() argument
511 tegra20_mc_collect_stats(const struct tegra_mc *mc, struct tegra20_mc_client_stat *stats) tegra20_mc_collect_stats() argument
614 const struct tegra_mc *mc = dev_get_drvdata(s->private); tegra20_mc_stats_show() local
683 tegra20_mc_probe(struct tegra_mc *mc) tegra20_mc_probe() argument
691 tegra20_mc_suspend(struct tegra_mc *mc) tegra20_mc_suspend() argument
704 tegra20_mc_resume(struct tegra_mc *mc) tegra20_mc_resume() argument
719 struct tegra_mc *mc = data; tegra20_mc_handle_irq() 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...]
/kernel/linux/linux-5.10/drivers/memory/tegra/
H A Dmc.c20 #include "mc.h"
24 { .compatible = "nvidia,tegra20-mc-gart", .data = &tegra20_mc_soc },
27 { .compatible = "nvidia,tegra30-mc", .data = &tegra30_mc_soc },
30 { .compatible = "nvidia,tegra114-mc", .data = &tegra114_mc_soc },
33 { .compatible = "nvidia,tegra124-mc", .data = &tegra124_mc_soc },
36 { .compatible = "nvidia,tegra132-mc", .data = &tegra132_mc_soc },
39 { .compatible = "nvidia,tegra210-mc", .data = &tegra210_mc_soc },
45 static int tegra_mc_block_dma_common(struct tegra_mc *mc, in tegra_mc_block_dma_common() argument
51 spin_lock_irqsave(&mc->lock, flags); in tegra_mc_block_dma_common()
53 value = mc_readl(mc, rs in tegra_mc_block_dma_common()
61 tegra_mc_dma_idling_common(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra_mc_dma_idling_common() argument
67 tegra_mc_unblock_dma_common(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra_mc_unblock_dma_common() argument
83 tegra_mc_reset_status_common(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra_mc_reset_status_common() argument
101 tegra_mc_reset_find(struct tegra_mc *mc, unsigned long id) tegra_mc_reset_find() argument
116 struct tegra_mc *mc = reset_to_mc(rcdev); tegra_mc_hotreset_assert() local
169 struct tegra_mc *mc = reset_to_mc(rcdev); tegra_mc_hotreset_deassert() local
208 struct tegra_mc *mc = reset_to_mc(rcdev); tegra_mc_hotreset_status() local
229 tegra_mc_reset_setup(struct tegra_mc *mc) tegra_mc_reset_setup() argument
246 tegra_mc_setup_latency_allowance(struct tegra_mc *mc) tegra_mc_setup_latency_allowance() argument
278 tegra_mc_write_emem_configuration(struct tegra_mc *mc, unsigned long rate) tegra_mc_write_emem_configuration() argument
302 tegra_mc_get_emem_device_count(struct tegra_mc *mc) tegra_mc_get_emem_device_count() argument
313 load_one_timing(struct tegra_mc *mc, struct tegra_mc_timing *timing, struct device_node *node) load_one_timing() argument
346 load_timings(struct tegra_mc *mc, struct device_node *node) load_timings() argument
373 tegra_mc_setup_timings(struct tegra_mc *mc) tegra_mc_setup_timings() argument
426 struct tegra_mc *mc = data; tegra_mc_irq() local
523 struct tegra_mc *mc = data; tegra20_mc_irq() local
597 struct tegra_mc *mc; tegra_mc_probe() local
707 struct tegra_mc *mc = dev_get_drvdata(dev); tegra_mc_suspend() local
721 struct tegra_mc *mc = dev_get_drvdata(dev); tegra_mc_resume() local
[all...]
H A Dtegra20.c6 #include <dt-bindings/memory/tegra20-mc.h>
8 #include "mc.h"
198 static int tegra20_mc_hotreset_assert(struct tegra_mc *mc, in tegra20_mc_hotreset_assert() argument
204 spin_lock_irqsave(&mc->lock, flags); in tegra20_mc_hotreset_assert()
206 value = mc_readl(mc, rst->reset); in tegra20_mc_hotreset_assert()
207 mc_writel(mc, value & ~BIT(rst->bit), rst->reset); in tegra20_mc_hotreset_assert()
209 spin_unlock_irqrestore(&mc->lock, flags); in tegra20_mc_hotreset_assert()
214 static int tegra20_mc_hotreset_deassert(struct tegra_mc *mc, in tegra20_mc_hotreset_deassert() argument
220 spin_lock_irqsave(&mc->lock, flags); in tegra20_mc_hotreset_deassert()
222 value = mc_readl(mc, rs in tegra20_mc_hotreset_deassert()
230 tegra20_mc_block_dma(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra20_mc_block_dma() argument
246 tegra20_mc_dma_idling(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra20_mc_dma_idling() argument
252 tegra20_mc_reset_status(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra20_mc_reset_status() argument
258 tegra20_mc_unblock_dma(struct tegra_mc *mc, const struct tegra_mc_reset *rst) tegra20_mc_unblock_dma() argument
[all...]
/kernel/linux/linux-5.10/drivers/crypto/amlogic/
H A Damlogic-gxl-core.c25 struct meson_dev *mc = (struct meson_dev *)data; in meson_irq_handler() local
30 if (mc->irqs[flow] == irq) { in meson_irq_handler()
31 p = readl(mc->base + ((0x04 + flow) << 2)); in meson_irq_handler()
33 writel_relaxed(0xF, mc->base + ((0x4 + flow) << 2)); in meson_irq_handler()
34 mc->chanlist[flow].status = 1; in meson_irq_handler()
35 complete(&mc->chanlist[flow].complete); in meson_irq_handler()
38 dev_err(mc->dev, "%s %d Got irq for flow %d but ctrl is empty\n", __func__, irq, flow); in meson_irq_handler()
42 dev_err(mc->dev, "%s %d from unknown irq\n", __func__, irq); in meson_irq_handler()
103 struct meson_dev *mc = seq->private; in meson_debugfs_show() local
107 seq_printf(seq, "Channel %d: nreq %lu\n", i, mc in meson_debugfs_show()
124 meson_free_chanlist(struct meson_dev *mc, int i) meson_free_chanlist() argument
139 meson_allocate_chanlist(struct meson_dev *mc) meson_allocate_chanlist() argument
178 meson_register_algs(struct meson_dev *mc) meson_register_algs() argument
200 meson_unregister_algs(struct meson_dev *mc) meson_unregister_algs() argument
217 struct meson_dev *mc; meson_crypto_probe() local
286 struct meson_dev *mc = platform_get_drvdata(pdev); meson_crypto_remove() local
[all...]
/kernel/linux/linux-6.6/drivers/crypto/amlogic/
H A Damlogic-gxl-core.c27 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 in meson_debugfs_show()
139 meson_free_chanlist(struct meson_dev *mc, int i) meson_free_chanlist() argument
154 meson_allocate_chanlist(struct meson_dev *mc) meson_allocate_chanlist() argument
193 meson_register_algs(struct meson_dev *mc) meson_register_algs() argument
215 meson_unregister_algs(struct meson_dev *mc) meson_unregister_algs() argument
232 struct meson_dev *mc; meson_crypto_probe() local
304 struct meson_dev *mc = platform_get_drvdata(pdev); meson_crypto_remove() local
[all...]
/kernel/linux/linux-5.10/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
64 mutex_lock(&mc in mc33880_set()
73 struct mc33880 *mc; mc33880_probe() local
139 struct mc33880 *mc; mc33880_remove() local
[all...]
/kernel/linux/linux-6.6/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
64 mutex_lock(&mc in mc33880_set()
73 struct mc33880 *mc; mc33880_probe() local
139 struct mc33880 *mc; mc33880_remove() local
[all...]
/kernel/linux/linux-5.10/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()
40 struct nvkm_mc *mc = device->mc; in nvkm_mc_intr_mask() local
42 if (likely(mc) && mc in nvkm_mc_intr_mask()
55 struct nvkm_mc *mc = device->mc; nvkm_mc_intr_unarm() local
63 struct nvkm_mc *mc = device->mc; nvkm_mc_intr_rearm() local
69 nvkm_mc_intr_stat(struct nvkm_mc *mc) nvkm_mc_intr_stat() argument
80 struct nvkm_mc *mc = device->mc; nvkm_mc_intr() local
120 struct nvkm_mc *mc = device->mc; nvkm_mc_reset_mask() local
187 struct nvkm_mc *mc = nvkm_mc(subdev); nvkm_mc_init() local
208 nvkm_mc_ctor(const struct nvkm_mc_func *func, struct nvkm_device *device, int index, struct nvkm_mc *mc) nvkm_mc_ctor() argument
219 struct nvkm_mc *mc; nvkm_mc_new_() local
[all...]
H A Dgp100.c35 gp100_mc_intr_update(struct gp100_mc *mc) in gp100_mc_intr_update() argument
37 struct nvkm_device *device = mc->base.subdev.device; in gp100_mc_intr_update()
38 u32 mask = mc->intr ? mc->mask : 0, i; in gp100_mc_intr_update()
48 struct gp100_mc *mc = gp100_mc(base); in gp100_mc_intr_unarm() local
50 spin_lock_irqsave(&mc->lock, flags); in gp100_mc_intr_unarm()
51 mc->intr = false; in gp100_mc_intr_unarm()
52 gp100_mc_intr_update(mc); in gp100_mc_intr_unarm()
53 spin_unlock_irqrestore(&mc->lock, flags); in gp100_mc_intr_unarm()
59 struct gp100_mc *mc in gp100_mc_intr_rearm() local
70 struct gp100_mc *mc = gp100_mc(base); gp100_mc_intr_mask() local
111 struct gp100_mc *mc; gp100_mc_new_() local
[all...]
/kernel/linux/linux-6.6/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 in nvkm_mc_reset_mask()
108 struct nvkm_mc *mc = nvkm_mc(subdev); nvkm_mc_init() local
130 struct nvkm_mc *mc; nvkm_mc_new_() local
[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 in nv04_mc_intr_unarm() local
96 struct nvkm_mc *mc = container_of(intr, typeof(*mc), intr); nv04_mc_intr_pending() local
117 nv04_mc_init(struct nvkm_mc *mc) nv04_mc_init() argument
[all...]
/kernel/linux/linux-6.6/sound/soc/
H A Dsoc-ops.c177 struct soc_mixer_control *mc = in snd_soc_info_volsw() local
182 max = uinfo->value.integer.max = mc->max - mc->min; in snd_soc_info_volsw()
183 if (mc->platform_max && mc->platform_max < max) in snd_soc_info_volsw()
184 max = mc->platform_max; in snd_soc_info_volsw()
197 uinfo->count = snd_soc_volsw_is_stereo(mc) ? 2 : 1; in snd_soc_info_volsw()
221 struct soc_mixer_control *mc = in snd_soc_info_volsw_sx() local
225 if (mc->platform_max) in snd_soc_info_volsw_sx()
226 max = mc in snd_soc_info_volsw_sx()
257 struct soc_mixer_control *mc = snd_soc_get_volsw() local
317 struct soc_mixer_control *mc = snd_soc_put_volsw() local
399 struct soc_mixer_control *mc = snd_soc_get_volsw_sx() local
436 struct soc_mixer_control *mc = snd_soc_put_volsw_sx() local
503 struct soc_mixer_control *mc = snd_soc_info_volsw_range() local
533 struct soc_mixer_control *mc = snd_soc_put_volsw_range() local
607 struct soc_mixer_control *mc = snd_soc_get_volsw_range() local
663 struct soc_mixer_control *mc = (struct soc_mixer_control *)kctl->private_value; snd_soc_limit_volume() local
853 struct soc_mreg_control *mc = snd_soc_info_xr_sx() local
881 struct soc_mreg_control *mc = snd_soc_get_xr_sx() local
926 struct soc_mreg_control *mc = snd_soc_put_xr_sx() local
972 struct soc_mixer_control *mc = snd_soc_get_strobe() local
1005 struct soc_mixer_control *mc = snd_soc_put_strobe() local
[all...]
/kernel/linux/linux-5.10/sound/soc/
H A Dsoc-ops.c178 struct soc_mixer_control *mc = in snd_soc_info_volsw() local
182 if (!mc->platform_max) in snd_soc_info_volsw()
183 mc->platform_max = mc->max; in snd_soc_info_volsw()
184 platform_max = mc->platform_max; in snd_soc_info_volsw()
191 uinfo->count = snd_soc_volsw_is_stereo(mc) ? 2 : 1; in snd_soc_info_volsw()
193 uinfo->value.integer.max = platform_max - mc->min; in snd_soc_info_volsw()
213 struct soc_mixer_control *mc = in snd_soc_info_volsw_sx() local
220 uinfo->value.integer.max += mc->min; in snd_soc_info_volsw_sx()
240 struct soc_mixer_control *mc in snd_soc_get_volsw() local
300 struct soc_mixer_control *mc = snd_soc_put_volsw() local
382 struct soc_mixer_control *mc = snd_soc_get_volsw_sx() local
419 struct soc_mixer_control *mc = snd_soc_put_volsw_sx() local
479 struct soc_mixer_control *mc = snd_soc_info_volsw_range() local
509 struct soc_mixer_control *mc = snd_soc_put_volsw_range() local
583 struct soc_mixer_control *mc = snd_soc_get_volsw_range() local
631 struct soc_mixer_control *mc; snd_soc_limit_volume() local
830 struct soc_mreg_control *mc = snd_soc_info_xr_sx() local
858 struct soc_mreg_control *mc = snd_soc_get_xr_sx() local
904 struct soc_mreg_control *mc = snd_soc_put_xr_sx() local
948 struct soc_mixer_control *mc = snd_soc_get_strobe() local
981 struct soc_mixer_control *mc = snd_soc_put_strobe() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_gmc.c196 * @mc: memory controller structure holding memory information
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 in amdgpu_gmc_vram_location()
244 amdgpu_gmc_sysvm_location(struct amdgpu_device *adev, struct amdgpu_gmc *mc) amdgpu_gmc_sysvm_location() argument
271 amdgpu_gmc_gart_location(struct amdgpu_device *adev, struct amdgpu_gmc *mc) amdgpu_gmc_gart_location() argument
312 amdgpu_gmc_agp_location(struct amdgpu_device *adev, struct amdgpu_gmc *mc) amdgpu_gmc_agp_location() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/can/usb/peak_usb/
H A Dpcan_usb.c392 static int pcan_usb_update_ts(struct pcan_usb_msg_context *mc) in pcan_usb_update_ts() argument
396 if ((mc->ptr+2) > mc->end) in pcan_usb_update_ts()
399 memcpy(&tmp16, mc->ptr, 2); in pcan_usb_update_ts()
401 mc->ts16 = le16_to_cpu(tmp16); in pcan_usb_update_ts()
403 if (mc->rec_idx > 0) in pcan_usb_update_ts()
404 peak_usb_update_ts_now(&mc->pdev->time_ref, mc->ts16); in pcan_usb_update_ts()
406 peak_usb_set_ts_now(&mc->pdev->time_ref, mc in pcan_usb_update_ts()
414 pcan_usb_decode_ts(struct pcan_usb_msg_context *mc, u8 first_packet) pcan_usb_decode_ts() argument
447 pcan_usb_decode_error(struct pcan_usb_msg_context *mc, u8 n, u8 status_len) pcan_usb_decode_error() argument
609 pcan_usb_handle_bus_evt(struct pcan_usb_msg_context *mc, u8 ir) pcan_usb_handle_bus_evt() argument
634 pcan_usb_decode_status(struct pcan_usb_msg_context *mc, u8 status_len) pcan_usb_decode_status() argument
706 pcan_usb_decode_data(struct pcan_usb_msg_context *mc, u8 status_len) pcan_usb_decode_data() argument
782 struct pcan_usb_msg_context mc = { pcan_usb_decode_msg() local
[all...]
/kernel/linux/linux-6.6/drivers/net/can/usb/peak_usb/
H A Dpcan_usb.c424 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 in pcan_usb_update_ts()
442 pcan_usb_decode_ts(struct pcan_usb_msg_context *mc, u8 first_packet) pcan_usb_decode_ts() argument
472 pcan_usb_decode_error(struct pcan_usb_msg_context *mc, u8 n, u8 status_len) pcan_usb_decode_error() argument
553 pcan_usb_handle_bus_evt(struct pcan_usb_msg_context *mc, u8 ir) pcan_usb_handle_bus_evt() argument
578 pcan_usb_decode_status(struct pcan_usb_msg_context *mc, u8 status_len) pcan_usb_decode_status() argument
650 pcan_usb_decode_data(struct pcan_usb_msg_context *mc, u8 status_len) pcan_usb_decode_data() argument
726 struct pcan_usb_msg_context mc = { pcan_usb_decode_msg() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_gmc.c141 * @mc: memory controller structure holding memory information
147 void amdgpu_gmc_vram_location(struct amdgpu_device *adev, struct amdgpu_gmc *mc, in amdgpu_gmc_vram_location() argument
152 mc->vram_start = base; in amdgpu_gmc_vram_location()
153 mc->vram_end = mc->vram_start + mc->mc_vram_size - 1; in amdgpu_gmc_vram_location()
154 if (limit && limit < mc->real_vram_size) in amdgpu_gmc_vram_location()
155 mc->real_vram_size = limit; in amdgpu_gmc_vram_location()
157 if (mc->xgmi.num_physical_nodes == 0) { in amdgpu_gmc_vram_location()
158 mc in amdgpu_gmc_vram_location()
177 amdgpu_gmc_gart_location(struct amdgpu_device *adev, struct amdgpu_gmc *mc) amdgpu_gmc_gart_location() argument
220 amdgpu_gmc_agp_location(struct amdgpu_device *adev, struct amdgpu_gmc *mc) amdgpu_gmc_agp_location() argument
[all...]
/kernel/linux/linux-5.10/drivers/dma/
H A Dmilbeaut-hdmac.c95 /* mc->vc.lock must be held by caller */
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()
114 /* mc->vc.lock must be held by caller */
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 in milbeaut_chan_start()
162 milbeaut_hdmac_start(struct milbeaut_hdmac_chan *mc) milbeaut_hdmac_start() argument
173 struct milbeaut_hdmac_chan *mc = dev_id; milbeaut_hdmac_interrupt() local
216 struct milbeaut_hdmac_chan *mc = to_milbeaut_hdmac_chan(vc); milbeaut_hdmac_chan_config() local
228 struct milbeaut_hdmac_chan *mc = to_milbeaut_hdmac_chan(vc); milbeaut_hdmac_chan_pause() local
243 struct milbeaut_hdmac_chan *mc = to_milbeaut_hdmac_chan(vc); milbeaut_hdmac_chan_resume() local
290 struct milbeaut_hdmac_chan *mc = to_milbeaut_hdmac_chan(vc); milbeaut_hdmac_terminate_all() local
327 struct milbeaut_hdmac_chan *mc; milbeaut_hdmac_tx_status() local
383 struct milbeaut_hdmac_chan *mc = to_milbeaut_hdmac_chan(vc); milbeaut_hdmac_issue_pending() local
406 struct milbeaut_hdmac_chan *mc; milbeaut_hdmac_xlate() local
429 struct milbeaut_hdmac_chan *mc = &mdev->channels[chan_id]; milbeaut_hdmac_chan_init() local
[all...]
H A Duniphier-mdmac.c86 /* mc->vc.lock must be held by caller */
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()
105 /* mc->vc.lock must be held by caller */
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 in uniphier_mdmac_handle()
145 uniphier_mdmac_start(struct uniphier_mdmac_chan *mc) uniphier_mdmac_start() argument
155 uniphier_mdmac_abort(struct uniphier_mdmac_chan *mc) uniphier_mdmac_abort() argument
177 struct uniphier_mdmac_chan *mc = dev_id; uniphier_mdmac_interrupt() local
255 struct uniphier_mdmac_chan *mc = to_uniphier_mdmac_chan(vc); uniphier_mdmac_terminate_all() local
287 struct uniphier_mdmac_chan *mc; uniphier_mdmac_tx_status() local
331 struct uniphier_mdmac_chan *mc = to_uniphier_mdmac_chan(vc); uniphier_mdmac_issue_pending() local
352 struct uniphier_mdmac_chan *mc = &mdev->channels[chan_id]; uniphier_mdmac_chan_init() local
[all...]
/kernel/linux/linux-6.6/drivers/dma/
H A Dmilbeaut-hdmac.c95 /* mc->vc.lock must be held by caller */
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()
114 /* mc->vc.lock must be held by caller */
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 in milbeaut_chan_start()
162 milbeaut_hdmac_start(struct milbeaut_hdmac_chan *mc) milbeaut_hdmac_start() argument
173 struct milbeaut_hdmac_chan *mc = dev_id; milbeaut_hdmac_interrupt() local
216 struct milbeaut_hdmac_chan *mc = to_milbeaut_hdmac_chan(vc); milbeaut_hdmac_chan_config() local
228 struct milbeaut_hdmac_chan *mc = to_milbeaut_hdmac_chan(vc); milbeaut_hdmac_chan_pause() local
243 struct milbeaut_hdmac_chan *mc = to_milbeaut_hdmac_chan(vc); milbeaut_hdmac_chan_resume() local
290 struct milbeaut_hdmac_chan *mc = to_milbeaut_hdmac_chan(vc); milbeaut_hdmac_terminate_all() local
327 struct milbeaut_hdmac_chan *mc; milbeaut_hdmac_tx_status() local
383 struct milbeaut_hdmac_chan *mc = to_milbeaut_hdmac_chan(vc); milbeaut_hdmac_issue_pending() local
406 struct milbeaut_hdmac_chan *mc; milbeaut_hdmac_xlate() local
429 struct milbeaut_hdmac_chan *mc = &mdev->channels[chan_id]; milbeaut_hdmac_chan_init() local
[all...]
H A Duniphier-mdmac.c86 /* mc->vc.lock must be held by caller */
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()
105 /* mc->vc.lock must be held by caller */
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 in uniphier_mdmac_handle()
145 uniphier_mdmac_start(struct uniphier_mdmac_chan *mc) uniphier_mdmac_start() argument
155 uniphier_mdmac_abort(struct uniphier_mdmac_chan *mc) uniphier_mdmac_abort() argument
177 struct uniphier_mdmac_chan *mc = dev_id; uniphier_mdmac_interrupt() local
255 struct uniphier_mdmac_chan *mc = to_uniphier_mdmac_chan(vc); uniphier_mdmac_terminate_all() local
287 struct uniphier_mdmac_chan *mc; uniphier_mdmac_tx_status() local
331 struct uniphier_mdmac_chan *mc = to_uniphier_mdmac_chan(vc); uniphier_mdmac_issue_pending() local
352 struct uniphier_mdmac_chan *mc = &mdev->channels[chan_id]; uniphier_mdmac_chan_init() local
[all...]
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/microcode/
H A Dintel.c65 static int find_matching_signature(void *mc, unsigned int csig, int cpf) in find_matching_signature() argument
67 struct microcode_header_intel *mc_hdr = mc; in find_matching_signature()
79 ext_hdr = mc + get_datasize(mc_hdr) + MC_HEADER_SIZE; in find_matching_signature()
93 static int has_newer_microcode(void *mc, unsigned int csig, int cpf, int new_rev) in has_newer_microcode() argument
95 struct microcode_header_intel *mc_hdr = mc; in has_newer_microcode()
100 return find_matching_signature(mc, csig, cpf); in has_newer_microcode()
180 static int microcode_sanity_check(void *mc, int print_err) in microcode_sanity_check() argument
183 struct microcode_header_intel *mc_header = mc; in microcode_sanity_check()
215 ext_header = mc + MC_HEADER_SIZE + data_size; in microcode_sanity_check()
249 orig_sum += ((u32 *)mc)[ in microcode_sanity_check()
443 save_mc_for_early(struct ucode_cpu_info *uci, u8 *mc, unsigned int size) save_mc_for_early() argument
510 struct microcode_intel *mc; print_ucode() local
528 struct microcode_intel *mc; print_ucode() local
540 struct microcode_intel *mc; apply_microcode_early() local
746 struct microcode_intel *mc; apply_microcode_intel() local
819 u8 *new_mc = NULL, *mc = NULL; generic_load_microcode() local
[all...]
/kernel/linux/linux-5.10/drivers/misc/
H A Dpti.c51 struct pti_masterchannel *mc; member
85 * @mc: The 'aperture'. It's part of a write address that holds
99 static void pti_write_to_aperture(struct pti_masterchannel *mc, in pti_write_to_aperture() argument
114 aperture = drv_data->pti_ioaddr + (mc->master << 15) in pti_write_to_aperture()
115 + (mc->channel << 8); in pti_write_to_aperture()
143 * @mc: The master / channel structure on which the function
157 static void pti_control_frame_built_and_sent(struct pti_masterchannel *mc, in pti_control_frame_built_and_sent() argument
187 snprintf(control_frame, CONTROL_FRAME_LEN, control_format, mc->master, in pti_control_frame_built_and_sent()
188 mc->channel, thread_name_p); in pti_control_frame_built_and_sent()
196 * @mc
206 pti_write_full_frame_to_aperture(struct pti_masterchannel *mc, const unsigned char *buf, int len) pti_write_full_frame_to_aperture() argument
238 struct pti_masterchannel *mc; get_id() local
299 struct pti_masterchannel *mc; pti_request_masterchannel() local
336 pti_release_masterchannel(struct pti_masterchannel *mc) pti_release_masterchannel() argument
375 pti_writedata(struct pti_masterchannel *mc, u8 *buf, int count) pti_writedata() argument
547 struct pti_masterchannel *mc; pti_char_open() local
603 struct pti_masterchannel *mc; pti_char_write() local
671 static struct pti_masterchannel mc = {.master = CONSOLE_ID, pti_console_write() local
[all...]

Completed in 17 milliseconds

12345678910>>...33