Lines Matching defs:am

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