nl_cmd 283 drivers/target/target_core_user.c static int tcmu_fail_netlink_cmd(struct tcmu_nl_cmd *nl_cmd) nl_cmd 285 drivers/target/target_core_user.c struct tcmu_dev *udev = nl_cmd->udev; nl_cmd 292 drivers/target/target_core_user.c if (nl_cmd->cmd != TCMU_CMD_UNSPEC) { nl_cmd 293 drivers/target/target_core_user.c pr_debug("Aborting nl cmd %d on %s\n", nl_cmd->cmd, udev->name); nl_cmd 294 drivers/target/target_core_user.c nl_cmd->status = -EINTR; nl_cmd 295 drivers/target/target_core_user.c list_del(&nl_cmd->nl_list); nl_cmd 296 drivers/target/target_core_user.c complete(&nl_cmd->complete); nl_cmd 304 drivers/target/target_core_user.c struct tcmu_nl_cmd *nl_cmd, *tmp_cmd; nl_cmd 318 drivers/target/target_core_user.c list_for_each_entry_safe(nl_cmd, tmp_cmd, &tcmu_nl_cmd_list, nl_list) { nl_cmd 319 drivers/target/target_core_user.c ret = tcmu_fail_netlink_cmd(nl_cmd); nl_cmd 355 drivers/target/target_core_user.c struct tcmu_nl_cmd *nl_cmd; nl_cmd 368 drivers/target/target_core_user.c list_for_each_entry(nl_cmd, &tcmu_nl_cmd_list, nl_list) { nl_cmd 369 drivers/target/target_core_user.c if (nl_cmd->udev->se_dev.dev_index == dev_id) { nl_cmd 370 drivers/target/target_core_user.c udev = nl_cmd->udev; nl_cmd 381 drivers/target/target_core_user.c list_del(&nl_cmd->nl_list); nl_cmd 384 drivers/target/target_core_user.c udev->name, dev_id, nl_cmd->cmd, completed_cmd, rc, nl_cmd 385 drivers/target/target_core_user.c nl_cmd->status); nl_cmd 387 drivers/target/target_core_user.c if (nl_cmd->cmd != completed_cmd) { nl_cmd 389 drivers/target/target_core_user.c udev->name, completed_cmd, nl_cmd->cmd); nl_cmd 394 drivers/target/target_core_user.c nl_cmd->status = rc; nl_cmd 395 drivers/target/target_core_user.c complete(&nl_cmd->complete); nl_cmd 1679 drivers/target/target_core_user.c struct tcmu_nl_cmd *nl_cmd = &udev->curr_nl_cmd; nl_cmd 1696 drivers/target/target_core_user.c if (nl_cmd->cmd != TCMU_CMD_UNSPEC) { nl_cmd 1699 drivers/target/target_core_user.c nl_cmd->cmd, udev->name); nl_cmd 1703 drivers/target/target_core_user.c memset(nl_cmd, 0, sizeof(*nl_cmd)); nl_cmd 1704 drivers/target/target_core_user.c nl_cmd->cmd = cmd; nl_cmd 1705 drivers/target/target_core_user.c nl_cmd->udev = udev; nl_cmd 1706 drivers/target/target_core_user.c init_completion(&nl_cmd->complete); nl_cmd 1707 drivers/target/target_core_user.c INIT_LIST_HEAD(&nl_cmd->nl_list); nl_cmd 1709 drivers/target/target_core_user.c list_add_tail(&nl_cmd->nl_list, &tcmu_nl_cmd_list); nl_cmd 1717 drivers/target/target_core_user.c struct tcmu_nl_cmd *nl_cmd = &udev->curr_nl_cmd; nl_cmd 1727 drivers/target/target_core_user.c list_del(&nl_cmd->nl_list); nl_cmd 1728 drivers/target/target_core_user.c memset(nl_cmd, 0, sizeof(*nl_cmd)); nl_cmd 1735 drivers/target/target_core_user.c struct tcmu_nl_cmd *nl_cmd = &udev->curr_nl_cmd; nl_cmd 1745 drivers/target/target_core_user.c wait_for_completion(&nl_cmd->complete); nl_cmd 1748 drivers/target/target_core_user.c nl_cmd->cmd = TCMU_CMD_UNSPEC; nl_cmd 1749 drivers/target/target_core_user.c ret = nl_cmd->status;