Home
last modified time | relevance | path

Searched refs:prom (Results 1 – 25 of 61) sorted by relevance

123

/openbmc/linux/drivers/iio/common/ms_sensors/
H A Dms_sensors_i2c.c499 static u8 ms_sensors_tp_crc4(u16 *prom) in ms_sensors_tp_crc4() argument
506 n_rem ^= prom[cnt >> 1] & 0x00FF; in ms_sensors_tp_crc4()
508 n_rem ^= prom[cnt >> 1] >> 8; in ms_sensors_tp_crc4()
530 static bool ms_sensors_tp_crc_valid_112(u16 *prom) in ms_sensors_tp_crc_valid_112() argument
532 u16 w0 = prom[0], crc_read = (w0 & 0xF000) >> 12; in ms_sensors_tp_crc_valid_112()
535 prom[0] &= 0x0FFF; /* Clear the CRC computation part */ in ms_sensors_tp_crc_valid_112()
536 prom[MS_SENSORS_TP_PROM_WORDS_NB - 1] = 0; in ms_sensors_tp_crc_valid_112()
538 crc = ms_sensors_tp_crc4(prom); in ms_sensors_tp_crc_valid_112()
540 prom[0] = w0; in ms_sensors_tp_crc_valid_112()
554 static bool ms_sensors_tp_crc_valid_128(u16 *prom) in ms_sensors_tp_crc_valid_128() argument
[all …]
/openbmc/linux/drivers/iio/pressure/
H A Dms5611_core.c56 static bool ms5611_prom_is_valid(u16 *prom, size_t len) in ms5611_prom_is_valid() argument
59 uint16_t crc = 0, crc_orig = prom[7] & 0x000F; in ms5611_prom_is_valid()
61 prom[7] &= 0xFF00; in ms5611_prom_is_valid()
65 crc ^= prom[i >> 1] & 0x00FF; in ms5611_prom_is_valid()
67 crc ^= prom[i >> 1] >> 8; in ms5611_prom_is_valid()
88 ret = st->read_prom_word(st, i, &st->prom[i]); in ms5611_read_prom()
96 if (!ms5611_prom_is_valid(st->prom, MS5611_PROM_WORDS_NB)) { in ms5611_read_prom()
126 dt = t - (st->prom[5] << 8); in ms5611_temp_and_pressure_compensate()
127 off = ((s64)st->prom[2] << 16) + ((st->prom[4] * dt) >> 7); in ms5611_temp_and_pressure_compensate()
128 sens = ((s64)st->prom[1] << 15) + ((st->prom[3] * dt) >> 8); in ms5611_temp_and_pressure_compensate()
[all …]
/openbmc/u-boot/drivers/net/
H A Dne2000.c205 u8 prom[32]; in get_prom() local
236 prom[i] = n2k_inb (PCNET_DATAPORT); in get_prom()
237 PRINTK (" %02x", prom[i]); in get_prom()
241 if ((prom[0] == hw_info[i].a0) && in get_prom()
242 (prom[2] == hw_info[i].a1) && in get_prom()
243 (prom[4] == hw_info[i].a2)) { in get_prom()
248 if ((i < NR_INFO) || ((prom[28] == 0x57) && (prom[30] == 0x57))) { in get_prom()
252 mac_addr[j] = prom[j << 1]; in get_prom()
H A Dax88796.c135 u8 prom[32]; in get_prom() local
138 ax88796_mac_read(prom); in get_prom()
140 mac_addr[i] = prom[i]; in get_prom()
/openbmc/linux/arch/powerpc/kernel/
H A Dprom_init.c148 static struct prom_t __prombss prom; variable
445 if (prom.stdout == 0) in prom_print()
452 call_prom("write", 3, 1, prom.stdout, p, q - p); in prom_print()
456 call_prom("write", 3, 1, prom.stdout, ADDR("\r\n"), 2); in prom_print()
477 call_prom("write", 3, 1, prom.stdout, buf, nibbles); in prom_print_hex()
495 call_prom("write", 3, 1, prom.stdout, buf+i, size); in prom_print_dec()
512 call_prom("write", 3, 1, prom.stdout, p, q - p); in prom_printf()
517 call_prom("write", 3, 1, prom.stdout, in prom_printf()
605 ADDR("claim"), prom.memory, in prom_claim()
610 ADDR("claim"), prom.mmumap, in prom_claim()
[all …]
/openbmc/linux/drivers/iio/temperature/
H A Dtsys01.c39 u16 prom[TSYS01_PROM_WORDS_NB]; member
67 (s64)dev_data->prom[5 - i]; in tsys01_read_temperature()
72 temp += coeff_mul[0] * (s64)dev_data->prom[5]; in tsys01_read_temperature()
137 &dev_data->prom[i]); in tsys01_read_prom()
141 ret = sprintf(ptr, "0x%04x ", dev_data->prom[i]); in tsys01_read_prom()
145 if (!tsys01_crc_valid(dev_data->prom)) { in tsys01_read_prom()
/openbmc/linux/arch/powerpc/boot/
H A Doflib.c27 extern int prom(void *);
29 static int (*prom) (void *); variable
35 prom = (int (*)(void *))promptr; in of_init()
59 if (prom(&args) < 0) in of_call_prom()
84 if (prom(&args) < 0) in of_call_prom_ret()
/openbmc/qemu/hw/sparc64/
H A Dniagara.c47 MemoryRegion prom; member
124 memory_region_init_ram(&s->prom, NULL, "sun4v.prom", PROM_SIZE_MAX, in niagara_init()
126 memory_region_add_subregion(sysmem, NIAGARA_PROM_BASE, &s->prom); in niagara_init()
/openbmc/qemu/hw/mips/
H A Djazz.c128 uint8_t *prom; in mips_jazz_init_net() local
148 prom = memory_region_get_ram_ptr(dp8393x_prom); in mips_jazz_init_net()
151 prom[i] = nd->macaddr.a[i]; in mips_jazz_init_net()
152 checksum += prom[i]; in mips_jazz_init_net()
157 prom[7] = 0xff - checksum; in mips_jazz_init_net()
/openbmc/linux/arch/mips/pci/
H A Dpci-xtalk-bridge.c572 u8 prom[64]; in bridge_get_partnum() local
582 ret = nvmem_device_read(nvmem, 0, 64, prom); in bridge_get_partnum()
588 if (crc16(CRC16_INIT, prom, 32) != CRC16_VALID || in bridge_get_partnum()
589 crc16(CRC16_INIT, prom + 32, 32) != CRC16_VALID) in bridge_get_partnum()
595 if (prom[i + 11] != ' ') in bridge_get_partnum()
596 partnum[j++] = prom[i + 11]; in bridge_get_partnum()
599 if (prom[i + 32] != ' ') in bridge_get_partnum()
600 partnum[j++] = prom[i + 32]; in bridge_get_partnum()
/openbmc/qemu/hw/net/
H A Dpcnet.c693 s->csr[12] = le16_to_cpu(((uint16_t *)&s->prom[0])[0]); in pcnet_s_reset()
694 s->csr[13] = le16_to_cpu(((uint16_t *)&s->prom[0])[1]); in pcnet_s_reset()
695 s->csr[14] = le16_to_cpu(((uint16_t *)&s->prom[0])[2]); in pcnet_s_reset()
1691 VMSTATE_BUFFER(prom, PCNetState),
1722 memcpy(s->prom, s->conf.macaddr.a, 6); in pcnet_common_init()
1724 s->prom[6] = s->prom[7] = 0x00; in pcnet_common_init()
1726 s->prom[8] = 0x00; in pcnet_common_init()
1728 s->prom[9] = 0x11; in pcnet_common_init()
1730 s->prom[10] = s->prom[11] = 0x00; in pcnet_common_init()
1733 s->prom[12] = s->prom[13] = 0x00; in pcnet_common_init()
[all …]
/openbmc/qemu/hw/sparc/
H A Dleon3.c265 MemoryRegion *prom = g_new(MemoryRegion, 1); in leon3_generic_hw_init() local
345 memory_region_init_rom(prom, NULL, "Leon3.bios", prom_size, &error_fatal); in leon3_generic_hw_init()
346 memory_region_add_subregion(address_space_mem, LEON3_PROM_OFFSET, prom); in leon3_generic_hw_init()
398 write_bootloader(memory_region_get_ram_ptr(prom), entry); in leon3_generic_hw_init()
/openbmc/linux/arch/mips/lantiq/falcon/
H A DMakefile2 obj-y := prom.o reset.o sysctrl.o
/openbmc/linux/arch/mips/txx9/rbtx4927/
H A DMakefile2 obj-y += prom.o setup.o irq.o
/openbmc/linux/arch/m68k/sun3x/
H A DMakefile6 obj-y := config.o time.o dvma.o prom.o
/openbmc/linux/arch/mips/loongson32/common/
H A DMakefile6 obj-y += time.o irq.o platform.o prom.o setup.o
/openbmc/linux/arch/mips/ath79/
H A DMakefile9 obj-y := prom.o setup.o common.o clock.o
/openbmc/linux/arch/mips/lantiq/xway/
H A DMakefile2 obj-y := prom.o sysctrl.o clk.o dma.o gptu.o dcdc.o
/openbmc/linux/arch/mips/rb532/
H A DMakefile8 obj-y += irq.o time.o setup.o prom.o gpio.o devices.o
/openbmc/linux/arch/mips/ar7/
H A DMakefile4 prom.o \
/openbmc/linux/arch/mips/lantiq/
H A DMakefile5 obj-y := irq.o clk.o prom.o
/openbmc/linux/arch/mips/bcm47xx/
H A DMakefile7 obj-y += irq.o prom.o serial.o setup.o time.o
/openbmc/linux/arch/mips/ath25/
H A DMakefile11 obj-y += board.o prom.o devices.o
/openbmc/linux/arch/m68k/sun3/
H A DMakefile8 obj-$(CONFIG_SUN3) += config.o mmu_emu.o leds.o dvma.o intersil.o prom/
/openbmc/linux/arch/mips/dec/
H A DPlatform6 libs-$(CONFIG_MACH_DECSTATION) += arch/mips/dec/prom/

123