Home
last modified time | relevance | path

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

12345678910>>...33

/Linux-v6.1/include/media/
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 …]
/Linux-v6.1/drivers/misc/habanalabs/common/
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 …]
/Linux-v6.1/fs/jfs/
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 …]
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 …]
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 …]
Djfs_dmap.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) International Business Machines Corp., 2000-2004
19 * SERIALIZATION of the Block Allocation Map.
21 * the working state of the block allocation map is accessed in
41 * take the lock in read mode. a single top-down request may proceed
42 * exclusively while multiple bottoms-up requests may proceed
46 * the working state of the block allocation map also includes read/
50 * in the face of multiple-bottoms up requests.
53 * accesses to the persistent state of the block allocation map (limited
57 #define BMAP_LOCK_INIT(bmp) mutex_init(&bmp->db_bmaplock)
[all …]
/Linux-v6.1/lib/
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 …]
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()
105 char *p = fb->buf; in ddebug_describe_flags()
111 if (p == fb->buf) in ddebug_describe_flags()
115 return fb->buf; in ddebug_describe_flags()
134 if (query->format) { in vpr_info_dq()
135 fmtlen = strlen(query->format); in vpr_info_dq()
136 while (fmtlen && query->format[fmtlen - 1] == '\n') in vpr_info_dq()
137 fmtlen--; in vpr_info_dq()
140 v3pr_info("%s: func=\"%s\" file=\"%s\" module=\"%s\" format=\"%.*s\" lineno=%u-%u class=%s\n", in vpr_info_dq()
[all …]
/Linux-v6.1/drivers/soc/aspeed/
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 …]
/Linux-v6.1/drivers/media/rc/
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 …]
/Linux-v6.1/drivers/reset/hisilicon/
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 …]
/Linux-v6.1/drivers/mtd/
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 …]
/Linux-v6.1/Documentation/devicetree/bindings/media/
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 …]
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";
/Linux-v6.1/drivers/of/
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_name), prefix, strlen(prefix)) == 0; in of_node_name_prefix()
93 for (; np; np = np->parent) in of_bus_n_addr_cells()
94 if (!of_property_read_u32(np, "#address-cells", &cells)) in of_bus_n_addr_cells()
97 /* No #address-cells property for the root node */ in of_bus_n_addr_cells()
[all …]
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
29 * irq_of_parse_and_map - Parse and map an interrupt into linux virq space
31 * @index: Index of the interrupt to map
48 * of_irq_find_parent - Given a device node, find its interrupt parent node
63 if (of_property_read_u32(child, "interrupt-parent", &parent)) { in of_irq_find_parent()
73 } while (p && of_get_property(p, "#interrupt-cells", NULL) == NULL); in of_irq_find_parent()
80 * These interrupt controllers abuse interrupt-map for unspeakable
89 "CBEA,platform-spider-pic",
[all …]
/Linux-v6.1/drivers/mtd/maps/
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 …]
Dnettel.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * nettel.c -- mappings for NETtel/SecureEdge/SnapGear (x86) boards.
7 * (C) Copyright 2000-2001, Greg Ungerer (gerg@snapgear.com)
8 * (C) Copyright 2001-2002, SnapGear (www.snapgear.com)
18 #include <linux/mtd/map.h>
48 ((((size)-(64*1024)) >> SC520_PAR_SIZE_SHIFT) & SC520_PAR_SIZE_MASK) | \
68 .name = "SnapGear Intel",
75 .name = "SnapGear kernel",
80 .name = "SnapGear filesystem",
84 .name = "SnapGear config",
[all …]
/Linux-v6.1/drivers/misc/habanalabs/common/pci/
Dpci.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright 2016-2019 HabanaLabs, Ltd.
21 * hl_pci_bars_map() - Map PCI BARs.
23 * @name: Array of BAR names.
24 * @is_wc: Array with flag per BAR whether a write-combined mapping is needed.
26 * Request PCI regions and map them to kernel virtual addresses.
28 * Return: 0 on success, non-zero for failure.
30 int hl_pci_bars_map(struct hl_device *hdev, const char * const name[3], in hl_pci_bars_map()
33 struct pci_dev *pdev = hdev->pdev; in hl_pci_bars_map()
34 int rc, i, bar; in hl_pci_bars_map() local
[all …]
/Linux-v6.1/drivers/char/ipmi/
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 …]
/Linux-v6.1/drivers/firmware/efi/
Desrt.c1 // SPDX-License-Identifier: GPL-2.0+
6 * through the sysfs file system. The ESRT provides a read-only catalog of
100 return -EACCES; in esre_attr_show()
102 return attr->show(entry, buf); in esre_attr_show()
114 efi_guid_to_str(&entry->esre.esre1->fw_class, str); in fw_class_show()
118 return str - buf; in fw_class_show()
123 #define esre_attr_decl(name, size, fmt) \ argument
124 static ssize_t name##_show(struct esre_entry *entry, char *buf) \
127 le##size##_to_cpu(entry->esre.esre1->name)); \
130 static struct esre_attribute esre_##name = __ATTR_RO_MODE(name, 0400)
[all …]
/Linux-v6.1/tools/testing/selftests/ia64/
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 …]
/Linux-v6.1/drivers/cxl/
Dpci.c1 // SPDX-License-Identifier: GPL-2.0-only
3 #include <linux/io-64-nonatomic-lo-hi.h>
11 #include <linux/pci-doe.h>
28 * - Create the memX device and register on the CXL bus.
29 * - Enumerate device's register interface and map them.
30 * - Registers nvdimm bridge device with cxl_core.
31 * - Registers a CXL mailbox with cxl_core.
35 (readl((cxlds)->regs.mbox + CXLDEV_MBOX_CTRL_OFFSET) & \
38 /* CXL 2.0 - 8.2.8.4 */
66 return -ETIMEDOUT; in cxl_pci_mbox_wait_for_doorbell()
[all …]
/Linux-v6.1/security/selinux/ss/
Dservices.c1 // SPDX-License-Identifier: GPL-2.0-only
17 * Updated: Hewlett-Packard <paul@paul-moore.com>
35 * Copyright (C) 2006, 2007 Hewlett-Packard Development Company, L.P.
36 * Copyright (C) 2004-2006 Trusted Computer Solutions, Inc.
37 * Copyright (C) 2003 - 2004, 2006 Tresys Technology, LLC
102 const struct security_class_mapping *map, in selinux_set_mapping() argument
110 if (!map) in selinux_set_mapping()
111 return -EINVAL; in selinux_set_mapping()
113 while (map[i].name) in selinux_set_mapping()
117 out_map->mapping = kcalloc(++i, sizeof(*out_map->mapping), GFP_ATOMIC); in selinux_set_mapping()
[all …]
/Linux-v6.1/drivers/input/serio/
Dhil_mlc.c13 * 2. The name of the author may not be used to endorse or promote products
30 * HP-HIL Technical Reference Manual. Hewlett Packard Product No. 45918A
35 * Some access methods and an ISR is defined by the sub-driver
39 * sub-driver and invoked directly, must check for record
48 * at some point with a sub-driver-specific mechanism.)
92 mlc->di_map[j] = -1; in hil_mlc_clear_di_map()
97 memset(&mlc->di_scratch, 0, sizeof(mlc->di_scratch)); in hil_mlc_clear_di_scratch()
102 memcpy(&mlc->di[idx], &mlc->di_scratch, sizeof(mlc->di_scratch)); in hil_mlc_copy_di_scratch()
112 /* In-use slots are not eligible. */ in hil_mlc_match_di_scratch()
114 if (mlc->di_map[j] == idx) in hil_mlc_match_di_scratch()
[all …]

12345678910>>...33