Home
last modified time | relevance | path

Searched refs:cmdr_size (Results 1 – 1 of 1) sorted by relevance

/drivers/target/
Dtarget_core_user.c136 u32 cmdr_size; member
827 cmd_head = mb->cmd_head % udev->cmdr_size; /* UAM */ in is_ring_space_avail()
833 if (head_to_end(cmd_head, udev->cmdr_size) >= cmd_size) in is_ring_space_avail()
836 cmd_needed = cmd_size + head_to_end(cmd_head, udev->cmdr_size); in is_ring_space_avail()
838 space = spc_free(cmd_head, udev->cmdr_last_cleaned, udev->cmdr_size); in is_ring_space_avail()
841 udev->cmdr_last_cleaned, udev->cmdr_size); in is_ring_space_avail()
958 uint32_t cmd_head = mb->cmd_head % udev->cmdr_size; /* UAM */ in ring_insert_padding()
961 if (head_to_end(cmd_head, udev->cmdr_size) < cmd_size) { in ring_insert_padding()
962 size_t pad_size = head_to_end(cmd_head, udev->cmdr_size); in ring_insert_padding()
972 UPDATE_HEAD(mb->cmd_head, pad_size, udev->cmdr_size); in ring_insert_padding()
[all …]