Lines Matching refs:result
283 int result;
291 result = -EBADR;
294 result = ms_to_errno[status].errno;
298 return result;
564 int result;
578 result = i2400m_msg_check_status(
580 if (result >= 0)
599 int result;
608 result = -EIO;
616 result = -EIO;
618 result = 0;
622 i2400m, l3l4_hdr, msg_size, result);
623 return result;
707 int result;
726 result = i2400m_msg_size_check(i2400m, msg_l3l4_hdr, buf_len);
727 if (result < 0)
741 result = i2400m_tx(i2400m, buf, buf_len, I2400M_PT_CTRL);
742 if (result < 0) {
744 le16_to_cpu(msg_l3l4_hdr->type), result);
765 result = wait_for_completion_interruptible_timeout(
767 if (result == 0) {
770 result = -ETIMEDOUT;
771 i2400m_msg_to_dev_cancel_wait(i2400m, result);
773 } else if (result < 0) {
775 msg_type, result);
776 i2400m_msg_to_dev_cancel_wait(i2400m, result);
785 result = PTR_ERR(ack_skb);
787 result = 0;
790 if (result < 0)
798 result = i2400m_msg_size_check(i2400m, ack_l3l4_hdr, ack_len);
799 if (result < 0) {
801 msg_type, result);
807 result = -EIO;
825 i2400m, buf, buf_len, result);
826 return ERR_PTR(result);
862 int result;
868 result = -ENOMEM;
880 result = PTR_ERR(ack_skb);
883 result);
886 result = i2400m_msg_check_status(wimax_msg_data(ack_skb),
888 if (result == -EACCES)
890 else if (result < 0)
893 result, strerr);
900 return result;
926 int result;
951 result = i2400m_msg_check_status(ack, strerr, sizeof(strerr));
952 if (result < 0) {
954 "%d - %s\n", I2400M_MT_GET_DEVICE_INFO, result,
964 result = -EIO;
977 return ERR_PTR(result);
1008 int result;
1019 result = -ENOMEM;
1029 result = PTR_ERR(ack_skb);
1031 result);
1035 result = i2400m_msg_check_status(ack, strerr, sizeof(strerr));
1036 if (result < 0) {
1038 "%d - %s\n", I2400M_MT_GET_LM_VERSION, result,
1047 result = -EIO;
1054 result = -EINVAL;
1060 result = 0;
1075 return result;
1092 int result;
1098 result = -ENOMEM;
1107 result = PTR_ERR(ack_skb);
1110 result);
1113 result = i2400m_msg_check_status(wimax_msg_data(ack_skb),
1119 return result;
1140 int result;
1148 result = -ENOMEM;
1160 result = PTR_ERR(ack_skb);
1164 result = i2400m_msg_check_status(ack, strerr, sizeof(strerr));
1165 if (result < 0) {
1167 "%d - %s\n", I2400M_MT_GET_STATE, result, strerr);
1172 result = 0;
1178 return result;
1196 int result;
1206 result = 0;
1219 result = -ENOMEM;
1239 result = PTR_ERR(ack_skb);
1242 result);
1246 result = i2400m_msg_check_status(wimax_msg_data(ack_skb),
1248 if (result < 0)
1250 I2400M_MT_SET_INIT_CONFIG, result, strerr);
1257 i2400m, arg, args, result);
1258 return result;
1284 int result;
1295 result = -ENOSYS;
1298 result = -ENOMEM;
1315 result = PTR_ERR(ack_skb);
1319 result = i2400m_msg_check_status(ack, strerr, sizeof(strerr));
1320 if (result < 0) {
1322 "%d - %s\n", I2400M_MT_GET_STATE, result, strerr);
1325 result = 0;
1331 return result;
1350 int result;
1401 result = i2400m_set_init_config(i2400m, args, argc);
1402 if (result < 0)
1407 * result (System State TLV and RF Status TLV [done in the rx
1411 result = i2400m_cmd_get_state(i2400m);
1413 if (result < 0)
1414 dev_err(dev, "failed to initialize the device: %d\n", result);
1415 d_fnend(3, dev, "(i2400m %p) = %d\n", i2400m, result);
1416 return result;