Home
last modified time | relevance | path

Searched full:drc (Results 1 – 25 of 176) sorted by relevance

12345678

/kernel/linux/linux-5.10/drivers/gpu/drm/sun4i/
Dsun6i_drc.c25 struct sun6i_drc *drc; in sun6i_drc_bind() local
28 drc = devm_kzalloc(dev, sizeof(*drc), GFP_KERNEL); in sun6i_drc_bind()
29 if (!drc) in sun6i_drc_bind()
31 dev_set_drvdata(dev, drc); in sun6i_drc_bind()
33 drc->reset = devm_reset_control_get(dev, NULL); in sun6i_drc_bind()
34 if (IS_ERR(drc->reset)) { in sun6i_drc_bind()
36 return PTR_ERR(drc->reset); in sun6i_drc_bind()
39 ret = reset_control_deassert(drc->reset); in sun6i_drc_bind()
45 drc->bus_clk = devm_clk_get(dev, "ahb"); in sun6i_drc_bind()
46 if (IS_ERR(drc->bus_clk)) { in sun6i_drc_bind()
[all …]
/kernel/linux/linux-4.19/drivers/gpu/drm/sun4i/
Dsun6i_drc.c29 struct sun6i_drc *drc; in sun6i_drc_bind() local
32 drc = devm_kzalloc(dev, sizeof(*drc), GFP_KERNEL); in sun6i_drc_bind()
33 if (!drc) in sun6i_drc_bind()
35 dev_set_drvdata(dev, drc); in sun6i_drc_bind()
37 drc->reset = devm_reset_control_get(dev, NULL); in sun6i_drc_bind()
38 if (IS_ERR(drc->reset)) { in sun6i_drc_bind()
40 return PTR_ERR(drc->reset); in sun6i_drc_bind()
43 ret = reset_control_deassert(drc->reset); in sun6i_drc_bind()
49 drc->bus_clk = devm_clk_get(dev, "ahb"); in sun6i_drc_bind()
50 if (IS_ERR(drc->bus_clk)) { in sun6i_drc_bind()
[all …]
/kernel/linux/linux-5.10/drivers/pci/hotplug/
Drpaphp_core.c163 indexes = of_get_property(dn, "ibm,drc-indexes", NULL); in get_children_props()
164 names = of_get_property(dn, "ibm,drc-names", NULL); in get_children_props()
165 types = of_get_property(dn, "ibm,drc-types", NULL); in get_children_props()
166 domains = of_get_property(dn, "ibm,drc-power-domains", NULL); in get_children_props()
188 * current node. First obtain its my-drc-index property. Next,
189 * obtain the DRC info from its parent. Use the my-drc-index for
209 /* Iterate through parent properties, looking for my-drc-index */ in rpaphp_check_drc_props_v1()
230 struct of_drc_info drc; in rpaphp_check_drc_props_v2() local
235 info = of_find_property(dn->parent, "ibm,drc-info", NULL); in rpaphp_check_drc_props_v2()
246 of_read_drc_info_cell(&info, &value, &drc); in rpaphp_check_drc_props_v2()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/exynos4-is/
Dfimc-is-errno.c39 return "ERROR_OTF_INPUT_FORMAT: Invalid format (DRC: YUV444, FD: YUV444, 422, 420)"; in fimc_is_param_strerr()
41 return "ERROR_OTF_INPUT_WIDTH: Invalid width (DRC: 128~8192, FD: 32~8190)"; in fimc_is_param_strerr()
43 return "ERROR_OTF_INPUT_HEIGHT: Invalid bit-width (DRC: 8~12bits, FD: 8bit)"; in fimc_is_param_strerr()
45 return "ERROR_OTF_INPUT_BIT_WIDTH: Invalid bit-width (DRC: 8~12bits, FD: 8bit)"; in fimc_is_param_strerr()
47 return "ERROR_DMA_INPUT_WIDTH: Invalid width (DRC: 128~8192, FD: 32~8190)"; in fimc_is_param_strerr()
49 return "ERROR_DMA_INPUT_HEIGHT: Invalid height (DRC: 64~8192, FD: 16~8190)"; in fimc_is_param_strerr()
51 return "ERROR_DMA_INPUT_FORMAT: Invalid format (DRC: YUV444 or YUV422, FD: YUV444,422,420)"; in fimc_is_param_strerr()
53 return "ERROR_DMA_INPUT_BIT_WIDTH: Invalid bit-width (DRC: 8~12bits, FD: 8bit)"; in fimc_is_param_strerr()
55 return "ERROR_DMA_INPUT_ORDER: Invalid order(DRC: YYCbCr,YCbYCr,FD:NO,YYCbCr,YCbYCr,CbCr,CrCb)"; in fimc_is_param_strerr()
57 return "ERROR_DMA_INPUT_PLANE: Invalid palne (DRC: 3, FD: 1, 2, 3)"; in fimc_is_param_strerr()
[all …]
Dfimc-is-errno.h71 /* DRC 300 ~ 399 */
137 /* invalid format (DRC: YUV444, FD: YUV444, 422, 420) */
139 /* invalid width (DRC: 128~8192, FD: 32~8190) */
141 /* invalid height (DRC: 64~8192, FD: 16~8190) */
143 /* invalid bit-width (DRC: 8~12bits, FD: 8bit) */
149 /* invalid width (DRC: 128~8192, FD: 32~8190) */
151 /* invalid height (DRC: 64~8192, FD: 16~8190) */
153 /* invalid format (DRC: YUV444 or YUV422, FD: YUV444, 422, 420) */
155 /* invalid bit-width (DRC: 8~12bit, FD: 8bit) */
157 /* invalid order(DRC: YYCbCrorYCbYCr, FD:NO,YYCbCr,YCbYCr,CbCr,CrCb) */
[all …]
Dfimc-is-param.c123 __hw_param_copy(&par->drc.control, &cfg->drc.control); in __fimc_is_hw_update_param()
127 __hw_param_copy(&par->drc.otf_input, &cfg->drc.otf_input); in __fimc_is_hw_update_param()
131 __hw_param_copy(&par->drc.dma_input, &cfg->drc.dma_input); in __fimc_is_hw_update_param()
135 __hw_param_copy(&par->drc.otf_output, &cfg->drc.otf_output); in __fimc_is_hw_update_param()
220 struct drc_param *drc; in __is_set_frame_size() local
224 drc = &is->config[index].drc; in __is_set_frame_size()
232 /* Update drc size info (OTF only) */ in __is_set_frame_size()
233 drc->otf_input.width = mf->width; in __is_set_frame_size()
234 drc->otf_input.height = mf->height; in __is_set_frame_size()
235 drc->otf_output.width = mf->width; in __is_set_frame_size()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/
Dhotplug-cpu.c342 rc = of_property_read_u32(child, "ibm,my-drc-index", in dlpar_cpu_exists()
360 struct of_drc_info drc; in drc_info_valid_index() local
365 info = of_find_property(parent, "ibm,drc-info", NULL); in drc_info_valid_index()
371 /* First value of ibm,drc-info is number of drc-info records */ in drc_info_valid_index()
378 if (of_read_drc_info_cell(&info, &value, &drc)) in drc_info_valid_index()
381 if (strncmp(drc.drc_type, "CPU", 3)) in drc_info_valid_index()
384 if (drc_index > drc.last_drc_index) in drc_info_valid_index()
387 index = drc.drc_index_start; in drc_info_valid_index()
388 for (j = 0; j < drc.num_sequential_elems; j++) { in drc_info_valid_index()
392 index += drc.sequential_inc; in drc_info_valid_index()
[all …]
Dpseries_energy.c51 info = of_find_property(dn, "ibm,drc-info", NULL); in cpu_to_drc_index()
53 struct of_drc_info drc; in cpu_to_drc_index() local
66 of_read_drc_info_cell(&info, &value, &drc); in cpu_to_drc_index()
67 if (strncmp(drc.drc_type, "CPU", 3)) in cpu_to_drc_index()
70 if (thread_index < drc.last_drc_index) in cpu_to_drc_index()
74 ret = drc.drc_index_start + (thread_index * drc.sequential_inc); in cpu_to_drc_index()
79 * The first element of ibm,drc-indexes array is the in cpu_to_drc_index()
84 rc = of_property_read_u32_index(dn, "ibm,drc-indexes", in cpu_to_drc_index()
90 rc = of_property_read_u32_index(dn, "ibm,drc-indexes", in cpu_to_drc_index()
120 info = of_find_property(dn, "ibm,drc-info", NULL); in drc_index_to_cpu()
[all …]
Dpmem.c35 pr_debug("Attempting to add pmem node, drc index: %x\n", drc_index); in pmem_drc_add_node()
39 pr_err("Failed to acquire DRC, rc: %d, drc index: %x\n", in pmem_drc_add_node()
46 pr_err("configure-connector failed for drc %x\n", drc_index); in pmem_drc_add_node()
54 pr_err("Failed to attach node %pOF, rc: %d, drc index: %x\n", in pmem_drc_add_node()
63 pr_info("Successfully added %pOF, drc index: %x\n", dn, drc_index); in pmem_drc_add_node()
75 if (of_property_read_u32(dn, "ibm,my-drc-index", &index)) in pmem_drc_remove_node()
82 pr_err("Attempting to remove unused DRC index %x\n", drc_index); in pmem_drc_remove_node()
86 pr_debug("Attempting to remove %pOF, drc index: %x\n", dn, drc_index); in pmem_drc_remove_node()
95 pr_err("Failed to release drc (%x) for CPU %pOFn, rc: %d\n", in pmem_drc_remove_node()
101 pr_info("Successfully removed PMEM with drc index: %x\n", drc_index); in pmem_drc_remove_node()
Dof_helpers.c54 /* Get drc-type:encode-string */ in of_read_drc_info_cell()
60 /* Get drc-name-prefix:encode-string */ in of_read_drc_info_cell()
66 /* Get drc-index-start:encode-int */ in of_read_drc_info_cell()
70 /* Get drc-name-suffix-start:encode-int */ in of_read_drc_info_cell()
85 /* Get drc-power-domain:encode-int */ in of_read_drc_info_cell()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/display/
Dallwinner,sun6i-a31-drc.yaml4 $id: http://devicetree.org/schemas/display/allwinner,sun6i-a31-drc.yaml#
14 The DRC (Dynamic Range Controller) allows to dynamically adjust
21 - allwinner,sun6i-a31-drc
22 - allwinner,sun6i-a31s-drc
23 - allwinner,sun8i-a23-drc
24 - allwinner,sun8i-a33-drc
25 - allwinner,sun9i-a80-drc
35 - description: The DRC interface clock
36 - description: The DRC module clock
37 - description: The DRC DRAM clock
[all …]
/kernel/linux/linux-4.19/drivers/media/platform/exynos4-is/
Dfimc-is-errno.c42 return "ERROR_OTF_INPUT_FORMAT: Invalid format (DRC: YUV444, FD: YUV444, 422, 420)"; in fimc_is_param_strerr()
44 return "ERROR_OTF_INPUT_WIDTH: Invalid width (DRC: 128~8192, FD: 32~8190)"; in fimc_is_param_strerr()
46 return "ERROR_OTF_INPUT_HEIGHT: Invalid bit-width (DRC: 8~12bits, FD: 8bit)"; in fimc_is_param_strerr()
48 return "ERROR_OTF_INPUT_BIT_WIDTH: Invalid bit-width (DRC: 8~12bits, FD: 8bit)"; in fimc_is_param_strerr()
50 return "ERROR_DMA_INPUT_WIDTH: Invalid width (DRC: 128~8192, FD: 32~8190)"; in fimc_is_param_strerr()
52 return "ERROR_DMA_INPUT_HEIGHT: Invalid height (DRC: 64~8192, FD: 16~8190)"; in fimc_is_param_strerr()
54 return "ERROR_DMA_INPUT_FORMAT: Invalid format (DRC: YUV444 or YUV422, FD: YUV444,422,420)"; in fimc_is_param_strerr()
56 return "ERROR_DMA_INPUT_BIT_WIDTH: Invalid bit-width (DRC: 8~12bits, FD: 8bit)"; in fimc_is_param_strerr()
58 return "ERROR_DMA_INPUT_ORDER: Invalid order(DRC: YYCbCr,YCbYCr,FD:NO,YYCbCr,YCbYCr,CbCr,CrCb)"; in fimc_is_param_strerr()
60 return "ERROR_DMA_INPUT_PLANE: Invalid palne (DRC: 3, FD: 1, 2, 3)"; in fimc_is_param_strerr()
[all …]
Dfimc-is-errno.h74 /* DRC 300 ~ 399 */
140 /* invalid format (DRC: YUV444, FD: YUV444, 422, 420) */
142 /* invalid width (DRC: 128~8192, FD: 32~8190) */
144 /* invalid height (DRC: 64~8192, FD: 16~8190) */
146 /* invalid bit-width (DRC: 8~12bits, FD: 8bit) */
152 /* invalid width (DRC: 128~8192, FD: 32~8190) */
154 /* invalid height (DRC: 64~8192, FD: 16~8190) */
156 /* invalid format (DRC: YUV444 or YUV422, FD: YUV444, 422, 420) */
158 /* invalid bit-width (DRC: 8~12bit, FD: 8bit) */
160 /* invalid order(DRC: YYCbCrorYCbYCr, FD:NO,YYCbCr,YCbYCr,CbCr,CrCb) */
[all …]
Dfimc-is-param.c126 __hw_param_copy(&par->drc.control, &cfg->drc.control); in __fimc_is_hw_update_param()
130 __hw_param_copy(&par->drc.otf_input, &cfg->drc.otf_input); in __fimc_is_hw_update_param()
134 __hw_param_copy(&par->drc.dma_input, &cfg->drc.dma_input); in __fimc_is_hw_update_param()
138 __hw_param_copy(&par->drc.otf_output, &cfg->drc.otf_output); in __fimc_is_hw_update_param()
223 struct drc_param *drc; in __is_set_frame_size() local
227 drc = &is->config[index].drc; in __is_set_frame_size()
235 /* Update drc size info (OTF only) */ in __is_set_frame_size()
236 drc->otf_input.width = mf->width; in __is_set_frame_size()
237 drc->otf_input.height = mf->height; in __is_set_frame_size()
238 drc->otf_output.width = mf->width; in __is_set_frame_size()
[all …]
/kernel/linux/linux-4.19/arch/powerpc/platforms/pseries/
Dpseries_energy.c55 struct of_drc_info drc; in cpu_to_drc_index() local
60 info = of_find_property(dn, "ibm,drc-info", NULL); in cpu_to_drc_index()
70 of_read_drc_info_cell(&info, &value, &drc); in cpu_to_drc_index()
71 if (strncmp(drc.drc_type, "CPU", 3)) in cpu_to_drc_index()
74 if (thread_index < drc.last_drc_index) in cpu_to_drc_index()
78 ret = drc.drc_index_start + (thread_index * drc.sequential_inc); in cpu_to_drc_index()
83 * The first element of ibm,drc-indexes array is the in cpu_to_drc_index()
88 rc = of_property_read_u32_index(dn, "ibm,drc-indexes", in cpu_to_drc_index()
94 rc = of_property_read_u32_index(dn, "ibm,drc-indexes", in cpu_to_drc_index()
126 struct of_drc_info drc; in drc_index_to_cpu() local
[all …]
Dhotplug-cpu.c399 rc = of_property_read_u32(child, "ibm,my-drc-index", in dlpar_cpu_exists()
421 u32 drc; in valid_cpu_drc_index() local
423 rc = of_property_read_u32_index(parent, "ibm,drc-indexes", in valid_cpu_drc_index()
424 index++, &drc); in valid_cpu_drc_index()
428 if (drc == drc_index) in valid_cpu_drc_index()
440 pr_debug("Attempting to add CPU, drc index: %x\n", drc_index); in dlpar_cpu_add()
450 pr_warn("CPU with drc index %x already exists\n", drc_index); in dlpar_cpu_add()
456 pr_warn("Cannot find CPU (drc index %x) to add.\n", drc_index); in dlpar_cpu_add()
462 pr_warn("Failed to acquire DRC, rc: %d, drc index: %x\n", in dlpar_cpu_add()
470 pr_warn("Failed call to configure-connector, drc index: %x\n", in dlpar_cpu_add()
[all …]
Dof_helpers.c54 /* Get drc-type:encode-string */ in of_read_drc_info_cell()
60 /* Get drc-name-prefix:encode-string */ in of_read_drc_info_cell()
66 /* Get drc-index-start:encode-int */ in of_read_drc_info_cell()
72 /* Get drc-name-suffix-start:encode-int */ in of_read_drc_info_cell()
87 /* Get drc-power-domain:encode-int */ in of_read_drc_info_cell()
/kernel/linux/linux-4.19/drivers/pci/hotplug/
Drpaphp_core.c163 indexes = of_get_property(dn, "ibm,drc-indexes", NULL); in get_children_props()
164 names = of_get_property(dn, "ibm,drc-names", NULL); in get_children_props()
165 types = of_get_property(dn, "ibm,drc-types", NULL); in get_children_props()
166 domains = of_get_property(dn, "ibm,drc-power-domains", NULL); in get_children_props()
188 * current node. First obtain it's my-drc-index property. Next,
189 * obtain the DRC info from it's parent. Use the my-drc-index for
209 /* Iterate through parent properties, looking for my-drc-index */ in rpaphp_check_drc_props_v1()
230 struct of_drc_info drc; in rpaphp_check_drc_props_v2() local
235 info = of_find_property(dn->parent, "ibm,drc-info", NULL); in rpaphp_check_drc_props_v2()
246 of_read_drc_info_cell(&info, &value, &drc); in rpaphp_check_drc_props_v2()
[all …]
/kernel/linux/linux-5.10/sound/soc/codecs/
Dssm2518.c196 SOC_SINGLE("DRC Limiter Switch", SSM2518_REG_DRC_1, 5, 1, 0),
197 SOC_SINGLE("DRC Compressor Switch", SSM2518_REG_DRC_1, 4, 1, 0),
198 SOC_SINGLE("DRC Expander Switch", SSM2518_REG_DRC_1, 3, 1, 0),
199 SOC_SINGLE("DRC Noise Gate Switch", SSM2518_REG_DRC_1, 2, 1, 0),
200 SOC_DOUBLE("DRC Switch", SSM2518_REG_DRC_1, 0, 1, 1, 0),
202 SOC_SINGLE_TLV("DRC Limiter Threshold Volume",
204 SOC_SINGLE_TLV("DRC Compressor Lower Threshold Volume",
206 SOC_SINGLE_TLV("DRC Expander Upper Threshold Volume", SSM2518_REG_DRC_4,
208 SOC_SINGLE_TLV("DRC Noise Gate Threshold Volume",
210 SOC_SINGLE_TLV("DRC Upper Output Threshold Volume",
[all …]
/kernel/linux/linux-4.19/sound/soc/codecs/
Dssm2518.c197 SOC_SINGLE("DRC Limiter Switch", SSM2518_REG_DRC_1, 5, 1, 0),
198 SOC_SINGLE("DRC Compressor Switch", SSM2518_REG_DRC_1, 4, 1, 0),
199 SOC_SINGLE("DRC Expander Switch", SSM2518_REG_DRC_1, 3, 1, 0),
200 SOC_SINGLE("DRC Noise Gate Switch", SSM2518_REG_DRC_1, 2, 1, 0),
201 SOC_DOUBLE("DRC Switch", SSM2518_REG_DRC_1, 0, 1, 1, 0),
203 SOC_SINGLE_TLV("DRC Limiter Threshold Volume",
205 SOC_SINGLE_TLV("DRC Compressor Lower Threshold Volume",
207 SOC_SINGLE_TLV("DRC Expander Upper Threshold Volume", SSM2518_REG_DRC_4,
209 SOC_SINGLE_TLV("DRC Noise Gate Threshold Volume",
211 SOC_SINGLE_TLV("DRC Upper Output Threshold Volume",
[all …]
/kernel/linux/linux-4.19/sound/ppc/
DKconfig24 bool "Toggle DRC automatically at headphone/line plug-in"
28 Say Y here to enable the automatic toggle of DRC (dynamic
30 If this feature is enabled, DRC is turned off when the
33 Note that you can turn on/off DRC manually even without this
/kernel/linux/linux-5.10/sound/ppc/
DKconfig25 bool "Toggle DRC automatically at headphone/line plug-in"
29 Say Y here to enable the automatic toggle of DRC (dynamic
31 If this feature is enabled, DRC is turned off when the
34 Note that you can turn on/off DRC manually even without this
/kernel/linux/linux-5.10/Documentation/powerpc/
Dpapr_hcalls.rst97 DRC & DRC Indexes
104 +--+ DRC1 | | DRC | Space |
113 an LPAR, PHYP creates a data-structure called Dynamic Resource Connector (DRC)
114 to manage LPAR access. An LPAR refers to a DRC via an opaque 32-bit number
115 called DRC-Index. The DRC-index value is provided to the LPAR via device-tree
150 Given a DRC Index of an NVDIMM, read N-bytes from the the metadata area
162 Given a DRC Index of an NVDIMM, write N-bytes to the metadata area
173 Given a DRC-Index of an NVDIMM, map a continuous SCM blocks range
186 Given a DRC-Index of an NVDimm, unmap *numScmBlocksToUnbind* SCM blocks starting
197 Given a DRC-Index and an SCM Block index return the guest physical address to
[all …]
/kernel/linux/linux-5.10/drivers/edac/
De7xxx_edac.c342 static inline int dual_channel_active(u32 drc, int dev_idx) in dual_channel_active() argument
344 return (dev_idx == E7501) ? ((drc >> 22) & 0x1) : 1; in dual_channel_active()
348 static inline int drb_granularity(u32 drc, int dev_idx) in drb_granularity() argument
351 return (dev_idx == E7501) ? ((drc >> 18) & 0x3) : 1; in drb_granularity()
355 int dev_idx, u32 drc) in e7xxx_init_csrows() argument
367 drc_chan = dual_channel_active(drc, dev_idx); in e7xxx_init_csrows()
368 drc_drbg = drb_granularity(drc, dev_idx); in e7xxx_init_csrows()
369 drc_ddim = (drc >> 20) & 0x3; in e7xxx_init_csrows()
427 u32 drc; in e7xxx_probe1() local
433 pci_read_config_dword(pdev, E7XXX_DRC, &drc); in e7xxx_probe1()
[all …]
/kernel/linux/linux-4.19/drivers/edac/
De7xxx_edac.c342 static inline int dual_channel_active(u32 drc, int dev_idx) in dual_channel_active() argument
344 return (dev_idx == E7501) ? ((drc >> 22) & 0x1) : 1; in dual_channel_active()
348 static inline int drb_granularity(u32 drc, int dev_idx) in drb_granularity() argument
351 return (dev_idx == E7501) ? ((drc >> 18) & 0x3) : 1; in drb_granularity()
355 int dev_idx, u32 drc) in e7xxx_init_csrows() argument
367 drc_chan = dual_channel_active(drc, dev_idx); in e7xxx_init_csrows()
368 drc_drbg = drb_granularity(drc, dev_idx); in e7xxx_init_csrows()
369 drc_ddim = (drc >> 20) & 0x3; in e7xxx_init_csrows()
427 u32 drc; in e7xxx_probe1() local
433 pci_read_config_dword(pdev, E7XXX_DRC, &drc); in e7xxx_probe1()
[all …]

12345678