Lines Matching full:copy
57 int copy = IWL_FIRST_TB_SIZE - copy_size; in iwl_pcie_gen2_enqueue_hcmd() local
59 if (copy > cmdlen[i]) in iwl_pcie_gen2_enqueue_hcmd()
60 copy = cmdlen[i]; in iwl_pcie_gen2_enqueue_hcmd()
61 cmdlen[i] -= copy; in iwl_pcie_gen2_enqueue_hcmd()
62 cmddata[i] += copy; in iwl_pcie_gen2_enqueue_hcmd()
63 copy_size += copy; in iwl_pcie_gen2_enqueue_hcmd()
149 /* and copy the data that needs to be copied */ in iwl_pcie_gen2_enqueue_hcmd()
151 int copy; in iwl_pcie_gen2_enqueue_hcmd() local
156 /* copy everything if not nocopy/dup */ in iwl_pcie_gen2_enqueue_hcmd()
159 copy = cmd->len[i]; in iwl_pcie_gen2_enqueue_hcmd()
161 memcpy((u8 *)out_cmd + cmd_pos, cmd->data[i], copy); in iwl_pcie_gen2_enqueue_hcmd()
162 cmd_pos += copy; in iwl_pcie_gen2_enqueue_hcmd()
163 copy_size += copy; in iwl_pcie_gen2_enqueue_hcmd()
169 * in total (for bi-directional DMA), but copy up to what in iwl_pcie_gen2_enqueue_hcmd()
172 copy = min_t(int, TFD_MAX_PAYLOAD_SIZE - cmd_pos, cmd->len[i]); in iwl_pcie_gen2_enqueue_hcmd()
174 memcpy((u8 *)out_cmd + cmd_pos, cmd->data[i], copy); in iwl_pcie_gen2_enqueue_hcmd()
175 cmd_pos += copy; in iwl_pcie_gen2_enqueue_hcmd()
179 copy = IWL_FIRST_TB_SIZE - copy_size; in iwl_pcie_gen2_enqueue_hcmd()
181 if (copy > cmd->len[i]) in iwl_pcie_gen2_enqueue_hcmd()
182 copy = cmd->len[i]; in iwl_pcie_gen2_enqueue_hcmd()
183 copy_size += copy; in iwl_pcie_gen2_enqueue_hcmd()
193 /* start the TFD with the minimum copy bytes */ in iwl_pcie_gen2_enqueue_hcmd()