Lines Matching refs:index

128 Hub::UpdatePortStatus(uint8 index)
133 USB_REQUEST_GET_STATUS, 0, index + 1, sizeof(usb_port_status),
134 (void *)&fPortStatus[index], sizeof(usb_port_status), &actualLength);
146 Hub::ResetPort(uint8 index)
149 USB_REQUEST_SET_FEATURE, PORT_RESET, index + 1, 0, NULL, 0, NULL);
157 result = UpdatePortStatus(index);
161 if ((fPortStatus[index].change & PORT_STATUS_RESET) != 0
162 || (fPortStatus[index].status & PORT_STATUS_RESET) == 0) {
168 if ((fPortStatus[index].change & PORT_STATUS_RESET) == 0
169 && (fPortStatus[index].status & PORT_STATUS_RESET) != 0) {
170 TRACE_ERROR("port %d won't reset (%#x, %#x)\n", index,
171 fPortStatus[index].change, fPortStatus[index].status);
177 USB_REQUEST_CLEAR_FEATURE, C_PORT_RESET, index + 1, 0, NULL, 0, NULL);
183 TRACE("port %d was reset successfully\n", index);
189 Hub::DisablePort(uint8 index)
193 index + 1, 0, NULL, 0, NULL);
387 Hub::GetDescriptor(uint8 descriptorType, uint8 index, uint16 languageID,
393 (descriptorType << 8) | index, // value
394 languageID, // index
438 Hub::BuildDeviceName(char *string, uint32 *index, size_t bufferSize,
441 status_t result = Device::BuildDeviceName(string, index, bufferSize, device);
444 if (*index < bufferSize) {
446 size_t totalBytes = snprintf(string + *index, bufferSize - *index,
448 *index += std::min(totalBytes, (size_t)(bufferSize - *index - 1));
454 if (*index < bufferSize) {
455 size_t totalBytes = snprintf(string + *index, bufferSize - *index,
457 *index += std::min(totalBytes, (size_t)(bufferSize - *index - 1));
463 if (*index < bufferSize) {
464 size_t totalBytes = snprintf(string + *index,
465 bufferSize - *index, "/%" B_PRId32, i);
466 *index += std::min(totalBytes,
467 (size_t)(bufferSize - *index - 1));
479 Hub::_DebouncePort(uint8 index)
487 status_t result = UpdatePortStatus(index);
491 if ((fPortStatus[index].change & PORT_STATUS_CONNECTION) == 0) {
501 C_PORT_CONNECTION, index + 1, 0, NULL, 0, NULL);