Home
last modified time | relevance | path

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

12345678910>>...43

/kernel/linux/linux-6.6/fs/afs/
Dcell.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* AFS cell and server record management
15 #include <keys/rxrpc-type.h>
28 if (atomic_dec_and_test(&net->cells_outstanding)) in afs_dec_cells_outstanding()
29 wake_up_var(&net->cells_outstanding); in afs_dec_cells_outstanding()
33 * Set the cell timer to fire after a given delay, assuming it's not already
38 if (net->live) { in afs_set_cell_timer()
39 atomic_inc(&net->cells_outstanding); in afs_set_cell_timer()
40 if (timer_reduce(&net->cells_timer, jiffies + delay * HZ)) in afs_set_cell_timer()
48 * Look up and get an activation reference on a cell record. The caller must
[all …]
Dvl_alias.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* AFS cell alias detection
11 #include <keys/rxrpc-type.h>
17 static struct afs_volume *afs_sample_volume(struct afs_cell *cell, struct key *key, in afs_sample_volume() argument
25 .net = cell->net, in afs_sample_volume()
26 .cell = cell, in afs_sample_volume()
44 diff = (short)srx_a->transport_type - (short)srx_b->transport_type; in afs_compare_addrs()
48 switch (srx_a->transport_type) { in afs_compare_addrs()
50 const struct sockaddr_in *a = &srx_a->transport.sin; in afs_compare_addrs()
51 const struct sockaddr_in *b = &srx_b->transport.sin; in afs_compare_addrs()
[all …]
Ddynroot.c1 // SPDX-License-Identifier: GPL-2.0-or-later
30 struct afs_super_info *as = AFS_FS_S(inode->i_sb); in afs_iget5_pseudo_set()
34 vnode->volume = as->volume; in afs_iget5_pseudo_set()
35 vnode->fid = *fid; in afs_iget5_pseudo_set()
36 inode->i_ino = fid->vnode; in afs_iget5_pseudo_set()
37 inode->i_generation = fid->unique; in afs_iget5_pseudo_set()
54 if (as->volume) in afs_iget_pseudo_dir()
55 fid.vid = as->volume->vid; in afs_iget_pseudo_dir()
57 fid.vnode = 1; in afs_iget_pseudo_dir()
58 fid.unique = 1; in afs_iget_pseudo_dir()
[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 …]
Dvolume.c1 // SPDX-License-Identifier: GPL-2.0-or-later
15 * Insert a volume into a cell. If there's an existing volume record, that is
18 static struct afs_volume *afs_insert_volume_into_cell(struct afs_cell *cell, in afs_insert_volume_into_cell() argument
24 write_seqlock(&cell->volume_lock); in afs_insert_volume_into_cell()
26 pp = &cell->volumes.rb_node; in afs_insert_volume_into_cell()
30 if (p->vid < volume->vid) { in afs_insert_volume_into_cell()
31 pp = &(*pp)->rb_left; in afs_insert_volume_into_cell()
32 } else if (p->vid > volume->vid) { in afs_insert_volume_into_cell()
33 pp = &(*pp)->rb_right; in afs_insert_volume_into_cell()
40 set_bit(AFS_VOLUME_RM_TREE, &volume->flags); in afs_insert_volume_into_cell()
[all …]
Dproc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
37 struct afs_cell *cell; in afs_proc_cells_show() local
40 /* display header on line 1 */ in afs_proc_cells_show()
45 cell = list_entry(v, struct afs_cell, proc_link); in afs_proc_cells_show()
46 vllist = rcu_dereference(cell->vl_servers); in afs_proc_cells_show()
48 /* display one cell per line on subsequent lines */ in afs_proc_cells_show()
50 refcount_read(&cell->ref), in afs_proc_cells_show()
51 atomic_read(&cell->active), in afs_proc_cells_show()
52 cell->dns_expiry - ktime_get_real_seconds(), in afs_proc_cells_show()
53 vllist ? vllist->nr_servers : 0, in afs_proc_cells_show()
[all …]
/kernel/linux/linux-5.10/fs/afs/
Dcell.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* AFS cell and server record management
15 #include <keys/rxrpc-type.h>
28 if (atomic_dec_and_test(&net->cells_outstanding)) in afs_dec_cells_outstanding()
29 wake_up_var(&net->cells_outstanding); in afs_dec_cells_outstanding()
33 * Set the cell timer to fire after a given delay, assuming it's not already
38 if (net->live) { in afs_set_cell_timer()
39 atomic_inc(&net->cells_outstanding); in afs_set_cell_timer()
40 if (timer_reduce(&net->cells_timer, jiffies + delay * HZ)) in afs_set_cell_timer()
48 * Look up and get an activation reference on a cell record. The caller must
[all …]
Dvl_alias.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* AFS cell alias detection
11 #include <keys/rxrpc-type.h>
17 static struct afs_volume *afs_sample_volume(struct afs_cell *cell, struct key *key, in afs_sample_volume() argument
25 .net = cell->net, in afs_sample_volume()
26 .cell = cell, in afs_sample_volume()
44 diff = (short)srx_a->transport_type - (short)srx_b->transport_type; in afs_compare_addrs()
48 switch (srx_a->transport_type) { in afs_compare_addrs()
50 const struct sockaddr_in *a = &srx_a->transport.sin; in afs_compare_addrs()
51 const struct sockaddr_in *b = &srx_b->transport.sin; in afs_compare_addrs()
[all …]
Dvolume.c1 // SPDX-License-Identifier: GPL-2.0-or-later
16 * Insert a volume into a cell. If there's an existing volume record, that is
19 static struct afs_volume *afs_insert_volume_into_cell(struct afs_cell *cell, in afs_insert_volume_into_cell() argument
25 write_seqlock(&cell->volume_lock); in afs_insert_volume_into_cell()
27 pp = &cell->volumes.rb_node; in afs_insert_volume_into_cell()
31 if (p->vid < volume->vid) { in afs_insert_volume_into_cell()
32 pp = &(*pp)->rb_left; in afs_insert_volume_into_cell()
33 } else if (p->vid > volume->vid) { in afs_insert_volume_into_cell()
34 pp = &(*pp)->rb_right; in afs_insert_volume_into_cell()
41 rb_link_node_rcu(&volume->cell_node, parent, pp); in afs_insert_volume_into_cell()
[all …]
Ddynroot.c1 // SPDX-License-Identifier: GPL-2.0-or-later
30 struct afs_super_info *as = AFS_FS_S(inode->i_sb); in afs_iget5_pseudo_set()
34 vnode->volume = as->volume; in afs_iget5_pseudo_set()
35 vnode->fid = *fid; in afs_iget5_pseudo_set()
36 inode->i_ino = fid->vnode; in afs_iget5_pseudo_set()
37 inode->i_generation = fid->unique; in afs_iget5_pseudo_set()
54 if (as->volume) in afs_iget_pseudo_dir()
55 fid.vid = as->volume->vid; in afs_iget_pseudo_dir()
57 fid.vnode = 1; in afs_iget_pseudo_dir()
58 fid.unique = 1; in afs_iget_pseudo_dir()
[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 …]
Dproc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
37 struct afs_cell *cell; in afs_proc_cells_show() local
40 /* display header on line 1 */ in afs_proc_cells_show()
45 cell = list_entry(v, struct afs_cell, proc_link); in afs_proc_cells_show()
46 vllist = rcu_dereference(cell->vl_servers); in afs_proc_cells_show()
48 /* display one cell per line on subsequent lines */ in afs_proc_cells_show()
50 atomic_read(&cell->ref), in afs_proc_cells_show()
51 atomic_read(&cell->active), in afs_proc_cells_show()
52 cell->dns_expiry - ktime_get_real_seconds(), in afs_proc_cells_show()
53 vllist ? vllist->nr_servers : 0, in afs_proc_cells_show()
[all …]
/kernel/linux/linux-6.6/sound/core/seq/
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 …]
/kernel/linux/linux-5.10/sound/core/seq/
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_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()
36 * 1) kernel space
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()
70 struct snd_seq_event_cell *cell; in snd_seq_dump_var_event() local
[all …]
/kernel/linux/linux-6.6/drivers/md/
Ddm-bio-prison-v2.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2012-2017 Red Hat, Inc.
9 #include "dm-bio-prison-v2.h"
17 /*----------------------------------------------------------------*/
31 /*----------------------------------------------------------------*/
45 prison->wq = wq; in dm_bio_prison_create_v2()
46 spin_lock_init(&prison->lock); in dm_bio_prison_create_v2()
48 ret = mempool_init_slab_pool(&prison->cell_pool, MIN_CELLS, _cell_cache); in dm_bio_prison_create_v2()
54 prison->cells = RB_ROOT; in dm_bio_prison_create_v2()
62 mempool_exit(&prison->cell_pool); in dm_bio_prison_destroy_v2()
[all …]
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-v1.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 */
17 /*----------------------------------------------------------------*/
21 * where they can't cause any mischief. Bios are put in a cell identified
22 * by a key, multiple bios can be in the same cell. When the cell is
38 * The range of a key (block_end - block_begin) must not
65 * Eventually all bio prison clients should manage their own cell memory.
73 struct dm_bio_prison_cell *cell);
[all …]
/kernel/linux/linux-5.10/drivers/md/
Ddm-bio-prison-v2.c2 * Copyright (C) 2012-2017 Red Hat, Inc.
8 #include "dm-bio-prison-v2.h"
16 /*----------------------------------------------------------------*/
30 /*----------------------------------------------------------------*/
44 prison->wq = wq; in dm_bio_prison_create_v2()
45 spin_lock_init(&prison->lock); in dm_bio_prison_create_v2()
47 ret = mempool_init_slab_pool(&prison->cell_pool, MIN_CELLS, _cell_cache); in dm_bio_prison_create_v2()
53 prison->cells = RB_ROOT; in dm_bio_prison_create_v2()
61 mempool_exit(&prison->cell_pool); in dm_bio_prison_destroy_v2()
68 return mempool_alloc(&prison->cell_pool, gfp); in dm_bio_prison_alloc_cell_v2()
[all …]
Ddm-bio-prison-v1.c8 #include "dm-bio-prison-v1.h"
9 #include "dm-bio-prison-v2.h"
16 /*----------------------------------------------------------------*/
28 /*----------------------------------------------------------------*/
42 spin_lock_init(&prison->lock); in dm_bio_prison_create()
44 ret = mempool_init_slab_pool(&prison->cell_pool, MIN_CELLS, _cell_cache); in dm_bio_prison_create()
50 prison->cells = RB_ROOT; in dm_bio_prison_create()
58 mempool_exit(&prison->cell_pool); in dm_bio_prison_destroy()
65 return mempool_alloc(&prison->cell_pool, gfp); in dm_bio_prison_alloc_cell()
70 struct dm_bio_prison_cell *cell) in dm_bio_prison_free_cell() argument
[all …]
/kernel/linux/linux-5.10/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>
72 if (nvmem->reg_read) in nvmem_reg_read()
73 return nvmem->reg_read(nvmem->priv, offset, val, bytes); in nvmem_reg_read()
75 return -EINVAL; in nvmem_reg_read()
83 if (nvmem->reg_write) { in nvmem_reg_write()
84 gpiod_set_value_cansleep(nvmem->wp_gpio, 0); in nvmem_reg_write()
85 ret = nvmem->reg_write(nvmem->priv, offset, val, bytes); in nvmem_reg_write()
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/net/
Dibm,emac.txt8 correct clock-frequency property.
13 - device_type : "network"
15 - compatible : compatible list, contains 2 entries, first is
16 "ibm,emac-CHIP" where CHIP is the host ASIC (440gx,
18 "ibm,emac4". For Axon, thus, we have: "ibm,emac-axon",
20 - interrupts : <interrupt mapping for EMAC IRQ and WOL IRQ>
21 - reg : <registers mapping>
22 - local-mac-address : 6 bytes, MAC address
23 - mal-device : phandle of the associated McMAL node
24 - mal-tx-channel : 1 cell, index of the tx channel on McMAL associated
[all …]
Dfsl-fman.txt5 - FMan Node
6 - FMan Port Node
7 - FMan MURAM Node
8 - FMan dTSEC/XGEC/mEMAC Node
9 - FMan IEEE 1588 Node
10 - FMan MDIO Node
11 - Example
18 Due to the fact that the FMan is an aggregation of sub-engines (ports, MACs,
23 - compatible
32 - cell-index
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/net/
Dibm,emac.txt8 correct clock-frequency property.
13 - device_type : "network"
15 - compatible : compatible list, contains 2 entries, first is
16 "ibm,emac-CHIP" where CHIP is the host ASIC (440gx,
18 "ibm,emac4". For Axon, thus, we have: "ibm,emac-axon",
20 - interrupts : <interrupt mapping for EMAC IRQ and WOL IRQ>
21 - reg : <registers mapping>
22 - local-mac-address : 6 bytes, MAC address
23 - mal-device : phandle of the associated McMAL node
24 - mal-tx-channel : 1 cell, index of the tx channel on McMAL associated
[all …]
/kernel/linux/linux-6.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>
64 if (nvmem->reg_read) in __nvmem_reg_read()
65 return nvmem->reg_read(nvmem->priv, offset, val, bytes); in __nvmem_reg_read()
67 return -EINVAL; in __nvmem_reg_read()
75 if (nvmem->reg_write) { in __nvmem_reg_write()
76 gpiod_set_value_cansleep(nvmem->wp_gpio, 0); in __nvmem_reg_write()
77 ret = nvmem->reg_write(nvmem->priv, offset, val, bytes); in __nvmem_reg_write()
[all …]

12345678910>>...43