Lines Matching defs:joycon_ctlr

566 struct joycon_ctlr {  struct
572 enum joycon_ctlr_state ctlr_state; argument
576 enum joycon_ctlr_type ctlr_type; argument
579 enum joycon_msg_type msg_type;
580 u8 subcmd_num;
581 struct mutex output_mutex;
582 u8 input_buf[JC_MAX_RESP_SIZE];
583 wait_queue_head_t wait;
584 bool received_resp;
585 u8 usb_ack_match;
586 u8 subcmd_ack_match;
587 bool received_input_report;
588 unsigned int last_input_report_msecs;
589 unsigned int last_subcmd_sent_msecs;
590 unsigned int consecutive_valid_report_deltas;
593 struct joycon_stick_cal left_stick_cal_x;
594 struct joycon_stick_cal left_stick_cal_y;
595 struct joycon_stick_cal right_stick_cal_x;
596 struct joycon_stick_cal right_stick_cal_y;
598 struct joycon_imu_cal accel_cal;
599 struct joycon_imu_cal gyro_cal;
602 s32 imu_cal_accel_divisor[3];
603 s32 imu_cal_gyro_divisor[3];
606 struct power_supply *battery;
607 struct power_supply_desc battery_desc;
608 u8 battery_capacity;
609 bool battery_charging;
610 bool host_powered;
613 u8 rumble_data[JC_RUMBLE_QUEUE_SIZE][JC_RUMBLE_DATA_SIZE];
614 int rumble_queue_head;
615 int rumble_queue_tail;
616 struct workqueue_struct *rumble_queue;
617 struct work_struct rumble_worker;
618 unsigned int rumble_msecs;
619 u16 rumble_ll_freq;
620 u16 rumble_lh_freq;
621 u16 rumble_rl_freq;
622 u16 rumble_rh_freq;
623 unsigned short rumble_zero_countdown;
626 struct input_dev *imu_input;
627 bool imu_first_packet_received; /* helps in initiating timestamp */
628 unsigned int imu_timestamp_us; /* timestamp we report to userspace */
629 unsigned int imu_last_pkt_ms; /* used to calc imu report delta */
631 unsigned int imu_delta_samples_count;
632 unsigned int imu_delta_samples_sum;
633 unsigned int imu_avg_delta_ms;