Lines Matching refs:dev_handle
393 tHID_STATUS HID_HostRemoveDev ( UINT8 dev_handle ) in HID_HostRemoveDev() argument
398 if( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) ) in HID_HostRemoveDev()
401 HID_HostCloseDev( dev_handle ) ; in HID_HostRemoveDev()
402 hh_cb.devices[dev_handle].in_use = FALSE; in HID_HostRemoveDev()
403 hh_cb.devices[dev_handle].conn.conn_state = HID_CONN_STATE_UNUSED; in HID_HostRemoveDev()
404 hh_cb.devices[dev_handle].conn.ctrl_cid = hh_cb.devices[dev_handle].conn.intr_cid = 0; in HID_HostRemoveDev()
405 hh_cb.devices[dev_handle].attr_mask = 0; in HID_HostRemoveDev()
419 tHID_STATUS HID_HostOpenDev ( UINT8 dev_handle ) in HID_HostOpenDev() argument
424 if( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) ) in HID_HostOpenDev()
427 if( hh_cb.devices[dev_handle].state != HID_DEV_NO_CONN ) in HID_HostOpenDev()
430 hh_cb.devices[dev_handle].conn_tries = 1; in HID_HostOpenDev()
431 return hidh_conn_initiate( dev_handle ); in HID_HostOpenDev()
446 tHID_STATUS HID_HostWriteDev( UINT8 dev_handle, UINT8 t_type, in HID_HostWriteDev() argument
457 if( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) ) in HID_HostWriteDev()
463 else if( hh_cb.devices[dev_handle].state != HID_DEV_CONNECTED ) in HID_HostWriteDev()
465 HIDH_TRACE_ERROR("HID_ERR_NO_CONNECTION dev_handle %d", dev_handle); in HID_HostWriteDev()
472 status = hidh_conn_snd_data(dev_handle, t_type, param, data, report_id, pbuf); in HID_HostWriteDev()
486 tHID_STATUS HID_HostCloseDev( UINT8 dev_handle ) in HID_HostCloseDev() argument
491 if( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) ) in HID_HostCloseDev()
494 if( hh_cb.devices[dev_handle].state != HID_DEV_CONNECTED ) in HID_HostCloseDev()
497 alarm_cancel(hh_cb.devices[dev_handle].conn.process_repage_timer); in HID_HostCloseDev()
498 hh_cb.devices[dev_handle].conn_tries = HID_HOST_MAX_CONN_RETRY+1; in HID_HostCloseDev()
499 return hidh_conn_disconnect( dev_handle ); in HID_HostCloseDev()