/kernel/linux/linux-5.10/drivers/hwmon/ |
H A D | k8temp.c | 135 u8 scfg; in k8temp_probe() local 171 pci_read_config_byte(pdev, REG_TEMP, &scfg); in k8temp_probe() 172 scfg &= ~(SEL_PLACE | SEL_CORE); /* Select sensor 0, core0 */ in k8temp_probe() 173 pci_write_config_byte(pdev, REG_TEMP, scfg); in k8temp_probe() 174 pci_read_config_byte(pdev, REG_TEMP, &scfg); in k8temp_probe() 176 if (scfg & (SEL_PLACE | SEL_CORE)) { in k8temp_probe() 181 scfg |= (SEL_PLACE | SEL_CORE); in k8temp_probe() 182 pci_write_config_byte(pdev, REG_TEMP, scfg); in k8temp_probe() 188 scfg &= ~SEL_CORE; /* Select sensor 1, core0 */ in k8temp_probe() 189 pci_write_config_byte(pdev, REG_TEMP, scfg); in k8temp_probe() [all...] |
/kernel/linux/linux-6.6/drivers/hwmon/ |
H A D | k8temp.c | 135 u8 scfg; in k8temp_probe() local 171 pci_read_config_byte(pdev, REG_TEMP, &scfg); in k8temp_probe() 172 scfg &= ~(SEL_PLACE | SEL_CORE); /* Select sensor 0, core0 */ in k8temp_probe() 173 pci_write_config_byte(pdev, REG_TEMP, scfg); in k8temp_probe() 174 pci_read_config_byte(pdev, REG_TEMP, &scfg); in k8temp_probe() 176 if (scfg & (SEL_PLACE | SEL_CORE)) { in k8temp_probe() 181 scfg |= (SEL_PLACE | SEL_CORE); in k8temp_probe() 182 pci_write_config_byte(pdev, REG_TEMP, scfg); in k8temp_probe() 188 scfg &= ~SEL_CORE; /* Select sensor 1, core0 */ in k8temp_probe() 189 pci_write_config_byte(pdev, REG_TEMP, scfg); in k8temp_probe() [all...] |
/kernel/linux/linux-5.10/arch/powerpc/platforms/85xx/ |
H A D | t1042rdb_diu.c | 17 /*DIU Pixel ClockCR offset in scfg*/ 79 void __iomem *scfg; in t1042rdb_set_pixel_clock() local 84 scfg_np = of_find_compatible_node(NULL, NULL, "fsl,t1040-scfg"); in t1042rdb_set_pixel_clock() 86 pr_err("%s: Missing scfg node. Can not display video.\n", in t1042rdb_set_pixel_clock() 91 scfg = of_iomap(scfg_np, 0); in t1042rdb_set_pixel_clock() 93 if (!scfg) { in t1042rdb_set_pixel_clock() 113 clrbits32(scfg + CCSR_SCFG_PIXCLKCR, in t1042rdb_set_pixel_clock() 117 setbits32(scfg + CCSR_SCFG_PIXCLKCR, PIXCLKCR_PXCKEN | (pxclk << 16)); in t1042rdb_set_pixel_clock() 119 iounmap(scfg); in t1042rdb_set_pixel_clock()
|
/kernel/linux/linux-6.6/arch/powerpc/platforms/85xx/ |
H A D | t1042rdb_diu.c | 17 /*DIU Pixel ClockCR offset in scfg*/ 79 void __iomem *scfg; in t1042rdb_set_pixel_clock() local 84 scfg_np = of_find_compatible_node(NULL, NULL, "fsl,t1040-scfg"); in t1042rdb_set_pixel_clock() 86 pr_err("%s: Missing scfg node. Can not display video.\n", in t1042rdb_set_pixel_clock() 91 scfg = of_iomap(scfg_np, 0); in t1042rdb_set_pixel_clock() 93 if (!scfg) { in t1042rdb_set_pixel_clock() 113 clrbits32(scfg + CCSR_SCFG_PIXCLKCR, in t1042rdb_set_pixel_clock() 117 setbits32(scfg + CCSR_SCFG_PIXCLKCR, PIXCLKCR_PXCKEN | (pxclk << 16)); in t1042rdb_set_pixel_clock() 119 iounmap(scfg); in t1042rdb_set_pixel_clock()
|
/kernel/linux/linux-5.10/drivers/pci/controller/dwc/ |
H A D | pci-layerscape.c | 49 struct regmap *scfg; member 99 if (!pcie->scfg) in ls1021_pcie_link_up() 102 regmap_read(pcie->scfg, SCFG_PEXMSCPORTSR(pcie->index), &state); in ls1021_pcie_link_up() 166 pcie->scfg = syscon_regmap_lookup_by_phandle(dev->of_node, in ls1021_pcie_host_init() 167 "fsl,pcie-scfg"); in ls1021_pcie_host_init() 168 if (IS_ERR(pcie->scfg)) { in ls1021_pcie_host_init() 169 ret = PTR_ERR(pcie->scfg); in ls1021_pcie_host_init() 171 pcie->scfg = NULL; in ls1021_pcie_host_init() 176 "fsl,pcie-scfg", index, 2)) { in ls1021_pcie_host_init() 177 pcie->scfg in ls1021_pcie_host_init() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_dcb_nl.c | 25 struct ixgbe_dcb_config *scfg = &adapter->temp_dcb_cfg; in ixgbe_copy_dcb_cfg() local 45 src = &scfg->tc_config[i - DCB_PG_ATTR_TC_0]; in ixgbe_copy_dcb_cfg() 95 if (dcfg->bw_percentage[tx][j] != scfg->bw_percentage[tx][j]) { in ixgbe_copy_dcb_cfg() 96 dcfg->bw_percentage[tx][j] = scfg->bw_percentage[tx][j]; in ixgbe_copy_dcb_cfg() 99 if (dcfg->bw_percentage[rx][j] != scfg->bw_percentage[rx][j]) { in ixgbe_copy_dcb_cfg() 100 dcfg->bw_percentage[rx][j] = scfg->bw_percentage[rx][j]; in ixgbe_copy_dcb_cfg() 107 if (dcfg->tc_config[j].dcb_pfc != scfg->tc_config[j].dcb_pfc) { in ixgbe_copy_dcb_cfg() 108 dcfg->tc_config[j].dcb_pfc = scfg->tc_config[j].dcb_pfc; in ixgbe_copy_dcb_cfg() 113 if (dcfg->pfc_mode_enable != scfg->pfc_mode_enable) { in ixgbe_copy_dcb_cfg() 114 dcfg->pfc_mode_enable = scfg in ixgbe_copy_dcb_cfg() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_dcb_nl.c | 23 struct ixgbe_dcb_config *scfg = &adapter->temp_dcb_cfg; in ixgbe_copy_dcb_cfg() local 43 src = &scfg->tc_config[i - DCB_PG_ATTR_TC_0]; in ixgbe_copy_dcb_cfg() 93 if (dcfg->bw_percentage[tx][j] != scfg->bw_percentage[tx][j]) { in ixgbe_copy_dcb_cfg() 94 dcfg->bw_percentage[tx][j] = scfg->bw_percentage[tx][j]; in ixgbe_copy_dcb_cfg() 97 if (dcfg->bw_percentage[rx][j] != scfg->bw_percentage[rx][j]) { in ixgbe_copy_dcb_cfg() 98 dcfg->bw_percentage[rx][j] = scfg->bw_percentage[rx][j]; in ixgbe_copy_dcb_cfg() 105 if (dcfg->tc_config[j].dcb_pfc != scfg->tc_config[j].dcb_pfc) { in ixgbe_copy_dcb_cfg() 106 dcfg->tc_config[j].dcb_pfc = scfg->tc_config[j].dcb_pfc; in ixgbe_copy_dcb_cfg() 111 if (dcfg->pfc_mode_enable != scfg->pfc_mode_enable) { in ixgbe_copy_dcb_cfg() 112 dcfg->pfc_mode_enable = scfg in ixgbe_copy_dcb_cfg() [all...] |
/kernel/linux/linux-6.6/drivers/irqchip/ |
H A D | irq-mchp-eic.c | 33 * @scfg: backup for scfg registers (necessary for backup and self-refresh mode) 41 u32 scfg[MCHP_EIC_NIRQ]; member 117 eic->scfg[hwirq] = readl_relaxed(eic->base + in mchp_eic_irq_suspend() 134 writel_relaxed(eic->scfg[hwirq], eic->base + in mchp_eic_irq_resume()
|
/kernel/linux/linux-5.10/drivers/dma/ |
H A D | st_fdma.c | 358 maxburst = fchan->scfg.src_maxburst; in config_reqctrl() 359 width = fchan->scfg.src_addr_width; in config_reqctrl() 360 addr = fchan->scfg.src_addr; in config_reqctrl() 365 maxburst = fchan->scfg.dst_maxburst; in config_reqctrl() 366 width = fchan->scfg.dst_addr_width; in config_reqctrl() 367 addr = fchan->scfg.dst_addr; in config_reqctrl() 682 memcpy(&fchan->scfg, slave_cfg, sizeof(fchan->scfg)); in st_fdma_slave_config()
|
H A D | st_fdma.h | 120 struct dma_slave_config scfg; member
|
/kernel/linux/linux-6.6/drivers/dma/ |
H A D | st_fdma.c | 358 maxburst = fchan->scfg.src_maxburst; in config_reqctrl() 359 width = fchan->scfg.src_addr_width; in config_reqctrl() 360 addr = fchan->scfg.src_addr; in config_reqctrl() 365 maxburst = fchan->scfg.dst_maxburst; in config_reqctrl() 366 width = fchan->scfg.dst_addr_width; in config_reqctrl() 367 addr = fchan->scfg.dst_addr; in config_reqctrl() 682 memcpy(&fchan->scfg, slave_cfg, sizeof(fchan->scfg)); in st_fdma_slave_config()
|
H A D | st_fdma.h | 120 struct dma_slave_config scfg; member
|
/kernel/linux/linux-5.10/sound/soc/qcom/qdsp6/ |
H A D | q6afe.c | 542 struct afe_param_id_slot_mapping_cfg *scfg; member 842 kfree(port->scfg); in q6afe_port_free() 1274 port->scfg = kzalloc(sizeof(*port->scfg), GFP_KERNEL); in q6afe_tdm_port_prepare() 1275 if (!port->scfg) in q6afe_tdm_port_prepare() 1278 port->scfg->minor_version = AFE_API_VERSION_SLOT_MAPPING_CONFIG; in q6afe_tdm_port_prepare() 1279 port->scfg->num_channels = cfg->num_channels; in q6afe_tdm_port_prepare() 1280 port->scfg->bitwidth = cfg->bit_width; in q6afe_tdm_port_prepare() 1281 port->scfg->data_align_type = cfg->data_align_type; in q6afe_tdm_port_prepare() 1282 memcpy(port->scfg in q6afe_tdm_port_prepare() [all...] |
/kernel/linux/linux-6.6/sound/soc/qcom/qdsp6/ |
H A D | q6afe.c | 544 struct afe_param_id_slot_mapping_cfg *scfg; member 848 kfree(port->scfg); in q6afe_port_free() 1279 port->scfg = kzalloc(sizeof(*port->scfg), GFP_KERNEL); in q6afe_tdm_port_prepare() 1280 if (!port->scfg) in q6afe_tdm_port_prepare() 1283 port->scfg->minor_version = AFE_API_VERSION_SLOT_MAPPING_CONFIG; in q6afe_tdm_port_prepare() 1284 port->scfg->num_channels = cfg->num_channels; in q6afe_tdm_port_prepare() 1285 port->scfg->bitwidth = cfg->bit_width; in q6afe_tdm_port_prepare() 1286 port->scfg->data_align_type = cfg->data_align_type; in q6afe_tdm_port_prepare() 1287 memcpy(port->scfg in q6afe_tdm_port_prepare() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_common.c | 2425 struct i40e_aqc_switch_seid *scfg = in i40e_aq_get_switch_config() local 2434 scfg->seid = cpu_to_le16(*start_seid); in i40e_aq_get_switch_config() 2437 *start_seid = le16_to_cpu(scfg->seid); in i40e_aq_get_switch_config() 2459 struct i40e_aqc_set_switch_config *scfg = in i40e_aq_set_switch_config() local 2465 scfg->flags = cpu_to_le16(flags); in i40e_aq_set_switch_config() 2466 scfg->valid_flags = cpu_to_le16(valid_flags); in i40e_aq_set_switch_config() 2467 scfg->mode = mode; in i40e_aq_set_switch_config() 2469 scfg->switch_tag = cpu_to_le16(hw->switch_tag); in i40e_aq_set_switch_config() 2470 scfg->first_tag = cpu_to_le16(hw->first_tag); in i40e_aq_set_switch_config() 2471 scfg in i40e_aq_set_switch_config() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_common.c | 2200 struct i40e_aqc_switch_seid *scfg = in i40e_aq_get_switch_config() local 2209 scfg->seid = cpu_to_le16(*start_seid); in i40e_aq_get_switch_config() 2212 *start_seid = le16_to_cpu(scfg->seid); in i40e_aq_get_switch_config() 2234 struct i40e_aqc_set_switch_config *scfg = in i40e_aq_set_switch_config() local 2240 scfg->flags = cpu_to_le16(flags); in i40e_aq_set_switch_config() 2241 scfg->valid_flags = cpu_to_le16(valid_flags); in i40e_aq_set_switch_config() 2242 scfg->mode = mode; in i40e_aq_set_switch_config() 2244 scfg->switch_tag = cpu_to_le16(hw->switch_tag); in i40e_aq_set_switch_config() 2245 scfg->first_tag = cpu_to_le16(hw->first_tag); in i40e_aq_set_switch_config() 2246 scfg in i40e_aq_set_switch_config() [all...] |
/kernel/linux/linux-5.10/sound/pci/ac97/ |
H A D | ac97_patch.c | 1446 unsigned short scfg; in patch_ad1819() local 1449 scfg = snd_ac97_read(ac97, AC97_AD_SERIAL_CFG); in patch_ad1819() 1450 snd_ac97_write_cache(ac97, AC97_AD_SERIAL_CFG, scfg | 0x7000); /* select all codecs */ in patch_ad1819()
|
H A D | ac97_codec.c | 2715 unsigned short scfg; in tune_ad_sharing() local 2721 scfg = snd_ac97_read(ac97, AC97_AD_SERIAL_CFG); in tune_ad_sharing() 2722 snd_ac97_write_cache(ac97, AC97_AD_SERIAL_CFG, scfg | 0x0200); in tune_ad_sharing()
|
/kernel/linux/linux-6.6/sound/pci/ac97/ |
H A D | ac97_patch.c | 1473 unsigned short scfg; in patch_ad1819() local 1476 scfg = snd_ac97_read(ac97, AC97_AD_SERIAL_CFG); in patch_ad1819() 1477 snd_ac97_write_cache(ac97, AC97_AD_SERIAL_CFG, scfg | 0x7000); /* select all codecs */ in patch_ad1819()
|
H A D | ac97_codec.c | 2797 unsigned short scfg; in tune_ad_sharing() local 2803 scfg = snd_ac97_read(ac97, AC97_AD_SERIAL_CFG); in tune_ad_sharing() 2804 snd_ac97_write_cache(ac97, AC97_AD_SERIAL_CFG, scfg | 0x0200); in tune_ad_sharing()
|