attrb 691 drivers/ata/libata-transport.c #define SETUP_TEMPLATE(attrb, field, perm, test) \ attrb 692 drivers/ata/libata-transport.c i->private_##attrb[count] = dev_attr_##field; \ attrb 693 drivers/ata/libata-transport.c i->private_##attrb[count].attr.mode = perm; \ attrb 694 drivers/ata/libata-transport.c i->attrb[count] = &i->private_##attrb[count]; \ attrb 25 drivers/iio/common/hid-sensors/hid-sensor-trigger.c struct hid_sensor_common *attrb = iio_device_get_drvdata(indio_dev); attrb 34 drivers/iio/common/hid-sensors/hid-sensor-trigger.c ret = hid_sensor_set_report_latency(attrb, latency); attrb 38 drivers/iio/common/hid-sensors/hid-sensor-trigger.c attrb->latency_ms = hid_sensor_get_report_latency(attrb); attrb 48 drivers/iio/common/hid-sensors/hid-sensor-trigger.c struct hid_sensor_common *attrb = iio_device_get_drvdata(indio_dev); attrb 51 drivers/iio/common/hid-sensors/hid-sensor-trigger.c latency = hid_sensor_get_report_latency(attrb); attrb 63 drivers/iio/common/hid-sensors/hid-sensor-trigger.c struct hid_sensor_common *attrb = iio_device_get_drvdata(indio_dev); attrb 66 drivers/iio/common/hid-sensors/hid-sensor-trigger.c latency = hid_sensor_get_report_latency(attrb); attrb 195 drivers/iio/common/hid-sensors/hid-sensor-trigger.c struct hid_sensor_common *attrb = container_of(work, attrb 199 drivers/iio/common/hid-sensors/hid-sensor-trigger.c if (attrb->poll_interval >= 0) attrb 200 drivers/iio/common/hid-sensors/hid-sensor-trigger.c sensor_hub_set_feature(attrb->hsdev, attrb->poll.report_id, attrb 201 drivers/iio/common/hid-sensors/hid-sensor-trigger.c attrb->poll.index, attrb 202 drivers/iio/common/hid-sensors/hid-sensor-trigger.c sizeof(attrb->poll_interval), attrb 203 drivers/iio/common/hid-sensors/hid-sensor-trigger.c &attrb->poll_interval); attrb 205 drivers/iio/common/hid-sensors/hid-sensor-trigger.c if (attrb->raw_hystersis >= 0) attrb 206 drivers/iio/common/hid-sensors/hid-sensor-trigger.c sensor_hub_set_feature(attrb->hsdev, attrb 207 drivers/iio/common/hid-sensors/hid-sensor-trigger.c attrb->sensitivity.report_id, attrb 208 drivers/iio/common/hid-sensors/hid-sensor-trigger.c attrb->sensitivity.index, attrb 209 drivers/iio/common/hid-sensors/hid-sensor-trigger.c sizeof(attrb->raw_hystersis), attrb 210 drivers/iio/common/hid-sensors/hid-sensor-trigger.c &attrb->raw_hystersis); attrb 212 drivers/iio/common/hid-sensors/hid-sensor-trigger.c if (attrb->latency_ms > 0) attrb 213 drivers/iio/common/hid-sensors/hid-sensor-trigger.c hid_sensor_set_report_latency(attrb, attrb->latency_ms); attrb 215 drivers/iio/common/hid-sensors/hid-sensor-trigger.c if (atomic_read(&attrb->user_requested_state)) attrb 216 drivers/iio/common/hid-sensors/hid-sensor-trigger.c _hid_sensor_power_state(attrb, true); attrb 225 drivers/iio/common/hid-sensors/hid-sensor-trigger.c void hid_sensor_remove_trigger(struct hid_sensor_common *attrb) attrb 227 drivers/iio/common/hid-sensors/hid-sensor-trigger.c if (atomic_read(&attrb->runtime_pm_enable)) attrb 228 drivers/iio/common/hid-sensors/hid-sensor-trigger.c pm_runtime_disable(&attrb->pdev->dev); attrb 230 drivers/iio/common/hid-sensors/hid-sensor-trigger.c pm_runtime_set_suspended(&attrb->pdev->dev); attrb 231 drivers/iio/common/hid-sensors/hid-sensor-trigger.c pm_runtime_put_noidle(&attrb->pdev->dev); attrb 233 drivers/iio/common/hid-sensors/hid-sensor-trigger.c cancel_work_sync(&attrb->work); attrb 234 drivers/iio/common/hid-sensors/hid-sensor-trigger.c iio_trigger_unregister(attrb->trigger); attrb 235 drivers/iio/common/hid-sensors/hid-sensor-trigger.c iio_trigger_free(attrb->trigger); attrb 244 drivers/iio/common/hid-sensors/hid-sensor-trigger.c struct hid_sensor_common *attrb) attrb 257 drivers/iio/common/hid-sensors/hid-sensor-trigger.c iio_trigger_set_drvdata(trig, attrb); attrb 265 drivers/iio/common/hid-sensors/hid-sensor-trigger.c attrb->trigger = trig; attrb 268 drivers/iio/common/hid-sensors/hid-sensor-trigger.c hid_sensor_setup_batch_mode(indio_dev, attrb); attrb 274 drivers/iio/common/hid-sensors/hid-sensor-trigger.c iio_device_set_drvdata(indio_dev, attrb); attrb 276 drivers/iio/common/hid-sensors/hid-sensor-trigger.c INIT_WORK(&attrb->work, hid_sensor_set_power_work); attrb 278 drivers/iio/common/hid-sensors/hid-sensor-trigger.c pm_suspend_ignore_children(&attrb->pdev->dev, true); attrb 280 drivers/iio/common/hid-sensors/hid-sensor-trigger.c pm_runtime_set_autosuspend_delay(&attrb->pdev->dev, attrb 295 drivers/iio/common/hid-sensors/hid-sensor-trigger.c struct hid_sensor_common *attrb = iio_device_get_drvdata(indio_dev); attrb 297 drivers/iio/common/hid-sensors/hid-sensor-trigger.c return _hid_sensor_power_state(attrb, false); attrb 303 drivers/iio/common/hid-sensors/hid-sensor-trigger.c struct hid_sensor_common *attrb = iio_device_get_drvdata(indio_dev); attrb 304 drivers/iio/common/hid-sensors/hid-sensor-trigger.c schedule_work(&attrb->work); attrb 311 drivers/iio/common/hid-sensors/hid-sensor-trigger.c struct hid_sensor_common *attrb = iio_device_get_drvdata(indio_dev); attrb 312 drivers/iio/common/hid-sensors/hid-sensor-trigger.c return _hid_sensor_power_state(attrb, true); attrb 15 drivers/iio/common/hid-sensors/hid-sensor-trigger.h struct hid_sensor_common *attrb); attrb 16 drivers/iio/common/hid-sensors/hid-sensor-trigger.h void hid_sensor_remove_trigger(struct hid_sensor_common *attrb); attrb 1684 drivers/scsi/scsi_transport_sas.c #define SETUP_TEMPLATE(attrb, field, perm, test) \ attrb 1685 drivers/scsi/scsi_transport_sas.c i->private_##attrb[count] = dev_attr_##field; \ attrb 1686 drivers/scsi/scsi_transport_sas.c i->private_##attrb[count].attr.mode = perm; \ attrb 1687 drivers/scsi/scsi_transport_sas.c i->attrb[count] = &i->private_##attrb[count]; \ attrb 1691 drivers/scsi/scsi_transport_sas.c #define SETUP_TEMPLATE_RW(attrb, field, perm, test, ro_test, ro_perm) \ attrb 1692 drivers/scsi/scsi_transport_sas.c i->private_##attrb[count] = dev_attr_##field; \ attrb 1693 drivers/scsi/scsi_transport_sas.c i->private_##attrb[count].attr.mode = perm; \ attrb 1695 drivers/scsi/scsi_transport_sas.c i->private_##attrb[count].attr.mode = ro_perm; \ attrb 1696 drivers/scsi/scsi_transport_sas.c i->private_##attrb[count].store = NULL; \ attrb 1698 drivers/scsi/scsi_transport_sas.c i->attrb[count] = &i->private_##attrb[count]; \