Searched refs:cmdr_size (Results 1 – 3 of 3) sorted by relevance
/linux-6.12.1/drivers/target/ |
D | target_core_user.c | 136 u32 cmdr_size; member 828 cmd_head = mb->cmd_head % udev->cmdr_size; /* UAM */ in is_ring_space_avail() 834 if (head_to_end(cmd_head, udev->cmdr_size) >= cmd_size) in is_ring_space_avail() 837 cmd_needed = cmd_size + head_to_end(cmd_head, udev->cmdr_size); in is_ring_space_avail() 839 space = spc_free(cmd_head, udev->cmdr_last_cleaned, udev->cmdr_size); in is_ring_space_avail() 842 udev->cmdr_last_cleaned, udev->cmdr_size); in is_ring_space_avail() 959 uint32_t cmd_head = mb->cmd_head % udev->cmdr_size; /* UAM */ in ring_insert_padding() 962 if (head_to_end(cmd_head, udev->cmdr_size) < cmd_size) { in ring_insert_padding() 963 size_t pad_size = head_to_end(cmd_head, udev->cmdr_size); in ring_insert_padding() 973 UPDATE_HEAD(mb->cmd_head, pad_size, udev->cmdr_size); in ring_insert_padding() [all …]
|
/linux-6.12.1/include/uapi/linux/ |
D | target_core_user.h | 55 __u32 cmdr_size; member
|
/linux-6.12.1/Documentation/target/ |
D | tcmu-design.rst | 141 cmdr_size 155 mailbox.cmd_head by the size of the command, modulo cmdr_size, and 184 mailbox.cmd_tail by entry.hdr.length (mod cmdr_size) and signals the 383 mb->cmd_tail = (mb->cmd_tail + tcmu_hdr_get_len(&ent->hdr)) % mb->cmdr_size;
|