Lines Matching refs:unsigned_field_width
16 fn unsigned_field_width(value: u32, width: u8) -> u32 { in unsigned_field_width() function
26 bits |= unsigned_field_width(opcode, 7); in encode_r_type_bits()
27 bits |= unsigned_field_width(rd, 5) << 7; in encode_r_type_bits()
28 bits |= unsigned_field_width(funct3, 3) << 12; in encode_r_type_bits()
29 bits |= unsigned_field_width(rs1, 5) << 15; in encode_r_type_bits()
30 bits |= unsigned_field_width(rs2, 5) << 20; in encode_r_type_bits()
31 bits |= unsigned_field_width(funct7, 7) << 25; in encode_r_type_bits()
59 bits |= unsigned_field_width(opcode, 7); in encode_i_type_bits()
60 bits |= unsigned_field_width(rd, 5) << 7; in encode_i_type_bits()
61 bits |= unsigned_field_width(funct3, 3) << 12; in encode_i_type_bits()
62 bits |= unsigned_field_width(rs1, 5) << 15; in encode_i_type_bits()
63 bits |= unsigned_field_width(offset, 12) << 20; in encode_i_type_bits()
85 bits |= unsigned_field_width(opcode, 7); in encode_s_type()
87 bits |= unsigned_field_width(width, 3) << 12; in encode_s_type()
90 bits |= unsigned_field_width(offset.bits() >> 5, 7) << 25; in encode_s_type()
241 bits |= unsigned_field_width(opcode, 7); in encode_vcfg_imm()
244 bits |= unsigned_field_width(imm.bits(), 5) << 15; in encode_vcfg_imm()
245 bits |= unsigned_field_width(vtype.encode(), 10) << 20; in encode_vcfg_imm()
273 bits |= unsigned_field_width(opcode, 7); in encode_vmem_load()
277 bits |= unsigned_field_width(lumop, 5) << 20; in encode_vmem_load()
279 bits |= unsigned_field_width(mop, 2) << 26; in encode_vmem_load()
285 bits |= unsigned_field_width(nf, 3) << 29; in encode_vmem_load()
332 bits |= unsigned_field_width(op.op().bits(), 2); in encode_cr_type()
335 bits |= unsigned_field_width(op.funct4(), 4) << 12; in encode_cr_type()
353 bits |= unsigned_field_width(op.op().bits(), 2); in encode_ca_type()
355 bits |= unsigned_field_width(op.funct2(), 2) << 5; in encode_ca_type()
357 bits |= unsigned_field_width(op.funct6(), 6) << 10; in encode_ca_type()
384 bits |= unsigned_field_width(op.op().bits(), 2); in encode_cj_type()
385 bits |= unsigned_field_width(imm_field, 11) << 2; in encode_cj_type()
386 bits |= unsigned_field_width(op.funct3(), 3) << 13; in encode_cj_type()
400 bits |= unsigned_field_width(op.op().bits(), 2); in encode_ci_type()
401 bits |= unsigned_field_width((imm & 0x1f) as u32, 5) << 2; in encode_ci_type()
403 bits |= unsigned_field_width(((imm >> 5) & 1) as u32, 1) << 12; in encode_ci_type()
404 bits |= unsigned_field_width(op.funct3(), 3) << 13; in encode_ci_type()
472 bits |= unsigned_field_width(op.op().bits(), 2); in encode_ciw_type()
474 bits |= unsigned_field_width(imm_field as u32, 8) << 5; in encode_ciw_type()
475 bits |= unsigned_field_width(op.funct3(), 3) << 13; in encode_ciw_type()
489 bits |= unsigned_field_width(op.op().bits(), 2); in encode_cb_type()
490 bits |= unsigned_field_width((imm & 0x1f) as u32, 5) << 2; in encode_cb_type()
492 bits |= unsigned_field_width(op.funct2(), 2) << 10; in encode_cb_type()
493 bits |= unsigned_field_width(((imm >> 5) & 1) as u32, 1) << 12; in encode_cb_type()
494 bits |= unsigned_field_width(op.funct3(), 3) << 13; in encode_cb_type()
526 bits |= unsigned_field_width(op.op().bits(), 2); in encode_css_type()
528 bits |= unsigned_field_width(enc_imm as u32, 6) << 7; in encode_css_type()
529 bits |= unsigned_field_width(op.funct3(), 3) << 13; in encode_css_type()
596 bits |= unsigned_field_width(op.bits(), 2); in encode_cs_cl_type_bits()
598 bits |= unsigned_field_width(imm2 as u32, 2) << 5; in encode_cs_cl_type_bits()
600 bits |= unsigned_field_width(imm3 as u32, 3) << 10; in encode_cs_cl_type_bits()
601 bits |= unsigned_field_width(funct3, 3) << 13; in encode_cs_cl_type_bits()
613 bits |= unsigned_field_width(op.op().bits(), 2); in encode_cszn_type()
614 bits |= unsigned_field_width(op.funct5(), 5) << 2; in encode_cszn_type()
616 bits |= unsigned_field_width(op.funct6(), 6) << 10; in encode_cszn_type()
640 bits |= unsigned_field_width(op.op().bits(), 2); in encode_zcbmem_bits()
642 bits |= unsigned_field_width(imm as u32, 2) << 5; in encode_zcbmem_bits()
644 bits |= unsigned_field_width(op.funct6(), 6) << 10; in encode_zcbmem_bits()
664 bits |= unsigned_field_width(op.opcode(), 7); in encode_fli()
666 bits |= unsigned_field_width(frm, 3) << 12; in encode_fli()
667 bits |= unsigned_field_width(imm.bits() as u32, 5) << 15; in encode_fli()
668 bits |= unsigned_field_width(rs2, 6) << 20; in encode_fli()
669 bits |= unsigned_field_width(op.funct7(width), 7) << 25; in encode_fli()