Lines Matching refs:am

540 static int __subn_get_opa_nodedesc(struct opa_smp *smp, u32 am,
546 if (am || smp_length_check(sizeof(*nd), max_len)) {
561 static int __subn_get_opa_nodeinfo(struct opa_smp *smp, u32 am, u8 *data,
572 if (am || pidx >= dd->num_pports || ibdev->node_guid == 0 ||
754 static int __subn_get_opa_portinfo(struct opa_smp *smp, u32 am, u8 *data,
767 u32 num_ports = OPA_AM_NPORT(am);
768 u32 start_of_sm_config = OPA_AM_START_SM_CFG(am);
979 static int __subn_get_opa_pkeytable(struct opa_smp *smp, u32 am, u8 *data,
984 u32 n_blocks_req = OPA_AM_NBLK(am);
985 u32 start_block = am & 0x7ff;
1309 static int __subn_set_opa_portinfo(struct opa_smp *smp, u32 am, u8 *data,
1327 u32 num_ports = OPA_AM_NPORT(am);
1328 u32 start_of_sm_config = OPA_AM_START_SM_CFG(am);
1600 ret = __subn_get_opa_portinfo(smp, am, data, ibdev, port, resp_len,
1618 return __subn_get_opa_portinfo(smp, am, data, ibdev, port, resp_len,
1678 static int __subn_set_opa_pkeytable(struct opa_smp *smp, u32 am, u8 *data,
1683 u32 n_blocks_sent = OPA_AM_NBLK(am);
1684 u32 start_block = am & 0x7ff;
1725 return __subn_get_opa_pkeytable(smp, am, data, ibdev, port, resp_len,
1785 static int __subn_get_opa_sl_to_sc(struct opa_smp *smp, u32 am, u8 *data,
1794 if (am || smp_length_check(size, max_len)) {
1808 static int __subn_set_opa_sl_to_sc(struct opa_smp *smp, u32 am, u8 *data,
1818 if (am || smp_length_check(size, max_len)) {
1833 return __subn_get_opa_sl_to_sc(smp, am, data, ibdev, port, resp_len,
1837 static int __subn_get_opa_sc_to_sl(struct opa_smp *smp, u32 am, u8 *data,
1846 if (am || smp_length_check(size, max_len)) {
1860 static int __subn_set_opa_sc_to_sl(struct opa_smp *smp, u32 am, u8 *data,
1869 if (am || smp_length_check(size, max_len)) {
1877 return __subn_get_opa_sc_to_sl(smp, am, data, ibdev, port, resp_len,
1881 static int __subn_get_opa_sc_to_vlt(struct opa_smp *smp, u32 am, u8 *data,
1885 u32 n_blocks = OPA_AM_NBLK(am);
1903 static int __subn_set_opa_sc_to_vlt(struct opa_smp *smp, u32 am, u8 *data,
1907 u32 n_blocks = OPA_AM_NBLK(am);
1908 int async_update = OPA_AM_ASYNC(am);
1941 return __subn_get_opa_sc_to_vlt(smp, am, data, ibdev, port, resp_len,
1945 static int __subn_get_opa_sc_to_vlnt(struct opa_smp *smp, u32 am, u8 *data,
1949 u32 n_blocks = OPA_AM_NPORT(am);
1970 static int __subn_set_opa_sc_to_vlnt(struct opa_smp *smp, u32 am, u8 *data,
1974 u32 n_blocks = OPA_AM_NPORT(am);
1998 return __subn_get_opa_sc_to_vlnt(smp, am, data, ibdev, port,
2002 static int __subn_get_opa_psi(struct opa_smp *smp, u32 am, u8 *data,
2006 u32 nports = OPA_AM_NPORT(am);
2007 u32 start_of_sm_config = OPA_AM_START_SM_CFG(am);
2044 static int __subn_set_opa_psi(struct opa_smp *smp, u32 am, u8 *data,
2048 u32 nports = OPA_AM_NPORT(am);
2049 u32 start_of_sm_config = OPA_AM_START_SM_CFG(am);
2088 return __subn_get_opa_psi(smp, am, data, ibdev, port, resp_len,
2092 static int __subn_get_opa_cable_info(struct opa_smp *smp, u32 am, u8 *data,
2097 u32 addr = OPA_AM_CI_ADDR(am);
2098 u32 len = OPA_AM_CI_LEN(am) + 1;
2144 static int __subn_get_opa_bct(struct opa_smp *smp, u32 am, u8 *data,
2148 u32 num_ports = OPA_AM_NPORT(am);
2168 static int __subn_set_opa_bct(struct opa_smp *smp, u32 am, u8 *data,
2172 u32 num_ports = OPA_AM_NPORT(am);
2188 return __subn_get_opa_bct(smp, am, data, ibdev, port, resp_len,
2192 static int __subn_get_opa_vl_arb(struct opa_smp *smp, u32 am, u8 *data,
2197 u32 num_ports = OPA_AM_NPORT(am);
2198 u8 section = (am & 0x00ff0000) >> 16;
2234 static int __subn_set_opa_vl_arb(struct opa_smp *smp, u32 am, u8 *data,
2239 u32 num_ports = OPA_AM_NPORT(am);
2240 u8 section = (am & 0x00ff0000) >> 16;
2271 return __subn_get_opa_vl_arb(smp, am, data, ibdev, port, resp_len,
3662 static int __subn_get_opa_cong_info(struct opa_smp *smp, u32 am, u8 *data,
3686 static int __subn_get_opa_cong_setting(struct opa_smp *smp, u32 am,
3779 static int __subn_set_opa_cong_setting(struct opa_smp *smp, u32 am, u8 *data,
3815 return __subn_get_opa_cong_setting(smp, am, data, ibdev, port,
3819 static int __subn_get_opa_hfi1_cong_log(struct opa_smp *smp, u32 am,
3829 if (am || smp_length_check(sizeof(*cong_log), max_len)) {
3885 static int __subn_get_opa_cc_table(struct opa_smp *smp, u32 am, u8 *data,
3893 u32 start_block = OPA_AM_START_BLK(am);
3894 u32 n_blocks = OPA_AM_NBLK(am);
3937 static int __subn_set_opa_cc_table(struct opa_smp *smp, u32 am, u8 *data,
3944 u32 start_block = OPA_AM_START_BLK(am);
3945 u32 n_blocks = OPA_AM_NBLK(am);
3984 return __subn_get_opa_cc_table(smp, am, data, ibdev, port, resp_len,
3996 static int __subn_get_opa_led_info(struct opa_smp *smp, u32 am, u8 *data,
4003 u32 nport = OPA_AM_NPORT(am);
4026 static int __subn_set_opa_led_info(struct opa_smp *smp, u32 am, u8 *data,
4032 u32 nport = OPA_AM_NPORT(am);
4045 return __subn_get_opa_led_info(smp, am, data, ibdev, port, resp_len,
4049 static int subn_get_opa_sma(__be16 attr_id, struct opa_smp *smp, u32 am,
4058 ret = __subn_get_opa_nodedesc(smp, am, data, ibdev, port,
4062 ret = __subn_get_opa_nodeinfo(smp, am, data, ibdev, port,
4066 ret = __subn_get_opa_portinfo(smp, am, data, ibdev, port,
4070 ret = __subn_get_opa_pkeytable(smp, am, data, ibdev, port,
4074 ret = __subn_get_opa_sl_to_sc(smp, am, data, ibdev, port,
4078 ret = __subn_get_opa_sc_to_sl(smp, am, data, ibdev, port,
4082 ret = __subn_get_opa_sc_to_vlt(smp, am, data, ibdev, port,
4086 ret = __subn_get_opa_sc_to_vlnt(smp, am, data, ibdev, port,
4090 ret = __subn_get_opa_psi(smp, am, data, ibdev, port,
4094 ret = __subn_get_opa_bct(smp, am, data, ibdev, port,
4098 ret = __subn_get_opa_cable_info(smp, am, data, ibdev, port,
4102 ret = __subn_get_opa_vl_arb(smp, am, data, ibdev, port,
4106 ret = __subn_get_opa_cong_info(smp, am, data, ibdev, port,
4110 ret = __subn_get_opa_cong_setting(smp, am, data, ibdev,
4114 ret = __subn_get_opa_hfi1_cong_log(smp, am, data, ibdev,
4118 ret = __subn_get_opa_cc_table(smp, am, data, ibdev, port,
4122 ret = __subn_get_opa_led_info(smp, am, data, ibdev, port,
4139 static int subn_set_opa_sma(__be16 attr_id, struct opa_smp *smp, u32 am,
4148 ret = __subn_set_opa_portinfo(smp, am, data, ibdev, port,
4152 ret = __subn_set_opa_pkeytable(smp, am, data, ibdev, port,
4156 ret = __subn_set_opa_sl_to_sc(smp, am, data, ibdev, port,
4160 ret = __subn_set_opa_sc_to_sl(smp, am, data, ibdev, port,
4164 ret = __subn_set_opa_sc_to_vlt(smp, am, data, ibdev, port,
4168 ret = __subn_set_opa_sc_to_vlnt(smp, am, data, ibdev, port,
4172 ret = __subn_set_opa_psi(smp, am, data, ibdev, port,
4176 ret = __subn_set_opa_bct(smp, am, data, ibdev, port,
4180 ret = __subn_set_opa_vl_arb(smp, am, data, ibdev, port,
4184 ret = __subn_set_opa_cong_setting(smp, am, data, ibdev,
4188 ret = __subn_set_opa_cc_table(smp, am, data, ibdev, port,
4192 ret = __subn_set_opa_led_info(smp, am, data, ibdev, port,
4231 u32 am;
4236 am = be32_to_cpu(agg->attr_mod);
4248 (void)subn_get_opa_sma(agg->attr_id, smp, am, agg->data,
4280 u32 am;
4285 am = be32_to_cpu(agg->attr_mod);
4294 (void)subn_set_opa_sma(agg->attr_id, smp, am, agg->data,
4477 u32 am, data_size;
4485 am = be32_to_cpu(smp->attr_mod);
4526 ret = subn_get_opa_sma(attr_id, smp, am, data,
4539 ret = subn_set_opa_sma(attr_id, smp, am, data,