Lines Matching refs:phbbmu

279 			struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu;  in arcmsr_disable_allintr()  local
281 intmask_org = READ_CHIP_REG32(0, phbbmu->iop2drv_doorbell_mask) in arcmsr_disable_allintr()
283 WRITE_CHIP_REG32(0, phbbmu->iop2drv_doorbell_mask, 0); /* disable all interrupt */ in arcmsr_disable_allintr()
325 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu; in arcmsr_enable_allintr() local
328 …WRITE_CHIP_REG32(0, phbbmu->iop2drv_doorbell_mask, intmask_org | mask); /*1=interrupt enable, 0=in… in arcmsr_enable_allintr()
385 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu; in arcmsr_hbb_wait_msgint_ready() local
389 if(READ_CHIP_REG32(0, phbbmu->iop2drv_doorbell) & ARCMSR_IOP2DRV_MESSAGE_CMD_DONE) { in arcmsr_hbb_wait_msgint_ready()
390 …WRITE_CHIP_REG32(0, phbbmu->iop2drv_doorbell, ARCMSR_MESSAGE_INT_CLEAR_PATTERN);/*clear interrupt*/ in arcmsr_hbb_wait_msgint_ready()
391 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_DRV2IOP_END_OF_INTERRUPT); in arcmsr_hbb_wait_msgint_ready()
485 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu; in arcmsr_flush_hbb_cache() local
487 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_MESSAGE_FLUSH_CACHE); in arcmsr_flush_hbb_cache()
660 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu; in arcmsr_abort_hbb_allcmd() local
661 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_MESSAGE_ABORT_CMD); in arcmsr_abort_hbb_allcmd()
911 struct HBB_MessageUnit *phbbmu=(struct HBB_MessageUnit *)acb->pmu; in arcmsr_done4abort_postqueue() local
914 …WRITE_CHIP_REG32(0, phbbmu->iop2drv_doorbell, ARCMSR_DOORBELL_INT_CLEAR_PATTERN); /* clear doorbel… in arcmsr_done4abort_postqueue()
916 if((flag_srb = phbbmu->done_qbuffer[i]) != 0) { in arcmsr_done4abort_postqueue()
917 phbbmu->done_qbuffer[i] = 0; in arcmsr_done4abort_postqueue()
921 phbbmu->post_qbuffer[i] = 0; in arcmsr_done4abort_postqueue()
923 phbbmu->doneq_index = 0; in arcmsr_done4abort_postqueue()
924 phbbmu->postq_index = 0; in arcmsr_done4abort_postqueue()
1093 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu; in arcmsr_post_srb() local
1096 index = phbbmu->postq_index; in arcmsr_post_srb()
1098 phbbmu->post_qbuffer[ending_index] = 0; in arcmsr_post_srb()
1100 phbbmu->post_qbuffer[index] = cdb_phyaddr_low | ARCMSR_SRBPOST_FLAG_SGL_BSIZE; in arcmsr_post_srb()
1102 phbbmu->post_qbuffer[index] = cdb_phyaddr_low; in arcmsr_post_srb()
1106 phbbmu->postq_index = index; in arcmsr_post_srb()
1107 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_DRV2IOP_CDB_POSTED); in arcmsr_post_srb()
1198 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu; in arcmsr_get_iop_rqbuffer() local
1200 qbuffer = (struct QBUFFER *)&phbbmu->hbb_rwbuffer->message_rbuffer; in arcmsr_get_iop_rqbuffer()
1243 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu; in arcmsr_get_iop_wqbuffer() local
1245 qbuffer = (struct QBUFFER *)&phbbmu->hbb_rwbuffer->message_wbuffer; in arcmsr_get_iop_wqbuffer()
1285 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu; in arcmsr_iop_message_read() local
1287 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_DRV2IOP_DATA_READ_OK); in arcmsr_iop_message_read()
1325 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu; in arcmsr_iop_message_wrote() local
1330 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_DRV2IOP_DATA_WRITE_OK); in arcmsr_iop_message_wrote()
1381 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu; in arcmsr_stop_hbb_bgrb() local
1383 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_MESSAGE_STOP_BGRB); in arcmsr_stop_hbb_bgrb()
1856 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu; in arcmsr_hbb_message_isr() local
1859 WRITE_CHIP_REG32(0, phbbmu->iop2drv_doorbell, ARCMSR_MESSAGE_INT_CLEAR_PATTERN); in arcmsr_hbb_message_isr()
2078 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu; in arcmsr_hbb_postqueue_isr() local
2090 index = phbbmu->doneq_index; in arcmsr_hbb_postqueue_isr()
2091 while((flag_srb = phbbmu->done_qbuffer[index]) != 0) { in arcmsr_hbb_postqueue_isr()
2092 phbbmu->done_qbuffer[index] = 0; in arcmsr_hbb_postqueue_isr()
2095 phbbmu->doneq_index = index; in arcmsr_hbb_postqueue_isr()
2283 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu; in arcmsr_handle_hbb_isr() local
2289 outbound_doorbell = READ_CHIP_REG32(0, phbbmu->iop2drv_doorbell) & acb->outbound_int_enable; in arcmsr_handle_hbb_isr()
2294 WRITE_CHIP_REG32(0, phbbmu->iop2drv_doorbell, ~outbound_doorbell); /* clear doorbell interrupt */ in arcmsr_handle_hbb_isr()
2295 READ_CHIP_REG32(0, phbbmu->iop2drv_doorbell); in arcmsr_handle_hbb_isr()
2296 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_DRV2IOP_END_OF_INTERRUPT); in arcmsr_handle_hbb_isr()
2491 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu; in arcmsr_polling_devmap() local
2492 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_MESSAGE_GET_CONFIG); in arcmsr_polling_devmap()
3386 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu; in arcmsr_start_hbb_bgrb() local
3388 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_MESSAGE_START_BGRB); in arcmsr_start_hbb_bgrb()
3518 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu; in arcmsr_polling_hbb_srbdone() local
3526 …WRITE_CHIP_REG32(0, phbbmu->iop2drv_doorbell, ARCMSR_DOORBELL_INT_CLEAR_PATTERN); /* clear doorbel… in arcmsr_polling_hbb_srbdone()
3529 index = phbbmu->doneq_index; in arcmsr_polling_hbb_srbdone()
3530 if((flag_srb = phbbmu->done_qbuffer[index]) == 0) { in arcmsr_polling_hbb_srbdone()
3541 phbbmu->done_qbuffer[index] = 0; in arcmsr_polling_hbb_srbdone()
3544 phbbmu->doneq_index = index; in arcmsr_polling_hbb_srbdone()
3811 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu; in arcmsr_get_hbb_config() local
3820 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_MESSAGE_GET_CONFIG); in arcmsr_get_hbb_config()
4112 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu; in arcmsr_wait_firmware_ready() local
4113 while ((READ_CHIP_REG32(0, phbbmu->iop2drv_doorbell) & ARCMSR_MESSAGE_FIRMWARE_OK) == 0) in arcmsr_wait_firmware_ready()
4122 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_DRV2IOP_END_OF_INTERRUPT); in arcmsr_wait_firmware_ready()
4181 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu; in arcmsr_clear_doorbell_queue_buffer() local
4182 …WRITE_CHIP_REG32(0, phbbmu->iop2drv_doorbell, ARCMSR_DOORBELL_INT_CLEAR_PATTERN);/*clear interrupt… in arcmsr_clear_doorbell_queue_buffer()
4183 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_DRV2IOP_DATA_READ_OK); in arcmsr_clear_doorbell_queue_buffer()
4253 struct HBB_MessageUnit *phbbmu; in arcmsr_iop_confirm() local
4255 phbbmu = (struct HBB_MessageUnit *)acb->pmu; in arcmsr_iop_confirm()
4256 phbbmu->postq_index = 0; in arcmsr_iop_confirm()
4257 phbbmu->doneq_index = 0; in arcmsr_iop_confirm()
4258 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_MESSAGE_SET_POST_WINDOW); in arcmsr_iop_confirm()
4270 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_MESSAGE_SET_CONFIG); in arcmsr_iop_confirm()
4275 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_MESSAGE_START_DRIVER_MODE); in arcmsr_iop_confirm()
4377 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu; in arcmsr_enable_eoi_mode() local
4378 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_MESSAGE_ACTIVE_EOI_MODE); in arcmsr_enable_eoi_mode()
4445 struct HBB_MessageUnit *phbbmu; in arcmsr_map_free_srb() local
4448 phbbmu = (struct HBB_MessageUnit *)acb->pmu; in arcmsr_map_free_srb()
4449 phbbmu->hbb_doorbell = (struct HBB_DOORBELL *)acb->mem_base0; in arcmsr_map_free_srb()
4450 phbbmu->hbb_rwbuffer = (struct HBB_RWBUFFER *)acb->mem_base1; in arcmsr_map_free_srb()
4452 phbbmu->drv2iop_doorbell = offsetof(struct HBB_DOORBELL_1203, drv2iop_doorbell); in arcmsr_map_free_srb()
4453 phbbmu->drv2iop_doorbell_mask = offsetof(struct HBB_DOORBELL_1203, drv2iop_doorbell_mask); in arcmsr_map_free_srb()
4454 phbbmu->iop2drv_doorbell = offsetof(struct HBB_DOORBELL_1203, iop2drv_doorbell); in arcmsr_map_free_srb()
4455 phbbmu->iop2drv_doorbell_mask = offsetof(struct HBB_DOORBELL_1203, iop2drv_doorbell_mask); in arcmsr_map_free_srb()
4457 phbbmu->drv2iop_doorbell = offsetof(struct HBB_DOORBELL, drv2iop_doorbell); in arcmsr_map_free_srb()
4458 phbbmu->drv2iop_doorbell_mask = offsetof(struct HBB_DOORBELL, drv2iop_doorbell_mask); in arcmsr_map_free_srb()
4459 phbbmu->iop2drv_doorbell = offsetof(struct HBB_DOORBELL, iop2drv_doorbell); in arcmsr_map_free_srb()
4460 phbbmu->iop2drv_doorbell_mask = offsetof(struct HBB_DOORBELL, iop2drv_doorbell_mask); in arcmsr_map_free_srb()