Lines Matching refs:n_blocks
1927 u32 n_blocks = OPA_AM_NBLK(am); in __subn_get_opa_sc_to_vlt() local
1932 if (n_blocks != 1 || smp_length_check(size, max_len)) { in __subn_get_opa_sc_to_vlt()
1949 u32 n_blocks = OPA_AM_NBLK(am); in __subn_set_opa_sc_to_vlt() local
1963 if (n_blocks != 1 || async_update || smp_length_check(size, max_len)) { in __subn_set_opa_sc_to_vlt()
1991 u32 n_blocks = OPA_AM_NPORT(am); in __subn_get_opa_sc_to_vlnt() local
1997 if (n_blocks != 1 || smp_length_check(size, max_len)) { in __subn_get_opa_sc_to_vlnt()
2016 u32 n_blocks = OPA_AM_NPORT(am); in __subn_set_opa_sc_to_vlnt() local
2023 if (n_blocks != 1 || smp_length_check(size, max_len)) { in __subn_set_opa_sc_to_vlnt()
3937 u32 n_blocks = OPA_AM_NBLK(am); in __subn_get_opa_cc_table() local
3942 u32 size = sizeof(u16) * (IB_CCT_ENTRIES * n_blocks + 1); in __subn_get_opa_cc_table()
3945 if (n_blocks == 0 || smp_length_check(size, max_len) || in __subn_get_opa_cc_table()
3946 start_block + n_blocks > ppd->cc_max_table_entries) { in __subn_get_opa_cc_table()
3961 eentry = sentry + (IB_CCT_ENTRIES * n_blocks); in __subn_get_opa_cc_table()
3988 u32 n_blocks = OPA_AM_NBLK(am); in __subn_set_opa_cc_table() local
3993 u32 size = sizeof(u16) * (IB_CCT_ENTRIES * n_blocks + 1); in __subn_set_opa_cc_table()
3996 if (n_blocks == 0 || smp_length_check(size, max_len) || in __subn_set_opa_cc_table()
3997 start_block + n_blocks > ppd->cc_max_table_entries) { in __subn_set_opa_cc_table()
4003 eentry = sentry + ((n_blocks - 1) * IB_CCT_ENTRIES) + in __subn_set_opa_cc_table()