/freebsd-11-stable/sys/dev/nand/ |
H A D | nandsim_chip.c | 50 #define NANDSIM_CHIP_LOCK(chip) mtx_lock(&(chip)->ns_lock) 51 #define NANDSIM_CHIP_UNLOCK(chip) mtx_unlock(&(chip)->ns_lock) 86 struct nandsim_chip *chip; local 92 chip = malloc(sizeof(*chip), M_NANDSIM, M_WAITOK | M_ZERO); 93 if (!chip) 96 mtx_init(&chip->ns_lock, "nandsim lock", NULL, MTX_DEF); 97 callout_init(&chip 199 nandsim_blk_state_init(struct nandsim_chip *chip, uint32_t size, uint32_t wear_lev) argument 224 nandsim_blk_state_destroy(struct nandsim_chip *chip) argument 232 nandsim_bbm_init(struct nandsim_chip *chip, uint32_t size, uint32_t *sim_bbm) argument 262 nandsim_chip_destroy(struct nandsim_chip *chip) argument 272 nandsim_chip_freeze(struct nandsim_chip *chip) argument 281 struct nandsim_chip *chip = (struct nandsim_chip *)arg; local 337 create_event(struct nandsim_chip *chip, uint8_t type, uint8_t data_size) argument 367 struct nandsim_chip *chip = ev->chip; local 395 nandsim_delay(struct nandsim_chip *chip, int timeout) argument 420 nandsim_start_handler(struct nandsim_chip *chip, nandsim_evh_t evh) argument 436 nandchip_set_data(struct nandsim_chip *chip, uint8_t *data, uint32_t len, uint32_t idx) argument 448 nandchip_chip_space(struct nandsim_chip *chip, int32_t row, int32_t column, size_t size, uint8_t writing) argument 490 nandchip_get_addr_byte(struct nandsim_chip *chip, void *data, uint32_t *value) argument 523 nandchip_is_block_valid(struct nandsim_chip *chip, int block_num) argument 537 nandchip_set_status(struct nandsim_chip *chip, uint8_t flags) argument 544 nandchip_clear_status(struct nandsim_chip *chip, uint8_t flags) argument 551 nandchip_get_status(struct nandsim_chip *chip) argument 557 nandsim_chip_timeout(struct nandsim_chip *chip) argument 569 poweron_evh(struct nandsim_chip *chip, uint32_t type, void *data) argument 591 idle_evh(struct nandsim_chip *chip, uint32_t type, void *data) argument 627 readid_evh(struct nandsim_chip *chip, uint32_t type, void *data) argument 655 readparam_evh(struct nandsim_chip *chip, uint32_t type, void *data) argument 680 read_evh(struct nandsim_chip *chip, uint32_t type, void *data) argument 733 write_evh(struct nandsim_chip *chip, uint32_t type, void *data) argument 790 erase_evh(struct nandsim_chip *chip, uint32_t type, void *data) argument 856 reset_evh(struct nandsim_chip *chip, uint32_t type, void *data) argument 870 nandsim_undefined(struct nandsim_chip *chip, uint8_t type) argument 880 nandsim_bad_address(struct nandsim_chip *chip, uint8_t *addr) argument 890 nandsim_ignore_address(struct nandsim_chip *chip, uint8_t byte) argument 896 nandsim_sm_error(struct nandsim_chip *chip) argument [all...] |
H A D | nand_geom.c | 55 nand_read(struct nand_chip *chip, uint32_t offset, void *buf, uint32_t len) argument 58 nand_debug(NDBG_GEOM, "Read from chip %d [%p] at %d", chip->num, chip, 61 return (nand_read_pages(chip, offset, buf, len)); 65 nand_write(struct nand_chip *chip, uint32_t offset, void* buf, uint32_t len) argument 68 nand_debug(NDBG_GEOM, "Write to chip %d [%p] at %d", chip->num, chip, 71 return (nand_prog_pages(chip, offse 75 nand_read_raw(struct nand_chip *chip, uint32_t offset, void *buf, uint32_t len) argument 84 nand_write_raw(struct nand_chip *chip, uint32_t offset, void *buf, uint32_t len) argument 96 struct nand_chip *chip; local 117 struct nand_chip *chip; local 137 nand_oob_access(struct nand_chip *chip, uint32_t page, uint32_t offset, uint32_t len, uint8_t *data, uint8_t write) argument 156 struct nand_chip *chip; local 195 struct nand_chip *chip; local 311 struct nand_chip *chip = arg; local 369 create_geom_disk(struct nand_chip *chip) argument 443 destroy_geom_disk(struct nand_chip *chip) argument [all...] |
H A D | nandsim_ctrl.c | 111 struct sim_chip *chip; local 124 chip = params->chips[i]; 125 if (chip && chip->device_id != 0) { 126 sc->chips[i] = nandsim_chip_init(sc, i, chip); 127 if (chip->features & ONFI_FEAT_16BIT) 186 struct nandsim_chip *chip; local 190 chip = sc->active_chip; 192 if (chip == NULL) 195 nandsim_log(chip, NANDSIM_LOG_E 230 struct nandsim_chip *chip; local 253 struct nandsim_chip *chip; local 278 struct nandsim_chip *chip; local 305 struct nandsim_chip *chip; local 323 struct nandsim_chip *chip; local 383 byte_corrupt(struct nandsim_chip *chip, uint8_t *byte) argument [all...] |
H A D | nand_cdev.c | 76 nand_make_dev(struct nand_chip *chip) argument 83 ivar = device_get_ivars(chip->dev); 84 nandbus = device_get_parent(chip->dev); 90 * If we got distinct name for chip device we can enumarete it 100 unit = parent_unit * 4 + chip->num; 101 chip->cdev = make_dev(&nand_cdevsw, unit, UID_ROOT, GID_WHEEL, 102 0640, "%s%d.%d", name, parent_unit, chip->num); 104 if (chip->cdev == NULL) 108 device_printf(chip->dev, "Created cdev %s%d.%d for chip " 118 nand_destroy_dev(struct nand_chip *chip) argument 133 nand_read(struct nand_chip *chip, uint32_t offset, void *buf, uint32_t len) argument 187 nand_write(struct nand_chip *chip, uint32_t offset, void* buf, uint32_t len) argument 231 struct nand_chip *chip; local 264 nand_oob_access(struct nand_chip *chip, uint32_t page, uint32_t offset, uint32_t len, uint8_t *data, uint8_t write) argument 296 struct nand_chip *chip; local 416 nand_page_stat(struct nand_chip *chip, struct page_stat_io *page_stat) argument 440 nand_block_stat(struct nand_chip *chip, struct block_stat_io *block_stat) argument [all...] |
H A D | nand_bbt.c | 52 struct nand_chip *chip; member in struct:nand_bbt 72 nand_init_bbt(struct nand_chip *chip) argument 78 cg = &chip->chip_geom; 82 device_printf(chip->dev, 87 bbt->chip = chip; 95 device_printf(chip->dev, "Cannot allocate %d bytes for BB " 111 chip->bbt = bbt; 118 device_printf(chip->dev, "Found BBT table for chip\ 124 nand_destroy_bbt(struct nand_chip *chip) argument 137 nand_update_bbt(struct nand_chip *chip) argument 254 nand_check_bad_block(struct nand_chip *chip, uint32_t block_number) argument 267 nand_mark_bad_block(struct nand_chip *chip, uint32_t block_number) argument [all...] |
H A D | nand_generic.c | 208 struct nand_chip *chip; local 214 chip = device_get_softc(dev); 215 chip->dev = dev; 218 chip->id.man_id = ivar->man_id; 219 chip->id.dev_id = ivar->dev_id; 220 chip->num = ivar->cs; 226 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 799 struct nand_chip *chip; local 839 struct nand_chip *chip; local 873 struct nand_chip *chip; local 917 struct nand_chip *chip; local 997 struct nand_chip *chip; local 1038 struct nand_chip *chip = device_get_softc(dev); local 1048 struct nand_chip *chip = device_get_softc(dev); local [all...] |
H A D | nand.c | 109 nand_onfi_set_params(struct nand_chip *chip, struct onfi_chip_params *params) argument 113 cg = &chip->chip_geom; 118 chip->t_bers = params->t_bers; 119 chip->t_prog = params->t_prog; 120 chip->t_r = params->t_r; 121 chip->t_ccs = params->t_ccs; 124 chip->flags |= NAND_16_BIT; 128 nand_set_params(struct nand_chip *chip, struct nand_params *params) argument 133 cg = &chip->chip_geom; 141 chip 151 nand_init_stat(struct nand_chip *chip) argument 180 nand_destroy_stat(struct nand_chip *chip) argument 273 nand_check_page_boundary(struct nand_chip *chip, uint32_t page) argument 288 nand_get_chip_param(struct nand_chip *chip, struct chip_param_io *param) argument 301 default_software_ecc_positions(struct nand_chip *chip) argument 457 nand_read_pages(struct nand_chip *chip, uint32_t offset, void *buf, uint32_t len) argument 554 nand_read_pages_raw(struct nand_chip *chip, uint32_t offset, void *buf, uint32_t len) argument 611 nand_prog_pages(struct nand_chip *chip, uint32_t offset, uint8_t *buf, uint32_t len) argument 693 nand_prog_pages_raw(struct nand_chip *chip, uint32_t offset, void *buf, uint32_t len) argument 746 nand_read_oob(struct nand_chip *chip, uint32_t page, void *buf, uint32_t len) argument 765 nand_prog_oob(struct nand_chip *chip, uint32_t page, void *buf, uint32_t len) argument 783 nand_erase_blocks(struct nand_chip *chip, off_t offset, size_t len) argument [all...] |
H A D | nandsim.c | 233 nandsim_create_chip(struct sim_chip *chip) argument 237 nand_debug(NDBG_SIM,"create chip num:%d at ctrl:%d", chip->num, 238 chip->ctrl_num); 240 if (chip->ctrl_num >= MAX_SIM_DEV || 241 chip->num >= MAX_CTRL_CS) { 245 if (ctrls[chip->ctrl_num].chips[chip->num]) { 255 memcpy(sim_chip, chip, sizeof(*sim_chip)); 256 ctrls[chip 263 nandsim_destroy_chip(struct sim_ctrl_chip *chip) argument 289 nandsim_chip_status(struct sim_chip *chip) argument 431 struct nandsim_chip *chip; local 466 struct nandsim_chip *chip; local 495 struct nandsim_chip *chip; local 521 struct nandsim_chip *chip; local 550 struct nandsim_chip *chip; local 581 struct nandsim_chip *chip; local [all...] |
H A D | nand.h | 334 int nand_erase_blocks(struct nand_chip *chip, off_t offset, size_t len); 335 int nand_prog_pages(struct nand_chip *chip, uint32_t offset, uint8_t *buf, 337 int nand_read_pages(struct nand_chip *chip, uint32_t offset, void *buf, 339 int nand_read_pages_raw(struct nand_chip *chip, uint32_t offset, void *buf, 341 int nand_prog_pages_raw(struct nand_chip *chip, uint32_t offset, void *buf, 343 int nand_read_oob(struct nand_chip *chip, uint32_t page, void *buf, 345 int nand_prog_oob(struct nand_chip *chip, uint32_t page, void *buf, 384 void nand_onfi_set_params(struct nand_chip *chip, struct onfi_chip_params *params); 385 void nand_set_params(struct nand_chip *chip, struct nand_params *params); 386 int nand_init_stat(struct nand_chip *chip); [all...] |
H A D | nandsim_log.c | 87 nandsim_log(struct nandsim_chip *chip, int level, const char *fmt, ...) argument 99 if (chip == NULL) 102 sc = chip->sc; 108 hdr_len = sprintf(hdr, "%08jd.%08li [chip:%d, ctrl:%d]: ", 110 chip->chip_num, chip->ctrl_num);
|
/freebsd-11-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-11-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:__anon8642 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-11-stable/sys/mips/atheros/ |
H A D | ar71xx_setup.c | 81 char *chip = "????"; local 99 chip = "7130"; 104 chip = "7141"; 109 chip = "7161"; 116 chip = "7240"; 123 chip = "7241"; 130 chip = "7242"; 143 chip = "9130"; 148 chip = "9132"; 155 chip [all...] |
/freebsd-11-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-11-stable/sys/dev/utopia/ |
H A D | utopia.h | 141 const struct utopia_chip *chip; /* chip operations */ member in struct:utopia 146 /* type and name of the chip */ 153 /* reset chip to known state */ 192 #define utopia_reset(S) ((S)->chip->reset((S))) 193 #define utopia_set_sdh(S, SDH) ((S)->chip->set_sdh((S), (SDH))) 194 #define utopia_set_unass(S, U) ((S)->chip->set_unass((S), (U))) 195 #define utopia_set_noscramb(S, N) ((S)->chip->set_noscramb((S), (N))) 196 #define utopia_update_carrier(S) ((S)->chip->update_carrier((S))) 197 #define utopia_update_stats(S) ((S)->chip [all...] |
/freebsd-11-stable/sys/dev/wbwd/ |
H A D | wbwd.c | 109 enum chips chip; member in struct:wb_softc 126 * register as these might be different by chip. 155 enum chips chip; member in struct:winbond_vendor_device_id 160 .chip = w83627hf, 165 .chip = w83627s, 170 .chip = w83697hf, 175 .chip = w83697ug, 180 .chip = w83637hf, 185 .chip = w83627thf, 190 .chip [all...] |
/freebsd-11-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-11-stable/sys/dev/ata/chipsets/ |
H A D | ata-acerlabs.c | 93 if (!(ctlr->chip = ata_match_chip(dev, ids))) 112 switch (ctlr->chip->cfg2) { 114 ctlr->channels = ctlr->chip->cfg1; 143 if (ctlr->chip->chiprev < 0xc7) 149 (ctlr->chip->chiprev >= 0xc7 ? 0x03 : 0x01), 1); 152 if (ctlr->chip->chiprev <= 0xc4) 178 if (ctlr->chip->cfg2 == ALI_SATA) { 202 if (ctlr->chip->cfg2 & ALI_NEW && ctlr->chip->chiprev < 0xc7) 205 if (ctlr->chip [all...] |
H A D | ata-siliconimage.c | 95 if (!(ctlr->chip = ata_match_chip(dev, ids))) 111 switch (ctlr->chip->cfg1) { 117 if (ctlr->chip->chipid != ATA_SII0680 || 122 if (ctlr->chip->cfg2 & SII_SETCLK) { 128 ctlr->chip->text); 132 if (ctlr->chip->cfg2 & SII_4CH) { 149 if (ctlr->chip->max_dma >= ATA_SA150) { 185 if (ctlr->chip->cfg2 & SII_INTR) 224 mode = min(mode, ctlr->chip->max_dma); 266 if (ctlr->chip [all...] |
H A D | ata-amd.c | 80 if (!(ctlr->chip = ata_match_chip(dev, ids))) 97 if (ctlr->chip->cfg1 & AMD_BUG) 121 mode = min(mode, ctlr->chip->max_dma); 122 if (ctlr->chip->cfg1 & AMD_CABLE) { 152 if (ctlr->chip->cfg1 & AMD_CABLE)
|
H A D | ata-jmicron.c | 87 ctlr->chip = idx; 108 ctlr->channels = ctlr->chip->cfg2; 115 if (ctlr->chip->cfg1) { 126 ctlr->channels = ctlr->chip->cfg2; 148 mode = min(mode, ctlr->chip->max_dma);
|
H A D | ata-highpoint.c | 104 ctlr->chip = idx; 117 if (ctlr->chip->cfg2 == HPT_OLD) { 130 if (ctlr->chip->cfg1 < HPT_372) 153 if (ctlr->chip->cfg1 == HPT_366) 184 mode = min(mode, ctlr->chip->max_dma); 193 timings33[ata_mode2idx(mode)][ctlr->chip->cfg1], 4); 205 if (ctlr->chip->cfg1 == HPT_374 && pci_get_function(parent) == 1) {
|
H A D | ata-marvell.c | 103 if (!(ctlr->chip = ata_match_chip(dev, ids))) 108 switch (ctlr->chip->cfg2) { 128 if (ctlr->chip->cfg1) { 162 mode = min(mode, ctlr->chip->max_dma);
|