• Home
  • Raw
  • Download

Lines Matching refs:cmd_head

823 	u32 cmd_head;  in is_ring_space_avail()  local
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()
840 pr_debug("no cmd space: %u %u %u\n", cmd_head, in is_ring_space_avail()
958 uint32_t cmd_head = mb->cmd_head % udev->cmdr_size; /* UAM */ in ring_insert_padding() local
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()
964 hdr = udev->cmdr + cmd_head; in ring_insert_padding()
972 UPDATE_HEAD(mb->cmd_head, pad_size, udev->cmdr_size); in ring_insert_padding()
975 cmd_head = mb->cmd_head % udev->cmdr_size; /* UAM */ in ring_insert_padding()
976 WARN_ON(cmd_head != 0); in ring_insert_padding()
979 return cmd_head; in ring_insert_padding()
1020 uint32_t cmd_id, cmd_head; in queue_cmd_ring() local
1087 cmd_head = ring_insert_padding(udev, command_size); in queue_cmd_ring()
1089 entry = udev->cmdr + cmd_head; in queue_cmd_ring()
1119 cdb_off = CMDR_OFF + cmd_head + base_command_size; in queue_cmd_ring()
1124 UPDATE_HEAD(mb->cmd_head, command_size, udev->cmdr_size); in queue_cmd_ring()
1163 uint32_t cmd_head; in queue_tmr_ring() local
1179 cmd_head = ring_insert_padding(udev, cmd_size); in queue_tmr_ring()
1181 entry = udev->cmdr + cmd_head; in queue_tmr_ring()
1190 UPDATE_HEAD(mb->cmd_head, cmd_size, udev->cmdr_size); in queue_tmr_ring()
2403 mb->cmd_tail, mb->cmd_head); in tcmu_reset_ring()
2407 mb->cmd_head = 0; in tcmu_reset_ring()