Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/mtd/nand/raw/
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()
373 if (gpio_is_valid(host->ncfg->wp_gpio)) in lpc32xx_wp_enable()
374 gpio_set_value(host->ncfg->wp_gpio, 0); in lpc32xx_wp_enable()
[all …]
Dlpc32xx_slc.c221 struct lpc32xx_nand_cfg_slc *ncfg; member
257 tmp = SLCTAC_WDR(host->ncfg->wdr_clks) | in lpc32xx_nand_setup()
258 SLCTAC_WWIDTH(clkrate, host->ncfg->wwidth) | in lpc32xx_nand_setup()
259 SLCTAC_WHOLD(clkrate, host->ncfg->whold) | in lpc32xx_nand_setup()
260 SLCTAC_WSETUP(clkrate, host->ncfg->wsetup) | in lpc32xx_nand_setup()
261 SLCTAC_RDR(host->ncfg->rdr_clks) | in lpc32xx_nand_setup()
262 SLCTAC_RWIDTH(clkrate, host->ncfg->rwidth) | in lpc32xx_nand_setup()
263 SLCTAC_RHOLD(clkrate, host->ncfg->rhold) | in lpc32xx_nand_setup()
264 SLCTAC_RSETUP(clkrate, host->ncfg->rsetup); in lpc32xx_nand_setup()
312 if (gpio_is_valid(host->ncfg->wp_gpio)) in lpc32xx_wp_enable()
[all …]
/linux-6.1.9/drivers/pinctrl/
Dpinconf-generic.c207 unsigned int *ncfg) in parse_dt_cfg() argument
227 cfg[*ncfg] = pinconf_to_config_packed(par->param, val); in parse_dt_cfg()
228 (*ncfg)++; in parse_dt_cfg()
247 unsigned int max_cfg, ncfg = 0; in pinconf_generic_parse_dt_config() local
261 parse_dt_cfg(np, dt_params, ARRAY_SIZE(dt_params), cfg, &ncfg); in pinconf_generic_parse_dt_config()
265 pctldev->desc->num_custom_params, cfg, &ncfg); in pinconf_generic_parse_dt_config()
270 if (ncfg == 0) { in pinconf_generic_parse_dt_config()
280 *configs = kmemdup(cfg, ncfg * sizeof(unsigned long), GFP_KERNEL); in pinconf_generic_parse_dt_config()
286 *nconfigs = ncfg; in pinconf_generic_parse_dt_config()
/linux-6.1.9/drivers/pwm/
Dpwm-sti.c168 unsigned int ncfg, value, prescale = 0; in sti_pwm_config() local
174 ncfg = hweight_long(pc->configured); in sti_pwm_config()
175 if (ncfg) in sti_pwm_config()
190 if (!ncfg || in sti_pwm_config()
191 ((ncfg == 1) && (pwm->hwpwm == cur->hwpwm)) || in sti_pwm_config()
192 ((ncfg == 1) && (pwm->hwpwm != cur->hwpwm) && period_same) || in sti_pwm_config()
193 ((ncfg > 1) && period_same)) { in sti_pwm_config()
/linux-6.1.9/drivers/usb/core/
Dconfig.c864 int ncfg = dev->descriptor.bNumConfigurations; in usb_get_configuration() local
870 if (ncfg > USB_MAXCONFIG) { in usb_get_configuration()
872 "using maximum allowed: %d\n", ncfg, USB_MAXCONFIG); in usb_get_configuration()
873 dev->descriptor.bNumConfigurations = ncfg = USB_MAXCONFIG; in usb_get_configuration()
876 if (ncfg < 1) { in usb_get_configuration()
881 length = ncfg * sizeof(struct usb_host_config); in usb_get_configuration()
886 length = ncfg * sizeof(char *); in usb_get_configuration()
895 for (cfgno = 0; cfgno < ncfg; cfgno++) { in usb_get_configuration()
/linux-6.1.9/drivers/pinctrl/ti/
Dpinctrl-ti-iodelay.c128 int ncfg; member
540 g->ncfg = i; in ti_iodelay_dt_node_to_map()
626 for (i = 0; i < group->ncfg; i++) { in ti_iodelay_pinconf_group_set()
704 for (i = 0; i < group->ncfg; i++) { in ti_iodelay_pinconf_group_dbg_show()