Home
last modified time | relevance | path

Searched +full:cell +full:- +full:count (Results 1 – 25 of 200) sorted by relevance

12345678

/Linux-v6.6/drivers/md/
Ddm-bio-prison-v1.c1 // 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 …]
Ddm-bio-prison-v2.h1 /* 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 …]
Ddm-thin.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2011-2012 Red Hat UK.
8 #include "dm-thin-metadata.h"
9 #include "dm-bio-prison-v1.h"
12 #include <linux/device-mapper.h>
13 #include <linux/dm-io.h>
14 #include <linux/dm-kcopyd.h>
51 #define MAX_DEV_ID ((1 << 24) - 1)
57 * We use a standard copy-on-write btree to store the mappings for the
58 * devices (note I'm talking about copy-on-write of the metadata here, not
[all …]
/Linux-v6.6/drivers/nvmem/
Dcore.c1 // 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>
86 if (nvmem->reg_read) in __nvmem_reg_read()
87 return nvmem->reg_read(nvmem->priv, offset, val, bytes); in __nvmem_reg_read()
89 return -EINVAL; in __nvmem_reg_read()
97 if (nvmem->reg_write) { in __nvmem_reg_write()
98 gpiod_set_value_cansleep(nvmem->wp_gpio, 0); in __nvmem_reg_write()
99 ret = nvmem->reg_write(nvmem->priv, offset, val, bytes); in __nvmem_reg_write()
[all …]
/Linux-v6.6/sound/core/seq/
Dseq_memory.c1 // 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 …]
Dseq_prioq.c1 // 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 …]
Dseq_clientmgr.c1 // 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-v6.6/fs/afs/
Dcallback.c26 * ->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 struct afs_cell *cell = server->cell; in afs_server_init_callback_work() local
42 down_read(&cell->fs_open_mmaps_lock); in afs_server_init_callback_work()
44 list_for_each_entry(vnode, &cell->fs_open_mmaps, cb_mmap_link) { in afs_server_init_callback_work()
45 if (vnode->cb_server == server) { in afs_server_init_callback_work()
46 clear_bit(AFS_VNODE_CB_PROMISED, &vnode->flags); in afs_server_init_callback_work()
47 queue_work(system_unbound_wq, &vnode->cb_work); in afs_server_init_callback_work()
51 up_read(&cell->fs_open_mmaps_lock); in afs_server_init_callback_work()
55 * Allow the fileserver to request callback state (re-)initialisation.
[all …]
Dvl_rotate.c1 // 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
21 vc->cell = cell; in afs_begin_vlserver_operation()
22 vc->key = key; in afs_begin_vlserver_operation()
23 vc->error = -EDESTADDRREQ; in afs_begin_vlserver_operation()
24 vc->ac.error = SHRT_MAX; in afs_begin_vlserver_operation()
27 vc->error = -EINTR; in afs_begin_vlserver_operation()
28 vc->flags |= AFS_VL_CURSOR_STOP; in afs_begin_vlserver_operation()
41 struct afs_cell *cell = vc->cell; in afs_start_vl_iteration() local
44 if (cell->dns_source == DNS_RECORD_UNAVAILABLE || in afs_start_vl_iteration()
[all …]
Dvlclient.c1 // SPDX-License-Identifier: GPL-2.0-or-later
32 uvldb = call->buffer; in afs_deliver_vl_get_entry_by_name_u()
33 entry = call->ret_vldb; in afs_deliver_vl_get_entry_by_name_u()
35 nr_servers = ntohl(uvldb->nServers); in afs_deliver_vl_get_entry_by_name_u()
39 for (i = 0; i < ARRAY_SIZE(uvldb->name) - 1; i++) in afs_deliver_vl_get_entry_by_name_u()
40 entry->name[i] = (u8)ntohl(uvldb->name[i]); in afs_deliver_vl_get_entry_by_name_u()
41 entry->name[i] = 0; in afs_deliver_vl_get_entry_by_name_u()
42 entry->name_len = strlen(entry->name); in afs_deliver_vl_get_entry_by_name_u()
48 tmp = ntohl(uvldb->serverFlags[i]); in afs_deliver_vl_get_entry_by_name_u()
54 vlflags = ntohl(uvldb->flags); in afs_deliver_vl_get_entry_by_name_u()
[all …]
Dserver.c1 // SPDX-License-Identifier: GPL-2.0-or-later
38 read_seqbegin_or_lock(&net->fs_addr_lock, &seq); in afs_find_server()
40 if (srx->transport.family == AF_INET6) { in afs_find_server()
41 const struct sockaddr_in6 *a = &srx->transport.sin6, *b; in afs_find_server()
42 hlist_for_each_entry_rcu(server, &net->fs_addresses6, addr6_link) { in afs_find_server()
43 alist = rcu_dereference(server->addresses); in afs_find_server()
44 for (i = alist->nr_ipv4; i < alist->nr_addrs; i++) { in afs_find_server()
45 b = &alist->addrs[i].transport.sin6; in afs_find_server()
46 diff = ((u16 __force)a->sin6_port - in afs_find_server()
47 (u16 __force)b->sin6_port); in afs_find_server()
[all …]
/Linux-v6.6/drivers/atm/
Diphase.h29 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 …]
Dnicstar.h1 /* 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 …]
Dsuni.h1 /* 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-v6.6/drivers/bus/
Dhisi_lpc.c1 // 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-v6.6/drivers/s390/char/
Dcon3270.c1 // 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-v6.6/arch/parisc/kernel/
Dfirmware.c1 // 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-v6.6/Documentation/devicetree/bindings/reset/
Dintel,rcu-gw.yaml1 # 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-v6.6/drivers/net/phy/
Ddp83867.c1 // SPDX-License-Identifier: GPL-2.0
17 #include <linux/nvmem-consumer.h>
19 #include <dt-bindings/net/ti-dp83867.h>
194 struct net_device *ndev = phydev->attached_dev; in dp83867_set_wol()
201 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_UCAST | in dp83867_set_wol()
206 if (wol->wolopts & WAKE_MAGIC) { in dp83867_set_wol()
207 mac = (const u8 *)ndev->dev_addr; in dp83867_set_wol()
210 return -EINVAL; in dp83867_set_wol()
224 if (wol->wolopts & WAKE_MAGICSECURE) { in dp83867_set_wol()
226 (wol->sopass[1] << 8) | wol->sopass[0]); in dp83867_set_wol()
[all …]
/Linux-v6.6/drivers/of/
Dcpu.c1 // 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-v6.6/sound/aoa/soundbus/i2sbus/
Dcontrol.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * i2sbus driver -- bus control routines
25 return -ENOMEM; in i2sbus_control_init()
27 INIT_LIST_HEAD(&(*c)->list); in i2sbus_control_init()
29 (*c)->macio = dev->bus->chip; in i2sbus_control_init()
44 np = i2sdev->sound.ofdev.dev.of_node; in i2sbus_control_add_dev()
45 i2sdev->enable = pmf_find_function(np, "enable"); in i2sbus_control_add_dev()
46 i2sdev->cell_enable = pmf_find_function(np, "cell-enable"); in i2sbus_control_add_dev()
47 i2sdev->clock_enable = pmf_find_function(np, "clock-enable"); in i2sbus_control_add_dev()
48 i2sdev->cell_disable = pmf_find_function(np, "cell-disable"); in i2sbus_control_add_dev()
[all …]
/Linux-v6.6/Documentation/devicetree/bindings/interrupt-controller/
Dmti,gic.yaml1 # 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-v6.6/Documentation/devicetree/bindings/power/supply/
Dltc4162-l.yaml1 # 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-v6.6/drivers/scsi/bnx2i/
Dbnx2i_sysfs.c3 * 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-v6.6/arch/parisc/include/asm/
Dpdcpat.h9 * 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 …]

12345678