Lines Matching refs:phw
234 struct hpi_hw_obj *phw = pao->priv; in control_message() local
253 if (hpi_check_control_cache(phw->p_cache, phm, phr)) in control_message()
260 hpi_cmn_control_cache_sync_to_msg(phw->p_cache, phm, phr); in control_message()
453 struct hpi_hw_obj *phw = pao->priv; in subsys_create_adapter() local
454 phw->ado[dsp_index].pa_parent_adapter = pao; in subsys_create_adapter()
478 struct hpi_hw_obj *phw = pao->priv; in create_adapter_obj() local
483 phw->dw2040_HPICSR = pao->pci.ap_mem_base[0]; in create_adapter_obj()
484 phw->dw2040_HPIDSP = pao->pci.ap_mem_base[1]; in create_adapter_obj()
485 HPI_DEBUG_LOG(VERBOSE, "csr %p, dsp %p\n", phw->dw2040_HPICSR, in create_adapter_obj()
486 phw->dw2040_HPIDSP); in create_adapter_obj()
490 phw->ado[dsp_index].prHPI_control = in create_adapter_obj()
491 phw->dw2040_HPIDSP + (CONTROL + in create_adapter_obj()
494 phw->ado[dsp_index].prHPI_address = in create_adapter_obj()
495 phw->dw2040_HPIDSP + (ADDRESS + in create_adapter_obj()
497 phw->ado[dsp_index].prHPI_data = in create_adapter_obj()
498 phw->dw2040_HPIDSP + (DATA + DSP_SPACING * dsp_index); in create_adapter_obj()
500 phw->ado[dsp_index].prHPI_data_auto_inc = in create_adapter_obj()
501 phw->dw2040_HPIDSP + (DATA_AUTOINC + in create_adapter_obj()
505 phw->ado[dsp_index].prHPI_control, in create_adapter_obj()
506 phw->ado[dsp_index].prHPI_address, in create_adapter_obj()
507 phw->ado[dsp_index].prHPI_data, in create_adapter_obj()
508 phw->ado[dsp_index].prHPI_data_auto_inc); in create_adapter_obj()
510 phw->ado[dsp_index].pa_parent_adapter = pao; in create_adapter_obj()
513 phw->pCI2040HPI_error_count = 0; in create_adapter_obj()
519 phw->num_dsp = 1; in create_adapter_obj()
527 phw->message_buffer_address_on_dsp = 0L; in create_adapter_obj()
528 phw->response_buffer_address_on_dsp = 0L; in create_adapter_obj()
555 if (phw->num_dsp == 2) { in create_adapter_obj()
565 memset(&phw->control_cache[0], 0, in create_adapter_obj()
570 hpi_read_word(&phw->ado[0], in create_adapter_obj()
574 hpi_read_word(&phw->ado[0], in create_adapter_obj()
577 phw->p_cache = in create_adapter_obj()
580 &phw->control_cache[0] in create_adapter_obj()
582 if (phw->p_cache) in create_adapter_obj()
589 if (phw->p_cache) in create_adapter_obj()
590 phw->p_cache->adap_idx = pao->index; in create_adapter_obj()
597 struct hpi_hw_obj *phw = pao->priv; in delete_adapter_obj() local
600 hpi_free_control_cache(phw->p_cache); in delete_adapter_obj()
603 iowrite32(0x0003000F, phw->dw2040_HPICSR + HPI_RESET); in delete_adapter_obj()
605 kfree(phw); in delete_adapter_obj()
640 struct hpi_hw_obj *phw = pao->priv; in hpi6000_adapter_boot_load_dsp() local
677 iowrite32(dw2040_reset, phw->dw2040_HPICSR + HPI_RESET); in hpi6000_adapter_boot_load_dsp()
684 delay = ioread32(phw->dw2040_HPICSR + HPI_RESET); in hpi6000_adapter_boot_load_dsp()
693 iowrite32(0x00000003, phw->dw2040_HPICSR + HPI_DATA_WIDTH); in hpi6000_adapter_boot_load_dsp()
697 iowrite32(0x60000000, phw->dw2040_HPICSR + INTERRUPT_MASK_SET); in hpi6000_adapter_boot_load_dsp()
703 iowrite32(dw2040_reset, phw->dw2040_HPICSR + HPI_RESET); in hpi6000_adapter_boot_load_dsp()
705 phw->ado[0].c_dsp_rev = 'B'; /* revB */ in hpi6000_adapter_boot_load_dsp()
706 phw->ado[1].c_dsp_rev = 'B'; /* revB */ in hpi6000_adapter_boot_load_dsp()
710 iowrite32(dw2040_reset, phw->dw2040_HPICSR + HPI_RESET); in hpi6000_adapter_boot_load_dsp()
712 iowrite32(dw2040_reset, phw->dw2040_HPICSR + HPI_RESET); in hpi6000_adapter_boot_load_dsp()
716 iowrite32(dw2040_reset, phw->dw2040_HPICSR + HPI_RESET); in hpi6000_adapter_boot_load_dsp()
721 for (dsp_index = 0; dsp_index < phw->num_dsp; dsp_index++) { in hpi6000_adapter_boot_load_dsp()
722 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_adapter_boot_load_dsp()
1088 phw->num_dsp = 2; in hpi6000_adapter_boot_load_dsp()
1221 struct hpi_hw_obj *phw = pao->priv; in hpi6000_dsp_block_write32() local
1222 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_dsp_block_write32()
1259 struct hpi_hw_obj *phw = pao->priv; in hpi6000_dsp_block_read32() local
1260 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_dsp_block_read32()
1299 struct hpi_hw_obj *phw = pao->priv; in hpi6000_message_response_sequence() local
1300 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_message_response_sequence()
1316 if (phw->message_buffer_address_on_dsp == 0) { in hpi6000_message_response_sequence()
1322 phw->message_buffer_address_on_dsp = address; in hpi6000_message_response_sequence()
1328 address = phw->message_buffer_address_on_dsp; in hpi6000_message_response_sequence()
1347 if (phw->response_buffer_address_on_dsp == 0) { in hpi6000_message_response_sequence()
1355 phw->response_buffer_address_on_dsp = address; in hpi6000_message_response_sequence()
1360 address = phw->response_buffer_address_on_dsp; in hpi6000_message_response_sequence()
1415 struct hpi_hw_obj *phw = pao->priv; in hpi6000_send_data() local
1416 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_send_data()
1488 struct hpi_hw_obj *phw = pao->priv; in hpi6000_get_data() local
1489 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_get_data()
1552 struct hpi_hw_obj *phw = pao->priv; in hpi6000_send_host_command() local
1553 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_send_host_command()
1578 struct hpi_hw_obj *phw = pao->priv; in hpi6000_check_PCI2040_error_flag() local
1581 hPI_error = ioread32(phw->dw2040_HPICSR + HPI_ERROR_REPORT); in hpi6000_check_PCI2040_error_flag()
1584 iowrite32(0L, phw->dw2040_HPICSR + HPI_ERROR_REPORT); in hpi6000_check_PCI2040_error_flag()
1585 phw->pCI2040HPI_error_count++; in hpi6000_check_PCI2040_error_flag()
1598 struct hpi_hw_obj *phw = pao->priv; in hpi6000_wait_dsp_ack() local
1599 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_wait_dsp_ack()
1641 struct hpi_hw_obj *phw = pao->priv; in hpi6000_update_control_cache() local
1642 struct dsp_obj *pdo = &phw->ado[dsp_index]; in hpi6000_update_control_cache()
1689 (u32 *)&phw->control_cache[0], in hpi6000_update_control_cache()
1741 struct hpi_hw_obj *phw = pao->priv; in hw_message() local
1742 u16 num_dsp = phw->num_dsp; in hw_message()