Home
last modified time | relevance | path

Searched refs:ncfg (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/mtd/nand/raw/
H A Dlpc32xx_mlc.c182 struct lpc32xx_nand_cfg_mlc *ncfg; member
258 tmp |= MLCTIMEREG_TCEA_DELAY(clkrate / host->ncfg->tcea_delay + 1); in lpc32xx_nand_setup()
259 tmp |= MLCTIMEREG_BUSY_DELAY(clkrate / host->ncfg->busy_delay + 1); in lpc32xx_nand_setup()
260 tmp |= MLCTIMEREG_NAND_TA(clkrate / host->ncfg->nand_ta + 1); in lpc32xx_nand_setup()
261 tmp |= MLCTIMEREG_RD_HIGH(clkrate / host->ncfg->rd_high + 1); in lpc32xx_nand_setup()
262 tmp |= MLCTIMEREG_RD_LOW(clkrate / host->ncfg->rd_low); in lpc32xx_nand_setup()
263 tmp |= MLCTIMEREG_WR_HIGH(clkrate / host->ncfg->wr_high + 1); in lpc32xx_nand_setup()
264 tmp |= MLCTIMEREG_WR_LOW(clkrate / host->ncfg->wr_low); in lpc32xx_nand_setup()
622 struct lpc32xx_nand_cfg_mlc *ncfg; in lpc32xx_parse_dt() local
625 ncfg = devm_kzalloc(dev, sizeof(*ncfg), GFP_KERNEL); in lpc32xx_parse_dt()
[all …]
H A Dlpc32xx_slc.c220 struct lpc32xx_nand_cfg_slc *ncfg; member
256 tmp = SLCTAC_WDR(host->ncfg->wdr_clks) | in lpc32xx_nand_setup()
257 SLCTAC_WWIDTH(clkrate, host->ncfg->wwidth) | in lpc32xx_nand_setup()
258 SLCTAC_WHOLD(clkrate, host->ncfg->whold) | in lpc32xx_nand_setup()
259 SLCTAC_WSETUP(clkrate, host->ncfg->wsetup) | in lpc32xx_nand_setup()
260 SLCTAC_RDR(host->ncfg->rdr_clks) | in lpc32xx_nand_setup()
261 SLCTAC_RWIDTH(clkrate, host->ncfg->rwidth) | in lpc32xx_nand_setup()
262 SLCTAC_RHOLD(clkrate, host->ncfg->rhold) | in lpc32xx_nand_setup()
263 SLCTAC_RSETUP(clkrate, host->ncfg->rsetup); in lpc32xx_nand_setup()
747 struct lpc32xx_nand_cfg_slc *ncfg; in lpc32xx_parse_dt() local
[all …]
/linux/drivers/pwm/
H A Dpwm-sti.c161 unsigned int ncfg, value, prescale = 0; in sti_pwm_config() local
167 ncfg = hweight_long(pc->configured); in sti_pwm_config()
168 if (ncfg) in sti_pwm_config()
183 if (!ncfg || in sti_pwm_config()
184 ((ncfg == 1) && (pwm->hwpwm == cur->hwpwm)) || in sti_pwm_config()
185 ((ncfg == 1) && (pwm->hwpwm != cur->hwpwm) && period_same) || in sti_pwm_config()
186 ((ncfg > 1) && period_same)) { in sti_pwm_config()
/linux/drivers/usb/core/
H A Dconfig.c876 int ncfg = dev->descriptor.bNumConfigurations; in usb_get_configuration() local
882 if (ncfg > USB_MAXCONFIG) { in usb_get_configuration()
884 "using maximum allowed: %d\n", ncfg, USB_MAXCONFIG); in usb_get_configuration()
885 dev->descriptor.bNumConfigurations = ncfg = USB_MAXCONFIG; in usb_get_configuration()
888 if (ncfg < 1) { in usb_get_configuration()
893 length = ncfg * sizeof(struct usb_host_config); in usb_get_configuration()
898 length = ncfg * sizeof(char *); in usb_get_configuration()
907 for (cfgno = 0; cfgno < ncfg; cfgno++) { in usb_get_configuration()