Lines Matching refs:error
46 smbus_intr(device_t bus, u_char devaddr, char low, char high, int error)
53 SMBUS_INTR(sc->owner, devaddr, low, high, error);
60 * Converts an smbus error to a unix error.
65 int error = 0;
71 error = ENODEV;
73 error = ENXIO;
75 error = EWOULDBLOCK;
77 error = EBUSY;
79 error = EIO;
81 error = EINVAL;
83 return (error);
89 int error;
93 error = msleep(sc, &sc->lock, SMBPRI|PCATCH, "smbreq", 0);
97 error = msleep(sc, &sc->lock, SMBPRI, "smbreq", 0);
101 error = EWOULDBLOCK;
105 return (error);
120 int error;
127 error = SMBUS_CALLBACK(parent, SMB_REQUEST_BUS, &how);
130 if (error)
131 error = smbus_poll(sc, how);
132 } while (error == EWOULDBLOCK);
134 while (error == 0) {
136 error = smbus_poll(sc, how);
143 if (error) {
146 return (error);
151 return (error);
163 int error;
166 error = SMBUS_CALLBACK(device_get_parent(bus), SMB_RELEASE_BUS, NULL);
168 if (error)
169 return (error);
178 error = EACCES;
181 return (error);