Searched refs:ncfg (Results 1 – 5 of 5) sorted by relevance
179 struct lpc32xx_nand_cfg_mlc *ncfg; member255 tmp |= MLCTIMEREG_TCEA_DELAY(clkrate / host->ncfg->tcea_delay + 1); in lpc32xx_nand_setup()256 tmp |= MLCTIMEREG_BUSY_DELAY(clkrate / host->ncfg->busy_delay + 1); in lpc32xx_nand_setup()257 tmp |= MLCTIMEREG_NAND_TA(clkrate / host->ncfg->nand_ta + 1); in lpc32xx_nand_setup()258 tmp |= MLCTIMEREG_RD_HIGH(clkrate / host->ncfg->rd_high + 1); in lpc32xx_nand_setup()259 tmp |= MLCTIMEREG_RD_LOW(clkrate / host->ncfg->rd_low); in lpc32xx_nand_setup()260 tmp |= MLCTIMEREG_WR_HIGH(clkrate / host->ncfg->wr_high + 1); in lpc32xx_nand_setup()261 tmp |= MLCTIMEREG_WR_LOW(clkrate / host->ncfg->wr_low); in lpc32xx_nand_setup()371 if (gpio_is_valid(host->ncfg->wp_gpio)) in lpc32xx_wp_enable()372 gpio_set_value(host->ncfg->wp_gpio, 0); in lpc32xx_wp_enable()[all …]
206 struct lpc32xx_nand_cfg_slc *ncfg; member242 tmp = SLCTAC_WDR(host->ncfg->wdr_clks) | in lpc32xx_nand_setup()243 SLCTAC_WWIDTH(1 + (clkrate / host->ncfg->wwidth)) | in lpc32xx_nand_setup()244 SLCTAC_WHOLD(1 + (clkrate / host->ncfg->whold)) | in lpc32xx_nand_setup()245 SLCTAC_WSETUP(1 + (clkrate / host->ncfg->wsetup)) | in lpc32xx_nand_setup()246 SLCTAC_RDR(host->ncfg->rdr_clks) | in lpc32xx_nand_setup()247 SLCTAC_RWIDTH(1 + (clkrate / host->ncfg->rwidth)) | in lpc32xx_nand_setup()248 SLCTAC_RHOLD(1 + (clkrate / host->ncfg->rhold)) | in lpc32xx_nand_setup()249 SLCTAC_RSETUP(1 + (clkrate / host->ncfg->rsetup)); in lpc32xx_nand_setup()299 if (gpio_is_valid(host->ncfg->wp_gpio)) in lpc32xx_wp_enable()[all …]
109 unsigned int ncfg = 0; in sti_pwm_count_configured() local116 ncfg++; in sti_pwm_count_configured()120 return ncfg; in sti_pwm_count_configured()141 unsigned int ncfg; in sti_pwm_config() local144 ncfg = sti_pwm_count_configured(chip); in sti_pwm_config()145 if (ncfg) in sti_pwm_config()159 if (!ncfg || in sti_pwm_config()160 ((ncfg == 1) && (pwm->hwpwm == cur->hwpwm)) || in sti_pwm_config()161 ((ncfg == 1) && (pwm->hwpwm != cur->hwpwm) && period_same) || in sti_pwm_config()162 ((ncfg > 1) && period_same)) { in sti_pwm_config()
189 unsigned int ncfg = 0; in pinconf_generic_parse_dt_config() local215 cfg[ncfg] = pinconf_to_config_packed(par->param, val); in pinconf_generic_parse_dt_config()216 ncfg++; in pinconf_generic_parse_dt_config()222 if (ncfg == 0) { in pinconf_generic_parse_dt_config()232 *configs = kmemdup(cfg, ncfg * sizeof(unsigned long), GFP_KERNEL); in pinconf_generic_parse_dt_config()238 *nconfigs = ncfg; in pinconf_generic_parse_dt_config()
695 int ncfg = dev->descriptor.bNumConfigurations; in usb_get_configuration() local703 if (ncfg > USB_MAXCONFIG) { in usb_get_configuration()705 "using maximum allowed: %d\n", ncfg, USB_MAXCONFIG); in usb_get_configuration()706 dev->descriptor.bNumConfigurations = ncfg = USB_MAXCONFIG; in usb_get_configuration()709 if (ncfg < 1) { in usb_get_configuration()714 length = ncfg * sizeof(struct usb_host_config); in usb_get_configuration()719 length = ncfg * sizeof(char *); in usb_get_configuration()729 for (; cfgno < ncfg; cfgno++) { in usb_get_configuration()