Home
last modified time | relevance | path

Searched full:mc (Results 1 – 25 of 892) sorted by relevance

12345678910>>...36

/linux/sound/soc/
H A Dsoc-ops.c113 static int soc_mixer_reg_to_ctl(struct soc_mixer_control *mc, unsigned int reg_val, in sdca_soc_q78_reg_to_ctl() argument
119 if (mc->sign_bit) in sdca_soc_q78_reg_to_ctl()
120 val = sign_extend32(val, mc->sign_bit); in sdca_soc_q78_reg_to_ctl()
123 val -= mc->min; // SX controls intentionally can overflow here in sdca_soc_q78_reg_to_ctl()
126 val = clamp(val, mc->min, mc->max); in sdca_soc_q78_reg_to_ctl()
127 val -= mc->min; in sdca_soc_q78_reg_to_ctl()
130 if (mc->invert) in sdca_soc_q78_ctl_to_reg()
136 static unsigned int soc_mixer_ctl_to_reg(struct soc_mixer_control *mc, int val, in sdca_soc_q78_ctl_to_reg()
142 if (mc in sdca_soc_q78_ctl_to_reg()
129 sdca_soc_q78_ctl_to_reg(struct soc_mixer_control * mc,int val,unsigned int mask,unsigned int shift,int max) sdca_soc_q78_ctl_to_reg() argument
144 soc_mixer_reg_to_ctl(struct soc_mixer_control * mc,unsigned int reg_val,unsigned int mask,unsigned int shift,int max,bool sx) soc_mixer_reg_to_ctl() argument
167 soc_mixer_ctl_to_reg(struct soc_mixer_control * mc,int val,unsigned int mask,unsigned int shift,int max) soc_mixer_ctl_to_reg() argument
181 soc_mixer_valid_ctl(struct soc_mixer_control * mc,long val,int max) soc_mixer_valid_ctl() argument
195 soc_mixer_mask(struct soc_mixer_control * mc) soc_mixer_mask() argument
203 soc_mixer_sx_mask(struct soc_mixer_control * mc) soc_mixer_sx_mask() argument
211 soc_info_volsw(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_info * uinfo,struct soc_mixer_control * mc,int max) soc_info_volsw() argument
235 soc_put_volsw(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol,struct soc_mixer_control * mc,int mask,int max) soc_put_volsw() argument
290 soc_get_volsw(struct snd_kcontrol * kcontrol,struct snd_ctl_elem_value * ucontrol,struct soc_mixer_control * mc,int mask,int max,bool sx) soc_get_volsw() argument
335 struct soc_mixer_control *mc = snd_soc_info_volsw() local
358 struct soc_mixer_control *mc = snd_soc_info_volsw_sx() local
378 struct soc_mixer_control *mc = snd_soc_get_volsw() local
399 struct soc_mixer_control *mc = snd_soc_put_volsw() local
420 struct soc_mixer_control *mc = snd_soc_get_volsw_sx() local
440 struct soc_mixer_control *mc = snd_soc_put_volsw_sx() local
450 struct soc_mixer_control *mc = (struct soc_mixer_control *)kctl->private_value; snd_soc_clip_to_platform_max() local
499 struct soc_mixer_control *mc = snd_soc_limit_volume() local
683 struct soc_mreg_control *mc = snd_soc_info_xr_sx() local
713 struct soc_mreg_control *mc = snd_soc_get_xr_sx() local
757 struct soc_mreg_control *mc = snd_soc_put_xr_sx() local
804 struct soc_mixer_control *mc = snd_soc_get_strobe() local
836 struct soc_mixer_control *mc = snd_soc_put_strobe() local
[all...]
/linux/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
65 mutex_lock(&mc->lock); in mc33880_set()
67 ret = __mc33880_set(mc, offset, value); in mc33880_set()
69 mutex_unlock(&mc->lock); in mc33880_set()
[all …]
/linux/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->cfg.dst_maxburst; in milbeaut_chan_start()
[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->reg_ch_base + UNIPHIER_MDMAC_CH_SRC_MODE); in uniphier_mdmac_handle()
[all …]
H A Dmilbeaut-xdmac.c92 /* mc->vc.lock must be held by caller */
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()
111 /* mc->vc.lock must be held by caller */
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()
[all …]
/linux/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->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 …]
H 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 …]
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 = 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 …]
/linux/Documentation/ABI/testing/
H A Dsysfs-devices-edac1 What: /sys/devices/system/edac/mc/mc*/reset_counters
12 What: /sys/devices/system/edac/mc/mc*/seconds_since_reset
19 What: /sys/devices/system/edac/mc/mc*/mc_name
25 What: /sys/devices/system/edac/mc/mc*/size_mb
31 What: /sys/devices/system/edac/mc/mc*/ue_count
39 What: /sys/devices/system/edac/mc/mc*/ue_noinfo_count
46 What: /sys/devices/system/edac/mc/mc*/ce_count
56 What: /sys/devices/system/edac/mc/mc*/ce_noinfo_count
66 What: /sys/devices/system/edac/mc/mc*/sdram_scrub_rate
78 What: /sys/devices/system/edac/mc/mc*/max_location
[all …]
/linux/drivers/irqchip/
H A Dirq-riscv-aplic-msi.c84 struct aplic_msicfg *mc = &priv->msicfg; in aplic_msi_write_msg() local
105 tbppn &= ~APLIC_xMSICFGADDR_PPN_HART(mc->lhxs); in aplic_msi_write_msg()
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()
111 group_index = (tppn >> APLIC_xMSICFGADDR_PPN_HHX_SHIFT(mc->hhxs)) & in aplic_msi_write_msg()
112 APLIC_xMSICFGADDR_PPN_HHX_MASK(mc->hhxw); in aplic_msi_write_msg()
113 hart_index = (tppn >> APLIC_xMSICFGADDR_PPN_LHX_SHIFT(mc->lhxs)) & in aplic_msi_write_msg()
114 APLIC_xMSICFGADDR_PPN_LHX_MASK(mc->lhxw); in aplic_msi_write_msg()
115 hart_index |= (group_index << mc->lhxw); in aplic_msi_write_msg()
[all …]
/linux/drivers/crypto/amlogic/
H A Damlogic-gxl-cipher.c20 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 …]
/linux/drivers/bus/fsl-mc/
H A Dmc-io.c8 #include <linux/fsl/mc.h>
10 #include "fsl-mc-private.h"
53 * fsl_create_mc_io() - Creates an MC I/O object
55 * @dev: device to be associated with the MC I/O object
56 * @mc_portal_phys_addr: physical address of the MC portal to use
57 * @mc_portal_size: size in bytes of the MC portal
58 * @dpmcp_dev: Pointer to the DPMCP object associated with this MC I/O
60 * @flags: flags for the new MC I/O object
61 * @new_mc_io: Area to return pointer to newly created MC I/O object
95 "devm_request_mem_region failed for MC portal %pa\n", in fsl_create_mc_io()
[all …]
H A DMakefile3 # Freescale Management Complex (MC) bus drivers
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 \
21 # MC userspace support
22 obj-$(CONFIG_FSL_MC_UAPI_SUPPORT) += fsl-mc-uapi.o
H A Ddprc.c8 #include <linux/fsl/mc.h>
10 #include "fsl-mc-private.h"
14 * towards the mc firmware
21 * @mc_io: Pointer to MC portal's I/O object
45 /* send command to mc*/ in dprc_open()
59 * @mc_io: Pointer to MC portal's I/O object
78 /* send command to mc*/ in dprc_close()
85 * @mc_io: Pointer to MC portal's I/O object
136 * MC API 6.5 introduced a new field in the command used to pass in dprc_reset_container()
149 /* send command to mc*/ in dprc_reset_container()
[all …]
H A Ddpcon.c7 #include <linux/fsl/mc.h>
9 #include "fsl-mc-private.h"
13 * @mc_io: Pointer to MC portal's I/O object
22 * associated with the specific object ID and the specific MC
44 /* send command to mc*/ in dpcon_open()
58 * @mc_io: Pointer to MC portal's I/O object
78 /* send command to mc*/ in dpcon_close()
85 * @mc_io: Pointer to MC portal's I/O object
102 /* send command to mc*/ in dpcon_enable()
109 * @mc_io: Pointer to MC portal's I/O object
[all …]
H A Ddpbp.c7 #include <linux/fsl/mc.h>
9 #include "fsl-mc-private.h"
13 * @mc_io: Pointer to MC portal's I/O object
22 * associated with the specific object ID and the specific MC
43 /* send command to mc*/ in dpbp_open()
57 * @mc_io: Pointer to MC portal's I/O object
76 /* send command to mc*/ in dpbp_close()
83 * @mc_io: Pointer to MC portal's I/O object
99 /* send command to mc*/ in dpbp_enable()
106 * @mc_io: Pointer to MC portal's I/O object
[all …]
/linux/Documentation/devicetree/bindings/misc/
H A Dfsl,qoriq-mc.yaml4 $id: http://devicetree.org/schemas/misc/fsl,qoriq-mc.yaml#
13 The Freescale Management Complex (fsl-mc) is a hardware resource
15 network-oriented packet processing applications. After the fsl-mc
22 For an overview of the DPAA2 architecture and fsl-mc bus see:
54 - fsl,qoriq-mc
56 Must be "fsl,qoriq-mc". A Freescale Management Complex
59 the MC control register region.
68 the second region is the MC control registers. This
75 MC address space and the parent system address space.
77 The MC address space is defined by 3 components:
[all …]
/linux/drivers/memory/tegra/
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-$(CONFIG_ARCH_TEGRA_194_SOC) += tegra186.o tegra194.o
12 tegra-mc-$(CONFIG_ARCH_TEGRA_234_SOC) += tegra186.o tegra234.o
[all …]
/linux/drivers/gpu/drm/radeon/
H A Dr520.c89 pr_warn("Failed to wait MC idle while programming pipes. Bad things might happen.\n"); in r520_gpu_init()
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()
[all …]
/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpni.c8 #include <linux/fsl/mc.h>
80 * @mc_io: Pointer to MC portal's I/O object
89 * associated with the specific object ID and the specific MC
112 /* send command to mc*/ in dpni_open()
125 * @mc_io: Pointer to MC portal's I/O object
145 /* send command to mc*/ in dpni_close()
151 * @mc_io: Pointer to MC portal's I/O object
188 /* send command to mc*/ in dpni_set_pools()
194 * @mc_io: Pointer to MC portal's I/O object
211 /* send command to mc*/ in dpni_enable()
[all …]
/linux/arch/powerpc/platforms/powernv/
H A Dopal-msglog.c34 ssize_t memcons_copy(struct memcons *mc, char *to, loff_t pos, size_t count) in memcons_copy() argument
41 if (!mc) in memcons_copy()
44 out_pos = be32_to_cpu(READ_ONCE(mc->out_pos)); in memcons_copy()
50 conbuf = phys_to_virt(be64_to_cpu(mc->obuf_phys)); 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()
[all …]
/linux/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/drivers/soc/fsl/qbman/
H A Dbman.c132 /* MC (Management Command) command */
144 /* MC result, Acquire and Query Response */
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
[all …]
/linux/drivers/dma/fsl-dpaa2-qdma/
H A Ddpdmai.c8 #include <linux/fsl/mc.h>
53 * @mc_io: Pointer to MC portal's I/O object
62 * associated with the specific object ID and the specific MC
82 /* send command to mc*/ in dpdmai_open()
96 * @mc_io: Pointer to MC portal's I/O object
113 /* send command to mc*/ in dpdmai_close()
120 * @mc_io: Pointer to MC portal's I/O object
139 /* send command to mc*/ in dpdmai_destroy()
146 * @mc_io: Pointer to MC portal's I/O object
160 /* send command to mc*/ in dpdmai_enable()
[all …]
/linux/arch/x86/um/shared/sysdep/
H A Dmcontext.h12 extern void get_mc_from_regs(struct uml_pt_regs *regs, mcontext_t *mc,
22 #define GET_FAULTINFO_FROM_MC(fi, mc) \ argument
24 (fi).cr2 = (mc)->cr2; \
25 (fi).error_code = (mc)->gregs[REG_ERR]; \
26 (fi).trap_no = (mc)->gregs[REG_TRAPNO]; \
31 #define GET_FAULTINFO_FROM_MC(fi, mc) \ argument
33 (fi).cr2 = (mc)->gregs[REG_CR2]; \
34 (fi).error_code = (mc)->gregs[REG_ERR]; \
35 (fi).trap_no = (mc)->gregs[REG_TRAPNO]; \

12345678910>>...36