/linux/tools/perf/util/ |
H A D | data.c | 1 // SPDX-License-Identifier: GPL-2.0 16 #include "data.h" 25 while (--nr >= 0) { in close_dir() 27 zfree(&files[nr].path); in close_dir() 32 void perf_data__close_dir(struct perf_data *data) in perf_data__close_dir() argument 34 close_dir(data->di in perf_data__close_dir() 37 perf_data__create_dir(struct perf_data * data,int nr) perf_data__create_dir() argument 88 perf_data__open_dir(struct perf_data * data) perf_data__open_dir() argument 116 char path[PATH_MAX]; perf_data__open_dir() local 161 perf_data__update_dir(struct perf_data * data) perf_data__update_dir() argument 181 check_pipe(struct perf_data * data) check_pipe() argument 220 check_backup(struct perf_data * data) check_backup() argument 254 is_dir(struct perf_data * data) is_dir() argument 264 open_file_read(struct perf_data * data) open_file_read() argument 306 open_file_write(struct perf_data * data) open_file_write() argument 321 open_file(struct perf_data * data) open_file() argument 337 open_file_dup(struct perf_data * data) open_file_dup() argument 346 open_dir(struct perf_data * data) open_dir() argument 370 perf_data__open(struct perf_data * data) perf_data__open() argument 391 perf_data__close(struct perf_data * data) perf_data__close() argument 404 perf_data__read(struct perf_data * data,void * buf,size_t size) perf_data__read() argument 420 perf_data__write(struct perf_data * data,void * buf,size_t size) perf_data__write() argument 431 perf_data__switch(struct perf_data * data,const char * postfix,size_t pos,bool at_exit,char ** new_filepath) perf_data__switch() argument 469 perf_data__size(struct perf_data * data) perf_data__size() argument 486 perf_data__make_kcore_dir(struct perf_data * data,char * buf,size_t buf_sz) perf_data__make_kcore_dir() argument 500 has_kcore_dir(const char * path) has_kcore_dir() argument 519 perf_data__kallsyms_name(struct perf_data * data) perf_data__kallsyms_name() argument 538 perf_data__guest_kallsyms_name(struct perf_data * data,pid_t machine_pid) perf_data__guest_kallsyms_name() argument 557 is_perf_data(const char * path) is_perf_data() argument [all...] |
H A D | cpumap.c | 1 // SPDX-License-Identifier: GPL-2.0 27 const struct perf_record_cpu_map_data *data) in perf_record_cpu_map_data__test_bit() argument 34 return (data->mask32_data.long_size == 4) in perf_record_cpu_map_data__test_bit() 35 ? (bit_word32 < data->mask32_data.nr) && in perf_record_cpu_map_data__test_bit() 36 (data->mask32_dat in perf_record_cpu_map_data__test_bit() 42 perf_record_cpu_map_data__read_one_mask(const struct perf_record_cpu_map_data * data,int i,unsigned long * bitmap) perf_record_cpu_map_data__read_one_mask() argument 65 cpu_map__from_entries(const struct perf_record_cpu_map_data * data) cpu_map__from_entries() argument 89 cpu_map__from_mask(const struct perf_record_cpu_map_data * data) cpu_map__from_mask() argument 116 cpu_map__from_range(const struct perf_record_cpu_map_data * data) cpu_map__from_range() argument 136 cpu_map__new_data(const struct perf_record_cpu_map_data * data) cpu_map__new_data() argument 190 char path[PATH_MAX]; cpu__get_topology_int() local 237 cpu_aggr_map__new(const struct perf_cpu_map * cpus,aggr_cpu_id_get_t get_id,void * data,bool needs_sort) cpu_aggr_map__new() argument 289 aggr_cpu_id__die(struct perf_cpu cpu,void * data) aggr_cpu_id__die() argument 319 aggr_cpu_id__cluster(struct perf_cpu cpu,void * data) aggr_cpu_id__cluster() argument 342 aggr_cpu_id__core(struct perf_cpu cpu,void * data) aggr_cpu_id__core() argument 361 aggr_cpu_id__cpu(struct perf_cpu cpu,void * data) aggr_cpu_id__cpu() argument 394 get_max_num(char * path,int * max) get_max_num() argument 429 char path[PATH_MAX]; set_max_cpu_num() local 469 char path[PATH_MAX]; set_max_node_num() local 553 char path[PATH_MAX]; cpu__setup_cpunode_map() local [all...] |
/linux/tools/virtio/virtio-trace/ |
H A D | README | 1 Trace Agent for virtio-trace 4 Trace agent is a user tool for sending trace data of a guest to a Host in low 6 - splice a page of ring-buffer to read_pipe without memory copying 7 - splice the page from write_pipe to virtio-console without memory copying 8 - write trace data to stdout by using -o option 9 - controlled by start/stop orders from a Host 18 5) The read/write threads start to read trace data from ring-buffers and 19 write the data to virtio-serial. 21 stop to read trace data. 28 Makefile: Makefile of trace agent for virtio-trace [all …]
|
/linux/net/iucv/ |
H A D | iucv.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 20 * CP Programming Service, IBM document # SC24-5760 53 * IPSRCCLS - Indicates you have specified a source class. 54 * IPTRGCLS - Indicates you have specified a target class. 55 * IPFGPID - Indicates you have specified a pathid. 56 * IPFGMID - Indicates you have specified a message ID. 57 * IPNORPY - Indicates a one-way message. No reply expected. 58 * IPALL - Indicates that all paths are affected. 103 dev->bus = &iucv_bus; in iucv_alloc_device() 104 dev->parent = iucv_root; in iucv_alloc_device() [all …]
|
/linux/security/apparmor/ |
H A D | mount.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * Copyright (C) 1998-2008 Novell/SUSE 8 * Copyright 2009-2017 Canonical Ltd. 23 #include "include/path.h" 84 * audit_cb - call back for mount specific audit fields 93 if (ad->mnt.type) { in audit_cb() 95 audit_log_untrustedstring(ab, ad->mnt.type); in audit_cb() 97 if (ad->mnt.src_name) { in audit_cb() 99 audit_log_untrustedstring(ab, ad->mnt.src_name); in audit_cb() 101 if (ad->mnt.trans) { in audit_cb() [all …]
|
/linux/drivers/net/wireless/realtek/rtw89/ |
H A D | acpi.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2 /* Copyright(c) 2021-2023 Realtek Corporation 24 switch (obj->type) { in rtw89_acpi_traversal_object() 27 pos[len] = obj->integer.value; in rtw89_acpi_traversal_object() 32 if (unlikely(obj->buffer.length == 0)) { in rtw89_acpi_traversal_object() 39 memcpy(pos, obj->buffer.pointer, obj->buffer.length); in rtw89_acpi_traversal_object() 41 len += obj->buffer.length; in rtw89_acpi_traversal_object() 44 if (unlikely(obj->package.count == 0)) { in rtw89_acpi_traversal_object() 50 for (i = 0; i < obj->package.count; i++) { in rtw89_acpi_traversal_object() 51 elm = &obj->package.elements[i]; in rtw89_acpi_traversal_object() [all …]
|
H A D | rtw8922a_rfk.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 14 enum rtw89_rf_path path) in rtw8922a_tssi_cont_en() argument 19 rtw89_phy_write32_mask(rtwdev, tssi_trk_man[path], B_TSSI_CONT_EN, 0); in rtw8922a_tssi_cont_en() 21 rtw89_phy_write32_mask(rtwdev, tssi_trk_man[path], B_TSSI_CONT_EN, 1); in rtw8922a_tssi_cont_en() 26 if (rtwdev->mlo_dbcc_mode == MLO_1_PLUS_1_1RF) { in rtw8922a_tssi_cont_en_phyidx() 42 struct rtw89_hal *hal = &rtwdev->hal; in rtw8922a_ctl_band_ch_bw() 47 u8 path; in rtw8922a_ctl_band_ch_bw() local 64 for (path = 0; path < RF_PATH_NUM_8922A; path++) { in rtw8922a_ctl_band_ch_bw() 65 if (!(kpath & BIT(path))) in rtw8922a_ctl_band_ch_bw() 69 if (rf_reg[path][i] == INV_RF_DATA) { in rtw8922a_ctl_band_ch_bw() [all …]
|
/linux/arch/powerpc/platforms/pseries/ |
H A D | of_helpers.c | 1 // SPDX-License-Identifier: GPL-2.0 11 * pseries_of_derive_parent - basically like dirname(1) 12 * @path: the full_name of a node to be added to the tree 15 * described by path. E.g., for path = "/foo/bar", returns 18 struct device_node *pseries_of_derive_parent(const char *path) in pseries_of_derive_parent() argument 25 tail = kbasename(path) - 1; in pseries_of_derive_parent() 27 /* reject if path is "/" */ in pseries_of_derive_parent() 28 if (!strcmp(path, "/")) in pseries_of_derive_parent() 29 return ERR_PTR(-EINVAL); in pseries_of_derive_parent() 31 if (tail > path) { in pseries_of_derive_parent() [all …]
|
/linux/sound/soc/intel/avs/ |
H A D | pcm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // Copyright(c) 2021-2022 Intel Corporation 14 #include <sound/soc-acpi.h> 15 #include <sound/soc-acpi-intel-match.h> 16 #include <sound/soc-componen 26 struct avs_path *path; global() member 69 struct avs_dma_data *data = container_of(work, struct avs_dma_data, period_elapsed_work); avs_period_elapsed_work() local 78 struct avs_dma_data *data = snd_soc_dai_get_dma_data(dai, substream); avs_period_elapsed() local 88 struct avs_dma_data *data; avs_hw_constraints_init() local 124 struct avs_dma_data *data; avs_dai_startup() local 152 struct avs_dma_data *data; avs_dai_shutdown() local 172 struct avs_dma_data *data; avs_dai_hw_params() local 173 struct avs_path *path; avs_dai_hw_params() local 221 struct avs_dma_data *data; avs_dai_prepare() local 243 struct avs_dma_data *data; avs_dai_nonhda_be_hw_params() local 255 struct avs_dma_data *data; avs_dai_nonhda_be_hw_free() local 272 struct avs_dma_data *data; avs_dai_nonhda_be_trigger() local 331 struct avs_dma_data *data; __avs_dai_hda_be_startup() local 355 struct avs_dma_data *data; avs_dai_hda_be_startup() local 398 struct avs_dma_data *data = snd_soc_dai_get_dma_data(dai, substream); avs_dai_hda_be_shutdown() local 407 struct avs_dma_data *data = snd_soc_dai_get_dma_data(dai, substream); avs_dai_althda_be_shutdown() local 416 struct avs_dma_data *data; avs_dai_hda_be_hw_params() local 429 struct avs_dma_data *data; avs_dai_hda_be_hw_free() local 454 struct avs_dma_data *data; avs_dai_hda_be_prepare() local 491 struct avs_dma_data *data; avs_dai_hda_be_trigger() local 618 struct avs_dma_data *data; avs_dai_fe_startup() local 650 struct avs_dma_data *data; avs_dai_fe_shutdown() local 664 struct avs_dma_data *data; avs_dai_fe_hw_params() local 708 struct avs_dma_data *data; __avs_dai_fe_hw_free() local 747 struct avs_dma_data *data; avs_dai_fe_prepare() local 861 struct avs_dma_data *data; avs_dai_fe_trigger() local 1083 avs_dai_resume_hw_params(struct snd_soc_dai * dai,struct avs_dma_data * data) avs_dai_resume_hw_params() argument 1099 avs_dai_resume_fe_prepare(struct snd_soc_dai * dai,struct avs_dma_data * data) avs_dai_resume_fe_prepare() argument 1131 avs_dai_resume_be_prepare(struct snd_soc_dai * dai,struct avs_dma_data * data) avs_dai_resume_be_prepare() argument 1142 avs_dai_suspend_fe_hw_free(struct snd_soc_dai * dai,struct avs_dma_data * data) avs_dai_suspend_fe_hw_free() argument 1163 avs_dai_suspend_be_hw_free(struct snd_soc_dai * dai,struct avs_dma_data * data) avs_dai_suspend_be_hw_free() argument 1178 struct avs_dma_data *data; avs_component_pm_op() local 1323 struct avs_dma_data *data; avs_component_pointer() local [all...] |
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/acr/ |
H A D | lsfw.c | 31 nvkm_blob_dtor(&lsfw->img); in nvkm_acr_lsfw_del() 32 kfree(lsfw->sigs); in nvkm_acr_lsfw_del() 33 nvkm_firmware_put(lsfw->sig); in nvkm_acr_lsfw_del() 34 list_del(&lsfw->head); in nvkm_acr_lsfw_del() 42 list_for_each_entry_safe(lsfw, lsft, &acr->lsfw, head) { in nvkm_acr_lsfw_del_all() 51 list_for_each_entry(lsfw, &acr->lsfw, head) { in nvkm_acr_lsfw_get() 52 if (lsfw->id == id) in nvkm_acr_lsfw_get() 64 if (!acr || list_empty(&acr->hsfw)) in nvkm_acr_lsfw_add() 65 return ERR_PTR(-ENOSYS); in nvkm_acr_lsfw_add() 68 if (lsfw && lsfw->func) { in nvkm_acr_lsfw_add() [all …]
|
/linux/arch/mips/include/asm/octeon/ |
H A D | cvmx-spi.h | 7 * Copyright (c) 2003-2008 Cavium Networks 14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 35 #include <asm/octeon/cvmx-gmxx-defs.h> 37 /* CSR typedefs have been moved to cvmx-csr-*.h */ 62 /** Called for calendar data synchronization */ 89 * can operate as a full duplex (both Tx and Rx data paths 90 * active) or as a halfplex (either the Tx data path is 91 * active or the Rx data path is active, but not both). 107 * can operate as a full duplex (both Tx and Rx data paths [all …]
|
/linux/tools/usb/ |
H A D | p9_fwd.py | 2 # SPDX-License-Identifier: GPL-2.0 17 The string is a Path representation of the position of the USB device on the USB bus tree. 19 This path is used to find a USB device on the bus or all devices connected to a HUB. 20 … The path is made up of the number of the USB controller followed be the ports of the HUB tree.""" 23 return f"{dev.bus}-{dev_path}" 32 def _log_hexdump(data): argument 36 for c in range(0, len(data), L): 37 chars = data[c : c + L] 43 def __init__(self, server, vid, pid, path): argument 54 if path is not None: [all …]
|
/linux/include/video/ |
H A D | mmp_disp.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 66 /* parameters used by path/overlay */ 83 * pitch[1]/pitch[2]: video u/v pitch if non-zero 93 /* path related para: mode */ 143 /* overlay describes a z-order indexed slot in each path. */ 147 struct mmp_path *path; member 149 /* overlay info: private data */ 175 /* path name used to connect to proper path configed */ 189 int (*check_status)(struct mmp_path *path); 190 struct mmp_overlay *(*get_overlay)(struct mmp_path *path, [all …]
|
/linux/arch/parisc/kernel/ |
H A D | drivers.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Copyright (c) 2001-2023 Helge Deller <deller@gmx.de> 9 * Copyright (c) 2004-2005 Thibaut VARENE <varenet@parisc-linux.org> 16 * - 715/Mirage device paths have a dummy device between Lasi and its children 17 * - The EISA adapter may show up as a sibling or child of Wax 18 * - Dino has an optionally functional serial port. If firmware enables it, 21 * - Dino has both parisc and pci devices as children 22 * - parisc devices are discovered in a random order, including children 33 #include <linux/dma-map-ops.h> 37 #include <asm/parisc-device.h> [all …]
|
/linux/fs/btrfs/ |
H A D | uuid-tree.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include "disk-io.h" 15 #include "uuid-tree.h" 20 key->type = type; in btrfs_uuid_to_key() 21 key->objectid = get_unaligned_le64(uuid); in btrfs_uuid_to_key() 22 key->offset = get_unaligned_le64(uuid + sizeof(u64)); in btrfs_uuid_to_key() 25 /* return -ENOENT for !found, < 0 for errors, or 0 if an item was found */ 30 struct btrfs_path *path = NULL; in btrfs_uuid_tree_lookup() local 38 ret = -ENOENT; in btrfs_uuid_tree_lookup() 42 path = btrfs_alloc_path(); in btrfs_uuid_tree_lookup() [all …]
|
H A D | backref.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include "disk-io.h" 14 #include "delayed-ref.h" 17 #include "tree-mod-log.h" 20 #include "extent-tree.h" 22 #include "tree-checker.h" 42 u64 offset = key->offset; in check_extent_in_eb() 48 if (!ctx->ignore_extent_item_pos && in check_extent_in_eb() 56 if (ctx->extent_item_pos < data_offset || in check_extent_in_eb() 57 ctx->extent_item_pos >= data_offset + data_len) in check_extent_in_eb() [all …]
|
/linux/tools/bootconfig/ |
H A D | main.c | 1 // SPDX-License-Identifier: GPL-2.0 53 while (cnode && xbc_node_is_key(cnode) && !cnode->next) { in xbc_show_compact_tree() 66 if (vnode && xbc_node_is_value(vnode) && vnode->next) in xbc_show_compact_tree() 85 if (cnode->next) { in xbc_show_compact_tree() 94 if (node->next) { in xbc_show_compact_tree() 98 while (!node->next) { in xbc_show_compact_tree() 102 if (!xbc_node_get_child(node)->next) in xbc_show_compact_tree() 105 depth--; in xbc_show_compact_tree() 145 return -ENOMEM; in load_xbc_fd() 149 return -errno; in load_xbc_fd() [all …]
|
/linux/fs/smb/client/ |
H A D | reparse.c | 1 // SPDX-License-Identifier: GPL-2.0-only 41 switch (cifs_symlink_type(CIFS_SB(inode->i_sb))) { in create_reparse_symlink() 49 return -EOPNOTSUPP; in create_reparse_symlink() 58 struct cifs_open_info_data data = {}; in create_native_symlink() local 59 struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); in create_native_symlink() 60 const char *symroot = cifs_sb->ctx->symlinkroot; in create_native_symlink() 63 __le16 *path = NULL; in create_native_symlink() local 72 return -ENAMETOOLONG; in create_native_symlink() 76 rc = -ENOMEM; in create_native_symlink() 80 data = (struct cifs_open_info_data) { in create_native_symlink() [all …]
|
/linux/security/keys/ |
H A D | big_key.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (C) 2017-2020 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. 16 #include <keys/user-type.h> 17 #include <keys/big_key-type.h> 24 u8 *data; member 25 struct path path; member 29 (struct big_key_payload *)((payload).data) 32 * If the data is under this limit, there's no point creating a shm file to 34 * least as large as the data. 40 * arbitrary blob of data as the payload [all …]
|
/linux/tools/perf/Documentation/ |
H A D | perf-kvm.txt | 1 perf-kvm(1) 5 ---- 6 perf-kvm - Tool to trace/measure kvm guest os 9 -------- 11 'perf kvm' [--host] [--guest] [--guestmount=<path> 12 [--guestkallsyms=<path> --guestmodules=<path> | --guestvmlinux=<path>]] 13 {top|record|report|diff|buildid-list} [<options>] 14 'perf kvm' [--host] [--guest] [--guestkallsyms=<path> --guestmodules=<path> 15 | --guestvmlinux=<path>] {top|record|report|diff|buildid-list|stat} [<options>] 19 ----------- [all …]
|
/linux/drivers/s390/cio/ |
H A D | device_pgid.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * CCW device PGID and path verification I/O handling. 32 * Process path verification data and report result. 36 struct subchannel *sch = to_subchannel(cdev->dev.parent); in verify_done() 37 struct ccw_dev_id *id = &cdev->private->dev_id; in verify_done() 38 int mpath = cdev->private->flags.mpath; in verify_done() 39 int pgroup = cdev->private->flags.pgroup; in verify_done() 44 if (sch->config.mp != mpath) { in verify_done() 45 sch->config.mp = mpath; in verify_done() 50 "vpm=%02x\n", id->ssid, id->devno, rc, pgroup, mpath, in verify_done() [all …]
|
/linux/tools/testing/selftests/alsa/ |
H A D | conf.c | 1 // SPDX-License-Identifier: GPL-2.0 18 #include "alsa-local.h" 86 ksft_print_msg("Unable to parse custom alsa-lib configuration: %s\n", in get_alsalib_config() 97 for (conf = conf_cards; conf; conf = conf->next) { in conf_data_by_card() 98 if (conf->card == card) { in conf_data_by_card() 101 conf->filename, card); in conf_data_by_card() 142 char path[PATH_MAX], link[PATH_MAX + 1]; in sysfs_get() local 150 snprintf(path, sizeof(path), "%s/%s", sysfs_root, id); in sysfs_get() 151 if (lstat(path, &sb) != 0) in sysfs_get() 154 len = readlink(path, link, sizeof(link) - 1); in sysfs_get() [all …]
|
/linux/fs/smb/server/ |
H A D | vfs.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 12 #include <linux/backing-dev.h> 45 if (!test_share_config_flag(work->tcon->share_conf, in ksmbd_vfs_inherit_owner() 53 * ksmbd_vfs_lock_parent() - lock parent dentry if it is stable 57 * Returns: %0 on success, %-ENOENT if the parent dentry is not stable 62 if (child->d_parent != parent) { in ksmbd_vfs_lock_parent() 64 return -ENOENT; in ksmbd_vfs_lock_parent() 72 struct path *path, bool do_lock) in ksmbd_vfs_path_lookup() argument 76 const struct path *root_share_path = &share_conf->vfs_path; in ksmbd_vfs_path_lookup() 81 pathname = share_conf->path; in ksmbd_vfs_path_lookup() [all …]
|
/linux/fs/coda/ |
H A D | pioctl.c | 1 // SPDX-License-Identifier: GPL-2.0 47 return (mask & MAY_EXEC) ? -EACCES : 0; in coda_ioctl_permission() 53 struct path path; in coda_pioctl() local 55 struct PioctlData data; in coda_pioctl() local 60 /* get the Pioctl data arguments from user space */ in coda_pioctl() 61 if (copy_from_user(&data, (void __user *)user_data, sizeof(data))) in coda_pioctl() 62 return -EINVAL; in coda_pioctl() 68 error = user_path_at(AT_FDCWD, data.path, in coda_pioctl() 69 data.follow ? LOOKUP_FOLLOW : 0, &path); in coda_pioctl() 73 target_inode = d_inode(path.dentry); in coda_pioctl() [all …]
|
/linux/drivers/net/wireless/realtek/rtw88/ |
H A D | phy.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 2 /* Copyright(c) 2018-2019 Realtek Corporation 31 u32 addr, u32 mask, u32 data); 33 u32 addr, u32 mask, u32 data); 35 u32 addr, u32 mask, u32 data); 41 u32 addr, u32 data); 43 u32 addr, u32 data); 45 u32 addr, u32 data); 47 u32 addr, u32 data); 55 void rtw_phy_pwrtrack_avg(struct rtw_dev *rtwdev, u8 thermal, u8 path); [all …]
|