| /kernel/linux/linux-6.6/include/media/ |
| D | rc-map.h | 1 /* 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 …]
|
| /kernel/linux/linux-5.10/include/media/ |
| D | rc-map.h | 1 /* 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 …]
|
| /kernel/linux/linux-6.6/drivers/accel/habanalabs/common/ |
| D | state_dump.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/lib/ |
| D | devres.c | 1 // SPDX-License-Identifier: GPL-2.0 57 * devm_ioremap - Managed ioremap() 59 * @offset: Resource address to map 60 * @size: Size of map 62 * Managed ioremap(). Map is automatically unmapped on driver detach. 72 * devm_ioremap_uc - Managed ioremap_uc() 74 * @offset: Resource address to map 75 * @size: Size of map 77 * Managed ioremap_uc(). Map is automatically unmapped on driver detach. 87 * devm_ioremap_wc - Managed ioremap_wc() [all …]
|
| /kernel/linux/linux-5.10/drivers/soc/aspeed/ |
| D | aspeed-lpc-ctrl.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 16 #include <linux/aspeed-lpc-ctrl.h> 18 #define DEVICE_NAME "aspeed-lpc-ctrl" 39 return container_of(file->private_data, struct aspeed_lpc_ctrl, in file_aspeed_lpc_ctrl() 46 unsigned long vsize = vma->vm_end - vma->vm_start; in aspeed_lpc_ctrl_mmap() 47 pgprot_t prot = vma->vm_page_prot; in aspeed_lpc_ctrl_mmap() 49 if (vma->vm_pgoff + vma_pages(vma) > lpc_ctrl->mem_size >> PAGE_SHIFT) in aspeed_lpc_ctrl_mmap() 50 return -EINVAL; in aspeed_lpc_ctrl_mmap() 55 if (remap_pfn_range(vma, vma->vm_start, in aspeed_lpc_ctrl_mmap() 56 (lpc_ctrl->mem_base >> PAGE_SHIFT) + vma->vm_pgoff, in aspeed_lpc_ctrl_mmap() [all …]
|
| /kernel/linux/linux-5.10/fs/jfs/ |
| D | namei.c | 1 // 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 …]
|
| D | jfs_imap.c | 1 // 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 …]
|
| D | jfs_mount.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/fs/jfs/ |
| D | namei.c | 1 // 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 …]
|
| D | jfs_imap.c | 1 // 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 …]
|
| D | jfs_mount.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/drivers/soc/aspeed/ |
| D | aspeed-lpc-ctrl.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/drivers/reset/hisilicon/ |
| D | reset-hi3660.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/lib/ |
| D | devres.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/mtd/ |
| D | rfd_ftl.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/reset/hisilicon/ |
| D | reset-hi3660.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/drivers/of/ |
| D | base.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/drivers/media/rc/ |
| D | rc-main.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/media/rc/ |
| D | rc-main.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/drivers/mtd/ |
| D | rfd_ftl.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/media/ |
| D | mtk-cir.txt | 1 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 …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/media/ |
| D | mtk-cir.txt | 1 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 …]
|
| D | gpio-ir-receiver.txt | 1 Device-Tree bindings for GPIO IR receiver 4 - compatible: should be "gpio-ir-receiver". 5 - gpios: specifies GPIO used for IR signal reception. 8 - linux,rc-map-name: see rc.txt file in the same 10 - linux,autosuspend-period: autosuspend delay time, 15 ir: ir-receiver { 16 compatible = "gpio-ir-receiver"; 18 linux,rc-map-name = "rc-rc6-mce"; 19 linux,autosuspend-period = <125>;
|
| /kernel/linux/linux-5.10/drivers/char/ipmi/ |
| D | kcs_bmc_aspeed.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2015-2018, Intel Corporation. 6 #define pr_fmt(fmt) "aspeed-kcs-bmc: " fmt 26 #define DEVICE_NAME "ast-kcs-bmc" 30 /* mapped to lpc-bmc@0 IO space */ 56 /* mapped to lpc-host@80 IO space */ 66 struct regmap *map; member 74 int rc; in aspeed_kcs_inb() local 76 rc = regmap_read(priv->map, reg, &val); in aspeed_kcs_inb() 77 WARN(rc != 0, "regmap_read() failed: %d\n", rc); in aspeed_kcs_inb() [all …]
|
| /kernel/linux/linux-6.6/drivers/mtd/maps/ |
| D | ts5500_flash.c | 1 // 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 …]
|