Lines Matching refs:scheme_id
269 static u32 build_ar_scheme(u8 scheme_id, bool update_counter, bool write) in build_ar_scheme() argument
277 ((u32)scheme_id << FM_KG_KGAR_NUM_SHIFT) | in build_ar_scheme()
370 static int keygen_write_scheme(struct fman_kg_regs __iomem *regs, u8 scheme_id, in keygen_write_scheme() argument
399 ar_reg = build_ar_scheme(scheme_id, update_counter, true); in keygen_write_scheme()
418 static int get_free_scheme_id(struct fman_keygen *keygen, u8 *scheme_id) in get_free_scheme_id() argument
424 *scheme_id = i; in get_free_scheme_id()
441 u8 scheme_id) in get_scheme() argument
443 if (scheme_id >= FM_KG_MAX_NUM_OF_SCHEMES) in get_scheme()
445 return &keygen->schemes[scheme_id]; in get_scheme()
459 u8 scheme_id, in keygen_bind_port_to_schemes() argument
468 scheme = get_scheme(keygen, scheme_id); in keygen_bind_port_to_schemes()
478 schemes_vector |= 1 << (31 - scheme_id); in keygen_bind_port_to_schemes()
509 static int keygen_scheme_setup(struct fman_keygen *keygen, u8 scheme_id, in keygen_scheme_setup() argument
518 scheme = get_scheme(keygen, scheme_id); in keygen_scheme_setup()
603 err = keygen_write_scheme(keygen_regs, scheme_id, &scheme_regs, true); in keygen_scheme_setup()
692 u8 scheme_id; in keygen_port_hashing_init() local
706 err = get_free_scheme_id(keygen, &scheme_id); in keygen_port_hashing_init()
714 scheme = get_scheme(keygen, scheme_id); in keygen_port_hashing_init()
742 err = keygen_scheme_setup(keygen, scheme_id, true); in keygen_port_hashing_init()
749 err = keygen_bind_port_to_schemes(keygen, scheme_id, true); in keygen_port_hashing_init()