Home
last modified time | relevance | path

Searched refs:mapi (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/iio/
H A Dinkern.c32 struct iio_map_internal *mapi, *next; in iio_map_array_unregister_locked() local
34 list_for_each_entry_safe(mapi, next, &iio_map_list, l) { in iio_map_array_unregister_locked()
35 if (indio_dev == mapi->indio_dev) { in iio_map_array_unregister_locked()
36 list_del(&mapi->l); in iio_map_array_unregister_locked()
37 kfree(mapi); in iio_map_array_unregister_locked()
47 struct iio_map_internal *mapi; in iio_map_array_register() local
54 mapi = kzalloc(sizeof(*mapi), GFP_KERNEL); in iio_map_array_register()
55 if (!mapi) { in iio_map_array_register()
59 mapi->map = &maps[i]; in iio_map_array_register()
60 mapi->indio_dev = indio_dev; in iio_map_array_register()
[all …]
/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_da_btree.c2162 int nmap, error, got, i, mapi = 1; in xfs_da_grow_inode_int() local
2187 for (b = *bno, mapi = 0; b < *bno + count; ) { in xfs_da_grow_inode_int()
2192 args->total, &mapp[mapi], &nmap); in xfs_da_grow_inode_int()
2195 mapi += nmap; in xfs_da_grow_inode_int()
2196 b = mapp[mapi - 1].br_startoff + in xfs_da_grow_inode_int()
2197 mapp[mapi - 1].br_blockcount; in xfs_da_grow_inode_int()
2206 for (i = 0, got = 0; i < mapi; i++) in xfs_da_grow_inode_int()
2209 mapp[mapi - 1].br_startoff + mapp[mapi - 1].br_blockcount != in xfs_da_grow_inode_int()