Lines Matching refs:cfg

26 	const struct atmel_sam_pmc_config *cfg = (const struct atmel_sam_pmc_config *)sys;  in atmel_sam_clock_control_on()  local
28 if (cfg == NULL) { in atmel_sam_clock_control_on()
33 LOG_DBG("Type: %x, Id: %d", cfg->clock_type, cfg->peripheral_id); in atmel_sam_clock_control_on()
35 switch (cfg->clock_type) { in atmel_sam_clock_control_on()
37 soc_pmc_peripheral_enable(cfg->peripheral_id); in atmel_sam_clock_control_on()
52 const struct atmel_sam_pmc_config *cfg = (const struct atmel_sam_pmc_config *)sys; in atmel_sam_clock_control_off() local
54 if (cfg == NULL) { in atmel_sam_clock_control_off()
59 LOG_DBG("Type: %x, Id: %d", cfg->clock_type, cfg->peripheral_id); in atmel_sam_clock_control_off()
61 switch (cfg->clock_type) { in atmel_sam_clock_control_off()
63 soc_pmc_peripheral_disable(cfg->peripheral_id); in atmel_sam_clock_control_off()
79 const struct atmel_sam_pmc_config *cfg = (const struct atmel_sam_pmc_config *)sys; in atmel_sam_clock_control_get_rate() local
81 if (cfg == NULL) { in atmel_sam_clock_control_get_rate()
86 LOG_DBG("Type: %x, Id: %d", cfg->clock_type, cfg->peripheral_id); in atmel_sam_clock_control_get_rate()
88 switch (cfg->clock_type) { in atmel_sam_clock_control_get_rate()
108 const struct atmel_sam_pmc_config *cfg = (const struct atmel_sam_pmc_config *)sys; in atmel_sam_clock_control_get_status() local
111 if (cfg == NULL) { in atmel_sam_clock_control_get_status()
116 LOG_DBG("Type: %x, Id: %d", cfg->clock_type, cfg->peripheral_id); in atmel_sam_clock_control_get_status()
118 switch (cfg->clock_type) { in atmel_sam_clock_control_get_status()
120 status = soc_pmc_peripheral_is_enabled(cfg->peripheral_id) > 0 in atmel_sam_clock_control_get_status()