Lines Matching refs:am

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