/linux-4.4.14/sound/pci/mixart/ |
H A D | mixart_core.c | 54 tailptr = readl_be(MIXART_MEM(mgr, MSG_OUTBOUND_POST_TAIL)); retrieve_msg_frame() 55 headptr = readl_be(MIXART_MEM(mgr, MSG_OUTBOUND_POST_HEAD)); retrieve_msg_frame() 65 *msg_frame = readl_be(MIXART_MEM(mgr, tailptr)); retrieve_msg_frame() 71 writel_be(tailptr, MIXART_MEM(mgr, MSG_OUTBOUND_POST_TAIL)); retrieve_msg_frame() 90 size = readl_be(MIXART_MEM(mgr, msg_frame_address)); /* size of descriptor + response */ get_msg() 91 resp->message_id = readl_be(MIXART_MEM(mgr, msg_frame_address + 4)); /* dwMessageID */ get_msg() 92 resp->uid.object_id = readl_be(MIXART_MEM(mgr, msg_frame_address + 8)); /* uidDest */ get_msg() 93 resp->uid.desc = readl_be(MIXART_MEM(mgr, msg_frame_address + 12)); /* */ get_msg() 103 memcpy_fromio(resp->data, MIXART_MEM(mgr, msg_frame_address + MSG_HEADER_SIZE ), size); get_msg() 117 headptr = readl_be(MIXART_MEM(mgr, MSG_OUTBOUND_FREE_HEAD)); get_msg() 125 writel_be(msg_frame_address, MIXART_MEM(mgr, headptr)); get_msg() 132 writel_be(headptr, MIXART_MEM(mgr, MSG_OUTBOUND_FREE_HEAD)); get_msg() 159 tailptr = readl_be(MIXART_MEM(mgr, MSG_INBOUND_FREE_TAIL)); send_msg() 160 headptr = readl_be(MIXART_MEM(mgr, MSG_INBOUND_FREE_HEAD)); send_msg() 171 msg_frame_address = readl_be(MIXART_MEM(mgr, tailptr)); send_msg() 172 writel(0, MIXART_MEM(mgr, tailptr)); /* set address to zero on this fifo position */ send_msg() 179 writel_be(tailptr, MIXART_MEM(mgr, MSG_INBOUND_FREE_TAIL)); send_msg() 184 writel_be( msg->size + MSG_DESCRIPTOR_SIZE, MIXART_MEM(mgr, msg_frame_address) ); /* size of descriptor + request */ send_msg() 185 writel_be( msg->message_id , MIXART_MEM(mgr, msg_frame_address + 4) ); /* dwMessageID */ send_msg() 186 writel_be( msg->uid.object_id, MIXART_MEM(mgr, msg_frame_address + 8) ); /* uidDest */ send_msg() 187 writel_be( msg->uid.desc, MIXART_MEM(mgr, msg_frame_address + 12) ); /* */ send_msg() 188 writel_be( MSG_DESCRIPTOR_SIZE, MIXART_MEM(mgr, msg_frame_address + 16) ); /* SizeHeader */ send_msg() 189 writel_be( MSG_DESCRIPTOR_SIZE, MIXART_MEM(mgr, msg_frame_address + 20) ); /* OffsetDLL_T16 */ send_msg() 190 writel_be( msg->size, MIXART_MEM(mgr, msg_frame_address + 24) ); /* SizeDLL_T16 */ send_msg() 191 writel_be( MSG_DESCRIPTOR_SIZE, MIXART_MEM(mgr, msg_frame_address + 28) ); /* OffsetDLL_DRV */ send_msg() 192 writel_be( 0, MIXART_MEM(mgr, msg_frame_address + 32) ); /* SizeDLL_DRV */ send_msg() 193 writel_be( MSG_DESCRIPTOR_SIZE + max_answersize, MIXART_MEM(mgr, msg_frame_address + 36) ); /* dwExpectedAnswerSize */ send_msg() 197 writel_be( *(u32*)(msg->data + i), MIXART_MEM(mgr, MSG_HEADER_SIZE + msg_frame_address + i) ); send_msg() 218 headptr = readl_be(MIXART_MEM(mgr, MSG_INBOUND_POST_HEAD)); send_msg() 224 writel_be(msg_frame_address, MIXART_MEM(mgr, headptr)); send_msg() 231 writel_be(headptr, MIXART_MEM(mgr, MSG_INBOUND_POST_HEAD)); send_msg() 580 writel( 0, MIXART_MEM( mgr, MSG_HOST_RSC_PROTECTION ) ); snd_mixart_init_mailbox() 581 writel( 0, MIXART_MEM( mgr, MSG_AGENT_RSC_PROTECTION ) ); snd_mixart_init_mailbox()
|
H A D | mixart_hwdep.c | 58 read = readl_be( MIXART_MEM( mgr, offset )); mixart_wait_nice_for_register_value() 123 memcpy_toio( MIXART_MEM( mgr, be32_to_cpu(elf_programheader.p_vaddr)), mixart_load_elf() 352 status_xilinx = readl_be( MIXART_MEM( mgr,MIXART_PSEUDOREG_MXLX_STATUS_OFFSET )); mixart_dsp_load() 354 status_elf = readl_be( MIXART_MEM( mgr,MIXART_PSEUDOREG_ELF_STATUS_OFFSET )); mixart_dsp_load() 356 status_daught = readl_be( MIXART_MEM( mgr,MIXART_PSEUDOREG_DXLX_STATUS_OFFSET )); mixart_dsp_load() 387 writel_be( 1, MIXART_MEM( mgr, MIXART_PSEUDOREG_MXLX_STATUS_OFFSET )); mixart_dsp_load() 390 writel_be( MIXART_MOTHERBOARD_XLX_BASE_ADDRESS, MIXART_MEM( mgr,MIXART_PSEUDOREG_MXLX_BASE_ADDR_OFFSET )); mixart_dsp_load() 392 writel_be( dsp->size, MIXART_MEM( mgr, MIXART_PSEUDOREG_MXLX_SIZE_OFFSET )); mixart_dsp_load() 395 memcpy_toio( MIXART_MEM( mgr, MIXART_MOTHERBOARD_XLX_BASE_ADDRESS), dsp->data, dsp->size); mixart_dsp_load() 398 writel_be( 2, MIXART_MEM( mgr, MIXART_PSEUDOREG_MXLX_STATUS_OFFSET )); mixart_dsp_load() 427 writel_be( 0, MIXART_MEM( mgr, MIXART_PSEUDOREG_BOARDNUMBER ) ); /* set miXart boardnumber to 0 */ mixart_dsp_load() 428 writel_be( 0, MIXART_MEM( mgr, MIXART_FLOWTABLE_PTR ) ); /* reset pointer to flow table on miXart */ mixart_dsp_load() 431 writel_be( 1, MIXART_MEM( mgr, MIXART_PSEUDOREG_ELF_STATUS_OFFSET )); mixart_dsp_load() 438 writel_be( 2, MIXART_MEM( mgr, MIXART_PSEUDOREG_ELF_STATUS_OFFSET )); mixart_dsp_load() 448 writel_be( (u32)mgr->flowinfo.addr, MIXART_MEM( mgr, MIXART_FLOWTABLE_PTR ) ); /* give pointer of flow table to miXart */ mixart_dsp_load() 470 mgr->board_type = (DAUGHTER_TYPE_MASK & readl_be( MIXART_MEM( mgr, MIXART_PSEUDOREG_DBRD_TYPE_OFFSET))); mixart_dsp_load() 494 writel_be( dsp->size, MIXART_MEM( mgr, MIXART_PSEUDOREG_DXLX_SIZE_OFFSET )); mixart_dsp_load() 497 writel_be( 1, MIXART_MEM( mgr, MIXART_PSEUDOREG_DXLX_STATUS_OFFSET )); mixart_dsp_load() 507 val = readl_be( MIXART_MEM( mgr, MIXART_PSEUDOREG_DXLX_BASE_ADDR_OFFSET )); mixart_dsp_load() 512 memcpy_toio( MIXART_MEM( mgr, val), dsp->data, dsp->size); mixart_dsp_load() 515 writel_be( 4, MIXART_MEM( mgr, MIXART_PSEUDOREG_DXLX_STATUS_OFFSET )); mixart_dsp_load()
|
H A D | mixart_hwdep.h | 44 #define MIXART_MEM(mgr,x) ((mgr)->mem[0].virt + (x)) macro
|
H A D | mixart.c | 1153 if (copy_to_user_fromio(buf, MIXART_MEM(mgr, pos), count)) snd_mixart_BA0_read() 1205 ref = readl_be( MIXART_MEM( chip->mgr, MIXART_PSEUDOREG_PERF_SYSTEM_LOAD_OFFSET)); snd_mixart_proc_read() 1208 u32 mailbox = 100 * readl_be( MIXART_MEM( chip->mgr, MIXART_PSEUDOREG_PERF_MAILBX_LOAD_OFFSET)) / ref; snd_mixart_proc_read() 1209 u32 streaming = 100 * readl_be( MIXART_MEM( chip->mgr, MIXART_PSEUDOREG_PERF_STREAM_LOAD_OFFSET)) / ref; snd_mixart_proc_read() 1210 u32 interr = 100 * readl_be( MIXART_MEM( chip->mgr, MIXART_PSEUDOREG_PERF_INTERR_LOAD_OFFSET)) / ref; snd_mixart_proc_read()
|