Lines Matching refs:n_blocks

1885 	u32 n_blocks = OPA_AM_NBLK(am);  in __subn_get_opa_sc_to_vlt()  local
1890 if (n_blocks != 1 || smp_length_check(size, max_len)) { in __subn_get_opa_sc_to_vlt()
1907 u32 n_blocks = OPA_AM_NBLK(am); in __subn_set_opa_sc_to_vlt() local
1921 if (n_blocks != 1 || async_update || smp_length_check(size, max_len)) { in __subn_set_opa_sc_to_vlt()
1949 u32 n_blocks = OPA_AM_NPORT(am); in __subn_get_opa_sc_to_vlnt() local
1955 if (n_blocks != 1 || smp_length_check(size, max_len)) { in __subn_get_opa_sc_to_vlnt()
1974 u32 n_blocks = OPA_AM_NPORT(am); in __subn_set_opa_sc_to_vlnt() local
1981 if (n_blocks != 1 || smp_length_check(size, max_len)) { in __subn_set_opa_sc_to_vlnt()
3894 u32 n_blocks = OPA_AM_NBLK(am); in __subn_get_opa_cc_table() local
3899 u32 size = sizeof(u16) * (IB_CCT_ENTRIES * n_blocks + 1); in __subn_get_opa_cc_table()
3902 if (n_blocks == 0 || smp_length_check(size, max_len) || in __subn_get_opa_cc_table()
3903 start_block + n_blocks > ppd->cc_max_table_entries) { in __subn_get_opa_cc_table()
3918 eentry = sentry + (IB_CCT_ENTRIES * n_blocks); in __subn_get_opa_cc_table()
3945 u32 n_blocks = OPA_AM_NBLK(am); in __subn_set_opa_cc_table() local
3950 u32 size = sizeof(u16) * (IB_CCT_ENTRIES * n_blocks + 1); in __subn_set_opa_cc_table()
3953 if (n_blocks == 0 || smp_length_check(size, max_len) || in __subn_set_opa_cc_table()
3954 start_block + n_blocks > ppd->cc_max_table_entries) { in __subn_set_opa_cc_table()
3960 eentry = sentry + ((n_blocks - 1) * IB_CCT_ENTRIES) + in __subn_set_opa_cc_table()