Lines Matching refs:cmd

262 	if (com->cmd.hdr.Opcode == CMD_FWLOAD_PREPARE) {  in ngene_command_mutex()
271 } else if (com->cmd.hdr.Opcode == CMD_FWLOAD_FINISH) { in ngene_command_mutex()
282 memcpy(dev->FWInterfaceBuffer, com->cmd.raw8, com->in_len + 2); in ngene_command_mutex()
285 ngcpyto(HOST_TO_NGENE, com->cmd.raw8, com->in_len + 2); in ngene_command_mutex()
305 com->cmd.hdr.Opcode, dev->prev_cmd); in ngene_command_mutex()
309 if (com->cmd.hdr.Opcode == CMD_FWLOAD_FINISH) in ngene_command_mutex()
312 dev->prev_cmd = com->cmd.hdr.Opcode; in ngene_command_mutex()
317 memcpy(com->cmd.raw8, dev->ngenetohost, com->out_len); in ngene_command_mutex()
340 com.cmd.hdr.Opcode = CMD_FWLOAD_PREPARE; in ngene_command_load_firmware()
341 com.cmd.hdr.Length = 0; in ngene_command_load_firmware()
356 com.cmd.hdr.Opcode = CMD_FWLOAD_FINISH; in ngene_command_load_firmware()
357 com.cmd.hdr.Length = 4; in ngene_command_load_firmware()
358 com.cmd.FWLoadFinish.Address = DATA_FIFO_AREA; in ngene_command_load_firmware()
359 com.cmd.FWLoadFinish.Length = (unsigned short)cleft; in ngene_command_load_firmware()
371 com.cmd.hdr.Opcode = CMD_CONFIGURE_BUFFER; in ngene_command_config_buf()
372 com.cmd.hdr.Length = 1; in ngene_command_config_buf()
373 com.cmd.ConfigureBuffers.config = config; in ngene_command_config_buf()
386 com.cmd.hdr.Opcode = CMD_CONFIGURE_FREE_BUFFER; in ngene_command_config_free_buf()
387 com.cmd.hdr.Length = 6; in ngene_command_config_free_buf()
388 memcpy(&com.cmd.ConfigureFreeBuffers.config, config, 6); in ngene_command_config_free_buf()
402 com.cmd.hdr.Opcode = CMD_SET_GPIO_PIN; in ngene_command_gpio_set()
403 com.cmd.hdr.Length = 1; in ngene_command_gpio_set()
404 com.cmd.SetGpioPin.select = select | (level << 7); in ngene_command_gpio_set()
552 com.cmd.hdr.Opcode = CMD_CONTROL; in ngene_command_stream_control()
553 com.cmd.hdr.Length = sizeof(struct FW_STREAM_CONTROL) - 2; in ngene_command_stream_control()
554 com.cmd.StreamControl.Stream = stream | (control ? 8 : 0); in ngene_command_stream_control()
556 com.cmd.StreamControl.Stream |= 0x07; in ngene_command_stream_control()
557 com.cmd.StreamControl.Control = control | in ngene_command_stream_control()
559 com.cmd.StreamControl.Mode = mode; in ngene_command_stream_control()
564 com.cmd.StreamControl.Stream, com.cmd.StreamControl.Control, in ngene_command_stream_control()
565 com.cmd.StreamControl.Mode); in ngene_command_stream_control()
586 com.cmd.StreamControl.CaptureBlockCount = in ngene_command_stream_control()
588 com.cmd.StreamControl.Buffer_Address = chan->RingBuffer.PAHead; in ngene_command_stream_control()
590 com.cmd.StreamControl.CaptureBlockCount = in ngene_command_stream_control()
592 com.cmd.StreamControl.MaxLinesPerField = in ngene_command_stream_control()
594 com.cmd.StreamControl.Buffer_Address = in ngene_command_stream_control()
597 com.cmd.StreamControl.BytesPerVBILine = in ngene_command_stream_control()
599 com.cmd.StreamControl.Stream |= 0x07; in ngene_command_stream_control()
602 com.cmd.StreamControl.BytesPerVideoLine = chan->nBytesPerLine; in ngene_command_stream_control()
603 com.cmd.StreamControl.MaxLinesPerField = chan->nLines; in ngene_command_stream_control()
604 com.cmd.StreamControl.MinLinesPerField = 100; in ngene_command_stream_control()
605 com.cmd.StreamControl.Buffer_Address = chan->RingBuffer.PAHead; in ngene_command_stream_control()
608 com.cmd.StreamControl.MaxVBILinesPerField = in ngene_command_stream_control()
610 com.cmd.StreamControl.MinVBILinesPerField = 0; in ngene_command_stream_control()
611 com.cmd.StreamControl.BytesPerVBILine = in ngene_command_stream_control()
615 com.cmd.StreamControl.Stream |= 0x04; in ngene_command_stream_control()
622 com.cmd.StreamControl.SetupDataLen = in ngene_command_stream_control()
624 com.cmd.StreamControl.SetupDataAddr = BsSPI; in ngene_command_stream_control()
625 memcpy(com.cmd.StreamControl.SetupData, in ngene_command_stream_control()
628 com.cmd.StreamControl.SetupDataLen = 4; in ngene_command_stream_control()
629 com.cmd.StreamControl.SetupDataAddr = BsSDI; in ngene_command_stream_control()
630 memcpy(com.cmd.StreamControl.SetupData, in ngene_command_stream_control()
638 com.cmd.StreamControl.SetupDataLen = in ngene_command_stream_control()
640 com.cmd.StreamControl.SetupDataAddr = BsSDO; in ngene_command_stream_control()
641 memcpy(com.cmd.StreamControl.SetupData, in ngene_command_stream_control()
645 com.cmd.StreamControl.SetupDataLen = in ngene_command_stream_control()
647 com.cmd.StreamControl.SetupDataAddr = BsSDI; in ngene_command_stream_control()
648 memcpy(com.cmd.StreamControl.SetupData, in ngene_command_stream_control()
653 com.cmd.StreamControl.SetupDataLen = 8; in ngene_command_stream_control()
654 com.cmd.StreamControl.SetupDataAddr = BsUVI + 0x10; in ngene_command_stream_control()
655 memcpy(com.cmd.StreamControl.SetupData, in ngene_command_stream_control()
661 com.cmd.StreamControl.SetupDataLen = in ngene_command_stream_control()
663 com.cmd.StreamControl.SetupDataAddr = BsUVI; in ngene_command_stream_control()
664 memcpy(com.cmd.StreamControl.SetupData, in ngene_command_stream_control()
666 memcpy(com.cmd.StreamControl.SetupData + 16, in ngene_command_stream_control()
1618 com.cmd.hdr.Opcode = CMD_MEM_WRITE; in ngene_unlink()
1619 com.cmd.hdr.Length = 3; in ngene_unlink()
1620 com.cmd.MemoryWrite.address = 0x910c; in ngene_unlink()
1621 com.cmd.MemoryWrite.data = 0xff; in ngene_unlink()