Lines Matching refs:mapi
30 struct iio_map_internal *mapi; in iio_map_array_register() local
37 mapi = kzalloc(sizeof(*mapi), GFP_KERNEL); in iio_map_array_register()
38 if (mapi == NULL) { in iio_map_array_register()
42 mapi->map = &maps[i]; in iio_map_array_register()
43 mapi->indio_dev = indio_dev; in iio_map_array_register()
44 list_add_tail(&mapi->l, &iio_map_list); in iio_map_array_register()
61 struct iio_map_internal *mapi, *next; in iio_map_array_unregister() local
64 list_for_each_entry_safe(mapi, next, &iio_map_list, l) { in iio_map_array_unregister()
65 if (indio_dev == mapi->indio_dev) { in iio_map_array_unregister()
66 list_del(&mapi->l); in iio_map_array_unregister()
67 kfree(mapi); in iio_map_array_unregister()