Lines Matching full:copy
60 int copy = IWL_FIRST_TB_SIZE - copy_size; in iwl_pcie_gen2_enqueue_hcmd() local
62 if (copy > cmdlen[i]) in iwl_pcie_gen2_enqueue_hcmd()
63 copy = cmdlen[i]; in iwl_pcie_gen2_enqueue_hcmd()
64 cmdlen[i] -= copy; in iwl_pcie_gen2_enqueue_hcmd()
65 cmddata[i] += copy; in iwl_pcie_gen2_enqueue_hcmd()
66 copy_size += copy; in iwl_pcie_gen2_enqueue_hcmd()
152 /* and copy the data that needs to be copied */ in iwl_pcie_gen2_enqueue_hcmd()
154 int copy; in iwl_pcie_gen2_enqueue_hcmd() local
159 /* copy everything if not nocopy/dup */ in iwl_pcie_gen2_enqueue_hcmd()
162 copy = cmd->len[i]; in iwl_pcie_gen2_enqueue_hcmd()
164 memcpy((u8 *)out_cmd + cmd_pos, cmd->data[i], copy); in iwl_pcie_gen2_enqueue_hcmd()
165 cmd_pos += copy; in iwl_pcie_gen2_enqueue_hcmd()
166 copy_size += copy; in iwl_pcie_gen2_enqueue_hcmd()
172 * in total (for bi-directional DMA), but copy up to what in iwl_pcie_gen2_enqueue_hcmd()
175 copy = min_t(int, TFD_MAX_PAYLOAD_SIZE - cmd_pos, cmd->len[i]); in iwl_pcie_gen2_enqueue_hcmd()
177 memcpy((u8 *)out_cmd + cmd_pos, cmd->data[i], copy); in iwl_pcie_gen2_enqueue_hcmd()
178 cmd_pos += copy; in iwl_pcie_gen2_enqueue_hcmd()
182 copy = IWL_FIRST_TB_SIZE - copy_size; in iwl_pcie_gen2_enqueue_hcmd()
184 if (copy > cmd->len[i]) in iwl_pcie_gen2_enqueue_hcmd()
185 copy = cmd->len[i]; in iwl_pcie_gen2_enqueue_hcmd()
186 copy_size += copy; in iwl_pcie_gen2_enqueue_hcmd()
196 /* start the TFD with the minimum copy bytes */ in iwl_pcie_gen2_enqueue_hcmd()