Home
last modified time | relevance | path

Searched +full:rc +full:- +full:map +full:- +full:name (Results 1 – 25 of 979) sorted by relevance

12345678910>>...40

/openbmc/linux/include/media/
H A Drc-map.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * rc-map.h - define RC map names used by RC drivers
109 /* All kernel-based codecs have encoders and decoders */
135 * struct rc_map_table - represents a scancode/keycode pair
146 * struct rc_map - represents a keycode map table
154 * @name: name of the key map table
163 const char *name; member
168 * struct rc_map_list - list of the registered &rc_map maps
171 * @map: pointer to struct &rc_map
175 struct rc_map map; member
[all …]
/openbmc/linux/drivers/accel/habanalabs/common/
H A Dstate_dump.c1 // SPDX-License-Identifier: GPL-2.0
13 * hl_format_as_binary - helper function, format an integer as binary
37 buf_len -= 3; in hl_format_as_binary()
43 bit = n & (1 << (sizeof(n) * BITS_PER_BYTE - 1)); in hl_format_as_binary()
58 * resize_to_fit - helper function, resize buffer to fit given amount of data
79 return -ENOMEM; in resize_to_fit()
89 * hl_snprintf_resize() - print formatted data to buffer, resize as needed
110 int rc; in hl_snprintf_resize() local
113 return -EINVAL; in hl_snprintf_resize()
116 length = vsnprintf(*buf + *offset, *size - *offset, format, args); in hl_snprintf_resize()
[all …]
/openbmc/linux/fs/jfs/
H A Dnamei.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) International Business Machines Corp., 2000-2004
4 * Portions Copyright (C) Christoph Hellwig, 2001-2002
31 * NAME: free_ea_wmap(inode)
33 * FUNCTION: free uncommitted extended attributes from working map
38 dxd_t *ea = &JFS_IP(inode)->ea; in free_ea_wmap()
40 if (ea->flag & DXD_EXTENT) { in free_ea_wmap()
45 ea->flag = 0; in free_ea_wmap()
49 * NAME: jfs_create(dip, dentry, mode)
52 * with name = <from dentry> and mode = <mode>
[all …]
H A Djfs_imap.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) International Business Machines Corp., 2000-2004
7 * jfs_imap.c: inode allocation map manager
16 * There is also a inode lock for the inode map inode. A read lock needs to
17 * be taken whenever an IAG is read from the map or the global level
26 * The control page of the inode map is read into memory by diMount().
51 #define IAGFREE_LOCK_INIT(imap) mutex_init(&imap->im_freelock)
52 #define IAGFREE_LOCK(imap) mutex_lock(&imap->im_freelock)
53 #define IAGFREE_UNLOCK(imap) mutex_unlock(&imap->im_freelock)
56 #define AG_LOCK_INIT(imap,index) mutex_init(&(imap->im_aglock[index]))
[all …]
H A Djfs_mount.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) International Business Machines Corp., 2000-2004
18 * allocation map inode" (aka fileset inode):
21 * allocation map inode" (aka aggregate inode) where each inode
23 * on-disk inode in uniform way at both aggregate and fileset level;
33 * mntvfs -> fileset ipimap+ -> aggregate ipbmap -> aggregate ipaimap;
34 * fileset vfs -> vp(1) <-> ... <-> vp(n) <->vproot;
58 * NAME: jfs_mount(sb)
62 * PARAMETER: sb - super block
64 * RETURN: -EBUSY - device already mounted or open for write
[all …]
/openbmc/linux/lib/
H A Ddevres.c1 // SPDX-License-Identifier: GPL-2.0
62 * devm_ioremap - Managed ioremap()
64 * @offset: Resource address to map
65 * @size: Size of map
67 * Managed ioremap(). Map is automatically unmapped on driver detach.
77 * devm_ioremap_uc - Managed ioremap_uc()
79 * @offset: Resource address to map
80 * @size: Size of map
82 * Managed ioremap_uc(). Map is automatically unmapped on driver detach.
92 * devm_ioremap_wc - Managed ioremap_wc()
[all …]
H A Ddynamic_debug.c78 …"( 0 = off (default), 1 = module add/rm, 2 = >control summary, 3 = parsing, 4 = per-site changes)"…
83 int skip = strlen(__FILE__) - strlen("lib/dynamic_debug.c"); in trim_prefix()
106 char *p = fb->buf; in ddebug_describe_flags()
112 if (p == fb->buf) in ddebug_describe_flags()
116 return fb->buf; in ddebug_describe_flags()
135 if (query->format) { in vpr_info_dq()
136 fmtlen = strlen(query->format); in vpr_info_dq()
137 while (fmtlen && query->format[fmtlen - 1] == '\n') in vpr_info_dq()
138 fmtlen--; in vpr_info_dq()
141 v3pr_info("%s: func=\"%s\" file=\"%s\" module=\"%s\" format=\"%.*s\" lineno=%u-%u class=%s\n", in vpr_info_dq()
[all …]
/openbmc/linux/drivers/soc/aspeed/
H A Daspeed-lpc-ctrl.c1 // SPDX-License-Identifier: GPL-2.0-or-later
17 #include <linux/aspeed-lpc-ctrl.h>
19 #define DEVICE_NAME "aspeed-lpc-ctrl"
45 return container_of(file->private_data, struct aspeed_lpc_ctrl, in file_aspeed_lpc_ctrl()
52 unsigned long vsize = vma->vm_end - vma->vm_start; in aspeed_lpc_ctrl_mmap()
53 pgprot_t prot = vma->vm_page_prot; in aspeed_lpc_ctrl_mmap()
55 if (vma->vm_pgoff + vma_pages(vma) > lpc_ctrl->mem_size >> PAGE_SHIFT) in aspeed_lpc_ctrl_mmap()
56 return -EINVAL; in aspeed_lpc_ctrl_mmap()
61 if (remap_pfn_range(vma, vma->vm_start, in aspeed_lpc_ctrl_mmap()
62 (lpc_ctrl->mem_base >> PAGE_SHIFT) + vma->vm_pgoff, in aspeed_lpc_ctrl_mmap()
[all …]
/openbmc/linux/drivers/of/
H A Dbase.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Copyright (C) 1996-2005 Paul Mackerras.
58 bool of_node_name_eq(const struct device_node *np, const char *name) in of_node_name_eq() argument
66 node_name = kbasename(np->full_name); in of_node_name_eq()
67 len = strchrnul(node_name, '@') - node_name; in of_node_name_eq()
69 return (strlen(name) == len) && (strncmp(node_name, name, len) == 0); in of_node_name_eq()
78 return strncmp(kbasename(np->full_nam in of_node_name_prefix()
193 __of_find_property(const struct device_node * np,const char * name,int * lenp) __of_find_property() argument
212 of_find_property(const struct device_node * np,const char * name,int * lenp) of_find_property() argument
270 __of_get_property(const struct device_node * np,const char * name,int * lenp) __of_get_property() argument
281 of_get_property(const struct device_node * np,const char * name,int * lenp) of_get_property() argument
321 __of_device_is_compatible(const struct device_node * device,const char * compat,const char * type,const char * name) __of_device_is_compatible() argument
407 int rc = 0; of_machine_is_compatible() local
710 of_get_child_by_name(const struct device_node * node,const char * name) of_get_child_by_name() argument
732 const char *name = kbasename(child->full_name); __of_find_node_by_path() local
834 of_find_node_by_name(struct device_node * from,const char * name) of_find_node_by_name() argument
1248 int rc, cur_index = 0; __of_parse_phandle_with_args() local
1347 const __be32 *map, *mask, *pass; of_parse_phandle_with_args_map() local
1501 int rc, cur_index = 0; of_count_phandle_with_args() local
1555 int rc = 0; __of_add_property() local
1591 int rc; of_add_property() local
1607 int rc = -ENODEV; __of_remove_property() local
1638 int rc; of_remove_property() local
1701 int rc; of_update_property() local
1747 const char *name = NULL; of_alias_scan() local
1867 of_console_check(struct device_node * dn,char * name,int index) of_console_check() argument
1961 const __be32 *map = NULL; of_map_id() local
[all...]
H A Dirq.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
8 * Copyright (C) 1996-2001 Cort Dougan
31 * irq_of_parse_and_map - Parse and map an interrupt into linux virq space
33 * @index: Index of the interrupt to map
50 * of_irq_find_parent - Given a device node, find its interrupt parent node
65 if (of_property_read_u32(child, "interrupt-paren in of_irq_find_parent()
175 int i, rc = -EINVAL; of_irq_parse_raw() local
422 const char *name = NULL; of_irq_to_resource() local
452 int rc; of_irq_get() local
483 of_irq_get_byname(struct device_node * dev,const char * name) of_irq_get_byname() argument
[all...]
/openbmc/linux/drivers/reset/hisilicon/
H A Dreset-hi3660.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (c) 2016-2017 Linaro Ltd.
4 * Copyright (c) 2016-2017 HiSilicon Technologies Co., Ltd.
12 #include <linux/reset-controller.h>
16 struct regmap *map; member
25 struct hi3660_reset_controller *rc = to_hi3660_reset_controller(rcdev); in hi3660_reset_program_hw() local
30 return regmap_write(rc->map, offset, mask); in hi3660_reset_program_hw()
32 return regmap_write(rc->map, offset + 4, mask); in hi3660_reset_program_hw()
70 offset = reset_spec->args[0]; in hi3660_reset_xlate()
71 bit = reset_spec->args[1]; in hi3660_reset_xlate()
[all …]
/openbmc/linux/drivers/media/rc/
H A Drc-main.c1 // SPDX-License-Identifier: GPL-2.0
2 // rc-main.c - Remote Controller core module
4 // Copyright (C) 2009-2010 by Mauro Carvalho Chehab
8 #include <media/rc-core.h>
18 #include "rc-core-priv.h"
25 const char *name; member
29 [RC_PROTO_UNKNOWN] = { .name = "unknown", .repeat_period = 125 },
30 [RC_PROTO_OTHER] = { .name = "other", .repeat_period = 125 },
31 [RC_PROTO_RC5] = { .name = "rc-5",
33 [RC_PROTO_RC5X_20] = { .name = "rc-5x-20",
[all …]
/openbmc/linux/Documentation/devicetree/bindings/media/
H A Dmtk-cir.txt1 Device-Tree bindings for Mediatek consumer IR controller
5 - compatible : Should be
6 "mediatek,mt7623-cir": for MT7623 SoC
7 "mediatek,mt7622-cir": for MT7622 SoC
8 - clocks : list of clock specifiers, corresponding to
9 entries in clock-names property;
10 - clock-names : should contain
11 - "clk" entries: for MT7623 SoC
12 - "clk", "bus" entries: for MT7622 SoC
13 - interrupts : should contain IR IRQ number;
[all …]
H A Dhix5hd2-ir.txt1 Device-Tree bindings for hix5hd2 ir IP
4 - compatible: Should contain "hisilicon,hix5hd2-ir", or:
5 - "hisilicon,hi3796cv300-ir" for Hi3796CV300 IR device.
6 - reg: Base physical address of the controller and length of memory
8 - interrupts: interrupt-specifier for the sole interrupt generated by
11 - clocks: clock phandle and specifier pair.
14 - linux,rc-map-name: see rc.txt file in the same directory.
15 - hisilicon,power-syscon: DEPRECATED. Don't use this in new dts files.
21 compatible = "hisilicon,hix5hd2-ir";
25 linux,rc-map-name = "rc-tivo";
/openbmc/linux/drivers/mtd/
H A Drfd_ftl.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rfd_ftl.c -- resident flash disk (flash translation layer)
95 struct block *block = &part->blocks[block_no]; in build_block_map()
98 block->offset = part->block_size * block_no; in build_block_map()
100 if (le16_to_cpu(part->header_cache[0]) != RFD_MAGIC) { in build_block_map()
101 block->state = BLOCK_UNUSED; in build_block_map()
102 return -ENOENT; in build_block_map()
105 block->state = BLOCK_OK; in build_block_map()
107 for (i=0; i<part->data_sectors_per_block; i++) { in build_block_map()
110 entry = le16_to_cpu(part->header_cache[HEADER_MAP_OFFSET + i]); in build_block_map()
[all …]
/openbmc/qemu/
H A Dqemu-keymap.c10 * See the COPYING file in the top-level directory.
33 /* ------------------------------------------------------------------------ */
49 char name[64]; in print_sym() local
54 xkb_keysym_get_name(sym, name, sizeof(name)); in print_sym()
57 fprintf(outfile, "%s 0x%02x%s\n", name, qcode_to_number(qcode), mod); in print_sym()
60 static void walk_map(struct xkb_keymap *map, xkb_keycode_t code, void *data) in walk_map() argument
65 char name[64]; in walk_map() local
70 * map xkb keycode -> QKeyCode in walk_map()
74 evdev = code - 8; in walk_map()
79 xkb_keysym_get_name(kbase, name, sizeof(name)); in walk_map()
[all …]
/openbmc/pldm/pldmtool/
H A Dpldm_fru_cmd.cpp47 auto rc = encode_get_fru_record_table_metadata_req( in createRequestMsg() local
49 return {rc, requestMsg}; in createRequestMsg()
60 auto rc = decode_get_fru_record_table_metadata_resp( in parseResponseMsg() local
64 if (rc != PLDM_SUCCESS || cc != PLDM_SUCCESS) in parseResponseMsg()
67 << "rc=" << rc << ",cc=" << (int)cc << std::endl; in parseResponseMsg()
102 (int)le16toh(record->record_set_id); in print()
104 typeToString(fruRecordTypes, record->record_type); in print()
105 output["Number of FRU fields"] = (int)record->num_fru_fields; in print()
107 typeToString(fruEncodingType, record->encoding_type); in print()
109 p += sizeof(pldm_fru_record_data_format) - in print()
[all …]
H A Dpldm_base_cmd.cpp26 const std::map<const char*, pldm_supported_types> pldmTypes{
30 {"oem-ibm", PLDM_OEM},
34 const std::map<const char*, pldm_supported_commands> pldmBaseCmds{
46 const std::map<const char*, pldm_bios_commands> pldmBiosCmds{
55 const std::map<const char*, pldm_platform_commands> pldmPlatformCmds{
95 const std::map<const char*, pldm_fru_commands> pldmFruCmds{
101 const std::map<const char*, pldm_host_commands> pldmIBMHostCmds{
104 const std::map<const char*, pldm_fileio_commands> pldmIBMFileIOCmds{
136 auto rc = encode_get_types_req(instanceId, request); in createRequestMsg() local
137 return {rc, requestMsg}; in createRequestMsg()
[all …]
/openbmc/linux/drivers/mtd/maps/
H A Dts5500_flash.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * ts5500_flash.c -- MTD map driver for Technology Systems TS-5500 board
8 * - In order for detection to work, jumper 3 must be set.
9 * - Drive A and B use the resident flash disk (RFD) flash translation layer.
10 * - If you have created your own jffs file system and the bios overwrites
17 #include <linux/mtd/map.h>
27 .name = "TS-5500 Flash",
35 .name = "Drive A",
40 .name = "BIOS",
45 .name = "Drive B",
[all …]
/openbmc/linux/drivers/accel/habanalabs/common/pci/
H A Dpci.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright 2016-2019 HabanaLabs, Ltd.
23 * hl_pci_bars_map() - Map PCI BARs.
25 * @name: Array of BAR names.
26 * @is_wc: Array with flag per BAR whether a write-combined mapping is needed.
28 * Request PCI regions and map them to kernel virtual addresses.
30 * Return: 0 on success, non-zero for failure.
32 int hl_pci_bars_map(struct hl_device *hdev, const char * const name[3], in hl_pci_bars_map()
35 struct pci_dev *pdev = hdev->pdev; in hl_pci_bars_map()
36 int rc, i, bar; in hl_pci_bars_map() local
[all …]
/openbmc/linux/drivers/char/ipmi/
H A Dkcs_bmc_npcm7xx.c1 // SPDX-License-Identifier: GPL-2.0
7 #define pr_fmt(fmt) "nuvoton-kcs-bmc: " fmt
22 #define DEVICE_NAME "npcm-kcs-bmc"
51 * Registers in this module are 8 bits. An 8-bit register must be accessed
52 * by an 8-bit read or write.
71 struct regmap *map; member
91 int rc; in npcm7xx_kcs_inb() local
93 rc = regmap_read(priv->map, reg, &val); in npcm7xx_kcs_inb()
94 WARN(rc != 0, "regmap_read() failed: %d\n", rc); in npcm7xx_kcs_inb()
96 return rc == 0 ? (u8)val : 0; in npcm7xx_kcs_inb()
[all …]
/openbmc/openpower-vpd-parser/
H A Dimpl.cpp52 constexpr auto map = "0123456789abcdef"; in toHex() local
53 return map[c]; in toHex()
79 int rc = eccStatus::SUCCESS; in vhdrEccCheck() local
102 rc = eccStatus::FAILED; in vhdrEccCheck()
109 rc = eccStatus::FAILED; in vhdrEccCheck()
114 rc = eccStatus::FAILED; in vhdrEccCheck()
117 return rc; in vhdrEccCheck()
122 int rc = eccStatus::SUCCESS; in vtocEccCheck() local
163 rc = eccStatus::FAILED; in vtocEccCheck()
170 rc = eccStatus::FAILED; in vtocEccCheck()
[all …]
/openbmc/linux/tools/perf/arch/x86/util/
H A Devent.c1 // SPDX-License-Identifier: GPL-2.0
8 #include "../../../util/synthetic-events.h"
11 #include "../../../util/map.h"
21 int rc = 0; in perf_event__synthesize_extra_kmaps() local
24 union perf_event *event = zalloc(sizeof(event->mmap) + in perf_event__synthesize_extra_kmaps()
25 machine->id_hdr_size); in perf_event__synthesize_extra_kmaps()
30 return -1; in perf_event__synthesize_extra_kmaps()
36 struct map *map = pos->map; in perf_event__synthesize_extra_kmaps() local
38 if (!__map__is_extra_kernel_map(map)) in perf_event__synthesize_extra_kmaps()
41 kmap = map__kmap(map); in perf_event__synthesize_extra_kmaps()
[all …]
/openbmc/linux/drivers/firmware/efi/
H A Desrt.c1 // SPDX-License-Identifier: GPL-2.0+
6 * through the sysfs file system. The ESRT provides a read-only catalog of
98 return attr->show(entry, buf); in esre_attr_show()
110 efi_guid_to_str(&entry->esre.esre1->fw_class, str); in fw_class_show()
114 return str - buf; in fw_class_show()
119 #define esre_attr_decl(name, size, fmt) \ argument
120 static ssize_t name##_show(struct esre_entry *entry, char *buf) \
123 le##size##_to_cpu(entry->esre.esre1->name)); \
126 static struct esre_attribute esre_##name = __ATTR_RO_MODE(name, 0400)
151 list_del(&entry->list); in esre_release()
[all …]
/openbmc/linux/tools/testing/selftests/ia64/
H A Daliasing-test.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * (c) Copyright 2007 Hewlett-Packard Development Company, L.P.
26 int fd, rc; in map_mem() local
31 if (fd == -1) { in map_mem()
33 return -1; in map_mem()
37 rc = ioctl(fd, PCIIOC_MMAP_IS_MEM); in map_mem()
38 if (rc == -1) in map_mem()
52 rc = munmap(addr, length); in map_mem()
53 if (rc == -1) { in map_mem()
55 return -1; in map_mem()
[all …]

12345678910>>...40