/drivers/gpu/drm/radeon/ |
D | r300_cmdbuf.c | 60 drm_radeon_kcmd_buffer_t *cmdbuf, int n) in r300_emit_cliprects() argument 67 nr = cmdbuf->nbox - n; in r300_emit_cliprects() 79 (&box, &cmdbuf->boxes[n + i], sizeof(box))) { in r300_emit_cliprects() 297 * cmdbuf, in r300_emit_carefully_checked_packet0() 321 value = drm_buffer_pointer_to_dword(cmdbuf->buffer, i); in r300_emit_carefully_checked_packet0() 337 OUT_RING_DRM_BUFFER(cmdbuf->buffer, sz); in r300_emit_carefully_checked_packet0() 350 drm_radeon_kcmd_buffer_t *cmdbuf, in r300_emit_packet0() argument 363 if (sz * 4 > drm_buffer_unprocessed(cmdbuf->buffer)) in r300_emit_packet0() 374 return r300_emit_carefully_checked_packet0(dev_priv, cmdbuf, in r300_emit_packet0() 381 OUT_RING_DRM_BUFFER(cmdbuf->buffer, sz); in r300_emit_packet0() [all …]
|
D | radeon_state.c | 279 cmdbuf, in radeon_check_and_fixup_packet3() 282 u32 *cmd = drm_buffer_pointer_to_dword(cmdbuf->buffer, 0); in radeon_check_and_fixup_packet3() 294 if (4 * *cmdsz > drm_buffer_unprocessed(cmdbuf->buffer)) { in radeon_check_and_fixup_packet3() 334 cmd = drm_buffer_pointer_to_dword(cmdbuf->buffer, 1); in radeon_check_and_fixup_packet3() 341 cmd = drm_buffer_pointer_to_dword(cmdbuf->buffer, i); in radeon_check_and_fixup_packet3() 354 cmd = drm_buffer_pointer_to_dword(cmdbuf->buffer, i); in radeon_check_and_fixup_packet3() 382 cmd = drm_buffer_pointer_to_dword(cmdbuf->buffer, 1); in radeon_check_and_fixup_packet3() 395 cmd = drm_buffer_pointer_to_dword(cmdbuf->buffer, 1); in radeon_check_and_fixup_packet3() 400 cmd = drm_buffer_pointer_to_dword(cmdbuf->buffer, 2); in radeon_check_and_fixup_packet3() 411 cmd = drm_buffer_pointer_to_dword(cmdbuf->buffer, 1); in radeon_check_and_fixup_packet3() [all …]
|
/drivers/gpu/drm/savage/ |
D | savage_state.c | 905 const drm_savage_cmd_header_t *cmdbuf; in savage_dispatch_draw() local 908 cmdbuf = start; in savage_dispatch_draw() 909 while (cmdbuf < end) { in savage_dispatch_draw() 911 cmd_header = *cmdbuf; in savage_dispatch_draw() 912 cmdbuf++; in savage_dispatch_draw() 927 &cmd_header, (const uint16_t *)cmdbuf, in savage_dispatch_draw() 929 cmdbuf += j; in savage_dispatch_draw() 935 &cmd_header, (const uint16_t *)cmdbuf, in savage_dispatch_draw() 938 cmdbuf += j; in savage_dispatch_draw() 961 drm_savage_cmdbuf_t *cmdbuf = data; in savage_bci_cmdbuf() local [all …]
|
/drivers/gpu/host1x/ |
D | job.c | 228 static unsigned int do_relocs(struct host1x_job *job, struct host1x_bo *cmdbuf) in do_relocs() argument 242 if (cmdbuf != reloc->cmdbuf.bo) in do_relocs() 245 if (last_page != reloc->cmdbuf.offset >> PAGE_SHIFT) { in do_relocs() 247 host1x_bo_kunmap(cmdbuf, last_page, in do_relocs() 250 cmdbuf_page_addr = host1x_bo_kmap(cmdbuf, in do_relocs() 251 reloc->cmdbuf.offset >> PAGE_SHIFT); in do_relocs() 252 last_page = reloc->cmdbuf.offset >> PAGE_SHIFT; in do_relocs() 260 target = cmdbuf_page_addr + (reloc->cmdbuf.offset & ~PAGE_MASK); in do_relocs() 265 host1x_bo_kunmap(cmdbuf, last_page, cmdbuf_page_addr); in do_relocs() 270 static bool check_reloc(struct host1x_reloc *reloc, struct host1x_bo *cmdbuf, in check_reloc() argument [all …]
|
/drivers/net/wireless/libertas_tf/ |
D | cmd.c | 219 if (!cmdnode->cmdbuf->size) { in lbtf_queue_cmd() 230 le16_to_cpu(cmdnode->cmdbuf->command)); in lbtf_queue_cmd() 248 cmd = cmdnode->cmdbuf; in lbtf_submit_command() 257 lbtf_deb_hex(LBTF_DEB_CMD, "DNLD_CMD", (void *) cmdnode->cmdbuf, cmdsize); in lbtf_submit_command() 290 memset(cmdnode->cmdbuf, 0, LBS_CMD_BUFFER_SIZE); in __lbtf_cleanup_and_insert_cmd() 466 cmdarray[i].cmdbuf = kzalloc(LBS_CMD_BUFFER_SIZE, GFP_KERNEL); in lbtf_allocate_cmd_buffer() 467 if (!cmdarray[i].cmdbuf) { in lbtf_allocate_cmd_buffer() 510 kfree(cmdarray[i].cmdbuf); in lbtf_free_cmd_buffer() 511 cmdarray[i].cmdbuf = NULL; in lbtf_free_cmd_buffer() 591 cmd = cmdnode->cmdbuf; in lbtf_execute_next_command() [all …]
|
/drivers/input/serio/ |
D | libps2.c | 80 if (maxbytes > sizeof(ps2dev->cmdbuf)) { in ps2_drain() 82 maxbytes = sizeof(ps2dev->cmdbuf); in ps2_drain() 148 if (ps2dev->cmdbuf[1] == 0xaa) { in ps2_adjust_timeout() 159 if (!ps2_is_keyboard_id(ps2dev->cmdbuf[1])) { in ps2_adjust_timeout() 189 if (receive > sizeof(ps2dev->cmdbuf)) { in __ps2_command() 204 ps2dev->cmdbuf[(receive - 1) - i] = param[i]; in __ps2_command() 244 param[i] = ps2dev->cmdbuf[(receive - 1) - i]; in __ps2_command() 350 ps2dev->cmdbuf[--ps2dev->cmdcnt] = data; in ps2_handle_response()
|
/drivers/media/rc/ |
D | mceusb.c | 823 unsigned char cmdbuf[MCE_CMDBUF_SIZE]; in mceusb_tx_ir() local 826 cmdbuf[cmdcount++] = MCE_CMD_PORT_IR; in mceusb_tx_ir() 827 cmdbuf[cmdcount++] = MCE_CMD_SETIRTXPORTS; in mceusb_tx_ir() 828 cmdbuf[cmdcount++] = ir->tx_mask; in mceusb_tx_ir() 831 mce_async_out(ir, cmdbuf, cmdcount); in mceusb_tx_ir() 843 cmdbuf[cmdcount++] = MCE_IRDATA_HEADER; in mceusb_tx_ir() 847 cmdbuf[cmdcount++] = in mceusb_tx_ir() 868 cmdbuf[cmdcount - length] -= MCE_CODE_LENGTH - length; in mceusb_tx_ir() 871 cmdbuf[cmdcount++] = MCE_IRDATA_TRAILER; in mceusb_tx_ir() 874 mce_async_out(ir, cmdbuf, cmdcount); in mceusb_tx_ir() [all …]
|
/drivers/gpu/drm/tegra/ |
D | drm.c | 293 u32 cmdbuf, target; in host1x_reloc_copy_from_user() local 296 err = get_user(cmdbuf, &src->cmdbuf.handle); in host1x_reloc_copy_from_user() 300 err = get_user(dest->cmdbuf.offset, &src->cmdbuf.offset); in host1x_reloc_copy_from_user() 316 dest->cmdbuf.bo = host1x_bo_lookup(drm, file, cmdbuf); in host1x_reloc_copy_from_user() 317 if (!dest->cmdbuf.bo) in host1x_reloc_copy_from_user() 360 struct drm_tegra_cmdbuf cmdbuf; in tegra_drm_submit() local 363 if (copy_from_user(&cmdbuf, cmdbufs, sizeof(cmdbuf))) { in tegra_drm_submit() 368 bo = host1x_bo_lookup(drm, file, cmdbuf.handle); in tegra_drm_submit() 374 host1x_job_add_gather(job, bo, cmdbuf.words, cmdbuf.offset); in tegra_drm_submit()
|
/drivers/net/wireless/libertas/ |
D | cmd.c | 952 if (!cmdnode->cmdbuf->size) { in lbs_queue_cmd() 959 if (le16_to_cpu(cmdnode->cmdbuf->command) == CMD_802_11_PS_MODE) { in lbs_queue_cmd() 960 struct cmd_ds_802_11_ps_mode *psm = (void *) &cmdnode->cmdbuf; in lbs_queue_cmd() 968 if (le16_to_cpu(cmdnode->cmdbuf->command) == CMD_802_11_WAKEUP_CONFIRM) in lbs_queue_cmd() 981 le16_to_cpu(cmdnode->cmdbuf->command)); in lbs_queue_cmd() 999 cmd = cmdnode->cmdbuf; in lbs_submit_command() 1016 lbs_deb_hex(LBS_DEB_CMD, "DNLD_CMD", (void *) cmdnode->cmdbuf, cmdsize); in lbs_submit_command() 1058 memset(cmdnode->cmdbuf, 0, LBS_CMD_BUFFER_SIZE); in __lbs_cleanup_and_insert_cmd() 1207 cmdarray[i].cmdbuf = kzalloc(LBS_CMD_BUFFER_SIZE, GFP_KERNEL); in lbs_allocate_cmd_buffer() 1208 if (!cmdarray[i].cmdbuf) { in lbs_allocate_cmd_buffer() [all …]
|
D | cmdresp.c | 84 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()
|
D | cmd.h | 23 struct cmd_header *cmdbuf; member
|
/drivers/gpu/drm/via/ |
D | via_dma.c | 330 drm_via_cmdbuffer_t *cmdbuf = data; in via_cmdbuffer() local 335 DRM_DEBUG("buf %p size %lu\n", cmdbuf->buf, cmdbuf->size); in via_cmdbuffer() 337 ret = via_dispatch_cmdbuffer(dev, cmdbuf); in via_cmdbuffer() 366 drm_via_cmdbuffer_t *cmdbuf = data; in via_pci_cmdbuffer() local 371 DRM_DEBUG("buf %p size %lu\n", cmdbuf->buf, cmdbuf->size); in via_pci_cmdbuffer() 373 ret = via_dispatch_pci_cmdbuffer(dev, cmdbuf); in via_pci_cmdbuffer()
|
/drivers/platform/olpc/ |
D | olpc-ec.c | 171 char cmdbuf[64]; in ec_dbgfs_cmd_write() local 176 size = simple_write_to_buffer(cmdbuf, sizeof(cmdbuf), ppos, buf, size); in ec_dbgfs_cmd_write() 178 m = sscanf(cmdbuf, "%x:%u %x %x %x %x %x", &ec_cmd_int[0], in ec_dbgfs_cmd_write()
|
/drivers/media/dvb-frontends/ |
D | stv6110.c | 74 u8 cmdbuf[MAX_XFER_SIZE]; in stv6110_write_regs() local 78 .buf = cmdbuf, in stv6110_write_regs() 84 if (1 + len > sizeof(cmdbuf)) { in stv6110_write_regs() 94 memcpy(&cmdbuf[1], buf, len); in stv6110_write_regs() 95 cmdbuf[0] = start; in stv6110_write_regs()
|
D | stb6100.c | 188 u8 cmdbuf[MAX_XFER_SIZE]; in stb6100_write_reg_range() local 192 .buf = cmdbuf, in stb6100_write_reg_range() 196 if (1 + len > sizeof(cmdbuf)) { in stb6100_write_reg_range() 208 memcpy(&cmdbuf[1], buf, len); in stb6100_write_reg_range() 209 cmdbuf[0] = start; in stb6100_write_reg_range()
|
/drivers/isdn/gigaset/ |
D | usb-gigaset.c | 316 if (cs->cmdbuf) { /* commands to send? */ in gigaset_modem_fill() 428 struct cmdbuf_t *cb = cs->cmdbuf; in send_cb() 440 cs->cmdbuf = cb->next; in send_cb() 441 if (cs->cmdbuf) { in send_cb() 442 cs->cmdbuf->prev = NULL; in send_cb() 443 cs->curlen = cs->cmdbuf->len; in send_cb() 454 cb = cs->cmdbuf; in send_cb() 506 cs->cmdbuf = cb; in gigaset_write_cmd()
|
D | ser-gigaset.c | 113 cb = cs->cmdbuf; in send_cb() 136 cs->cmdbuf = cb = cb->next; in send_cb() 211 while ((cb = cs->cmdbuf) != NULL) { in flush_send_queue() 212 cs->cmdbuf = cb->next; in flush_send_queue() 217 cs->cmdbuf = cs->lastcmdbuf = NULL; in flush_send_queue() 255 cs->cmdbuf = cb; in gigaset_write_cmd()
|
D | bas-gigaset.c | 1745 struct cmdbuf_t *cb = cs->cmdbuf; in complete_cb() 1752 cs->cmdbuf = cb->next; in complete_cb() 1753 cs->cmdbuf->prev = NULL; in complete_cb() 1754 cs->curlen = cs->cmdbuf->len; in complete_cb() 1756 cs->cmdbuf = NULL; in complete_cb() 1813 if (cs->cmdbuf == NULL) { in write_command_callback() 1822 if (atwrite_submit(cs, cs->cmdbuf->buf, cs->cmdbuf->len) >= 0) in write_command_callback() 1830 if (cs->cmdbuf != NULL) in write_command_callback() 1931 while (cs->cmdbuf != NULL) in start_cbsend() 1941 while ((cb = cs->cmdbuf) != NULL && (ucs->basstate & BS_ATREADY)) { in start_cbsend() [all …]
|
D | common.c | 734 cs->cmdbuf = cs->lastcmdbuf = NULL; in gigaset_initcs() 838 cb = cs->cmdbuf; in cleanup_cs() 844 cs->cmdbuf = cs->lastcmdbuf = NULL; in cleanup_cs()
|
/drivers/gpu/drm/gma500/ |
D | accel_2d.c | 108 static int psbfb_2d_submit(struct drm_psb_private *dev_priv, uint32_t *cmdbuf, in psbfb_2d_submit() argument 127 PSB_WSGX32(*cmdbuf++, PSB_SGX_2D_SLAVE_PORT + i); in psbfb_2d_submit()
|
/drivers/hid/i2c-hid/ |
D | i2c-hid.c | 142 u8 *cmdbuf; /* Command buffer */ member 162 union command *cmd = (union command *)ihid->cmdbuf; in __i2c_hid_command() 532 kfree(ihid->cmdbuf); in i2c_hid_free_buffers() 535 ihid->cmdbuf = NULL; in i2c_hid_free_buffers() 553 ihid->cmdbuf = kzalloc(sizeof(union command) + args_len, GFP_KERNEL); in i2c_hid_alloc_buffers() 555 if (!ihid->inbuf || !ihid->rawbuf || !ihid->argsbuf || !ihid->cmdbuf) { in i2c_hid_alloc_buffers()
|
/drivers/scsi/megaraid/ |
D | megaraid_mm.c | 458 mbox64 = (mbox64_t *)((unsigned long)kioc->cmdbuf); in mimd_to_kioc() 621 memset((caddr_t)(unsigned long)kioc->cmdbuf, 0, sizeof(mbox64_t)); in mraid_mm_alloc_kioc() 854 mbox64 = (mbox64_t *)(unsigned long)kioc->cmdbuf; in kioc_to_mimd() 977 kioc->cmdbuf = (uint64_t)(unsigned long)(mbox_list + i); in mraid_mm_register_adp()
|
D | megaraid_ioctl.h | 126 uint64_t cmdbuf; member
|
/drivers/media/usb/gspca/ |
D | kinect.c | 133 static int send_cmd(struct gspca_dev *gspca_dev, uint16_t cmd, void *cmdbuf, in send_cmd() argument 155 memcpy(obuf+sizeof(*chdr), cmdbuf, cmd_len); in send_cmd()
|
/drivers/media/usb/s2255/ |
D | s2255drv.c | 280 __le32 *cmdbuf; member 1023 __le32 *buffer = dev->cmdbuf; in s2255_set_mode() 1071 __le32 *buffer = dev->cmdbuf; in s2255_cmd_status() 1539 kfree(dev->cmdbuf); in s2255_destroy() 2142 __le32 *buffer = dev->cmdbuf; in s2255_start_acquire() 2172 __le32 *buffer = dev->cmdbuf; in s2255_stop_acquire() 2241 dev->cmdbuf = kzalloc(S2255_CMDBUF_SIZE, GFP_KERNEL); in s2255_probe() 2242 if (dev->cmdbuf == NULL) { in s2255_probe() 2358 kfree(dev->cmdbuf); in s2255_probe()
|