• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/infiniband/core/

Lines Matching refs:cmd

400 	struct ib_ucm_event_get cmd;
408 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
439 if (copy_to_user((void __user *)(unsigned long)cmd.response,
446 if (cmd.data_len < uevent->data_len) {
450 if (copy_to_user((void __user *)(unsigned long)cmd.data,
458 if (cmd.info_len < uevent->info_len) {
462 if (copy_to_user((void __user *)(unsigned long)cmd.info,
485 struct ib_ucm_create_id cmd;
493 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
502 ctx->uid = cmd.uid;
511 if (copy_to_user((void __user *)(unsigned long)cmd.response,
532 struct ib_ucm_destroy_id cmd;
540 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
544 ctx = idr_find(&ctx_id_table, cmd.id);
565 if (copy_to_user((void __user *)(unsigned long)cmd.response,
578 struct ib_ucm_attr_id cmd;
585 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
588 ctx = ib_ucm_ctx_get(file, cmd.id);
597 if (copy_to_user((void __user *)(unsigned long)cmd.response,
610 struct ib_ucm_init_qp_attr cmd;
618 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
621 ctx = ib_ucm_ctx_get(file, cmd.id);
627 qp_attr.qp_state = cmd.qp_state;
634 if (copy_to_user((void __user *)(unsigned long)cmd.response,
658 struct ib_ucm_listen cmd;
662 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
665 ctx = ib_ucm_ctx_get(file, cmd.id);
669 result = ucm_validate_listen(cmd.service_id, cmd.service_mask);
673 result = ib_cm_listen(ctx->cm_id, cmd.service_id, cmd.service_mask,
684 struct ib_ucm_notify cmd;
688 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
691 ctx = ib_ucm_ctx_get(file, cmd.id);
695 result = ib_cm_notify(ctx->cm_id, (enum ib_event_type) cmd.event);
749 struct ib_ucm_req cmd;
756 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
759 result = ib_ucm_alloc_data(&param.private_data, cmd.data, cmd.len);
763 result = ib_ucm_path_get(&param.primary_path, cmd.primary_path);
767 result = ib_ucm_path_get(&param.alternate_path, cmd.alternate_path);
771 param.private_data_len = cmd.len;
772 param.service_id = cmd.sid;
773 param.qp_num = cmd.qpn;
774 param.qp_type = cmd.qp_type;
775 param.starting_psn = cmd.psn;
776 param.peer_to_peer = cmd.peer_to_peer;
777 param.responder_resources = cmd.responder_resources;
778 param.initiator_depth = cmd.initiator_depth;
779 param.remote_cm_response_timeout = cmd.remote_cm_response_timeout;
780 param.flow_control = cmd.flow_control;
781 param.local_cm_response_timeout = cmd.local_cm_response_timeout;
782 param.retry_count = cmd.retry_count;
783 param.rnr_retry_count = cmd.rnr_retry_count;
784 param.max_cm_retries = cmd.max_cm_retries;
785 param.srq = cmd.srq;
787 ctx = ib_ucm_ctx_get(file, cmd.id);
807 struct ib_ucm_rep cmd;
812 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
815 result = ib_ucm_alloc_data(&param.private_data, cmd.data, cmd.len);
819 param.qp_num = cmd.qpn;
820 param.starting_psn = cmd.psn;
821 param.private_data_len = cmd.len;
822 param.responder_resources = cmd.responder_resources;
823 param.initiator_depth = cmd.initiator_depth;
824 param.failover_accepted = cmd.failover_accepted;
825 param.flow_control = cmd.flow_control;
826 param.rnr_retry_count = cmd.rnr_retry_count;
827 param.srq = cmd.srq;
829 ctx = ib_ucm_ctx_get(file, cmd.id);
831 ctx->uid = cmd.uid;
847 struct ib_ucm_private_data cmd;
852 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
855 result = ib_ucm_alloc_data(&private_data, cmd.data, cmd.len);
859 ctx = ib_ucm_ctx_get(file, cmd.id);
861 result = func(ctx->cm_id, private_data, cmd.len);
901 struct ib_ucm_info cmd;
906 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
909 result = ib_ucm_alloc_data(&data, cmd.data, cmd.data_len);
913 result = ib_ucm_alloc_data(&info, cmd.info, cmd.info_len);
917 ctx = ib_ucm_ctx_get(file, cmd.id);
919 result = func(ctx->cm_id, cmd.status, info, cmd.info_len,
920 data, cmd.data_len);
950 struct ib_ucm_mra cmd;
954 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
957 result = ib_ucm_alloc_data(&data, cmd.data, cmd.len);
961 ctx = ib_ucm_ctx_get(file, cmd.id);
963 result = ib_send_cm_mra(ctx->cm_id, cmd.timeout, data, cmd.len);
978 struct ib_ucm_lap cmd;
982 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
985 result = ib_ucm_alloc_data(&data, cmd.data, cmd.len);
989 result = ib_ucm_path_get(&path, cmd.path);
993 ctx = ib_ucm_ctx_get(file, cmd.id);
995 result = ib_send_cm_lap(ctx->cm_id, path, data, cmd.len);
1012 struct ib_ucm_sidr_req cmd;
1018 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
1021 result = ib_ucm_alloc_data(&param.private_data, cmd.data, cmd.len);
1025 result = ib_ucm_path_get(&param.path, cmd.path);
1029 param.private_data_len = cmd.len;
1030 param.service_id = cmd.sid;
1031 param.timeout_ms = cmd.timeout;
1032 param.max_cm_retries = cmd.max_cm_retries;
1034 ctx = ib_ucm_ctx_get(file, cmd.id);
1052 struct ib_ucm_sidr_rep cmd;
1058 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
1062 cmd.data, cmd.data_len);
1066 result = ib_ucm_alloc_data(&param.info, cmd.info, cmd.info_len);
1070 param.qp_num = cmd.qpn;
1071 param.qkey = cmd.qkey;
1072 param.status = cmd.status;
1073 param.info_length = cmd.info_len;
1074 param.private_data_len = cmd.data_len;
1076 ctx = ib_ucm_ctx_get(file, cmd.id);
1125 if (hdr.cmd < 0 || hdr.cmd >= ARRAY_SIZE(ucm_cmd_table))
1131 result = ucm_cmd_table[hdr.cmd](file, buf + sizeof(hdr),