• Home
  • Raw
  • Download

Lines Matching refs:am

582 static int __subn_get_opa_nodedesc(struct opa_smp *smp, u32 am,  in __subn_get_opa_nodedesc()  argument
588 if (am || smp_length_check(sizeof(*nd), max_len)) { in __subn_get_opa_nodedesc()
603 static int __subn_get_opa_nodeinfo(struct opa_smp *smp, u32 am, u8 *data, in __subn_get_opa_nodeinfo() argument
614 if (am || pidx >= dd->num_pports || ibdev->node_guid == 0 || in __subn_get_opa_nodeinfo()
796 static int __subn_get_opa_portinfo(struct opa_smp *smp, u32 am, u8 *data, in __subn_get_opa_portinfo() argument
809 u32 num_ports = OPA_AM_NPORT(am); in __subn_get_opa_portinfo()
810 u32 start_of_sm_config = OPA_AM_START_SM_CFG(am); in __subn_get_opa_portinfo()
1021 static int __subn_get_opa_pkeytable(struct opa_smp *smp, u32 am, u8 *data, in __subn_get_opa_pkeytable() argument
1026 u32 n_blocks_req = OPA_AM_NBLK(am); in __subn_get_opa_pkeytable()
1027 u32 start_block = am & 0x7ff; in __subn_get_opa_pkeytable()
1351 static int __subn_set_opa_portinfo(struct opa_smp *smp, u32 am, u8 *data, in __subn_set_opa_portinfo() argument
1369 u32 num_ports = OPA_AM_NPORT(am); in __subn_set_opa_portinfo()
1370 u32 start_of_sm_config = OPA_AM_START_SM_CFG(am); in __subn_set_opa_portinfo()
1642 ret = __subn_get_opa_portinfo(smp, am, data, ibdev, port, resp_len, in __subn_set_opa_portinfo()
1660 return __subn_get_opa_portinfo(smp, am, data, ibdev, port, resp_len, in __subn_set_opa_portinfo()
1720 static int __subn_set_opa_pkeytable(struct opa_smp *smp, u32 am, u8 *data, in __subn_set_opa_pkeytable() argument
1725 u32 n_blocks_sent = OPA_AM_NBLK(am); in __subn_set_opa_pkeytable()
1726 u32 start_block = am & 0x7ff; in __subn_set_opa_pkeytable()
1767 return __subn_get_opa_pkeytable(smp, am, data, ibdev, port, resp_len, in __subn_set_opa_pkeytable()
1827 static int __subn_get_opa_sl_to_sc(struct opa_smp *smp, u32 am, u8 *data, in __subn_get_opa_sl_to_sc() argument
1836 if (am || smp_length_check(size, max_len)) { in __subn_get_opa_sl_to_sc()
1850 static int __subn_set_opa_sl_to_sc(struct opa_smp *smp, u32 am, u8 *data, in __subn_set_opa_sl_to_sc() argument
1860 if (am || smp_length_check(size, max_len)) { in __subn_set_opa_sl_to_sc()
1875 return __subn_get_opa_sl_to_sc(smp, am, data, ibdev, port, resp_len, in __subn_set_opa_sl_to_sc()
1879 static int __subn_get_opa_sc_to_sl(struct opa_smp *smp, u32 am, u8 *data, in __subn_get_opa_sc_to_sl() argument
1888 if (am || smp_length_check(size, max_len)) { in __subn_get_opa_sc_to_sl()
1902 static int __subn_set_opa_sc_to_sl(struct opa_smp *smp, u32 am, u8 *data, in __subn_set_opa_sc_to_sl() argument
1911 if (am || smp_length_check(size, max_len)) { in __subn_set_opa_sc_to_sl()
1919 return __subn_get_opa_sc_to_sl(smp, am, data, ibdev, port, resp_len, in __subn_set_opa_sc_to_sl()
1923 static int __subn_get_opa_sc_to_vlt(struct opa_smp *smp, u32 am, u8 *data, in __subn_get_opa_sc_to_vlt() argument
1927 u32 n_blocks = OPA_AM_NBLK(am); in __subn_get_opa_sc_to_vlt()
1945 static int __subn_set_opa_sc_to_vlt(struct opa_smp *smp, u32 am, u8 *data, in __subn_set_opa_sc_to_vlt() argument
1949 u32 n_blocks = OPA_AM_NBLK(am); in __subn_set_opa_sc_to_vlt()
1950 int async_update = OPA_AM_ASYNC(am); in __subn_set_opa_sc_to_vlt()
1983 return __subn_get_opa_sc_to_vlt(smp, am, data, ibdev, port, resp_len, in __subn_set_opa_sc_to_vlt()
1987 static int __subn_get_opa_sc_to_vlnt(struct opa_smp *smp, u32 am, u8 *data, in __subn_get_opa_sc_to_vlnt() argument
1991 u32 n_blocks = OPA_AM_NPORT(am); in __subn_get_opa_sc_to_vlnt()
2012 static int __subn_set_opa_sc_to_vlnt(struct opa_smp *smp, u32 am, u8 *data, in __subn_set_opa_sc_to_vlnt() argument
2016 u32 n_blocks = OPA_AM_NPORT(am); in __subn_set_opa_sc_to_vlnt()
2040 return __subn_get_opa_sc_to_vlnt(smp, am, data, ibdev, port, in __subn_set_opa_sc_to_vlnt()
2044 static int __subn_get_opa_psi(struct opa_smp *smp, u32 am, u8 *data, in __subn_get_opa_psi() argument
2048 u32 nports = OPA_AM_NPORT(am); in __subn_get_opa_psi()
2049 u32 start_of_sm_config = OPA_AM_START_SM_CFG(am); in __subn_get_opa_psi()
2086 static int __subn_set_opa_psi(struct opa_smp *smp, u32 am, u8 *data, in __subn_set_opa_psi() argument
2090 u32 nports = OPA_AM_NPORT(am); in __subn_set_opa_psi()
2091 u32 start_of_sm_config = OPA_AM_START_SM_CFG(am); in __subn_set_opa_psi()
2130 return __subn_get_opa_psi(smp, am, data, ibdev, port, resp_len, in __subn_set_opa_psi()
2134 static int __subn_get_opa_cable_info(struct opa_smp *smp, u32 am, u8 *data, in __subn_get_opa_cable_info() argument
2139 u32 addr = OPA_AM_CI_ADDR(am); in __subn_get_opa_cable_info()
2140 u32 len = OPA_AM_CI_LEN(am) + 1; in __subn_get_opa_cable_info()
2186 static int __subn_get_opa_bct(struct opa_smp *smp, u32 am, u8 *data, in __subn_get_opa_bct() argument
2190 u32 num_ports = OPA_AM_NPORT(am); in __subn_get_opa_bct()
2210 static int __subn_set_opa_bct(struct opa_smp *smp, u32 am, u8 *data, in __subn_set_opa_bct() argument
2214 u32 num_ports = OPA_AM_NPORT(am); in __subn_set_opa_bct()
2230 return __subn_get_opa_bct(smp, am, data, ibdev, port, resp_len, in __subn_set_opa_bct()
2234 static int __subn_get_opa_vl_arb(struct opa_smp *smp, u32 am, u8 *data, in __subn_get_opa_vl_arb() argument
2239 u32 num_ports = OPA_AM_NPORT(am); in __subn_get_opa_vl_arb()
2240 u8 section = (am & 0x00ff0000) >> 16; in __subn_get_opa_vl_arb()
2276 static int __subn_set_opa_vl_arb(struct opa_smp *smp, u32 am, u8 *data, in __subn_set_opa_vl_arb() argument
2281 u32 num_ports = OPA_AM_NPORT(am); in __subn_set_opa_vl_arb()
2282 u8 section = (am & 0x00ff0000) >> 16; in __subn_set_opa_vl_arb()
2313 return __subn_get_opa_vl_arb(smp, am, data, ibdev, port, resp_len, in __subn_set_opa_vl_arb()
3704 static int __subn_get_opa_cong_info(struct opa_smp *smp, u32 am, u8 *data, in __subn_get_opa_cong_info() argument
3728 static int __subn_get_opa_cong_setting(struct opa_smp *smp, u32 am, in __subn_get_opa_cong_setting() argument
3821 static int __subn_set_opa_cong_setting(struct opa_smp *smp, u32 am, u8 *data, in __subn_set_opa_cong_setting() argument
3857 return __subn_get_opa_cong_setting(smp, am, data, ibdev, port, in __subn_set_opa_cong_setting()
3861 static int __subn_get_opa_hfi1_cong_log(struct opa_smp *smp, u32 am, in __subn_get_opa_hfi1_cong_log() argument
3871 if (am || smp_length_check(sizeof(*cong_log), max_len)) { in __subn_get_opa_hfi1_cong_log()
3927 static int __subn_get_opa_cc_table(struct opa_smp *smp, u32 am, u8 *data, in __subn_get_opa_cc_table() argument
3935 u32 start_block = OPA_AM_START_BLK(am); in __subn_get_opa_cc_table()
3936 u32 n_blocks = OPA_AM_NBLK(am); in __subn_get_opa_cc_table()
3979 static int __subn_set_opa_cc_table(struct opa_smp *smp, u32 am, u8 *data, in __subn_set_opa_cc_table() argument
3986 u32 start_block = OPA_AM_START_BLK(am); in __subn_set_opa_cc_table()
3987 u32 n_blocks = OPA_AM_NBLK(am); in __subn_set_opa_cc_table()
4026 return __subn_get_opa_cc_table(smp, am, data, ibdev, port, resp_len, in __subn_set_opa_cc_table()
4038 static int __subn_get_opa_led_info(struct opa_smp *smp, u32 am, u8 *data, in __subn_get_opa_led_info() argument
4045 u32 nport = OPA_AM_NPORT(am); in __subn_get_opa_led_info()
4068 static int __subn_set_opa_led_info(struct opa_smp *smp, u32 am, u8 *data, in __subn_set_opa_led_info() argument
4074 u32 nport = OPA_AM_NPORT(am); in __subn_set_opa_led_info()
4087 return __subn_get_opa_led_info(smp, am, data, ibdev, port, resp_len, in __subn_set_opa_led_info()
4091 static int subn_get_opa_sma(__be16 attr_id, struct opa_smp *smp, u32 am, in subn_get_opa_sma() argument
4100 ret = __subn_get_opa_nodedesc(smp, am, data, ibdev, port, in subn_get_opa_sma()
4104 ret = __subn_get_opa_nodeinfo(smp, am, data, ibdev, port, in subn_get_opa_sma()
4108 ret = __subn_get_opa_portinfo(smp, am, data, ibdev, port, in subn_get_opa_sma()
4112 ret = __subn_get_opa_pkeytable(smp, am, data, ibdev, port, in subn_get_opa_sma()
4116 ret = __subn_get_opa_sl_to_sc(smp, am, data, ibdev, port, in subn_get_opa_sma()
4120 ret = __subn_get_opa_sc_to_sl(smp, am, data, ibdev, port, in subn_get_opa_sma()
4124 ret = __subn_get_opa_sc_to_vlt(smp, am, data, ibdev, port, in subn_get_opa_sma()
4128 ret = __subn_get_opa_sc_to_vlnt(smp, am, data, ibdev, port, in subn_get_opa_sma()
4132 ret = __subn_get_opa_psi(smp, am, data, ibdev, port, in subn_get_opa_sma()
4136 ret = __subn_get_opa_bct(smp, am, data, ibdev, port, in subn_get_opa_sma()
4140 ret = __subn_get_opa_cable_info(smp, am, data, ibdev, port, in subn_get_opa_sma()
4144 ret = __subn_get_opa_vl_arb(smp, am, data, ibdev, port, in subn_get_opa_sma()
4148 ret = __subn_get_opa_cong_info(smp, am, data, ibdev, port, in subn_get_opa_sma()
4152 ret = __subn_get_opa_cong_setting(smp, am, data, ibdev, in subn_get_opa_sma()
4156 ret = __subn_get_opa_hfi1_cong_log(smp, am, data, ibdev, in subn_get_opa_sma()
4160 ret = __subn_get_opa_cc_table(smp, am, data, ibdev, port, in subn_get_opa_sma()
4164 ret = __subn_get_opa_led_info(smp, am, data, ibdev, port, in subn_get_opa_sma()
4181 static int subn_set_opa_sma(__be16 attr_id, struct opa_smp *smp, u32 am, in subn_set_opa_sma() argument
4190 ret = __subn_set_opa_portinfo(smp, am, data, ibdev, port, in subn_set_opa_sma()
4194 ret = __subn_set_opa_pkeytable(smp, am, data, ibdev, port, in subn_set_opa_sma()
4198 ret = __subn_set_opa_sl_to_sc(smp, am, data, ibdev, port, in subn_set_opa_sma()
4202 ret = __subn_set_opa_sc_to_sl(smp, am, data, ibdev, port, in subn_set_opa_sma()
4206 ret = __subn_set_opa_sc_to_vlt(smp, am, data, ibdev, port, in subn_set_opa_sma()
4210 ret = __subn_set_opa_sc_to_vlnt(smp, am, data, ibdev, port, in subn_set_opa_sma()
4214 ret = __subn_set_opa_psi(smp, am, data, ibdev, port, in subn_set_opa_sma()
4218 ret = __subn_set_opa_bct(smp, am, data, ibdev, port, in subn_set_opa_sma()
4222 ret = __subn_set_opa_vl_arb(smp, am, data, ibdev, port, in subn_set_opa_sma()
4226 ret = __subn_set_opa_cong_setting(smp, am, data, ibdev, in subn_set_opa_sma()
4230 ret = __subn_set_opa_cc_table(smp, am, data, ibdev, port, in subn_set_opa_sma()
4234 ret = __subn_set_opa_led_info(smp, am, data, ibdev, port, in subn_set_opa_sma()
4273 u32 am; in subn_get_opa_aggregate() local
4278 am = be32_to_cpu(agg->attr_mod); in subn_get_opa_aggregate()
4290 (void)subn_get_opa_sma(agg->attr_id, smp, am, agg->data, in subn_get_opa_aggregate()
4322 u32 am; in subn_set_opa_aggregate() local
4327 am = be32_to_cpu(agg->attr_mod); in subn_set_opa_aggregate()
4336 (void)subn_set_opa_sma(agg->attr_id, smp, am, agg->data, in subn_set_opa_aggregate()
4519 u32 am, data_size; in process_subn_opa() local
4527 am = be32_to_cpu(smp->attr_mod); in process_subn_opa()
4568 ret = subn_get_opa_sma(attr_id, smp, am, data, in process_subn_opa()
4581 ret = subn_set_opa_sma(attr_id, smp, am, data, in process_subn_opa()