Searched refs:chip (Results 1 - 25 of 79) sorted by relevance

1234

/freebsd-10.0-release/sys/dev/nand/
H A Dnandsim_chip.c50 #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 Dnand_geom.c55 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
441 destroy_geom_disk(struct nand_chip *chip) argument
[all...]
H A Dnandsim_ctrl.c111 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 Dnand_cdev.c76 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 0666, "%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 Dnand_bbt.c52 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 Dnand_generic.c207 struct nand_chip *chip; local
213 chip = device_get_softc(dev);
214 chip->dev = dev;
217 chip->id.man_id = ivar->man_id;
218 chip->id.dev_id = ivar->dev_id;
219 chip->num = ivar->cs;
225 chip->nand = device_get_softc(nfc);
233 if (onfi_read_parameter(chip, onfi_params)) {
239 nand_onfi_set_params(chip, onfi_params);
247 nand_set_params(chip, iva
280 struct nand_chip *chip; local
323 onfi_read_parameter(struct nand_chip *chip, struct onfi_params *params) argument
377 struct nand_chip *chip; local
412 struct nand_chip *chip; local
474 struct nand_chip *chip; local
515 struct nand_chip *chip; local
555 struct nand_chip *chip; local
613 struct nand_chip *chip; local
649 struct nand_chip *chip; local
683 struct nand_chip *chip; local
745 struct nand_chip *chip; local
785 struct nand_chip *chip; local
819 struct nand_chip *chip; local
863 struct nand_chip *chip; local
943 struct nand_chip *chip; local
984 struct nand_chip *chip = device_get_softc(dev); local
994 struct nand_chip *chip = device_get_softc(dev); local
[all...]
H A Dnandsim.c232 nandsim_create_chip(struct sim_chip *chip) argument
236 nand_debug(NDBG_SIM,"create chip num:%d at ctrl:%d", chip->num,
237 chip->ctrl_num);
239 if (chip->ctrl_num >= MAX_SIM_DEV ||
240 chip->num >= MAX_CTRL_CS) {
244 if (ctrls[chip->ctrl_num].chips[chip->num]) {
254 memcpy(sim_chip, chip, sizeof(*sim_chip));
255 ctrls[chip
262 nandsim_destroy_chip(struct sim_ctrl_chip *chip) argument
288 nandsim_chip_status(struct sim_chip *chip) argument
430 struct nandsim_chip *chip; local
465 struct nandsim_chip *chip; local
494 struct nandsim_chip *chip; local
520 struct nandsim_chip *chip; local
549 struct nandsim_chip *chip; local
580 struct nandsim_chip *chip; local
[all...]
H A Dnand.c118 nand_onfi_set_params(struct nand_chip *chip, struct onfi_params *params) argument
122 cg = &chip->chip_geom;
127 chip->t_bers = params->t_bers;
128 chip->t_prog = params->t_prog;
129 chip->t_r = params->t_r;
130 chip->t_ccs = params->t_ccs;
133 chip->flags |= NAND_16_BIT;
137 nand_set_params(struct nand_chip *chip, struct nand_params *params) argument
142 cg = &chip->chip_geom;
150 chip
160 nand_init_stat(struct nand_chip *chip) argument
189 nand_destroy_stat(struct nand_chip *chip) argument
282 nand_check_page_boundary(struct nand_chip *chip, uint32_t page) argument
297 nand_get_chip_param(struct nand_chip *chip, struct chip_param_io *param) argument
310 default_software_ecc_positions(struct nand_chip *chip) argument
467 nand_read_pages(struct nand_chip *chip, uint32_t offset, void *buf, uint32_t len) argument
564 nand_read_pages_raw(struct nand_chip *chip, uint32_t offset, void *buf, uint32_t len) argument
621 nand_prog_pages(struct nand_chip *chip, uint32_t offset, uint8_t *buf, uint32_t len) argument
703 nand_prog_pages_raw(struct nand_chip *chip, uint32_t offset, void *buf, uint32_t len) argument
756 nand_read_oob(struct nand_chip *chip, uint32_t page, void *buf, uint32_t len) argument
775 nand_prog_oob(struct nand_chip *chip, uint32_t page, void *buf, uint32_t len) argument
793 nand_erase_blocks(struct nand_chip *chip, off_t offset, size_t len) argument
[all...]
H A Dnand.h306 int nand_erase_blocks(struct nand_chip *chip, off_t offset, size_t len);
307 int nand_prog_pages(struct nand_chip *chip, uint32_t offset, uint8_t *buf,
309 int nand_read_pages(struct nand_chip *chip, uint32_t offset, void *buf,
311 int nand_read_pages_raw(struct nand_chip *chip, uint32_t offset, void *buf,
313 int nand_prog_pages_raw(struct nand_chip *chip, uint32_t offset, void *buf,
315 int nand_read_oob(struct nand_chip *chip, uint32_t page, void *buf,
317 int nand_prog_oob(struct nand_chip *chip, uint32_t page, void *buf,
356 void nand_onfi_set_params(struct nand_chip *chip, struct onfi_params *params);
357 void nand_set_params(struct nand_chip *chip, struct nand_params *params);
358 int nand_init_stat(struct nand_chip *chip);
[all...]
H A Dnandsim_log.c87 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-10.0-release/sys/contrib/octeon-sdk/
H A Dcvmx-nand.c103 ** 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 Dcvmx-nand.h62 * 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:__anon6989
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-10.0-release/sys/mips/atheros/
H A Dar71xx_setup.c77 char *chip = "????"; local
95 chip = "7130";
100 chip = "7141";
105 chip = "7161";
112 chip = "7240";
119 chip = "7241";
126 chip = "7242";
139 chip = "9130";
144 chip = "9132";
151 chip
[all...]
/freebsd-10.0-release/usr.sbin/nandsim/
H A Dnandsim.c81 #define MSG_STATUSACQCTRLCHIP "Could not acquire status for ctrl#%d chip#%d"
83 #define MSG_NOCHIP "There is no such chip configured (chip#%d "\
178 * ctrl == 0xff && chip == 0xff : '--all' flag specified
179 * ctrl != 0xff && chip != 0xff : both ctrl & chip were specified
180 * ctrl != 0xff && chip == 0xff : only ctrl was specified
196 /* If --all or -a is specified, ctl==chip==0xff */
250 opencdev(int *cdevd, int ctrl, int chip) argument
254 sprintf(fname, "/dev/nandsim%d.%d", ctrl, chip);
281 int chip = 0, ctl = 0, err = 0, fd, idx, idx2, start, stop; local
351 int chip = 0, ctl = 0, err = 0, fd, running, state; local
388 int chip = 0, ctl = 0, err = 0, fd, running; local
418 int chip, ctl, err = 0, fd = -1, i; local
520 int chip = 0, ctl = 0, err = 0, fd; local
567 int c, cdevd, chip = 0, ctl = 0, err = 0, fd, idx; local
662 int chip = 0, ctl = 0, err = 0, fd, i, start = 0, state, stop = 0; local
719 int chip = 0, ctl = 0, err = 0, fd, idx, start = 0, stop = 0; local
770 int cdevd, chip = 0, ctl = 0, err = 0; local
807 int chip = 0, ctl = 0, err = EX_OK, fd, dumpfd; local
935 int chip = 0, ctl = 0, err = 0, fd, dumpfd = -1; local
1073 int chip = 0, ctl = 0, err = 0, fd, idx, idx2, state; local
1198 printchip(struct sim_chip *chip, uint8_t verbose) argument
1300 struct sim_chip chip; local
[all...]
H A Dsample.conf53 # 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-10.0-release/sys/dev/utopia/
H A Dutopia.h141 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...]
H A Dutopia.c98 utp->chip->name, reg, nreg, err);
105 utp->chip->name, reg, nreg, err);
231 if (utp->chip->type != UTP_TYPE_UNKNOWN && utp->state & UTP_ST_ACTIVE) {
268 if (utp->chip->type != UTP_TYPE_UNKNOWN && utp->state & UTP_ST_ACTIVE) {
338 * Try to find out what chip we have
346 utp->chip = &utopia_chip_622;
357 utp->chip = &utopia_chip_idt77155;
359 utp->chip = &utopia_chip_lite;
363 utp->chip = &utopia_chip_ultra;
368 utp->chip
[all...]
/freebsd-10.0-release/sys/dev/ata/chipsets/
H A Data-acerlabs.c93 if (!(ctlr->chip = ata_match_chip(dev, ids)))
112 switch (ctlr->chip->cfg2) {
114 ctlr->channels = ctlr->chip->cfg1;
121 if ((ctlr->chip->chipid == ATA_ALI_5288) &&
148 if (ctlr->chip->chiprev < 0xc7)
154 (ctlr->chip->chiprev >= 0xc7 ? 0x03 : 0x01), 1);
157 if (ctlr->chip->chiprev <= 0xc4)
183 if (ctlr->chip->cfg2 == ALI_SATA) {
207 if (ctlr->chip->cfg2 & ALI_NEW && ctlr->chip
[all...]
H A Data-amd.c80 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 Data-jmicron.c86 ctlr->chip = idx;
111 ctlr->channels = ctlr->chip->cfg2;
118 if (ctlr->chip->cfg1) {
129 ctlr->channels = ctlr->chip->cfg2;
150 mode = min(mode, ctlr->chip->max_dma);
H A Data-highpoint.c104 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 Data-nvidia.c180 if (!(ctlr->chip = ata_match_chip(dev, ids)))
184 if ((ctlr->chip->cfg1 & NVAHCI) &&
185 ((force_ahci == 1 && (ctlr->chip->cfg1 & NVNOFORCE) == 0) ||
201 if (ctlr->chip->cfg1 & NVAHCI) {
204 } else if (ctlr->chip->max_dma >= ATA_SA150) {
212 int offset = ctlr->chip->cfg1 & NV4 ? 0x0440 : 0x0010;
222 if (ctlr->chip->cfg1 & NVQ) {
291 int offset = ctlr->chip->cfg1 & NV4 ? 0x0440 : 0x0010;
292 int shift = ch->unit << (ctlr->chip->cfg1 & NVQ ? 4 : 2);
296 if (ctlr->chip
[all...]
H A Data-via.c134 if (!(ctlr->chip = ata_find_chip(dev, ids, -99)))
138 if (!(ctlr->chip = ata_match_chip(dev, new_ids)))
156 if (ctlr->chip->cfg2 & VIAAHCI) {
161 if (ctlr->chip->cfg2 & VIASATA) {
169 if (ctlr->chip->max_dma >= ATA_SA150) {
178 if (ctlr->chip->cfg2 & VIABAR) {
188 if (ctlr->chip->cfg2 & VIACLK)
192 if (ctlr->chip->cfg2 & VIABUG)
221 if (ctlr->chip->cfg2 & VIABAR) {
256 ch->r_io[ATA_SSTATUS].offset = (ch->unit << ctlr->chip
[all...]
/freebsd-10.0-release/sys/dev/drm/
H A Dsavage_drv.h96 /* 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-10.0-release/cddl/lib/libdtrace/
H A Dsched.d38 chipid_t cpu_chip; /* chip identifier */
79 inline chipid_t chip = curcpu->cpu_chip;
80 #pragma D attributes Stable/Stable/Common chip
81 #pragma D binding "1.0" chip

Completed in 244 milliseconds

1234