| /freebsd-12.1/sys/dev/nand/ |
| H A D | nandsim_chip.c | 224 if (chip && chip->blk_state) in nandsim_blk_state_destroy() 292 chip->chip_num, chip); in nandsim_loop() 324 chip->ev_handler(chip, ev->type, ev->data); in nandsim_loop() 347 ev->chip = chip; in create_event() 364 struct nandsim_chip *chip = ev->chip; in send_event() local 368 chip->chip_num, chip, ev->type); in send_event() 424 chip->chip_num, chip); in nandsim_start_handler() 453 (chip->cg.oob_size * chip->cg.pgs_per_blk); in nandchip_chip_space() 523 if (!chip || !chip->blk_state) in nandchip_is_block_valid() 683 size = chip->cg.page_size + chip->cg.oob_size; in read_evh() [all …]
|
| H A D | nand_geom.c | 60 nand_debug(NDBG_GEOM, "Read from chip %d [%p] at %d", chip->num, chip, in nand_read() 70 nand_debug(NDBG_GEOM, "Write to chip %d [%p] at %d", chip->num, chip, in nand_write() 80 chip, offset); in nand_read_raw() 90 chip, offset); in nand_write_raw() 108 chip->num, chip); in nand_strategy() 113 taskqueue_enqueue(chip->tq, &chip->iotask); in nand_strategy() 130 chip->num, chip); in nand_strategy_raw() 135 taskqueue_enqueue(chip->tq, &chip->iotask); in nand_strategy_raw() 398 "nand: Man:0x%02x Dev:0x%02x", chip->id.man_id, chip->id.dev_id); in create_geom_disk() 425 chip->ndisk = ndisk; in create_geom_disk() [all …]
|
| H A D | nandsim_ctrl.c | 127 if (chip && chip->device_id != 0) { in nandsim_attach() 261 if (chip && !(chip->flags & NANDSIM_CHIP_FROZEN)) { in nandsim_read_byte() 266 } else if (chip->data.index < chip->data.size) { in nandsim_read_byte() 267 ret = chip->data.data_ptr[chip->data.index++]; in nandsim_read_byte() 288 if (chip && !(chip->flags & NANDSIM_CHIP_FROZEN)) { in nandsim_read_word() 289 if (chip->data.index < chip->data.size - 1) { in nandsim_read_word() 312 if (chip && !(chip->flags & NANDSIM_CHIP_FROZEN) && in nandsim_write_byte() 313 (chip->data.index < chip->data.size)) { in nandsim_write_byte() 315 chip->data.data_ptr[chip->data.index] &= byte; in nandsim_write_byte() 332 if (chip && !(chip->flags & NANDSIM_CHIP_FROZEN)) { in nandsim_write_word() [all …]
|
| H A D | nand_generic.c | 217 chip->dev = dev; in generic_nand_attach() 222 chip->num = ivar->cs; in generic_nand_attach() 449 DELAY(chip->t_r); in generic_read_page() 487 DELAY(chip->t_r); in generic_read_oob() 675 if (block >= (chip->chip_geom.blks_per_lun * chip->chip_geom.luns)) in generic_erase_block() 711 if (block >= (chip->chip_geom.blks_per_lun * chip->chip_geom.luns)) in generic_erase_block_intlv() 818 DELAY(chip->t_r); in small_read_page() 852 DELAY(chip->t_r); in small_read_oob() 1125 DELAY(chip->t_r); 1303 DELAY(chip->t_r); [all …]
|
| H A D | nand_cdev.c | 106 if (chip->cdev == NULL) in nand_make_dev() 114 chip->cdev->si_drv1 = chip; in nand_make_dev() 123 if (chip->cdev) in nand_destroy_dev() 143 chip, offset); in nand_read() 147 NANDBUS_SELECT_CS(device_get_parent(chip->dev), chip->num); in nand_read() 149 cg = &chip->chip_geom; in nand_read() 197 chip, offset); in nand_write() 201 NANDBUS_SELECT_CS(device_get_parent(chip->dev), chip->num); in nand_write() 203 cg = &chip->chip_geom; in nand_write() 238 chip = dev->si_drv1; in nand_strategy() [all …]
|
| H A D | nand.c | 115 cg = &chip->chip_geom; in nand_onfi_set_params() 135 cg = &chip->chip_geom; in nand_set_params() 146 chip->t_ccs = 0; in nand_set_params() 160 cg = &chip->chip_geom; in nand_init_stat() 486 NANDBUS_SELECT_CS(device_get_parent(chip->dev), chip->num); in nand_read_pages() 577 NANDBUS_SELECT_CS(device_get_parent(chip->dev), chip->num); in nand_read_pages_raw() 640 NANDBUS_SELECT_CS(device_get_parent(chip->dev), chip->num); in nand_prog_pages() 716 NANDBUS_SELECT_CS(device_get_parent(chip->dev), chip->num); in nand_prog_pages_raw() 756 NANDBUS_SELECT_CS(device_get_parent(chip->dev), chip->num); in nand_read_oob() 775 NANDBUS_SELECT_CS(device_get_parent(chip->dev), chip->num); in nand_prog_oob() [all …]
|
| H A D | nand_bbt.c | 54 struct nand_chip *chip; member 80 cg = &chip->chip_geom; in nand_init_bbt() 84 device_printf(chip->dev, in nand_init_bbt() 89 bbt->chip = chip; in nand_init_bbt() 113 chip->bbt = bbt; in nand_init_bbt() 129 if (chip->bbt) { in nand_destroy_bbt() 130 nand_bbt_save(chip->bbt); in nand_destroy_bbt() 133 free(chip->bbt, M_NAND); in nand_destroy_bbt() 134 chip->bbt = NULL; in nand_destroy_bbt() 142 nand_bbt_save(chip->bbt); in nand_update_bbt() [all …]
|
| H A D | nandsim.c | 240 chip->ctrl_num); in nandsim_create_chip() 247 if (ctrls[chip->ctrl_num].chips[chip->num]) { in nandsim_create_chip() 258 ctrls[chip->ctrl_num].chips[chip->num] = sim_chip; in nandsim_create_chip() 270 chip->ctrl_num); in nandsim_destroy_chip() 296 chip->ctrl_num); in nandsim_chip_status() 304 chip->created = 0; in nandsim_chip_status() 306 memcpy(chip, ctrl_conf->chips[chip->num], sizeof(*chip)); in nandsim_chip_status() 449 param = &chip->params; in nandsim_inject_error() 479 params = &chip->params; in nandsim_set_block_state() 535 (chip->cg.oob_size * chip->cg.pgs_per_blk); in nandsim_dump() [all …]
|
| H A D | nand.h | 388 int nand_init_stat(struct nand_chip *chip); 389 void nand_destroy_stat(struct nand_chip *chip); 392 int nand_init_bbt(struct nand_chip *chip); 393 void nand_destroy_bbt(struct nand_chip *chip); 394 int nand_update_bbt(struct nand_chip *chip); 399 int nand_make_dev(struct nand_chip* chip); 400 void nand_destroy_dev(struct nand_chip *chip); 402 int create_geom_disk(struct nand_chip* chip); 403 int create_geom_raw_disk(struct nand_chip *chip); 404 void destroy_geom_disk(struct nand_chip *chip); [all …]
|
| /freebsd-12.1/sys/contrib/octeon-sdk/ |
| H A D | cvmx-nand.c | 551 for (chip=start_chip; chip<stop_chip; chip++) in cvmx_nand_initialize() 563 for (chip=start_chip; chip<stop_chip; chip++) in cvmx_nand_initialize() 816 for (chip=0; chip<8; chip++) in cvmx_nand_get_active_chips() 846 if ((chip < 0) || (chip > 7)) in cvmx_nand_set_timing() 1040 cmd.chip_en.chip = chip; in __cvmx_nand_build_pre_cmd() 1245 if ((chip < 0) || (chip > 7)) in __cvmx_nand_low_level_read() 1336 if ((chip < 0) || (chip > 7)) in cvmx_nand_page_read() 1383 if ((chip < 0) || (chip > 7)) in cvmx_nand_page_write() 1466 if ((chip < 0) || (chip > 7)) in cvmx_nand_block_erase() 1536 if ((chip < 0) || (chip > 7)) in cvmx_nand_read_id() [all …]
|
| H A D | cvmx-nand.h | 192 uint64_t chip : 3; member 605 extern cvmx_nand_status_t cvmx_nand_page_write(int chip, uint64_t nand_address, uint64_t buffer_add… 616 extern cvmx_nand_status_t cvmx_nand_block_erase(int chip, uint64_t nand_address); 631 extern int cvmx_nand_read_id(int chip, uint64_t nand_address, uint64_t buffer_address, int buffer_l… 644 extern int cvmx_nand_read_param_page(int chip, uint64_t buffer_address, int buffer_length); 653 extern int cvmx_nand_get_status(int chip); 663 extern int cvmx_nand_get_page_size(int chip); 672 extern int cvmx_nand_get_oob_size(int chip); 681 extern int cvmx_nand_get_pages_per_block(int chip); 690 extern int cvmx_nand_get_blocks(int chip); [all …]
|
| /freebsd-12.1/usr.sbin/nandsim/ |
| H A D | nandsim.c | 681 stop = chip; in cmdfreeze() 1214 "chip_width=%db\n", chip->num, chip->ctrl_num, in printchip() 1215 chip->device_id, chip->manufact_id,chip->device_model, in printchip() 1216 chip->manufacturer, chip->col_addr_cycles, in printchip() 1217 chip->row_addr_cycles, chip->page_size, in printchip() 1218 chip->oob_size, chip->pgs_per_blk, chip->blks_per_lun, in printchip() 1219 chip->luns,chip->prog_time, chip->erase_time, in printchip() 1220 chip->read_time, chip->error_ratio, chip->wear_level, in printchip() 1221 (chip->is_wp == 0) ? 'N':'Y', chip->width); in printchip() 1226 chip->num, chip->device_model, chip->manufacturer, in printchip() [all …]
|
| /freebsd-12.1/sys/mips/atheros/ |
| H A D | ar71xx_setup.c | 101 chip = "7130"; in ar71xx_detect_sys_type() 106 chip = "7141"; in ar71xx_detect_sys_type() 118 chip = "7240"; in ar71xx_detect_sys_type() 125 chip = "7241"; in ar71xx_detect_sys_type() 132 chip = "7242"; in ar71xx_detect_sys_type() 157 chip = "9330"; in ar71xx_detect_sys_type() 164 chip = "9331"; in ar71xx_detect_sys_type() 172 chip = "9341"; in ar71xx_detect_sys_type() 180 chip = "9342"; in ar71xx_detect_sys_type() 188 chip = "9344"; in ar71xx_detect_sys_type() [all …]
|
| /freebsd-12.1/sys/mips/atheros/ar531x/ |
| H A D | ar5315_setup.c | 78 char *chip = "????"; in ar5315_detect_sys_type() local 115 chip = "2315"; in ar5315_detect_sys_type() 119 chip = "2316"; in ar5315_detect_sys_type() 123 chip = "2317"; in ar5315_detect_sys_type() 127 chip = "2318"; in ar5315_detect_sys_type() 140 chip = "5311"; in ar5315_detect_sys_type() 144 chip = "5312"; in ar5315_detect_sys_type() 148 chip = "2313"; in ar5315_detect_sys_type() 153 sprintf(ar5315_sys_type, "Atheros AR%s rev %u", chip, rev); in ar5315_detect_sys_type()
|
| /freebsd-12.1/sys/dev/wbwd/ |
| H A D | wbwd.c | 111 enum chips chip; member 157 enum chips chip; member 167 .chip = w83627s, 227 .chip = nct6775, 232 .chip = nct6776, 237 .chip = nct6102, 242 .chip = nct6779, 247 .chip = nct6791, 252 .chip = nct6792, 257 .chip = nct6793, [all …]
|
| /freebsd-12.1/sys/dev/ata/chipsets/ |
| H A D | ata-acerlabs.c | 114 switch (ctlr->chip->cfg2) { in ata_ali_chipinit() 116 ctlr->channels = ctlr->chip->cfg1; in ata_ali_chipinit() 145 if (ctlr->chip->chiprev < 0xc7) in ata_ali_chipinit() 154 if (ctlr->chip->chiprev <= 0xc4) in ata_ali_chipinit() 180 if (ctlr->chip->cfg2 == ALI_SATA) { in ata_ali_chipdeinit() 204 if (ctlr->chip->cfg2 & ALI_NEW && ctlr->chip->chiprev < 0xc7) in ata_ali_ch_attach() 207 if (ctlr->chip->chiprev <= 0xc4) { in ata_ali_ch_attach() 212 if (ctlr->chip->cfg2 & ALI_NEW) in ata_ali_ch_attach() 275 if (ctlr->chip->chiprev == 0xc3 || ctlr->chip->chiprev == 0xc2) { in ata_ali_reset() 310 if (ctlr->chip->cfg2 & ALI_NEW && ctlr->chip->chiprev < 0xc7) { in ata_ali_setmode() [all …]
|
| H A D | ata-siliconimage.c | 113 switch (ctlr->chip->cfg1) { in ata_sii_chipinit() 124 if (ctlr->chip->cfg2 & SII_SETCLK) { in ata_sii_chipinit() 130 ctlr->chip->text); in ata_sii_chipinit() 134 if (ctlr->chip->cfg2 & SII_4CH) { in ata_sii_chipinit() 151 if (ctlr->chip->max_dma >= ATA_SA150) { in ata_sii_chipinit() 187 if (ctlr->chip->cfg2 & SII_INTR) in ata_cmd_ch_attach() 226 mode = min(mode, ctlr->chip->max_dma); in ata_cmd_setmode() 283 if (ctlr->chip->cfg2 & SII_BUG) { in ata_sii_ch_attach() 291 if (ctlr->chip->cfg2 & SII_SETCLK) in ata_sii_ch_attach() 365 mode = min(mode, ctlr->chip->max_dma); in ata_sii_setmode() [all …]
|
| H A D | ata-via.c | 134 if (!(ctlr->chip = ata_find_chip(dev, ids, -99))) in ata_via_probe() 138 if (!(ctlr->chip = ata_match_chip(dev, new_ids))) in ata_via_probe() 156 if (ctlr->chip->cfg2 & VIASATA) { in ata_via_chipinit() 164 if (ctlr->chip->max_dma >= ATA_SA150) { in ata_via_chipinit() 173 if (ctlr->chip->cfg2 & VIABAR) { in ata_via_chipinit() 183 if (ctlr->chip->cfg2 & VIACLK) in ata_via_chipinit() 187 if (ctlr->chip->cfg2 & VIABUG) in ata_via_chipinit() 216 if (ctlr->chip->cfg2 & VIABAR) { in ata_via_ch_attach() 273 if (ctlr->chip->cfg2 & VIABAR) { in ata_via_ch_detach() 322 if ((ctlr->chip->cfg2 & VIABAR) && (ch->unit > 1)) { in ata_via_new_setmode() [all …]
|
| H A D | ata-promise.c | 212 ctlr->chip = idx; in ata_promise_probe() 226 switch (ctlr->chip->cfg1) { in ata_promise_chipinit() 254 if (ctlr->chip->cfg2 == PR_SX4X && in ata_promise_chipinit() 267 if (ctlr->chip->cfg2 == PR_SX4X) { in ata_promise_chipinit() 316 switch (ctlr->chip->cfg2) { in ata_promise_chipinit() 348 if ((ctlr->chip->cfg2 == PR_SATA2) || (ctlr->chip->cfg2 == PR_CMBO2)) in ata_promise_chipinit() 377 if (ctlr->chip->cfg1 == PR_NEW) { in ata_promise_ch_attach() 482 switch (ctlr->chip->cfg1) { in ata_promise_setmode() 513 if (ctlr->chip->cfg1 < PR_TX) in ata_promise_setmode() 630 switch (ctlr->chip->cfg2) { in ata_promise_mio_status() [all …]
|
| H A D | ata-highpoint.c | 106 ctlr->chip = idx; in ata_highpoint_probe() 119 if (ctlr->chip->cfg2 == HPT_OLD) { in ata_highpoint_chipinit() 132 if (ctlr->chip->cfg1 < HPT_372) in ata_highpoint_chipinit() 155 if (ctlr->chip->cfg1 == HPT_366) in ata_highpoint_ch_attach() 186 mode = min(mode, ctlr->chip->max_dma); in ata_highpoint_setmode() 195 timings33[ata_mode2idx(mode)][ctlr->chip->cfg1], 4); in ata_highpoint_setmode() 207 if (ctlr->chip->cfg1 == HPT_374 && pci_get_function(parent) == 1) { in ata_highpoint_check_80pin()
|
| H A D | ata-nvidia.c | 178 if (!(ctlr->chip = ata_match_chip(dev, ids))) in ata_nvidia_probe() 181 if ((ctlr->chip->cfg1 & NVAHCI) && in ata_nvidia_probe() 198 if (ctlr->chip->cfg1 & NVAHCI) { in ata_nvidia_chipinit() 201 } else if (ctlr->chip->max_dma >= ATA_SA150) { in ata_nvidia_chipinit() 209 int offset = ctlr->chip->cfg1 & NV4 ? 0x0440 : 0x0010; in ata_nvidia_chipinit() 219 if (ctlr->chip->cfg1 & NVQ) { in ata_nvidia_chipinit() 288 int offset = ctlr->chip->cfg1 & NV4 ? 0x0440 : 0x0010; in ata_nvidia_status() 289 int shift = ch->unit << (ctlr->chip->cfg1 & NVQ ? 4 : 2); in ata_nvidia_status() 293 if (ctlr->chip->cfg1 & NVQ) in ata_nvidia_status() 303 if (ctlr->chip->cfg1 & NVQ) in ata_nvidia_status() [all …]
|
| H A D | ata-amd.c | 82 if (!(ctlr->chip = ata_match_chip(dev, ids))) in ata_amd_probe() 99 if (ctlr->chip->cfg1 & AMD_BUG) in ata_amd_chipinit() 123 mode = min(mode, ctlr->chip->max_dma); in ata_amd_setmode() 124 if (ctlr->chip->cfg1 & AMD_CABLE) { in ata_amd_setmode() 154 if (ctlr->chip->cfg1 & AMD_CABLE) in ata_amd_ch_attach()
|
| /freebsd-12.1/sys/dev/drm/ |
| H A D | savage_drv.h | 113 #define S3_SAVAGE3D_SERIES(chip) ((chip>=S3_SAVAGE3D) && (chip<=S3_SAVAGE_MX)) argument 115 #define S3_SAVAGE4_SERIES(chip) ((chip==S3_SAVAGE4) \ argument 116 || (chip==S3_PROSAVAGE) \ 117 || (chip==S3_TWISTER) \ 118 || (chip==S3_PROSAVAGEDDR)) 120 #define S3_SAVAGE_MOBILE_SERIES(chip) ((chip==S3_SAVAGE_MX) || (chip==S3_SUPERSAVAGE)) argument 122 #define S3_SAVAGE_SERIES(chip) ((chip>=S3_SAVAGE3D) && (chip<=S3_SAVAGE2000)) argument 124 #define S3_MOBILE_TWISTER_SERIES(chip) ((chip==S3_TWISTER) \ argument 125 ||(chip==S3_PROSAVAGEDDR))
|
| /freebsd-12.1/contrib/ofed/libcxgb4/ |
| H A D | t4_chip_type.h | 70 static inline int is_t4(enum chip_type chip) in is_t4() argument 72 return (CHELSIO_CHIP_VERSION(chip) == CHELSIO_T4); in is_t4() 75 static inline int is_t5(enum chip_type chip) in is_t5() argument 77 return (CHELSIO_CHIP_VERSION(chip) == CHELSIO_T5); in is_t5() 80 static inline int is_t6(enum chip_type chip) in is_t6() argument 82 return (CHELSIO_CHIP_VERSION(chip) == CHELSIO_T6); in is_t6()
|
| /freebsd-12.1/sys/mips/ingenic/ |
| H A D | jz4780_pinctrl.c | 66 #define CHIP_REG_OFFSET(base, chip) ((base) + (chip) * CHIP_REG_STRIDE) argument 191 device_t chip; in jz4780_pinctrl_configure_pins() local 213 chip = jz4780_pinctrl_chip_lookup(sc, pconf[0]); in jz4780_pinctrl_configure_pins() 214 if (chip == NULL) { in jz4780_pinctrl_configure_pins() 223 pconf[1], ofw_bus_get_name(chip)); in jz4780_pinctrl_configure_pins() 227 result = JZ4780_GPIO_CONFIGURE_PIN(chip, pconf[1], pconf[2], in jz4780_pinctrl_configure_pins() 232 ofw_bus_get_name(chip)); in jz4780_pinctrl_configure_pins()
|