| /linux/drivers/hid/ |
| H A D | hid-sensor-hub.c | 50 struct hid_sensor_hub_device *hsdev; member 101 struct hid_sensor_hub_device **hsdev, in sensor_hub_get_callback() argument 113 callback->hsdev->start_collection_index) && in sensor_hub_get_callback() 115 callback->hsdev->end_collection_index)) { in sensor_hub_get_callback() 117 *hsdev = callback->hsdev; in sensor_hub_get_callback() 127 int sensor_hub_register_callback(struct hid_sensor_hub_device *hsdev, in sensor_hub_register_callback() argument 132 struct sensor_hub_data *pdata = hid_get_drvdata(hsdev->hdev); in sensor_hub_register_callback() 138 callback->hsdev == hsdev) { in sensor_hub_register_callback() 147 callback->hsdev = hsdev; in sensor_hub_register_callback() 169 int sensor_hub_remove_callback(struct hid_sensor_hub_device *hsdev, in sensor_hub_remove_callback() argument [all …]
|
| /linux/drivers/ata/ |
| H A D | sata_dwc_460ex.c | 141 struct sata_dwc_device *hsdev; member 158 #define HSDEV_FROM_HSDEVP(p) ((struct sata_dwc_device *)(p)->hsdev) 204 struct sata_dwc_device *hsdev = hsdevp->hsdev; in sata_dwc_dma_get_channel_old() local 206 struct device *dev = hsdev->dev; in sata_dwc_dma_get_channel_old() 225 struct sata_dwc_device *hsdev) in sata_dwc_dma_init_old() argument 229 hsdev->dma = devm_kzalloc(dev, sizeof(*hsdev->dma), GFP_KERNEL); in sata_dwc_dma_init_old() 230 if (!hsdev->dma) in sata_dwc_dma_init_old() 233 hsdev->dma->dev = dev; in sata_dwc_dma_init_old() 234 hsdev->dma->id = pdev->id; in sata_dwc_dma_init_old() 237 hsdev->dma->irq = platform_get_irq(pdev, 1); in sata_dwc_dma_init_old() [all …]
|
| /linux/include/linux/ |
| H A D | hid-sensor-hub.h | 93 int (*suspend)(struct hid_sensor_hub_device *hsdev, void *priv); 94 int (*resume)(struct hid_sensor_hub_device *hsdev, void *priv); 95 int (*capture_sample)(struct hid_sensor_hub_device *hsdev, 98 int (*send_event)(struct hid_sensor_hub_device *hsdev, u32 usage_id, 108 int sensor_hub_device_open(struct hid_sensor_hub_device *hsdev); 116 void sensor_hub_device_close(struct hid_sensor_hub_device *hsdev); 130 int sensor_hub_register_callback(struct hid_sensor_hub_device *hsdev, 143 int sensor_hub_remove_callback(struct hid_sensor_hub_device *hsdev, 160 int sensor_hub_input_get_attribute_info(struct hid_sensor_hub_device *hsdev, 183 int sensor_hub_input_attr_get_raw_value(struct hid_sensor_hub_device *hsdev, [all …]
|
| /linux/drivers/iio/light/ |
| H A D | hid-sensor-prox.c | 76 struct hid_sensor_hub_device *hsdev; in prox_read_raw() local 91 hsdev = prox_state->common_attributes.hsdev; in prox_read_raw() 94 *val = sensor_hub_input_attr_get_raw_value(hsdev, in prox_read_raw() 95 hsdev->usage, in prox_read_raw() 164 static int prox_proc_event(struct hid_sensor_hub_device *hsdev, in prox_proc_event() argument 180 static int prox_capture_sample(struct hid_sensor_hub_device *hsdev, in prox_capture_sample() argument 216 struct hid_sensor_hub_device *hsdev, in prox_parse_report() argument 227 ret = sensor_hub_input_get_attribute_info(hsdev, in prox_parse_report() 229 hsdev->usage, in prox_parse_report() 263 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_prox_probe() local [all …]
|
| H A D | hid-sensor-als.c | 126 struct hid_sensor_hub_device *hsdev = als_state->common_attributes.hsdev; in als_read_raw() local 166 hsdev, hsdev->usage, address, report_id, in als_read_raw() 241 static int als_proc_event(struct hid_sensor_hub_device *hsdev, in als_proc_event() argument 262 static int als_capture_sample(struct hid_sensor_hub_device *hsdev, in als_capture_sample() argument 304 struct hid_sensor_hub_device *hsdev, in als_parse_report() argument 315 ret = sensor_hub_input_get_attribute_info(hsdev, in als_parse_report() 351 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_als_probe() local 363 als_state->common_attributes.hsdev = hsdev; in hid_als_probe() 366 ret = hid_sensor_parse_common_attributes(hsdev, in hid_als_probe() 367 hsdev->usage, in hid_als_probe() [all …]
|
| /linux/drivers/iio/position/ |
| H A D | hid-sensor-custom-intel-hinge.c | 113 struct hid_sensor_hub_device *hsdev; in hinge_read_raw() local 117 hsdev = st->common_attributes.hsdev; in hinge_read_raw() 128 *val = sensor_hub_input_attr_get_raw_value(st->common_attributes.hsdev, in hinge_read_raw() 129 hsdev->usage, in hinge_read_raw() 191 static int hinge_proc_event(struct hid_sensor_hub_device *hsdev, in hinge_proc_event() argument 210 static int hinge_capture_sample(struct hid_sensor_hub_device *hsdev, in hinge_capture_sample() argument 237 struct hid_sensor_hub_device *hsdev, in hinge_parse_report() argument 245 ret = sensor_hub_input_get_attribute_info(hsdev, in hinge_parse_report() 266 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_hinge_probe() local 279 st->common_attributes.hsdev = hsdev; in hid_hinge_probe() [all …]
|
| /linux/drivers/iio/orientation/ |
| H A D | hid-sensor-rotation.c | 87 struct hid_sensor_hub_device *hsdev = rot_state->common_attributes.hsdev; in dev_rot_read_raw() local 108 ret_type = sensor_hub_input_attr_read_values(hsdev, in dev_rot_read_raw() 109 hsdev->usage, in dev_rot_read_raw() 210 static int dev_rot_proc_event(struct hid_sensor_hub_device *hsdev, in dev_rot_proc_event() argument 242 static int dev_rot_capture_sample(struct hid_sensor_hub_device *hsdev, in dev_rot_capture_sample() argument 273 struct hid_sensor_hub_device *hsdev, in dev_rot_parse_report() argument 279 ret = sensor_hub_input_get_attribute_info(hsdev, in dev_rot_parse_report() 294 hsdev->usage, in dev_rot_parse_report() 304 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_dev_rot_probe() local 318 rot_state->common_attributes.hsdev = hsdev; in hid_dev_rot_probe() [all …]
|
| H A D | hid-sensor-incl-3d.c | 118 incl_state->common_attributes.hsdev, in incl_3d_read_raw() 186 static int incl_3d_proc_event(struct hid_sensor_hub_device *hsdev, in incl_3d_proc_event() argument 208 static int incl_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in incl_3d_capture_sample() argument 242 struct hid_sensor_hub_device *hsdev, in incl_3d_parse_report() argument 249 ret = sensor_hub_input_get_attribute_info(hsdev, in incl_3d_parse_report() 259 ret = sensor_hub_input_get_attribute_info(hsdev, in incl_3d_parse_report() 269 ret = sensor_hub_input_get_attribute_info(hsdev, in incl_3d_parse_report() 296 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_incl_3d_probe() local 310 incl_state->common_attributes.hsdev = hsdev; in hid_incl_3d_probe() 313 ret = hid_sensor_parse_common_attributes(hsdev, in hid_incl_3d_probe() [all …]
|
| /linux/drivers/rtc/ |
| H A D | rtc-hid-sensor-time.c | 49 static int hid_time_proc_event(struct hid_sensor_hub_device *hsdev, in hid_time_proc_event() argument 76 static int hid_time_capture_sample(struct hid_sensor_hub_device *hsdev, in hid_time_capture_sample() argument 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() 200 sensor_hub_input_attr_get_raw_value(time_state->common_attributes.hsdev, in hid_rtc_read_time() 225 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_time_probe() local 236 time_state->common_attributes.hsdev = hsdev; in hid_time_probe() 239 ret = hid_sensor_parse_common_attributes(hsdev, in hid_time_probe() 249 ret = hid_time_parse_report(pdev, hsdev, HID_USAGE_SENSOR_TIME, in hid_time_probe() 259 ret = sensor_hub_register_callback(hsdev, HID_USAGE_SENSOR_TIME, in hid_time_probe() [all …]
|
| /linux/drivers/iio/accel/ |
| H A D | hid-sensor-accel-3d.c | 132 struct hid_sensor_hub_device *hsdev = in accel_3d_read_raw() local 133 accel_state->common_attributes.hsdev; in accel_3d_read_raw() 145 accel_state->common_attributes.hsdev, in accel_3d_read_raw() 146 hsdev->usage, address, report_id, in accel_3d_read_raw() 221 static int accel_3d_proc_event(struct hid_sensor_hub_device *hsdev, in accel_3d_proc_event() argument 244 static int accel_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in accel_3d_capture_sample() argument 279 struct hid_sensor_hub_device *hsdev, in accel_3d_parse_report() argument 287 ret = sensor_hub_input_get_attribute_info(hsdev, in accel_3d_parse_report() 307 hsdev->usage, in accel_3d_parse_report() 317 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_accel_3d_probe() local [all …]
|
| /linux/drivers/iio/humidity/ |
| H A D | hid-sensor-humidity.c | 68 humid_st->common_attributes.hsdev, in humidity_read_raw() 128 static int humidity_proc_event(struct hid_sensor_hub_device *hsdev, in humidity_proc_event() argument 142 static int humidity_capture_sample(struct hid_sensor_hub_device *hsdev, in humidity_capture_sample() 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() 244 ret = sensor_hub_register_callback(hsdev, HID_USAGE_SENSOR_HUMIDITY, in hid_humidity_probe() [all …]
|
| /linux/drivers/iio/temperature/ |
| H A D | hid-sensor-temperature.c | 69 temp_st->common_attributes.hsdev, in temperature_read_raw() 126 static int temperature_proc_event(struct hid_sensor_hub_device *hsdev, in temperature_proc_event() argument 141 static int temperature_capture_sample(struct hid_sensor_hub_device *hsdev, in temperature_capture_sample() 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() 196 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_temperature_probe() local 204 temp_st->common_attributes.hsdev = hsdev; in hid_temperature_probe() 207 ret = hid_sensor_parse_common_attributes(hsdev, in hid_temperature_probe() 220 ret = temperature_parse_report(pdev, hsdev, temp_chans, in hid_temperature_probe() 241 ret = sensor_hub_register_callback(hsdev, HID_USAGE_SENSOR_TEMPERATURE, in hid_temperature_probe() [all …]
|
| /linux/drivers/iio/pressure/ |
| H A D | hid-sensor-press.c | 85 press_state->common_attributes.hsdev, in press_read_raw() 153 static int press_proc_event(struct hid_sensor_hub_device *hsdev, in press_proc_event() argument 173 static int press_capture_sample(struct hid_sensor_hub_device *hsdev, in press_capture_sample() argument 200 struct hid_sensor_hub_device *hsdev, in press_parse_report() argument 207 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in press_parse_report() 233 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_press_probe() local 245 press_state->common_attributes.hsdev = hsdev; in hid_press_probe() 248 ret = hid_sensor_parse_common_attributes(hsdev, in hid_press_probe() 265 ret = press_parse_report(pdev, hsdev, in hid_press_probe() 291 ret = sensor_hub_register_callback(hsdev, HID_USAGE_SENSOR_PRESSURE, in hid_press_probe() [all …]
|
| /linux/drivers/iio/gyro/ |
| H A D | hid-sensor-gyro-3d.c | 106 gyro_state->common_attributes.hsdev, in gyro_3d_read_raw() 174 static int gyro_3d_proc_event(struct hid_sensor_hub_device *hsdev, in gyro_3d_proc_event() argument 195 static int gyro_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in gyro_3d_capture_sample() argument 229 struct hid_sensor_hub_device *hsdev, in gyro_3d_parse_report() argument 237 ret = sensor_hub_input_get_attribute_info(hsdev, in gyro_3d_parse_report() 267 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_gyro_3d_probe() local 279 gyro_state->common_attributes.hsdev = hsdev; in hid_gyro_3d_probe() 282 ret = hid_sensor_parse_common_attributes(hsdev, in hid_gyro_3d_probe() 299 ret = gyro_3d_parse_report(pdev, hsdev, in hid_gyro_3d_probe() 324 ret = sensor_hub_register_callback(hsdev, HID_USAGE_SENSOR_GYRO_3D, in hid_gyro_3d_probe() [all …]
|
| /linux/drivers/iio/magnetometer/ |
| H A D | hid-sensor-magn-3d.c | 156 magn_state->magn_flux_attributes.hsdev, in magn_3d_read_raw() 267 static int magn_3d_proc_event(struct hid_sensor_hub_device *hsdev, in magn_3d_proc_event() argument 288 static int magn_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in magn_3d_capture_sample() argument 334 struct hid_sensor_hub_device *hsdev, in magn_3d_parse_report() argument 350 status = sensor_hub_input_get_attribute_info(hsdev, in magn_3d_parse_report() 437 sensor_hub_input_get_attribute_info(hsdev, in magn_3d_parse_report() 453 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_magn_3d_probe() local 469 magn_state->magn_flux_attributes.hsdev = hsdev; in hid_magn_3d_probe() 472 ret = hid_sensor_parse_common_attributes(hsdev, in hid_magn_3d_probe() 485 ret = magn_3d_parse_report(pdev, hsdev, in hid_magn_3d_probe() [all …]
|
| /linux/Documentation/hid/ |
| H A D | hid-sensor.rst | 94 int sensor_hub_register_callback(struct hid_sensor_hub_device *hsdev, 102 int sensor_hub_remove_callback(struct hid_sensor_hub_device *hsdev, 110 int sensor_hub_input_get_attribute_info(struct hid_sensor_hub_device *hsdev, 123 int sensor_hub_set_feature(struct hid_sensor_hub_device *hsdev, u32 report_id, 132 int sensor_hub_get_feature(struct hid_sensor_hub_device *hsdev, u32 report_id, 141 int sensor_hub_input_attr_get_raw_value(struct hid_sensor_hub_device *hsdev,
|