/kernel/linux/linux-5.10/drivers/hid/ |
H A D | hid-sensor-hub.c | 21 * @hsdev: Stored hid instance for current hub device. 51 struct hid_sensor_hub_device *hsdev; member 102 struct hid_sensor_hub_device **hsdev, in sensor_hub_get_callback() 114 callback->hsdev->start_collection_index) && in sensor_hub_get_callback() 116 callback->hsdev->end_collection_index)) { in sensor_hub_get_callback() 118 *hsdev = callback->hsdev; in sensor_hub_get_callback() 128 int sensor_hub_register_callback(struct hid_sensor_hub_device *hsdev, in sensor_hub_register_callback() argument 133 struct sensor_hub_data *pdata = hid_get_drvdata(hsdev->hdev); in sensor_hub_register_callback() 139 callback->hsdev in sensor_hub_register_callback() 98 sensor_hub_get_callback( struct hid_device *hdev, u32 usage_id, int collection_index, struct hid_sensor_hub_device **hsdev, void **priv) sensor_hub_get_callback() argument 170 sensor_hub_remove_callback(struct hid_sensor_hub_device *hsdev, u32 usage_id) sensor_hub_remove_callback() argument 191 sensor_hub_set_feature(struct hid_sensor_hub_device *hsdev, u32 report_id, u32 field_index, int buffer_size, void *buffer) sensor_hub_set_feature() argument 239 sensor_hub_get_feature(struct hid_sensor_hub_device *hsdev, u32 report_id, u32 field_index, int buffer_size, void *buffer) sensor_hub_get_feature() argument 291 sensor_hub_input_attr_get_raw_value(struct hid_sensor_hub_device *hsdev, u32 usage_id, u32 attr_usage_id, u32 report_id, enum sensor_hub_read_flags flag, bool is_signed) sensor_hub_input_attr_get_raw_value() argument 353 hid_sensor_get_usage_index(struct hid_sensor_hub_device *hsdev, u32 report_id, int field_index, u32 usage_id) hid_sensor_get_usage_index() argument 375 sensor_hub_input_get_attribute_info(struct hid_sensor_hub_device *hsdev, u8 type, u32 usage_id, u32 attr_usage_id, struct hid_sensor_hub_attribute_info *info) sensor_hub_input_get_attribute_info() argument 482 struct hid_sensor_hub_device *hsdev = NULL; sensor_hub_raw_event() local 549 sensor_hub_device_open(struct hid_sensor_hub_device *hsdev) sensor_hub_device_open() argument 570 sensor_hub_device_close(struct hid_sensor_hub_device *hsdev) sensor_hub_device_close() argument 612 struct hid_sensor_hub_device *hsdev; sensor_hub_probe() local 744 struct hid_sensor_hub_device *hsdev = sensor_hub_remove() local [all...] |
H A D | hid-sensor-custom.c | 38 struct hid_sensor_hub_device *hsdev; member 184 power_val = hid_sensor_get_usage_index(sensor_inst->hsdev, in set_power_report_state() 189 report_val = hid_sensor_get_usage_index(sensor_inst->hsdev, in set_power_report_state() 197 ret = sensor_hub_set_feature(sensor_inst->hsdev, in set_power_report_state() 203 hid_err(sensor_inst->hsdev->hdev, in set_power_report_state() 212 ret = sensor_hub_set_feature(sensor_inst->hsdev, in set_power_report_state() 218 hid_err(sensor_inst->hsdev->hdev, in set_power_report_state() 240 ret = sensor_hub_device_open(sensor_inst->hsdev); in enable_sensor_store() 246 sensor_hub_device_close(sensor_inst->hsdev); in enable_sensor_store() 252 sensor_hub_device_close(sensor_inst->hsdev); in enable_sensor_store() 412 hid_sensor_capture_sample(struct hid_sensor_hub_device *hsdev, unsigned usage_id, size_t raw_len, char *raw_data, void *priv) hid_sensor_capture_sample() argument 454 hid_sensor_send_event(struct hid_sensor_hub_device *hsdev, unsigned usage_id, void *priv) hid_sensor_send_event() argument 531 struct hid_sensor_hub_device *hsdev = sensor_inst->hsdev; hid_sensor_custom_add_fields() local 560 struct hid_sensor_hub_device *hsdev = sensor_inst->hsdev; hid_sensor_custom_add_attributes() local 752 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; hid_sensor_custom_probe() local 803 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; hid_sensor_custom_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/hid/ |
H A D | hid-sensor-hub.c | 43 * @hsdev: Stored hid instance for current hub device. 50 struct hid_sensor_hub_device *hsdev; member 101 struct hid_sensor_hub_device **hsdev, in sensor_hub_get_callback() 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 in sensor_hub_register_callback() 97 sensor_hub_get_callback( struct hid_device *hdev, u32 usage_id, int collection_index, struct hid_sensor_hub_device **hsdev, void **priv) sensor_hub_get_callback() argument 169 sensor_hub_remove_callback(struct hid_sensor_hub_device *hsdev, u32 usage_id) sensor_hub_remove_callback() argument 190 sensor_hub_set_feature(struct hid_sensor_hub_device *hsdev, u32 report_id, u32 field_index, int buffer_size, void *buffer) sensor_hub_set_feature() argument 238 sensor_hub_get_feature(struct hid_sensor_hub_device *hsdev, u32 report_id, u32 field_index, int buffer_size, void *buffer) sensor_hub_get_feature() argument 290 sensor_hub_input_attr_get_raw_value(struct hid_sensor_hub_device *hsdev, u32 usage_id, u32 attr_usage_id, u32 report_id, enum sensor_hub_read_flags flag, bool is_signed) sensor_hub_input_attr_get_raw_value() argument 352 hid_sensor_get_usage_index(struct hid_sensor_hub_device *hsdev, u32 report_id, int field_index, u32 usage_id) hid_sensor_get_usage_index() argument 374 sensor_hub_input_get_attribute_info(struct hid_sensor_hub_device *hsdev, u8 type, u32 usage_id, u32 attr_usage_id, struct hid_sensor_hub_attribute_info *info) sensor_hub_input_get_attribute_info() argument 482 struct hid_sensor_hub_device *hsdev = NULL; sensor_hub_raw_event() local 550 sensor_hub_device_open(struct hid_sensor_hub_device *hsdev) sensor_hub_device_open() argument 571 sensor_hub_device_close(struct hid_sensor_hub_device *hsdev) sensor_hub_device_close() argument 613 struct hid_sensor_hub_device *hsdev; sensor_hub_probe() local 744 struct hid_sensor_hub_device *hsdev = sensor_hub_remove() local [all...] |
H A D | hid-sensor-custom.c | 41 struct hid_sensor_hub_device *hsdev; member 188 power_val = hid_sensor_get_usage_index(sensor_inst->hsdev, in set_power_report_state() 193 report_val = hid_sensor_get_usage_index(sensor_inst->hsdev, in set_power_report_state() 201 ret = sensor_hub_set_feature(sensor_inst->hsdev, in set_power_report_state() 207 hid_err(sensor_inst->hsdev->hdev, in set_power_report_state() 216 ret = sensor_hub_set_feature(sensor_inst->hsdev, in set_power_report_state() 222 hid_err(sensor_inst->hsdev->hdev, in set_power_report_state() 244 ret = sensor_hub_device_open(sensor_inst->hsdev); in enable_sensor_store() 250 sensor_hub_device_close(sensor_inst->hsdev); in enable_sensor_store() 256 sensor_hub_device_close(sensor_inst->hsdev); in enable_sensor_store() 417 hid_sensor_capture_sample(struct hid_sensor_hub_device *hsdev, unsigned usage_id, size_t raw_len, char *raw_data, void *priv) hid_sensor_capture_sample() argument 459 hid_sensor_send_event(struct hid_sensor_hub_device *hsdev, unsigned usage_id, void *priv) hid_sensor_send_event() argument 536 struct hid_sensor_hub_device *hsdev = sensor_inst->hsdev; hid_sensor_custom_add_fields() local 565 struct hid_sensor_hub_device *hsdev = sensor_inst->hsdev; hid_sensor_custom_add_attributes() local 824 hid_sensor_custom_get_prop(struct hid_sensor_hub_device *hsdev, u32 prop_usage_id, size_t prop_size, u16 *prop) hid_sensor_custom_get_prop() argument 851 hid_sensor_custom_do_match(struct hid_sensor_hub_device *hsdev, const struct hid_sensor_custom_match *match, const struct hid_sensor_custom_properties *prop) hid_sensor_custom_do_match() argument 879 hid_sensor_custom_properties_get(struct hid_sensor_hub_device *hsdev, struct hid_sensor_custom_properties *prop) hid_sensor_custom_properties_get() argument 908 hid_sensor_custom_get_known(struct hid_sensor_hub_device *hsdev, const struct hid_sensor_custom_match **known) hid_sensor_custom_get_known() argument 939 hid_sensor_register_platform_device(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, const struct hid_sensor_custom_match *match) hid_sensor_register_platform_device() argument 970 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; hid_sensor_custom_probe() local 1038 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; hid_sensor_custom_remove() local [all...] |
/kernel/linux/linux-5.10/drivers/ata/ |
H A D | sata_dwc_460ex.c | 155 struct sata_dwc_device *hsdev; member 172 #define HSDEV_FROM_HSDEVP(p) ((struct sata_dwc_device *)(p)->hsdev) 220 struct sata_dwc_device *hsdev = hsdevp->hsdev; in sata_dwc_dma_get_channel_old() local 224 dws->dma_dev = hsdev->dev; in sata_dwc_dma_get_channel_old() 232 dev_err(hsdev->dev, "%s: dma channel unavailable\n", in sata_dwc_dma_get_channel_old() 241 struct sata_dwc_device *hsdev) in sata_dwc_dma_init_old() 246 hsdev->dma = devm_kzalloc(&pdev->dev, sizeof(*hsdev->dma), GFP_KERNEL); in sata_dwc_dma_init_old() 247 if (!hsdev in sata_dwc_dma_init_old() 240 sata_dwc_dma_init_old(struct platform_device *pdev, struct sata_dwc_device *hsdev) sata_dwc_dma_init_old() argument 270 sata_dwc_dma_exit_old(struct sata_dwc_device *hsdev) sata_dwc_dma_exit_old() argument 336 struct sata_dwc_device *hsdev = hsdev_instance; dma_dwc_xfer_done() local 371 struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap); dma_dwc_xfer_setup() local 444 clear_interrupt_bit(struct sata_dwc_device *hsdev, u32 bit) clear_interrupt_bit() argument 456 sata_dwc_error_intr(struct ata_port *ap, struct sata_dwc_device *hsdev, uint intpr) sata_dwc_error_intr() argument 510 struct sata_dwc_device *hsdev = HSDEV_FROM_HOST(host); sata_dwc_isr() local 724 struct sata_dwc_device *hsdev = HSDEV_FROM_HSDEVP(hsdevp); sata_dwc_clear_dmacr() local 750 struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap); sata_dwc_dma_xfer_complete() local 793 struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap); sata_dwc_qc_complete() local 814 sata_dwc_enable_interrupts(struct sata_dwc_device *hsdev) sata_dwc_enable_interrupts() argument 857 struct sata_dwc_device *hsdev = hsdevp->hsdev; sata_dwc_dma_get_channel() local 884 struct sata_dwc_device *hsdev; sata_dwc_port_start() local 952 struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap); sata_dwc_port_stop() local 1015 struct sata_dwc_device *hsdev = HSDEV_FROM_QC(qc); sata_dwc_bmdma_start_by_tag() local 1128 struct sata_dwc_device *hsdev = HSDEV_FROM_AP(link->ap); sata_dwc_hardreset() local 1204 struct sata_dwc_device *hsdev; sata_dwc_probe() local 1295 struct sata_dwc_device *hsdev = host->private_data; sata_dwc_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/ata/ |
H A D | sata_dwc_460ex.c | 142 struct sata_dwc_device *hsdev; member 159 #define HSDEV_FROM_HSDEVP(p) ((struct sata_dwc_device *)(p)->hsdev) 205 struct sata_dwc_device *hsdev = hsdevp->hsdev; in sata_dwc_dma_get_channel_old() local 207 struct device *dev = hsdev->dev; in sata_dwc_dma_get_channel_old() 226 struct sata_dwc_device *hsdev) in sata_dwc_dma_init_old() 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() 235 hsdev in sata_dwc_dma_init_old() 225 sata_dwc_dma_init_old(struct platform_device *pdev, struct sata_dwc_device *hsdev) sata_dwc_dma_init_old() argument 254 sata_dwc_dma_exit_old(struct sata_dwc_device *hsdev) sata_dwc_dma_exit_old() argument 291 struct sata_dwc_device *hsdev = hsdev_instance; dma_dwc_xfer_done() local 326 struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap); dma_dwc_xfer_setup() local 399 clear_interrupt_bit(struct sata_dwc_device *hsdev, u32 bit) clear_interrupt_bit() argument 411 sata_dwc_error_intr(struct ata_port *ap, struct sata_dwc_device *hsdev, uint intpr) sata_dwc_error_intr() argument 465 struct sata_dwc_device *hsdev = HSDEV_FROM_HOST(host); sata_dwc_isr() local 688 struct sata_dwc_device *hsdev = HSDEV_FROM_HSDEVP(hsdevp); sata_dwc_clear_dmacr() local 714 struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap); sata_dwc_dma_xfer_complete() local 745 struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap); sata_dwc_qc_complete() local 765 sata_dwc_enable_interrupts(struct sata_dwc_device *hsdev) sata_dwc_enable_interrupts() argument 808 struct sata_dwc_device *hsdev = hsdevp->hsdev; sata_dwc_dma_get_channel() local 835 struct sata_dwc_device *hsdev; sata_dwc_port_start() local 903 struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap); sata_dwc_port_stop() local 960 struct sata_dwc_device *hsdev = HSDEV_FROM_QC(qc); sata_dwc_bmdma_start_by_tag() local 1051 struct sata_dwc_device *hsdev = HSDEV_FROM_AP(link->ap); sata_dwc_hardreset() local 1129 struct sata_dwc_device *hsdev; sata_dwc_probe() local 1217 struct sata_dwc_device *hsdev = host->private_data; sata_dwc_remove() local [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | hid-sensor-hub.h | 89 int (*suspend)(struct hid_sensor_hub_device *hsdev, void *priv); 90 int (*resume)(struct hid_sensor_hub_device *hsdev, void *priv); 91 int (*capture_sample)(struct hid_sensor_hub_device *hsdev, 94 int (*send_event)(struct hid_sensor_hub_device *hsdev, u32 usage_id, 100 * @hsdev: Hub device instance. 104 int sensor_hub_device_open(struct hid_sensor_hub_device *hsdev); 108 * @hsdev: Hub device instance. 112 void sensor_hub_device_close(struct hid_sensor_hub_device *hsdev); 118 * @hsdev: Hub device instance. 126 int sensor_hub_register_callback(struct hid_sensor_hub_device *hsdev, 218 struct hid_sensor_hub_device *hsdev; global() member [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | hid-sensor-hub.h | 89 int (*suspend)(struct hid_sensor_hub_device *hsdev, void *priv); 90 int (*resume)(struct hid_sensor_hub_device *hsdev, void *priv); 91 int (*capture_sample)(struct hid_sensor_hub_device *hsdev, 94 int (*send_event)(struct hid_sensor_hub_device *hsdev, u32 usage_id, 100 * @hsdev: Hub device instance. 104 int sensor_hub_device_open(struct hid_sensor_hub_device *hsdev); 108 * @hsdev: Hub device instance. 112 void sensor_hub_device_close(struct hid_sensor_hub_device *hsdev); 118 * @hsdev: Hub device instance. 126 int sensor_hub_register_callback(struct hid_sensor_hub_device *hsdev, 219 struct hid_sensor_hub_device *hsdev; global() member [all...] |
/kernel/linux/linux-6.6/drivers/iio/position/ |
H 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() 129 *val = sensor_hub_input_attr_get_raw_value(st->common_attributes.hsdev, in hinge_read_raw() 130 hsdev->usage, in hinge_read_raw() 192 static int hinge_proc_event(struct hid_sensor_hub_device *hsdev, in hinge_proc_event() argument 211 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() 245 ret = sensor_hub_input_get_attribute_info(hsdev, in hinge_parse_report() 268 struct hid_sensor_hub_device *hsdev in hid_hinge_probe() local 236 hinge_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, unsigned int usage_id, struct hinge_state *st) hinge_parse_report() argument 347 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; hid_hinge_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/iio/light/ |
H A D | hid-sensor-prox.c | 64 struct hid_sensor_hub_device *hsdev; in prox_read_raw() local 79 hsdev = prox_state->common_attributes.hsdev; in prox_read_raw() 89 hsdev, hsdev->usage, address, report_id, in prox_read_raw() 165 static int prox_proc_event(struct hid_sensor_hub_device *hsdev, in prox_proc_event() argument 182 static int prox_capture_sample(struct hid_sensor_hub_device *hsdev, in prox_capture_sample() argument 211 struct hid_sensor_hub_device *hsdev, in prox_parse_report() 218 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in prox_parse_report() 240 struct hid_sensor_hub_device *hsdev in hid_prox_probe() local 210 prox_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, unsigned usage_id, struct prox_state *st) prox_parse_report() argument 318 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; hid_prox_remove() local [all...] |
H A D | hid-sensor-als.c | 89 struct hid_sensor_hub_device *hsdev = als_state->common_attributes.hsdev; in als_read_raw() local 114 hsdev, hsdev->usage, address, report_id, in als_read_raw() 189 static int als_proc_event(struct hid_sensor_hub_device *hsdev, in als_proc_event() argument 210 static int als_capture_sample(struct hid_sensor_hub_device *hsdev, in als_capture_sample() argument 240 struct hid_sensor_hub_device *hsdev, in als_parse_report() 247 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in als_parse_report() 274 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_als_probe() local 282 als_state->common_attributes.hsdev in hid_als_probe() 239 als_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, unsigned usage_id, struct als_state *st) als_parse_report() argument 353 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; hid_als_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/iio/common/hid-sensors/ |
H A D | hid-sensor-attributes.c | 159 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_poll_value() 180 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_samp_freq_value() 219 ret = sensor_hub_set_feature(st->hsdev, st->poll.report_id, in hid_sensor_write_samp_freq_value() 224 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_write_samp_freq_value() 242 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_raw_hyst_value() 265 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_raw_hyst_rel_value() 294 ret = sensor_hub_set_feature(st->hsdev, st->sensitivity.report_id, in hid_sensor_write_raw_hyst_value() 300 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_write_raw_hyst_value() 325 ret = sensor_hub_set_feature(st->hsdev, st->sensitivity_rel.report_id, in hid_sensor_write_raw_hyst_rel_value() 331 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_write_raw_hyst_rel_value() 436 hid_sensor_get_reporting_interval(struct hid_sensor_hub_device *hsdev, u32 usage_id, struct hid_sensor_common *st) hid_sensor_get_reporting_interval() argument 454 hid_sensor_get_report_latency_info(struct hid_sensor_hub_device *hsdev, u32 usage_id, struct hid_sensor_common *st) hid_sensor_get_report_latency_info() argument 496 hid_sensor_parse_common_attributes(struct hid_sensor_hub_device *hsdev, u32 usage_id, struct hid_sensor_common *st, const u32 *sensitivity_addresses, u32 sensitivity_addresses_len) hid_sensor_parse_common_attributes() argument [all...] |
/kernel/linux/linux-5.10/drivers/iio/temperature/ |
H A D | hid-sensor-temperature.c | 65 temp_st->common_attributes.hsdev, in temperature_read_raw() 122 static int temperature_proc_event(struct hid_sensor_hub_device *hsdev, in temperature_proc_event() argument 136 static int temperature_capture_sample(struct hid_sensor_hub_device *hsdev, in temperature_capture_sample() argument 154 struct hid_sensor_hub_device *hsdev, in temperature_parse_report() 161 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in temperature_parse_report() 178 sensor_hub_input_get_attribute_info(hsdev, in temperature_parse_report() 199 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_temperature_probe() local 207 temp_st->common_attributes.hsdev = hsdev; in hid_temperature_probe() 210 ret = hid_sensor_parse_common_attributes(hsdev, in hid_temperature_probe() 153 temperature_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, unsigned int usage_id, struct temperature_state *st) temperature_parse_report() argument 263 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); hid_temperature_remove() local [all...] |
/kernel/linux/linux-5.10/drivers/iio/humidity/ |
H A D | hid-sensor-humidity.c | 64 humid_st->common_attributes.hsdev, in humidity_read_raw() 124 static int humidity_proc_event(struct hid_sensor_hub_device *hsdev, in humidity_proc_event() argument 138 static int humidity_capture_sample(struct hid_sensor_hub_device *hsdev, in humidity_capture_sample() argument 157 struct hid_sensor_hub_device *hsdev, in humidity_parse_report() 164 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in humidity_parse_report() 181 sensor_hub_input_get_attribute_info(hsdev, in humidity_parse_report() 202 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_humidity_probe() local 210 humid_st->common_attributes.hsdev = hsdev; in hid_humidity_probe() 213 ret = hid_sensor_parse_common_attributes(hsdev, in hid_humidity_probe() 156 humidity_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, unsigned int usage_id, struct hid_humidity_state *st) humidity_parse_report() argument 266 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); hid_humidity_remove() local [all...] |
/kernel/linux/linux-5.10/drivers/iio/orientation/ |
H A D | hid-sensor-rotation.c | 145 static int dev_rot_proc_event(struct hid_sensor_hub_device *hsdev, in dev_rot_proc_event() argument 162 static int dev_rot_capture_sample(struct hid_sensor_hub_device *hsdev, in dev_rot_capture_sample() argument 182 struct hid_sensor_hub_device *hsdev, in dev_rot_parse_report() 189 ret = sensor_hub_input_get_attribute_info(hsdev, in dev_rot_parse_report() 207 hsdev->usage, in dev_rot_parse_report() 213 sensor_hub_input_get_attribute_info(hsdev, in dev_rot_parse_report() 233 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_dev_rot_probe() local 243 rot_state->common_attributes.hsdev = hsdev; in hid_dev_rot_probe() 246 switch (hsdev in hid_dev_rot_probe() 181 dev_rot_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, unsigned usage_id, struct dev_rot_state *st) dev_rot_parse_report() argument 325 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; hid_dev_rot_remove() local [all...] |
/kernel/linux/linux-5.10/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() 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() 247 ret = hid_time_parse_report(pdev, hsdev, HID_USAGE_SENSOR_TIM in hid_time_probe() 134 hid_time_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, unsigned usage_id, struct hid_time_state *time_state) hid_time_parse_report() argument 299 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); hid_time_remove() local [all...] |
/kernel/linux/linux-6.6/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() 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_TIM in hid_time_probe() 134 hid_time_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, unsigned usage_id, struct hid_time_state *time_state) hid_time_parse_report() argument 301 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); hid_time_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/iio/orientation/ |
H A D | hid-sensor-rotation.c | 145 static int dev_rot_proc_event(struct hid_sensor_hub_device *hsdev, in dev_rot_proc_event() argument 167 static int dev_rot_capture_sample(struct hid_sensor_hub_device *hsdev, in dev_rot_capture_sample() argument 198 struct hid_sensor_hub_device *hsdev, in dev_rot_parse_report() 205 ret = sensor_hub_input_get_attribute_info(hsdev, in dev_rot_parse_report() 223 hsdev->usage, in dev_rot_parse_report() 237 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_dev_rot_probe() local 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() 197 dev_rot_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, unsigned usage_id, struct dev_rot_state *st) dev_rot_parse_report() argument 332 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; hid_dev_rot_remove() local [all...] |
H 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 214 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() 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() 306 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_incl_3d_probe() local 316 incl_state->common_attributes.hsdev = hsdev; in hid_incl_3d_probe() 247 incl_3d_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, unsigned usage_id, struct incl_3d_state *st) incl_3d_parse_report() argument 388 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; hid_incl_3d_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/iio/temperature/ |
H 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 141 static int temperature_capture_sample(struct hid_sensor_hub_device *hsdev, in temperature_capture_sample() argument 159 struct hid_sensor_hub_device *hsdev, in temperature_parse_report() 166 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_chan in hid_temperature_probe() 158 temperature_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, unsigned int usage_id, struct temperature_state *st) temperature_parse_report() argument 262 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); hid_temperature_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/iio/humidity/ |
H 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 143 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() 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_chan in hid_humidity_probe() 161 humidity_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, unsigned int usage_id, struct hid_humidity_state *st) humidity_parse_report() argument 265 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); hid_humidity_remove() local [all...] |
/kernel/linux/linux-5.10/drivers/iio/common/hid-sensors/ |
H A D | hid-sensor-attributes.c | 164 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_poll_value() 185 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_samp_freq_value() 224 ret = sensor_hub_set_feature(st->hsdev, st->poll.report_id, in hid_sensor_write_samp_freq_value() 229 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_write_samp_freq_value() 247 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_raw_hyst_value() 276 ret = sensor_hub_set_feature(st->hsdev, st->sensitivity.report_id, in hid_sensor_write_raw_hyst_value() 282 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_write_raw_hyst_value() 387 int hid_sensor_get_reporting_interval(struct hid_sensor_hub_device *hsdev, in hid_sensor_get_reporting_interval() argument 391 sensor_hub_input_get_attribute_info(hsdev, in hid_sensor_get_reporting_interval() 405 static void hid_sensor_get_report_latency_info(struct hid_sensor_hub_device *hsdev, in hid_sensor_get_report_latency_info() argument 447 hid_sensor_parse_common_attributes(struct hid_sensor_hub_device *hsdev, u32 usage_id, struct hid_sensor_common *st) hid_sensor_parse_common_attributes() argument [all...] |
/kernel/linux/linux-5.10/drivers/iio/accel/ |
H A D | hid-sensor-accel-3d.c | 141 struct hid_sensor_hub_device *hsdev = in accel_3d_read_raw() local 142 accel_state->common_attributes.hsdev; in accel_3d_read_raw() 154 accel_state->common_attributes.hsdev, in accel_3d_read_raw() 155 hsdev->usage, address, report_id, in accel_3d_read_raw() 232 static int accel_3d_proc_event(struct hid_sensor_hub_device *hsdev, in accel_3d_proc_event() argument 256 static int accel_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in accel_3d_capture_sample() argument 291 struct hid_sensor_hub_device *hsdev, in accel_3d_parse_report() 300 ret = sensor_hub_input_get_attribute_info(hsdev, in accel_3d_parse_report() 318 hsdev->usage, in accel_3d_parse_report() 324 sensor_hub_input_get_attribute_info(hsdev, in accel_3d_parse_report() 290 accel_3d_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, unsigned usage_id, struct accel_3d_state *st) accel_3d_parse_report() argument 347 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; hid_accel_3d_probe() local 434 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; hid_accel_3d_remove() local [all...] |
/kernel/linux/linux-5.10/drivers/iio/light/ |
H A D | hid-sensor-prox.c | 85 prox_state->common_attributes.hsdev, in prox_read_raw() 164 static int prox_proc_event(struct hid_sensor_hub_device *hsdev, in prox_proc_event() argument 181 static int prox_capture_sample(struct hid_sensor_hub_device *hsdev, in prox_capture_sample() argument 204 struct hid_sensor_hub_device *hsdev, in prox_parse_report() 211 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in prox_parse_report() 225 sensor_hub_input_get_attribute_info(hsdev, in prox_parse_report() 235 sensor_hub_input_get_attribute_info(hsdev, in prox_parse_report() 242 hsdev->usage, in prox_parse_report() 256 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_prox_probe() local 265 prox_state->common_attributes.hsdev in hid_prox_probe() 203 prox_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, unsigned usage_id, struct prox_state *st) prox_parse_report() argument 334 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; hid_prox_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/iio/accel/ |
H 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() 235 static int accel_3d_proc_event(struct hid_sensor_hub_device *hsdev, in accel_3d_proc_event() argument 259 static int accel_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in accel_3d_capture_sample() argument 294 struct hid_sensor_hub_device *hsdev, in accel_3d_parse_report() 303 ret = sensor_hub_input_get_attribute_info(hsdev, in accel_3d_parse_report() 321 hsdev->usage, in accel_3d_parse_report() 338 struct hid_sensor_hub_device *hsdev in hid_accel_3d_probe() local 293 accel_3d_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, unsigned usage_id, struct accel_3d_state *st) accel_3d_parse_report() argument 427 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; hid_accel_3d_remove() local [all...] |