Searched refs:ncfg (Results 1 – 5 of 5) sorted by relevance
/drivers/mtd/nand/ |
D | lpc32xx_mlc.c | 179 struct lpc32xx_nand_cfg_mlc *ncfg; member 255 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 …]
|
D | lpc32xx_slc.c | 209 struct lpc32xx_nand_cfg_slc *ncfg; member 245 tmp = SLCTAC_WDR(host->ncfg->wdr_clks) | in lpc32xx_nand_setup() 246 SLCTAC_WWIDTH(clkrate, host->ncfg->wwidth) | in lpc32xx_nand_setup() 247 SLCTAC_WHOLD(clkrate, host->ncfg->whold) | in lpc32xx_nand_setup() 248 SLCTAC_WSETUP(clkrate, host->ncfg->wsetup) | in lpc32xx_nand_setup() 249 SLCTAC_RDR(host->ncfg->rdr_clks) | in lpc32xx_nand_setup() 250 SLCTAC_RWIDTH(clkrate, host->ncfg->rwidth) | in lpc32xx_nand_setup() 251 SLCTAC_RHOLD(clkrate, host->ncfg->rhold) | in lpc32xx_nand_setup() 252 SLCTAC_RSETUP(clkrate, host->ncfg->rsetup); in lpc32xx_nand_setup() 302 if (gpio_is_valid(host->ncfg->wp_gpio)) in lpc32xx_wp_enable() [all …]
|
/drivers/pinctrl/ |
D | pinconf-generic.c | 193 unsigned int *ncfg) in parse_dt_cfg() argument 213 cfg[*ncfg] = pinconf_to_config_packed(par->param, val); in parse_dt_cfg() 214 (*ncfg)++; in parse_dt_cfg() 231 unsigned int max_cfg, ncfg = 0; in pinconf_generic_parse_dt_config() local 245 parse_dt_cfg(np, dt_params, ARRAY_SIZE(dt_params), cfg, &ncfg); in pinconf_generic_parse_dt_config() 249 pctldev->desc->num_custom_params, cfg, &ncfg); in pinconf_generic_parse_dt_config() 254 if (ncfg == 0) { in pinconf_generic_parse_dt_config() 264 *configs = kmemdup(cfg, ncfg * sizeof(unsigned long), GFP_KERNEL); in pinconf_generic_parse_dt_config() 270 *nconfigs = ncfg; in pinconf_generic_parse_dt_config()
|
/drivers/pwm/ |
D | pwm-sti.c | 124 unsigned int ncfg; in sti_pwm_config() local 127 ncfg = hweight_long(pc->configured); in sti_pwm_config() 128 if (ncfg) in sti_pwm_config() 142 if (!ncfg || in sti_pwm_config() 143 ((ncfg == 1) && (pwm->hwpwm == cur->hwpwm)) || in sti_pwm_config() 144 ((ncfg == 1) && (pwm->hwpwm != cur->hwpwm) && period_same) || in sti_pwm_config() 145 ((ncfg > 1) && period_same)) { in sti_pwm_config()
|
/drivers/usb/core/ |
D | config.c | 834 int ncfg = dev->descriptor.bNumConfigurations; in usb_get_configuration() local 842 if (ncfg > USB_MAXCONFIG) { in usb_get_configuration() 844 "using maximum allowed: %d\n", ncfg, USB_MAXCONFIG); in usb_get_configuration() 845 dev->descriptor.bNumConfigurations = ncfg = USB_MAXCONFIG; in usb_get_configuration() 848 if (ncfg < 1) { in usb_get_configuration() 853 length = ncfg * sizeof(struct usb_host_config); in usb_get_configuration() 858 length = ncfg * sizeof(char *); in usb_get_configuration() 868 for (; cfgno < ncfg; cfgno++) { in usb_get_configuration()
|