trig_info 66 drivers/iio/industrialio-trigger.c int __iio_trigger_register(struct iio_trigger *trig_info, trig_info 71 drivers/iio/industrialio-trigger.c trig_info->owner = this_mod; trig_info 73 drivers/iio/industrialio-trigger.c trig_info->id = ida_simple_get(&iio_trigger_ida, 0, 0, GFP_KERNEL); trig_info 74 drivers/iio/industrialio-trigger.c if (trig_info->id < 0) trig_info 75 drivers/iio/industrialio-trigger.c return trig_info->id; trig_info 78 drivers/iio/industrialio-trigger.c dev_set_name(&trig_info->dev, "trigger%ld", trig_info 79 drivers/iio/industrialio-trigger.c (unsigned long) trig_info->id); trig_info 81 drivers/iio/industrialio-trigger.c ret = device_add(&trig_info->dev); trig_info 87 drivers/iio/industrialio-trigger.c if (__iio_trigger_find_by_name(trig_info->name)) { trig_info 88 drivers/iio/industrialio-trigger.c pr_err("Duplicate trigger name '%s'\n", trig_info->name); trig_info 92 drivers/iio/industrialio-trigger.c list_add_tail(&trig_info->list, &iio_trigger_list); trig_info 99 drivers/iio/industrialio-trigger.c device_del(&trig_info->dev); trig_info 101 drivers/iio/industrialio-trigger.c ida_simple_remove(&iio_trigger_ida, trig_info->id); trig_info 106 drivers/iio/industrialio-trigger.c void iio_trigger_unregister(struct iio_trigger *trig_info) trig_info 109 drivers/iio/industrialio-trigger.c list_del(&trig_info->list); trig_info 112 drivers/iio/industrialio-trigger.c ida_simple_remove(&iio_trigger_ida, trig_info->id); trig_info 114 drivers/iio/industrialio-trigger.c device_del(&trig_info->dev); trig_info 683 drivers/iio/industrialio-trigger.c struct iio_trigger *trig_info, trig_info 693 drivers/iio/industrialio-trigger.c *ptr = trig_info; trig_info 694 drivers/iio/industrialio-trigger.c ret = __iio_trigger_register(trig_info, this_mod); trig_info 712 drivers/iio/industrialio-trigger.c struct iio_trigger *trig_info) trig_info 717 drivers/iio/industrialio-trigger.c trig_info); trig_info 99 drivers/iio/trigger/iio-trig-hrtimer.c struct iio_hrtimer_info *trig_info; trig_info 101 drivers/iio/trigger/iio-trig-hrtimer.c trig_info = iio_trigger_get_drvdata(trig); trig_info 104 drivers/iio/trigger/iio-trig-hrtimer.c hrtimer_start(&trig_info->timer, trig_info->period, trig_info 107 drivers/iio/trigger/iio-trig-hrtimer.c hrtimer_cancel(&trig_info->timer); trig_info 118 drivers/iio/trigger/iio-trig-hrtimer.c struct iio_hrtimer_info *trig_info; trig_info 121 drivers/iio/trigger/iio-trig-hrtimer.c trig_info = kzalloc(sizeof(*trig_info), GFP_KERNEL); trig_info 122 drivers/iio/trigger/iio-trig-hrtimer.c if (!trig_info) trig_info 125 drivers/iio/trigger/iio-trig-hrtimer.c trig_info->swt.trigger = iio_trigger_alloc("%s", name); trig_info 126 drivers/iio/trigger/iio-trig-hrtimer.c if (!trig_info->swt.trigger) { trig_info 131 drivers/iio/trigger/iio-trig-hrtimer.c iio_trigger_set_drvdata(trig_info->swt.trigger, trig_info); trig_info 132 drivers/iio/trigger/iio-trig-hrtimer.c trig_info->swt.trigger->ops = &iio_hrtimer_trigger_ops; trig_info 133 drivers/iio/trigger/iio-trig-hrtimer.c trig_info->swt.trigger->dev.groups = iio_hrtimer_attr_groups; trig_info 135 drivers/iio/trigger/iio-trig-hrtimer.c hrtimer_init(&trig_info->timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); trig_info 136 drivers/iio/trigger/iio-trig-hrtimer.c trig_info->timer.function = iio_hrtimer_trig_handler; trig_info 138 drivers/iio/trigger/iio-trig-hrtimer.c trig_info->sampling_frequency = HRTIMER_DEFAULT_SAMPLING_FREQUENCY; trig_info 139 drivers/iio/trigger/iio-trig-hrtimer.c trig_info->period = NSEC_PER_SEC / trig_info->sampling_frequency; trig_info 141 drivers/iio/trigger/iio-trig-hrtimer.c ret = iio_trigger_register(trig_info->swt.trigger); trig_info 145 drivers/iio/trigger/iio-trig-hrtimer.c iio_swt_group_init_type_name(&trig_info->swt, name, &iio_hrtimer_type); trig_info 146 drivers/iio/trigger/iio-trig-hrtimer.c return &trig_info->swt; trig_info 148 drivers/iio/trigger/iio-trig-hrtimer.c iio_trigger_free(trig_info->swt.trigger); trig_info 150 drivers/iio/trigger/iio-trig-hrtimer.c kfree(trig_info); trig_info 157 drivers/iio/trigger/iio-trig-hrtimer.c struct iio_hrtimer_info *trig_info; trig_info 159 drivers/iio/trigger/iio-trig-hrtimer.c trig_info = iio_trigger_get_drvdata(swt->trigger); trig_info 164 drivers/iio/trigger/iio-trig-hrtimer.c hrtimer_cancel(&trig_info->timer); trig_info 166 drivers/iio/trigger/iio-trig-hrtimer.c kfree(trig_info); trig_info 33 drivers/iio/trigger/iio-trig-interrupt.c struct iio_interrupt_trigger_info *trig_info; trig_info 54 drivers/iio/trigger/iio-trig-interrupt.c trig_info = kzalloc(sizeof(*trig_info), GFP_KERNEL); trig_info 55 drivers/iio/trigger/iio-trig-interrupt.c if (!trig_info) { trig_info 59 drivers/iio/trigger/iio-trig-interrupt.c iio_trigger_set_drvdata(trig, trig_info); trig_info 60 drivers/iio/trigger/iio-trig-interrupt.c trig_info->irq = irq; trig_info 81 drivers/iio/trigger/iio-trig-interrupt.c kfree(trig_info); trig_info 91 drivers/iio/trigger/iio-trig-interrupt.c struct iio_interrupt_trigger_info *trig_info; trig_info 94 drivers/iio/trigger/iio-trig-interrupt.c trig_info = iio_trigger_get_drvdata(trig); trig_info 96 drivers/iio/trigger/iio-trig-interrupt.c free_irq(trig_info->irq, trig); trig_info 97 drivers/iio/trigger/iio-trig-interrupt.c kfree(trig_info); trig_info 80 drivers/iio/trigger/iio-trig-loop.c struct iio_loop_info *trig_info; trig_info 83 drivers/iio/trigger/iio-trig-loop.c trig_info = kzalloc(sizeof(*trig_info), GFP_KERNEL); trig_info 84 drivers/iio/trigger/iio-trig-loop.c if (!trig_info) trig_info 87 drivers/iio/trigger/iio-trig-loop.c trig_info->swt.trigger = iio_trigger_alloc("%s", name); trig_info 88 drivers/iio/trigger/iio-trig-loop.c if (!trig_info->swt.trigger) { trig_info 93 drivers/iio/trigger/iio-trig-loop.c iio_trigger_set_drvdata(trig_info->swt.trigger, trig_info); trig_info 94 drivers/iio/trigger/iio-trig-loop.c trig_info->swt.trigger->ops = &iio_loop_trigger_ops; trig_info 96 drivers/iio/trigger/iio-trig-loop.c ret = iio_trigger_register(trig_info->swt.trigger); trig_info 100 drivers/iio/trigger/iio-trig-loop.c iio_swt_group_init_type_name(&trig_info->swt, name, &iio_loop_type); trig_info 102 drivers/iio/trigger/iio-trig-loop.c return &trig_info->swt; trig_info 105 drivers/iio/trigger/iio-trig-loop.c iio_trigger_free(trig_info->swt.trigger); trig_info 107 drivers/iio/trigger/iio-trig-loop.c kfree(trig_info); trig_info 114 drivers/iio/trigger/iio-trig-loop.c struct iio_loop_info *trig_info; trig_info 116 drivers/iio/trigger/iio-trig-loop.c trig_info = iio_trigger_get_drvdata(swt->trigger); trig_info 120 drivers/iio/trigger/iio-trig-loop.c kfree(trig_info); trig_info 127 include/linux/iio/trigger.h #define iio_trigger_register(trig_info) \ trig_info 128 include/linux/iio/trigger.h __iio_trigger_register((trig_info), THIS_MODULE) trig_info 129 include/linux/iio/trigger.h int __iio_trigger_register(struct iio_trigger *trig_info, trig_info 132 include/linux/iio/trigger.h #define devm_iio_trigger_register(dev, trig_info) \ trig_info 133 include/linux/iio/trigger.h __devm_iio_trigger_register((dev), (trig_info), THIS_MODULE) trig_info 135 include/linux/iio/trigger.h struct iio_trigger *trig_info, trig_info 142 include/linux/iio/trigger.h void iio_trigger_unregister(struct iio_trigger *trig_info); trig_info 145 include/linux/iio/trigger.h struct iio_trigger *trig_info); trig_info 1531 sound/soc/codecs/cs47l35.c struct madera_voice_trigger_info trig_info; trig_info 1540 sound/soc/codecs/cs47l35.c trig_info.core_num = i + 1; trig_info 1543 sound/soc/codecs/cs47l35.c &trig_info); trig_info 2470 sound/soc/codecs/cs47l85.c struct madera_voice_trigger_info trig_info; trig_info 2479 sound/soc/codecs/cs47l85.c trig_info.core_num = i + 1; trig_info 2482 sound/soc/codecs/cs47l85.c &trig_info); trig_info 2381 sound/soc/codecs/cs47l90.c struct madera_voice_trigger_info trig_info; trig_info 2390 sound/soc/codecs/cs47l90.c trig_info.core_num = i + 1; trig_info 2393 sound/soc/codecs/cs47l90.c &trig_info);