/freebsd-12-stable/sys/dev/nand/ |
H A D | nandsim_chip.c | 52 #define NANDSIM_CHIP_LOCK(chip) mtx_lock(&(chip)->ns_lock) 53 #define NANDSIM_CHIP_UNLOCK(chip) mtx_unlock(&(chip)->ns_lock) 88 struct nandsim_chip *chip; local 94 chip = malloc(sizeof(*chip), M_NANDSIM, M_WAITOK | M_ZERO); 96 mtx_init(&chip->ns_lock, "nandsim lock", NULL, MTX_DEF); 97 callout_init(&chip->ns_callout, 1); 98 STAILQ_INIT(&chip 199 nandsim_blk_state_init(struct nandsim_chip *chip, uint32_t size, uint32_t wear_lev) argument 221 nandsim_blk_state_destroy(struct nandsim_chip *chip) argument 229 nandsim_bbm_init(struct nandsim_chip *chip, uint32_t size, uint32_t *sim_bbm) argument 259 nandsim_chip_destroy(struct nandsim_chip *chip) argument 269 nandsim_chip_freeze(struct nandsim_chip *chip) argument 278 struct nandsim_chip *chip = (struct nandsim_chip *)arg; local 334 create_event(struct nandsim_chip *chip, uint8_t type, uint8_t data_size) argument 364 struct nandsim_chip *chip = ev->chip; local 392 nandsim_delay(struct nandsim_chip *chip, int timeout) argument 417 nandsim_start_handler(struct nandsim_chip *chip, nandsim_evh_t evh) argument 433 nandchip_set_data(struct nandsim_chip *chip, uint8_t *data, uint32_t len, uint32_t idx) argument 445 nandchip_chip_space(struct nandsim_chip *chip, int32_t row, int32_t column, size_t size, uint8_t writing) argument 487 nandchip_get_addr_byte(struct nandsim_chip *chip, void *data, uint32_t *value) argument 520 nandchip_is_block_valid(struct nandsim_chip *chip, int block_num) argument 534 nandchip_set_status(struct nandsim_chip *chip, uint8_t flags) argument 541 nandchip_clear_status(struct nandsim_chip *chip, uint8_t flags) argument 548 nandchip_get_status(struct nandsim_chip *chip) argument 554 nandsim_chip_timeout(struct nandsim_chip *chip) argument 566 poweron_evh(struct nandsim_chip *chip, uint32_t type, void *data) argument 588 idle_evh(struct nandsim_chip *chip, uint32_t type, void *data) argument 624 readid_evh(struct nandsim_chip *chip, uint32_t type, void *data) argument 652 readparam_evh(struct nandsim_chip *chip, uint32_t type, void *data) argument 677 read_evh(struct nandsim_chip *chip, uint32_t type, void *data) argument 730 write_evh(struct nandsim_chip *chip, uint32_t type, void *data) argument 787 erase_evh(struct nandsim_chip *chip, uint32_t type, void *data) argument 853 reset_evh(struct nandsim_chip *chip, uint32_t type, void *data) argument 867 nandsim_undefined(struct nandsim_chip *chip, uint8_t type) argument 877 nandsim_bad_address(struct nandsim_chip *chip, uint8_t *addr) argument 887 nandsim_ignore_address(struct nandsim_chip *chip, uint8_t byte) argument 893 nandsim_sm_error(struct nandsim_chip *chip) argument [all...] |
H A D | nand_geom.c | 57 nand_read(struct nand_chip *chip, uint32_t offset, void *buf, uint32_t len) argument 60 nand_debug(NDBG_GEOM, "Read from chip %d [%p] at %d", chip->num, chip, 63 return (nand_read_pages(chip, offset, buf, len)); 67 nand_write(struct nand_chip *chip, uint32_t offset, void* buf, uint32_t len) argument 70 nand_debug(NDBG_GEOM, "Write to chip %d [%p] at %d", chip->num, chip, 73 return (nand_prog_pages(chip, offse 77 nand_read_raw(struct nand_chip *chip, uint32_t offset, void *buf, uint32_t len) argument 86 nand_write_raw(struct nand_chip *chip, uint32_t offset, void *buf, uint32_t len) argument 98 struct nand_chip *chip; local 119 struct nand_chip *chip; local 139 nand_oob_access(struct nand_chip *chip, uint32_t page, uint32_t offset, uint32_t len, uint8_t *data, uint8_t write) argument 158 struct nand_chip *chip; local 197 struct nand_chip *chip; local 313 struct nand_chip *chip = arg; local 371 create_geom_disk(struct nand_chip *chip) argument 445 destroy_geom_disk(struct nand_chip *chip) argument [all...] |
H A D | nandsim_ctrl.c | 113 struct sim_chip *chip; local 126 chip = params->chips[i]; 127 if (chip && chip->device_id != 0) { 128 sc->chips[i] = nandsim_chip_init(sc, i, chip); 129 if (chip->features & ONFI_FEAT_16BIT) 188 struct nandsim_chip *chip; local 192 chip = sc->active_chip; 194 if (chip == NULL) 197 nandsim_log(chip, NANDSIM_LOG_E 232 struct nandsim_chip *chip; local 255 struct nandsim_chip *chip; local 280 struct nandsim_chip *chip; local 307 struct nandsim_chip *chip; local 325 struct nandsim_chip *chip; local 385 byte_corrupt(struct nandsim_chip *chip, uint8_t *byte) argument [all...] |
H A D | nand_cdev.c | 78 nand_make_dev(struct nand_chip *chip) argument 85 ivar = device_get_ivars(chip->dev); 86 nandbus = device_get_parent(chip->dev); 92 * If we got distinct name for chip device we can enumarete it 102 unit = parent_unit * 4 + chip->num; 103 chip->cdev = make_dev(&nand_cdevsw, unit, UID_ROOT, GID_WHEEL, 104 0640, "%s%d.%d", name, parent_unit, chip->num); 106 if (chip->cdev == NULL) 110 device_printf(chip->dev, "Created cdev %s%d.%d for chip " 120 nand_destroy_dev(struct nand_chip *chip) argument 135 nand_read(struct nand_chip *chip, uint32_t offset, void *buf, uint32_t len) argument 189 nand_write(struct nand_chip *chip, uint32_t offset, void* buf, uint32_t len) argument 233 struct nand_chip *chip; local 266 nand_oob_access(struct nand_chip *chip, uint32_t page, uint32_t offset, uint32_t len, uint8_t *data, uint8_t write) argument 298 struct nand_chip *chip; local 418 nand_page_stat(struct nand_chip *chip, struct page_stat_io *page_stat) argument 442 nand_block_stat(struct nand_chip *chip, struct block_stat_io *block_stat) argument [all...] |
H A D | nand_bbt.c | 54 struct nand_chip *chip; member in struct:nand_bbt 74 nand_init_bbt(struct nand_chip *chip) argument 80 cg = &chip->chip_geom; 84 device_printf(chip->dev, 89 bbt->chip = chip; 97 device_printf(chip->dev, "Cannot allocate %d bytes for BB " 113 chip->bbt = bbt; 120 device_printf(chip->dev, "Found BBT table for chip\ 126 nand_destroy_bbt(struct nand_chip *chip) argument 139 nand_update_bbt(struct nand_chip *chip) argument 256 nand_check_bad_block(struct nand_chip *chip, uint32_t block_number) argument 269 nand_mark_bad_block(struct nand_chip *chip, uint32_t block_number) argument [all...] |
H A D | nand_generic.c | 210 struct nand_chip *chip; local 216 chip = device_get_softc(dev); 217 chip->dev = dev; 220 chip->id.man_id = ivar->man_id; 221 chip->id.dev_id = ivar->dev_id; 222 chip->num = ivar->cs; 228 chip->nand = device_get_softc(nfc); 234 if (onfi_read_parameter(chip, onfi_chip_params)) { 240 nand_onfi_set_params(chip, onfi_chip_params); 247 nand_set_params(chip, iva 280 struct nand_chip *chip; local 343 onfi_read_parameter(struct nand_chip *chip, struct onfi_chip_params *chip_params) argument 431 struct nand_chip *chip; local 466 struct nand_chip *chip; local 528 struct nand_chip *chip; local 569 struct nand_chip *chip; local 609 struct nand_chip *chip; local 667 struct nand_chip *chip; local 703 struct nand_chip *chip; local 737 struct nand_chip *chip; local 795 struct nand_chip *chip; local 835 struct nand_chip *chip; local 869 struct nand_chip *chip; local 913 struct nand_chip *chip; local 993 struct nand_chip *chip; local 1030 struct nand_chip *chip = device_get_softc(dev); local 1040 struct nand_chip *chip = device_get_softc(dev); local [all...] |
H A D | nand.c | 111 nand_onfi_set_params(struct nand_chip *chip, struct onfi_chip_params *params) argument 115 cg = &chip->chip_geom; 120 chip->t_bers = params->t_bers; 121 chip->t_prog = params->t_prog; 122 chip->t_r = params->t_r; 123 chip->t_ccs = params->t_ccs; 126 chip->flags |= NAND_16_BIT; 130 nand_set_params(struct nand_chip *chip, struct nand_params *params) argument 135 cg = &chip->chip_geom; 143 chip 153 nand_init_stat(struct nand_chip *chip) argument 182 nand_destroy_stat(struct nand_chip *chip) argument 275 nand_check_page_boundary(struct nand_chip *chip, uint32_t page) argument 290 nand_get_chip_param(struct nand_chip *chip, struct chip_param_io *param) argument 303 default_software_ecc_positions(struct nand_chip *chip) argument 459 nand_read_pages(struct nand_chip *chip, uint32_t offset, void *buf, uint32_t len) argument 556 nand_read_pages_raw(struct nand_chip *chip, uint32_t offset, void *buf, uint32_t len) argument 613 nand_prog_pages(struct nand_chip *chip, uint32_t offset, uint8_t *buf, uint32_t len) argument 695 nand_prog_pages_raw(struct nand_chip *chip, uint32_t offset, void *buf, uint32_t len) argument 748 nand_read_oob(struct nand_chip *chip, uint32_t page, void *buf, uint32_t len) argument 767 nand_prog_oob(struct nand_chip *chip, uint32_t page, void *buf, uint32_t len) argument 785 nand_erase_blocks(struct nand_chip *chip, off_t offset, size_t len) argument [all...] |
H A D | nandsim.c | 235 nandsim_create_chip(struct sim_chip *chip) argument 239 nand_debug(NDBG_SIM,"create chip num:%d at ctrl:%d", chip->num, 240 chip->ctrl_num); 242 if (chip->ctrl_num >= MAX_SIM_DEV || 243 chip->num >= MAX_CTRL_CS) { 247 if (ctrls[chip->ctrl_num].chips[chip->num]) { 257 memcpy(sim_chip, chip, sizeof(*sim_chip)); 258 ctrls[chip 265 nandsim_destroy_chip(struct sim_ctrl_chip *chip) argument 291 nandsim_chip_status(struct sim_chip *chip) argument 433 struct nandsim_chip *chip; local 468 struct nandsim_chip *chip; local 497 struct nandsim_chip *chip; local 523 struct nandsim_chip *chip; local 552 struct nandsim_chip *chip; local 583 struct nandsim_chip *chip; local [all...] |
H A D | nand.h | 336 int nand_erase_blocks(struct nand_chip *chip, off_t offset, size_t len); 337 int nand_prog_pages(struct nand_chip *chip, uint32_t offset, uint8_t *buf, 339 int nand_read_pages(struct nand_chip *chip, uint32_t offset, void *buf, 341 int nand_read_pages_raw(struct nand_chip *chip, uint32_t offset, void *buf, 343 int nand_prog_pages_raw(struct nand_chip *chip, uint32_t offset, void *buf, 345 int nand_read_oob(struct nand_chip *chip, uint32_t page, void *buf, 347 int nand_prog_oob(struct nand_chip *chip, uint32_t page, void *buf, 386 void nand_onfi_set_params(struct nand_chip *chip, struct onfi_chip_params *params); 387 void nand_set_params(struct nand_chip *chip, struct nand_params *params); 388 int nand_init_stat(struct nand_chip *chip); [all...] |
H A D | nandsim_log.c | 89 nandsim_log(struct nandsim_chip *chip, int level, const char *fmt, ...) argument 101 if (chip == NULL) 104 sc = chip->sc; 110 hdr_len = sprintf(hdr, "%08jd.%08li [chip:%d, ctrl:%d]: ", 112 chip->chip_num, chip->ctrl_num);
|
/freebsd-12-stable/contrib/ofed/libcxgb4/ |
H A D | t4_chip_type.h | 70 static inline int is_t4(enum chip_type chip) argument 72 return (CHELSIO_CHIP_VERSION(chip) == CHELSIO_T4); 75 static inline int is_t5(enum chip_type chip) argument 77 return (CHELSIO_CHIP_VERSION(chip) == CHELSIO_T5); 80 static inline int is_t6(enum chip_type chip) argument 82 return (CHELSIO_CHIP_VERSION(chip) == CHELSIO_T6);
|
/freebsd-12-stable/sys/contrib/octeon-sdk/ |
H A D | cvmx-nand.c | 103 ** parameter page of the ONFI flash chip. */ 152 * Array indexed by bootbus chip select with information 390 /* Internal helper function to set chip configuration to use default values */ 391 static void __set_chip_defaults(int chip, int clocks_us) argument 395 cvmx_nand_state[chip].page_size = cvmx_nand_default.page_size; /* NAND page size in bytes */ 396 cvmx_nand_state[chip].oob_size = cvmx_nand_default.oob_size; /* NAND OOB (spare) size in bytes (per page) */ 397 cvmx_nand_state[chip].pages_per_block = cvmx_nand_default.pages_per_block; 398 cvmx_nand_state[chip].blocks = cvmx_nand_default.blocks; 399 cvmx_nand_state[chip].onfi_timing = cvmx_nand_default.onfi_timing; 400 __set_onfi_timing_mode(cvmx_nand_state[chip] 413 __wait_for_busy_done(int chip) argument 469 int chip; local 814 int chip; local 841 cvmx_nand_set_timing(int chip, int tim_mult, int tim_par[8], int clen[4], int alen[4], int rdn[4], int wrn[2]) argument 953 __cvmx_nand_get_column_bits(int chip) argument 968 __cvmx_nand_get_row_bits(int chip) argument 983 __cvmx_nand_get_address_cycles(int chip) argument 1007 __cvmx_nand_build_pre_cmd(int chip, int cmd_data, int num_address_cycles, uint64_t nand_address, int cmd_data2) argument 1160 __cvmx_nand_setup_dma(int chip, int is_write, uint64_t buffer_address, int buffer_length) argument 1230 __cvmx_nand_low_level_read(int chip, int nand_command1, int address_cycles, uint64_t nand_address, int nand_command2, uint64_t buffer_address, int buffer_length) argument 1326 cvmx_nand_page_read(int chip, uint64_t nand_address, uint64_t buffer_address, int buffer_length) argument 1373 cvmx_nand_page_write(int chip, uint64_t nand_address, uint64_t buffer_address) argument 1460 cvmx_nand_block_erase(int chip, uint64_t nand_address) argument 1526 cvmx_nand_read_id(int chip, uint64_t nand_address, uint64_t buffer_address, int buffer_length) argument 1567 cvmx_nand_read_param_page(int chip, uint64_t buffer_address, int buffer_length) argument 1601 cvmx_nand_get_status(int chip) argument 1632 cvmx_nand_get_page_size(int chip) argument 1651 cvmx_nand_get_oob_size(int chip) argument 1671 cvmx_nand_get_pages_per_block(int chip) argument 1690 cvmx_nand_get_blocks(int chip) argument 1709 cvmx_nand_reset(int chip) argument [all...] |
H A D | cvmx-nand.h | 62 * Octeon's NAND controller assumes a single NAND chip is connected to a boot 63 * bus chip select. Throughout this API, NAND chips are referred to by the chip 64 * select they are connected to (0-7). Chip select 0 will only be a NAND chip 192 uint64_t chip : 3; member in struct:__anon11301 495 * Each bit in this parameter represents a chip select that might 496 * contain NAND flash. Any chip select present in this bitmask may 498 * let the API probe all 8 chip selects. 508 * for NAND chips that do not identify themselves in a way that allows autoconfiguration. (ONFI chip with 539 * Returns a bitmask representing the chip select [all...] |
/freebsd-12-stable/sys/mips/atheros/ |
H A D | ar71xx_setup.c | 83 char *chip = "????"; local 101 chip = "7130"; 106 chip = "7141"; 111 chip = "7161"; 118 chip = "7240"; 125 chip = "7241"; 132 chip = "7242"; 145 chip = "9130"; 150 chip = "9132"; 157 chip [all...] |
/freebsd-12-stable/sys/dev/rtwn/pci/ |
H A D | rtwn_pci_attach.h | 32 int chip; member in struct:rtwn_pci_ident 49 rtwn_pci_attach_private(struct rtwn_pci_softc *pc, int chip) argument 51 rtwn_chip_pci_attach[chip](pc);
|
/freebsd-12-stable/usr.sbin/nandsim/ |
H A D | nandsim.c | 83 #define MSG_STATUSACQCTRLCHIP "Could not acquire status for ctrl#%d chip#%d" 85 #define MSG_NOCHIP "There is no such chip configured (chip#%d "\ 180 * ctrl == 0xff && chip == 0xff : '--all' flag specified 181 * ctrl != 0xff && chip != 0xff : both ctrl & chip were specified 182 * ctrl != 0xff && chip == 0xff : only ctrl was specified 198 /* If --all or -a is specified, ctl==chip==0xff */ 252 opencdev(int *cdevd, int ctrl, int chip) argument 256 sprintf(fname, "/dev/nandsim%d.%d", ctrl, chip); 283 int chip = 0, ctl = 0, err = 0, fd, idx, idx2, start, stop; local 353 int chip = 0, ctl = 0, err = 0, fd, running, state; local 390 int chip = 0, ctl = 0, err = 0, fd, running; local 420 int chip, ctl, err = 0, fd = -1, i; local 522 int chip = 0, ctl = 0, err = 0, fd; local 569 int c, cdevd, chip = 0, ctl = 0, err = 0, fd, idx; local 664 int chip = 0, ctl = 0, err = 0, fd, i, start = 0, state, stop = 0; local 721 int chip = 0, ctl = 0, err = 0, fd, idx, start = 0, stop = 0; local 772 int cdevd, chip = 0, ctl = 0, err = 0; local 809 int chip = 0, ctl = 0, err = EX_OK, fd, dumpfd; local 937 int chip = 0, ctl = 0, err = 0, fd, dumpfd = -1; local 1075 int chip = 0, ctl = 0, err = 0, fd, idx, idx2, state; local 1200 printchip(struct sim_chip *chip, uint8_t verbose) argument 1302 struct sim_chip chip; local [all...] |
H A D | sample.conf | 53 # subordinate NAND chips, which are tied to chip select lines. 60 # The number of chip selects available at this controller. 80 # [chip] Chip configuration section. 82 # There can be a number of individual NAND chip devices defined for 83 # simulation, and each has a dedicated [chip] section. 85 # A particular chip needs to be associated with its parent NAND controller by 86 # specifying the following fields: controller number (chip_ctrl) and the chip 87 # select line it is connected to (chip_cs). The chip can be connected to only 90 [chip] 108 # Textual description of the chip [all...] |
/freebsd-12-stable/sys/mips/atheros/ar531x/ |
H A D | ar5315_setup.c | 78 char *chip = "????"; local 115 chip = "2315"; 119 chip = "2316"; 123 chip = "2317"; 127 chip = "2318"; 140 chip = "5311"; 144 chip = "5312"; 148 chip = "2313"; 153 sprintf(ar5315_sys_type, "Atheros AR%s rev %u", chip, rev);
|
/freebsd-12-stable/sys/dev/wbwd/ |
H A D | wbwd.c | 103 enum chips chip; member in struct:wb_softc 120 * register as these might be different by chip. 129 enum chips chip; member in struct:winbond_vendor_device_id 134 .chip = w83627hf, 139 .chip = w83627s, 144 .chip = w83697hf, 149 .chip = w83697ug, 154 .chip = w83637hf, 159 .chip = w83627thf, 164 .chip [all...] |
/freebsd-12-stable/sys/dev/rtwn/rtl8192c/ |
H A D | r92c_attach.c | 68 rs->chip |= R92C_CHIP_92C; 73 rs->chip |= R92C_CHIP_92C_1T2R; 77 rs->chip |= R92C_CHIP_UMC_A_CUT;
|
/freebsd-12-stable/sys/dev/drm/ |
H A D | savage_drv.h | 96 /* these chip tags should match the ones in the 2D driver in savage_regs.h. */ 113 #define S3_SAVAGE3D_SERIES(chip) ((chip>=S3_SAVAGE3D) && (chip<=S3_SAVAGE_MX)) 115 #define S3_SAVAGE4_SERIES(chip) ((chip==S3_SAVAGE4) \ 116 || (chip==S3_PROSAVAGE) \ 117 || (chip==S3_TWISTER) \ 118 || (chip==S3_PROSAVAGEDDR)) 120 #define S3_SAVAGE_MOBILE_SERIES(chip) ((chi [all...] |
/freebsd-12-stable/sys/dev/ata/chipsets/ |
H A D | ata-acerlabs.c | 95 if (!(ctlr->chip = ata_match_chip(dev, ids))) 114 switch (ctlr->chip->cfg2) { 116 ctlr->channels = ctlr->chip->cfg1; 145 if (ctlr->chip->chiprev < 0xc7) 151 (ctlr->chip->chiprev >= 0xc7 ? 0x03 : 0x01), 1); 154 if (ctlr->chip->chiprev <= 0xc4) 180 if (ctlr->chip->cfg2 == ALI_SATA) { 204 if (ctlr->chip->cfg2 & ALI_NEW && ctlr->chip->chiprev < 0xc7) 207 if (ctlr->chip [all...] |
H A D | ata-siliconimage.c | 97 if (!(ctlr->chip = ata_match_chip(dev, ids))) 113 switch (ctlr->chip->cfg1) { 119 if (ctlr->chip->chipid != ATA_SII0680 || 124 if (ctlr->chip->cfg2 & SII_SETCLK) { 130 ctlr->chip->text); 134 if (ctlr->chip->cfg2 & SII_4CH) { 151 if (ctlr->chip->max_dma >= ATA_SA150) { 187 if (ctlr->chip->cfg2 & SII_INTR) 226 mode = min(mode, ctlr->chip->max_dma); 268 if (ctlr->chip [all...] |
/freebsd-12-stable/sys/dev/rtwn/rtl8192e/ |
H A D | r92e_var.h | 35 uint8_t chip; member in struct:r92e_softc
|
/freebsd-12-stable/sys/mips/ingenic/ |
H A D | jz4780_pinctrl.c | 66 #define CHIP_REG_OFFSET(base, chip) ((base) + (chip) * CHIP_REG_STRIDE) 191 device_t chip; local 212 /* Lookup the chip that handles this configuration */ 213 chip = jz4780_pinctrl_chip_lookup(sc, pconf[0]); 214 if (chip == NULL) { 223 pconf[1], ofw_bus_get_name(chip)); 227 result = JZ4780_GPIO_CONFIGURE_PIN(chip, pconf[1], pconf[2], 232 ofw_bus_get_name(chip));
|