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()
3936 u32 n_blocks = OPA_AM_NBLK(am); in __subn_get_opa_cc_table() local
3941 u32 size = sizeof(u16) * (IB_CCT_ENTRIES * n_blocks + 1); in __subn_get_opa_cc_table()
3944 if (n_blocks == 0 || smp_length_check(size, max_len) || in __subn_get_opa_cc_table()
3945 start_block + n_blocks > ppd->cc_max_table_entries) { in __subn_get_opa_cc_table()
3960 eentry = sentry + (IB_CCT_ENTRIES * n_blocks); in __subn_get_opa_cc_table()
3987 u32 n_blocks = OPA_AM_NBLK(am); in __subn_set_opa_cc_table() local
3992 u32 size = sizeof(u16) * (IB_CCT_ENTRIES * n_blocks + 1); in __subn_set_opa_cc_table()
3995 if (n_blocks == 0 || smp_length_check(size, max_len) || in __subn_set_opa_cc_table()
3996 start_block + n_blocks > ppd->cc_max_table_entries) { in __subn_set_opa_cc_table()
4002 eentry = sentry + ((n_blocks - 1) * IB_CCT_ENTRIES) + in __subn_set_opa_cc_table()