Home
last modified time | relevance | path

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

12345678

/Linux-v5.15/fs/jbd2/
Dcheckpoint.c32 transaction_t *transaction = jh->b_cp_transaction; in __buffer_unlink_first() local
36 if (transaction->t_checkpoint_list == jh) { in __buffer_unlink_first()
37 transaction->t_checkpoint_list = jh->b_cpnext; in __buffer_unlink_first()
38 if (transaction->t_checkpoint_list == jh) in __buffer_unlink_first()
39 transaction->t_checkpoint_list = NULL; in __buffer_unlink_first()
50 transaction_t *transaction = jh->b_cp_transaction; in __buffer_unlink() local
53 if (transaction->t_checkpoint_io_list == jh) { in __buffer_unlink()
54 transaction->t_checkpoint_io_list = jh->b_cpnext; in __buffer_unlink()
55 if (transaction->t_checkpoint_io_list == jh) in __buffer_unlink()
56 transaction->t_checkpoint_io_list = NULL; in __buffer_unlink()
[all …]
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()
103 transaction_t *transaction) in jbd2_get_transaction() argument
105 transaction->t_journal = journal; in jbd2_get_transaction()
106 transaction->t_state = T_RUNNING; in jbd2_get_transaction()
107 transaction->t_start_time = ktime_get(); in jbd2_get_transaction()
108 transaction->t_tid = journal->j_transaction_sequence++; in jbd2_get_transaction()
109 transaction->t_expires = jiffies + journal->j_commit_interval; in jbd2_get_transaction()
110 spin_lock_init(&transaction->t_handle_lock); in jbd2_get_transaction()
[all …]
Djournal.c175 transaction_t *transaction; in kjournald2() local
241 transaction = journal->j_running_transaction; in kjournald2()
242 if (transaction && time_after_eq(jiffies, in kjournald2()
243 transaction->t_expires)) in kjournald2()
260 transaction = journal->j_running_transaction; in kjournald2()
261 if (transaction && time_after_eq(jiffies, transaction->t_expires)) { in kjournald2()
262 journal->j_commit_request = transaction->t_tid; in kjournald2()
338 int jbd2_journal_write_metadata_buffer(transaction_t *transaction, in jbd2_journal_write_metadata_buffer() argument
351 journal_t *journal = transaction->t_journal; in jbd2_journal_write_metadata_buffer()
467 __jbd2_journal_file_buffer(jh_in, transaction, BJ_Shadow); in jbd2_journal_write_metadata_buffer()
[all …]
Drevoke.c530 void jbd2_journal_write_revoke_records(transaction_t *transaction, in jbd2_journal_write_revoke_records() argument
533 journal_t *journal = transaction->t_journal; in jbd2_journal_write_revoke_records()
554 write_one_revoke_record(transaction, log_bufs, in jbd2_journal_write_revoke_records()
571 static void write_one_revoke_record(transaction_t *transaction, in write_one_revoke_record() argument
577 journal_t *journal = transaction->t_journal; in write_one_revoke_record()
610 descriptor = jbd2_journal_get_descriptor_buffer(transaction, in write_one_revoke_record()
/Linux-v5.15/drivers/staging/octeon-usb/
Docteon-hcd.c1354 struct cvmx_usb_transaction *transaction = in cvmx_usb_start_channel_control() local
1355 list_first_entry(&pipe->transactions, typeof(*transaction), in cvmx_usb_start_channel_control()
1358 cvmx_phys_to_ptr(transaction->control_header); in cvmx_usb_start_channel_control()
1359 int bytes_to_transfer = transaction->buffer_length - in cvmx_usb_start_channel_control()
1360 transaction->actual_bytes; in cvmx_usb_start_channel_control()
1367 switch (transaction->stage) { in cvmx_usb_start_channel_control()
1385 transaction->control_header); in cvmx_usb_start_channel_control()
1499 struct cvmx_usb_transaction *transaction = in cvmx_usb_start_channel() local
1500 list_first_entry(&pipe->transactions, typeof(*transaction), in cvmx_usb_start_channel()
1566 u64 dma_address = transaction->buffer + in cvmx_usb_start_channel()
[all …]
/Linux-v5.15/drivers/net/wireless/intel/iwlwifi/dvm/
Dtt.c356 struct iwl_tt_trans *transaction; in iwl_advance_tt_handler() local
370 transaction = tt->transaction + in iwl_advance_tt_handler()
372 if (temp >= transaction->tt_low && in iwl_advance_tt_handler()
373 temp <= transaction->tt_high) { in iwl_advance_tt_handler()
387 transaction->next_state) { in iwl_advance_tt_handler()
390 transaction->next_state; in iwl_advance_tt_handler()
595 struct iwl_tt_trans *transaction; in iwl_tt_initialize() local
616 tt->transaction = kcalloc(IWL_TI_STATE_MAX * in iwl_tt_initialize()
620 if (!tt->restriction || !tt->transaction) { in iwl_tt_initialize()
625 kfree(tt->transaction); in iwl_tt_initialize()
[all …]
/Linux-v5.15/Documentation/i2c/busses/
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-v5.15/Documentation/filesystems/
Dxfs-delayed-logging-design.rst26 changes in the new transaction that is written to the log.
31 transaction::
42 In other words, each time an object is relogged, the new transaction contains
48 (increasing) LSN of each subsequent transaction - the LSN is effectively a
49 direct encoding of the location in the log of the transaction.
52 transactions. These transaction are known as rolling transactions, and require
53 a special log reservation known as a permanent transaction reservation. A
54 typical example of a rolling transaction is the removal of extents from an
55 inode which can only be done at a rate of two extents per transaction because
56 of reservation size limitations. Hence a rolling extent removal transaction
[all …]
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-v5.15/Documentation/powerpc/
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 …]
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-v5.15/drivers/nfc/st21nfca/
Dse.c298 struct nfc_evt_transaction *transaction; in st21nfca_connectivity_event_received() local
318 transaction = devm_kzalloc(dev, skb->len - 2, GFP_KERNEL); in st21nfca_connectivity_event_received()
319 if (!transaction) in st21nfca_connectivity_event_received()
322 transaction->aid_len = skb->data[1]; in st21nfca_connectivity_event_received()
323 memcpy(transaction->aid, &skb->data[2], in st21nfca_connectivity_event_received()
324 transaction->aid_len); in st21nfca_connectivity_event_received()
327 if (skb->data[transaction->aid_len + 2] != in st21nfca_connectivity_event_received()
331 transaction->params_len = skb->data[transaction->aid_len + 3]; in st21nfca_connectivity_event_received()
332 memcpy(transaction->params, skb->data + in st21nfca_connectivity_event_received()
333 transaction->aid_len + 4, transaction->params_len); in st21nfca_connectivity_event_received()
[all …]
/Linux-v5.15/drivers/nfc/st-nci/
Dse.c314 struct nfc_evt_transaction *transaction; in st_nci_hci_connectivity_event_received() local
333 transaction = devm_kzalloc(dev, skb->len - 2, GFP_KERNEL); in st_nci_hci_connectivity_event_received()
334 if (!transaction) in st_nci_hci_connectivity_event_received()
337 transaction->aid_len = skb->data[1]; in st_nci_hci_connectivity_event_received()
338 memcpy(transaction->aid, &skb->data[2], transaction->aid_len); in st_nci_hci_connectivity_event_received()
341 if (skb->data[transaction->aid_len + 2] != in st_nci_hci_connectivity_event_received()
345 transaction->params_len = skb->data[transaction->aid_len + 3]; in st_nci_hci_connectivity_event_received()
346 memcpy(transaction->params, skb->data + in st_nci_hci_connectivity_event_received()
347 transaction->aid_len + 4, transaction->params_len); in st_nci_hci_connectivity_event_received()
349 r = nfc_se_transaction(ndev->nfc_dev, host, transaction); in st_nci_hci_connectivity_event_received()
/Linux-v5.15/fs/btrfs/
Dtransaction.h123 struct btrfs_transaction *transaction; member
173 inode->last_trans = trans->transaction->transid; in btrfs_set_inode_last_trans()
188 delayed_refs = &trans->transaction->delayed_refs; in btrfs_set_skip_qgroup()
197 delayed_refs = &trans->transaction->delayed_refs; in btrfs_clear_skip_qgroup()
231 void btrfs_put_transaction(struct btrfs_transaction *transaction);
Dtransaction.c123 void btrfs_put_transaction(struct btrfs_transaction *transaction) in btrfs_put_transaction() argument
125 WARN_ON(refcount_read(&transaction->use_count) == 0); in btrfs_put_transaction()
126 if (refcount_dec_and_test(&transaction->use_count)) { in btrfs_put_transaction()
127 BUG_ON(!list_empty(&transaction->list)); in btrfs_put_transaction()
129 &transaction->delayed_refs.href_root.rb_root)); in btrfs_put_transaction()
131 &transaction->delayed_refs.dirty_extent_root)); in btrfs_put_transaction()
132 if (transaction->delayed_refs.pending_csums) in btrfs_put_transaction()
133 btrfs_err(transaction->fs_info, in btrfs_put_transaction()
135 transaction->delayed_refs.pending_csums); in btrfs_put_transaction()
143 while (!list_empty(&transaction->deleted_bgs)) { in btrfs_put_transaction()
[all …]
/Linux-v5.15/Documentation/locking/
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-v5.15/Documentation/ABI/testing/
Ddebugfs-driver-habanalabs61 transaction while reading from the file generates a read
62 transaction. This custom interface is needed (instead of using
65 move the bar before and after the transaction.
76 write transaction while reading from the file generates a read
77 transaction. This custom interface is needed (instead of using
80 move the bar before and after the transaction.
115 Description: Specify the size of the DMA transaction when using DMA to read
140 Description: Sets I2C device address for I2C transaction that is generated
147 Description: Sets I2C bus address for I2C transaction that is generated by
154 Description: Triggers an I2C transaction that is generated by the device's
[all …]
/Linux-v5.15/Documentation/filesystems/ext4/
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-v5.15/drivers/net/ethernet/intel/i40e/
Di40e_nvm.c1281 u8 module, transaction; in i40e_nvmupd_validate_command() local
1286 transaction = i40e_nvmupd_get_transaction(cmd->config); in i40e_nvmupd_validate_command()
1301 switch (transaction) { in i40e_nvmupd_validate_command()
1327 switch (transaction) { in i40e_nvmupd_validate_command()
1565 u8 module, transaction; in i40e_nvmupd_nvm_read() local
1568 transaction = i40e_nvmupd_get_transaction(cmd->config); in i40e_nvmupd_nvm_read()
1570 last = (transaction == I40E_NVM_LCB) || (transaction == I40E_NVM_SA); in i40e_nvmupd_nvm_read()
1604 u8 module, transaction; in i40e_nvmupd_nvm_erase() local
1607 transaction = i40e_nvmupd_get_transaction(cmd->config); in i40e_nvmupd_nvm_erase()
1609 last = (transaction & I40E_NVM_LCB); in i40e_nvmupd_nvm_erase()
[all …]
/Linux-v5.15/Documentation/i2c/
Di2c-protocol.rst28 Simple send transaction
36 Simple receive transaction
50 condition P a start condition S is sent and the transaction continues.
73 In a combined transaction, no 'S Addr Wr/Rd [A]' is generated at some
/Linux-v5.15/Documentation/admin-guide/device-mapper/
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
/Linux-v5.15/Documentation/driver-api/
Dfirewire.rst37 Firewire core transaction interfaces
40 .. kernel-doc:: drivers/firewire/core-transaction.c
/Linux-v5.15/drivers/acpi/
Dec.c153 struct transaction { struct
166 struct transaction transaction; argument
619 static void acpi_ec_spurious_interrupt(struct acpi_ec *ec, struct transaction *t) in acpi_ec_spurious_interrupt()
631 struct transaction *t = ec->curr; in advance_transaction()
770 struct transaction *t) in acpi_ec_transaction_unlocked()
804 static int acpi_ec_transaction(struct acpi_ec *ec, struct transaction *t) in acpi_ec_transaction()
835 struct transaction t = {.command = ACPI_EC_BURST_ENABLE, in acpi_ec_burst_enable()
844 struct transaction t = {.command = ACPI_EC_BURST_DISABLE, in acpi_ec_burst_disable()
856 struct transaction t = {.command = ACPI_EC_COMMAND_READ, in acpi_ec_read()
868 struct transaction t = {.command = ACPI_EC_COMMAND_WRITE, in acpi_ec_write()
[all …]
/Linux-v5.15/include/trace/events/
Djbd2.h43 __field( int, transaction )
49 __entry->transaction = commit_transaction->t_tid;
54 __entry->transaction, __entry->sync_commit)
100 __field( int, transaction )
107 __entry->transaction = commit_transaction->t_tid;
113 __entry->transaction, __entry->sync_commit, __entry->head)
/Linux-v5.15/Documentation/devicetree/bindings/net/
Dbrcm,mdio-mux-iproc.txt4 external to SoCs and could accept MDIO transaction compatible to C-22 or
6 properties as well to generate desired MDIO transaction on appropriate bus.

12345678