Home
last modified time | relevance | path

Searched refs:transaction (Results 1 – 25 of 166) sorted by relevance

1234567

/linux/fs/jbd2/
H A Dcheckpoint.c26 * Unlink a buffer from a transaction checkpoint list.
32 transaction_t *transaction = jh->b_cp_transaction; in __buffer_unlink() local
36 if (transaction->t_checkpoint_list == jh) { in __buffer_unlink()
37 transaction->t_checkpoint_list = jh->b_cpnext; in __buffer_unlink()
38 if (transaction->t_checkpoint_list == jh) in __buffer_unlink()
39 transaction->t_checkpoint_list = NULL; in __buffer_unlink()
67 * transaction to complete. If there is absolutely no way in __jbd2_log_wait_for_space()
147 * Perform an actual checkpoint. We take the first transaction on the
158 transaction_t *transaction; in jbd2_log_do_checkpoint() local
176 * OK, we need to start writing disk blocks. Take one transaction in jbd2_log_do_checkpoint()
426 transaction_t *transaction, *last_transaction, *next_transaction; jbd2_journal_shrink_checkpoint_list() local
506 transaction_t *transaction, *last_transaction, *next_transaction; __jbd2_journal_clean_checkpoint_list() local
582 transaction_t *transaction; __jbd2_journal_remove_checkpoint() local
672 __jbd2_journal_insert_checkpoint(struct journal_head * jh,transaction_t * transaction) __jbd2_journal_insert_checkpoint() argument
704 __jbd2_journal_drop_transaction(journal_t * journal,transaction_t * transaction) __jbd2_journal_drop_transaction() argument
[all...]
H A Dtransaction.c58 void jbd2_journal_free_transaction(transaction_t *transaction) in jbd2_journal_free_transaction() argument
60 if (unlikely(ZERO_OR_NULL_PTR(transaction))) in jbd2_journal_free_transaction()
62 kmem_cache_free(transaction_cache, transaction); in jbd2_journal_free_transaction()
81 transaction_t *transaction) in jbd2_get_transaction() argument
83 transaction->t_journal = journal; in jbd2_get_transaction()
84 transaction->t_state = T_RUNNING; in jbd2_get_transaction()
85 transaction->t_start_time = ktime_get(); in jbd2_get_transaction()
86 transaction->t_tid = journal->j_transaction_sequence++; in jbd2_get_transaction()
87 transaction->t_expires = jiffies + journal->j_commit_interval; in jbd2_get_transaction()
88 atomic_set(&transaction->t_updates, 0); in jbd2_get_transaction()
[all …]
H A Djournal.c162 transaction_t *transaction; in kjournald2() local
179 * transaction commit and any fs involvement might get stuck waiting for in kjournald2()
225 transaction = journal->j_running_transaction; in kjournald2()
226 if (transaction == NULL || in kjournald2()
227 time_before(jiffies, transaction->t_expires)) { in kjournald2()
240 transaction = journal->j_running_transaction; in kjournald2()
241 if (transaction && time_after_eq(jiffies, transaction->t_expires)) { in kjournald2()
242 journal->j_commit_request = transaction->t_tid; in kjournald2()
310 * If the source buffer has already been modified by a new transaction
324 jbd2_journal_write_metadata_buffer(transaction_t * transaction,struct journal_head * jh_in,struct buffer_head ** bh_out,sector_t blocknr) jbd2_journal_write_metadata_buffer() argument
505 transaction_t *transaction = NULL; __jbd2_journal_force_commit() local
967 jbd2_journal_get_descriptor_buffer(transaction_t * transaction,int type) jbd2_journal_get_descriptor_buffer() argument
1024 transaction_t *transaction; jbd2_journal_get_log_tail() local
2418 transaction_t *transaction = NULL; jbd2_journal_flush() local
2564 transaction_t *transaction; jbd2_journal_abort() local
[all...]
/linux/drivers/usb/host/
H A Docteon-hcd.c108 * @CVMX_USB_STATUS_OK: The transaction / operation finished without
111 * @CVMX_USB_STATUS_CANCEL: The transaction was canceled while in flight
113 * @CVMX_USB_STATUS_ERROR: The transaction aborted with an unexpected
115 * @CVMX_USB_STATUS_STALL: The transaction received a USB STALL response
117 * @CVMX_USB_STATUS_XACTERR: The transaction failed with an error from the
119 * @CVMX_USB_STATUS_DATATGLERR: The transaction failed with a data toggle
121 * @CVMX_USB_STATUS_BABBLEERR: The transaction failed with a babble error
122 * @CVMX_USB_STATUS_FRAMEERR: The transaction failed with a frame error
238 * enum represents all of the possible stages a transaction can
241 * transaction wit
1376 struct cvmx_usb_transaction *transaction = cvmx_usb_start_channel_control() local
1521 struct cvmx_usb_transaction *transaction = cvmx_usb_start_channel() local
2000 octeon_usb_urb_complete_callback(struct octeon_hcd * usb,enum cvmx_usb_status status,struct cvmx_usb_pipe * pipe,struct cvmx_usb_transaction * transaction,int bytes_transferred,struct urb * urb) octeon_usb_urb_complete_callback() argument
2099 cvmx_usb_complete(struct octeon_hcd * usb,struct cvmx_usb_pipe * pipe,struct cvmx_usb_transaction * transaction,enum cvmx_usb_status complete_code) cvmx_usb_complete() argument
2177 struct cvmx_usb_transaction *transaction; cvmx_usb_submit_transaction() local
2339 cvmx_usb_cancel(struct octeon_hcd * usb,struct cvmx_usb_pipe * pipe,struct cvmx_usb_transaction * transaction) cvmx_usb_cancel() argument
2385 struct cvmx_usb_transaction *transaction, *next; cvmx_usb_cancel_all() local
2438 cvmx_usb_transfer_control(struct octeon_hcd * usb,struct cvmx_usb_pipe * pipe,struct cvmx_usb_transaction * transaction,union cvmx_usbcx_hccharx usbc_hcchar,int buffer_space_left,int bytes_in_last_packet) cvmx_usb_transfer_control() argument
2522 cvmx_usb_transfer_bulk(struct octeon_hcd * usb,struct cvmx_usb_pipe * pipe,struct cvmx_usb_transaction * transaction,union cvmx_usbcx_hcintx usbc_hcint,int buffer_space_left,int bytes_in_last_packet) cvmx_usb_transfer_bulk() argument
2556 cvmx_usb_transfer_intr(struct octeon_hcd * usb,struct cvmx_usb_pipe * pipe,struct cvmx_usb_transaction * transaction,int buffer_space_left,int bytes_in_last_packet) cvmx_usb_transfer_intr() argument
2581 cvmx_usb_transfer_isoc(struct octeon_hcd * usb,struct cvmx_usb_pipe * pipe,struct cvmx_usb_transaction * transaction,int buffer_space_left,int bytes_in_last_packet,int bytes_this_transfer) cvmx_usb_transfer_isoc() argument
2644 struct cvmx_usb_transaction *transaction; cvmx_usb_poll_channel() local
3114 struct cvmx_usb_transaction *transaction = NULL; octeon_usb_urb_enqueue() local
[all...]
/linux/drivers/net/wireless/intel/iwlwifi/dvm/
H A Dtt.c24 /* default Thermal Throttling transaction table
341 struct iwl_tt_trans *transaction; in iwl_advance_tt_handler() local
346 * find the curresponding transaction table in iwl_advance_tt_handler()
348 * tt->transaction + ((old_state * (IWL_TI_STATE_MAX - 1)) in iwl_advance_tt_handler()
351 * find the next state need to transaction to in iwl_advance_tt_handler()
353 * in the current table to see if transaction is needed in iwl_advance_tt_handler()
355 transaction = tt->transaction + in iwl_advance_tt_handler()
357 if (temp >= transaction->tt_low && in iwl_advance_tt_handler()
358 temp <= transaction in iwl_advance_tt_handler()
580 struct iwl_tt_trans *transaction; iwl_tt_initialize() local
[all...]
/linux/Documentation/i2c/busses/
H A Di2c-mlxcpld.rst19 The next transaction types are supported:
29 Bits [6:5] - transaction length. b01 - 72B is supported,
43 It should be written last as it triggers an I2C transaction.
45 Number of data bytes to write in read transaction
47 Number of address bytes to write in read transaction.
49 Bit 0 - transaction is completed.
52 For write transaction address is specified in four first bytes
54 For read transactions address is sent in a separate transaction and
/linux/Documentation/arch/powerpc/
H A Dtransactional_memory.rst21 A simple transaction looks like this::
41 /* Retry the transaction if it failed because it conflicted with
50 example, the transaction completes as though it were normal straight-line code
58 transaction, the transaction will be aborted by the CPU. Register and memory
66 Causes of transaction aborts
78 Syscalls made from within an active transaction will not be performed and the
79 transaction will be doomed by the kernel with the failure code TM_CAUSE_SYSCALL
82 Syscalls made from within a suspended transaction are performed as normal and
83 the transaction is not explicitly doomed by the kernel. However, what the
84 kernel does to perform the syscall may result in the transaction being doomed
[all …]
H A Dsyscall64-abi.rst88 transaction state, and the syscall can affect the behavior of the transaction.
94 in the transaction being doomed by hardware.
101 be performed and the transaction will be doomed by the kernel with the
153 may or may not result in the transaction being doomed by hardware.
/linux/include/trace/events/
H A Dfirewire.h40 …TP_PROTO(u64 transaction, unsigned int card_index, unsigned int generation, unsigned int scode, co…
41 TP_ARGS(transaction, card_index, generation, scode, header, data, data_count),
43 __field(u64, transaction)
51 __entry->transaction = transaction;
61 __entry->transaction,
78 …TP_PROTO(u64 transaction, unsigned int card_index, unsigned int generation, unsigned int scode, un…
79 TP_ARGS(transaction, card_index, generation, scode, status, timestamp),
81 __field(u64, transaction)
89 __entry->transaction = transaction;
98 __entry->transaction,
[all …]
/linux/drivers/nfc/st21nfca/
H A Dse.c309 struct nfc_evt_transaction *transaction; in st21nfca_connectivity_event_received() local
341 if (skb->len < aid_len + 4 || aid_len > sizeof(transaction->aid)) in st21nfca_connectivity_event_received()
353 transaction = devm_kzalloc(dev, sizeof(*transaction) + params_len, GFP_KERNEL); in st21nfca_connectivity_event_received()
354 if (!transaction) in st21nfca_connectivity_event_received()
357 transaction->aid_len = aid_len; in st21nfca_connectivity_event_received()
358 transaction->params_len = params_len; in st21nfca_connectivity_event_received()
360 memcpy(transaction->aid, &skb->data[2], aid_len); in st21nfca_connectivity_event_received()
361 memcpy(transaction->params, &skb->data[aid_len + 4], params_len); in st21nfca_connectivity_event_received()
363 r = nfc_se_transaction(hdev->ndev, host, transaction); in st21nfca_connectivity_event_received()
/linux/drivers/android/binder/
H A Dthread.rs34 transaction::{Transaction, TransactionFlag, TransactionFlags, TransactionInfo},
258 /// Work item used to deliver error codes to the thread that started a transaction. Stored here
364 /// Fetches the transaction this thread can reply to. If the thread has a pending transaction
365 /// (that it could respond to) but it has also issued a transaction, it must first wait for the
366 /// previously-issued transaction to complete.
370 let transaction = self.current_transaction.take().ok_or(EINVAL)?; in pop_transaction_to_reply()
371 if core::ptr::eq(thread, transaction.from.as_ref()) { in pop_transaction_to_reply()
372 self.current_transaction = Some(transaction); in pop_transaction_to_reply()
375 // Find a new current transaction fo in pop_transaction_to_reply()
369 let transaction = self.current_transaction.take().ok_or(EINVAL)?; pop_transaction_to_reply() localVariable
1290 fn transaction(self: &Arc<Self>, cmd: u32, reader: &mut UserSliceReader) -> Result<()> { transaction() method
1362 let transaction = Transaction::new(node_ref, top, self, info)?; transaction_inner() localVariable
1381 let transaction; transaction_inner() localVariable
1450 let transaction = Transaction::new(node_ref, None, self, info)?; oneway_transaction_inner() localVariable
[all...]
H A Dnode.rs20 transaction::Transaction,
154 /// previous oneway transaction. This is done to avoid the case where two oneway transactions
160 /// deliver the next oneway transaction until userspace signals that it has finished processing
161 /// the previous oneway transaction by calling the `BC_FREE_BUFFER` ioctl.
163 /// Keeps track of whether this node has a pending oneway transaction.
279 t.debug_print_inner(m, " pending async transaction "); in full_debug_print()
529 transaction: DLArc<Transaction>, in write()
533 return Err((BinderError::new_dead(), transaction)); in submit_oneway()
538 inner.oneway_todo.push_back(transaction); in submit_oneway()
541 guard.push_work(&self.owner, transaction) in submit_oneway()
574 let transaction = inner.oneway_todo.pop_front(); pending_oneway_finished() localVariable
[all...]
/linux/fs/btrfs/tests/
H A Ddelayed-refs-tests.c48 &trans->transaction->delayed_refs; in delete_delayed_ref_head()
171 &trans->transaction->delayed_refs; in simple_test()
228 btrfs_destroy_delayed_refs(trans->transaction); in simple_test()
402 head = btrfs_select_ref_head(fs_info, &trans->transaction->delayed_refs); in merge_tests()
452 head = btrfs_select_ref_head(fs_info, &trans->transaction->delayed_refs); in merge_tests()
515 head = btrfs_select_ref_head(fs_info, &trans->transaction->delayed_refs); in merge_tests()
584 head = btrfs_select_ref_head(fs_info, &trans->transaction->delayed_refs); in merge_tests()
654 head = btrfs_select_ref_head(fs_info, &trans->transaction->delayed_refs); in merge_tests()
739 head = btrfs_select_ref_head(fs_info, &trans->transaction->delayed_refs); in merge_tests()
768 btrfs_unselect_ref_head(&trans->transaction->delayed_refs, head); in merge_tests()
[all …]
/linux/Documentation/filesystems/
H A Djournalling.rst42 this use jbd2_journal_start() which returns a transaction handle.
45 which indicates the end of a transaction are nestable calls, so you can
46 reenter a transaction if necessary, but remember you must call
48 jbd2_journal_start() before the transaction is completed (or more
52 Inside each transaction you need to wrap the modifications to the
59 uncommitted transaction. At this point you are at last ready to modify a
74 single outstanding transaction at any one time, remember nothing commits
76 the transaction at the end of each file/inode/address etc. operation you
83 if there isn't enough space in the journal for your transaction (based
96 transaction. I advise having a look at at least ext4_jbd.h to see the
[all …]
/linux/fs/btrfs/
H A Dtransaction.c19 #include "transaction.h"
59 * No running transaction (fs tree blocks are not modified)
66 * | New trans handles can be attached to transaction N by calling all
71 * | transaction N
76 * | the race and the rest will wait for the winner to commit the transaction.
78 * | The winner will wait for previous running transaction to completely finish
86 * | - Wait for current transaction to be committed by others.
90 * | to this running transaction.
92 * | transaction N+1.
95 * | Caller is chosen to commit transaction
142 btrfs_put_transaction(struct btrfs_transaction * transaction) btrfs_put_transaction() argument
[all...]
H A Dtransaction.h34 /* Radix-tree tag for roots that are part of the transaction. */
55 * transaction, it must be zero before the transaction is
60 * total writers in this transaction, it must be zero before the
61 * transaction can end
97 * Number of ordered extents the transaction must wait for before
105 * Number of extent buffers a transaction handle tracks for writeback
123 struct btrfs_transaction *transaction;
131 * Error code of transaction abort, set outside of locks and must use
183 inode->last_trans = trans->transaction
159 struct btrfs_transaction *transaction; global() member
[all...]
/linux/Documentation/locking/
H A Dww-mutex-design.rst36 In the RDBMS literature, a reservation ticket is associated with a transaction.
39 If the transaction holding the lock is younger, the locking transaction waits.
40 If the transaction holding the lock is older, the locking transaction backs off
43 If the transaction holding the lock is younger, the locking transaction
44 wounds the transaction holding the lock, requesting it to die.
45 If the transaction holding the lock is older, it waits for the other
46 transaction. Hence Wound-Wait.
47 The two algorithms are both fair in that a transaction will eventually succeed.
53 running transaction. Note that this is not the same as process preemption. A
54 Wound-Wait transaction is considered preempted when it dies (returning
[all …]
/linux/Documentation/i2c/
H A Di2c-address-translators.rst53 in the transaction and based on the alias table.
68 - Slave X driver requests a transaction (on adapter B), slave address 0x10
71 - Physical I2C transaction on bus A, slave address 0x20
72 - ATR chip detects transaction on address 0x20, finds it in table,
73 propagates transaction on bus B with address translated to 0x10,
75 - Slave X chip (on bus B) detects transaction at its own physical
H A Di2c-protocol.rst25 Simple send transaction
33 Simple receive transaction
47 condition P a start condition S is sent and the transaction continues.
70 In a combined transaction, no 'S Addr Wr/Rd [A]' is generated at some
/linux/drivers/nfc/st-nci/
H A Dse.c314 struct nfc_evt_transaction *transaction; in st_nci_hci_connectivity_event_received() local
348 aid_len > sizeof(transaction->aid)) in st_nci_hci_connectivity_event_received()
360 transaction = devm_kzalloc(dev, sizeof(*transaction) + in st_nci_hci_connectivity_event_received()
362 if (!transaction) in st_nci_hci_connectivity_event_received()
365 transaction->aid_len = aid_len; in st_nci_hci_connectivity_event_received()
366 transaction->params_len = params_len; in st_nci_hci_connectivity_event_received()
368 memcpy(transaction->aid, &skb->data[2], aid_len); in st_nci_hci_connectivity_event_received()
369 memcpy(transaction->params, &skb->data[aid_len + 4], in st_nci_hci_connectivity_event_received()
372 r = nfc_se_transaction(ndev->nfc_dev, host, transaction); in st_nci_hci_connectivity_event_received()
/linux/Documentation/ABI/testing/
H A Ddebugfs-driver-habanalabs44 transaction while reading from the file generates a read
45 transaction. This custom interface is needed (instead of using
48 move the bar before and after the transaction.
59 write transaction while reading from the file generates a read
60 transaction. This custom interface is needed (instead of using
63 move the bar before and after the transaction.
105 Description: Specify the size of the DMA transaction when using DMA to read
139 Description: Sets I2C device address for I2C transaction that is generated
147 Description: Sets I2C bus address for I2C transaction that is generated by
155 Description: Triggers an I2C transaction that is generated by the device's
[all …]
/linux/drivers/nvme/host/
H A Dauth.c33 u16 transaction;
98 u16 transaction, u8 expected_msg) in nvme_auth_receive_validate()
114 if (le16_to_cpu(data->t_id) != transaction) { in nvme_auth_receive_validate()
116 "qid %d invalid transaction ID %d\n", in nvme_auth_receive_validate()
138 data->t_id = cpu_to_le16(chap->transaction); in nvme_auth_set_dhchap_negotiate_data()
303 data->t_id = cpu_to_le16(chap->transaction); in nvme_auth_set_dhchap_reply_data()
408 data->t_id = cpu_to_le16(chap->transaction); in nvme_auth_set_dhchap_failure2_data()
422 data->t_id = cpu_to_le16(chap->transaction); in nvme_auth_dhchap_setup_host_response()
436 dev_dbg(ctrl->device, "%s: qid %d host response seq %u transaction %d\n", in nvme_auth_dhchap_setup_host_response()
437 __func__, chap->qid, chap->s1, chap->transaction); in nvme_auth_dhchap_setup_host_response()
34 u16 transaction; global() member
97 nvme_auth_receive_validate(struct nvme_ctrl * ctrl,int qid,struct nvmf_auth_dhchap_failure_data * data,u16 transaction,u8 expected_msg) nvme_auth_receive_validate() argument
[all...]
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_nvm.c784 u8 module, transaction; in i40e_nvmupd_validate_command() local
789 transaction = i40e_nvmupd_get_transaction(cmd->config); in i40e_nvmupd_validate_command()
802 switch (transaction) { in i40e_nvmupd_validate_command()
828 switch (transaction) { in i40e_nvmupd_validate_command()
877 u8 module, transaction; in i40e_nvmupd_nvm_erase() local
881 transaction = i40e_nvmupd_get_transaction(cmd->config); in i40e_nvmupd_nvm_erase()
883 last = (transaction & I40E_NVM_LCB); in i40e_nvmupd_nvm_erase()
917 u8 module, transaction; in i40e_nvmupd_nvm_write() local
922 transaction = i40e_nvmupd_get_transaction(cmd->config); in i40e_nvmupd_nvm_write()
924 last = (transaction & I40E_NVM_LCB); in i40e_nvmupd_nvm_write()
[all …]
/linux/Documentation/filesystems/ext4/
H A Djournal.rst11 data transaction is fully written to the disk and flushed from the disk write
70 - One transaction
73 Notice that a transaction begins with either a descriptor and some data,
74 or a block revocation list. A finished transaction always ends with a
76 transaction will be discarded during replay.
102 - One transaction
131 - The transaction ID that goes with this block.
145 written through the journal during a transaction.
148 transaction.
244 - Limit of journal blocks per transaction. (Not used?)
[all …]
/linux/Documentation/admin-guide/device-mapper/
H A Dpersistent-data.rst42 The transaction manager
45 dm-transaction-manager.[hc]
49 transaction manager is by shadowing an existing block (ie. doing
51 the same transaction so performance is reasonable. The commit method

1234567