Home
last modified time | relevance | path

Searched refs:ctrl_conf (Results 1 – 2 of 2) sorted by relevance

/freebsd-12.1/sys/dev/nand/
H A Dnandsim.c267 struct sim_ctrl_conf *ctrl_conf; in nandsim_destroy_chip() local
276 ctrl_conf = &ctrls[chip->ctrl_num]; in nandsim_destroy_chip()
278 if (!ctrl_conf->created || !ctrl_conf->chips[chip->chip_num]) in nandsim_destroy_chip()
281 if (ctrl_conf->running) in nandsim_destroy_chip()
284 free(ctrl_conf->chips[chip->chip_num], M_NANDSIM); in nandsim_destroy_chip()
285 ctrl_conf->chips[chip->chip_num] = NULL; in nandsim_destroy_chip()
293 struct sim_ctrl_conf *ctrl_conf; in nandsim_chip_status() local
302 ctrl_conf = &ctrls[chip->ctrl_num]; in nandsim_chip_status()
303 if (!ctrl_conf->chips[chip->num]) in nandsim_chip_status()
306 memcpy(chip, ctrl_conf->chips[chip->num], sizeof(*chip)); in nandsim_chip_status()
/freebsd-12.1/usr.sbin/nandsim/
H A Dnandsim_cfgparse.c78 static struct sim_ctrl ctrl_conf; variable
83 {"num_cs", 1, VALUE_UINT | SIZE_8, (void *)&ctrl_conf.num_cs, 0},
84 {"ctrl_num", 1, VALUE_UINT | SIZE_8, (void *)&ctrl_conf.num, 0},
87 (void *)&ctrl_conf.ecc_layout, MAX_ECC_BYTES},
90 (void *)&ctrl_conf.filename, FILENAME_SIZE},
92 {"ecc", 0, VALUE_BOOL, (void *)&ctrl_conf.ecc, 0},
349 bzero((void *)&ctrl_conf, sizeof(ctrl_conf)); in create_ctrls()
356 memset((void *)&ctrl_conf.ecc_layout, 0xff, in create_ctrls()
357 sizeof(ctrl_conf.ecc_layout)); in create_ctrls()
369 memcpy(&ctrlsptr[i], &ctrl_conf, sizeof(ctrl_conf)); in create_ctrls()