Lines Matching refs:reg_write
404 static inline void reg_write(const struct fw_ohci *ohci, int offset, u32 data) in reg_write() function
431 reg_write(ohci, OHCI1394_PhyControl, OHCI1394_PhyControl_Read(addr)); in read_phy_reg()
457 reg_write(ohci, OHCI1394_PhyControl, in write_phy_reg()
538 reg_write(ctx->ohci, CONTROL_SET(ctx->regs), CONTEXT_WAKE); in ar_context_link_page()
567 reg_write(ohci, CONTROL_CLEAR(ctx->regs), CONTEXT_RUN); in ar_context_abort()
929 reg_write(ctx->ohci, COMMAND_PTR(ctx->regs), ctx->descriptors_bus | 1); in ar_context_run()
930 reg_write(ctx->ohci, CONTROL_SET(ctx->regs), CONTEXT_RUN); in ar_context_run()
1118 reg_write(ohci, COMMAND_PTR(ctx->regs), in context_run()
1120 reg_write(ohci, CONTROL_CLEAR(ctx->regs), ~0); in context_run()
1121 reg_write(ohci, CONTROL_SET(ctx->regs), CONTEXT_RUN | extra); in context_run()
1168 reg_write(ohci, CONTROL_CLEAR(ctx->regs), CONTEXT_RUN); in context_stop()
1324 reg_write(ohci, CONTROL_SET(context->regs), CONTEXT_WAKE); in at_context_queue_packet()
1513 reg_write(ohci, OHCI1394_CSRData, lock_data); in handle_local_lock()
1514 reg_write(ohci, OHCI1394_CSRCompareData, lock_arg); in handle_local_lock()
1515 reg_write(ohci, OHCI1394_CSRControl, sel); in handle_local_lock()
1727 reg_write(ohci, OHCI1394_IntMaskSet, OHCI1394_cycle64Seconds); in update_bus_time()
1907 reg_write(ohci, OHCI1394_LinkControlSet, in handle_selfid_complete_event()
2014 reg_write(ohci, OHCI1394_IntEventClear, OHCI1394_busReset); in handle_selfid_complete_event()
2015 reg_write(ohci, OHCI1394_IntMaskSet, OHCI1394_busReset); in handle_selfid_complete_event()
2037 reg_write(ohci, OHCI1394_BusOptions, be32_to_cpu(ohci->config_rom[2])); in handle_selfid_complete_event()
2039 reg_write(ohci, OHCI1394_ConfigROMhdr, be32_to_cpu(ohci->next_header)); in handle_selfid_complete_event()
2043 reg_write(ohci, OHCI1394_PhyReqFilterHiSet, ~0); in handle_selfid_complete_event()
2044 reg_write(ohci, OHCI1394_PhyReqFilterLoSet, ~0); in handle_selfid_complete_event()
2074 reg_write(ohci, OHCI1394_IntEventClear, in irq_handler()
2080 reg_write(ohci, OHCI1394_IntMaskClear, OHCI1394_busReset); in irq_handler()
2096 reg_write(ohci, OHCI1394_IsoRecvIntEventClear, iso_event); in irq_handler()
2107 reg_write(ohci, OHCI1394_IsoXmitIntEventClear, iso_event); in irq_handler()
2122 reg_write(ohci, OHCI1394_IntEventClear, in irq_handler()
2129 reg_write(ohci, OHCI1394_LinkControlSet, in irq_handler()
2163 reg_write(ohci, OHCI1394_HCControlSet, OHCI1394_HCControl_softReset); in software_reset()
2229 reg_write(ohci, offset, OHCI1394_HCControl_aPhyEnhanceEnable); in configure_1394a_enhancements()
2232 reg_write(ohci, OHCI1394_HCControlClear, in configure_1394a_enhancements()
2286 reg_write(ohci, OHCI1394_HCControlSet, in ohci_enable()
2312 reg_write(ohci, OHCI1394_HCControlClear, in ohci_enable()
2315 reg_write(ohci, OHCI1394_SelfIDBuffer, ohci->self_id_bus); in ohci_enable()
2316 reg_write(ohci, OHCI1394_LinkControlSet, in ohci_enable()
2320 reg_write(ohci, OHCI1394_ATRetries, in ohci_enable()
2330 reg_write(ohci, OHCI1394_IsoRcvContextControlClear(i), in ohci_enable()
2335 reg_write(ohci, OHCI1394_InitialChannelsAvailableHi, in ohci_enable()
2341 reg_write(ohci, OHCI1394_FairnessControl, 0x3f); in ohci_enable()
2343 reg_write(ohci, OHCI1394_FairnessControl, 0); in ohci_enable()
2346 reg_write(ohci, OHCI1394_PhyUpperBound, FW_MAX_PHYSICAL_RANGE >> 16); in ohci_enable()
2347 reg_write(ohci, OHCI1394_IntEventClear, ~0); in ohci_enable()
2348 reg_write(ohci, OHCI1394_IntMaskClear, ~0); in ohci_enable()
2396 reg_write(ohci, OHCI1394_ConfigROMhdr, 0); in ohci_enable()
2397 reg_write(ohci, OHCI1394_BusOptions, in ohci_enable()
2399 reg_write(ohci, OHCI1394_ConfigROMmap, ohci->next_config_rom_bus); in ohci_enable()
2401 reg_write(ohci, OHCI1394_AsReqFilterHiSet, 0x80000000); in ohci_enable()
2414 reg_write(ohci, OHCI1394_IntMaskSet, irqs); in ohci_enable()
2416 reg_write(ohci, OHCI1394_HCControlSet, in ohci_enable()
2420 reg_write(ohci, OHCI1394_LinkControlSet, in ohci_enable()
2446 reg_write(ohci, OHCI1394_IntMaskClear, ~0); in ohci_disable()
2529 reg_write(ohci, OHCI1394_ConfigROMmap, ohci->next_config_rom_bus); in ohci_set_config_rom()
2624 reg_write(ohci, OHCI1394_PhyReqFilterLoSet, 1 << n); in ohci_enable_phys_dma()
2626 reg_write(ohci, OHCI1394_PhyReqFilterHiSet, 1 << (n - 32)); in ohci_enable_phys_dma()
2688 reg_write(ohci, OHCI1394_LinkControlClear, in ohci_write_csr()
2698 reg_write(ohci, OHCI1394_LinkControlSet, in ohci_write_csr()
2707 reg_write(ohci, OHCI1394_NodeID, value >> 16); in ohci_write_csr()
2712 reg_write(ohci, OHCI1394_IsochronousCycleTimer, value); in ohci_write_csr()
2713 reg_write(ohci, OHCI1394_IntEventSet, in ohci_write_csr()
2727 reg_write(ohci, OHCI1394_ATRetries, value); in ohci_write_csr()
2732 reg_write(ohci, OHCI1394_FairnessControl, value & 0x3f); in ohci_write_csr()
2950 reg_write(ohci, OHCI1394_IRMultiChanMaskHiClear, ~hi); in set_multichannel_mask()
2951 reg_write(ohci, OHCI1394_IRMultiChanMaskLoClear, ~lo); in set_multichannel_mask()
2952 reg_write(ohci, OHCI1394_IRMultiChanMaskHiSet, hi); in set_multichannel_mask()
2953 reg_write(ohci, OHCI1394_IRMultiChanMaskLoSet, lo); in set_multichannel_mask()
3076 reg_write(ohci, OHCI1394_IsoXmitIntEventClear, 1 << index); in ohci_start_iso()
3077 reg_write(ohci, OHCI1394_IsoXmitIntMaskSet, 1 << index); in ohci_start_iso()
3092 reg_write(ohci, OHCI1394_IsoRecvIntEventClear, 1 << index); in ohci_start_iso()
3093 reg_write(ohci, OHCI1394_IsoRecvIntMaskSet, 1 << index); in ohci_start_iso()
3094 reg_write(ohci, CONTEXT_MATCH(ctx->context.regs), match); in ohci_start_iso()
3115 reg_write(ohci, OHCI1394_IsoXmitIntMaskClear, 1 << index); in ohci_stop_iso()
3121 reg_write(ohci, OHCI1394_IsoRecvIntMaskClear, 1 << index); in ohci_stop_iso()
3476 reg_write(ctx->ohci, CONTROL_SET(ctx->regs), CONTEXT_WAKE); in ohci_flush_queue_iso()
3667 reg_write(ohci, OHCI1394_IsoRecvIntMaskSet, ~0); in pci_probe()
3670 reg_write(ohci, OHCI1394_IsoRecvIntMaskClear, ~0); in pci_probe()
3677 reg_write(ohci, OHCI1394_IsoXmitIntMaskSet, ~0); in pci_probe()
3684 reg_write(ohci, OHCI1394_IsoXmitIntMaskClear, ~0); in pci_probe()
3785 reg_write(ohci, OHCI1394_GUIDLo, (u32)ohci->card.guid); in pci_resume()
3786 reg_write(ohci, OHCI1394_GUIDHi, (u32)(ohci->card.guid >> 32)); in pci_resume()