Lines Matching refs:device_index
106 u8 device_index; member
125 u8 device_index; member
353 dj_dev = djrcv_dev->paired_dj_devices[dj_report->device_index]; in logi_dj_recv_destroy_djhid_device()
354 djrcv_dev->paired_dj_devices[dj_report->device_index] = NULL; in logi_dj_recv_destroy_djhid_device()
388 if (djrcv_dev->paired_dj_devices[dj_report->device_index]) { in logi_dj_recv_add_djhid_device()
417 snprintf(tmpstr, sizeof(tmpstr), ":%d", dj_report->device_index); in logi_dj_recv_add_djhid_device()
432 dj_dev->device_index = dj_report->device_index; in logi_dj_recv_add_djhid_device()
435 djrcv_dev->paired_dj_devices[dj_report->device_index] = dj_dev; in logi_dj_recv_add_djhid_device()
446 djrcv_dev->paired_dj_devices[dj_report->device_index] = NULL; in logi_dj_recv_add_djhid_device()
500 if (!djrcv_dev->paired_dj_devices[dj_report.device_index]) { in delayedwork_callback()
537 djdev = djrcv_dev->paired_dj_devices[dj_report->device_index]; in logi_dj_recv_forward_null_report()
561 dj_device = djrcv_dev->paired_dj_devices[dj_report->device_index]; in logi_dj_recv_forward_report()
590 u8 *data = (u8 *)(&dj_report->device_index); in logi_dj_recv_send_report()
622 dj_report->device_index = 0xFF; in logi_dj_recv_query_paired_devices()
642 dj_report->device_index = 0xFF; in logi_dj_recv_switch_to_dj_mode()
721 buf[4] = (buf[4] & 0xf0) | (djdev->device_index - 1); in logi_dj_ll_raw_request()
723 buf[1] = djdev->device_index; in logi_dj_ll_raw_request()
739 out_buf[1] = djdev->device_index; in logi_dj_ll_raw_request()
861 if ((dj_report->device_index < DJ_DEVICE_INDEX_MIN) || in logi_dj_dj_event()
862 (dj_report->device_index > DJ_DEVICE_INDEX_MAX)) { in logi_dj_dj_event()
868 if (dj_report->device_index != DJ_RECEIVER_INDEX) in logi_dj_dj_event()
870 __func__, dj_report->device_index); in logi_dj_dj_event()
876 if (!djrcv_dev->paired_dj_devices[dj_report->device_index]) { in logi_dj_dj_event()
912 u8 device_index = dj_report->device_index; in logi_dj_hidpp_event() local
914 if (device_index == HIDPP_RECEIVER_INDEX) { in logi_dj_hidpp_event()
920 device_index = (data[4] & 0x0F) + 1; in logi_dj_hidpp_event()
933 if ((device_index < DJ_DEVICE_INDEX_MIN) || in logi_dj_hidpp_event()
934 (device_index > DJ_DEVICE_INDEX_MAX)) { in logi_dj_hidpp_event()
941 __func__, dj_report->device_index); in logi_dj_hidpp_event()
947 if (!djrcv_dev->paired_dj_devices[device_index]) in logi_dj_hidpp_event()
951 logi_dj_recv_forward_hidpp(djrcv_dev->paired_dj_devices[device_index], in logi_dj_hidpp_event()