Lines Matching refs:cmd_id
181 uint16_t cmd_id;
968 hdr->cmd_id = 0; /* not used for PAD */
1021 uint32_t cmd_id, cmd_head;
1075 if (xa_alloc(&udev->commands, &cmd_id, tcmu_cmd, XA_LIMIT(1, 0xffff),
1083 tcmu_cmd->cmd_id = cmd_id;
1085 pr_debug("allocated cmd id %u for cmd %p dev %s\n", tcmu_cmd->cmd_id,
1115 entry->hdr.cmd_id = tcmu_cmd->cmd_id;
1274 if (cmd->cmd_id) {
1309 if (cmd->cmd_id)
1310 tmr->tmr_cmd_ids[cmd_cnt++] = cmd->cmd_id;
1338 pr_err("cmd_id %u already completed with KEEP_BUF, ring is broken\n",
1339 entry->hdr.cmd_id);
1402 * Userspace can free the buffer later by writing the cmd_id
1484 cmd = xa_load(&udev->commands, entry->hdr.cmd_id);
1486 cmd = xa_erase(&udev->commands, entry->hdr.cmd_id);
1488 pr_err("cmd_id %u not found, ring is broken\n",
1489 entry->hdr.cmd_id);
1532 cmd->cmd_id, cmd->tcmu_dev->name);
1974 * and thus never will release the buffer by writing cmd_id to
1980 cmd->cmd_id, udev->name);
2372 cmd->cmd_id, udev->name,
3089 u16 cmd_id;
3097 ret = kstrtou16(page, 0, &cmd_id);
3104 XA_STATE(xas, &udev->commands, cmd_id);
3109 pr_err("free_kept_buf: cmd_id %d not found\n", cmd_id);
3115 pr_err("free_kept_buf: cmd_id %d was not completed with KEEP_BUF\n",
3116 cmd_id);