Lines Matching refs:scheme
463 struct keygen_scheme *scheme; in keygen_bind_port_to_schemes() local
468 scheme = get_scheme(keygen, scheme_id); in keygen_bind_port_to_schemes()
469 if (!scheme) { in keygen_bind_port_to_schemes()
473 if (!scheme->used) { in keygen_bind_port_to_schemes()
480 ar_reg = build_ar_bind_scheme(scheme->hw_port_id, false); in keygen_bind_port_to_schemes()
489 ar_reg = build_ar_bind_scheme(scheme->hw_port_id, true); in keygen_bind_port_to_schemes()
514 struct keygen_scheme *scheme; in keygen_scheme_setup() local
518 scheme = get_scheme(keygen, scheme_id); in keygen_scheme_setup()
519 if (!scheme) { in keygen_scheme_setup()
523 if (enable && scheme->used) { in keygen_scheme_setup()
543 scheme_regs.kgse_mv = scheme->match_vector; in keygen_scheme_setup()
552 if (scheme->use_hashing) { in keygen_scheme_setup()
571 tmp_reg |= ((scheme->hash_fqid_count - 1) << in keygen_scheme_setup()
573 tmp_reg |= scheme->hashShift << KG_SCH_HASH_CONFIG_SHIFT_SHIFT; in keygen_scheme_setup()
575 if (scheme->symmetric_hash) { in keygen_scheme_setup()
594 tmp_reg |= scheme->base_fqid; in keygen_scheme_setup()
610 scheme->used = enable; in keygen_scheme_setup()
691 struct keygen_scheme *scheme; in keygen_port_hashing_init() local
714 scheme = get_scheme(keygen, scheme_id); in keygen_port_hashing_init()
715 if (!scheme) { in keygen_port_hashing_init()
719 if (scheme->used) { in keygen_port_hashing_init()
727 memset(scheme, 0, sizeof(struct keygen_scheme)); in keygen_port_hashing_init()
730 scheme->hw_port_id = hw_port_id; in keygen_port_hashing_init()
731 scheme->use_hashing = true; in keygen_port_hashing_init()
732 scheme->base_fqid = hash_base_fqid; in keygen_port_hashing_init()
733 scheme->hash_fqid_count = hash_size; in keygen_port_hashing_init()
734 scheme->symmetric_hash = DEFAULT_SYMMETRIC_HASH; in keygen_port_hashing_init()
735 scheme->hashShift = DEFAULT_HASH_SHIFT; in keygen_port_hashing_init()
740 scheme->match_vector = 0; in keygen_port_hashing_init()