Lines Matching refs:sid

75 #define DART_TCR(sid) (0x100 + 4 * (sid))  argument
80 #define DART_TTBR(sid, idx) (0x200 + 16 * (sid) + 4 * (idx)) argument
197 int sid; in apple_dart_hw_enable_translation() local
199 for_each_set_bit(sid, &stream_map->sidmap, DART_MAX_STREAMS) in apple_dart_hw_enable_translation()
201 stream_map->dart->regs + DART_TCR(sid)); in apple_dart_hw_enable_translation()
206 int sid; in apple_dart_hw_disable_dma() local
208 for_each_set_bit(sid, &stream_map->sidmap, DART_MAX_STREAMS) in apple_dart_hw_disable_dma()
209 writel(0, stream_map->dart->regs + DART_TCR(sid)); in apple_dart_hw_disable_dma()
215 int sid; in apple_dart_hw_enable_bypass() local
218 for_each_set_bit(sid, &stream_map->sidmap, DART_MAX_STREAMS) in apple_dart_hw_enable_bypass()
220 stream_map->dart->regs + DART_TCR(sid)); in apple_dart_hw_enable_bypass()
226 int sid; in apple_dart_hw_set_ttbr() local
229 for_each_set_bit(sid, &stream_map->sidmap, DART_MAX_STREAMS) in apple_dart_hw_set_ttbr()
231 stream_map->dart->regs + DART_TTBR(sid, idx)); in apple_dart_hw_set_ttbr()
237 int sid; in apple_dart_hw_clear_ttbr() local
239 for_each_set_bit(sid, &stream_map->sidmap, DART_MAX_STREAMS) in apple_dart_hw_clear_ttbr()
240 writel(0, stream_map->dart->regs + DART_TTBR(sid, idx)); in apple_dart_hw_clear_ttbr()
611 int i, sid; in apple_dart_of_xlate() local
615 sid = args->args[0]; in apple_dart_of_xlate()
635 cfg->stream_maps[i].sidmap |= 1 << sid; in apple_dart_of_xlate()
642 cfg->stream_maps[i].sidmap = 1 << sid; in apple_dart_of_xlate()
654 int i, sid; in apple_dart_release_group() local
661 for_each_set_bit(sid, &stream_map->sidmap, DART_MAX_STREAMS) in apple_dart_release_group()
662 stream_map->dart->sid2group[sid] = NULL; in apple_dart_release_group()
670 int i, sid; in apple_dart_device_group() local
680 for_each_set_bit(sid, &stream_map->sidmap, DART_MAX_STREAMS) { in apple_dart_device_group()
682 stream_map->dart->sid2group[sid]; in apple_dart_device_group()
719 for_each_set_bit(sid, &stream_map->sidmap, DART_MAX_STREAMS) in apple_dart_device_group()
720 stream_map->dart->sid2group[sid] = group; in apple_dart_device_group()