/linux-4.1.27/drivers/hid/ |
D | hid-sensor-hub.c | 63 struct hid_sensor_hub_device *hsdev; member 114 struct hid_sensor_hub_device **hsdev, in sensor_hub_get_callback() argument 126 callback->hsdev->start_collection_index) && in sensor_hub_get_callback() 128 callback->hsdev->end_collection_index)) { in sensor_hub_get_callback() 130 *hsdev = callback->hsdev; in sensor_hub_get_callback() 140 int sensor_hub_register_callback(struct hid_sensor_hub_device *hsdev, in sensor_hub_register_callback() argument 145 struct sensor_hub_data *pdata = hid_get_drvdata(hsdev->hdev); in sensor_hub_register_callback() 151 callback->hsdev == hsdev) { in sensor_hub_register_callback() 160 callback->hsdev = hsdev; in sensor_hub_register_callback() 182 int sensor_hub_remove_callback(struct hid_sensor_hub_device *hsdev, in sensor_hub_remove_callback() argument [all …]
|
D | hid-sensor-custom.c | 46 struct hid_sensor_hub_device *hsdev; member 193 power_val = hid_sensor_get_usage_index(sensor_inst->hsdev, in set_power_report_state() 198 report_val = hid_sensor_get_usage_index(sensor_inst->hsdev, in set_power_report_state() 206 ret = sensor_hub_set_feature(sensor_inst->hsdev, in set_power_report_state() 212 hid_err(sensor_inst->hsdev->hdev, in set_power_report_state() 221 ret = sensor_hub_set_feature(sensor_inst->hsdev, in set_power_report_state() 227 hid_err(sensor_inst->hsdev->hdev, in set_power_report_state() 250 ret = sensor_hub_device_open(sensor_inst->hsdev); in enable_sensor_store() 256 sensor_hub_device_close(sensor_inst->hsdev); in enable_sensor_store() 262 sensor_hub_device_close(sensor_inst->hsdev); in enable_sensor_store() [all …]
|
/linux-4.1.27/include/linux/ |
D | hid-sensor-hub.h | 102 int (*suspend)(struct hid_sensor_hub_device *hsdev, void *priv); 103 int (*resume)(struct hid_sensor_hub_device *hsdev, void *priv); 104 int (*capture_sample)(struct hid_sensor_hub_device *hsdev, 107 int (*send_event)(struct hid_sensor_hub_device *hsdev, u32 usage_id, 117 int sensor_hub_device_open(struct hid_sensor_hub_device *hsdev); 125 void sensor_hub_device_close(struct hid_sensor_hub_device *hsdev); 139 int sensor_hub_register_callback(struct hid_sensor_hub_device *hsdev, 151 int sensor_hub_remove_callback(struct hid_sensor_hub_device *hsdev, 168 int sensor_hub_input_get_attribute_info(struct hid_sensor_hub_device *hsdev, 190 int sensor_hub_input_attr_get_raw_value(struct hid_sensor_hub_device *hsdev, [all …]
|
/linux-4.1.27/drivers/ata/ |
D | sata_dwc_460ex.c | 157 struct sata_dwc_device *hsdev; member 180 (hsdevp)->hsdev) 272 struct sata_dwc_device *hsdev = hsdev_instance; in dma_dwc_xfer_done() local 273 struct ata_host *host = (struct ata_host *)hsdev->host; in dma_dwc_xfer_done() 307 struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap); in dma_dwc_xfer_setup() local 308 dma_addr_t addr = (dma_addr_t)&hsdev->sata_dwc_regs->dmadr; in dma_dwc_xfer_setup() 337 desc->callback_param = hsdev; in dma_dwc_xfer_setup() 339 dev_dbg(hsdev->dev, "%s sg: 0x%p, count: %d addr: %pad\n", in dma_dwc_xfer_setup() 391 static void clear_interrupt_bit(struct sata_dwc_device *hsdev, u32 bit) in clear_interrupt_bit() argument 393 out_le32(&hsdev->sata_dwc_regs->intpr, in clear_interrupt_bit() [all …]
|
/linux-4.1.27/drivers/rtc/ |
D | rtc-hid-sensor-time.c | 62 static int hid_time_proc_event(struct hid_sensor_hub_device *hsdev, in hid_time_proc_event() argument 89 static int hid_time_capture_sample(struct hid_sensor_hub_device *hsdev, in hid_time_capture_sample() argument 148 struct hid_sensor_hub_device *hsdev, in hid_time_parse_report() argument 155 if (sensor_hub_input_get_attribute_info(hsdev, in hid_time_parse_report() 214 sensor_hub_input_attr_get_raw_value(time_state->common_attributes.hsdev, in hid_rtc_read_time() 239 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_time_probe() local 250 time_state->common_attributes.hsdev = hsdev; in hid_time_probe() 253 ret = hid_sensor_parse_common_attributes(hsdev, in hid_time_probe() 261 ret = hid_time_parse_report(pdev, hsdev, HID_USAGE_SENSOR_TIME, in hid_time_probe() 271 ret = sensor_hub_register_callback(hsdev, HID_USAGE_SENSOR_TIME, in hid_time_probe() [all …]
|
/linux-4.1.27/drivers/iio/orientation/ |
D | hid-sensor-incl-3d.c | 125 incl_state->common_attributes.hsdev, in incl_3d_read_raw() 202 static int incl_3d_proc_event(struct hid_sensor_hub_device *hsdev, in incl_3d_proc_event() argument 219 static int incl_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in incl_3d_capture_sample() argument 248 struct hid_sensor_hub_device *hsdev, in incl_3d_parse_report() argument 255 ret = sensor_hub_input_get_attribute_info(hsdev, in incl_3d_parse_report() 265 ret = sensor_hub_input_get_attribute_info(hsdev, in incl_3d_parse_report() 275 ret = sensor_hub_input_get_attribute_info(hsdev, in incl_3d_parse_report() 298 sensor_hub_input_get_attribute_info(hsdev, in incl_3d_parse_report() 317 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_incl_3d_probe() local 328 incl_state->common_attributes.hsdev = hsdev; in hid_incl_3d_probe() [all …]
|
D | hid-sensor-rotation.c | 141 static int dev_rot_proc_event(struct hid_sensor_hub_device *hsdev, in dev_rot_proc_event() argument 158 static int dev_rot_capture_sample(struct hid_sensor_hub_device *hsdev, in dev_rot_capture_sample() argument 178 struct hid_sensor_hub_device *hsdev, in dev_rot_parse_report() argument 185 ret = sensor_hub_input_get_attribute_info(hsdev, in dev_rot_parse_report() 204 sensor_hub_input_get_attribute_info(hsdev, in dev_rot_parse_report() 224 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_dev_rot_probe() local 235 rot_state->common_attributes.hsdev = hsdev; in hid_dev_rot_probe() 238 ret = hid_sensor_parse_common_attributes(hsdev, in hid_dev_rot_probe() 253 ret = dev_rot_parse_report(pdev, hsdev, channels, in hid_dev_rot_probe() 290 ret = sensor_hub_register_callback(hsdev, in hid_dev_rot_probe() [all …]
|
/linux-4.1.27/drivers/iio/pressure/ |
D | hid-sensor-press.c | 99 press_state->common_attributes.hsdev, in press_read_raw() 177 static int press_proc_event(struct hid_sensor_hub_device *hsdev, in press_proc_event() argument 194 static int press_capture_sample(struct hid_sensor_hub_device *hsdev, in press_capture_sample() argument 217 struct hid_sensor_hub_device *hsdev, in press_parse_report() argument 224 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in press_parse_report() 243 sensor_hub_input_get_attribute_info(hsdev, in press_parse_report() 262 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_press_probe() local 272 press_state->common_attributes.hsdev = hsdev; in hid_press_probe() 275 ret = hid_sensor_parse_common_attributes(hsdev, in hid_press_probe() 289 ret = press_parse_report(pdev, hsdev, channels, in hid_press_probe() [all …]
|
/linux-4.1.27/drivers/iio/light/ |
D | hid-sensor-prox.c | 95 prox_state->common_attributes.hsdev, in prox_read_raw() 173 static int prox_proc_event(struct hid_sensor_hub_device *hsdev, in prox_proc_event() argument 190 static int prox_capture_sample(struct hid_sensor_hub_device *hsdev, in prox_capture_sample() argument 213 struct hid_sensor_hub_device *hsdev, in prox_parse_report() argument 220 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in prox_parse_report() 234 sensor_hub_input_get_attribute_info(hsdev, in prox_parse_report() 253 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_prox_probe() local 262 prox_state->common_attributes.hsdev = hsdev; in hid_prox_probe() 265 ret = hid_sensor_parse_common_attributes(hsdev, HID_USAGE_SENSOR_PROX, in hid_prox_probe() 279 ret = prox_parse_report(pdev, hsdev, in hid_prox_probe() [all …]
|
D | hid-sensor-als.c | 102 als_state->common_attributes.hsdev, in als_read_raw() 180 static int als_proc_event(struct hid_sensor_hub_device *hsdev, in als_proc_event() argument 197 static int als_capture_sample(struct hid_sensor_hub_device *hsdev, in als_capture_sample() argument 220 struct hid_sensor_hub_device *hsdev, in als_parse_report() argument 227 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in als_parse_report() 246 sensor_hub_input_get_attribute_info(hsdev, in als_parse_report() 265 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_als_probe() local 274 als_state->common_attributes.hsdev = hsdev; in hid_als_probe() 277 ret = hid_sensor_parse_common_attributes(hsdev, HID_USAGE_SENSOR_ALS, in hid_als_probe() 290 ret = als_parse_report(pdev, hsdev, channels, in hid_als_probe() [all …]
|
/linux-4.1.27/drivers/iio/common/hid-sensors/ |
D | hid-sensor-attributes.c | 155 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_poll_value() 176 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_samp_freq_value() 215 ret = sensor_hub_set_feature(st->hsdev, st->poll.report_id, in hid_sensor_write_samp_freq_value() 230 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_raw_hyst_value() 256 ret = sensor_hub_set_feature(st->hsdev, st->sensitivity.report_id, in hid_sensor_write_raw_hyst_value() 347 int hid_sensor_get_reporting_interval(struct hid_sensor_hub_device *hsdev, in hid_sensor_get_reporting_interval() argument 351 sensor_hub_input_get_attribute_info(hsdev, in hid_sensor_get_reporting_interval() 362 int hid_sensor_parse_common_attributes(struct hid_sensor_hub_device *hsdev, in hid_sensor_parse_common_attributes() argument 368 hid_sensor_get_reporting_interval(hsdev, usage_id, st); in hid_sensor_parse_common_attributes() 370 sensor_hub_input_get_attribute_info(hsdev, in hid_sensor_parse_common_attributes() [all …]
|
D | hid-sensor-trigger.c | 41 if (sensor_hub_device_open(st->hsdev)) in _hid_sensor_power_state() 46 state_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state() 50 report_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state() 63 sensor_hub_device_close(st->hsdev); in _hid_sensor_power_state() 64 state_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state() 68 report_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state() 76 sensor_hub_set_feature(st->hsdev, st->power_state.report_id, in _hid_sensor_power_state() 83 sensor_hub_set_feature(st->hsdev, st->report_state.report_id, in _hid_sensor_power_state() 89 sensor_hub_get_feature(st->hsdev, st->power_state.report_id, in _hid_sensor_power_state()
|
/linux-4.1.27/drivers/iio/accel/ |
D | hid-sensor-accel-3d.c | 124 accel_state->common_attributes.hsdev, in accel_3d_read_raw() 203 static int accel_3d_proc_event(struct hid_sensor_hub_device *hsdev, in accel_3d_proc_event() argument 220 static int accel_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in accel_3d_capture_sample() argument 248 struct hid_sensor_hub_device *hsdev, in accel_3d_parse_report() argument 257 ret = sensor_hub_input_get_attribute_info(hsdev, in accel_3d_parse_report() 281 sensor_hub_input_get_attribute_info(hsdev, in accel_3d_parse_report() 301 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_accel_3d_probe() local 312 accel_state->common_attributes.hsdev = hsdev; in hid_accel_3d_probe() 315 ret = hid_sensor_parse_common_attributes(hsdev, in hid_accel_3d_probe() 330 ret = accel_3d_parse_report(pdev, hsdev, channels, in hid_accel_3d_probe() [all …]
|
/linux-4.1.27/drivers/iio/gyro/ |
D | hid-sensor-gyro-3d.c | 124 gyro_state->common_attributes.hsdev, in gyro_3d_read_raw() 203 static int gyro_3d_proc_event(struct hid_sensor_hub_device *hsdev, in gyro_3d_proc_event() argument 220 static int gyro_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in gyro_3d_capture_sample() argument 248 struct hid_sensor_hub_device *hsdev, in gyro_3d_parse_report() argument 257 ret = sensor_hub_input_get_attribute_info(hsdev, in gyro_3d_parse_report() 281 sensor_hub_input_get_attribute_info(hsdev, in gyro_3d_parse_report() 300 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_gyro_3d_probe() local 309 gyro_state->common_attributes.hsdev = hsdev; in hid_gyro_3d_probe() 312 ret = hid_sensor_parse_common_attributes(hsdev, in hid_gyro_3d_probe() 327 ret = gyro_3d_parse_report(pdev, hsdev, channels, in hid_gyro_3d_probe() [all …]
|
/linux-4.1.27/drivers/iio/magnetometer/ |
D | hid-sensor-magn-3d.c | 171 magn_state->common_attributes.hsdev, in magn_3d_read_raw() 249 static int magn_3d_proc_event(struct hid_sensor_hub_device *hsdev, in magn_3d_proc_event() argument 264 static int magn_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in magn_3d_capture_sample() argument 305 struct hid_sensor_hub_device *hsdev, in magn_3d_parse_report() argument 321 status = sensor_hub_input_get_attribute_info(hsdev, in magn_3d_parse_report() 399 sensor_hub_input_get_attribute_info(hsdev, in magn_3d_parse_report() 419 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_magn_3d_probe() local 431 magn_state->common_attributes.hsdev = hsdev; in hid_magn_3d_probe() 434 ret = hid_sensor_parse_common_attributes(hsdev, in hid_magn_3d_probe() 442 ret = magn_3d_parse_report(pdev, hsdev, in hid_magn_3d_probe() [all …]
|
/linux-4.1.27/Documentation/hid/ |
D | hid-sensor.txt | 87 int sensor_hub_register_callback(struct hid_sensor_hub_device *hsdev, 95 int sensor_hub_remove_callback(struct hid_sensor_hub_device *hsdev, 102 int sensor_hub_input_get_attribute_info(struct hid_sensor_hub_device *hsdev, 114 int sensor_hub_set_feature(struct hid_sensor_hub_device *hsdev, u32 report_id, 123 int sensor_hub_get_feature(struct hid_sensor_hub_device *hsdev, u32 report_id, 132 int sensor_hub_input_attr_get_raw_value(struct hid_sensor_hub_device *hsdev,
|