/drivers/block/ |
D | brd.c | 173 size_t copy; in copy_to_brd_setup() local 176 copy = min_t(size_t, n, PAGE_SIZE - offset); in copy_to_brd_setup() 180 if (copy < n) { in copy_to_brd_setup() 181 sector += copy >> SECTOR_SHIFT; in copy_to_brd_setup() 196 size_t copy; in copy_to_brd() local 198 copy = min_t(size_t, n, PAGE_SIZE - offset); in copy_to_brd() 203 memcpy(dst + offset, src, copy); in copy_to_brd() 206 if (copy < n) { in copy_to_brd() 207 src += copy; in copy_to_brd() 208 sector += copy >> SECTOR_SHIFT; in copy_to_brd() [all …]
|
/drivers/net/wireless/intel/iwlwifi/pcie/ |
D | tx-gen2.c | 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() 151 int copy; in iwl_pcie_gen2_enqueue_hcmd() local 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() [all …]
|
D | tx.c | 944 int copy = IWL_FIRST_TB_SIZE - copy_size; in iwl_pcie_enqueue_hcmd() local 946 if (copy > cmdlen[i]) in iwl_pcie_enqueue_hcmd() 947 copy = cmdlen[i]; in iwl_pcie_enqueue_hcmd() 948 cmdlen[i] -= copy; in iwl_pcie_enqueue_hcmd() 949 cmddata[i] += copy; in iwl_pcie_enqueue_hcmd() 950 copy_size += copy; in iwl_pcie_enqueue_hcmd() 1048 int copy; in iwl_pcie_enqueue_hcmd() local 1056 copy = cmd->len[i]; in iwl_pcie_enqueue_hcmd() 1058 memcpy((u8 *)out_cmd + cmd_pos, cmd->data[i], copy); in iwl_pcie_enqueue_hcmd() 1059 cmd_pos += copy; in iwl_pcie_enqueue_hcmd() [all …]
|
/drivers/w1/slaves/ |
D | w1_ds2430.c | 210 int copy; in eeprom_write() local 235 copy = W1_F14_SCRATCH_SIZE - in eeprom_write() 238 if (copy > len) in eeprom_write() 239 copy = len; in eeprom_write() 241 memcpy(&tmp[addr & W1_F14_SCRATCH_MASK], buf, copy); in eeprom_write() 249 copy = W1_F14_SCRATCH_SIZE; in eeprom_write() 250 if (w1_f14_write(sl, addr, copy, buf) < 0) { in eeprom_write() 255 buf += copy; in eeprom_write() 256 addr += copy; in eeprom_write() 257 len -= copy; in eeprom_write()
|
D | w1_ds2431.c | 209 int copy; in eeprom_write() local 234 copy = W1_F2D_SCRATCH_SIZE - in eeprom_write() 237 if (copy > len) in eeprom_write() 238 copy = len; in eeprom_write() 240 memcpy(&tmp[addr & W1_F2D_SCRATCH_MASK], buf, copy); in eeprom_write() 248 copy = W1_F2D_SCRATCH_SIZE; in eeprom_write() 249 if (w1_f2d_write(sl, addr, copy, buf) < 0) { in eeprom_write() 254 buf += copy; in eeprom_write() 255 addr += copy; in eeprom_write() 256 len -= copy; in eeprom_write()
|
D | w1_ds2805.c | 208 int copy; in w1_f0d_write_bin() local 233 copy = W1_F0D_SCRATCH_SIZE - in w1_f0d_write_bin() 236 if (copy > len) in w1_f0d_write_bin() 237 copy = len; in w1_f0d_write_bin() 239 memcpy(&tmp[addr & W1_F0D_SCRATCH_MASK], buf, copy); in w1_f0d_write_bin() 247 copy = W1_F0D_SCRATCH_SIZE; in w1_f0d_write_bin() 248 if (w1_f0d_write(sl, addr, copy, buf) < 0) { in w1_f0d_write_bin() 253 buf += copy; in w1_f0d_write_bin() 254 addr += copy; in w1_f0d_write_bin() 255 len -= copy; in w1_f0d_write_bin()
|
/drivers/net/ethernet/sfc/ |
D | siena_sriov.c | 404 struct efx_memcpy_req copy[4]; in __efx_siena_sriov_push_vf_status() local 416 memset(copy, '\0', sizeof(copy)); in __efx_siena_sriov_push_vf_status() 418 copy[0].from_buf = &status->generation_start; in __efx_siena_sriov_push_vf_status() 419 copy[0].to_rid = vf->pci_rid; in __efx_siena_sriov_push_vf_status() 420 copy[0].to_addr = vf->status_addr + offsetof(struct vfdi_status, in __efx_siena_sriov_push_vf_status() 422 copy[0].length = sizeof(status->generation_start); in __efx_siena_sriov_push_vf_status() 428 copy[1].from_rid = efx->pci_dev->devfn; in __efx_siena_sriov_push_vf_status() 429 copy[1].from_addr = nic_data->vfdi_status.dma_addr + data_offset; in __efx_siena_sriov_push_vf_status() 430 copy[1].to_rid = vf->pci_rid; in __efx_siena_sriov_push_vf_status() 431 copy[1].to_addr = vf->status_addr + data_offset; in __efx_siena_sriov_push_vf_status() [all …]
|
/drivers/gpu/drm/qxl/ |
D | qxl_draw.c | 228 drawable->u.copy.src_area.top = 0; in qxl_draw_dirty_fb() 229 drawable->u.copy.src_area.bottom = height; in qxl_draw_dirty_fb() 230 drawable->u.copy.src_area.left = 0; in qxl_draw_dirty_fb() 231 drawable->u.copy.src_area.right = width; in qxl_draw_dirty_fb() 233 drawable->u.copy.rop_descriptor = SPICE_ROPD_OP_PUT; in qxl_draw_dirty_fb() 234 drawable->u.copy.scale_mode = 0; in qxl_draw_dirty_fb() 235 drawable->u.copy.mask.flags = 0; in qxl_draw_dirty_fb() 236 drawable->u.copy.mask.pos.x = 0; in qxl_draw_dirty_fb() 237 drawable->u.copy.mask.pos.y = 0; in qxl_draw_dirty_fb() 238 drawable->u.copy.mask.bitmap = 0; in qxl_draw_dirty_fb() [all …]
|
/drivers/base/test/ |
D | property-entry-test.c | 353 struct property_entry *copy; in pe_test_move_inline_u8() local 356 copy = property_entries_dup(entries); in pe_test_move_inline_u8() 357 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, copy); in pe_test_move_inline_u8() 359 KUNIT_EXPECT_TRUE(test, copy[0].is_inline); in pe_test_move_inline_u8() 360 data_ptr = (u8 *)©[0].value; in pe_test_move_inline_u8() 364 KUNIT_EXPECT_FALSE(test, copy[1].is_inline); in pe_test_move_inline_u8() 365 data_ptr = copy[1].pointer; in pe_test_move_inline_u8() 369 property_entries_free(copy); in pe_test_move_inline_u8() 385 struct property_entry *copy; in pe_test_move_inline_str() local 388 copy = property_entries_dup(entries); in pe_test_move_inline_str() [all …]
|
/drivers/gpu/drm/tegra/ |
D | plane.c | 54 struct tegra_plane_state *copy; in tegra_plane_atomic_duplicate_state() local 57 copy = kmalloc(sizeof(*copy), GFP_KERNEL); in tegra_plane_atomic_duplicate_state() 58 if (!copy) in tegra_plane_atomic_duplicate_state() 61 __drm_atomic_helper_plane_duplicate_state(plane, ©->base); in tegra_plane_atomic_duplicate_state() 62 copy->tiling = state->tiling; in tegra_plane_atomic_duplicate_state() 63 copy->format = state->format; in tegra_plane_atomic_duplicate_state() 64 copy->swap = state->swap; in tegra_plane_atomic_duplicate_state() 65 copy->reflect_x = state->reflect_x; in tegra_plane_atomic_duplicate_state() 66 copy->reflect_y = state->reflect_y; in tegra_plane_atomic_duplicate_state() 67 copy->opaque = state->opaque; in tegra_plane_atomic_duplicate_state() [all …]
|
/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
D | chtls_io.c | 889 int off, int copy) in chtls_skb_copy_to_page_nocache() argument 894 off, copy, skb->len); in chtls_skb_copy_to_page_nocache() 898 skb->len += copy; in chtls_skb_copy_to_page_nocache() 899 skb->data_len += copy; in chtls_skb_copy_to_page_nocache() 900 skb->truesize += copy; in chtls_skb_copy_to_page_nocache() 901 sk->sk_wmem_queued += copy; in chtls_skb_copy_to_page_nocache() 1037 int copy = 0; in chtls_sendmsg() local 1041 copy = mss - skb->len; in chtls_sendmsg() 1067 copy <= 0) { in chtls_sendmsg() 1090 copy = mss; in chtls_sendmsg() [all …]
|
/drivers/s390/cio/ |
D | cio_inject.c | 37 struct crw *copy; in crw_inject() local 40 copy = kmemdup(crw, sizeof(*crw), GFP_KERNEL); in crw_inject() 41 if (!copy) in crw_inject() 46 kfree(copy); in crw_inject() 49 crw_inject_data = copy; in crw_inject()
|
/drivers/net/wwan/iosm/ |
D | iosm_ipc_task_queue.c | 146 void *copy = msg; in ipc_task_queue_send_task() local 150 copy = kmemdup(msg, size, GFP_ATOMIC); in ipc_task_queue_send_task() 151 if (!copy) in ipc_task_queue_send_task() 157 ret = ipc_task_queue_add_task(imem, arg, copy, func, in ipc_task_queue_send_task() 162 copy, size, is_copy); in ipc_task_queue_send_task() 164 kfree(copy); in ipc_task_queue_send_task()
|
/drivers/gpu/drm/radeon/ |
D | radeon_asic.c | 228 .copy = { 233 .copy = &r100_copy_blit, 296 .copy = { 301 .copy = &r100_copy_blit, 392 .copy = { 397 .copy = &r100_copy_blit, 460 .copy = { 465 .copy = &r100_copy_blit, 528 .copy = { 533 .copy = &r100_copy_blit, [all …]
|
/drivers/gpu/drm/sun4i/ |
D | sun4i_layer.c | 44 struct sun4i_layer_state *copy; in sun4i_backend_layer_duplicate_state() local 46 copy = kzalloc(sizeof(*copy), GFP_KERNEL); in sun4i_backend_layer_duplicate_state() 47 if (!copy) in sun4i_backend_layer_duplicate_state() 50 __drm_atomic_helper_plane_duplicate_state(plane, ©->state); in sun4i_backend_layer_duplicate_state() 51 copy->uses_frontend = orig->uses_frontend; in sun4i_backend_layer_duplicate_state() 53 return ©->state; in sun4i_backend_layer_duplicate_state()
|
/drivers/gpu/drm/rcar-du/ |
D | rcar_du_writeback.c | 95 struct rcar_du_wb_conn_state *copy; in rcar_du_wb_conn_duplicate_state() local 100 copy = kzalloc(sizeof(*copy), GFP_KERNEL); in rcar_du_wb_conn_duplicate_state() 101 if (!copy) in rcar_du_wb_conn_duplicate_state() 104 __drm_atomic_helper_connector_duplicate_state(connector, ©->state); in rcar_du_wb_conn_duplicate_state() 106 return ©->state; in rcar_du_wb_conn_duplicate_state()
|
D | rcar_du_vsp.c | 304 struct rcar_du_vsp_plane_state *copy; in rcar_du_vsp_plane_atomic_duplicate_state() local 309 copy = kzalloc(sizeof(*copy), GFP_KERNEL); in rcar_du_vsp_plane_atomic_duplicate_state() 310 if (copy == NULL) in rcar_du_vsp_plane_atomic_duplicate_state() 313 __drm_atomic_helper_plane_duplicate_state(plane, ©->state); in rcar_du_vsp_plane_atomic_duplicate_state() 315 return ©->state; in rcar_du_vsp_plane_atomic_duplicate_state()
|
/drivers/gpu/drm/ |
D | drm_print.c | 66 ssize_t copy; in __drm_puts_coredump() local 75 copy = len - (iterator->start - iterator->offset); in __drm_puts_coredump() 77 if (copy > iterator->remain) in __drm_puts_coredump() 78 copy = iterator->remain; in __drm_puts_coredump() 82 str + (iterator->start - iterator->offset), copy); in __drm_puts_coredump() 84 iterator->offset = iterator->start + copy; in __drm_puts_coredump() 85 iterator->remain -= copy; in __drm_puts_coredump()
|
/drivers/staging/axis-fifo/ |
D | axis-fifo.c | 361 unsigned int copy; in axis_fifo_read() local 435 copy = min(words_available, READ_BUF_SIZE); in axis_fifo_read() 437 for (i = 0; i < copy; i++) { in axis_fifo_read() 443 copy * sizeof(u32))) { in axis_fifo_read() 449 copied += copy; in axis_fifo_read() 450 words_available -= copy; in axis_fifo_read() 482 unsigned int copy; in axis_fifo_write() local 551 copy = min(words_to_write, WRITE_BUF_SIZE); in axis_fifo_write() 554 copy * sizeof(u32))) { in axis_fifo_write() 560 for (i = 0; i < copy; i++) in axis_fifo_write() [all …]
|
/drivers/pinctrl/ |
D | pinctrl-mcp23s08_spi.c | 86 struct regmap_config *copy; in mcp23s08_spi_regmap_init() local 132 copy = devm_kmemdup(dev, config, sizeof(*config), GFP_KERNEL); in mcp23s08_spi_regmap_init() 133 if (!copy) in mcp23s08_spi_regmap_init() 136 copy->name = name; in mcp23s08_spi_regmap_init() 138 mcp->regmap = devm_regmap_init(dev, &mcp23sxx_spi_regmap, mcp, copy); in mcp23s08_spi_regmap_init()
|
/drivers/net/wireless/intersil/hostap/ |
D | hostap_proc.c | 240 int start_bytes, left, copy; in prism2_io_debug_proc_read() local 253 copy = start_bytes - off; in prism2_io_debug_proc_read() 254 if (copy > count) in prism2_io_debug_proc_read() 255 copy = count; in prism2_io_debug_proc_read() 256 memcpy(page, ((u8 *) &local->io_debug[head]) + off, copy); in prism2_io_debug_proc_read() 257 left -= copy; in prism2_io_debug_proc_read() 259 memcpy(&page[copy], local->io_debug, left); in prism2_io_debug_proc_read()
|
/drivers/gpu/drm/exynos/ |
D | exynos_drm_plane.c | 146 struct exynos_drm_plane_state *copy; in exynos_drm_plane_duplicate_state() local 149 copy = kzalloc(sizeof(*exynos_state), GFP_KERNEL); in exynos_drm_plane_duplicate_state() 150 if (!copy) in exynos_drm_plane_duplicate_state() 153 __drm_atomic_helper_plane_duplicate_state(plane, ©->base); in exynos_drm_plane_duplicate_state() 154 return ©->base; in exynos_drm_plane_duplicate_state()
|
/drivers/block/paride/ |
D | pg.c | 629 int copy; in pg_read() local 645 copy = 0; in pg_read() 649 copy = hdr.dlen; in pg_read() 650 if (copy > (count - hs)) in pg_read() 651 copy = count - hs; in pg_read() 659 if (copy > 0) in pg_read() 660 if (copy_to_user(buf + hs, dev->bufptr, copy)) in pg_read() 662 return copy + hs; in pg_read()
|
/drivers/usb/usbip/ |
D | stub_tx.c | 241 unsigned int copy = urb->actual_length; in stub_send_ret_submit() local 245 if (copy == 0) in stub_send_ret_submit() 248 if (copy < sg->length) in stub_send_ret_submit() 249 size = copy; in stub_send_ret_submit() 257 copy -= size; in stub_send_ret_submit()
|
/drivers/staging/vc04_services/bcm2835-camera/ |
D | TODO | 3 In order to zero-copy import camera images into the 3D or display 17 less copy it needed to do.
|