hsdev             151 drivers/ata/sata_dwc_460ex.c 	struct sata_dwc_device	*hsdev;
hsdev             168 drivers/ata/sata_dwc_460ex.c #define HSDEV_FROM_HSDEVP(p)	((struct sata_dwc_device *)(p)->hsdev)
hsdev             216 drivers/ata/sata_dwc_460ex.c 	struct sata_dwc_device *hsdev = hsdevp->hsdev;
hsdev             220 drivers/ata/sata_dwc_460ex.c 	dws->dma_dev = hsdev->dev;
hsdev             228 drivers/ata/sata_dwc_460ex.c 		dev_err(hsdev->dev, "%s: dma channel unavailable\n",
hsdev             237 drivers/ata/sata_dwc_460ex.c 				 struct sata_dwc_device *hsdev)
hsdev             242 drivers/ata/sata_dwc_460ex.c 	hsdev->dma = devm_kzalloc(&pdev->dev, sizeof(*hsdev->dma), GFP_KERNEL);
hsdev             243 drivers/ata/sata_dwc_460ex.c 	if (!hsdev->dma)
hsdev             246 drivers/ata/sata_dwc_460ex.c 	hsdev->dma->dev = &pdev->dev;
hsdev             247 drivers/ata/sata_dwc_460ex.c 	hsdev->dma->id = pdev->id;
hsdev             250 drivers/ata/sata_dwc_460ex.c 	hsdev->dma->irq = irq_of_parse_and_map(np, 1);
hsdev             251 drivers/ata/sata_dwc_460ex.c 	if (hsdev->dma->irq == NO_IRQ) {
hsdev             258 drivers/ata/sata_dwc_460ex.c 	hsdev->dma->regs = devm_ioremap_resource(&pdev->dev, res);
hsdev             259 drivers/ata/sata_dwc_460ex.c 	if (IS_ERR(hsdev->dma->regs))
hsdev             260 drivers/ata/sata_dwc_460ex.c 		return PTR_ERR(hsdev->dma->regs);
hsdev             263 drivers/ata/sata_dwc_460ex.c 	return dw_dma_probe(hsdev->dma);
hsdev             266 drivers/ata/sata_dwc_460ex.c static void sata_dwc_dma_exit_old(struct sata_dwc_device *hsdev)
hsdev             268 drivers/ata/sata_dwc_460ex.c 	if (!hsdev->dma)
hsdev             271 drivers/ata/sata_dwc_460ex.c 	dw_dma_remove(hsdev->dma);
hsdev             332 drivers/ata/sata_dwc_460ex.c 	struct sata_dwc_device *hsdev = hsdev_instance;
hsdev             333 drivers/ata/sata_dwc_460ex.c 	struct ata_host *host = (struct ata_host *)hsdev->host;
hsdev             367 drivers/ata/sata_dwc_460ex.c 	struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap);
hsdev             372 drivers/ata/sata_dwc_460ex.c 		sconf.src_addr = hsdev->dmadr;
hsdev             375 drivers/ata/sata_dwc_460ex.c 		sconf.dst_addr = hsdev->dmadr;
hsdev             396 drivers/ata/sata_dwc_460ex.c 	desc->callback_param = hsdev;
hsdev             398 drivers/ata/sata_dwc_460ex.c 	dev_dbg(hsdev->dev, "%s sg: 0x%p, count: %d addr: %pa\n", __func__,
hsdev             399 drivers/ata/sata_dwc_460ex.c 		qc->sg, qc->n_elem, &hsdev->dmadr);
hsdev             440 drivers/ata/sata_dwc_460ex.c static void clear_interrupt_bit(struct sata_dwc_device *hsdev, u32 bit)
hsdev             442 drivers/ata/sata_dwc_460ex.c 	sata_dwc_writel(&hsdev->sata_dwc_regs->intpr,
hsdev             443 drivers/ata/sata_dwc_460ex.c 			sata_dwc_readl(&hsdev->sata_dwc_regs->intpr));
hsdev             453 drivers/ata/sata_dwc_460ex.c 				struct sata_dwc_device *hsdev, uint intpr)
hsdev             476 drivers/ata/sata_dwc_460ex.c 	clear_interrupt_bit(hsdev, SATA_DWC_INTPR_ERR);
hsdev             506 drivers/ata/sata_dwc_460ex.c 	struct sata_dwc_device *hsdev = HSDEV_FROM_HOST(host);
hsdev             514 drivers/ata/sata_dwc_460ex.c 	hsdev->sactive_issued = 0;
hsdev             519 drivers/ata/sata_dwc_460ex.c 	intpr = sata_dwc_readl(&hsdev->sata_dwc_regs->intpr);
hsdev             529 drivers/ata/sata_dwc_460ex.c 		sata_dwc_error_intr(ap, hsdev, intpr);
hsdev             536 drivers/ata/sata_dwc_460ex.c 		clear_interrupt_bit(hsdev, SATA_DWC_INTPR_NEWFP);
hsdev             538 drivers/ata/sata_dwc_460ex.c 		tag = (u8)(sata_dwc_readl(&hsdev->sata_dwc_regs->fptagr));
hsdev             543 drivers/ata/sata_dwc_460ex.c 		hsdev->sactive_issued |= qcmd_tag_to_mask(tag);
hsdev             558 drivers/ata/sata_dwc_460ex.c 	tag_mask = (hsdev->sactive_issued | sactive) ^ sactive;
hsdev             561 drivers/ata/sata_dwc_460ex.c 	if (hsdev->sactive_issued == 0 && tag_mask == 0) {
hsdev             632 drivers/ata/sata_dwc_460ex.c 	tag_mask = (hsdev->sactive_issued | sactive) ^ sactive;
hsdev             634 drivers/ata/sata_dwc_460ex.c 	if (sactive != 0 || hsdev->sactive_issued > 1 || tag_mask > 1) {
hsdev             637 drivers/ata/sata_dwc_460ex.c 			__func__, sactive, hsdev->sactive_issued, tag_mask);
hsdev             640 drivers/ata/sata_dwc_460ex.c 	if ((tag_mask | hsdev->sactive_issued) != hsdev->sactive_issued) {
hsdev             643 drivers/ata/sata_dwc_460ex.c 			 sactive, hsdev->sactive_issued, tag_mask);
hsdev             720 drivers/ata/sata_dwc_460ex.c 	struct sata_dwc_device *hsdev = HSDEV_FROM_HSDEVP(hsdevp);
hsdev             721 drivers/ata/sata_dwc_460ex.c 	u32 dmacr = sata_dwc_readl(&hsdev->sata_dwc_regs->dmacr);
hsdev             725 drivers/ata/sata_dwc_460ex.c 		sata_dwc_writel(&hsdev->sata_dwc_regs->dmacr, dmacr);
hsdev             728 drivers/ata/sata_dwc_460ex.c 		sata_dwc_writel(&hsdev->sata_dwc_regs->dmacr, dmacr);
hsdev             734 drivers/ata/sata_dwc_460ex.c 		dev_err(hsdev->dev,
hsdev             737 drivers/ata/sata_dwc_460ex.c 		sata_dwc_writel(&hsdev->sata_dwc_regs->dmacr,
hsdev             746 drivers/ata/sata_dwc_460ex.c 	struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap);
hsdev             763 drivers/ata/sata_dwc_460ex.c 			 sata_dwc_readl(&hsdev->sata_dwc_regs->dmacr));
hsdev             772 drivers/ata/sata_dwc_460ex.c 				sata_dwc_readl(&hsdev->sata_dwc_regs->dmacr));
hsdev             789 drivers/ata/sata_dwc_460ex.c 	struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap);
hsdev             791 drivers/ata/sata_dwc_460ex.c 	hsdev->sactive_queued = 0;
hsdev             804 drivers/ata/sata_dwc_460ex.c 	hsdev->sactive_queued = hsdev->sactive_queued & mask;
hsdev             805 drivers/ata/sata_dwc_460ex.c 	hsdev->sactive_issued = hsdev->sactive_issued & mask;
hsdev             810 drivers/ata/sata_dwc_460ex.c static void sata_dwc_enable_interrupts(struct sata_dwc_device *hsdev)
hsdev             813 drivers/ata/sata_dwc_460ex.c 	sata_dwc_writel(&hsdev->sata_dwc_regs->intmr,
hsdev             822 drivers/ata/sata_dwc_460ex.c 	sata_dwc_writel(&hsdev->sata_dwc_regs->errmr, SATA_DWC_SERROR_ERR_BITS);
hsdev             824 drivers/ata/sata_dwc_460ex.c 	dev_dbg(hsdev->dev, "%s: INTMR = 0x%08x, ERRMR = 0x%08x\n",
hsdev             825 drivers/ata/sata_dwc_460ex.c 		 __func__, sata_dwc_readl(&hsdev->sata_dwc_regs->intmr),
hsdev             826 drivers/ata/sata_dwc_460ex.c 		sata_dwc_readl(&hsdev->sata_dwc_regs->errmr));
hsdev             853 drivers/ata/sata_dwc_460ex.c 	struct sata_dwc_device *hsdev = hsdevp->hsdev;
hsdev             854 drivers/ata/sata_dwc_460ex.c 	struct device *dev = hsdev->dev;
hsdev             880 drivers/ata/sata_dwc_460ex.c 	struct sata_dwc_device *hsdev;
hsdev             885 drivers/ata/sata_dwc_460ex.c 	hsdev = HSDEV_FROM_AP(ap);
hsdev             889 drivers/ata/sata_dwc_460ex.c 	hsdev->host = ap->host;
hsdev             903 drivers/ata/sata_dwc_460ex.c 	hsdevp->hsdev = hsdev;
hsdev             909 drivers/ata/sata_dwc_460ex.c 	err = phy_power_on(hsdev->phy);
hsdev             922 drivers/ata/sata_dwc_460ex.c 		sata_dwc_writel(&hsdev->sata_dwc_regs->dmacr,
hsdev             927 drivers/ata/sata_dwc_460ex.c 		sata_dwc_writel(&hsdev->sata_dwc_regs->dbtsr,
hsdev             948 drivers/ata/sata_dwc_460ex.c 	struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap);
hsdev             954 drivers/ata/sata_dwc_460ex.c 	phy_power_off(hsdev->phy);
hsdev            1011 drivers/ata/sata_dwc_460ex.c 	struct sata_dwc_device *hsdev = HSDEV_FROM_QC(qc);
hsdev            1044 drivers/ata/sata_dwc_460ex.c 			sata_dwc_writel(&hsdev->sata_dwc_regs->dmacr,
hsdev            1047 drivers/ata/sata_dwc_460ex.c 			sata_dwc_writel(&hsdev->sata_dwc_regs->dmacr,
hsdev            1124 drivers/ata/sata_dwc_460ex.c 	struct sata_dwc_device *hsdev = HSDEV_FROM_AP(link->ap);
hsdev            1129 drivers/ata/sata_dwc_460ex.c 	sata_dwc_enable_interrupts(hsdev);
hsdev            1132 drivers/ata/sata_dwc_460ex.c 	sata_dwc_writel(&hsdev->sata_dwc_regs->dmacr,
hsdev            1136 drivers/ata/sata_dwc_460ex.c 	sata_dwc_writel(&hsdev->sata_dwc_regs->dbtsr,
hsdev            1200 drivers/ata/sata_dwc_460ex.c 	struct sata_dwc_device *hsdev;
hsdev            1214 drivers/ata/sata_dwc_460ex.c 	hsdev = devm_kzalloc(&ofdev->dev, sizeof(*hsdev), GFP_KERNEL);
hsdev            1215 drivers/ata/sata_dwc_460ex.c 	if (!host || !hsdev)
hsdev            1218 drivers/ata/sata_dwc_460ex.c 	host->private_data = hsdev;
hsdev            1228 drivers/ata/sata_dwc_460ex.c 	hsdev->sata_dwc_regs = base + SATA_DWC_REG_OFFSET;
hsdev            1229 drivers/ata/sata_dwc_460ex.c 	hsdev->dmadr = res->start + SATA_DWC_REG_OFFSET + offsetof(struct sata_dwc_regs, dmadr);
hsdev            1237 drivers/ata/sata_dwc_460ex.c 	idr = sata_dwc_readl(&hsdev->sata_dwc_regs->idr);
hsdev            1238 drivers/ata/sata_dwc_460ex.c 	versionr = sata_dwc_readl(&hsdev->sata_dwc_regs->versionr);
hsdev            1243 drivers/ata/sata_dwc_460ex.c 	hsdev->dev = &ofdev->dev;
hsdev            1246 drivers/ata/sata_dwc_460ex.c 	sata_dwc_enable_interrupts(hsdev);
hsdev            1258 drivers/ata/sata_dwc_460ex.c 		err = sata_dwc_dma_init_old(ofdev, hsdev);
hsdev            1264 drivers/ata/sata_dwc_460ex.c 	hsdev->phy = devm_phy_optional_get(hsdev->dev, "sata-phy");
hsdev            1265 drivers/ata/sata_dwc_460ex.c 	if (IS_ERR(hsdev->phy)) {
hsdev            1266 drivers/ata/sata_dwc_460ex.c 		err = PTR_ERR(hsdev->phy);
hsdev            1267 drivers/ata/sata_dwc_460ex.c 		hsdev->phy = NULL;
hsdev            1271 drivers/ata/sata_dwc_460ex.c 	err = phy_init(hsdev->phy);
hsdev            1287 drivers/ata/sata_dwc_460ex.c 	phy_exit(hsdev->phy);
hsdev            1295 drivers/ata/sata_dwc_460ex.c 	struct sata_dwc_device *hsdev = host->private_data;
hsdev            1299 drivers/ata/sata_dwc_460ex.c 	phy_exit(hsdev->phy);
hsdev            1303 drivers/ata/sata_dwc_460ex.c 	sata_dwc_dma_exit_old(hsdev);
hsdev              38 drivers/hid/hid-sensor-custom.c 	struct hid_sensor_hub_device *hsdev;
hsdev             184 drivers/hid/hid-sensor-custom.c 		power_val = hid_sensor_get_usage_index(sensor_inst->hsdev,
hsdev             189 drivers/hid/hid-sensor-custom.c 		report_val = hid_sensor_get_usage_index(sensor_inst->hsdev,
hsdev             197 drivers/hid/hid-sensor-custom.c 		ret = sensor_hub_set_feature(sensor_inst->hsdev,
hsdev             203 drivers/hid/hid-sensor-custom.c 			hid_err(sensor_inst->hsdev->hdev,
hsdev             212 drivers/hid/hid-sensor-custom.c 		ret = sensor_hub_set_feature(sensor_inst->hsdev,
hsdev             218 drivers/hid/hid-sensor-custom.c 			hid_err(sensor_inst->hsdev->hdev,
hsdev             240 drivers/hid/hid-sensor-custom.c 		ret = sensor_hub_device_open(sensor_inst->hsdev);
hsdev             246 drivers/hid/hid-sensor-custom.c 			sensor_hub_device_close(sensor_inst->hsdev);
hsdev             252 drivers/hid/hid-sensor-custom.c 		sensor_hub_device_close(sensor_inst->hsdev);
hsdev             307 drivers/hid/hid-sensor-custom.c 			ret = sensor_hub_get_feature(sensor_inst->hsdev,
hsdev             347 drivers/hid/hid-sensor-custom.c 						sensor_inst->hsdev,
hsdev             348 drivers/hid/hid-sensor-custom.c 						sensor_inst->hsdev->usage,
hsdev             404 drivers/hid/hid-sensor-custom.c 		ret = sensor_hub_set_feature(sensor_inst->hsdev, report_id,
hsdev             412 drivers/hid/hid-sensor-custom.c static int hid_sensor_capture_sample(struct hid_sensor_hub_device *hsdev,
hsdev             421 drivers/hid/hid-sensor-custom.c 		hid_err(sensor_inst->hsdev->hdev, "Skipped remaining data\n");
hsdev             425 drivers/hid/hid-sensor-custom.c 	hid_dbg(sensor_inst->hsdev->hdev, "%s received %d of %d\n", __func__,
hsdev             435 drivers/hid/hid-sensor-custom.c 		header.usage_id = hsdev->usage;
hsdev             454 drivers/hid/hid-sensor-custom.c static int hid_sensor_send_event(struct hid_sensor_hub_device *hsdev,
hsdev             487 drivers/hid/hid-sensor-custom.c 	sensor_field->attribute.usage_id = sensor_inst->hsdev->usage;
hsdev             531 drivers/hid/hid-sensor-custom.c 	struct hid_sensor_hub_device *hsdev = sensor_inst->hsdev;
hsdev             538 drivers/hid/hid-sensor-custom.c 			      hsdev->start_collection_index) &&
hsdev             540 drivers/hid/hid-sensor-custom.c 			       hsdev->end_collection_index))) {
hsdev             560 drivers/hid/hid-sensor-custom.c 	struct hid_sensor_hub_device *hsdev = sensor_inst->hsdev;
hsdev             561 drivers/hid/hid-sensor-custom.c 	struct hid_device *hdev = hsdev->hdev;
hsdev             752 drivers/hid/hid-sensor-custom.c 	struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data;
hsdev             763 drivers/hid/hid-sensor-custom.c 	sensor_inst->hsdev = hsdev;
hsdev             767 drivers/hid/hid-sensor-custom.c 	ret = sensor_hub_register_callback(hsdev, hsdev->usage,
hsdev             795 drivers/hid/hid-sensor-custom.c 	sensor_hub_remove_callback(hsdev, hsdev->usage);
hsdev             803 drivers/hid/hid-sensor-custom.c 	struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data;
hsdev             809 drivers/hid/hid-sensor-custom.c 	sensor_hub_remove_callback(hsdev, hsdev->usage);
hsdev              51 drivers/hid/hid-sensor-hub.c 	struct hid_sensor_hub_device *hsdev;
hsdev             102 drivers/hid/hid-sensor-hub.c 					struct hid_sensor_hub_device **hsdev,
hsdev             114 drivers/hid/hid-sensor-hub.c 				callback->hsdev->start_collection_index) &&
hsdev             116 drivers/hid/hid-sensor-hub.c 				callback->hsdev->end_collection_index)) {
hsdev             118 drivers/hid/hid-sensor-hub.c 			*hsdev = callback->hsdev;
hsdev             128 drivers/hid/hid-sensor-hub.c int sensor_hub_register_callback(struct hid_sensor_hub_device *hsdev,
hsdev             133 drivers/hid/hid-sensor-hub.c 	struct sensor_hub_data *pdata = hid_get_drvdata(hsdev->hdev);
hsdev             139 drivers/hid/hid-sensor-hub.c 						callback->hsdev == hsdev) {
hsdev             148 drivers/hid/hid-sensor-hub.c 	callback->hsdev = hsdev;
hsdev             170 drivers/hid/hid-sensor-hub.c int sensor_hub_remove_callback(struct hid_sensor_hub_device *hsdev,
hsdev             174 drivers/hid/hid-sensor-hub.c 	struct sensor_hub_data *pdata = hid_get_drvdata(hsdev->hdev);
hsdev             180 drivers/hid/hid-sensor-hub.c 						callback->hsdev == hsdev) {
hsdev             191 drivers/hid/hid-sensor-hub.c int sensor_hub_set_feature(struct hid_sensor_hub_device *hsdev, u32 report_id,
hsdev             195 drivers/hid/hid-sensor-hub.c 	struct sensor_hub_data *data = hid_get_drvdata(hsdev->hdev);
hsdev             203 drivers/hid/hid-sensor-hub.c 	report = sensor_hub_report(report_id, hsdev->hdev, HID_FEATURE_REPORT);
hsdev             224 drivers/hid/hid-sensor-hub.c 	hid_hw_request(hsdev->hdev, report, HID_REQ_SET_REPORT);
hsdev             225 drivers/hid/hid-sensor-hub.c 	hid_hw_wait(hsdev->hdev);
hsdev             234 drivers/hid/hid-sensor-hub.c int sensor_hub_get_feature(struct hid_sensor_hub_device *hsdev, u32 report_id,
hsdev             238 drivers/hid/hid-sensor-hub.c 	struct sensor_hub_data *data = hid_get_drvdata(hsdev->hdev);
hsdev             248 drivers/hid/hid-sensor-hub.c 	report = sensor_hub_report(report_id, hsdev->hdev, HID_FEATURE_REPORT);
hsdev             254 drivers/hid/hid-sensor-hub.c 	hid_hw_request(hsdev->hdev, report, HID_REQ_GET_REPORT);
hsdev             255 drivers/hid/hid-sensor-hub.c 	hid_hw_wait(hsdev->hdev);
hsdev             286 drivers/hid/hid-sensor-hub.c int sensor_hub_input_attr_get_raw_value(struct hid_sensor_hub_device *hsdev,
hsdev             292 drivers/hid/hid-sensor-hub.c 	struct sensor_hub_data *data = hid_get_drvdata(hsdev->hdev);
hsdev             297 drivers/hid/hid-sensor-hub.c 	report = sensor_hub_report(report_id, hsdev->hdev,
hsdev             302 drivers/hid/hid-sensor-hub.c 	mutex_lock(hsdev->mutex_ptr);
hsdev             304 drivers/hid/hid-sensor-hub.c 		memset(&hsdev->pending, 0, sizeof(hsdev->pending));
hsdev             305 drivers/hid/hid-sensor-hub.c 		init_completion(&hsdev->pending.ready);
hsdev             306 drivers/hid/hid-sensor-hub.c 		hsdev->pending.usage_id = usage_id;
hsdev             307 drivers/hid/hid-sensor-hub.c 		hsdev->pending.attr_usage_id = attr_usage_id;
hsdev             308 drivers/hid/hid-sensor-hub.c 		hsdev->pending.raw_size = 0;
hsdev             311 drivers/hid/hid-sensor-hub.c 		hsdev->pending.status = true;
hsdev             315 drivers/hid/hid-sensor-hub.c 	hid_hw_request(hsdev->hdev, report, HID_REQ_GET_REPORT);
hsdev             319 drivers/hid/hid-sensor-hub.c 						&hsdev->pending.ready, HZ*5);
hsdev             320 drivers/hid/hid-sensor-hub.c 		switch (hsdev->pending.raw_size) {
hsdev             323 drivers/hid/hid-sensor-hub.c 				ret_val = *(s8 *)hsdev->pending.raw_data;
hsdev             325 drivers/hid/hid-sensor-hub.c 				ret_val = *(u8 *)hsdev->pending.raw_data;
hsdev             329 drivers/hid/hid-sensor-hub.c 				ret_val = *(s16 *)hsdev->pending.raw_data;
hsdev             331 drivers/hid/hid-sensor-hub.c 				ret_val = *(u16 *)hsdev->pending.raw_data;
hsdev             334 drivers/hid/hid-sensor-hub.c 			ret_val = *(u32 *)hsdev->pending.raw_data;
hsdev             339 drivers/hid/hid-sensor-hub.c 		kfree(hsdev->pending.raw_data);
hsdev             340 drivers/hid/hid-sensor-hub.c 		hsdev->pending.status = false;
hsdev             342 drivers/hid/hid-sensor-hub.c 	mutex_unlock(hsdev->mutex_ptr);
hsdev             348 drivers/hid/hid-sensor-hub.c int hid_sensor_get_usage_index(struct hid_sensor_hub_device *hsdev,
hsdev             355 drivers/hid/hid-sensor-hub.c 	report = sensor_hub_report(report_id, hsdev->hdev, HID_FEATURE_REPORT);
hsdev             370 drivers/hid/hid-sensor-hub.c int sensor_hub_input_get_attribute_info(struct hid_sensor_hub_device *hsdev,
hsdev             381 drivers/hid/hid-sensor-hub.c 	struct hid_device *hdev = hsdev->hdev;
hsdev             401 drivers/hid/hid-sensor-hub.c 					hsdev->start_collection_index) &&
hsdev             403 drivers/hid/hid-sensor-hub.c 					hsdev->end_collection_index)) {
hsdev             432 drivers/hid/hid-sensor-hub.c 					callback->hsdev, callback->priv);
hsdev             450 drivers/hid/hid-sensor-hub.c 					callback->hsdev, callback->priv);
hsdev             477 drivers/hid/hid-sensor-hub.c 	struct hid_sensor_hub_device *hsdev = NULL;
hsdev             506 drivers/hid/hid-sensor-hub.c 				&hsdev, &priv);
hsdev             511 drivers/hid/hid-sensor-hub.c 		if (hsdev->pending.status && (hsdev->pending.attr_usage_id ==
hsdev             513 drivers/hid/hid-sensor-hub.c 					      hsdev->pending.attr_usage_id ==
hsdev             516 drivers/hid/hid-sensor-hub.c 			hsdev->pending.raw_data = kmemdup(ptr, sz, GFP_ATOMIC);
hsdev             517 drivers/hid/hid-sensor-hub.c 			if (hsdev->pending.raw_data)
hsdev             518 drivers/hid/hid-sensor-hub.c 				hsdev->pending.raw_size = sz;
hsdev             520 drivers/hid/hid-sensor-hub.c 				hsdev->pending.raw_size = 0;
hsdev             521 drivers/hid/hid-sensor-hub.c 			complete(&hsdev->pending.ready);
hsdev             525 drivers/hid/hid-sensor-hub.c 				callback->capture_sample(hsdev,
hsdev             529 drivers/hid/hid-sensor-hub.c 				callback->capture_sample(hsdev,
hsdev             536 drivers/hid/hid-sensor-hub.c 		callback->send_event(hsdev, collection->usage,
hsdev             543 drivers/hid/hid-sensor-hub.c int sensor_hub_device_open(struct hid_sensor_hub_device *hsdev)
hsdev             546 drivers/hid/hid-sensor-hub.c 	struct sensor_hub_data *data =  hid_get_drvdata(hsdev->hdev);
hsdev             550 drivers/hid/hid-sensor-hub.c 		ret = hid_hw_open(hsdev->hdev);
hsdev             552 drivers/hid/hid-sensor-hub.c 			hid_err(hsdev->hdev, "failed to open hid device\n");
hsdev             564 drivers/hid/hid-sensor-hub.c void sensor_hub_device_close(struct hid_sensor_hub_device *hsdev)
hsdev             566 drivers/hid/hid-sensor-hub.c 	struct sensor_hub_data *data =  hid_get_drvdata(hsdev->hdev);
hsdev             571 drivers/hid/hid-sensor-hub.c 		hid_hw_close(hsdev->hdev);
hsdev             606 drivers/hid/hid-sensor-hub.c 	struct hid_sensor_hub_device *hsdev;
hsdev             659 drivers/hid/hid-sensor-hub.c 			hsdev = devm_kzalloc(&hdev->dev, sizeof(*hsdev),
hsdev             661 drivers/hid/hid-sensor-hub.c 			if (!hsdev) {
hsdev             666 drivers/hid/hid-sensor-hub.c 			hsdev->hdev = hdev;
hsdev             667 drivers/hid/hid-sensor-hub.c 			hsdev->vendor_id = hdev->vendor;
hsdev             668 drivers/hid/hid-sensor-hub.c 			hsdev->product_id = hdev->product;
hsdev             669 drivers/hid/hid-sensor-hub.c 			hsdev->usage = collection->usage;
hsdev             670 drivers/hid/hid-sensor-hub.c 			hsdev->mutex_ptr = devm_kzalloc(&hdev->dev,
hsdev             673 drivers/hid/hid-sensor-hub.c 			if (!hsdev->mutex_ptr) {
hsdev             677 drivers/hid/hid-sensor-hub.c 			mutex_init(hsdev->mutex_ptr);
hsdev             678 drivers/hid/hid-sensor-hub.c 			hsdev->start_collection_index = i;
hsdev             681 drivers/hid/hid-sensor-hub.c 			last_hsdev = hsdev;
hsdev             694 drivers/hid/hid-sensor-hub.c 							hsdev;
hsdev             697 drivers/hid/hid-sensor-hub.c 							sizeof(*hsdev);
hsdev             699 drivers/hid/hid-sensor-hub.c 					hsdev->start_collection_index);
hsdev             705 drivers/hid/hid-sensor-hub.c 				collection_hsdev = hsdev;
hsdev             738 drivers/hid/hid-sensor-hub.c 		struct hid_sensor_hub_device *hsdev =
hsdev             740 drivers/hid/hid-sensor-hub.c 		if (hsdev->pending.status)
hsdev             741 drivers/hid/hid-sensor-hub.c 			complete(&hsdev->pending.ready);
hsdev             140 drivers/iio/accel/hid-sensor-accel-3d.c 	struct hid_sensor_hub_device *hsdev =
hsdev             141 drivers/iio/accel/hid-sensor-accel-3d.c 					accel_state->common_attributes.hsdev;
hsdev             153 drivers/iio/accel/hid-sensor-accel-3d.c 					accel_state->common_attributes.hsdev,
hsdev             154 drivers/iio/accel/hid-sensor-accel-3d.c 					hsdev->usage, address, report_id,
hsdev             231 drivers/iio/accel/hid-sensor-accel-3d.c static int accel_3d_proc_event(struct hid_sensor_hub_device *hsdev,
hsdev             255 drivers/iio/accel/hid-sensor-accel-3d.c static int accel_3d_capture_sample(struct hid_sensor_hub_device *hsdev,
hsdev             289 drivers/iio/accel/hid-sensor-accel-3d.c 				struct hid_sensor_hub_device *hsdev,
hsdev             298 drivers/iio/accel/hid-sensor-accel-3d.c 		ret = sensor_hub_input_get_attribute_info(hsdev,
hsdev             316 drivers/iio/accel/hid-sensor-accel-3d.c 				hsdev->usage,
hsdev             322 drivers/iio/accel/hid-sensor-accel-3d.c 		sensor_hub_input_get_attribute_info(hsdev,
hsdev             345 drivers/iio/accel/hid-sensor-accel-3d.c 	struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data;
hsdev             355 drivers/iio/accel/hid-sensor-accel-3d.c 	accel_state->common_attributes.hsdev = hsdev;
hsdev             358 drivers/iio/accel/hid-sensor-accel-3d.c 	if (hsdev->usage == HID_USAGE_SENSOR_ACCEL_3D) {
hsdev             369 drivers/iio/accel/hid-sensor-accel-3d.c 	ret = hid_sensor_parse_common_attributes(hsdev, hsdev->usage,
hsdev             381 drivers/iio/accel/hid-sensor-accel-3d.c 	ret = accel_3d_parse_report(pdev, hsdev,
hsdev             383 drivers/iio/accel/hid-sensor-accel-3d.c 				hsdev->usage, accel_state);
hsdev             417 drivers/iio/accel/hid-sensor-accel-3d.c 	ret = sensor_hub_register_callback(hsdev, hsdev->usage,
hsdev             440 drivers/iio/accel/hid-sensor-accel-3d.c 	struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data;
hsdev             444 drivers/iio/accel/hid-sensor-accel-3d.c 	sensor_hub_remove_callback(hsdev, hsdev->usage);
hsdev             164 drivers/iio/common/hid-sensors/hid-sensor-attributes.c 	ret = sensor_hub_get_feature(st->hsdev,
hsdev             185 drivers/iio/common/hid-sensors/hid-sensor-attributes.c 	ret = sensor_hub_get_feature(st->hsdev,
hsdev             224 drivers/iio/common/hid-sensors/hid-sensor-attributes.c 	ret = sensor_hub_set_feature(st->hsdev, st->poll.report_id,
hsdev             229 drivers/iio/common/hid-sensors/hid-sensor-attributes.c 	ret = sensor_hub_get_feature(st->hsdev,
hsdev             247 drivers/iio/common/hid-sensors/hid-sensor-attributes.c 	ret = sensor_hub_get_feature(st->hsdev,
hsdev             276 drivers/iio/common/hid-sensors/hid-sensor-attributes.c 	ret = sensor_hub_set_feature(st->hsdev, st->sensitivity.report_id,
hsdev             282 drivers/iio/common/hid-sensors/hid-sensor-attributes.c 	ret = sensor_hub_get_feature(st->hsdev,
hsdev             387 drivers/iio/common/hid-sensors/hid-sensor-attributes.c int hid_sensor_get_reporting_interval(struct hid_sensor_hub_device *hsdev,
hsdev             391 drivers/iio/common/hid-sensors/hid-sensor-attributes.c 	sensor_hub_input_get_attribute_info(hsdev,
hsdev             405 drivers/iio/common/hid-sensors/hid-sensor-attributes.c static void hid_sensor_get_report_latency_info(struct hid_sensor_hub_device *hsdev,
hsdev             409 drivers/iio/common/hid-sensors/hid-sensor-attributes.c 	sensor_hub_input_get_attribute_info(hsdev, HID_FEATURE_REPORT,
hsdev             414 drivers/iio/common/hid-sensors/hid-sensor-attributes.c 	hid_dbg(hsdev->hdev, "Report latency attributes: %x:%x\n",
hsdev             423 drivers/iio/common/hid-sensors/hid-sensor-attributes.c 	ret = sensor_hub_get_feature(st->hsdev, st->report_latency.report_id,
hsdev             435 drivers/iio/common/hid-sensors/hid-sensor-attributes.c 	return sensor_hub_set_feature(st->hsdev, st->report_latency.report_id,
hsdev             447 drivers/iio/common/hid-sensors/hid-sensor-attributes.c int hid_sensor_parse_common_attributes(struct hid_sensor_hub_device *hsdev,
hsdev             456 drivers/iio/common/hid-sensors/hid-sensor-attributes.c 	hid_sensor_get_reporting_interval(hsdev, usage_id, st);
hsdev             458 drivers/iio/common/hid-sensors/hid-sensor-attributes.c 	sensor_hub_input_get_attribute_info(hsdev,
hsdev             463 drivers/iio/common/hid-sensors/hid-sensor-attributes.c 	sensor_hub_input_get_attribute_info(hsdev,
hsdev             471 drivers/iio/common/hid-sensors/hid-sensor-attributes.c 	sensor_hub_input_get_attribute_info(hsdev,
hsdev             478 drivers/iio/common/hid-sensors/hid-sensor-attributes.c 	sensor_hub_input_get_attribute_info(hsdev,
hsdev             491 drivers/iio/common/hid-sensors/hid-sensor-attributes.c 	hid_sensor_get_report_latency_info(hsdev, usage_id, st);
hsdev             493 drivers/iio/common/hid-sensors/hid-sensor-attributes.c 	hid_dbg(hsdev->hdev, "common attributes: %x:%x, %x:%x, %x:%x %x:%x %x:%x\n",
hsdev             500 drivers/iio/common/hid-sensors/hid-sensor-attributes.c 	ret = sensor_hub_get_feature(hsdev,
hsdev             101 drivers/iio/common/hid-sensors/hid-sensor-trigger.c 		if (sensor_hub_device_open(st->hsdev))
hsdev             106 drivers/iio/common/hid-sensors/hid-sensor-trigger.c 		state_val = hid_sensor_get_usage_index(st->hsdev,
hsdev             110 drivers/iio/common/hid-sensors/hid-sensor-trigger.c 		report_val = hid_sensor_get_usage_index(st->hsdev,
hsdev             123 drivers/iio/common/hid-sensors/hid-sensor-trigger.c 		sensor_hub_device_close(st->hsdev);
hsdev             124 drivers/iio/common/hid-sensors/hid-sensor-trigger.c 		state_val = hid_sensor_get_usage_index(st->hsdev,
hsdev             128 drivers/iio/common/hid-sensors/hid-sensor-trigger.c 		report_val = hid_sensor_get_usage_index(st->hsdev,
hsdev             136 drivers/iio/common/hid-sensors/hid-sensor-trigger.c 		sensor_hub_set_feature(st->hsdev, st->power_state.report_id,
hsdev             143 drivers/iio/common/hid-sensors/hid-sensor-trigger.c 		sensor_hub_set_feature(st->hsdev, st->report_state.report_id,
hsdev             152 drivers/iio/common/hid-sensors/hid-sensor-trigger.c 	sensor_hub_get_feature(st->hsdev, st->power_state.report_id,
hsdev             200 drivers/iio/common/hid-sensors/hid-sensor-trigger.c 		sensor_hub_set_feature(attrb->hsdev, attrb->poll.report_id,
hsdev             206 drivers/iio/common/hid-sensors/hid-sensor-trigger.c 		sensor_hub_set_feature(attrb->hsdev,
hsdev             113 drivers/iio/gyro/hid-sensor-gyro-3d.c 					gyro_state->common_attributes.hsdev,
hsdev             192 drivers/iio/gyro/hid-sensor-gyro-3d.c static int gyro_3d_proc_event(struct hid_sensor_hub_device *hsdev,
hsdev             209 drivers/iio/gyro/hid-sensor-gyro-3d.c static int gyro_3d_capture_sample(struct hid_sensor_hub_device *hsdev,
hsdev             237 drivers/iio/gyro/hid-sensor-gyro-3d.c 				struct hid_sensor_hub_device *hsdev,
hsdev             246 drivers/iio/gyro/hid-sensor-gyro-3d.c 		ret = sensor_hub_input_get_attribute_info(hsdev,
hsdev             270 drivers/iio/gyro/hid-sensor-gyro-3d.c 		sensor_hub_input_get_attribute_info(hsdev,
hsdev             289 drivers/iio/gyro/hid-sensor-gyro-3d.c 	struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data;
hsdev             297 drivers/iio/gyro/hid-sensor-gyro-3d.c 	gyro_state->common_attributes.hsdev = hsdev;
hsdev             300 drivers/iio/gyro/hid-sensor-gyro-3d.c 	ret = hid_sensor_parse_common_attributes(hsdev,
hsdev             315 drivers/iio/gyro/hid-sensor-gyro-3d.c 	ret = gyro_3d_parse_report(pdev, hsdev,
hsdev             352 drivers/iio/gyro/hid-sensor-gyro-3d.c 	ret = sensor_hub_register_callback(hsdev, HID_USAGE_SENSOR_GYRO_3D,
hsdev             375 drivers/iio/gyro/hid-sensor-gyro-3d.c 	struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data;
hsdev             379 drivers/iio/gyro/hid-sensor-gyro-3d.c 	sensor_hub_remove_callback(hsdev, HID_USAGE_SENSOR_GYRO_3D);
hsdev              63 drivers/iio/humidity/hid-sensor-humidity.c 				humid_st->common_attributes.hsdev,
hsdev             123 drivers/iio/humidity/hid-sensor-humidity.c static int humidity_proc_event(struct hid_sensor_hub_device *hsdev,
hsdev             138 drivers/iio/humidity/hid-sensor-humidity.c static int humidity_capture_sample(struct hid_sensor_hub_device *hsdev,
hsdev             157 drivers/iio/humidity/hid-sensor-humidity.c 				struct hid_sensor_hub_device *hsdev,
hsdev             164 drivers/iio/humidity/hid-sensor-humidity.c 	ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT,
hsdev             181 drivers/iio/humidity/hid-sensor-humidity.c 		sensor_hub_input_get_attribute_info(hsdev,
hsdev             202 drivers/iio/humidity/hid-sensor-humidity.c 	struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev);
hsdev             210 drivers/iio/humidity/hid-sensor-humidity.c 	humid_st->common_attributes.hsdev = hsdev;
hsdev             213 drivers/iio/humidity/hid-sensor-humidity.c 	ret = hid_sensor_parse_common_attributes(hsdev,
hsdev             224 drivers/iio/humidity/hid-sensor-humidity.c 	ret = humidity_parse_report(pdev, hsdev, humid_chans,
hsdev             250 drivers/iio/humidity/hid-sensor-humidity.c 	ret = sensor_hub_register_callback(hsdev, HID_USAGE_SENSOR_HUMIDITY,
hsdev             262 drivers/iio/humidity/hid-sensor-humidity.c 	sensor_hub_remove_callback(hsdev, HID_USAGE_SENSOR_HUMIDITY);
hsdev             271 drivers/iio/humidity/hid-sensor-humidity.c 	struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev);
hsdev             276 drivers/iio/humidity/hid-sensor-humidity.c 	sensor_hub_remove_callback(hsdev, HID_USAGE_SENSOR_HUMIDITY);
hsdev             104 drivers/iio/light/hid-sensor-als.c 					als_state->common_attributes.hsdev,
hsdev             182 drivers/iio/light/hid-sensor-als.c static int als_proc_event(struct hid_sensor_hub_device *hsdev,
hsdev             199 drivers/iio/light/hid-sensor-als.c static int als_capture_sample(struct hid_sensor_hub_device *hsdev,
hsdev             224 drivers/iio/light/hid-sensor-als.c 				struct hid_sensor_hub_device *hsdev,
hsdev             231 drivers/iio/light/hid-sensor-als.c 	ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT,
hsdev             252 drivers/iio/light/hid-sensor-als.c 		sensor_hub_input_get_attribute_info(hsdev,
hsdev             271 drivers/iio/light/hid-sensor-als.c 	struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data;
hsdev             279 drivers/iio/light/hid-sensor-als.c 	als_state->common_attributes.hsdev = hsdev;
hsdev             282 drivers/iio/light/hid-sensor-als.c 	ret = hid_sensor_parse_common_attributes(hsdev, HID_USAGE_SENSOR_ALS,
hsdev             296 drivers/iio/light/hid-sensor-als.c 	ret = als_parse_report(pdev, hsdev,
hsdev             334 drivers/iio/light/hid-sensor-als.c 	ret = sensor_hub_register_callback(hsdev, HID_USAGE_SENSOR_ALS,
hsdev             357 drivers/iio/light/hid-sensor-als.c 	struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data;
hsdev             361 drivers/iio/light/hid-sensor-als.c 	sensor_hub_remove_callback(hsdev, HID_USAGE_SENSOR_ALS);
hsdev              84 drivers/iio/light/hid-sensor-prox.c 				prox_state->common_attributes.hsdev,
hsdev             162 drivers/iio/light/hid-sensor-prox.c static int prox_proc_event(struct hid_sensor_hub_device *hsdev,
hsdev             179 drivers/iio/light/hid-sensor-prox.c static int prox_capture_sample(struct hid_sensor_hub_device *hsdev,
hsdev             202 drivers/iio/light/hid-sensor-prox.c 				struct hid_sensor_hub_device *hsdev,
hsdev             209 drivers/iio/light/hid-sensor-prox.c 	ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT,
hsdev             223 drivers/iio/light/hid-sensor-prox.c 		sensor_hub_input_get_attribute_info(hsdev,
hsdev             233 drivers/iio/light/hid-sensor-prox.c 		sensor_hub_input_get_attribute_info(hsdev,
hsdev             249 drivers/iio/light/hid-sensor-prox.c 	struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data;
hsdev             258 drivers/iio/light/hid-sensor-prox.c 	prox_state->common_attributes.hsdev = hsdev;
hsdev             261 drivers/iio/light/hid-sensor-prox.c 	ret = hid_sensor_parse_common_attributes(hsdev, HID_USAGE_SENSOR_PROX,
hsdev             275 drivers/iio/light/hid-sensor-prox.c 	ret = prox_parse_report(pdev, hsdev,
hsdev             312 drivers/iio/light/hid-sensor-prox.c 	ret = sensor_hub_register_callback(hsdev, HID_USAGE_SENSOR_PROX,
hsdev             335 drivers/iio/light/hid-sensor-prox.c 	struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data;
hsdev             339 drivers/iio/light/hid-sensor-prox.c 	sensor_hub_remove_callback(hsdev, HID_USAGE_SENSOR_PROX);
hsdev             165 drivers/iio/magnetometer/hid-sensor-magn-3d.c 				magn_state->magn_flux_attributes.hsdev,
hsdev             286 drivers/iio/magnetometer/hid-sensor-magn-3d.c static int magn_3d_proc_event(struct hid_sensor_hub_device *hsdev,
hsdev             301 drivers/iio/magnetometer/hid-sensor-magn-3d.c static int magn_3d_capture_sample(struct hid_sensor_hub_device *hsdev,
hsdev             342 drivers/iio/magnetometer/hid-sensor-magn-3d.c 				struct hid_sensor_hub_device *hsdev,
hsdev             358 drivers/iio/magnetometer/hid-sensor-magn-3d.c 		status = sensor_hub_input_get_attribute_info(hsdev,
hsdev             443 drivers/iio/magnetometer/hid-sensor-magn-3d.c 		sensor_hub_input_get_attribute_info(hsdev,
hsdev             453 drivers/iio/magnetometer/hid-sensor-magn-3d.c 		sensor_hub_input_get_attribute_info(hsdev,
hsdev             463 drivers/iio/magnetometer/hid-sensor-magn-3d.c 		sensor_hub_input_get_attribute_info(hsdev,
hsdev             483 drivers/iio/magnetometer/hid-sensor-magn-3d.c 	struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data;
hsdev             495 drivers/iio/magnetometer/hid-sensor-magn-3d.c 	magn_state->magn_flux_attributes.hsdev = hsdev;
hsdev             498 drivers/iio/magnetometer/hid-sensor-magn-3d.c 	ret = hid_sensor_parse_common_attributes(hsdev,
hsdev             507 drivers/iio/magnetometer/hid-sensor-magn-3d.c 	ret = magn_3d_parse_report(pdev, hsdev,
hsdev             545 drivers/iio/magnetometer/hid-sensor-magn-3d.c 	ret = sensor_hub_register_callback(hsdev, HID_USAGE_SENSOR_COMPASS_3D,
hsdev             566 drivers/iio/magnetometer/hid-sensor-magn-3d.c 	struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data;
hsdev             570 drivers/iio/magnetometer/hid-sensor-magn-3d.c 	sensor_hub_remove_callback(hsdev, HID_USAGE_SENSOR_COMPASS_3D);
hsdev             114 drivers/iio/orientation/hid-sensor-incl-3d.c 				incl_state->common_attributes.hsdev,
hsdev             191 drivers/iio/orientation/hid-sensor-incl-3d.c static int incl_3d_proc_event(struct hid_sensor_hub_device *hsdev,
hsdev             208 drivers/iio/orientation/hid-sensor-incl-3d.c static int incl_3d_capture_sample(struct hid_sensor_hub_device *hsdev,
hsdev             237 drivers/iio/orientation/hid-sensor-incl-3d.c 				struct hid_sensor_hub_device *hsdev,
hsdev             244 drivers/iio/orientation/hid-sensor-incl-3d.c 	ret = sensor_hub_input_get_attribute_info(hsdev,
hsdev             254 drivers/iio/orientation/hid-sensor-incl-3d.c 	ret = sensor_hub_input_get_attribute_info(hsdev,
hsdev             264 drivers/iio/orientation/hid-sensor-incl-3d.c 	ret = sensor_hub_input_get_attribute_info(hsdev,
hsdev             287 drivers/iio/orientation/hid-sensor-incl-3d.c 		sensor_hub_input_get_attribute_info(hsdev,
hsdev             306 drivers/iio/orientation/hid-sensor-incl-3d.c 	struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data;
hsdev             316 drivers/iio/orientation/hid-sensor-incl-3d.c 	incl_state->common_attributes.hsdev = hsdev;
hsdev             319 drivers/iio/orientation/hid-sensor-incl-3d.c 	ret = hid_sensor_parse_common_attributes(hsdev,
hsdev             334 drivers/iio/orientation/hid-sensor-incl-3d.c 	ret = incl_3d_parse_report(pdev, hsdev,
hsdev             372 drivers/iio/orientation/hid-sensor-incl-3d.c 	ret = sensor_hub_register_callback(hsdev,
hsdev             396 drivers/iio/orientation/hid-sensor-incl-3d.c 	struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data;
hsdev             400 drivers/iio/orientation/hid-sensor-incl-3d.c 	sensor_hub_remove_callback(hsdev, HID_USAGE_SENSOR_INCLINOMETER_3D);
hsdev             147 drivers/iio/orientation/hid-sensor-rotation.c static int dev_rot_proc_event(struct hid_sensor_hub_device *hsdev,
hsdev             164 drivers/iio/orientation/hid-sensor-rotation.c static int dev_rot_capture_sample(struct hid_sensor_hub_device *hsdev,
hsdev             184 drivers/iio/orientation/hid-sensor-rotation.c 				struct hid_sensor_hub_device *hsdev,
hsdev             191 drivers/iio/orientation/hid-sensor-rotation.c 	ret = sensor_hub_input_get_attribute_info(hsdev,
hsdev             209 drivers/iio/orientation/hid-sensor-rotation.c 				hsdev->usage,
hsdev             215 drivers/iio/orientation/hid-sensor-rotation.c 		sensor_hub_input_get_attribute_info(hsdev,
hsdev             235 drivers/iio/orientation/hid-sensor-rotation.c 	struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data;
hsdev             245 drivers/iio/orientation/hid-sensor-rotation.c 	rot_state->common_attributes.hsdev = hsdev;
hsdev             248 drivers/iio/orientation/hid-sensor-rotation.c 	switch (hsdev->usage) {
hsdev             262 drivers/iio/orientation/hid-sensor-rotation.c 	ret = hid_sensor_parse_common_attributes(hsdev, hsdev->usage,
hsdev             277 drivers/iio/orientation/hid-sensor-rotation.c 	ret = dev_rot_parse_report(pdev, hsdev,
hsdev             279 drivers/iio/orientation/hid-sensor-rotation.c 					hsdev->usage, rot_state);
hsdev             314 drivers/iio/orientation/hid-sensor-rotation.c 	ret = sensor_hub_register_callback(hsdev, hsdev->usage,
hsdev             335 drivers/iio/orientation/hid-sensor-rotation.c 	struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data;
hsdev             339 drivers/iio/orientation/hid-sensor-rotation.c 	sensor_hub_remove_callback(hsdev, hsdev->usage);
hsdev              88 drivers/iio/pressure/hid-sensor-press.c 				press_state->common_attributes.hsdev,
hsdev             166 drivers/iio/pressure/hid-sensor-press.c static int press_proc_event(struct hid_sensor_hub_device *hsdev,
hsdev             183 drivers/iio/pressure/hid-sensor-press.c static int press_capture_sample(struct hid_sensor_hub_device *hsdev,
hsdev             206 drivers/iio/pressure/hid-sensor-press.c 				struct hid_sensor_hub_device *hsdev,
hsdev             213 drivers/iio/pressure/hid-sensor-press.c 	ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT,
hsdev             232 drivers/iio/pressure/hid-sensor-press.c 		sensor_hub_input_get_attribute_info(hsdev,
hsdev             251 drivers/iio/pressure/hid-sensor-press.c 	struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data;
hsdev             260 drivers/iio/pressure/hid-sensor-press.c 	press_state->common_attributes.hsdev = hsdev;
hsdev             263 drivers/iio/pressure/hid-sensor-press.c 	ret = hid_sensor_parse_common_attributes(hsdev,
hsdev             278 drivers/iio/pressure/hid-sensor-press.c 	ret = press_parse_report(pdev, hsdev,
hsdev             316 drivers/iio/pressure/hid-sensor-press.c 	ret = sensor_hub_register_callback(hsdev, HID_USAGE_SENSOR_PRESSURE,
hsdev             339 drivers/iio/pressure/hid-sensor-press.c 	struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data;
hsdev             343 drivers/iio/pressure/hid-sensor-press.c 	sensor_hub_remove_callback(hsdev, HID_USAGE_SENSOR_PRESSURE);
hsdev              64 drivers/iio/temperature/hid-sensor-temperature.c 			temp_st->common_attributes.hsdev,
hsdev             121 drivers/iio/temperature/hid-sensor-temperature.c static int temperature_proc_event(struct hid_sensor_hub_device *hsdev,
hsdev             136 drivers/iio/temperature/hid-sensor-temperature.c static int temperature_capture_sample(struct hid_sensor_hub_device *hsdev,
hsdev             154 drivers/iio/temperature/hid-sensor-temperature.c 				struct hid_sensor_hub_device *hsdev,
hsdev             161 drivers/iio/temperature/hid-sensor-temperature.c 	ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT,
hsdev             178 drivers/iio/temperature/hid-sensor-temperature.c 		sensor_hub_input_get_attribute_info(hsdev,
hsdev             199 drivers/iio/temperature/hid-sensor-temperature.c 	struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev);
hsdev             207 drivers/iio/temperature/hid-sensor-temperature.c 	temp_st->common_attributes.hsdev = hsdev;
hsdev             210 drivers/iio/temperature/hid-sensor-temperature.c 	ret = hid_sensor_parse_common_attributes(hsdev,
hsdev             221 drivers/iio/temperature/hid-sensor-temperature.c 	ret = temperature_parse_report(pdev, hsdev, temp_chans,
hsdev             247 drivers/iio/temperature/hid-sensor-temperature.c 	ret = sensor_hub_register_callback(hsdev, HID_USAGE_SENSOR_TEMPERATURE,
hsdev             259 drivers/iio/temperature/hid-sensor-temperature.c 	sensor_hub_remove_callback(hsdev, HID_USAGE_SENSOR_TEMPERATURE);
hsdev             268 drivers/iio/temperature/hid-sensor-temperature.c 	struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev);
hsdev             272 drivers/iio/temperature/hid-sensor-temperature.c 	sensor_hub_remove_callback(hsdev, HID_USAGE_SENSOR_TEMPERATURE);
hsdev              49 drivers/rtc/rtc-hid-sensor-time.c static int hid_time_proc_event(struct hid_sensor_hub_device *hsdev,
hsdev              76 drivers/rtc/rtc-hid-sensor-time.c static int hid_time_capture_sample(struct hid_sensor_hub_device *hsdev,
hsdev             135 drivers/rtc/rtc-hid-sensor-time.c 				struct hid_sensor_hub_device *hsdev,
hsdev             142 drivers/rtc/rtc-hid-sensor-time.c 		if (sensor_hub_input_get_attribute_info(hsdev,
hsdev             200 drivers/rtc/rtc-hid-sensor-time.c 	sensor_hub_input_attr_get_raw_value(time_state->common_attributes.hsdev,
hsdev             225 drivers/rtc/rtc-hid-sensor-time.c 	struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev);
hsdev             236 drivers/rtc/rtc-hid-sensor-time.c 	time_state->common_attributes.hsdev = hsdev;
hsdev             239 drivers/rtc/rtc-hid-sensor-time.c 	ret = hid_sensor_parse_common_attributes(hsdev,
hsdev             247 drivers/rtc/rtc-hid-sensor-time.c 	ret = hid_time_parse_report(pdev, hsdev, HID_USAGE_SENSOR_TIME,
hsdev             257 drivers/rtc/rtc-hid-sensor-time.c 	ret = sensor_hub_register_callback(hsdev, HID_USAGE_SENSOR_TIME,
hsdev             264 drivers/rtc/rtc-hid-sensor-time.c 	ret = sensor_hub_device_open(hsdev);
hsdev             274 drivers/rtc/rtc-hid-sensor-time.c 	hid_device_io_start(hsdev->hdev);
hsdev             281 drivers/rtc/rtc-hid-sensor-time.c 		hid_device_io_stop(hsdev->hdev);
hsdev             291 drivers/rtc/rtc-hid-sensor-time.c 	sensor_hub_device_close(hsdev);
hsdev             293 drivers/rtc/rtc-hid-sensor-time.c 	sensor_hub_remove_callback(hsdev, HID_USAGE_SENSOR_TIME);
hsdev             299 drivers/rtc/rtc-hid-sensor-time.c 	struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev);
hsdev             301 drivers/rtc/rtc-hid-sensor-time.c 	sensor_hub_device_close(hsdev);
hsdev             302 drivers/rtc/rtc-hid-sensor-time.c 	sensor_hub_remove_callback(hsdev, HID_USAGE_SENSOR_TIME);
hsdev              89 include/linux/hid-sensor-hub.h 	int (*suspend)(struct hid_sensor_hub_device *hsdev, void *priv);
hsdev              90 include/linux/hid-sensor-hub.h 	int (*resume)(struct hid_sensor_hub_device *hsdev, void *priv);
hsdev              91 include/linux/hid-sensor-hub.h 	int (*capture_sample)(struct hid_sensor_hub_device *hsdev,
hsdev              94 include/linux/hid-sensor-hub.h 	int (*send_event)(struct hid_sensor_hub_device *hsdev, u32 usage_id,
hsdev             104 include/linux/hid-sensor-hub.h int sensor_hub_device_open(struct hid_sensor_hub_device *hsdev);
hsdev             112 include/linux/hid-sensor-hub.h void sensor_hub_device_close(struct hid_sensor_hub_device *hsdev);
hsdev             126 include/linux/hid-sensor-hub.h int sensor_hub_register_callback(struct hid_sensor_hub_device *hsdev,
hsdev             138 include/linux/hid-sensor-hub.h int sensor_hub_remove_callback(struct hid_sensor_hub_device *hsdev,
hsdev             155 include/linux/hid-sensor-hub.h int sensor_hub_input_get_attribute_info(struct hid_sensor_hub_device *hsdev,
hsdev             178 include/linux/hid-sensor-hub.h int sensor_hub_input_attr_get_raw_value(struct hid_sensor_hub_device *hsdev,
hsdev             196 include/linux/hid-sensor-hub.h int sensor_hub_set_feature(struct hid_sensor_hub_device *hsdev, u32 report_id,
hsdev             211 include/linux/hid-sensor-hub.h int sensor_hub_get_feature(struct hid_sensor_hub_device *hsdev, u32 report_id,
hsdev             218 include/linux/hid-sensor-hub.h 	struct hid_sensor_hub_device *hsdev;
hsdev             248 include/linux/hid-sensor-hub.h int hid_sensor_parse_common_attributes(struct hid_sensor_hub_device *hsdev,
hsdev             260 include/linux/hid-sensor-hub.h int hid_sensor_get_usage_index(struct hid_sensor_hub_device *hsdev,