Lines Matching refs:offset

69 #define	HPC3130_REG(offset, slot) ((offset) + ((slot)*8))
660 uint8_t offset;
671 offset = ste->callback_info.offset;
673 unitp->enabled[offset] =
875 /* Pick off pointer to 3130 register offset */
888 "invalid register offset value");
927 * at that point is the device handle and the register offset
932 ste->callback_info.offset = hpc3130_atoi(reg_offset);
1128 hpc3130_write(i2c_client_hdl_t handle, uint8_t offset,
1135 HPC3130_REG(offset, port), B_TRUE, &data));
1139 hpc3130_read(i2c_client_hdl_t handle, uint8_t offset,
1146 HPC3130_REG(offset, port), B_FALSE, data));
1491 uint8_t offset;
1506 * Callback parameter has specific device handle and offset
1516 offset = info_p->offset;
1518 ste = &hpc3130_p->hpc3130_slot_table[offset];
1521 DAK_GET_SBD_APID(phys_slot, MAXPATHLEN, offset);
1532 if (hpc3130_p->enabled[offset] == B_FALSE) {
1538 if (hpc3130_p->power[offset] == B_TRUE) {
1544 if (hpc3130_read(handle, HPC3130_STATUS, offset,
1550 if (hpc3130_read(handle, HPC3130_CONTROL, offset,
1558 offset, control, status));
1561 if (hpc3130_write(handle, HPC3130_CONTROL, offset,
1568 D1CMN_ERR((CE_NOTE, "PCI connect %d", offset));
1574 if (hpc3130_read(handle, HPC3130_GCR, offset,
1581 if (hpc3130_write(handle, HPC3130_CONTROL, offset,
1589 if ((hpc3130_write(handle, HPC3130_CONTROL, offset,
1591 (hpc3130_verify_slot_power(hpc3130_p, handle, offset,
1601 (void) hpc3130_set_led(hpc3130_p, offset, HPC3130_LED_OK2REM,
1607 if (hpc3130_read(handle, HPC3130_STATUS, offset, &status)) {
1632 if (hpc3130_write(handle, HPC3130_CONTROL, offset,
1644 (void) hpc3130_set_led(hpc3130_p, offset, HPC3130_LED_FAULT,
1658 if ((hpc3130_write(handle, HPC3130_CONTROL, offset,
1660 (hpc3130_verify_slot_power(hpc3130_p, handle, offset,
1663 (void) hpc3130_set_led(hpc3130_p, offset,
1680 uint8_t offset;
1691 * Callback parameter has specific device handle and offset
1700 offset = info_p->offset;
1704 ste = &hpc3130_p->hpc3130_slot_table[offset];
1707 DAK_GET_SBD_APID(phys_slot, MAXPATHLEN, offset);
1721 if (hpc3130_read(handle, HPC3130_CONTROL, offset,
1728 D1CMN_ERR((CE_NOTE, "CPU disconnect %d", offset));
1734 if (hpc3130_write(handle, HPC3130_CONTROL, offset,
1740 D1CMN_ERR((CE_NOTE, "PCI disconnect %d", offset));
1743 if (hpc3130_write(handle, HPC3130_CONTROL, offset,
1749 if (hpc3130_write(handle, HPC3130_CONTROL, offset,
1756 offset, hpc3130_p->present[offset]));
1758 if (hpc3130_verify_slot_power(hpc3130_p, handle, offset,
1766 if (hpc3130_p->present[offset] == B_TRUE) {
1772 (void) hpc3130_set_led(hpc3130_p, offset, HPC3130_LED_OK2REM,
1778 (void) hpc3130_set_led(hpc3130_p, offset, HPC3130_LED_FAULT,
1787 (void) hpc3130_set_led(hpc3130_p, offset,
1789 (void) hpc3130_set_led(hpc3130_p, offset,
1803 uint8_t offset, char *phys_slot, boolean_t slot_target_state)
1822 ste = &hpc3130_p->hpc3130_slot_table[offset];
1823 slot_actual_state = hpc3130_p->power[offset];
1836 HPC3130_STATUS, offset, &status)) {
1845 hpc3130_p->power[offset] = slot_actual_state;
1862 (void) hpc3130_set_led(hpc3130_p, offset, HPC3130_LED_FAULT,
1893 uint8_t offset;
1902 * Callback parameter has specific device handle and offset
1912 offset = info_p->offset;
1936 if (hpc3130_get_led(handle, offset, led, &state) !=
1983 (void) hpc3130_set_led(hpc3130_p, offset, led,
1988 if (hpc3130_p->power[offset] == B_FALSE) {
1989 if (hpc3130_p->present[offset] == B_FALSE) {
2010 (void) hpc3130_set_led(hpc3130_p, offset,
2014 (void) hpc3130_set_led(hpc3130_p, offset,
2018 (void) hpc3130_set_led(hpc3130_p, offset,
2020 hpc3130_p->present[offset] = B_TRUE;
2023 if (hpc3130_p->power[offset] == B_TRUE) {
2024 (void) hpc3130_set_led(hpc3130_p, offset,
2027 (void) hpc3130_set_led(hpc3130_p, offset,
2032 hpc3130_p->enabled[offset] = B_FALSE;
2036 hpc3130_p->enabled[offset] = B_TRUE;