| /linux/fs/jbd2/ |
| H A D | transaction.c | 58 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 D | journal.c | 163 transaction_t *transaction; in kjournald2() local 226 transaction = journal->j_running_transaction; in kjournald2() 227 if (transaction == NULL || in kjournald2() 228 time_before(jiffies, transaction->t_expires)) { in kjournald2() 241 transaction = journal->j_running_transaction; in kjournald2() 242 if (transaction && time_after_eq(jiffies, transaction->t_expires)) { in kjournald2() 243 journal->j_commit_request = transaction->t_tid; in kjournald2() 325 int jbd2_journal_write_metadata_buffer(transaction_t *transaction, in jbd2_journal_write_metadata_buffer() argument 335 journal_t *journal = transaction->t_journal; in jbd2_journal_write_metadata_buffer() 428 __jbd2_journal_file_buffer(jh_in, transaction, BJ_Shadow); in jbd2_journal_write_metadata_buffer() [all …]
|
| H A D | revoke.c | 530 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/drivers/usb/host/ |
| H A D | octeon-hcd.c | 1354 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/drivers/net/wireless/intel/iwlwifi/dvm/ |
| H A D | tt.c | 341 struct iwl_tt_trans *transaction; in iwl_advance_tt_handler() local 355 transaction = tt->transaction + in iwl_advance_tt_handler() 357 if (temp >= transaction->tt_low && in iwl_advance_tt_handler() 358 temp <= transaction->tt_high) { in iwl_advance_tt_handler() 372 transaction->next_state) { in iwl_advance_tt_handler() 375 transaction->next_state; in iwl_advance_tt_handler() 580 struct iwl_tt_trans *transaction; in iwl_tt_initialize() local 600 tt->transaction = kzalloc_objs(struct iwl_tt_trans, in iwl_tt_initialize() 602 if (!tt->restriction || !tt->transaction) { in iwl_tt_initialize() 607 kfree(tt->transaction); in iwl_tt_initialize() [all …]
|
| /linux/Documentation/i2c/busses/ |
| H A D | i2c-mlxcpld.rst | 19 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 D | transactional_memory.rst | 21 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 D | syscall64-abi.rst | 88 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 D | firewire.h | 40 …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 …]
|
| H A D | jbd2.h | 43 __field( tid_t, transaction ) 49 __entry->transaction = commit_transaction->t_tid; 54 __entry->transaction, __entry->sync_commit) 100 __field( tid_t, transaction ) 107 __entry->transaction = commit_transaction->t_tid; 113 __entry->transaction, __entry->sync_commit, __entry->head)
|
| /linux/drivers/android/binder/ |
| H A D | thread.rs | 33 transaction::Transaction, 351 let transaction = self.current_transaction.take().ok_or(EINVAL)?; in pop_transaction_to_reply() localVariable 352 if core::ptr::eq(thread, transaction.from.as_ref()) { in pop_transaction_to_reply() 353 self.current_transaction = Some(transaction); in pop_transaction_to_reply() 357 self.current_transaction = transaction.find_from(thread).cloned(); in pop_transaction_to_reply() 358 Ok(transaction) in pop_transaction_to_reply() 361 fn pop_transaction_replied(&mut self, transaction: &DArc<Transaction>) -> bool { in pop_transaction_replied() 365 if !Arc::ptr_eq(transaction, &old) { in pop_transaction_replied() 505 pub(crate) fn set_current_transaction(&self, transaction: DArc<Transaction>) { in set_current_transaction() 506 self.inner.lock().current_transaction = Some(transaction); in set_current_transaction() [all …]
|
| /linux/drivers/nfc/st21nfca/ |
| H A D | se.c | 309 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/fs/btrfs/tests/ |
| H A D | delayed-refs-tests.c | 48 &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 D | journalling.rst | 42 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 D | transaction.c | 141 void btrfs_put_transaction(struct btrfs_transaction *transaction) in btrfs_put_transaction() argument 143 if (refcount_dec_and_test(&transaction->use_count)) { in btrfs_put_transaction() 144 BUG_ON(!list_empty(&transaction->list)); in btrfs_put_transaction() 145 WARN_ON(!xa_empty(&transaction->delayed_refs.head_refs)); in btrfs_put_transaction() 146 WARN_ON(!xa_empty(&transaction->delayed_refs.dirty_extents)); in btrfs_put_transaction() 147 if (transaction->delayed_refs.pending_csums) in btrfs_put_transaction() 148 btrfs_err(transaction->fs_info, in btrfs_put_transaction() 150 transaction->delayed_refs.pending_csums); in btrfs_put_transaction() 158 while (!list_empty(&transaction->deleted_bgs)) { in btrfs_put_transaction() 161 cache = list_first_entry(&transaction->deleted_bgs, in btrfs_put_transaction() [all …]
|
| /linux/Documentation/locking/ |
| H A D | ww-mutex-design.rst | 36 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 D | i2c-address-translators.rst | 53 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 D | i2c-protocol.rst | 25 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 D | se.c | 314 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 D | debugfs-driver-habanalabs | 44 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 D | auth.c | 35 u16 transaction; member 98 u16 transaction, u8 expected_msg) in nvme_auth_receive_validate() argument 114 if (le16_to_cpu(data->t_id) != transaction) { in nvme_auth_receive_validate() 136 data->t_id = cpu_to_le16(chap->transaction); in nvme_auth_set_dhchap_negotiate_data() 321 data->t_id = cpu_to_le16(chap->transaction); in nvme_auth_set_dhchap_reply_data() 413 data->t_id = cpu_to_le16(chap->transaction); in nvme_auth_set_dhchap_success2_data() 427 data->t_id = cpu_to_le16(chap->transaction); in nvme_auth_set_dhchap_failure2_data() 442 __func__, chap->qid, chap->s1, chap->transaction); in nvme_auth_dhchap_setup_host_response() 491 put_unaligned_le16(chap->transaction, buf); in nvme_auth_dhchap_setup_host_response() 559 __func__, chap->qid, chap->s2, chap->transaction); in nvme_auth_dhchap_setup_ctrl_response() [all …]
|
| /linux/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e_nvm.c | 784 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 D | journal.rst | 11 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/drivers/acpi/ |
| H A D | ec.c | 155 struct transaction { struct 168 struct transaction transaction; argument 650 static void acpi_ec_spurious_interrupt(struct acpi_ec *ec, struct transaction *t) in acpi_ec_spurious_interrupt() 662 struct transaction *t = ec->curr; in advance_transaction() 784 struct transaction *t) in acpi_ec_transaction_unlocked() 821 static int acpi_ec_transaction(struct acpi_ec *ec, struct transaction *t) in acpi_ec_transaction() 850 struct transaction t = {.command = ACPI_EC_BURST_ENABLE, in acpi_ec_burst_enable() 859 struct transaction t = {.command = ACPI_EC_BURST_DISABLE, in acpi_ec_burst_disable() 871 struct transaction t = {.command = ACPI_EC_COMMAND_READ, in acpi_ec_read() 884 struct transaction t = {.command = ACPI_EC_COMMAND_READ, in acpi_ec_read_unlocked() [all …]
|
| /linux/Documentation/admin-guide/device-mapper/ |
| H A D | persistent-data.rst | 42 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
|