Home
last modified time | relevance | path

Searched refs:pec (Results 1 – 25 of 31) sorted by relevance

12

/openbmc/qemu/hw/pci-host/
H A Dpnv_phb4_pec.c26 #define phb_pec_error(pec, fmt, ...) \ argument
28 (pec)->chip_id, (pec)->index, ## __VA_ARGS__)
34 PnvPhb4PecState *pec = PNV_PHB4_PEC(opaque); in pnv_pec_nest_xscom_read() local
38 return pec->nest_regs[reg]; in pnv_pec_nest_xscom_read()
44 PnvPhb4PecState *pec = PNV_PHB4_PEC(opaque); in pnv_pec_nest_xscom_write() local
49 pec->nest_regs[reg] = val & PPC_BITMASK(0, 25); in pnv_pec_nest_xscom_write()
52 pec->nest_regs[reg] = val & PPC_BITMASK(0, 11); in pnv_pec_nest_xscom_write()
55 pec->nest_regs[reg] = val & PPC_BITMASK(0, 16); in pnv_pec_nest_xscom_write()
58 pec->nest_regs[reg] = val & PPC_BITMASK(0, 37); in pnv_pec_nest_xscom_write()
61 pec->nest_regs[reg] = val & PPC_BITMASK(0, 6); in pnv_pec_nest_xscom_write()
[all …]
H A Dpnv_phb4.c29 #define phb_pec_error(pec, fmt, ...) \ argument
31 (pec)->chip_id, (pec)->index, ## __VA_ARGS__)
666 return PNV_PHB4_PEC_GET_CLASS(phb->pec)->version; in pnv_phb4_reg_read()
871 PnvPhb4PecState *pec = phb->pec; in pnv_phb4_get_phb_stack_no() local
872 PnvPhb4PecClass *pecc = PNV_PHB4_PEC_GET_CLASS(pec); in pnv_phb4_get_phb_stack_no()
873 int index = pec->index; in pnv_phb4_get_phb_stack_no()
909 PnvPhb4PecState *pec = phb->pec; in pnv_pec_phb_update_map() local
952 pec->chip_id, pec->index, stack_no); in pnv_pec_phb_update_map()
964 pec->chip_id, pec->index, stack_no); in pnv_pec_phb_update_map()
975 pec->chip_id, pec->index, stack_no); in pnv_pec_phb_update_map()
[all …]
H A Dpnv_phb.c146 if (!phb->chip && !phb->pec) { in pnv_phb_realize()
156 object_property_set_link(phb->backend, "pec", OBJECT(phb->pec), errp); in pnv_phb_realize()
193 DEFINE_PROP_LINK("pec", PnvPHB, pec, TYPE_PNV_PHB4_PEC,
H A Dpnv_phb.h30 PnvPhb4PecState *pec; member
/openbmc/linux/arch/s390/pci/
H A Dpci_event.c34 u16 pec; /* PCI event code */ member
47 u16 pec; /* PCI event code */ member
258 ccdf->fid, ccdf->fh, ccdf->pec); in __zpci_event_error()
269 pdev ? pci_name(pdev) : "n/a", ccdf->pec, ccdf->fid); in __zpci_event_error()
274 switch (ccdf->pec) { in __zpci_event_error()
324 ccdf->fid, ccdf->fh, ccdf->pec); in __zpci_event_availability()
325 switch (ccdf->pec) { in __zpci_event_availability()
/openbmc/qemu/include/hw/pci-host/
H A Dpnv_phb4.h89 PnvPhb4PecState *pec; member
159 int pnv_phb4_pec_get_phb_id(PnvPhb4PecState *pec, int stack_index);
199 uint32_t (*xscom_nest_base)(PnvPhb4PecState *pec);
201 uint32_t (*xscom_pci_base)(PnvPhb4PecState *pec);
/openbmc/linux/drivers/char/ipmi/
H A Dssif_bmc.c54 u8 pec; member
342 part->pec = i2c_smbus_pec(0, &addr, 1); in calculate_response_part_pec()
344 part->pec = i2c_smbus_pec(part->pec, &part->smbus_cmd, 1); in calculate_response_part_pec()
347 part->pec = i2c_smbus_pec(part->pec, &addr, 1); in calculate_response_part_pec()
348 part->pec = i2c_smbus_pec(part->pec, &part->length, 1); in calculate_response_part_pec()
350 part->pec = i2c_smbus_pec(part->pec, part->payload, part->length); in calculate_response_part_pec()
467 *val = part->pec; in handle_read_processed()
515 part->pec = part->payload[part->length]; in validate_request_part()
532 if (cpec != part->pec) in validate_request_part()
/openbmc/linux/drivers/net/mctp/
H A Dmctp-i3c.c108 u8 pec, addr; in mctp_i3c_read() local
145 pec = i2c_smbus_pec(0, &addr, 1); in mctp_i3c_read()
146 pec = i2c_smbus_pec(pec, xfer.data.in, xfer.len - 1); in mctp_i3c_read()
147 if (pec != ((u8 *)xfer.data.in)[xfer.len - 1]) { in mctp_i3c_read()
364 u8 addr, pec; in mctp_i3c_xmit() local
403 pec = i2c_smbus_pec(0, &addr, 1); in mctp_i3c_xmit()
404 pec = i2c_smbus_pec(pec, data, data_len); in mctp_i3c_xmit()
405 data[data_len] = pec; in mctp_i3c_xmit()
H A Dmctp-i2c.c279 u8 pec, calc_pec; in mctp_i2c_recv() local
302 pec = midev->rx_buffer[midev->rx_pos - 1]; in mctp_i2c_recv()
304 if (pec != calc_pec) { in mctp_i2c_recv()
/openbmc/linux/drivers/i2c/busses/
H A Di2c-amd8111.c194 unsigned char protocol, len, pec, temp[2]; in amd8111_access() local
199 pec = (flags & I2C_CLIENT_PEC) ? AMD_SMB_PRTCL_PEC : 0; in amd8111_access()
244 protocol |= AMD_SMB_PRTCL_WORD_DATA | pec; in amd8111_access()
265 protocol |= AMD_SMB_PRTCL_BLOCK_DATA | pec; in amd8111_access()
300 protocol = AMD_SMB_PRTCL_PROC_CALL | pec; in amd8111_access()
319 protocol = AMD_SMB_PRTCL_BLOCK_PROC_CALL | pec; in amd8111_access()
H A Di2c-nforce2.c183 unsigned char protocol, pec; in nforce2_access() local
189 pec = (flags & I2C_CLIENT_PEC) ? NVIDIA_SMB_PRTCL_PEC : 0; in nforce2_access()
216 protocol |= NVIDIA_SMB_PRTCL_WORD_DATA | pec; in nforce2_access()
234 protocol |= NVIDIA_SMB_PRTCL_BLOCK_DATA | pec; in nforce2_access()
H A Di2c-mlxbf.c2076 bool read, pec; in mlxbf_i2c_smbus_xfer() local
2082 pec = flags & I2C_FUNC_SMBUS_PEC; in mlxbf_i2c_smbus_xfer()
2093 pec); in mlxbf_i2c_smbus_xfer()
2100 read, pec); in mlxbf_i2c_smbus_xfer()
2107 (u8 *)&data->word, read, pec); in mlxbf_i2c_smbus_xfer()
2115 &byte_cnt, read, pec); in mlxbf_i2c_smbus_xfer()
2123 &byte_cnt, read, pec); in mlxbf_i2c_smbus_xfer()
2130 (u8 *)&data->word, pec); in mlxbf_i2c_smbus_xfer()
2139 pec); in mlxbf_i2c_smbus_xfer()
/openbmc/openbmc-tools/bi2cp/
H A Dbi2cp235 if self.pec is None:
238 provided = self.pec
265 (self.pec,) = tail
267 self.pec = None
327 (self.pec,) = tail
329 self.pec = None
/openbmc/openbmc/meta-phosphor/recipes-devtools/i2c-tools/i2c-tools/
H A D0001-4-byte-read-support-466.patch44 pec = argv[optind+2][1] == 'p';
47 + pec = argv[optind+3][1] == 'p';
57 if (pec)
/openbmc/qemu/include/hw/s390x/
H A Ds390-pci-bus.h210 uint16_t pec; member
223 uint16_t pec; member
235 uint16_t pec; member
393 void s390_pci_generate_error_event(uint16_t pec, uint32_t fh, uint32_t fid,
/openbmc/qemu/hw/s390x/
H A Ds390-pci-bus.c67 eccdf->pec = cpu_to_be16(sei_cont->pec); in pci_chsc_sei_nt2_get_event()
73 accdf->pec = cpu_to_be16(sei_cont->pec); in pci_chsc_sei_nt2_get_event()
284 static void s390_pci_generate_event(uint8_t cc, uint16_t pec, uint32_t fh, in s390_pci_generate_event() argument
294 sei_cont->pec = pec; in s390_pci_generate_event()
302 static void s390_pci_generate_plug_event(uint16_t pec, uint32_t fh, in s390_pci_generate_plug_event() argument
305 s390_pci_generate_event(2, pec, fh, fid, 0, 0); in s390_pci_generate_plug_event()
308 void s390_pci_generate_error_event(uint16_t pec, uint32_t fh, uint32_t fid, in s390_pci_generate_error_event() argument
311 s390_pci_generate_event(1, pec, fh, fid, faddr, e); in s390_pci_generate_error_event()
/openbmc/qemu/hw/ppc/
H A Dpnv.c1755 PnvPhb4PecState *pec = &chip9->pecs[i]; in pnv_chip_power9_pec_realize() local
1756 PnvPhb4PecClass *pecc = PNV_PHB4_PEC_GET_CLASS(pec); in pnv_chip_power9_pec_realize()
1760 object_property_set_int(OBJECT(pec), "index", i, &error_fatal); in pnv_chip_power9_pec_realize()
1761 object_property_set_int(OBJECT(pec), "chip-id", chip->chip_id, in pnv_chip_power9_pec_realize()
1763 object_property_set_link(OBJECT(pec), "chip", OBJECT(chip), in pnv_chip_power9_pec_realize()
1765 if (!qdev_realize(DEVICE(pec), NULL, errp)) { in pnv_chip_power9_pec_realize()
1769 pec_nest_base = pecc->xscom_nest_base(pec); in pnv_chip_power9_pec_realize()
1770 pec_pci_base = pecc->xscom_pci_base(pec); in pnv_chip_power9_pec_realize()
1772 pnv_xscom_add_subregion(chip, pec_nest_base, &pec->nest_regs_mr); in pnv_chip_power9_pec_realize()
1773 pnv_xscom_add_subregion(chip, pec_pci_base, &pec->pci_regs_mr); in pnv_chip_power9_pec_realize()
[all …]
/openbmc/openbmc/poky/bitbake/lib/toaster/orm/management/commands/
H A Dlsupdates.py65 pec = (float(i)/float(total))*100
69 pec))
71 if int(pec) == 100:
/openbmc/linux/drivers/i2c/
H A Di2c-core-smbus.c60 static u8 i2c_smbus_msg_pec(u8 pec, struct i2c_msg *msg) in i2c_smbus_msg_pec() argument
64 pec = i2c_smbus_pec(pec, &addr, 1); in i2c_smbus_msg_pec()
67 return i2c_smbus_pec(pec, msg->buf, msg->len); in i2c_smbus_msg_pec()
/openbmc/linux/drivers/staging/media/atomisp/pci/css_2401_system/host/
H A Dcsi_rx_private.h231 state->pec[i] = in csi_rx_be_ctrl_get_state()
281 state->pec[i]); in csi_rx_be_ctrl_dump_state()
H A Dcsi_rx_local.h56 hrt_data pec[N_CSI_RX_BE_MIPI_CUSTOM_PEC]; member
/openbmc/openpower-hw-diags/test/
H A Dpdbg-test.dts1923 compatible = "ibm,power10-pec";
1928 ATTR_PHYS_DEV_PATH = "physical:sys-0/node-0/proc-0/pec-0";
1937 ATTR_PHYS_DEV_PATH = "physical:sys-0/node-0/proc-0/pec-0/phb-0";
1947 ATTR_PHYS_DEV_PATH = "physical:sys-0/node-0/proc-0/pec-0/phb-1";
1957 ATTR_PHYS_DEV_PATH = "physical:sys-0/node-0/proc-0/pec-0/phb-2";
1973 compatible = "ibm,power10-pec";
1978 ATTR_PHYS_DEV_PATH = "physical:sys-0/node-0/proc-0/pec-1";
1987 ATTR_PHYS_DEV_PATH = "physical:sys-0/node-0/proc-0/pec-1/phb-0";
1997 ATTR_PHYS_DEV_PATH = "physical:sys-0/node-0/proc-0/pec-1/phb-1";
2007 ATTR_PHYS_DEV_PATH = "physical:sys-0/node-0/proc-0/pec-1/phb-2";
[all …]
/openbmc/linux/arch/s390/include/asm/
H A Dctl_reg.h98 unsigned long pec : 1; /* PAI extension control */ member
/openbmc/qemu/include/hw/i3c/
H A Daspeed_i3c.h110 uint8_t pec:1; /* Parity error check enabled */ member
/openbmc/linux/drivers/power/supply/
H A Dsbs-battery.c432 bool pec = client->flags & I2C_CLIENT_PEC; in sbs_read_string_data() local
435 if (pec) in sbs_read_string_data()

12