• Home
  • Raw
  • Download

Lines Matching refs:motu

15 int snd_motu_transaction_read(struct snd_motu *motu, u32 offset, __be32 *reg,  in snd_motu_transaction_read()  argument
27 return snd_fw_transaction(motu->unit, tcode, in snd_motu_transaction_read()
31 int snd_motu_transaction_write(struct snd_motu *motu, u32 offset, __be32 *reg, in snd_motu_transaction_write() argument
43 return snd_fw_transaction(motu->unit, tcode, in snd_motu_transaction_write()
52 struct snd_motu *motu = callback_data; in handle_message() local
61 if (offset != motu->async_handler.offset || length != 4) { in handle_message()
66 spin_lock_irqsave(&motu->lock, flags); in handle_message()
67 motu->msg = be32_to_cpu(*buf); in handle_message()
68 spin_unlock_irqrestore(&motu->lock, flags); in handle_message()
72 wake_up(&motu->hwdep_wait); in handle_message()
75 int snd_motu_transaction_reregister(struct snd_motu *motu) in snd_motu_transaction_reregister() argument
77 struct fw_device *device = fw_parent_device(motu->unit); in snd_motu_transaction_reregister()
81 if (motu->async_handler.callback_data == NULL) in snd_motu_transaction_reregister()
86 (motu->async_handler.offset >> 32)); in snd_motu_transaction_reregister()
87 err = snd_motu_transaction_write(motu, ASYNC_ADDR_HI, &data, in snd_motu_transaction_reregister()
92 data = cpu_to_be32(motu->async_handler.offset); in snd_motu_transaction_reregister()
93 return snd_motu_transaction_write(motu, ASYNC_ADDR_LO, &data, in snd_motu_transaction_reregister()
97 int snd_motu_transaction_register(struct snd_motu *motu) in snd_motu_transaction_register() argument
106 motu->async_handler.length = 4; in snd_motu_transaction_register()
107 motu->async_handler.address_callback = handle_message; in snd_motu_transaction_register()
108 motu->async_handler.callback_data = motu; in snd_motu_transaction_register()
110 err = fw_core_add_address_handler(&motu->async_handler, in snd_motu_transaction_register()
115 err = snd_motu_transaction_reregister(motu); in snd_motu_transaction_register()
117 fw_core_remove_address_handler(&motu->async_handler); in snd_motu_transaction_register()
118 motu->async_handler.address_callback = NULL; in snd_motu_transaction_register()
124 void snd_motu_transaction_unregister(struct snd_motu *motu) in snd_motu_transaction_unregister() argument
128 if (motu->async_handler.address_callback != NULL) in snd_motu_transaction_unregister()
129 fw_core_remove_address_handler(&motu->async_handler); in snd_motu_transaction_unregister()
130 motu->async_handler.address_callback = NULL; in snd_motu_transaction_unregister()
134 snd_motu_transaction_write(motu, ASYNC_ADDR_HI, &data, sizeof(data)); in snd_motu_transaction_unregister()
135 snd_motu_transaction_write(motu, ASYNC_ADDR_LO, &data, sizeof(data)); in snd_motu_transaction_unregister()