/external/u-boot/arch/arm/mach-keystone/ |
D | ddr3_spd.c | 159 static int ddrtimingcalculation(ddr3_spd_eeprom_t *buf, struct ddr3_sodimm *spd, in ddrtimingcalculation() argument 168 spd->sdram_type = 0x03; in ddrtimingcalculation() 169 spd->ibank = 0x03; in ddrtimingcalculation() 173 spd->t_ck = buf->tck_min * mtb; in ddrtimingcalculation() 175 spd_cb->ddrspdclock = 2000000 / spd->t_ck; in ddrtimingcalculation() 178 spd->rank = ((buf->organization & 0x38) >> 3) + 1; in ddrtimingcalculation() 179 if (spd->rank > 2) in ddrtimingcalculation() 182 spd->pagesize = (buf->addressing & 0x07) + 1; in ddrtimingcalculation() 183 if (spd->pagesize > 3) in ddrtimingcalculation() 186 spd->buswidth = 8 << (buf->bus_width & 0x7); in ddrtimingcalculation() [all …]
|
/external/u-boot/drivers/ddr/fsl/ |
D | ddr4_dimm_params.c | 86 compute_ranksize(const struct ddr4_spd_eeprom_s *spd) in compute_ranksize() argument 96 if ((spd->density_banks & 0xf) <= 7) in compute_ranksize() 97 nbit_sdram_cap_bsize = (spd->density_banks & 0xf) + 28; in compute_ranksize() 98 if ((spd->bus_width & 0x7) < 4) in compute_ranksize() 99 nbit_primary_bus_width = (spd->bus_width & 0x7) + 3; in compute_ranksize() 100 if ((spd->organization & 0x7) < 4) in compute_ranksize() 101 nbit_sdram_width = (spd->organization & 0x7) + 2; in compute_ranksize() 102 package_3ds = (spd->package_type & 0x3) == 0x2; in compute_ranksize() 103 if ((spd->package_type & 0x80) && !package_3ds) { /* other than 3DS */ in compute_ranksize() 108 die_count = (spd->package_type >> 4) & 0x7; in compute_ranksize() [all …]
|
D | ddr3_dimm_params.c | 53 compute_ranksize(const ddr3_spd_eeprom_t *spd) in compute_ranksize() argument 61 if ((spd->density_banks & 0xf) < 7) in compute_ranksize() 62 nbit_sdram_cap_bsize = (spd->density_banks & 0xf) + 28; in compute_ranksize() 63 if ((spd->bus_width & 0x7) < 4) in compute_ranksize() 64 nbit_primary_bus_width = (spd->bus_width & 0x7) + 3; in compute_ranksize() 65 if ((spd->organization & 0x7) < 4) in compute_ranksize() 66 nbit_sdram_width = (spd->organization & 0x7) + 2; in compute_ranksize() 84 const ddr3_spd_eeprom_t *spd, in ddr_compute_dimm_parameters() argument 93 if (spd->mem_type) { in ddr_compute_dimm_parameters() 94 if (spd->mem_type != SPD_MEMTYPE_DDR3) { in ddr_compute_dimm_parameters() [all …]
|
D | interactive.c | 892 void ddr1_spd_dump(const ddr1_spd_eeprom_t *spd) in ddr1_spd_dump() argument 896 printf("%-3d : %02x %s\n", 0, spd->info_size, in ddr1_spd_dump() 898 printf("%-3d : %02x %s\n", 1, spd->chip_size, in ddr1_spd_dump() 900 printf("%-3d : %02x %s\n", 2, spd->mem_type, in ddr1_spd_dump() 902 printf("%-3d : %02x %s\n", 3, spd->nrow_addr, in ddr1_spd_dump() 904 printf("%-3d : %02x %s\n", 4, spd->ncol_addr, in ddr1_spd_dump() 906 printf("%-3d : %02x %s\n", 5, spd->nrows, in ddr1_spd_dump() 908 printf("%-3d : %02x %s\n", 6, spd->dataw_lsb, in ddr1_spd_dump() 910 printf("%-3d : %02x %s\n", 7, spd->dataw_msb, in ddr1_spd_dump() 912 printf("%-3d : %02x %s\n", 8, spd->voltage, in ddr1_spd_dump() [all …]
|
D | ddr2_dimm_params.c | 204 const ddr2_spd_eeprom_t *spd, in ddr_compute_dimm_parameters() argument 210 if (spd->mem_type) { in ddr_compute_dimm_parameters() 211 if (spd->mem_type != SPD_MEMTYPE_DDR2) { in ddr_compute_dimm_parameters() 220 retval = ddr2_spd_check(spd); in ddr_compute_dimm_parameters() 232 memcpy(pdimm->mpart, spd->mpart, sizeof(pdimm->mpart) - 1); in ddr_compute_dimm_parameters() 235 pdimm->n_ranks = (spd->mod_ranks & 0x7) + 1; in ddr_compute_dimm_parameters() 236 pdimm->rank_density = compute_ranksize(spd->mem_type, spd->rank_dens); in ddr_compute_dimm_parameters() 238 pdimm->data_width = spd->dataw; in ddr_compute_dimm_parameters() 239 pdimm->primary_sdram_width = spd->primw; in ddr_compute_dimm_parameters() 240 pdimm->ec_sdram_width = spd->ecw; in ddr_compute_dimm_parameters() [all …]
|
D | ddr1_dimm_params.c | 221 const ddr1_spd_eeprom_t *spd, in ddr_compute_dimm_parameters() argument 227 if (spd->mem_type) { in ddr_compute_dimm_parameters() 228 if (spd->mem_type != SPD_MEMTYPE_DDR) { in ddr_compute_dimm_parameters() 237 retval = ddr1_spd_check(spd); in ddr_compute_dimm_parameters() 249 memcpy(pdimm->mpart, spd->mpart, sizeof(pdimm->mpart) - 1); in ddr_compute_dimm_parameters() 252 pdimm->n_ranks = spd->nrows; in ddr_compute_dimm_parameters() 253 pdimm->rank_density = compute_ranksize(spd->mem_type, spd->bank_dens); in ddr_compute_dimm_parameters() 255 pdimm->data_width = spd->dataw_lsb; in ddr_compute_dimm_parameters() 256 pdimm->primary_sdram_width = spd->primw; in ddr_compute_dimm_parameters() 257 pdimm->ec_sdram_width = spd->ecw; in ddr_compute_dimm_parameters() [all …]
|
D | main.c | 141 static void __get_spd(generic_spd_eeprom_t *spd, u8 i2c_address) in __get_spd() argument 171 ret = ddr_i2c_read(dev, 0, 1, (uchar *)spd, 256); in __get_spd() 174 ret = ddr_i2c_read(dev, 0, 1, (uchar *)((ulong)spd + 256), in __get_spd() 181 ret = ddr_i2c_read(dev, 0, 1, (uchar *)spd, in __get_spd() 199 memset(spd, 0, sizeof(generic_spd_eeprom_t)); in __get_spd() 204 void get_spd(generic_spd_eeprom_t *spd, u8 i2c_address); 525 generic_spd_eeprom_t *spd = in fsl_ddr_compute() local 530 i, spd, pdimm, j); in fsl_ddr_compute()
|
/external/u-boot/arch/powerpc/cpu/mpc83xx/ |
D | spd_sdram.c | 103 static void spd_debug(spd_eeprom_t *spd) in spd_debug() argument 105 printf ("\nDIMM type: %-18.18s\n", spd->mpart); in spd_debug() 106 printf ("SPD size: %d\n", spd->info_size); in spd_debug() 107 printf ("EEPROM size: %d\n", 1 << spd->chip_size); in spd_debug() 108 printf ("Memory type: %d\n", spd->mem_type); in spd_debug() 109 printf ("Row addr: %d\n", spd->nrow_addr); in spd_debug() 110 printf ("Column addr: %d\n", spd->ncol_addr); in spd_debug() 111 printf ("# of rows: %d\n", spd->nrows); in spd_debug() 112 printf ("Row density: %d\n", spd->row_dens); in spd_debug() 113 printf ("# of banks: %d\n", spd->nbanks); in spd_debug() [all …]
|
/external/u-boot/common/ |
D | ddr_spd.c | 49 ddr1_spd_check(const ddr1_spd_eeprom_t *spd) in ddr1_spd_check() argument 51 const u8 *p = (const u8 *)spd; in ddr1_spd_check() 53 return spd_check(p, spd->spd_rev, spd->cksum); in ddr1_spd_check() 57 ddr2_spd_check(const ddr2_spd_eeprom_t *spd) in ddr2_spd_check() argument 59 const u8 *p = (const u8 *)spd; in ddr2_spd_check() 61 return spd_check(p, spd->spd_rev, spd->cksum); in ddr2_spd_check() 86 ddr3_spd_check(const ddr3_spd_eeprom_t *spd) in ddr3_spd_check() argument 88 char *p = (char *)spd; in ddr3_spd_check() 100 len = !(spd->info_size_crc & 0x80) ? 126 : 117; in ddr3_spd_check() 106 if (spd->crc[0] == crc_lsb && spd->crc[1] == crc_msb) { in ddr3_spd_check() [all …]
|
/external/skia/modules/sksg/samples/ |
D | SampleSVGPong.cpp | 58 std::tuple<SkScalar, SkScalar> find_yintercept(const SkPoint& pos, const SkVector& spd, in find_yintercept() argument 60 const SkScalar edge = spd.fX > 0 ? box.fRight : box.fLeft; in find_yintercept() 61 const SkScalar t = (edge - pos.fX) / spd.fX; in find_yintercept() 63 const SkScalar dY = t * spd.fY; in find_yintercept() 231 spd = s; in initialize() 236 pos += spd * dt; in posTick() 254 SkVector spd; member 261 fBall.spd.fY = -fBall.spd.fY; in enforceConstraints() 267 fBall.spd.fX = this->fuzzBallSpeed(-fBall.spd.fX); in enforceConstraints() 268 fBall.spd.fY = this->fuzzBallSpeed(fBall.spd.fY); in enforceConstraints() [all …]
|
/external/skqp/modules/sksg/samples/ |
D | SampleSVGPong.cpp | 57 std::tuple<SkScalar, SkScalar> find_yintercept(const SkPoint& pos, const SkVector& spd, in find_yintercept() argument 59 const SkScalar edge = spd.fX > 0 ? box.fRight : box.fLeft; in find_yintercept() 60 const SkScalar t = (edge - pos.fX) / spd.fX; in find_yintercept() 62 const SkScalar dY = t * spd.fY; in find_yintercept() 221 spd = s; in initialize() 226 pos += spd * dt; in posTick() 244 SkVector spd; member 251 fBall.spd.fY = -fBall.spd.fY; in enforceConstraints() 257 fBall.spd.fX = this->fuzzBallSpeed(-fBall.spd.fX); in enforceConstraints() 258 fBall.spd.fY = this->fuzzBallSpeed(fBall.spd.fY); in enforceConstraints() [all …]
|
/external/arm-trusted-firmware/services/spd/opteed/ |
D | opteed.mk | 7 OPTEED_DIR := services/spd/opteed 10 SPD_SOURCES := services/spd/opteed/opteed_common.c \ 11 services/spd/opteed/opteed_helpers.S \ 12 services/spd/opteed/opteed_main.c \ 13 services/spd/opteed/opteed_pm.c
|
/external/u-boot/board/xes/xpedite520x/ |
D | ddr.c | 12 void get_spd(ddr2_spd_eeprom_t *spd, unsigned char i2c_address) in get_spd() argument 14 i2c_read(i2c_address, 0, 1, (uchar *)spd, sizeof(ddr2_spd_eeprom_t)); in get_spd() 20 if (spd->dimm_type == 0) { in get_spd() 21 spd->dimm_type = 0x4; in get_spd() 22 ((uchar *)spd)[63] += 0x4; in get_spd()
|
/external/arm-trusted-firmware/services/spd/tspd/ |
D | tspd.mk | 7 TSPD_DIR := services/spd/tspd 13 SPD_SOURCES := services/spd/tspd/tspd_common.c \ 14 services/spd/tspd/tspd_helpers.S \ 15 services/spd/tspd/tspd_main.c \ 16 services/spd/tspd/tspd_pm.c
|
/external/arm-trusted-firmware/services/spd/tlkd/ |
D | tlkd.mk | 11 SPD_SOURCES := services/spd/tlkd/tlkd_common.c \ 12 services/spd/tlkd/tlkd_helpers.S \ 13 services/spd/tlkd/tlkd_main.c \ 14 services/spd/tlkd/tlkd_pm.c
|
/external/u-boot/board/sbc8548/ |
D | ddr.c | 63 void get_spd(generic_spd_eeprom_t *spd, u8 i2c_address) in get_spd() argument 69 ret = i2c_read(ALT_SPD_EEPROM_ADDRESS, 0, 1, (uchar *)spd, in get_spd() 73 memset(spd, 0, sizeof(generic_spd_eeprom_t)); in get_spd() 76 ret = i2c_read(i2c_address, 0, 1, (uchar *)spd, in get_spd() 80 memset(spd, 0, sizeof(generic_spd_eeprom_t)); in get_spd()
|
/external/arm-trusted-firmware/services/spd/trusty/ |
D | trusty.mk | 9 SPD_SOURCES := services/spd/trusty/trusty.c \ 10 services/spd/trusty/trusty_helpers.S 13 SPD_SOURCES += services/spd/trusty/generic-arm64-smcall.c
|
/external/linux-kselftest/tools/testing/selftests/powerpc/ptrace/ |
D | .gitignore | 3 ptrace-tm-spd-gpr 6 ptrace-tm-spd-tar 9 ptrace-tm-spd-vsx
|
D | Makefile | 2 TEST_GEN_PROGS := ptrace-gpr ptrace-tm-gpr ptrace-tm-spd-gpr \ 3 ptrace-tar ptrace-tm-tar ptrace-tm-spd-tar ptrace-vsx ptrace-tm-vsx \ 4 ptrace-tm-spd-vsx ptrace-tm-spr ptrace-hwbreak ptrace-pkey core-pkey \
|
/external/u-boot/board/gdsys/p1022/ |
D | ddr.c | 45 void get_spd(generic_spd_eeprom_t *spd, u8 i2c_address) in get_spd() argument 47 int ret = i2c_read(i2c_address, 0, 2, (uchar *)spd, in get_spd() 64 memset(spd, 0, sizeof(generic_spd_eeprom_t)); in get_spd()
|
/external/u-boot/drivers/usb/host/ |
D | ehci-faraday.c | 38 int spd, ret = PORTSC_PSPD_HS; in faraday_ehci_get_port_speed() local 43 spd = OTGCSR_SPD(readl(®s->otg.otgcsr)); in faraday_ehci_get_port_speed() 45 spd = BMCSR_SPD(readl(®s->usb.bmcsr)); in faraday_ehci_get_port_speed() 47 switch (spd) { in faraday_ehci_get_port_speed()
|
/external/u-boot/board/freescale/common/ |
D | pixis.h | 18 u8 spd; member 57 u8 spd; member 84 u8 spd; member 113 u8 spd; member 143 u8 spd; member
|
/external/u-boot/board/freescale/c29xpcie/ |
D | ddr.c | 96 void get_spd(generic_spd_eeprom_t *spd, u8 i2c_address) in get_spd() argument 98 int ret = i2c_read(i2c_address, 0, 2, (uint8_t *)spd, in get_spd() 104 memset(spd, 0, sizeof(generic_spd_eeprom_t)); in get_spd()
|
/external/u-boot/include/ |
D | ddr_spd.h | 500 extern unsigned int ddr1_spd_check(const ddr1_spd_eeprom_t *spd); 501 extern void ddr1_spd_dump(const ddr1_spd_eeprom_t *spd); 502 extern unsigned int ddr2_spd_check(const ddr2_spd_eeprom_t *spd); 503 extern void ddr2_spd_dump(const ddr2_spd_eeprom_t *spd); 504 extern unsigned int ddr3_spd_check(const ddr3_spd_eeprom_t *spd); 505 unsigned int ddr4_spd_check(const struct ddr4_spd_eeprom_s *spd);
|
/external/igt-gpu-tools/tools/ |
D | intel_infoframes.c | 185 } __attribute__((packed)) spd; member 618 frame.spd.header.type, frame.spd.header.version, in dump_spd_info() 619 frame.spd.header.length, frame.spd.header.ecc, in dump_spd_info() 620 frame.spd.checksum); in dump_spd_info() 622 memcpy(vendor, frame.spd.vendor, 8); in dump_spd_info() 624 memcpy(description, frame.spd.description, 16); in dump_spd_info() 629 printf("- source: %s\n", spd_source_to_string(frame.spd.source)); in dump_spd_info() 907 memcpy(frame.spd.vendor, option_val_s, 8); in change_spd_infoframe() 910 memcpy(frame.spd.description, option_val_s, 16); in change_spd_infoframe() 913 frame.spd.source = option_val_i; in change_spd_infoframe() [all …]
|