| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | local_storage.c | 65 struct local_storage *storage; in BPF_PROG() 78 storage = bpf_task_storage_get(&task_storage_map, task, 0, 0); in BPF_PROG() 79 if (!storage) in BPF_PROG() 83 is_self_unlink = storage->exec_inode == victim->d_inode; in BPF_PROG() 85 storage = bpf_task_storage_get(&task_storage_map2, task, 0, in BPF_PROG() 87 if (!storage || storage->value) in BPF_PROG() 106 struct local_storage *storage; 116 storage = bpf_inode_storage_get(&inode_storage_map, old_dentry->d_inode, in BPF_PROG() 118 if (!storage) in BPF_PROG() 66 struct local_storage *storage; BPF_PROG() local 112 struct local_storage *storage; BPF_PROG() local 142 struct local_storage *storage; BPF_PROG() local 188 struct local_storage *storage; BPF_PROG() local 211 struct local_storage *storage; BPF_PROG() local [all...] |
| H A D | mptcp_sock.c | 31 struct mptcp_storage *storage; in _sockops() local 51 storage = bpf_sk_storage_get(&socket_storage_map, sk, 0, in _sockops() 53 if (!storage) in _sockops() 56 storage->token = 0; in _sockops() 57 __builtin_memset(storage->ca_name, 0, TCP_CA_NAME_MAX); in _sockops() 58 storage->first = NULL; in _sockops() 64 storage = bpf_sk_storage_get(&socket_storage_map, msk, 0, in _sockops() 66 if (!storage) in _sockops() 69 storage->token = msk->token; in _sockops() 70 __builtin_memcpy(storage->ca_name, msk->ca_name, TCP_CA_NAME_MAX); in _sockops() [all …]
|
| H A D | tcp_rtt.c | 28 struct tcp_rtt_storage *storage; in _sockops() local 37 storage = bpf_sk_storage_get(&socket_storage_map, sk, 0, in _sockops() 39 if (!storage) in _sockops() 54 storage->invoked++; in _sockops() 56 storage->dsack_dups = tcp_sk->dsack_dups; in _sockops() 57 storage->delivered = tcp_sk->delivered; in _sockops() 58 storage->delivered_ce = tcp_sk->delivered_ce; in _sockops() 59 storage->icsk_retransmits = tcp_sk->icsk_retransmits; in _sockops() 61 storage->mrtt_us = ctx->args[0]; in _sockops() 62 storage->srtt = ctx->args[1]; in _sockops()
|
| H A D | sockopt_inherit.c | 56 struct sockopt_inherit *storage; in _getsockopt() local 65 storage = get_storage(ctx); in _getsockopt() 66 if (!storage) in _getsockopt() 71 optval[0] = storage->val; in _getsockopt() 87 struct sockopt_inherit *storage; in _setsockopt() local 96 storage = get_storage(ctx); in _setsockopt() 97 if (!storage) in _setsockopt() 100 storage->val = optval[0]; in _setsockopt()
|
| H A D | sockopt_sk.c | 34 struct sockopt_sk *storage; in _getsockopt() local 116 storage = bpf_sk_storage_get(&socket_storage_map, ctx->sk, 0, in _getsockopt() 118 if (!storage) in _getsockopt() 127 optval[0] = storage->val; in _getsockopt() 144 struct sockopt_sk *storage; in _setsockopt() local 221 storage = bpf_sk_storage_get(&socket_storage_map, ctx->sk, 0, in _setsockopt() 223 if (!storage) in _setsockopt() 226 storage->val = optval[0]; in _setsockopt()
|
| H A D | bench_local_storage_create.c | 14 struct storage { struct 22 __type(value, struct storage); argument 29 __type(value, struct storage); 45 struct storage *stg; in BPF_PROG() 65 struct storage *stg; in BPF_PROG()
|
| /linux/Documentation/bpf/ |
| H A D | map_sk_storage.rst | 11 ``BPF_MAP_TYPE_SK_STORAGE`` is used to provide socket-local storage for BPF 12 programs. A map of type ``BPF_MAP_TYPE_SK_STORAGE`` declares the type of storage 14 storage. The values for maps of type ``BPF_MAP_TYPE_SK_STORAGE`` are stored 16 allocating storage for a socket when requested and for freeing the storage when 22 socket-local storage. 37 Socket-local storage for ``map`` can be retrieved from socket ``sk`` using the 39 flag is used then ``bpf_sk_storage_get()`` will create the storage for ``sk`` 41 ``BPF_LOCAL_STORAGE_GET_F_CREATE`` to initialize the storage value, otherwise 42 it will be zero initialized. Returns a pointer to the storage on success, or 56 Socket-local storage for ``map`` can be deleted from socket ``sk`` using the [all …]
|
| H A D | map_cgrp_storage.rst | 9 storage for cgroups. It is only available with ``CONFIG_CGROUPS``. 21 To access the storage in a program, use ``bpf_cgrp_storage_get``:: 26 a new local storage will be created if one does not exist. 28 The local storage can be removed with ``bpf_cgrp_storage_delete``:: 81 The old cgroup storage map ``BPF_MAP_TYPE_CGROUP_STORAGE`` has been marked as 91 (2). ``BPF_MAP_TYPE_CGRP_STORAGE`` supports local storage for more than one 95 (3). ``BPF_MAP_TYPE_CGROUP_STORAGE_DEPRECATED`` allocates local storage at attach time so 96 ``bpf_get_local_storage()`` always returns non-NULL local storage. 97 ``BPF_MAP_TYPE_CGRP_STORAGE`` allocates local storage at runtime so 98 it is possible that ``bpf_cgrp_storage_get()`` may return null local storage. [all …]
|
| H A D | map_cgroup_storage.rst | 9 storage. It is only available with ``CONFIG_CGROUP_BPF``, and to programs that 11 storage is identified by the cgroup the program is attached to. 13 The map provide a local storage at the cgroup that the BPF program is attached 38 map will share the same storage. Otherwise, if the type is 42 To access the storage in a program, use ``bpf_get_local_storage``:: 51 ``struct bpf_spin_lock`` to synchronize the storage. See 128 storage. The non-per-CPU will have the same memory region for each storage. 130 Prior to Linux 5.9, the lifetime of a storage is precisely per-attachment, and 133 multiple attach types, and each attach creates a fresh zeroed storage. The 134 storage is freed upon detach. [all …]
|
| /linux/tools/perf/util/ |
| H A D | llvm.c | 105 struct symbol_lookup_storage *storage = disinfo; in symbol_lookup_callback() local 108 storage->branch_addr = value; in symbol_lookup_callback() 110 storage->pcrel_load_addr = value; in symbol_lookup_callback() 135 struct symbol_lookup_storage storage; in symbol__disassemble_llvm() local 152 disasm = LLVMCreateDisasm(triplet, &storage, /*tag_type=*/0, in symbol__disassemble_llvm() 159 disasm = LLVMCreateDisasm(triplet, &storage, /*tag_type=*/0, in symbol__disassemble_llvm() 199 storage.branch_addr = 0; in symbol__disassemble_llvm() 200 storage.pcrel_load_addr = 0; in symbol__disassemble_llvm() 213 if (storage.branch_addr != 0) { in symbol__disassemble_llvm() 215 storage.branch_addr); in symbol__disassemble_llvm() [all …]
|
| H A D | pfm.c | 288 struct strbuf storage; in print_libpfm_events() local 296 strbuf_init(&storage, 2048); in print_libpfm_events() 317 print_libpfm_event(print_cb, print_state, &pinfo, &info, &storage); in print_libpfm_events() 320 strbuf_release(&storage); in print_libpfm_events()
|
| H A D | libbfd.c | 91 long storage; in slurp_symtab() local 99 storage = bfd_get_symtab_upper_bound(abfd); in slurp_symtab() 100 if (storage == 0L) { in slurp_symtab() 101 storage = bfd_get_dynamic_symtab_upper_bound(abfd); in slurp_symtab() 104 if (storage < 0L) in slurp_symtab() 107 syms = malloc(storage); in slurp_symtab()
|
| /linux/drivers/iio/dac/ |
| H A D | ad5446.h | 15 #define _AD5446_CHANNEL(bits, storage, _shift, ext) { \ argument 25 .storagebits = (storage), \ 31 #define AD5446_CHANNEL(bits, storage, shift) \ argument 32 _AD5446_CHANNEL(bits, storage, shift, NULL) 34 #define AD5446_CHANNEL_POWERDOWN(bits, storage, shift) \ argument 35 _AD5446_CHANNEL(bits, storage, shift, ad5446_ext_info_powerdown)
|
| /linux/drivers/md/ |
| H A D | md-bitmap.c | 9 * - added disk storage for bitmap 53 * a '1' bit is read from storage at startup. 186 } storage; member 240 bitmap->storage.filemap != NULL; in bitmap_enabled() 432 struct bitmap_storage *store = &bitmap->storage; in __write_sb_page() 433 unsigned long num_pages = bitmap->storage.file_pages; in __write_sb_page() 642 struct bitmap_storage *store = &bitmap->storage; in filemap_write_page() 663 if (bitmap->storage.file) in md_bitmap_wait_writes() 688 if (!bitmap->storage.sb_page) /* no superblock */ in bitmap_update_sb() 690 sb = kmap_local_page(bitmap->storage in bitmap_update_sb() 2338 struct bitmap_storage *storage; bitmap_get_stats() local [all...] |
| /linux/drivers/usb/storage/ |
| H A D | Makefile | 14 obj-$(CONFIG_USB_STORAGE) += usb-storage.o 16 usb-storage-y := scsiglue.o protocol.o transport.o usb.o 17 usb-storage-y += initializers.o sierra_ms.o option_ms.o 18 usb-storage-y += usual-tables.o 19 usb-storage-$(CONFIG_USB_STORAGE_DEBUG) += debug.o
|
| /linux/drivers/net/ethernet/mellanox/mlxsw/ |
| H A D | core_acl_flex_keys.c | 13 /* For the purpose of the driver, define an internal storage scratchpad 15 * define an internal storage geometry. 446 __mlxsw_item_set32(values->storage.key, storage_item, 0, key_value); in mlxsw_afk_values_add_u32() 447 __mlxsw_item_set32(values->storage.mask, storage_item, 0, mask_value); in mlxsw_afk_values_add_u32() 466 __mlxsw_item_memcpy_to(values->storage.key, key_value, in mlxsw_afk_values_add_buf() 468 __mlxsw_item_memcpy_to(values->storage.mask, mask_value, in mlxsw_afk_values_add_buf() 476 char *storage, char *output, int diff) in mlxsw_sp_afk_encode_u32() 480 value = __mlxsw_item_get32(storage, storage_item, 0); in mlxsw_sp_afk_encode_u32() 486 char *storage, char *output) in mlxsw_sp_afk_encode_buf() 488 char *storage_data = __mlxsw_item_data(storage, storage_ite in mlxsw_sp_afk_encode_buf() 477 mlxsw_sp_afk_encode_u32(const struct mlxsw_item * storage_item,const struct mlxsw_item * output_item,char * storage,char * output,int diff) mlxsw_sp_afk_encode_u32() argument 487 mlxsw_sp_afk_encode_buf(const struct mlxsw_item * storage_item,const struct mlxsw_item * output_item,char * storage,char * output) mlxsw_sp_afk_encode_buf() argument 498 mlxsw_sp_afk_encode_one(const struct mlxsw_afk_element_inst * elinst,char * output,char * storage,int u32_diff) mlxsw_sp_afk_encode_one() argument [all...] |
| /linux/kernel/bpf/ |
| H A D | bpf_local_storage.c | 224 * is only supported in task local storage, where in bpf_selem_free_trace_rcu() 381 * Unlink an selem from map and local storage with lock held. in bpf_selem_unlink_storage() 427 * Unlink an selem from map and local storage with lockless fallback if callers in bpf_selem_unlink_map() 480 * Okay to skip clearing owner_storage and storage->owner in in check_flags() 554 struct bpf_local_storage *prev_storage, *storage; 560 err = mem_charge(smap, owner, sizeof(*storage)); in bpf_local_storage_update() 565 storage = bpf_map_kmalloc_nolock(&smap->map, sizeof(*storage), in bpf_local_storage_update() 568 storage = bpf_map_kzalloc(&smap->map, sizeof(*storage), in bpf_local_storage_update() 488 struct bpf_local_storage *prev_storage, *storage; bpf_local_storage_alloc() local [all...] |
| /linux/Documentation/block/ |
| H A D | writeback_cache_control.rst | 8 Many storage devices, especially in the consumer market, come with volatile 10 operating system before data actually has hit the non-volatile storage. This 12 system needs to force data out to the non-volatile storage when it performs 16 control the caching behavior of the storage device. These mechanisms are 24 the filesystem and will make sure the volatile cache of the storage device 27 storage before the flagged bio starts. In addition the REQ_PREFLUSH flag can be 38 signaled after the data has been committed to non-volatile storage.
|
| /linux/drivers/target/iscsi/ |
| H A D | Kconfig | 10 is software that makes local storage available over a storage network 11 to a SCSI initiator system. The supported storage network technologies
|
| /linux/Documentation/admin-guide/device-mapper/ |
| H A D | switch.rst | 18 Dell EqualLogic and some other iSCSI storage arrays use a distributed 19 frameless architecture. In this architecture, the storage group 20 consists of a number of distinct storage arrays ("members") each having 21 independent controllers, disk storage and network adapters. When a LUN 23 spreading are hidden from initiators connected to this storage system. 24 The storage group exposes a single target discovery portal, no matter 29 forwarding is invisible to the initiator. The storage layout is also 34 the storage group and initiators. In a multipathing configuration, it 38 robin algorithm to send I/O across all paths and let the storage array
|
| H A D | zero.rst | 13 than the amount of actual storage space available for that device. A user can 16 enough data has been written to fill up the actual storage space, the sparse 36 10GB of actual storage space available. If more than 10GB of data is written
|
| /linux/Documentation/usb/ |
| H A D | mass-storage.rst | 10 multiple logical units (LUNs). Backing storage for each LUN is 27 relation to mass storage function (or MSF) and different gadgets 35 The mass storage gadget accepts the following mass storage specific 41 backing storage for each logical unit. There may be at most 45 *BEWARE* that if a file is used as a backing storage, it may not 110 MS Windows mounts removable storage in “Removal optimised mode” by 196 Other gadgets using mass storage function 200 mass storage protocol. As a composite function, MSF may be used by 204 gadgets using MSF, except that support for mass storage related 209 For examples of how to include mass storage function in gadgets, one [all …]
|
| /linux/Documentation/devicetree/bindings/mmc/ |
| H A D | bluefield-dw-mshc.txt | 6 The Synopsys designware mobile storage host controller is used to interface 7 a SoC with storage medium such as eMMC or SD/MMC cards. This file documents
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-devices-virtual-misc-tdx_guest | 24 (RO) MRCONFIGID - 48-byte immutable storage typically used for 33 (RO) MROWNER - 48-byte immutable storage typically used for 41 (RO) MROWNERCONFIG - 48-byte immutable storage typically used
|
| /linux/drivers/net/ethernet/spacemit/ |
| H A D | k1_emac.c | 1185 struct rtnl_link_stats64 *storage) in emac_get_stats64() argument 1195 storage->tx_dropped = emac_get_stat_tx_drops(priv); in emac_get_stats64() 1201 storage->tx_packets = tx_stats->stats.tx_ok_pkts; in emac_get_stats64() 1202 storage->tx_bytes = tx_stats->stats.tx_ok_bytes; in emac_get_stats64() 1203 storage->tx_errors = tx_stats->stats.tx_err_pkts; in emac_get_stats64() 1205 storage->rx_packets = rx_stats->stats.rx_ok_pkts; in emac_get_stats64() 1206 storage->rx_bytes = rx_stats->stats.rx_ok_bytes; in emac_get_stats64() 1207 storage->rx_errors = rx_stats->stats.rx_err_total_pkts; in emac_get_stats64() 1208 storage->rx_crc_errors = rx_stats->stats.rx_crc_err_pkts; in emac_get_stats64() 1209 storage in emac_get_stats64() [all...] |