Searched refs:prom (Results 1 – 12 of 12) sorted by relevance
/drivers/iio/pressure/ |
D | ms5611_core.c | 22 static bool ms5611_prom_is_valid(u16 *prom, size_t len) in ms5611_prom_is_valid() argument 25 uint16_t crc = 0, crc_orig = prom[7] & 0x000F; in ms5611_prom_is_valid() 27 prom[7] &= 0xFF00; in ms5611_prom_is_valid() 31 crc ^= prom[i >> 1] & 0x00FF; in ms5611_prom_is_valid() 33 crc ^= prom[i >> 1] >> 8; in ms5611_prom_is_valid() 55 i, &st->chip_info->prom[i]); in ms5611_read_prom() 63 if (!ms5611_prom_is_valid(st->chip_info->prom, MS5611_PROM_WORDS_NB)) { in ms5611_read_prom() 94 dt = t - (chip_info->prom[5] << 8); in ms5611_temp_and_pressure_compensate() 95 off = ((s64)chip_info->prom[2] << 16) + ((chip_info->prom[4] * dt) >> 7); in ms5611_temp_and_pressure_compensate() 96 sens = ((s64)chip_info->prom[1] << 15) + ((chip_info->prom[3] * dt) >> 8); in ms5611_temp_and_pressure_compensate() [all …]
|
D | ms5611.h | 36 u16 prom[MS5611_PROM_WORDS_NB]; member
|
/drivers/iio/common/ms_sensors/ |
D | ms_sensors_i2c.c | 501 static bool ms_sensors_tp_crc_valid(u16 *prom, u8 len) in ms_sensors_tp_crc_valid() argument 504 u16 n_rem = 0x0000, crc_read = prom[0], crc = (*prom & 0xF000) >> 12; in ms_sensors_tp_crc_valid() 506 prom[len - 1] = 0; in ms_sensors_tp_crc_valid() 507 prom[0] &= 0x0FFF; /* Clear the CRC computation part */ in ms_sensors_tp_crc_valid() 511 n_rem ^= prom[cnt >> 1] & 0x00FF; in ms_sensors_tp_crc_valid() 513 n_rem ^= prom[cnt >> 1] >> 8; in ms_sensors_tp_crc_valid() 523 prom[0] = crc_read; in ms_sensors_tp_crc_valid() 545 &dev_data->prom[i]); in ms_sensors_tp_read_prom() 551 if (!ms_sensors_tp_crc_valid(dev_data->prom, in ms_sensors_tp_read_prom() 581 u16 *prom = dev_data->prom, delay; in ms_sensors_read_temp_and_pressure() local [all …]
|
D | ms_sensors_i2c.h | 42 u16 prom[MS_SENSORS_TP_PROM_WORDS_NB + 1]; member
|
/drivers/iio/temperature/ |
D | tsys01.c | 39 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() 138 &dev_data->prom[i]); in tsys01_read_prom() 142 ret = sprintf(ptr, "0x%04x ", dev_data->prom[i]); in tsys01_read_prom() 146 if (!tsys01_crc_valid(dev_data->prom)) { in tsys01_read_prom()
|
/drivers/atm/ |
D | fore200e.c | 605 fore200e_pca_prom_read(struct fore200e* fore200e, struct prom_data* prom) in fore200e_pca_prom_read() argument 618 prom_dma = fore200e->bus->dma_map(fore200e, prom, sizeof(struct prom_data), DMA_FROM_DEVICE); in fore200e_pca_prom_read() 642 swap_here(&prom->mac_addr[0]); in fore200e_pca_prom_read() 643 swap_here(&prom->mac_addr[4]); in fore200e_pca_prom_read() 816 static int __init fore200e_sba_prom_read(struct fore200e *fore200e, struct prom_data *prom) in fore200e_sba_prom_read() argument 825 memcpy(&prom->mac_addr[4], prop, 4); in fore200e_sba_prom_read() 830 memcpy(&prom->mac_addr[2], prop, 4); in fore200e_sba_prom_read() 832 prom->serial_number = of_getintprop_default(op->dev.of_node, in fore200e_sba_prom_read() 834 prom->hw_revision = of_getintprop_default(op->dev.of_node, in fore200e_sba_prom_read() 2054 struct prom_data* prom = kzalloc(sizeof(struct prom_data), GFP_KERNEL | GFP_DMA); in fore200e_get_esi() local [all …]
|
/drivers/net/ethernet/8390/ |
D | pcnet_cs.c | 324 u_char prom[32]; in get_prom() local 353 prom[i] = inb(ioaddr + PCNET_DATAPORT); in get_prom() 355 if ((prom[0] == hw_info[i].a0) && in get_prom() 356 (prom[2] == hw_info[i].a1) && in get_prom() 357 (prom[4] == hw_info[i].a2)) in get_prom() 360 if ((i < NR_INFO) || ((prom[28] == 0x57) && (prom[30] == 0x57))) { in get_prom() 362 dev->dev_addr[j] = prom[j<<1]; in get_prom()
|
/drivers/isdn/hardware/eicon/ |
D | platform.h | 104 #define DIVA_OS_MEM_ATTACH_PROM(a) ((a)->prom)
|
D | io.h | 107 byte __iomem *prom; member
|
D | os_pri.c | 85 a->xdi_adapter.prom = a->resources.pci.addr[3]; in diva_pri_set_addresses()
|
D | os_4bri.c | 133 a->xdi_adapter.prom = &a->xdi_adapter.reset[0x6E]; in diva_4bri_set_addresses()
|
/drivers/net/ethernet/micrel/ |
D | ksz884x.c | 4229 static void hw_set_promiscuous(struct ksz_hw *hw, u8 prom) in hw_set_promiscuous() argument 4234 if (prom) in hw_set_promiscuous()
|