Lines Matching defs:phbbmu

364 			struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu;
366 intmask_org = READ_CHIP_REG32(0, phbbmu->iop2drv_doorbell_mask)
368 WRITE_CHIP_REG32(0, phbbmu->iop2drv_doorbell_mask, 0); /* disable all interrupt */
409 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu;
412 WRITE_CHIP_REG32(0, phbbmu->iop2drv_doorbell_mask, intmask_org | mask); /*1=interrupt enable, 0=interrupt disable*/
468 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu;
472 if(READ_CHIP_REG32(0, phbbmu->iop2drv_doorbell) & ARCMSR_IOP2DRV_MESSAGE_CMD_DONE) {
473 WRITE_CHIP_REG32(0, phbbmu->iop2drv_doorbell, ARCMSR_MESSAGE_INT_CLEAR_PATTERN);/*clear interrupt*/
474 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_DRV2IOP_END_OF_INTERRUPT);
568 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu;
570 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_MESSAGE_FLUSH_CACHE);
747 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu;
748 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_MESSAGE_ABORT_CMD);
996 struct HBB_MessageUnit *phbbmu=(struct HBB_MessageUnit *)acb->pmu;
999 WRITE_CHIP_REG32(0, phbbmu->iop2drv_doorbell, ARCMSR_DOORBELL_INT_CLEAR_PATTERN); /* clear doorbell interrupt */
1001 if((flag_srb = phbbmu->done_qbuffer[i]) != 0) {
1002 phbbmu->done_qbuffer[i] = 0;
1006 phbbmu->post_qbuffer[i] = 0;
1008 phbbmu->doneq_index = 0;
1009 phbbmu->postq_index = 0;
1178 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu;
1181 index = phbbmu->postq_index;
1183 phbbmu->post_qbuffer[ending_index] = 0;
1185 phbbmu->post_qbuffer[index] = cdb_phyaddr_low | ARCMSR_SRBPOST_FLAG_SGL_BSIZE;
1187 phbbmu->post_qbuffer[index] = cdb_phyaddr_low;
1191 phbbmu->postq_index = index;
1192 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_DRV2IOP_CDB_POSTED);
1267 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu;
1269 qbuffer = (struct QBUFFER *)&phbbmu->hbb_rwbuffer->message_rbuffer;
1309 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu;
1311 qbuffer = (struct QBUFFER *)&phbbmu->hbb_rwbuffer->message_wbuffer;
1348 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu;
1350 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_DRV2IOP_DATA_READ_OK);
1387 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu;
1392 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_DRV2IOP_DATA_WRITE_OK);
1442 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu;
1444 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_MESSAGE_STOP_BGRB);
1909 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu;
1912 WRITE_CHIP_REG32(0, phbbmu->iop2drv_doorbell, ARCMSR_MESSAGE_INT_CLEAR_PATTERN);
2095 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu;
2107 index = phbbmu->doneq_index;
2108 while((flag_srb = phbbmu->done_qbuffer[index]) != 0) {
2109 phbbmu->done_qbuffer[index] = 0;
2112 phbbmu->doneq_index = index;
2271 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu;
2277 outbound_doorbell = READ_CHIP_REG32(0, phbbmu->iop2drv_doorbell) & acb->outbound_int_enable;
2282 WRITE_CHIP_REG32(0, phbbmu->iop2drv_doorbell, ~outbound_doorbell); /* clear doorbell interrupt */
2283 READ_CHIP_REG32(0, phbbmu->iop2drv_doorbell);
2284 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_DRV2IOP_END_OF_INTERRUPT);
2448 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu;
2449 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_MESSAGE_GET_CONFIG);
3378 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu;
3380 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_MESSAGE_START_BGRB);
3509 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu;
3517 WRITE_CHIP_REG32(0, phbbmu->iop2drv_doorbell, ARCMSR_DOORBELL_INT_CLEAR_PATTERN); /* clear doorbell interrupt */
3520 index = phbbmu->doneq_index;
3521 if((flag_srb = phbbmu->done_qbuffer[index]) == 0) {
3532 phbbmu->done_qbuffer[index] = 0;
3535 phbbmu->doneq_index = index;
3806 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu;
3815 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_MESSAGE_GET_CONFIG);
4054 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu;
4055 while ((READ_CHIP_REG32(0, phbbmu->iop2drv_doorbell) & ARCMSR_MESSAGE_FIRMWARE_OK) == 0)
4064 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_DRV2IOP_END_OF_INTERRUPT);
4122 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu;
4123 WRITE_CHIP_REG32(0, phbbmu->iop2drv_doorbell, ARCMSR_DOORBELL_INT_CLEAR_PATTERN);/*clear interrupt and message state*/
4124 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_DRV2IOP_DATA_READ_OK);
4193 struct HBB_MessageUnit *phbbmu;
4195 phbbmu = (struct HBB_MessageUnit *)acb->pmu;
4196 phbbmu->postq_index = 0;
4197 phbbmu->doneq_index = 0;
4198 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_MESSAGE_SET_POST_WINDOW);
4210 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_MESSAGE_SET_CONFIG);
4215 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_MESSAGE_START_DRIVER_MODE);
4290 struct HBB_MessageUnit *phbbmu = (struct HBB_MessageUnit *)acb->pmu;
4291 WRITE_CHIP_REG32(0, phbbmu->drv2iop_doorbell, ARCMSR_MESSAGE_ACTIVE_EOI_MODE);
4607 struct HBB_MessageUnit *phbbmu;
4634 phbbmu = (struct HBB_MessageUnit *)acb->pmu;
4635 phbbmu->hbb_doorbell = (struct HBB_DOORBELL *)mem_base[0];
4636 phbbmu->hbb_rwbuffer = (struct HBB_RWBUFFER *)mem_base[1];
4638 phbbmu->drv2iop_doorbell = offsetof(struct HBB_DOORBELL_1203, drv2iop_doorbell);
4639 phbbmu->drv2iop_doorbell_mask = offsetof(struct HBB_DOORBELL_1203, drv2iop_doorbell_mask);
4640 phbbmu->iop2drv_doorbell = offsetof(struct HBB_DOORBELL_1203, iop2drv_doorbell);
4641 phbbmu->iop2drv_doorbell_mask = offsetof(struct HBB_DOORBELL_1203, iop2drv_doorbell_mask);
4643 phbbmu->drv2iop_doorbell = offsetof(struct HBB_DOORBELL, drv2iop_doorbell);
4644 phbbmu->drv2iop_doorbell_mask = offsetof(struct HBB_DOORBELL, drv2iop_doorbell_mask);
4645 phbbmu->iop2drv_doorbell = offsetof(struct HBB_DOORBELL, iop2drv_doorbell);
4646 phbbmu->iop2drv_doorbell_mask = offsetof(struct HBB_DOORBELL, iop2drv_doorbell_mask);