/linux/fs/ext4/ |
H A D | ext4_jbd2.c | 32 /* Just increment the non-pointer handle value */ 35 handle_t *handle = current->journal_info; in ext4_get_nojournal() local 36 unsigned long ref_cnt = (unsigned long)handle; in ext4_get_nojournal() 41 handle = (handle_t *)ref_cnt; in ext4_get_nojournal() 43 current->journal_info = handle; in ext4_get_nojournal() 44 return handle; in ext4_get_nojournal() 48 /* Decrement the non-pointer handle value */ 49 static void ext4_put_nojournal(handle_t *handle) in ext4_put_nojournal() argument 51 unsigned long ref_cnt = (unsigned long)handle; in ext4_put_nojournal() 56 handle = (handle_t *)ref_cnt; in ext4_put_nojournal() [all …]
|
H A D | ext4_jbd2.h | 68 /* We break up a large truncate or write transaction once the handle's 109 * Ext4 handle operation types -- for logging purposes 126 ext4_mark_iloc_dirty(handle_t *handle, 135 int ext4_reserve_inode_write(handle_t *handle, struct inode *inode, 140 int __ext4_mark_inode_dirty(handle_t *handle, struct inode *inode, 150 handle_t *handle, struct super_block *sb, 154 int __ext4_forget(const char *where, unsigned int line, handle_t *handle, 159 handle_t *handle, struct super_block *sb, 164 handle_t *handle, struct inode *inode, 167 #define ext4_journal_get_write_access(handle, sb, bh, trigger_type) \ argument [all …]
|
H A D | migrate.c | 21 static int finish_range(handle_t *handle, struct inode *inode, in finish_range() argument 52 retval = ext4_datasem_ensure_credits(handle, inode, needed, needed, 0); in finish_range() 55 path = ext4_ext_insert_extent(handle, inode, path, &newext, 0); in finish_range() 65 static int update_extent_range(handle_t *handle, struct inode *inode, in update_extent_range() argument 83 retval = finish_range(handle, inode, lb); in update_extent_range() 90 static int update_ind_extent_range(handle_t *handle, struct inode *inode, in update_ind_extent_range() argument 106 retval = update_extent_range(handle, inode, in update_ind_extent_range() 119 static int update_dind_extent_range(handle_t *handle, struct inode *inode, in update_dind_extent_range() argument 135 retval = update_ind_extent_range(handle, inode, in update_dind_extent_range() 149 static int update_tind_extent_range(handle_t *handle, struct inode *inode, in update_tind_extent_range() argument [all …]
|
/linux/tools/testing/selftests/tc-testing/tc-tests/filters/ |
H A D | fw.json | 15 "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 65535 fw action ok", 17 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 65535 protocol all fw", 18 "matchPattern": "pref 65535 fw.*handle 0x1.*gact action pass", 37 "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 65536 fw action ok", 39 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 65536 protocol all fw", 40 "matchPattern": "pref 65536 fw.*handle 0x1.*gact action pass", 59 "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 fw action ok", 61 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol all fw", 62 "matchPattern": "handle 0x1.*gact action pass", 82 … "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 fw action gact index 1", [all …]
|
H A D | matchall.json | 15 …"cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall act… 17 "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 18 …"matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*gact action pass.*r… 35 "$TC qdisc add dev $DUMMY root handle 1: prio" 37 …"cmdUnderTest": "$TC filter add dev $DUMMY parent 1: handle 0x1 prio 1 protocol ip matchall action… 39 "verifyCmd": "$TC filter get dev $DUMMY parent 1: handle 1 prio 1 protocol ip matchall", 40 …"matchPattern": "^filter parent 1: protocol ip pref 1 matchall.*handle 0x1.*gact action pass.*ref … 43 "$TC qdisc del dev $DUMMY root handle 1: prio" 59 …"cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ipv6 matchall a… 61 … "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ipv6 matchall", [all …]
|
H A D | flow.json | 15 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 protocol ip flow map key ds… 17 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 protocol ip prio 1 flow", 18 …"matchPattern": "filter parent ffff: protocol ip pref 1 flow chain [0-9]+ handle 0x1 map keys dst … 37 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 protocol ip flow map key ds… 39 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 protocol ip prio 1 flow", 40 …"matchPattern": "filter parent ffff: protocol ip pref 1 flow chain [0-9]+ handle 0x1 map keys dst.… 59 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 protocol ip flow map key ds… 61 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 protocol ip prio 1 flow", 62 …"matchPattern": "filter parent ffff: protocol ip pref 1 flow chain [0-9]+ handle 0x1 map keys dst … 81 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 protocol ip flow map key ds… [all …]
|
/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | sch_offload.sh | 19 local handle=$1; shift 23 h=$(qdisc_stats_get $h1 "$handle" .handle) 24 [[ $h == '"'$handle'"' ]] 25 check_err $? "Qdisc with handle $handle does not exist" 27 offloaded=$(qdisc_stats_get $h1 "$handle" .offloaded) 29 check_fail $? "Qdisc with handle $handle offloaded, but should not be" 34 local handle=$1; shift 36 if [[ ! -z $handle ]]; then 37 local offloaded=$(qdisc_stats_get $h1 "$handle" .offloaded) 39 check_err $? "Qdisc with handle $handle not offloaded" [all …]
|
H A D | tc_restrictions.sh | 47 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 59 tc filter del block 22 protocol ip pref 1 handle 101 flower 64 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 73 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 77 tc filter del block 22 protocol ip pref 1 handle 101 flower 95 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 108 tc filter del block 22 protocol ip pref 1 handle 101 flower 113 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 123 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 130 tc filter add block 22 protocol ip pref 1 handle 101 flower \ [all …]
|
/linux/drivers/net/ethernet/hisilicon/hns3/ |
H A D | hnae3.h | 8 * ae handle (handle): 202 struct hnae3_handle *handle; member 203 int tqp_index; /* index in a handle */ 408 int (*init_instance)(struct hnae3_handle *handle); 409 void (*uninit_instance)(struct hnae3_handle *handle, bool reset); 410 void (*link_status_change)(struct hnae3_handle *handle, bool state); 411 int (*reset_notify)(struct hnae3_handle *handle, 413 void (*process_hw_error)(struct hnae3_handle *handle, 439 /* This struct defines the operation on the handle. 458 * Get the carrier state of the back channel of the handle, 1 for ok, 0 for [all …]
|
/linux/drivers/net/ethernet/qualcomm/ |
H A D | qca_7k_common.c | 64 qcafrm_fsm_decode(struct qcafrm_handle *handle, u8 *buf, u16 buf_len, u8 recv_byte) in qcafrm_fsm_decode() argument 69 switch (handle->state) { in qcafrm_fsm_decode() 73 handle->state--; in qcafrm_fsm_decode() 77 handle->state = handle->init; in qcafrm_fsm_decode() 82 handle->state--; in qcafrm_fsm_decode() 91 handle->state = handle->init; in qcafrm_fsm_decode() 93 handle->state--; in qcafrm_fsm_decode() 99 handle->offset = recv_byte; in qcafrm_fsm_decode() 100 handle->state = QCAFRM_WAIT_LEN_BYTE1; in qcafrm_fsm_decode() 103 handle->offset = handle->offset | (recv_byte << 8); in qcafrm_fsm_decode() [all …]
|
/linux/fs/ |
H A D | fhandle.c | 25 struct file_handle *handle = NULL; in do_sys_name_to_handle() local 29 * the file handle if decodeable file handle was requested. in do_sys_name_to_handle() 35 * A request to encode a connectable handle for a disconnected dentry in do_sys_name_to_handle() 48 handle = kzalloc(struct_size(handle, f_handle, f_handle.handle_bytes), in do_sys_name_to_handle() 50 if (!handle) in do_sys_name_to_handle() 53 /* convert handle size to multiple of sizeof(u32) */ in do_sys_name_to_handle() 56 /* Encode a possibly decodeable/connectable file handle */ in do_sys_name_to_handle() 58 (struct fid *)handle->f_handle, in do_sys_name_to_handle() 60 handle->handle_type = retval; in do_sys_name_to_handle() 61 /* convert handle size to bytes */ in do_sys_name_to_handle() [all …]
|
/linux/drivers/pci/hotplug/ |
H A D | acpi_pcihp.c | 36 * @handle - the handle of the hotplug controller. 38 static acpi_status acpi_run_oshp(acpi_handle handle) in acpi_run_oshp() argument 43 acpi_get_name(handle, ACPI_FULL_PATHNAME, &string); in acpi_run_oshp() 46 status = acpi_evaluate_object(handle, METHOD_NAME_OSHP, NULL, NULL); in acpi_run_oshp() 73 acpi_handle chandle, handle; in acpi_get_hp_hw_control_from_firmware() local 105 handle = ACPI_HANDLE(&pdev->dev); in acpi_get_hp_hw_control_from_firmware() 106 if (!handle) { in acpi_get_hp_hw_control_from_firmware() 109 * space at all. Try to get ACPI handle of parent PCI bus. in acpi_get_hp_hw_control_from_firmware() 113 handle = acpi_pci_get_bridge_handle(pbus); in acpi_get_hp_hw_control_from_firmware() 114 if (handle) in acpi_get_hp_hw_control_from_firmware() [all …]
|
/linux/tools/testing/selftests/tc-testing/tc-tests/infra/ |
H A D | actions.json | 16 …"cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall act… 18 "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 19 "matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*", 39 …"cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall act… 41 "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 42 "matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*", 62 …"cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall act… 64 "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 65 "matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*", 85 …"cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall act… [all …]
|
/linux/tools/testing/selftests/net/forwarding/ |
H A D | tc_flower.sh | 44 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 46 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 58 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 59 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 70 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 72 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 84 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 85 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 94 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 96 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
H A D | post_act.c | 81 struct mlx5e_post_act_handle *handle) in mlx5e_tc_post_act_offload() argument 94 mlx5e_tc_match_to_reg_match(spec, FTEID_TO_REG, handle->id, MLX5_POST_ACTION_MASK); in mlx5e_tc_post_act_offload() 96 handle->rule = mlx5e_tc_rule_offload(post_act->priv, spec, handle->attr); in mlx5e_tc_post_act_offload() 97 if (IS_ERR(handle->rule)) { in mlx5e_tc_post_act_offload() 98 err = PTR_ERR(handle->rule); in mlx5e_tc_post_act_offload() 114 struct mlx5e_post_act_handle *handle; in mlx5e_tc_post_act_add() local 120 handle = kzalloc(sizeof(*handle), GFP_KERNEL); in mlx5e_tc_post_act_add() 121 if (!handle) in mlx5e_tc_post_act_add() 132 handle->ns_type = post_act->ns_type; in mlx5e_tc_post_act_add() 134 if (handle->ns_type == MLX5_FLOW_NAMESPACE_FDB) in mlx5e_tc_post_act_add() [all …]
|
/linux/drivers/media/pci/cx18/ |
H A D | cx23418.h | 21 OUT[0] - Task handle. This handle is passed along with commands to 27 IN[0] - Task handle. Hanlde of the task to destroy 65 IN[0] - Task handle. Handle of the task 83 IN[0] - Task handle. Handle of the task to start 88 IN[0] - Task handle. Handle of the task to stop 94 IN[0] - Task handle. Handle of the task to pause 99 IN[0] - Task handle. Handle of the task to resume 115 IN[0] - Task handle. Handle of the task to start 121 IN[0] - task handle. Handle of the task to start 127 IN[0] - task handle [all …]
|
/linux/drivers/misc/vmw_vmci/ |
H A D | vmci_doorbell.c | 30 * DoorbellEntry describes the a doorbell notification handle allocated by the 80 * with a given doorbell handle. For guest endpoints, the 83 * handle. Hypervisor endpoints are not yet supported. 85 int vmci_dbell_get_priv_flags(struct vmci_handle handle, u32 *priv_flags) in vmci_dbell_get_priv_flags() argument 87 if (priv_flags == NULL || handle.context == VMCI_INVALID_ID) in vmci_dbell_get_priv_flags() 90 if (handle.context == VMCI_HOST_CONTEXT_ID) { in vmci_dbell_get_priv_flags() 94 resource = vmci_resource_by_handle(handle, in vmci_dbell_get_priv_flags() 102 } else if (handle.context == VMCI_HYPERVISOR_CONTEXT_ID) { in vmci_dbell_get_priv_flags() 109 *priv_flags = vmci_context_get_priv_flags(handle.context); in vmci_dbell_get_priv_flags() 225 * Creates a link between the given doorbell handle and the given [all …]
|
H A D | vmci_resource.c | 30 static unsigned int vmci_resource_hash(struct vmci_handle handle) in vmci_resource_hash() argument 32 return hash_32(handle.resource, VMCI_RESOURCE_HASH_BITS); in vmci_resource_hash() 36 * Gets a resource (if one exists) matching given handle from the hash table. 38 static struct vmci_resource *vmci_resource_lookup(struct vmci_handle handle, in vmci_resource_lookup() argument 42 unsigned int idx = vmci_resource_hash(handle); in vmci_resource_lookup() 47 u32 cid = r->handle.context; in vmci_resource_lookup() 48 u32 rid = r->handle.resource; in vmci_resource_lookup() 51 rid == handle.resource && in vmci_resource_lookup() 52 (cid == handle.context || cid == VMCI_INVALID_ID || in vmci_resource_lookup() 53 handle.context == VMCI_INVALID_ID)) { in vmci_resource_lookup() [all …]
|
/linux/fs/jbd2/ |
H A D | transaction.c | 108 * Handle management. 198 * Wait until we can add credits for handle to the running transaction. Called 199 * with j_state_lock held for reading. Returns 0 if handle joined the running 237 * attach this handle to a new transaction. in add_transaction_credits() 243 * big to fit this handle? Wait until reserved credits are freed. in add_transaction_credits() 306 * start_this_handle: Given a handle, deal with any locking or stalling 307 * needed to make sure that there is enough journal space for the handle 308 * to begin. Attach the handle to a transaction and set up the 312 static int start_this_handle(journal_t *journal, handle_t *handle, in start_this_handle() argument 316 int blocks = handle->h_total_credits; in start_this_handle() [all …]
|
/linux/tools/testing/selftests/tc-testing/tc-tests/qdiscs/ |
H A D | fq.json | 14 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root fq", 20 "$TC qdisc del dev $DUMMY handle 1: root" 35 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root fq limit 3000", 41 "$TC qdisc del dev $DUMMY handle 1: root" 56 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root fq flow_limit 300", 62 "$TC qdisc del dev $DUMMY handle 1: root" 77 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root fq quantum 9000", 83 "$TC qdisc del dev $DUMMY handle 1: root" 98 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root fq initial_quantum 900000", 104 "$TC qdisc del dev $DUMMY handle 1: root" [all …]
|
H A D | ets.json | 14 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root ets bands 2", 20 "$TC qdisc del dev $DUMMY handle 1: root" 35 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root ets quanta 1000 900 800 700", 41 "$TC qdisc del dev $DUMMY handle 1: root" 56 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root ets strict 3", 62 "$TC qdisc del dev $DUMMY handle 1: root" 77 … "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root ets bands 4 quanta 1000 900 800 700", 83 "$TC qdisc del dev $DUMMY handle 1: root" 98 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root ets bands 3 strict 3", 104 "$TC qdisc del dev $DUMMY handle 1: root" [all …]
|
H A D | netem.json | 14 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root netem", 20 "$TC qdisc del dev $DUMMY handle 1: root" 35 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root netem limit 200", 41 "$TC qdisc del dev $DUMMY handle 1: root" 56 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root netem delay 100ms", 62 "$TC qdisc del dev $DUMMY handle 1: root" 77 …"cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root netem delay 100ms 10ms distribution norma… 83 "$TC qdisc del dev $DUMMY handle 1: root" 98 …"cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root netem delay 100ms 10ms distribution norma… 104 "$TC qdisc del dev $DUMMY handle 1: root" [all …]
|
H A D | cake.json | 14 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cake", 20 "$TC qdisc del dev $DUMMY handle 1: root" 35 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cake bandwidth 1000", 41 "$TC qdisc del dev $DUMMY handle 1: root" 56 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cake autorate-ingress", 62 "$TC qdisc del dev $DUMMY handle 1: root" 77 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cake rtt 200", 83 "$TC qdisc del dev $DUMMY handle 1: root" 98 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cake besteffort", 104 "$TC qdisc del dev $DUMMY handle 1: root" [all …]
|
H A D | fifo.json | 14 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root bfifo", 20 "$TC qdisc del dev $DUMMY handle 1: root bfifo" 35 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root pfifo", 41 "$TC qdisc del dev $DUMMY handle 1: root pfifo" 46 … "name": "Add bfifo qdisc with system default parameters on egress with handle of maximum value", 56 "cmdUnderTest": "$TC qdisc add dev $DUMMY root handle ffff: bfifo", 62 "$TC qdisc del dev $DUMMY handle ffff: root bfifo" 77 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root bfifo limit 3000b", 83 "$TC qdisc del dev $DUMMY handle 1: root bfifo" 99 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root pfifo limit 3000", [all …]
|
/linux/drivers/acpi/riscv/ |
H A D | irq.c | 14 acpi_handle handle; member 26 acpi_handle handle; member 56 static acpi_status riscv_acpi_update_gsi_handle(u32 gsi_base, acpi_handle handle) in riscv_acpi_update_gsi_handle() argument 64 ext_intc_element->handle = handle; in riscv_acpi_update_gsi_handle() 80 if (ext_intc_element->handle == ACPI_HANDLE_FWNODE(fwnode)) { in riscv_acpi_get_gsi_info() 104 adev = acpi_fetch_acpi_dev(ext_intc_element->handle); in riscv_acpi_get_gsi_domain_id() 132 static acpi_status __init riscv_acpi_create_gsi_map(acpi_handle handle, u32 level, in riscv_acpi_create_gsi_map() argument 138 if (!acpi_has_method(handle, "_GSB")) { in riscv_acpi_create_gsi_map() 139 acpi_handle_err(handle, "_GSB method not found\n"); in riscv_acpi_create_gsi_map() 143 status = acpi_evaluate_integer(handle, "_GSB", NULL, &gbase); in riscv_acpi_create_gsi_map() [all …]
|