Home
last modified time | relevance | path

Searched refs:cmdbuf (Results 1 – 25 of 38) sorted by relevance

12

/drivers/gpu/drm/savage/
Dsavage_state.c916 const drm_savage_cmd_header_t *cmdbuf; in savage_dispatch_draw() local
919 cmdbuf = start; in savage_dispatch_draw()
920 while (cmdbuf < end) { in savage_dispatch_draw()
922 cmd_header = *cmdbuf; in savage_dispatch_draw()
923 cmdbuf++; in savage_dispatch_draw()
938 &cmd_header, (const uint16_t *)cmdbuf, in savage_dispatch_draw()
940 cmdbuf += j; in savage_dispatch_draw()
946 &cmd_header, (const uint16_t *)cmdbuf, in savage_dispatch_draw()
949 cmdbuf += j; in savage_dispatch_draw()
972 drm_savage_cmdbuf_t *cmdbuf = data; in savage_bci_cmdbuf() local
[all …]
/drivers/gpu/drm/etnaviv/
Detnaviv_cmdbuf.c86 struct etnaviv_cmdbuf *cmdbuf, u32 size) in etnaviv_cmdbuf_init() argument
90 cmdbuf->suballoc = suballoc; in etnaviv_cmdbuf_init()
91 cmdbuf->size = size; in etnaviv_cmdbuf_init()
112 cmdbuf->suballoc_offset = granule_offs * SUBALLOC_GRANULE; in etnaviv_cmdbuf_init()
113 cmdbuf->vaddr = suballoc->vaddr + cmdbuf->suballoc_offset; in etnaviv_cmdbuf_init()
118 void etnaviv_cmdbuf_free(struct etnaviv_cmdbuf *cmdbuf) in etnaviv_cmdbuf_free() argument
120 struct etnaviv_cmdbuf_suballoc *suballoc = cmdbuf->suballoc; in etnaviv_cmdbuf_free()
121 int order = order_base_2(ALIGN(cmdbuf->size, SUBALLOC_GRANULE) / in etnaviv_cmdbuf_free()
126 cmdbuf->suballoc_offset / SUBALLOC_GRANULE, in etnaviv_cmdbuf_free()
Detnaviv_buffer.c341 struct etnaviv_cmdbuf *cmdbuf) in etnaviv_buffer_queue() argument
359 link_target = etnaviv_cmdbuf_get_va(cmdbuf, in etnaviv_buffer_queue()
361 link_dwords = cmdbuf->size / 8; in etnaviv_buffer_queue()
446 link_target = etnaviv_cmdbuf_get_va(cmdbuf, in etnaviv_buffer_queue()
472 CMD_LINK(cmdbuf, return_dwords, return_target); in etnaviv_buffer_queue()
514 etnaviv_cmdbuf_get_va(cmdbuf, &gpu->mmu_context->cmdbuf_mapping), in etnaviv_buffer_queue()
515 cmdbuf->vaddr); in etnaviv_buffer_queue()
519 cmdbuf->vaddr, cmdbuf->size, 0); in etnaviv_buffer_queue()
Detnaviv_cmdbuf.h39 struct etnaviv_cmdbuf *cmdbuf, u32 size);
40 void etnaviv_cmdbuf_free(struct etnaviv_cmdbuf *cmdbuf);
Detnaviv_dump.c137 mmu_size + gpu->buffer.size + submit->cmdbuf.size; in etnaviv_core_dump()
179 submit->cmdbuf.vaddr, submit->cmdbuf.size, in etnaviv_core_dump()
180 etnaviv_cmdbuf_get_va(&submit->cmdbuf, in etnaviv_core_dump()
Detnaviv_gem_submit.c379 if (submit->cmdbuf.suballoc) in submit_cleanup()
380 etnaviv_cmdbuf_free(&submit->cmdbuf); in submit_cleanup()
535 ret = etnaviv_cmdbuf_init(priv->cmdbuf_suballoc, &submit->cmdbuf, in etnaviv_ioctl_gem_submit()
577 memcpy(submit->cmdbuf.vaddr, stream, args->stream_size); in etnaviv_ioctl_gem_submit()
/drivers/media/rc/
Dmceusb.c935 u8 cmdbuf[3] = { MCE_CMD_PORT_IR, MCE_CMD_SETIRTXPORTS, 0x00 }; in mceusb_tx_ir() local
942 cmdbuf[2] = ir->tx_mask; in mceusb_tx_ir()
943 mce_command_out(ir, cmdbuf, sizeof(cmdbuf)); in mceusb_tx_ir()
1037 unsigned char cmdbuf[4] = { MCE_CMD_PORT_IR, in mceusb_set_tx_carrier() local
1045 cmdbuf[2] = MCE_CMD_SIG_END; in mceusb_set_tx_carrier()
1046 cmdbuf[3] = MCE_IRDATA_TRAILER; in mceusb_set_tx_carrier()
1048 mce_command_out(ir, cmdbuf, sizeof(cmdbuf)); in mceusb_set_tx_carrier()
1056 cmdbuf[2] = prescaler; in mceusb_set_tx_carrier()
1057 cmdbuf[3] = divisor; in mceusb_set_tx_carrier()
1062 mce_command_out(ir, cmdbuf, sizeof(cmdbuf)); in mceusb_set_tx_carrier()
[all …]
/drivers/net/wireless/marvell/libertas_tf/
Dcmd.c215 if (!cmdnode->cmdbuf->size) { in lbtf_queue_cmd()
226 le16_to_cpu(cmdnode->cmdbuf->command)); in lbtf_queue_cmd()
244 cmd = cmdnode->cmdbuf; in lbtf_submit_command()
253 lbtf_deb_hex(LBTF_DEB_CMD, "DNLD_CMD", (void *) cmdnode->cmdbuf, cmdsize); in lbtf_submit_command()
286 memset(cmdnode->cmdbuf, 0, LBS_CMD_BUFFER_SIZE); in __lbtf_cleanup_and_insert_cmd()
462 cmdarray[i].cmdbuf = kzalloc(LBS_CMD_BUFFER_SIZE, GFP_KERNEL); in lbtf_allocate_cmd_buffer()
463 if (!cmdarray[i].cmdbuf) { in lbtf_allocate_cmd_buffer()
506 kfree(cmdarray[i].cmdbuf); in lbtf_free_cmd_buffer()
507 cmdarray[i].cmdbuf = NULL; in lbtf_free_cmd_buffer()
587 cmd = cmdnode->cmdbuf; in lbtf_execute_next_command()
[all …]
/drivers/gpu/host1x/
Djob.c282 struct host1x_bo *cmdbuf = g->bo; in do_relocs() local
293 if (cmdbuf != reloc->cmdbuf.bo) in do_relocs()
298 reloc->cmdbuf.offset / sizeof(u32) + in do_relocs()
304 cmdbuf_addr = host1x_bo_mmap(cmdbuf); in do_relocs()
312 target = cmdbuf_addr + reloc->cmdbuf.offset; in do_relocs()
318 host1x_bo_munmap(cmdbuf, cmdbuf_addr); in do_relocs()
323 static bool check_reloc(struct host1x_reloc *reloc, struct host1x_bo *cmdbuf, in check_reloc() argument
328 if (reloc->cmdbuf.bo != cmdbuf || reloc->cmdbuf.offset != offset) in check_reloc()
345 struct host1x_bo *cmdbuf; member
364 if (!check_reloc(fw->reloc, fw->cmdbuf, fw->offset)) in check_register()
[all …]
/drivers/input/serio/
Dlibps2.c124 if (maxbytes > sizeof(ps2dev->cmdbuf)) { in ps2_drain()
126 maxbytes = sizeof(ps2dev->cmdbuf); in ps2_drain()
193 if (ps2dev->cmdbuf[1] == 0xaa) { in ps2_adjust_timeout()
204 if (!ps2_is_keyboard_id(ps2dev->cmdbuf[1])) { in ps2_adjust_timeout()
235 if (receive > sizeof(ps2dev->cmdbuf)) { in __ps2_command()
253 ps2dev->cmdbuf[(receive - 1) - i] = param[i]; in __ps2_command()
299 param[i] = ps2dev->cmdbuf[(receive - 1) - i]; in __ps2_command()
463 ps2dev->cmdbuf[--ps2dev->cmdcnt] = data; in ps2_handle_response()
/drivers/gpu/drm/tegra/
Ddrm.c125 u32 cmdbuf, target; in host1x_reloc_copy_from_user() local
128 err = get_user(cmdbuf, &src->cmdbuf.handle); in host1x_reloc_copy_from_user()
132 err = get_user(dest->cmdbuf.offset, &src->cmdbuf.offset); in host1x_reloc_copy_from_user()
150 dest->cmdbuf.bo = host1x_bo_lookup(file, cmdbuf); in host1x_reloc_copy_from_user()
151 if (!dest->cmdbuf.bo) in host1x_reloc_copy_from_user()
217 struct drm_tegra_cmdbuf cmdbuf; in tegra_drm_submit() local
222 if (copy_from_user(&cmdbuf, user_cmdbufs, sizeof(cmdbuf))) { in tegra_drm_submit()
231 if (cmdbuf.words > CDMA_GATHER_FETCHES_MAX_NB) { in tegra_drm_submit()
236 bo = host1x_bo_lookup(file, cmdbuf.handle); in tegra_drm_submit()
242 offset = (u64)cmdbuf.offset + (u64)cmdbuf.words * sizeof(u32); in tegra_drm_submit()
[all …]
/drivers/net/wireless/marvell/libertas/
Dcmd.c900 if (!cmdnode->cmdbuf->size) { in lbs_queue_cmd()
907 if (le16_to_cpu(cmdnode->cmdbuf->command) == CMD_802_11_PS_MODE) { in lbs_queue_cmd()
908 struct cmd_ds_802_11_ps_mode *psm = (void *)cmdnode->cmdbuf; in lbs_queue_cmd()
916 if (le16_to_cpu(cmdnode->cmdbuf->command) == CMD_802_11_WAKEUP_CONFIRM) in lbs_queue_cmd()
929 le16_to_cpu(cmdnode->cmdbuf->command)); in lbs_queue_cmd()
942 cmd = cmdnode->cmdbuf; in lbs_submit_command()
959 lbs_deb_hex(LBS_DEB_CMD, "DNLD_CMD", (void *) cmdnode->cmdbuf, cmdsize); in lbs_submit_command()
997 memset(cmdnode->cmdbuf, 0, LBS_CMD_BUFFER_SIZE); in __lbs_cleanup_and_insert_cmd()
1132 cmdarray[i].cmdbuf = kzalloc(LBS_CMD_BUFFER_SIZE, GFP_KERNEL); in lbs_allocate_cmd_buffer()
1133 if (!cmdarray[i].cmdbuf) { in lbs_allocate_cmd_buffer()
[all …]
Dcmdresp.c84 curcmd = le16_to_cpu(priv->cur_cmd->cmdbuf->command); in lbs_process_command_response()
92 if (resp->seqnum != priv->cur_cmd->cmdbuf->seqnum) { in lbs_process_command_response()
96 le16_to_cpu(priv->cur_cmd->cmdbuf->seqnum)); in lbs_process_command_response()
/drivers/gpu/drm/via/
Dvia_dma.c337 drm_via_cmdbuffer_t *cmdbuf = data; in via_cmdbuffer() local
342 DRM_DEBUG("buf %p size %lu\n", cmdbuf->buf, cmdbuf->size); in via_cmdbuffer()
344 ret = via_dispatch_cmdbuffer(dev, cmdbuf); in via_cmdbuffer()
373 drm_via_cmdbuffer_t *cmdbuf = data; in via_pci_cmdbuffer() local
378 DRM_DEBUG("buf %p size %lu\n", cmdbuf->buf, cmdbuf->size); in via_pci_cmdbuffer()
380 ret = via_dispatch_pci_cmdbuffer(dev, cmdbuf); in via_pci_cmdbuffer()
/drivers/hwmon/pmbus/
Dmax31785.c54 unsigned char cmdbuf[1]; in max31785_read_long_data() local
62 .len = sizeof(cmdbuf), in max31785_read_long_data()
63 .buf = cmdbuf, in max31785_read_long_data()
73 cmdbuf[0] = reg; in max31785_read_long_data()
/drivers/media/dvb-frontends/
Dstv6110.c59 u8 cmdbuf[MAX_XFER_SIZE]; in stv6110_write_regs() local
63 .buf = cmdbuf, in stv6110_write_regs()
69 if (1 + len > sizeof(cmdbuf)) { in stv6110_write_regs()
79 memcpy(&cmdbuf[1], buf, len); in stv6110_write_regs()
80 cmdbuf[0] = start; in stv6110_write_regs()
Dstb6100.c176 u8 cmdbuf[MAX_XFER_SIZE]; in stb6100_write_reg_range() local
180 .buf = cmdbuf, in stb6100_write_reg_range()
184 if (1 + len > sizeof(cmdbuf)) { in stb6100_write_reg_range()
196 memcpy(&cmdbuf[1], buf, len); in stb6100_write_reg_range()
197 cmdbuf[0] = start; in stb6100_write_reg_range()
/drivers/platform/olpc/
Dolpc-ec.c268 char cmdbuf[64] = ""; in ec_dbgfs_cmd_write() local
273 size = simple_write_to_buffer(cmdbuf, sizeof(cmdbuf), ppos, buf, size); in ec_dbgfs_cmd_write()
275 m = sscanf(cmdbuf, "%x:%u %x %x %x %x %x", &ec_cmd_int[0], in ec_dbgfs_cmd_write()
/drivers/input/touchscreen/
Dcy8ctma140.c98 u8 cmdbuf[] = { CY8CTMA140_GET_FINGERS }; in cy8ctma140_irq_thread() local
104 .len = sizeof(cmdbuf), in cy8ctma140_irq_thread()
105 .buf = cmdbuf, in cy8ctma140_irq_thread()
/drivers/iio/light/
Dvl6180.c131 __be16 cmdbuf = cpu_to_be16(cmd); in vl6180_read() local
133 { .addr = client->addr, .len = sizeof(cmdbuf), .buf = (u8 *) &cmdbuf }, in vl6180_read()
/drivers/gpu/drm/gma500/
Daccel_2d.c95 static int psbfb_2d_submit(struct drm_psb_private *dev_priv, uint32_t *cmdbuf, in psbfb_2d_submit() argument
114 PSB_WSGX32(*cmdbuf++, PSB_SGX_2D_SLAVE_PORT + i); in psbfb_2d_submit()
/drivers/hid/i2c-hid/
Di2c-hid-core.c152 u8 *cmdbuf; /* Command buffer */ member
221 union command *cmd = (union command *)ihid->cmdbuf; in __i2c_hid_command()
578 kfree(ihid->cmdbuf); in i2c_hid_free_buffers()
581 ihid->cmdbuf = NULL; in i2c_hid_free_buffers()
599 ihid->cmdbuf = kzalloc(sizeof(union command) + args_len, GFP_KERNEL); in i2c_hid_alloc_buffers()
601 if (!ihid->inbuf || !ihid->rawbuf || !ihid->argsbuf || !ihid->cmdbuf) { in i2c_hid_alloc_buffers()
/drivers/gpu/drm/
Ddrm_mipi_dbi.c153 u8 *cmdbuf; in mipi_dbi_command_buf() local
157 cmdbuf = kmemdup(&cmd, 1, GFP_KERNEL); in mipi_dbi_command_buf()
158 if (!cmdbuf) in mipi_dbi_command_buf()
162 ret = dbi->command(dbi, cmdbuf, data, len); in mipi_dbi_command_buf()
165 kfree(cmdbuf); in mipi_dbi_command_buf()
/drivers/scsi/megaraid/
Dmegaraid_mm.c450 mbox64 = (mbox64_t *)((unsigned long)kioc->cmdbuf); in mimd_to_kioc()
613 memset((caddr_t)(unsigned long)kioc->cmdbuf, 0, sizeof(mbox64_t)); in mraid_mm_alloc_kioc()
845 mbox64 = (mbox64_t *)(unsigned long)kioc->cmdbuf; in kioc_to_mimd()
970 kioc->cmdbuf = (uint64_t)(unsigned long)(mbox_list + i); in mraid_mm_register_adp()
/drivers/mtd/nand/raw/gpmi-nand/
Dgpmi-nand.h109 u8 cmdbuf[8]; member

12