Lines Matching refs:nr
232 unsigned nr; member
396 unsigned nr, in brw_reg() argument
409 assert(nr < BRW_MAX_GRF); in brw_reg()
411 assert(nr <= BRW_ARF_TIMESTAMP); in brw_reg()
424 reg.nr = nr; in brw_reg()
444 brw_vec16_reg(enum brw_reg_file file, unsigned nr, unsigned subnr) in brw_vec16_reg() argument
447 nr, in brw_vec16_reg()
461 brw_vec8_reg(enum brw_reg_file file, unsigned nr, unsigned subnr) in brw_vec8_reg() argument
464 nr, in brw_vec8_reg()
478 brw_vec4_reg(enum brw_reg_file file, unsigned nr, unsigned subnr) in brw_vec4_reg() argument
481 nr, in brw_vec4_reg()
495 brw_vec2_reg(enum brw_reg_file file, unsigned nr, unsigned subnr) in brw_vec2_reg() argument
498 nr, in brw_vec2_reg()
512 brw_vec1_reg(enum brw_reg_file file, unsigned nr, unsigned subnr) in brw_vec1_reg() argument
515 nr, in brw_vec1_reg()
529 unsigned nr, unsigned subnr) in brw_vecn_reg() argument
533 return brw_vec1_reg(file, nr, subnr); in brw_vecn_reg()
535 return brw_vec2_reg(file, nr, subnr); in brw_vecn_reg()
537 return brw_vec4_reg(file, nr, subnr); in brw_vecn_reg()
539 return brw_vec8_reg(file, nr, subnr); in brw_vecn_reg()
541 return brw_vec16_reg(file, nr, subnr); in brw_vecn_reg()
564 reg.nr++; in sechalf()
571 reg.nr += delta; in offset()
579 unsigned newoffset = reg.nr * REG_SIZE + reg.subnr + bytes; in byte_offset()
580 reg.nr = newoffset / REG_SIZE; in byte_offset()
593 brw_uw16_reg(enum brw_reg_file file, unsigned nr, unsigned subnr) in brw_uw16_reg() argument
595 return suboffset(retype(brw_vec16_reg(file, nr, 0), BRW_REGISTER_TYPE_UW), subnr); in brw_uw16_reg()
600 brw_uw8_reg(enum brw_reg_file file, unsigned nr, unsigned subnr) in brw_uw8_reg() argument
602 return suboffset(retype(brw_vec8_reg(file, nr, 0), BRW_REGISTER_TYPE_UW), subnr); in brw_uw8_reg()
607 brw_uw1_reg(enum brw_reg_file file, unsigned nr, unsigned subnr) in brw_uw1_reg() argument
609 return suboffset(retype(brw_vec1_reg(file, nr, 0), BRW_REGISTER_TYPE_UW), subnr); in brw_uw1_reg()
613 brw_ud1_reg(enum brw_reg_file file, unsigned nr, unsigned subnr) in brw_ud1_reg() argument
615 return retype(brw_vec1_reg(file, nr, subnr), BRW_REGISTER_TYPE_UD); in brw_ud1_reg()
759 return brw_imm_uw(reg.nr * REG_SIZE + reg.subnr); in brw_address()
764 brw_vec1_grf(unsigned nr, unsigned subnr) in brw_vec1_grf() argument
766 return brw_vec1_reg(BRW_GENERAL_REGISTER_FILE, nr, subnr); in brw_vec1_grf()
771 brw_vec2_grf(unsigned nr, unsigned subnr) in brw_vec2_grf() argument
773 return brw_vec2_reg(BRW_GENERAL_REGISTER_FILE, nr, subnr); in brw_vec2_grf()
778 brw_vec4_grf(unsigned nr, unsigned subnr) in brw_vec4_grf() argument
780 return brw_vec4_reg(BRW_GENERAL_REGISTER_FILE, nr, subnr); in brw_vec4_grf()
785 brw_vec8_grf(unsigned nr, unsigned subnr) in brw_vec8_grf() argument
787 return brw_vec8_reg(BRW_GENERAL_REGISTER_FILE, nr, subnr); in brw_vec8_grf()
792 brw_vec16_grf(unsigned nr, unsigned subnr) in brw_vec16_grf() argument
794 return brw_vec16_reg(BRW_GENERAL_REGISTER_FILE, nr, subnr); in brw_vec16_grf()
798 brw_vecn_grf(unsigned width, unsigned nr, unsigned subnr) in brw_vecn_grf() argument
800 return brw_vecn_reg(width, BRW_GENERAL_REGISTER_FILE, nr, subnr); in brw_vecn_grf()
805 brw_uw8_grf(unsigned nr, unsigned subnr) in brw_uw8_grf() argument
807 return brw_uw8_reg(BRW_GENERAL_REGISTER_FILE, nr, subnr); in brw_uw8_grf()
811 brw_uw16_grf(unsigned nr, unsigned subnr) in brw_uw16_grf() argument
813 return brw_uw16_reg(BRW_GENERAL_REGISTER_FILE, nr, subnr); in brw_uw16_grf()
950 brw_message_reg(unsigned nr) in brw_message_reg() argument
952 return brw_vec8_reg(BRW_MESSAGE_REGISTER_FILE, nr, 0); in brw_message_reg()
956 brw_uvec_mrf(unsigned width, unsigned nr, unsigned subnr) in brw_uvec_mrf() argument
958 return retype(brw_vecn_reg(width, BRW_MESSAGE_REGISTER_FILE, nr, subnr), in brw_uvec_mrf()