| /drivers/hid/ |
| A D | hid-sensor-hub.c | 117 *hsdev = callback->hsdev; in sensor_hub_get_callback() 138 callback->hsdev == hsdev) { in sensor_hub_register_callback() 147 callback->hsdev = hsdev; in sensor_hub_register_callback() 179 callback->hsdev == hsdev) { in sensor_hub_remove_callback() 308 memset(&hsdev->pending, 0, sizeof(hsdev->pending)); in sensor_hub_input_attr_get_raw_value() 513 &hsdev, &priv); in sensor_hub_raw_event() 518 if (hsdev->pending.status && (hsdev->pending.attr_usage_id == in sensor_hub_raw_event() 665 hsdev = devm_kzalloc(&hdev->dev, sizeof(*hsdev), in sensor_hub_probe() 667 if (!hsdev) { in sensor_hub_probe() 672 hsdev->hdev = hdev; in sensor_hub_probe() [all …]
|
| A D | hid-sensor-custom.c | 41 struct hid_sensor_hub_device *hsdev; member 351 sensor_inst->hsdev, in show_value() 352 sensor_inst->hsdev->usage, in show_value() 439 header.usage_id = hsdev->usage; in hid_sensor_capture_sample() 535 struct hid_sensor_hub_device *hsdev = sensor_inst->hsdev; in hid_sensor_custom_add_fields() local 564 struct hid_sensor_hub_device *hsdev = sensor_inst->hsdev; in hid_sensor_custom_add_attributes() local 961 sizeof(*hsdev)); in hid_sensor_register_platform_device() 981 sensor_inst->hsdev = hsdev; in hid_sensor_custom_probe() 1001 ret = sensor_hub_register_callback(hsdev, hsdev->usage, in hid_sensor_custom_probe() 1029 sensor_hub_remove_callback(hsdev, hsdev->usage); in hid_sensor_custom_probe() [all …]
|
| /drivers/ata/ |
| A D | sata_dwc_460ex.c | 205 struct sata_dwc_device *hsdev = hsdevp->hsdev; in sata_dwc_dma_get_channel_old() local 231 hsdev->dma = devm_kzalloc(dev, sizeof(*hsdev->dma), GFP_KERNEL); in sata_dwc_dma_init_old() 232 if (!hsdev->dma) in sata_dwc_dma_init_old() 256 if (!hsdev->dma) in sata_dwc_dma_exit_old() 605 if ((tag_mask | hsdev->sactive_issued) != hsdev->sactive_issued) { in sata_dwc_isr() 759 hsdev->sactive_queued = hsdev->sactive_queued & mask; in sata_dwc_qc_complete() 760 hsdev->sactive_issued = hsdev->sactive_issued & mask; in sata_dwc_qc_complete() 808 struct sata_dwc_device *hsdev = hsdevp->hsdev; in sata_dwc_dma_get_channel() local 858 hsdevp->hsdev = hsdev; in sata_dwc_port_start() 1142 hsdev = devm_kzalloc(dev, sizeof(*hsdev), GFP_KERNEL); in sata_dwc_probe() [all …]
|
| /drivers/iio/position/ |
| A D | hid-sensor-custom-intel-hinge.c | 114 struct hid_sensor_hub_device *hsdev; in hinge_read_raw() local 118 hsdev = st->common_attributes.hsdev; in hinge_read_raw() 130 hsdev->usage, in hinge_read_raw() 237 struct hid_sensor_hub_device *hsdev, in hinge_parse_report() argument 279 st->common_attributes.hsdev = hsdev; in hid_hinge_probe() 285 ret = hid_sensor_parse_common_attributes(hsdev, hsdev->usage, in hid_hinge_probe() 300 ret = hinge_parse_report(pdev, hsdev, in hid_hinge_probe() 302 hsdev->usage, st); in hid_hinge_probe() 323 ret = sensor_hub_register_callback(hsdev, hsdev->usage, &st->callbacks); in hid_hinge_probe() 338 sensor_hub_remove_callback(hsdev, hsdev->usage); in hid_hinge_probe() [all …]
|
| /drivers/rtc/ |
| A D | rtc-hid-sensor-time.c | 135 struct hid_sensor_hub_device *hsdev, in hid_time_parse_report() argument 142 if (sensor_hub_input_get_attribute_info(hsdev, in hid_time_parse_report() 236 time_state->common_attributes.hsdev = hsdev; in hid_time_probe() 239 ret = hid_sensor_parse_common_attributes(hsdev, in hid_time_probe() 266 ret = sensor_hub_device_open(hsdev); in hid_time_probe() 276 hid_device_io_start(hsdev->hdev); in hid_time_probe() 283 hid_device_io_stop(hsdev->hdev); in hid_time_probe() 293 sensor_hub_device_close(hsdev); in hid_time_probe() 295 sensor_hub_remove_callback(hsdev, HID_USAGE_SENSOR_TIME); in hid_time_probe() 303 sensor_hub_device_close(hsdev); in hid_time_remove() [all …]
|
| /drivers/iio/common/hid-sensors/ |
| A D | hid-sensor-attributes.c | 163 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_poll_value() 184 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_samp_freq_value() 228 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_write_samp_freq_value() 246 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_raw_hyst_value() 269 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_raw_hyst_rel_value() 304 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_write_raw_hyst_value() 335 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_write_raw_hyst_rel_value() 444 sensor_hub_input_get_attribute_info(hsdev, in hid_sensor_get_reporting_interval() 543 hsdev, HID_FEATURE_REPORT, usage_id, in hid_sensor_parse_common_attributes() 550 hsdev, HID_FEATURE_REPORT, usage_id, in hid_sensor_parse_common_attributes() [all …]
|
| A D | hid-sensor-trigger.c | 91 if (sensor_hub_device_open(st->hsdev)) in _hid_sensor_power_state() 96 state_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state() 100 report_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state() 113 sensor_hub_device_close(st->hsdev); in _hid_sensor_power_state() 114 state_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state() 118 report_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state() 126 sensor_hub_set_feature(st->hsdev, st->power_state.report_id, in _hid_sensor_power_state() 133 sensor_hub_set_feature(st->hsdev, st->report_state.report_id, in _hid_sensor_power_state() 142 sensor_hub_get_feature(st->hsdev, st->power_state.report_id, in _hid_sensor_power_state() 187 sensor_hub_set_feature(attrb->hsdev, attrb->poll.report_id, in hid_sensor_set_power_work() [all …]
|
| /drivers/iio/light/ |
| A D | hid-sensor-prox.c | 88 struct hid_sensor_hub_device *hsdev; in prox_read_raw() local 103 hsdev = prox_state->common_attributes.hsdev; in prox_read_raw() 106 *val = sensor_hub_input_attr_get_raw_value(hsdev, in prox_read_raw() 107 hsdev->usage, in prox_read_raw() 231 struct hid_sensor_hub_device *hsdev, in prox_parse_report() argument 242 ret = sensor_hub_input_get_attribute_info(hsdev, in prox_parse_report() 244 hsdev->usage, in prox_parse_report() 288 prox_state->common_attributes.hsdev = hsdev; in hid_prox_probe() 291 ret = hid_sensor_parse_common_attributes(hsdev, hsdev->usage, in hid_prox_probe() 331 ret = sensor_hub_register_callback(hsdev, hsdev->usage, in hid_prox_probe() [all …]
|
| A D | hid-sensor-als.c | 138 struct hid_sensor_hub_device *hsdev = als_state->common_attributes.hsdev; in als_read_raw() local 178 hsdev, hsdev->usage, address, report_id, in als_read_raw() 316 struct hid_sensor_hub_device *hsdev, in als_parse_report() argument 327 ret = sensor_hub_input_get_attribute_info(hsdev, in als_parse_report() 371 als_state->common_attributes.hsdev = hsdev; in hid_als_probe() 374 ret = hid_sensor_parse_common_attributes(hsdev, in hid_als_probe() 375 hsdev->usage, in hid_als_probe() 384 ret = als_parse_report(pdev, hsdev, in hid_als_probe() 385 hsdev->usage, in hid_als_probe() 423 ret = sensor_hub_register_callback(hsdev, hsdev->usage, &als_state->callbacks); in hid_als_probe() [all …]
|
| /drivers/iio/accel/ |
| A D | hid-sensor-accel-3d.c | 144 struct hid_sensor_hub_device *hsdev = in accel_3d_read_raw() local 145 accel_state->common_attributes.hsdev; in accel_3d_read_raw() 157 accel_state->common_attributes.hsdev, in accel_3d_read_raw() 158 hsdev->usage, address, report_id, in accel_3d_read_raw() 294 struct hid_sensor_hub_device *hsdev, in accel_3d_parse_report() argument 321 hsdev->usage, in accel_3d_parse_report() 347 accel_state->common_attributes.hsdev = hsdev; in hid_accel_3d_probe() 362 hsdev->usage, in hid_accel_3d_probe() 379 hsdev->usage, accel_state); in hid_accel_3d_probe() 407 ret = sensor_hub_register_callback(hsdev, hsdev->usage, in hid_accel_3d_probe() [all …]
|
| /drivers/iio/orientation/ |
| A D | hid-sensor-rotation.c | 198 struct hid_sensor_hub_device *hsdev, in dev_rot_parse_report() argument 205 ret = sensor_hub_input_get_attribute_info(hsdev, in dev_rot_parse_report() 223 hsdev->usage, in dev_rot_parse_report() 247 rot_state->common_attributes.hsdev = hsdev; in hid_dev_rot_probe() 250 switch (hsdev->usage) { in hid_dev_rot_probe() 264 ret = hid_sensor_parse_common_attributes(hsdev, in hid_dev_rot_probe() 265 hsdev->usage, in hid_dev_rot_probe() 282 ret = dev_rot_parse_report(pdev, hsdev, in hid_dev_rot_probe() 284 hsdev->usage, rot_state); in hid_dev_rot_probe() 313 ret = sensor_hub_register_callback(hsdev, hsdev->usage, in hid_dev_rot_probe() [all …]
|
| A D | hid-sensor-incl-3d.c | 121 incl_state->common_attributes.hsdev, in incl_3d_read_raw() 191 static int incl_3d_proc_event(struct hid_sensor_hub_device *hsdev, in incl_3d_proc_event() 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() 302 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_incl_3d_probe() local 316 incl_state->common_attributes.hsdev = hsdev; in hid_incl_3d_probe() 319 ret = hid_sensor_parse_common_attributes(hsdev, in hid_incl_3d_probe() 336 ret = incl_3d_parse_report(pdev, hsdev, in hid_incl_3d_probe() [all …]
|
| /drivers/iio/humidity/ |
| A D | hid-sensor-humidity.c | 69 humid_st->common_attributes.hsdev, in humidity_read_raw() 129 static int humidity_proc_event(struct hid_sensor_hub_device *hsdev, in humidity_proc_event() argument 162 struct hid_sensor_hub_device *hsdev, in humidity_parse_report() argument 169 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in humidity_parse_report() 199 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_humidity_probe() local 207 humid_st->common_attributes.hsdev = hsdev; in hid_humidity_probe() 210 ret = hid_sensor_parse_common_attributes(hsdev, in hid_humidity_probe() 223 ret = humidity_parse_report(pdev, hsdev, humid_chans, in hid_humidity_probe() 256 sensor_hub_remove_callback(hsdev, HID_USAGE_SENSOR_HUMIDITY); in hid_humidity_probe() 265 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_humidity_remove() local [all …]
|
| /drivers/iio/temperature/ |
| A D | hid-sensor-temperature.c | 70 temp_st->common_attributes.hsdev, in temperature_read_raw() 127 static int temperature_proc_event(struct hid_sensor_hub_device *hsdev, in temperature_proc_event() argument 160 struct hid_sensor_hub_device *hsdev, in temperature_parse_report() argument 167 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in temperature_parse_report() 197 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_temperature_probe() local 205 temp_st->common_attributes.hsdev = hsdev; in hid_temperature_probe() 208 ret = hid_sensor_parse_common_attributes(hsdev, in hid_temperature_probe() 221 ret = temperature_parse_report(pdev, hsdev, temp_chans, in hid_temperature_probe() 254 sensor_hub_remove_callback(hsdev, HID_USAGE_SENSOR_TEMPERATURE); in hid_temperature_probe() 263 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_temperature_remove() local [all …]
|
| /drivers/iio/pressure/ |
| A D | hid-sensor-press.c | 97 press_state->common_attributes.hsdev, in press_read_raw() 167 static int press_proc_event(struct hid_sensor_hub_device *hsdev, in press_proc_event() argument 188 static int press_capture_sample(struct hid_sensor_hub_device *hsdev, in press_capture_sample() argument 215 struct hid_sensor_hub_device *hsdev, in press_parse_report() argument 222 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in press_parse_report() 245 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_press_probe() local 258 press_state->common_attributes.hsdev = hsdev; in hid_press_probe() 261 ret = hid_sensor_parse_common_attributes(hsdev, in hid_press_probe() 278 ret = press_parse_report(pdev, hsdev, in hid_press_probe() 329 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_press_remove() local [all …]
|
| /drivers/iio/gyro/ |
| A D | hid-sensor-gyro-3d.c | 118 gyro_state->common_attributes.hsdev, in gyro_3d_read_raw() 189 static int gyro_3d_proc_event(struct hid_sensor_hub_device *hsdev, in gyro_3d_proc_event() argument 245 struct hid_sensor_hub_device *hsdev, in gyro_3d_parse_report() argument 254 ret = sensor_hub_input_get_attribute_info(hsdev, in gyro_3d_parse_report() 282 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_gyro_3d_probe() local 294 gyro_state->common_attributes.hsdev = hsdev; in hid_gyro_3d_probe() 297 ret = hid_sensor_parse_common_attributes(hsdev, in hid_gyro_3d_probe() 314 ret = gyro_3d_parse_report(pdev, hsdev, in hid_gyro_3d_probe() 345 ret = sensor_hub_register_callback(hsdev, HID_USAGE_SENSOR_GYRO_3D, in hid_gyro_3d_probe() 364 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_gyro_3d_remove() local [all …]
|
| /drivers/iio/magnetometer/ |
| A D | hid-sensor-magn-3d.c | 168 magn_state->magn_flux_attributes.hsdev, in magn_3d_read_raw() 282 static int magn_3d_proc_event(struct hid_sensor_hub_device *hsdev, in magn_3d_proc_event() argument 350 struct hid_sensor_hub_device *hsdev, in magn_3d_parse_report() argument 366 status = sensor_hub_input_get_attribute_info(hsdev, in magn_3d_parse_report() 453 sensor_hub_input_get_attribute_info(hsdev, in magn_3d_parse_report() 469 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_magn_3d_probe() local 485 magn_state->magn_flux_attributes.hsdev = hsdev; in hid_magn_3d_probe() 488 ret = hid_sensor_parse_common_attributes(hsdev, in hid_magn_3d_probe() 501 ret = magn_3d_parse_report(pdev, hsdev, in hid_magn_3d_probe() 552 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_magn_3d_remove() local [all …]
|