/linux/drivers/md/ |
H A D | dm-bio-prison-v1.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include "dm-bio-prison-v1.h" 10 #include "dm-bio-prison-v2.h" 17 /*----------------------------------------------------------------*/ 23 struct rb_root cell; member 34 /*----------------------------------------------------------------*/ 50 prison->num_locks = num_locks; in dm_bio_prison_create() 52 for (i = 0; i < prison->num_locks; i++) { in dm_bio_prison_create() 53 spin_lock_init(&prison->regions[i].lock); in dm_bio_prison_create() 54 prison->regions[i].cell = RB_ROOT; in dm_bio_prison_create() [all …]
|
H A D | dm-bio-prison-v2.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (C) 2011-2017 Red Hat, Inc. 11 #include "persistent-data/dm-block-manager.h" /* FIXME: for dm_block_t */ 12 #include "dm-thin-metadata.h" /* FIXME: for dm_thin_id */ 18 /*----------------------------------------------------------------*/ 25 * where they can't cause any mischief. Bios are put in a cell identified 26 * by a key, multiple bios can be in the same cell. When the cell is 62 * Eventually all bio prison clients should manage their own cell memory. 70 struct dm_bio_prison_cell_v2 *cell); 76 * call dm_cell_put_v2() to drop the reference count when finished using it. [all …]
|
/linux/drivers/nvmem/ |
H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Copyright (C) 2013 Maxime Ripard <maxime.ripard@free-electrons.com> 16 #include <linux/nvmem-consumer.h> 17 #include <linux/nvmem-provider.h> 61 if (nvmem->reg_read) in __nvmem_reg_read() 62 return nvmem->reg_read(nvmem->priv, offset, val, bytes); in __nvmem_reg_read() 64 return -EINVAL; in __nvmem_reg_read() 72 if (nvmem->reg_write) { in __nvmem_reg_write() 73 gpiod_set_value_cansleep(nvmem->wp_gpio, 0); in __nvmem_reg_write() 74 ret = nvmem->reg_write(nvmem->priv, offset, val, bytes); in __nvmem_reg_write() [all …]
|
/linux/sound/core/seq/ |
H A D | seq_memory.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 24 return pool->total_elements - atomic_read(&pool->counter); in snd_seq_pool_available() 29 return snd_seq_pool_available(pool) >= pool->room; in snd_seq_output_ok() 49 * ext.data.ptr = the additiona cell head 50 * -> cell.next -> cell.next -> .. 60 if ((event->flags & SNDRV_SEQ_EVENT_LENGTH_MASK) != SNDRV_SEQ_EVENT_LENGTH_VARIABLE) in get_var_len() 61 return -EINVAL; in get_var_len() 63 return event->data.ext.len & ~SNDRV_SEQ_EXT_MASK; in get_var_len() 71 struct snd_seq_event_cell *cell; in dump_var_event() local 81 if (event->data.ext.len & SNDRV_SEQ_EXT_USRPTR) { in dump_var_event() [all …]
|
H A D | seq_prioq.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (c) 1998-1999 by Frank van de Pol <fvdpol@coil.demon.nl> 20 * +-------+ 21 * Head --> | first | 22 * +-------+ 24 * +-----v-+ 26 * +-------+ 28 * +-----v-+ 30 * +-------+ 32 * +-----v-+ [all …]
|
H A D | seq_clientmgr.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (c) 1998-2001 by Frank van de Pol <fvdpol@coil.demon.nl> 44 /* number of kernel non-card clients */ 83 switch (file->f_mode & (FMODE_READ | FMODE_WRITE)) { in snd_seq_file_flags() 95 return snd_seq_total_cells(client->pool) > 0; in snd_seq_write_pool_allocated() 141 request_module("snd-seq-client-%i", in snd_seq_client_use_ptr() 148 int card = (clientid - SNDRV_SEQ_GLOBAL_CLIENTS) / in snd_seq_client_use_ptr() 166 snd_use_lock_use(&client->use_lock); in snd_seq_client_use_ptr() 182 mutex_lock(&client->ioctl_mutex); in snd_seq_client_ioctl_lock() 196 mutex_unlock(&client->ioctl_mutex); in snd_seq_client_ioctl_unlock() [all …]
|
/linux/fs/afs/ |
H A D | vl_rotate.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 17 bool afs_begin_vlserver_operation(struct afs_vl_cursor *vc, struct afs_cell *cell, in afs_begin_vlserver_operation() argument 23 vc->cell = cell; in afs_begin_vlserver_operation() 24 vc->key = key; in afs_begin_vlserver_operation() 25 vc->cumul_error.error = -EDESTADDRREQ; in afs_begin_vlserver_operation() 26 vc->nr_iterations = -1; in afs_begin_vlserver_operation() 29 vc->cumul_error.error = -EINTR; in afs_begin_vlserver_operation() 30 vc->flags |= AFS_VL_CURSOR_STOP; in afs_begin_vlserver_operation() 34 vc->debug_id = atomic_inc_return(&debug_ids); in afs_begin_vlserver_operation() 44 struct afs_cell *cell = vc->cell; in afs_start_vl_iteration() local [all …]
|
H A D | callback.c | 26 * ->fault() or ->page_mkwrite() - at which point we can handle invalidation 33 unmap_mapping_pages(vnode->netfs.inode.i_mapping, 0, 0, false); in afs_invalidate_mmap_work() 40 down_read(&volume->open_mmaps_lock); in afs_volume_init_callback() 42 list_for_each_entry(vnode, &volume->open_mmaps, cb_mmap_link) { in afs_volume_init_callback() 43 if (vnode->cb_v_check != atomic_read(&volume->cb_v_break)) { in afs_volume_init_callback() 44 atomic64_set(&vnode->cb_expires_at, AFS_NO_CB_PROMISE); in afs_volume_init_callback() 45 queue_work(system_unbound_wq, &vnode->cb_work); in afs_volume_init_callback() 49 up_read(&volume->open_mmaps_lock); in afs_volume_init_callback() 53 * Allow the fileserver to request callback state (re-)initialisation. 60 down_read(&server->cell->vs_lock); in afs_init_callback_state() [all …]
|
H A D | server.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 39 read_seqbegin_or_lock(&net->fs_addr_lock, &seq); in afs_find_server() 41 hlist_for_each_entry_rcu(server, &net->fs_addresses, addr_link) { in afs_find_server() 42 estate = rcu_dereference(server->endpoint_state); in afs_find_server() 43 alist = estate->addresses; in afs_find_server() 44 for (i = 0; i < alist->nr_addrs; i++) in afs_find_server() 45 if (alist->addrs[i].peer == peer) in afs_find_server() 54 } while (need_seqretry(&net->fs_addr_lock, seq)); in afs_find_server() 56 done_seqretry(&net->fs_addr_lock, seq); in afs_find_server() 82 read_seqbegin_or_lock(&net->fs_lock, &seq); in afs_find_server_by_uuid() [all …]
|
H A D | vlclient.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 31 uvldb = call->buffer; in afs_deliver_vl_get_entry_by_name_u() 32 entry = call->ret_vldb; in afs_deliver_vl_get_entry_by_name_u() 34 nr_servers = ntohl(uvldb->nServers); in afs_deliver_vl_get_entry_by_name_u() 38 for (i = 0; i < ARRAY_SIZE(uvldb->name) - 1; i++) in afs_deliver_vl_get_entry_by_name_u() 39 entry->name[i] = (u8)ntohl(uvldb->name[i]); in afs_deliver_vl_get_entry_by_name_u() 40 entry->name[i] = 0; in afs_deliver_vl_get_entry_by_name_u() 41 entry->name_len = strlen(entry->name); in afs_deliver_vl_get_entry_by_name_u() 43 vlflags = ntohl(uvldb->flags); in afs_deliver_vl_get_entry_by_name_u() 47 u32 tmp = ntohl(uvldb->serverFlags[i]); in afs_deliver_vl_get_entry_by_name_u() [all …]
|
/linux/drivers/atm/ |
H A D | iphase.h | 29 Complete the ABR logic of the driver, and added the ABR work- 32 Add the flow control logic to the driver to allow rate-limit VC. 127 #define ATM_DESC(skb) (skb->protocol) 128 #define IA_SKB_STATE(skb) (skb->protocol) 177 #define NRMCODE 5 /* 0 - 7 */ 178 #define TRMCODE 3 /* 0 - 7 */ 180 #define ATDFCODE 2 /* 0 - 15 */ 182 /*---------------------- Packet/Cell Memory ------------------------*/ 183 #define TX_PACKET_RAM 0x00000 /* start of Trasnmit Packet memory - 0 */ 186 - descriptor 0 unused */ [all …]
|
H A D | nicstar.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 56 #define NUM_HB 8 /* Pre-allocated huge buffers */ 59 /* Lower level for count of buffers */ 65 /* Upper level for count of buffers */ 107 #define NS_MAX_IOVECS (2 + (65568 - NS_SMBUFSIZE) / \ 108 (NS_LGBUFSIZE - (NS_LGBUFSIZE % 48))) 111 #define NS_SMBUFSIZE_USABLE (NS_SMBUFSIZE - NS_SMBUFSIZE % 48) 112 #define NS_LGBUFSIZE_USABLE (NS_LGBUFSIZE - NS_LGBUFSIZE % 48) 114 #define NS_AAL0_HEADER (ATM_AAL0_SDU - ATM_CELL_PAYLOAD) /* 4 bytes */ 122 * RSQ - Receive Status Queue [all …]
|
H A D | suni.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * drivers/atm/suni.h - S/UNI PHY driver 6 /* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */ 26 /* 0x08-0x0F reserved */ 29 #define SUNI_RSOP_SBL 0x12 /* RSOP Section BIP-8 LSB */ 30 #define SUNI_RSOP_SBM 0x13 /* RSOP Section BIP-8 MSB */ 33 /* 0x16-0x17 reserved */ 36 #define SUNI_RLOP_LBL 0x1A /* RLOP Line BIP-8/24 LSB */ 37 #define SUNI_RLOP_LB 0x1B /* RLOP Line BIP-8/24 */ 38 #define SUNI_RLOP_LBM 0x1C /* RLOP Line BIP-8/24 MSB */ [all …]
|
/linux/drivers/bus/ |
H A D | hisi_lpc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 22 #define DRV_NAME "hisi-lpc" 50 #define LPC_REG_OP_LEN 0x10 /* LPC cycles count per start */ 84 return (status & LPC_REG_OP_STATUS_FINISHED) ? 0 : -EIO; in wait_lpc_idle() 86 } while (--waitcnt); in wait_lpc_idle() 88 return -ETIMEDOUT; in wait_lpc_idle() 92 * hisi_lpc_target_in - trigger a series of LPC cycles for read operation 99 * Returns 0 on success, non-zero on fail. 110 if (!buf || !opcnt || !para || !para->csize || !lpcdev) in hisi_lpc_target_in() 111 return -EINVAL; in hisi_lpc_target_in() [all …]
|
/linux/drivers/s390/char/ |
H A D | con3270.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * IBM/3270 Driver - tty functions. 8 * -- Copyright IBM Corp. 2003 37 #define TTY3270_SCREEN_PAGES 8 /* has to be power-of-two */ 38 #define TTY3270_RECALL_SIZE 16 /* has to be power-of-two */ 129 /* tty3270->update_flags. See tty3270_update for details. */ 142 mod_timer(&tp->timer, jiffies + expires); in tty3270_set_timer() 147 return tp->view.rows - TTY3270_INPUT_AREA_ROWS; in tty3270_tty_rows() 153 raw3270_buffer_address(tp->view.dev, cp, x, y); in tty3270_add_ba() 188 return (line + incr) & (tp->allocated_lines - 1); in tty3270_line_increment() [all …]
|
/linux/arch/parisc/kernel/ |
H A D | firmware.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * arch/parisc/kernel/firmware.c - safe PDC access routines 14 * Copyright 2003 Grant Grundler <grundler parisc-linux org> 15 * Copyright 2003,2004 Ryan Bradetich <rbrad@parisc-linux.org> 16 * Copyright 2004,2006 Thibaut VARENE <varenet@parisc-linux.org> 22 * - the name of the pdc wrapper should match one of the macros 24 * - don't use caps for random parts of the name 25 * - use the static PDC result buffers and "copyout" to structs 27 * - hold pdc_lock while in PDC or using static result buffers 28 * - use __pa() to convert virtual (kernel) pointers to physical [all …]
|
/linux/Documentation/devicetree/bindings/reset/ |
H A D | intel,rcu-gw.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/reset/intel,rcu-gw.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Dilip Kota <eswara.kota@linux.intel.com> 15 - intel,rcu-lgm 16 - intel,rcu-xrx200 22 intel,global-reset: 24 $ref: /schemas/types.yaml#/definitions/uint32-array 26 - description: Register offset [all …]
|
/linux/drivers/of/ |
H A D | cpu.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * of_get_cpu_hwid - Get the hardware ID from a CPU device node 16 const __be32 *cell; in of_get_cpu_hwid() local 20 cell = of_get_property(cpun, "reg", &len); in of_get_cpu_hwid() 21 if (!cell || !ac || ((sizeof(*cell) * ac * (thread + 1)) > len)) in of_get_cpu_hwid() 24 cell += ac * thread; in of_get_cpu_hwid() 25 return of_read_number(cell, ac); in of_get_cpu_hwid() 29 * arch_match_cpu_phys_id - Match the given logical CPU and physical id 55 const __be32 *cell; in __of_find_n_match_cpu_property() local 60 cell = of_get_property(cpun, prop_name, &prop_len); in __of_find_n_match_cpu_property() [all …]
|
/linux/sound/aoa/soundbus/i2sbus/ |
H A D | control.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * i2sbus driver -- bus control routines 24 return -ENOMEM; in i2sbus_control_init() 26 INIT_LIST_HEAD(&(*c)->list); in i2sbus_control_init() 28 (*c)->macio = dev->bus->chip; in i2sbus_control_init() 43 np = i2sdev->sound.ofdev.dev.of_node; in i2sbus_control_add_dev() 44 i2sdev->enable = pmf_find_function(np, "enable"); in i2sbus_control_add_dev() 45 i2sdev->cell_enable = pmf_find_function(np, "cell-enable"); in i2sbus_control_add_dev() 46 i2sdev->clock_enable = pmf_find_function(np, "clock-enable"); in i2sbus_control_add_dev() 47 i2sdev->cell_disable = pmf_find_function(np, "cell-disable"); in i2sbus_control_add_dev() [all …]
|
/linux/Documentation/devicetree/bindings/interrupt-controller/ |
H A D | mti,gic.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/interrupt-controller/mti,gic.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Paul Burton <paulburton@kernel.org> 11 - Thomas Bogendoerfer <tsbogend@alpha.franken.de> 15 It also supports local (per-processor) interrupts and software-generated 16 interrupts which can be used as IPIs. The GIC also includes a free-running 17 global timer, per-CPU count/compare timers, and a watchdog. 23 "#interrupt-cells": [all …]
|
/linux/Documentation/devicetree/bindings/power/supply/ |
H A D | ltc4162-l.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/power/supply/ltc4162-l.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: Linear Technology (Analog Devices) LTC4162-L Charger 11 - Mike Looijmans <mike.looijmans@topic.nl> 14 The LTC ® 4162-L is an advanced monolithic synchronous step-down switching 17 panels, etc., and a rechargeable Lithium-Ion/Polymer battery. 20 https://www.analog.com/en/products/ltc4162-s.html 25 - lltc,ltc4162-l [all …]
|
/linux/drivers/scsi/bnx2i/ |
H A D | bnx2i_sysfs.c | 3 * Copyright (c) 2004 - 2013 Broadcom Corporation 12 * Maintained by: QLogic-Storage-Upstream@qlogic.com 18 * bnx2i_dev_to_hba - maps dev pointer to adapter struct 31 * bnx2i_show_sq_info - return(s currently configured send queue (SQ) size 44 return sprintf(buf, "0x%x\n", hba->max_sqes); in bnx2i_show_sq_info() 49 * bnx2i_set_sq_info - update send queue (SQ) size parameter 53 * @count: parameter buffer size 61 const char *buf, size_t count) in bnx2i_set_sq_info() argument 67 if (hba->ofld_conns_active) in bnx2i_set_sq_info() 70 if (test_bit(BNX2I_NX2_DEV_57710, &hba->cnic_dev_type)) in bnx2i_set_sq_info() [all …]
|
/linux/drivers/net/phy/ |
H A D | dp83867.c | 1 // SPDX-License-Identifier: GPL-2.0 17 #include <linux/nvmem-consumer.h> 19 #include <dt-bindings/net/ti-dp83867.h> 212 struct net_device *ndev = phydev->attached_dev; in dp83867_set_wol() 219 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_UCAST | in dp83867_set_wol() 224 if (wol->wolopts & WAKE_MAGIC) { in dp83867_set_wol() 225 mac = (const u8 *)ndev->dev_addr; in dp83867_set_wol() 228 return -EINVAL; in dp83867_set_wol() 242 if (wol->wolopts & WAKE_MAGICSECURE) { in dp83867_set_wol() 244 (wol->sopass[1] << 8) | wol->sopass[0]); in dp83867_set_wol() [all …]
|
/linux/arch/parisc/include/asm/ |
H A D | pdcpat.h | 9 * Copyright 2000 (c) Hewlett Packard (Paul Bame <bame()spam.parisc-linux.org>) 10 * Copyright 2000,2004 (c) Grant Grundler <grundler()nahspam.parisc-linux.org> 15 * manipulatin g cell state within PD */ 16 #define PDC_PAT_CELL_GET_NUMBER 0L /* Return Cell number */ 17 #define PDC_PAT_CELL_GET_INFO 1L /* Returns info about Cell */ 19 #define PDC_PAT_CELL_SET_ATTENTION 9L /* Set Cell Attention indicator */ 20 #define PDC_PAT_CELL_NUMBER_TO_LOC 10L /* Cell Number -> Location */ 29 #define PDC_PAT_CELL_CHANGE_ALIAS 129L /* Change Non-Equivalent Alias Chacking */ 63 /* PDC PAT CHASSIS LOG -- Platform logging & forward progress functions */ 74 /* PDC PAT CPU -- CPU configuration within the protection domain */ [all …]
|
/linux/Documentation/sphinx/ |
H A D | rstFlatTable.py | 2 # -*- coding: utf-8; mode: python -*- 6 flat-table 9 Implementation of the ``flat-table`` reST-directive. 14 The ``flat-table`` (:py:class:`FlatTable`) is a double-stage list similar to 15 the ``list-table`` with some additional features: 17 * *column-span*: with the role ``cspan`` a cell can be extended through 20 * *row-span*: with the role ``rspan`` a cell can be extended through 23 * *auto span* rightmost cell of a table row over the missing cells on the 24 right side of that table-row. With Option ``:fill-cells:`` this behavior 26 (empty) cells instead of spanning the last cell. [all …]
|