| /linux/drivers/gpu/drm/ |
| H A D | drm_gem_atomic_helper.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 #include <linux/dma-resv.h> 4 #include <linux/dma-fence-chain.h> 20 * The GEM atomic helpers library implements generic atomic-commit 33 * .. code-block:: c 45 * cannot be established by commit-tail functions, such as atomic_update, 48 * The helpers for shadow-buffered planes establish and release mappings, 50 * for commit-tail functions. 52 * Shadow-buffered planes can easily be enabled by using the provided macros 54 * These macros set up the plane and plane-helper callbacks to point to the [all …]
|
| /linux/Documentation/devicetree/bindings/iio/adc/ |
| H A D | adi,ad4130.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Cosmin Tanislav <cosmin.tanislav@analog.com> 15 https://www.analog.com/media/en/technical-documentation/data-sheets/AD4130-8.pdf 20 - adi,ad4130 29 clock-names: 31 - const: mclk 36 interrupt-names: 42 - int [all …]
|
| H A D | adi,max11410.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Ibrahim Tilki <Ibrahim.Tilki@analog.com> 21 - adi,max11410 30 interrupt-names: 34 - enum: [gpio0, gpio1] 35 - const: gpio1 37 '#address-cells': 40 '#size-cells': [all …]
|
| H A D | adi,ad4851.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Sergiu Cuciurean <sergiu.cuciurean@analog.com> 12 - Dragos Bogdan <dragos.bogdan@analog.com> 13 - Antoniu Miclaus <antoniu.miclaus@analog.com> 16 Analog Devices AD485X fully buffered, 8-channel simultaneous sampling, 17 16/20-bit, 1 MSPS data acquisition system (DAS) with differential, wide 18 common-mode range inputs. 20 https://www.analog.com/media/en/technical-documentation/data-sheets/ad4855.pdf [all …]
|
| /linux/drivers/net/ethernet/engleder/ |
| H A D | tsnep_ptp.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (C) 2021 Gerhard Engleder <gerhard@engleder-embedded.com> */ 13 high = ioread32(adapter->addr + ECM_SYSTEM_TIME_HIGH); in tsnep_get_system_time() 15 low = ioread32(adapter->addr + ECM_SYSTEM_TIME_LOW); in tsnep_get_system_time() 17 high = ioread32(adapter->addr + ECM_SYSTEM_TIME_HIGH); in tsnep_get_system_time() 28 return -EINVAL; in tsnep_ptp_ioctl() 31 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in tsnep_ptp_ioctl() 32 return -EFAULT; in tsnep_ptp_ioctl() 39 return -ERANGE; in tsnep_ptp_ioctl() 62 return -ERANGE; in tsnep_ptp_ioctl() [all …]
|
| /linux/fs/nilfs2/ |
| H A D | btnode.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * NILFS B-tree node cache 5 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation. 15 #include <linux/backing-dev.h> 25 * nilfs_init_btnc_inode - initialize B-tree node cache inode 28 * nilfs_init_btnc_inode() sets up an inode for B-tree node cache. 34 btnc_inode->i_mode = S_IFREG; in nilfs_init_btnc_inode() 35 ii->i_flags = 0; in nilfs_init_btnc_inode() 36 memset(&ii->i_bmap_data, 0, sizeof(struct nilfs_bmap)); in nilfs_init_btnc_inode() 37 mapping_set_gfp_mask(btnc_inode->i_mapping, GFP_NOFS); in nilfs_init_btnc_inode() [all …]
|
| /linux/fs/netfs/ |
| H A D | read_collect.c | 1 // SPDX-License-Identifier: GPL-2.0-only 20 #define BUFFERED 0x08 /* The pagecache needs cleaning up */ macro 31 WARN_ON_ONCE(subreq->len - subreq->transferred != iov_iter_count(&subreq->io_iter)); in netfs_clear_unread() 32 iov_iter_zero(iov_iter_count(&subreq->io_iter), &subreq->io_iter); in netfs_clear_unread() 33 if (subreq->start + subreq->transferred >= subreq->rreq->i_size) in netfs_clear_unread() 34 __set_bit(NETFS_SREQ_HIT_EOF, &subreq->flags); in netfs_clear_unread() 49 if (unlikely(folio_pos(folio) < rreq->abandon_to)) { in netfs_unlock_read_folio() 57 if (!test_bit(NETFS_RREQ_USE_PGPRIV2, &rreq->flags)) { in netfs_unlock_read_folio() 61 if (finfo->netfs_group) in netfs_unlock_read_folio() 62 folio_change_private(folio, finfo->netfs_group); in netfs_unlock_read_folio() [all …]
|
| H A D | direct_write.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 20 unsigned long long start = iocb->ki_pos; in netfs_unbuffered_write_iter_locked() 34 _debug("uw %llx-%llx", start, end); in netfs_unbuffered_write_iter_locked() 36 wreq = netfs_create_write_req(iocb->ki_filp->f_mapping, iocb->ki_filp, start, in netfs_unbuffered_write_iter_locked() 37 iocb->ki_flags & IOCB_DIRECT ? in netfs_unbuffered_write_iter_locked() 42 wreq->io_streams[0].avail = true; in netfs_unbuffered_write_iter_locked() 43 trace_netfs_write(wreq, (iocb->ki_flags & IOCB_DIRECT ? in netfs_unbuffered_write_iter_locked() 57 n = netfs_extract_user_iter(iter, len, &wreq->buffer.iter, 0); in netfs_unbuffered_write_iter_locked() 62 wreq->direct_bv = (struct bio_vec *)wreq->buffer.iter.bvec; in netfs_unbuffered_write_iter_locked() 63 wreq->direct_bv_count = n; in netfs_unbuffered_write_iter_locked() [all …]
|
| H A D | buffered_write.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* Network filesystem high-level buffered write support. 66 if (ctx->ops->update_i_size) { in netfs_update_i_size() 67 ctx->ops->update_i_size(inode, end); in netfs_update_i_size() 71 spin_lock(&inode->i_lock); in netfs_update_i_size() 77 fscache_update_cookie(ctx->cache, NULL, &end); in netfs_update_i_size() 80 gap = SECTOR_SIZE - (i_size & (SECTOR_SIZE - 1)); in netfs_update_i_size() 82 add = DIV_ROUND_UP(copied - gap, SECTOR_SIZE); in netfs_update_i_size() 84 inode->i_blocks = min_t(blkcnt_t, in netfs_update_i_size() 86 inode->i_blocks + add); in netfs_update_i_size() [all …]
|
| H A D | buffered_read.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* Network filesystem high-level buffered read support. 17 struct netfs_cache_resources *cres = &rreq->cache_resources; in netfs_cache_expand_readahead() 19 if (cres->ops && cres->ops->expand_readahead) in netfs_cache_expand_readahead() 20 cres->ops->expand_readahead(cres, _start, _len, i_size); in netfs_cache_expand_readahead() 29 netfs_cache_expand_readahead(rreq, &rreq->start, &rreq->len, rreq->i_size); in netfs_rreq_expand() 34 if (rreq->netfs_ops->expand_readahead) in netfs_rreq_expand() 35 rreq->netfs_ops->expand_readahead(rreq); in netfs_rreq_expand() 46 if (rreq->start != readahead_pos(ractl) || in netfs_rreq_expand() 47 rreq->len != readahead_length(ractl)) { in netfs_rreq_expand() [all …]
|
| /linux/net/batman-adv/ |
| H A D | fragmentation.c | 1 // SPDX-License-Identifier: GPL-2.0 26 #include "hard-interface.h" 31 * batadv_frag_clear_chain() - delete entries in the fragment buffer chain 43 hlist_del(&entry->list); in batadv_frag_clear_chain() 46 kfree_skb(entry->skb); in batadv_frag_clear_chain() 48 consume_skb(entry->skb); in batadv_frag_clear_chain() 55 * batadv_frag_purge_orig() - free fragments associated to an orig 66 chain = &orig_node->fragments[i]; in batadv_frag_purge_orig() 67 spin_lock_bh(&chain->lock); in batadv_frag_purge_orig() 70 batadv_frag_clear_chain(&chain->fragment_list, true); in batadv_frag_purge_orig() [all …]
|
| H A D | send.c | 1 // SPDX-License-Identifier: GPL-2.0 31 #include "distributed-arp-table.h" 34 #include "hard-interface.h" 36 #include "mesh-interface.h" 39 #include "translation-table.h" 44 * batadv_send_skb_packet() - send an already prepared packet 57 * Return: A negative errn [all...] |
| /linux/drivers/usb/serial/ |
| H A D | generic.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2010 - 2013 Johan Hovold (jhovold@gmail.com) 6 * Copyright (C) 1999 - 2002 Greg Kroah-Hartman (greg@kroah.com) 40 struct device *dev = &serial->interface->dev; in usb_serial_generic_probe() 42 dev_info(dev, "The \"generic\" usb-serial driver is only for testing and one-off prototypes.\n"); in usb_serial_generic_probe() 43 dev_info(dev, "Tell linux-usb@vger.kernel.org to add your device to a proper driver.\n"); in usb_serial_generic_probe() 51 struct device *dev = &serial->interface->dev; in usb_serial_generic_calc_num_ports() 54 num_ports = max(epds->num_bulk_in, epds->num_bulk_out); in usb_serial_generic_calc_num_ports() 58 return -ENODEV; in usb_serial_generic_calc_num_ports() 109 clear_bit(USB_SERIAL_THROTTLED, &port->flags); in usb_serial_generic_open() [all …]
|
| H A D | digi_acceleport.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Digi AccelePort USB-4 and USB-2 Serial Converters 7 * Shamelessly based on Brian Warner's keyspan_pda.c and Greg Kroah-Hartman's 8 * usb-serial driver. 31 #define DRIVER_DESC "Digi AccelePort USB-2/USB-4 Serial Converter driver" 33 /* port output buffer length -- must be <= transfer buffer length - 2 */ 37 /* port input buffer length -- must be >= transfer buffer length - 3 */ 54 #define DIGI_2_ID 0x0002 /* USB-2 */ 55 #define DIGI_4_ID 0x0004 /* USB-4 */ 58 * "INB": can be used on the in-band endpoint [all …]
|
| /linux/Documentation/userspace-api/media/v4l/ |
| H A D | vidioc-decoder-cmd.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 13 VIDIOC_DECODER_CMD - VIDIOC_TRY_DECODER_CMD - Execute an decoder command 38 These ioctls control an audio/video (usually MPEG-) decoder. 55 command to the decoder, and all buffered data is discarded. Applies to both 68 .. flat-table:: struct v4l2_decoder_cmd 69 :header-rows: 0 70 :stub-columns: 0 73 * - __u32 74 - ``cmd`` 75 - [all …]
|
| /linux/block/ |
| H A D | blk-wbt.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * buffered writeback throttling. loosely based on CoDel. We can't drop 6 * - Monitor latencies in a defined window of time. 7 * - If the minimum latency in the above window exceeds some target, increment 10 * - For any window where we don't have solid data on what the latencies 12 * - If latencies look good, decrement scaling step. 13 * - If we're only doing writes, allow the scaling step to go negative. This 16 * positive scaling steps where we shrink the monitoring window, a negative 25 #include <linux/backing-dev.h> 28 #include "blk-stat.h" [all …]
|
| /linux/include/net/ |
| H A D | mac80211.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * mac80211 <-> driver interface 5 * Copyright 2002-2005, Devicescape Software, Inc. 6 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> 7 * Copyright 2007-2010 Johannes Berg <johannes@sipsolutions.net> 8 * Copyright 2013-2014 Intel Mobile Communications GmbH 9 * Copyright (C) 2015 - 201 [all...] |
| /linux/drivers/gpu/drm/i915/ |
| H A D | i915_perf.c | 2 * Copyright © 2015-2016 Intel Corporation 39 * The interface is particularly suited to exposing buffered metrics that are 44 * without special privileges. Access to system-wide metrics requires root 58 * might sample sets of tightly-coupled counters, depending on the 70 * interleaved with event-type specific members. 76 * would be acceptable to expose them to unprivileged applications - to hide 96 * side-band OA data captured via MI_REPORT_PERF_COUNT commands; we're 102 * For posterity, in case we might re-visit trying to adapt core perf to be 106 * - The perf based OA PMU driver broke some significant design assumptions: 110 * implications, the need to fake cpu-related data (such as user/kernel [all …]
|
| /linux/Documentation/filesystems/iomap/ |
| H A D | design.rst | 1 .. SPDX-License-Identifier: GPL-2.0 78 1. Obtain a space mapping via ``->iomap_begin`` 80 2. For each sub-unit of work... 89 4. Release the mapping via ``->iomap_end``, if necessary 105 ----------- 127 device pre-shutdown hook from returning before other threads have 152 ---------------- 158 .. code-block:: c 192 ``->iomap_end`` function must delete the reservation. 211 For write operation, the ``->iomap_end`` function presumably [all …]
|
| /linux/Documentation/scsi/ |
| H A D | st.rst | 1 .. SPDX-License-Identifier: GPL-2.0 23 flexible method and applicable to single-user workstations. However, 32 drive performs auto-detection of the tape format well (like some 33 QIC-drives). The result is that any tape can be read, writing can be 37 does not perform auto-detection well enough and there is a single 40 or not :-). 56 users (buffered and asynchronous writes). The modes also allow choices 57 between formats in multi-tape operations (the explicitly overridden 72 limits). Both the auto-rewind (minor equals device number) and 73 non-rewind devices (minor is 128 + device number) are implemented. [all …]
|
| /linux/drivers/input/mouse/ |
| H A D | cyapa_gen5.c | 6 * Copyright (C) 2014-2015 Cypress Semiconductor, Inc. 21 #include <linux/crc-itu-t.h> 33 #define CYAPA_TSG_IMG_MAX_RECORDS (CYAPA_TSG_IMG_END_ROW_NUM - \ 141 * Bit 7 - 3: reserved 142 * Bit 2 - 0: touch type; 146 * 3 - 15 : reserved. 154 * Bit 6 - 5: indicates an event associated with this touch instance 159 * Bit 4 - 0: An arbitrary ID tag associated with a finger 164 /* Bit 7 - 0 of X-axis coordinate of the touch in pixel. */ 167 /* Bit 15 - 8 of X-axis coordinate of the touch in pixel. */ [all …]
|
| /linux/mm/ |
| H A D | filemap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 1994-1999 Linus Torvalds 30 #include <linux/error-injection.h> 33 #include <linux/backing-dev.h> 73 * finished 'unifying' the page and buffer cache and SMP-threaded the 74 * page-cache, 21.05.1999, Ingo Molnar <mingo@redhat.com> 76 * SMP-threaded pagemap-LRU 1999, Andrea Arcangeli <andrea@suse.de> 82 * ->i_mmap_rwsem (truncate_pagecache) 83 * ->private_lock (__free_pte->block_dirty_folio) 84 * ->swap_lock (exclusive_swap_page, others) [all …]
|
| /linux/drivers/edac/ |
| H A D | r82600_edac.c | 14 * www.radisys.com/files/support_downloads/007-01277-0002.82600DataBook.pdf 37 * signals buffered) and unbuffered DIMM types are supported. Mixing of 38 * registered and unbuffered DIMMs as well as mixing of ECC and non-ECC DIMMs 49 /* Radisys 82600 register addresses - device 0 function 0 - PCI bridge */ 125 * 7:0 Address lines 30:24 - upper limit of 142 pdev = to_pci_dev(mci->pdev); in r82600_get_error_info() 143 pci_read_config_dword(pdev, R82600_EAP, &info->eapr); in r82600_get_error_info() 145 if (info->eapr & BIT(0)) in r82600_get_error_info() 151 if (info->eapr & BIT(1)) in r82600_get_error_info() 169 eapaddr = ((info->eapr >> 12) & 0x7FFF) << 13; in r82600_process_error_info() [all …]
|
| /linux/Documentation/filesystems/ |
| H A D | vfs.rst | 1 .. SPDX-License-Identifier: GPL-2.0 9 - Copyright (C) 1999 Richard Gooch 10 - Copyright (C) 2005 Pekka Enberg 27 ------------------------------ 32 cache or dcache). This provides a very fast look-up mechanism to 44 ---------------- 64 --------------- 67 structure (this is the kernel-side implementation of file descriptors). 88 .. code-block:: c 99 ->mount() will be attached to the mountpoint, so that when pathname [all …]
|
| /linux/include/linux/ |
| H A D | hid.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 4 * Copyright (c) 2000-2001 Vojtech Pavlik 5 * Copyright (c) 2006-2007 Jiri Kosina 10 * e-mail - mail your message to <vojtech@ucw.cz>, or by paper mail: 33 * values are expanded to 32-bit signed int, long items contain a pointer 190 * System Multi-Axis, see: 191 …* http://www.usb.org/developers/hidpage/HUTRR62_-_Generic_Desktop_CA_for_System_Multi-Axis_Control… 459 * persistent for main-items. The global environment can be saved and 477 * This is the local environment. It is persistent up the next main-item. 499 int parent_idx; /* device->collection */ [all …]
|