Lines Matching refs:sid
144 #define DART_TCR(dart, sid) ((dart)->hw->tcr + ((sid) << 2)) argument
146 #define DART_TTBR(dart, sid, idx) ((dart)->hw->ttbr + \ argument
147 (((dart)->hw->ttbr_count * (sid)) << 2) + \
309 int sid; in apple_dart_hw_enable_translation() local
311 for_each_set_bit(sid, stream_map->sidmap, dart->num_streams) in apple_dart_hw_enable_translation()
312 writel(dart->hw->tcr_enabled, dart->regs + DART_TCR(dart, sid)); in apple_dart_hw_enable_translation()
318 int sid; in apple_dart_hw_disable_dma() local
320 for_each_set_bit(sid, stream_map->sidmap, dart->num_streams) in apple_dart_hw_disable_dma()
321 writel(dart->hw->tcr_disabled, dart->regs + DART_TCR(dart, sid)); in apple_dart_hw_disable_dma()
328 int sid; in apple_dart_hw_enable_bypass() local
331 for_each_set_bit(sid, stream_map->sidmap, dart->num_streams) in apple_dart_hw_enable_bypass()
333 dart->regs + DART_TCR(dart, sid)); in apple_dart_hw_enable_bypass()
340 int sid; in apple_dart_hw_set_ttbr() local
343 for_each_set_bit(sid, stream_map->sidmap, dart->num_streams) in apple_dart_hw_set_ttbr()
346 dart->regs + DART_TTBR(dart, sid, idx)); in apple_dart_hw_set_ttbr()
353 int sid; in apple_dart_hw_clear_ttbr() local
355 for_each_set_bit(sid, stream_map->sidmap, dart->num_streams) in apple_dart_hw_clear_ttbr()
356 writel(0, dart->regs + DART_TTBR(dart, sid, idx)); in apple_dart_hw_clear_ttbr()
405 int sid; in apple_dart_t8110_hw_tlb_command() local
409 for_each_set_bit(sid, stream_map->sidmap, dart->num_streams) { in apple_dart_t8110_hw_tlb_command()
411 FIELD_PREP(DART_T8110_TLB_CMD_STREAM, sid); in apple_dart_t8110_hw_tlb_command()
429 command, sid); in apple_dart_t8110_hw_tlb_command()
757 int i, sid; in apple_dart_of_xlate() local
761 sid = args->args[0]; in apple_dart_of_xlate()
781 set_bit(sid, cfg->stream_maps[i].sidmap); in apple_dart_of_xlate()
788 set_bit(sid, cfg->stream_maps[i].sidmap); in apple_dart_of_xlate()
800 int i, sid; in apple_dart_release_group() local
807 for_each_set_bit(sid, stream_map->sidmap, stream_map->dart->num_streams) in apple_dart_release_group()
808 stream_map->dart->sid2group[sid] = NULL; in apple_dart_release_group()
839 int i, sid; in apple_dart_device_group() local
849 for_each_set_bit(sid, stream_map->sidmap, stream_map->dart->num_streams) { in apple_dart_device_group()
851 stream_map->dart->sid2group[sid]; in apple_dart_device_group()
902 for_each_set_bit(sid, stream_map->sidmap, stream_map->dart->num_streams) in apple_dart_device_group()
903 stream_map->dart->sid2group[sid] = group; in apple_dart_device_group()
1244 unsigned int sid, idx; in apple_dart_suspend() local
1246 for (sid = 0; sid < dart->num_streams; sid++) { in apple_dart_suspend()
1247 dart->save_tcr[sid] = readl_relaxed(dart->regs + DART_TCR(dart, sid)); in apple_dart_suspend()
1249 dart->save_ttbr[sid][idx] = in apple_dart_suspend()
1250 readl(dart->regs + DART_TTBR(dart, sid, idx)); in apple_dart_suspend()
1259 unsigned int sid, idx; in apple_dart_resume() local
1268 for (sid = 0; sid < dart->num_streams; sid++) { in apple_dart_resume()
1270 writel(dart->save_ttbr[sid][idx], in apple_dart_resume()
1271 dart->regs + DART_TTBR(dart, sid, idx)); in apple_dart_resume()
1272 writel(dart->save_tcr[sid], dart->regs + DART_TCR(dart, sid)); in apple_dart_resume()