Changes in uspace/drv/usbhid/hidreq.c [3954a63b:2b12f06] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/hidreq.c
r3954a63b r2b12f06 57 57 * @retval EINVAL if no HID device is given. 58 58 * @return Other value inherited from one of functions 59 * usb_ pipe_start_session(), usb_pipe_end_session(),59 * usb_endpoint_pipe_start_session(), usb_endpoint_pipe_end_session(), 60 60 * usb_control_request_set(). 61 61 */ … … 76 76 int rc, sess_rc; 77 77 78 sess_rc = usb_ pipe_start_session(&hid_dev->ctrl_pipe);78 sess_rc = usb_endpoint_pipe_start_session(&hid_dev->ctrl_pipe); 79 79 if (sess_rc != EOK) { 80 80 usb_log_warning("Failed to start a session: %s.\n", … … 92 92 USB_HIDREQ_SET_REPORT, value, hid_dev->iface, buffer, buf_size); 93 93 94 sess_rc = usb_ pipe_end_session(&hid_dev->ctrl_pipe);94 sess_rc = usb_endpoint_pipe_end_session(&hid_dev->ctrl_pipe); 95 95 96 96 if (rc != EOK) { … … 119 119 * @retval EINVAL if no HID device is given. 120 120 * @return Other value inherited from one of functions 121 * usb_ pipe_start_session(), usb_pipe_end_session(),121 * usb_endpoint_pipe_start_session(), usb_endpoint_pipe_end_session(), 122 122 * usb_control_request_set(). 123 123 */ … … 137 137 int rc, sess_rc; 138 138 139 sess_rc = usb_ pipe_start_session(&hid_dev->ctrl_pipe);139 sess_rc = usb_endpoint_pipe_start_session(&hid_dev->ctrl_pipe); 140 140 if (sess_rc != EOK) { 141 141 usb_log_warning("Failed to start a session: %s.\n", … … 151 151 USB_HIDREQ_SET_PROTOCOL, protocol, hid_dev->iface, NULL, 0); 152 152 153 sess_rc = usb_ pipe_end_session(&hid_dev->ctrl_pipe);153 sess_rc = usb_endpoint_pipe_end_session(&hid_dev->ctrl_pipe); 154 154 155 155 if (rc != EOK) { … … 179 179 * @retval EINVAL if no HID device is given. 180 180 * @return Other value inherited from one of functions 181 * usb_ pipe_start_session(), usb_pipe_end_session(),181 * usb_endpoint_pipe_start_session(), usb_endpoint_pipe_end_session(), 182 182 * usb_control_request_set(). 183 183 */ … … 197 197 int rc, sess_rc; 198 198 199 sess_rc = usb_ pipe_start_session(&hid_dev->ctrl_pipe);199 sess_rc = usb_endpoint_pipe_start_session(&hid_dev->ctrl_pipe); 200 200 if (sess_rc != EOK) { 201 201 usb_log_warning("Failed to start a session: %s.\n", … … 213 213 USB_HIDREQ_SET_IDLE, value, hid_dev->iface, NULL, 0); 214 214 215 sess_rc = usb_ pipe_end_session(&hid_dev->ctrl_pipe);215 sess_rc = usb_endpoint_pipe_end_session(&hid_dev->ctrl_pipe); 216 216 217 217 if (rc != EOK) { … … 244 244 * @retval EINVAL if no HID device is given. 245 245 * @return Other value inherited from one of functions 246 * usb_ pipe_start_session(), usb_pipe_end_session(),246 * usb_endpoint_pipe_start_session(), usb_endpoint_pipe_end_session(), 247 247 * usb_control_request_set(). 248 248 */ … … 263 263 int rc, sess_rc; 264 264 265 sess_rc = usb_ pipe_start_session(&hid_dev->ctrl_pipe);265 sess_rc = usb_endpoint_pipe_start_session(&hid_dev->ctrl_pipe); 266 266 if (sess_rc != EOK) { 267 267 usb_log_warning("Failed to start a session: %s.\n", … … 280 280 actual_size); 281 281 282 sess_rc = usb_ pipe_end_session(&hid_dev->ctrl_pipe);282 sess_rc = usb_endpoint_pipe_end_session(&hid_dev->ctrl_pipe); 283 283 284 284 if (rc != EOK) { … … 307 307 * @retval EINVAL if no HID device is given. 308 308 * @return Other value inherited from one of functions 309 * usb_ pipe_start_session(), usb_pipe_end_session(),309 * usb_endpoint_pipe_start_session(), usb_endpoint_pipe_end_session(), 310 310 * usb_control_request_set(). 311 311 */ … … 325 325 int rc, sess_rc; 326 326 327 sess_rc = usb_ pipe_start_session(&hid_dev->ctrl_pipe);327 sess_rc = usb_endpoint_pipe_start_session(&hid_dev->ctrl_pipe); 328 328 if (sess_rc != EOK) { 329 329 usb_log_warning("Failed to start a session: %s.\n", … … 342 342 USB_HIDREQ_GET_PROTOCOL, 0, hid_dev->iface, buffer, 1, &actual_size); 343 343 344 sess_rc = usb_ pipe_end_session(&hid_dev->ctrl_pipe);344 sess_rc = usb_endpoint_pipe_end_session(&hid_dev->ctrl_pipe); 345 345 346 346 if (rc != EOK) { … … 378 378 * @retval EINVAL if no HID device is given. 379 379 * @return Other value inherited from one of functions 380 * usb_ pipe_start_session(), usb_pipe_end_session(),380 * usb_endpoint_pipe_start_session(), usb_endpoint_pipe_end_session(), 381 381 * usb_control_request_set(). 382 382 */ … … 396 396 int rc, sess_rc; 397 397 398 sess_rc = usb_ pipe_start_session(&hid_dev->ctrl_pipe);398 sess_rc = usb_endpoint_pipe_start_session(&hid_dev->ctrl_pipe); 399 399 if (sess_rc != EOK) { 400 400 usb_log_warning("Failed to start a session: %s.\n", … … 415 415 &actual_size); 416 416 417 sess_rc = usb_ pipe_end_session(&hid_dev->ctrl_pipe);417 sess_rc = usb_endpoint_pipe_end_session(&hid_dev->ctrl_pipe); 418 418 419 419 if (rc != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.