/linux/scripts/coccinelle/api/ |
H A D | kvmalloc.cocci | 1 // SPDX-License-Identifier: GPL-2.0-only 8 // Options: --no-includes --include-headers 24 expression E, E1, size; 27 identifier x; 33 * if (size cmp E1 || ...)@p { 37 * (..., size, \(flags\|GFP_KERNEL\|\(GFP_KERNEL\|flags\)|__GFP_NOWARN\), ...) 41 * E = \(vmalloc\|vzalloc\|vmalloc_node\|vzalloc_node\)(..., size, ...) 47 * (..., size, \(flags\|GFP_KERNEL\|\(GFP_KERNEL\|flags\)|__GFP_NOWARN\), ...) 49 when != size = E1 53 * E = \(vmalloc\|vzalloc\|vmalloc_node\|vzalloc_node\)(..., size, ...) [all …]
|
/linux/fs/jffs2/ |
H A D | nodelist.c | 2 * JFFS2 -- Journalling Flash File System, Version 2. 4 * Copyright © 2001-2007 Red Hat, Inc. 30 dbg_dentlist("add dirent \"%s\", ino #%u\n", new->name, new->ino); in jffs2_add_fd_to_list() 32 while ((*prev) && (*prev)->nhash <= new->nhash) { in jffs2_add_fd_to_list() 33 if ((*prev)->nhash == new->nhash && !strcmp((*prev)->name, new->name)) { in jffs2_add_fd_to_list() 35 if (new->version < (*prev)->version) { in jffs2_add_fd_to_list() 37 (*prev)->name, (*prev)->ino); in jffs2_add_fd_to_list() 38 jffs2_mark_node_obsolete(c, new->raw); in jffs2_add_fd_to_list() 42 (*prev)->name, (*prev)->ino); in jffs2_add_fd_to_list() 43 new->next = (*prev)->next; in jffs2_add_fd_to_list() [all …]
|
/linux/arch/openrisc/include/asm/ |
H A D | uaccess.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 11 * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se> 25 #include <asm-generic/access_ok.h> 28 * These are the main single-value transfer routines. They automatically 29 * use the right size if we just have the right pointer type. 45 #define get_user(x, ptr) \ argument 46 __get_user_check((x), (ptr), sizeof(*(ptr))) 47 #define put_user(x, ptr) \ argument 48 __put_user_check((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr))) 50 #define __get_user(x, ptr) \ argument [all …]
|
/linux/drivers/net/wireless/ath/wil6210/ |
H A D | fw_inc.c | 1 // SPDX-License-Identifier: ISC 3 * Copyright (c) 2014-2017 Qualcomm Atheros, Inc. 4 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. 21 u32 size, const char *msg) in wil_fw_addr_check() argument 23 *ioaddr = wmi_buffer_block(wil, val, size); in wil_fw_addr_check() 25 wil_err_fw(wil, "bad %s: 0x%08x\n", msg, le32_to_cpu(val)); in wil_fw_addr_check() 32 * wil_fw_verify - verify firmware file validity 37 * Return file size or negative error 39 static int wil_fw_verify(struct wil6210_priv *wil, const u8 *data, size_t size) in wil_fw_verify() argument 47 if (size % 4) { in wil_fw_verify() [all …]
|
/linux/tools/perf/trace/beauty/ |
H A D | ioctl.c | 1 // SPDX-License-Identifier: LGPL-2.1 17 * in 'perf trace', see tools/perf/trace/beauty/Build and builtin-trace.c 19 #include <uapi/asm-generic/ioctls.h> 21 static size_t ioctl__scnprintf_tty_cmd(int nr, int dir, char *bf, size_t size) in ioctl__scnprintf_tty_cmd() argument 42 return scnprintf(bf, size, "%s", strarray__ioctl_tty_cmd.entries[nr]); in ioctl__scnprintf_tty_cmd() 44 return scnprintf(bf, size, "(%#x, %#x, %#x)", 'T', nr, dir); in ioctl__scnprintf_tty_cmd() 47 static size_t ioctl__scnprintf_drm_cmd(int nr, int dir, char *bf, size_t size) in ioctl__scnprintf_drm_cmd() argument 53 return scnprintf(bf, size, "DRM_%s", strarray__drm_ioctl_cmds.entries[nr]); in ioctl__scnprintf_drm_cmd() 55 return scnprintf(bf, size, "(%#x, %#x, %#x)", 'd', nr, dir); in ioctl__scnprintf_drm_cmd() 58 static size_t ioctl__scnprintf_sndrv_pcm_cmd(int nr, int dir, char *bf, size_t size) in ioctl__scnprintf_sndrv_pcm_cmd() argument [all …]
|
/linux/Documentation/gpu/amdgpu/display/ |
H A D | dcn3_cm_drm_current.svg | 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> 2 <!-- Created with Inkscape (http://www.inkscape.org/) --> 11 inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)" 13 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" 30 inkscape:window-width="1920" 31 inkscape:window-height="1011" 32 inkscape:window-x="0" 33 inkscape:window-y="0" 34 inkscape:window-maximized="1" 35 inkscape:current-layer="g2025" /> [all …]
|
H A D | dcn2_cm_drm_current.svg | 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> 2 <!-- Created with Inkscape (http://www.inkscape.org/) --> 11 inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)" 13 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" 30 inkscape:window-width="1920" 31 inkscape:window-height="1011" 32 inkscape:window-x="0" 33 inkscape:window-y="0" 34 inkscape:window-maximized="1" 35 inkscape:current-layer="g2025" /> [all …]
|
/linux/Documentation/dev-tools/kunit/ |
H A D | kunit_suitememorydiagram.svg | 1 <?xml version="1.0" encoding="UTF-8"?> 3 <g transform="translate(-13.724 -17.943)"> 4 <g fill="#dad4d4" fill-opacity=".91765" stroke="#1a1a1a"> 5 <rect x="323.56" y="18.443" width="115.75" height="41.331"/> 6 <rect x="323.56" y="463.09" width="115.75" height="41.331"/> 7 <rect x="323.56" y="531.84" width="115.75" height="41.331"/> 8 <rect x="323.56" y="88.931" width="115.75" height="74.231"/> 11 <rect x="323.56" y="421.76" width="115.75" height="41.331" fill="#b9dbc6" stroke="#1a1a1a"/> 12 …x="328.00888" y="446.61826" fill="#000000" font-family="sans-serif" font-size="16px" style="line-h… 14 <g transform="translate(0 -258.6)"> [all …]
|
/linux/drivers/usb/host/ |
H A D | ohci-dbg.c | 1 // SPDX-License-Identifier: GPL-1.0+ 6 * (C) Copyright 2000-2002 David Brownell <dbrownell@users.sourceforge.net> 11 /*-------------------------------------------------------------------------*/ 23 #define ohci_dbg_sw(ohci, next, size, format, arg...) \ argument 27 s_len = scnprintf (*next, *size, format, ## arg ); \ 28 *size -= s_len; *next += s_len; \ 34 #define ohci_dbg_nosw(ohci, next, size, format, arg...) \ argument 37 s_len = scnprintf(*next, *size, format, ## arg); \ 38 *size -= s_len; *next += s_len; \ 47 unsigned *size) in ohci_dump_intr_mask() argument [all …]
|
/linux/drivers/platform/x86/ |
H A D | touchscreen_dmi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 24 /* The EFI embedded-fw code expects this to be the first member! */ 33 PROPERTY_ENTRY_U32("touchscreen-size-x", 1850), 34 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280), 35 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), 36 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 37 PROPERTY_ENTRY_BOOL("silead,home-button"), 38 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-archos-101-cesium-educ.fw"), 48 PROPERTY_ENTRY_U32("touchscreen-size-x", 1850), 49 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280), [all …]
|
/linux/Documentation/admin-guide/media/ |
H A D | ipu6_isys_graph.svg | 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 4 <!-- Generated by graphviz version 2.43.0 (0) 5 --> 6 <!-- Title: board Pages: 1 --> 11 <polygon fill="white" stroke="transparent" points="-4,4 -4,-1469 1699,-1469 1699,4 -4,4"/> 12 <!-- n00000001 --> 15 …n fill="yellow" stroke="black" points="832.99,-750.08 629.99,-750.08 629.99,-712.08 832.99,-712.08… 16 <text text-anchor="middle" x="731.49" y="-734.88" font-family="Times,serif" font-size="14.00">Intel… 17 <text text-anchor="middle" x="731.49" y="-719.88" font-family="Times,serif" font-size="14.00">/dev/… [all …]
|
/linux/drivers/usb/gadget/udc/cdns2/ |
H A D | cdns2-debug.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Cadence USBHS-DEV Driver. 14 static inline const char *cdns2_decode_usb_irq(char *str, size_t size, in cdns2_decode_usb_irq() argument 19 ret = scnprintf(str, size, "usbirq: 0x%02x - ", usb_irq); in cdns2_decode_usb_irq() 22 ret += scnprintf(str + ret, size - ret, "SOF "); in cdns2_decode_usb_irq() 24 ret += scnprintf(str + ret, size - ret, "SUTOK "); in cdns2_decode_usb_irq() 26 ret += scnprintf(str + ret, size - ret, "SETUP "); in cdns2_decode_usb_irq() 28 ret += scnprintf(str + ret, size - ret, "Suspend "); in cdns2_decode_usb_irq() 30 ret += scnprintf(str + ret, size - ret, "Reset "); in cdns2_decode_usb_irq() 32 ret += scnprintf(str + ret, size - ret, "HS "); in cdns2_decode_usb_irq() [all …]
|
/linux/arch/xtensa/include/asm/ |
H A D | uaccess.h | 2 * include/asm-xtensa/uaccess.h 13 * Copyright (C) 2001 - 2005 Tensilica Inc. 22 #include <asm-generic/access_ok.h> 25 * These are the main single-value transfer routines. They 26 * automatically use the right size if we just have the right pointer 35 * (a) re-use the arguments for side effects (sizeof is ok) 38 #define put_user(x, ptr) __put_user_check((x), (ptr), sizeof(*(ptr))) argument 39 #define get_user(x, ptr) __get_user_check((x), (ptr), sizeof(*(ptr))) argument 47 #define __put_user(x, ptr) __put_user_nocheck((x), (ptr), sizeof(*(ptr))) argument 48 #define __get_user(x, ptr) __get_user_nocheck((x), (ptr), sizeof(*(ptr))) argument [all …]
|
/linux/arch/powerpc/include/asm/ |
H A D | uaccess.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 9 #include <asm/asm-compat.h> 16 #include <asm-generic/access_ok.h> 19 * These are the main single-value transfer routines. They automatically 20 * use the right size if we just have the right pointer type. 37 #define __put_user(x, ptr) \ argument 41 __typeof__(*(ptr)) __pu_val = (__typeof__(*(ptr)))(x); \ 56 __pu_err = -EFAULT; \ 62 #define put_user(x, ptr) \ argument 67 __put_user(x, _pu_addr) : -EFAULT; \ [all …]
|
/linux/arch/sparc/include/asm/ |
H A D | uaccess_32.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 15 #include <asm-generic/access_ok.h> 17 /* Uh, these should become the main single-value transfer routines.. 18 * They automatically use the right size if we just have the right 26 #define put_user(x, ptr) ({ \ argument 29 __put_user_check((__typeof__(*(ptr)))(x), __pu_addr, sizeof(*(ptr))); \ 32 #define get_user(x, ptr) ({ \ argument 35 __get_user_check((x), __gu_addr, sizeof(*(ptr)), __typeof__(*(ptr))); \ 43 #define __put_user(x, ptr) \ argument 44 __put_user_nocheck((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr))) [all …]
|
/linux/drivers/misc/bcm-vk/ |
H A D | bcm_vk_sg.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright 2018-2020 Broadcom. 5 #include <linux/dma-mapping.h> 21 * Valkyrie has a hardware limitation of 16M transfer size. 44 u32 size; in bcm_vk_dma_alloc() local 51 /* Get 64-bit user address */ in bcm_vk_dma_alloc() 52 data = get_unaligned(&vkdata->address); in bcm_vk_dma_alloc() 59 last = ((data + vkdata->size - 1) & PAGE_MASK) >> PAGE_SHIFT; in bcm_vk_dma_alloc() 60 dma->nr_pages = last - first + 1; in bcm_vk_dma_alloc() 63 dma->pages = kmalloc_array(dma->nr_pages, in bcm_vk_dma_alloc() [all …]
|
/linux/Documentation/networking/device_drivers/can/ctu/ |
H A D | fsm_txt_buffer_user.svg | 1 <?xml version="1.0" encoding="UTF-8"?> 2 …mlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> 5 …-.6)" d="m8.71859 4.03374-10.9259-4.01772 10.9259-4.01772c-1.7455 2.37206-1.73544 5.61745-6e-7 8.0… 8 …-.6)" d="m8.71859 4.03374-10.9259-4.01772 10.9259-4.01772c-1.7455 2.37206-1.73544 5.61745-6e-7 8.0… 11 …-.6)" d="m8.71859 4.03374-10.9259-4.01772 10.9259-4.01772c-1.7455 2.37206-1.73544 5.61745-6e-7 8.0… 14 …-.6)" d="m8.71859 4.03374-10.9259-4.01772 10.9259-4.01772c-1.7455 2.37206-1.73544 5.61745-6e-7 8.0… 17 …-.6)" d="m8.71859 4.03374-10.9259-4.01772 10.9259-4.01772c-1.7455 2.37206-1.73544 5.61745-6e-7 8.0… 20 …-.6)" d="m8.71859 4.03374-10.9259-4.01772 10.9259-4.01772c-1.7455 2.37206-1.73544 5.61745-6e-7 8.0… 23 …-10.9259-4.01772 10.9259-4.01772c-1.7455 2.37206-1.73544 5.61745-6e-7 8.03544z" fill="#28a4ff" fil… 26 …3374-10.9259-4.01772 10.9259-4.01772c-1.7455 2.37206-1.73544 5.61745-6e-7 8.03544z" fill-rule="eve… [all …]
|
/linux/drivers/tee/amdtee/ |
H A D | call.c | 1 // SPDX-License-Identifier: MIT 9 #include <linux/psp-tee.h> 25 return -EINVAL; in tee_params_to_amd_params() 27 amd->param_types = 0; in tee_params_to_amd_params() 31 return -EINVAL; in tee_params_to_amd_params() 33 amd->param_types |= ((tee[i].attr & 0xF) << i * 4); in tee_params_to_amd_params() 37 type = TEE_PARAM_TYPE_GET(amd->param_types, i); in tee_params_to_amd_params() 38 pr_debug("%s: type[%d] = 0x%x\n", __func__, i, type); in tee_params_to_amd_params() 41 return -EINVAL; in tee_params_to_amd_params() 46 /* It is assumed that all values are within 2^32-1 */ in tee_params_to_amd_params() [all …]
|
/linux/drivers/infiniband/hw/cxgb4/ |
H A D | resource.c | 2 * Copyright (c) 2009-2010 Chelsio, Inc. All rights reserved. 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 42 if (c4iw_id_table_alloc(&rdev->resource.qid_table, in c4iw_init_qid_table() 43 rdev->lldi.vr->qp.start, in c4iw_init_qid_table() 44 rdev->lldi.vr->qp.size, in c4iw_init_qid_table() 45 rdev->lldi.vr->qp.size, 0)) in c4iw_init_qid_table() 46 return -ENOMEM; in c4iw_init_qid_table() 48 for (i = rdev->lldi.vr->qp.start; in c4iw_init_qid_table() 49 i < rdev->lldi.vr->qp.start + rdev->lldi.vr->qp.size; i++) in c4iw_init_qid_table() [all …]
|
H A D | t4.h | 2 * Copyright (c) 2009-2010 Chelsio, Inc. All rights reserved. 14 * - Redistributions of source code must retain the above 17 * - Redistributions in binary form must reproduce the above 43 #define T4_PAGESIZE_MASK 0xffff000 /* 4KB-128MB */ 49 __be32 rsvd1; /* flit 0 - hw owns */ 54 u8 qp_err; /* flit 1 - sw owns */ 70 #define T4_MAX_SEND_SGE ((T4_SQ_NUM_BYTES - sizeof(struct fw_ri_send_wr) - \ 72 #define T4_MAX_SEND_INLINE ((T4_SQ_NUM_BYTES - sizeof(struct fw_ri_send_wr) - \ 74 #define T4_MAX_WRITE_INLINE ((T4_SQ_NUM_BYTES - \ 75 sizeof(struct fw_ri_rdma_write_wr) - \ [all …]
|
/linux/Documentation/admin-guide/blockdev/drbd/ |
H A D | DRBD-data-packets.svg | 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> 2 <!-- Created with Inkscape (http://www.inkscape.org/) --> 11 style="fill-rule:evenodd"> 45 x="-3023.845" 47 transform="matrix(0.9895258,-0.1443562,0.1443562,0.9895258,0,0)" 49 …style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embed… 51 …x="6115.1553 6344.1553 6555.1553 6784.1553 6962.1553 7051.1553 7228.1553 7457.1553 7635.1553 7813.… 64 x="3502.5356" 65 y="-2184.6621" 66 transform="matrix(0.9788674,0.2044961,-0.2044961,0.9788674,0,0)" [all …]
|
H A D | DRBD-8.3-data-packets.svg | 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> 2 <!-- Created with Inkscape (http://www.inkscape.org/) --> 11 style="fill-rule:evenodd"> 45 transform="matrix(0.9895258,-0.1443562,0.1443562,0.9895258,-1244.4792,1416.5139)" 47 …style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embed… 51 x="9139 9368 9579 9808 9986 10075 10252 10481 10659 10837 10909" 65 transform="matrix(0.9788674,0.2044961,-0.2044961,0.9788674,1620.9382,-1639.4947)" 67 …style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embed… 71 x="8743 8972 9132 9310 9573 9801 10013 10242 10419 10597 10775 10953 11114" 78 …style="font-size:318px;font-weight:400;fill:#008000;visibility:visible;font-family:Helvetica embed… [all …]
|
/linux/tools/testing/selftests/mm/ |
H A D | map_fixed_noreplace.c | 1 // SPDX-License-Identifier: GPL-2.0 25 static unsigned long find_base_addr(unsigned long size) in find_base_addr() argument 31 addr = mmap(NULL, size, PROT_NONE, flags, -1, 0); in find_base_addr() 35 if (munmap(addr, size) != 0) in find_base_addr() 44 unsigned long flags, addr, size, page_size; in main() local 53 size = 5 * page_size; in main() 54 base_addr = find_base_addr(size); in main() [all...] |
/linux/drivers/usb/cdns3/ |
H A D | cdnsp-debug.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 61 return "Stopped - Length Invalid"; in cdnsp_trb_comp_code_string() 63 return "Stopped - Short Packet"; in cdnsp_trb_comp_code_string() 97 return "No-Op"; in cdnsp_trb_type_string() 119 return "No-Op Command"; in cdnsp_trb_type_string() 177 static inline const char *cdnsp_decode_trb(char *str, size_t size, u32 field0, in cdnsp_decode_trb() argument 180 int ep_id = TRB_TO_EP_INDEX(field3) - 1; in cdnsp_decode_trb() 190 ret = scnprintf(str, size, in cdnsp_decode_trb() 191 "LINK %08x%08x intr %ld type '%s' flags %c:%c:%c:%c", in cdnsp_decode_trb() 203 ret = scnprintf(str, size, in cdnsp_decode_trb() [all …]
|
/linux/drivers/rapidio/ |
H A D | rio-sysfs.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 24 return sprintf(buf, format_string, rdev->field); \ 28 rio_config_attr(did, "0x%04x\n"); 29 rio_config_attr(vid, "0x%04x\n"); 30 rio_config_attr(device_rev, "0x%08x\n"); 31 rio_config_attr(asm_did, "0x%04x\n"); 32 rio_config_attr(asm_vid, "0x%04x\n"); 33 rio_config_attr(asm_rev, "0x%04x\n"); 34 rio_config_attr(destid, "0x%04x\n"); 35 rio_config_attr(hopcount, "0x%02x\n"); [all …]
|