| /linux/fs/afs/ |
| H A D | cell.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* AFS cell and server record management 15 #include <keys/rxrpc-type.h> 29 if (atomic_dec_and_test(&net->cells_outstanding)) in afs_dec_cells_outstanding() 30 wake_up_var(&net->cells_outstanding); in afs_dec_cells_outstanding() 33 static void afs_set_cell_state(struct afs_cell *cell, enum afs_cell_state state) in afs_set_cell_state() argument 35 smp_store_release(&cell->state, state); /* Commit cell changes before state */ in afs_set_cell_state() 36 smp_wmb(); /* Set cell state before task state */ in afs_set_cell_state() 37 wake_up_var(&cell->state); in afs_set_cell_state() 41 * Look up and get an activation reference on a cell record. The caller must [all …]
|
| H A D | dynroot.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 13 #define AFS_MIN_DYNROOT_CELL_INO 4 /* Allow for ., .., @cell, .@cell */ 25 return inode->i_ino == fid->vnode; in afs_iget5_pseudo_test() 33 struct afs_super_info *as = AFS_FS_S(inode->i_sb); in afs_iget5_pseudo_set() 37 vnode->volume = as->volume; in afs_iget5_pseudo_set() 38 vnode->fid = *fid; in afs_iget5_pseudo_set() 39 inode->i_ino = fid->vnode; in afs_iget5_pseudo_set() 40 inode->i_generation = fid->unique; in afs_iget5_pseudo_set() 51 struct afs_fid fid = { .vnode = ino, .unique = 1, }; in afs_iget_pseudo_dir() 58 _leave(" = -ENOMEM"); in afs_iget_pseudo_dir() [all …]
|
| H A D | proc.c | 1 // 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 …]
|
| H A D | server.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 35 * cell->fs_lock. 37 static struct afs_server *afs_find_server_by_uuid(struct afs_cell *cell, const uuid_t *uuid) in afs_find_server_by_uuid() argument 45 p = cell->fs_servers.rb_node; in afs_find_server_by_uuid() 49 diff = memcmp(uuid, &server->uuid, sizeof(*uuid)); in afs_find_server_by_uuid() 51 p = p->rb_left; in afs_find_server_by_uuid() 53 p = p->rb_right; in afs_find_server_by_uuid() 55 if (test_bit(AFS_SERVER_FL_UNCREATED, &server->flags)) in afs_find_server_by_uuid() 66 * Install a server record in the cell tree. The caller must hold an exclusive 67 * lock on cell->fs_lock. [all …]
|
| H A D | super.c | 105 ret = -ENOMEM; in afs_fs_init() 158 struct afs_super_info *as = AFS_FS_S(root->d_sb); in afs_show_devname() 159 struct afs_volume *volume = as->volume; in afs_show_devname() 160 struct afs_cell *cell = as->cell; in afs_show_devname() local 164 if (as->dyn_root) { in afs_show_devname() 169 switch (volume->type) { in afs_show_devname() 174 if (volume->type_force) in afs_show_devname() 183 seq_printf(m, "%c%s:%s%s", pref, cell->name, volume->name, suf); in afs_show_devname() 192 struct afs_super_info *as = AFS_FS_S(root->d_sb); in afs_show_options() 195 if (as->dyn_root) in afs_show_options() [all …]
|
| H A D | mntpt.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 46 static const char afs_root_volume[] = "root.cell"; 56 return ERR_PTR(-EREMOTE); in afs_mntpt_lookup() 65 return -EREMOTE; in afs_mntpt_open() 73 struct afs_fs_context *ctx = fc->fs_private; in afs_mntpt_set_params() 74 struct afs_super_info *src_as = AFS_FS_S(mntpt->d_sb); in afs_mntpt_set_params() 76 struct afs_cell *cell; in afs_mntpt_set_params() local 80 if (fc->net_ns != src_as->net_ns) { in afs_mntpt_set_params() 81 put_net(fc->net_ns); in afs_mntpt_set_params() 82 fc->net_ns = get_net(src_as->net_ns); in afs_mntpt_set_params() [all …]
|
| /linux/drivers/md/ |
| H A D | dm-bio-prison-v2.c | 1 // 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 …]
|
| 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); 79 * cell, and later given to the holder of the exclusive lock. [all …]
|
| /linux/sound/core/seq/ |
| 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_fifo.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 26 f->pool = snd_seq_pool_new(poolsize); in snd_seq_fifo_new() 27 if (f->pool == NULL) { in snd_seq_fifo_new() 31 if (snd_seq_pool_init(f->pool) < 0) { in snd_seq_fifo_new() 32 snd_seq_pool_delete(&f->pool); in snd_seq_fifo_new() 37 spin_lock_init(&f->loc in snd_seq_fifo_new() 85 struct snd_seq_event_cell *cell; snd_seq_fifo_clear() local 103 struct snd_seq_event_cell *cell; snd_seq_fifo_event_in() local 142 struct snd_seq_event_cell *cell; fifo_cell_out() local 163 struct snd_seq_event_cell *cell; snd_seq_fifo_cell_out() local 198 snd_seq_fifo_cell_putback(struct snd_seq_fifo * f,struct snd_seq_event_cell * cell) snd_seq_fifo_cell_putback() argument 223 struct snd_seq_event_cell *cell, *next, *oldhead; snd_seq_fifo_resize() local [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> 58 if (nvmem->reg_read) in __nvmem_reg_read() 59 return nvmem->reg_read(nvmem->priv, offset, val, bytes); in __nvmem_reg_read() 61 return -EINVAL; in __nvmem_reg_read() 69 if (nvmem->reg_write) { in __nvmem_reg_write() 70 gpiod_set_value_cansleep(nvmem->wp_gpio, 0); in __nvmem_reg_write() 71 ret = nvmem->reg_write(nvmem->priv, offset, val, bytes); in __nvmem_reg_write() [all …]
|
| /linux/Documentation/devicetree/bindings/net/ |
| H A D | ibm,emac.txt | 8 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 …]
|
| H A D | fsl,fman.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Frank Li <Frank.Li@nxp.com> 13 Due to the fact that the FMan is an aggregation of sub-engines (ports, MACs, 19 - fsl,fman 26 cell-index: 31 The cell-index value may be used by the SoC, to identify the 33 there's a description of the cell-index use in each SoC: 35 - P1023: [all …]
|
| /linux/Documentation/devicetree/bindings/mips/cavium/ |
| H A D | bootbus.txt | 7 - compatible: "cavium,octeon-3860-bootbus" 11 - reg: The base address of the Boot Bus' register bank. 13 - #address-cells: Must be <2>. The first cell is the chip select 14 within the bootbus. The second cell is the offset from the chip select. 16 - #size-cells: Must be <1>. 18 - ranges: There must be one one triplet of (child-bus-address, 19 parent-bus-address, length) for each active chip select. If the 27 - compatible: "cavium,octeon-3860-bootbus-config" 29 - cavium,cs-index: A single cell indicating the chip select that 32 - cavium,t-adr: A cell specifying the ADR timing (in nS). [all …]
|
| /linux/drivers/clk/mmp/ |
| H A D | reset.c | 1 // SPDX-License-Identifier: GPL-2.0 6 #include <linux/reset-controller.h> 16 struct mmp_clk_reset_cell *cell; in mmp_of_reset_xlate() local 19 if (WARN_ON(reset_spec->args_count != rcdev->of_reset_n_cells)) in mmp_of_reset_xlate() 20 return -EINVAL; in mmp_of_reset_xlate() 22 for (i = 0; i < rcdev->nr_resets; i++) { in mmp_of_reset_xlate() 23 cell = &unit->cells[i]; in mmp_of_reset_xlate() 24 if (cell->clk_id == reset_spec->args[0]) in mmp_of_reset_xlate() 28 if (i == rcdev->nr_resets) in mmp_of_reset_xlate() 29 return -EINVAL; in mmp_of_reset_xlate() [all …]
|
| /linux/arch/powerpc/boot/dts/fsl/ |
| H A D | t4240si-post.dtsi | 4 * Copyright 2012 - 2015 Freescale Semiconductor Inc. 36 compatible = "fsl,bman-fbpr"; 37 alloc-ranges = <0 0 0x10000 0>; 41 compatible = "fsl,qman-fqd"; 42 alloc-ranges = <0 0 0x10000 0>; 46 compatible = "fsl,qman-pfdr"; 47 alloc-ranges = <0 0 0x10000 0>; 51 #address-cells = <2>; 52 #size-cells = <1>; 59 compatible = "fsl,t4240-pcie", "fsl,qoriq-pcie-v3.0"; [all …]
|
| H A D | qoriq-qman1-portals.dtsi | 4 * Copyright 2011 - 2014 Freescale Semiconductor Inc. 36 #address-cells = <1>; 37 #size-cells = <1>; 38 compatible = "simple-bus"; 40 qportal0: qman-portal@0 { 41 compatible = "fsl,qman-portal"; 44 cell-index = <0x0>; 46 qportal1: qman-portal@4000 { 47 compatible = "fsl,qman-portal"; 50 cell-index = <1>; [all …]
|
| /linux/arch/arm64/boot/dts/freescale/ |
| H A D | qoriq-qman-portals.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 5 * Copyright 2011-2016 Freescale Semiconductor Inc. 10 #address-cells = <1>; 11 #size-cells = <1>; 12 compatible = "simple-bus"; 14 qportal0: qman-portal@0 { 16 * bootloader fix-ups are expected to provide the 17 * "fsl,bman-portal-<hardware revision>" compatible 19 compatible = "fsl,qman-portal"; 22 cell-index = <0>; [all …]
|
| /linux/Documentation/devicetree/bindings/clock/ |
| H A D | stericsson,u8500-clks.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/clock/stericsson,u8500-clks.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: ST-Ericsson DB8500 (U8500) clocks 10 - Ulf Hansson <ulf.hansson@linaro.org> 11 - Linus Walleij <linus.walleij@linaro.org> 14 DB8500 digital baseband system-on-chip and its siblings such as 16 itself, not off-chip clocks. There are four different on-chip 17 clocks - RTC (32 kHz), CPU clock (SMP TWD), PRCMU (power reset and [all …]
|
| /linux/rust/pin-init/examples/ |
| H A D | static_init.rs | 1 // SPDX-License-Identifier: Apache-2.0 OR MIT 9 cell::{Cell, UnsafeCell}, 27 cell: UnsafeCell<MaybeUninit<T>>, field 28 init: Cell<Option<I>>, 30 present: Cell<bool>, 37 pub const fn new(init: I) -> Self { in new() 39 cell: UnsafeCell::new(MaybeUninit::uninit()), in new() 40 init: Cell::new(Some(init)), in new() 42 present: Cell::new(false), in new() 49 fn deref(&self) -> &Self::Target { in deref() [all …]
|
| /linux/net/core/ |
| H A D | gro_cells.c | 1 // SPDX-License-Identifier: GPL-2.0 16 struct net_device *dev = skb->dev; in gro_cells_receive() 18 struct gro_cell *cell; in gro_cells_receive() local 22 if (unlikely(!(dev->flags & IFF_UP))) in gro_cells_receive() 25 if (!gcells->cells || skb_cloned(skb) || netif_elide_gro(dev)) { in gro_cells_receive() 30 local_lock_nested_bh(&gcells->cells->bh_lock); in gro_cells_receive() 32 cell = this_cpu_ptr(gcells->cells); in gro_cells_receive() 34 if (skb_queue_len(&cell->napi_skbs) > READ_ONCE(net_hotdata.max_backlog)) { in gro_cells_receive() 42 __skb_queue_tail(&cell->napi_skbs, skb); in gro_cells_receive() 43 if (skb_queue_len(&cell->napi_skbs) == 1) in gro_cells_receive() [all …]
|
| /linux/arch/powerpc/boot/dts/ |
| H A D | fsp2.dts | 12 /dts-v1/; 15 #address-cells = <2>; 16 #size-cells = <1>; 19 dcr-parent = <&{/cpus/cpu@0}>; 28 #address-cells = <1>; 29 #size-cells = <0>; 35 clock-frequency = <0>; /* Filled in by cuboot */ 36 timebase-frequency = <0>; /* Filled in by cuboot */ 37 i-cache-line-size = <32>; 38 d-cache-line-size = <32>; [all …]
|
| H A D | asp834x-redboot.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 /dts-v1/; 12 compatible = "analogue-and-micro,asp8347e"; 13 #address-cells = <1>; 14 #size-cells = <1>; 24 #address-cells = <1>; 25 #size-cells = <0>; 30 d-cache-line-size = <32>; 31 i-cache-line-size = <32>; 32 d-cache-size = <32768>; [all …]
|
| /linux/Documentation/devicetree/bindings/nvmem/layouts/ |
| H A D | fixed-cell.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/nvmem/layouts/fixed-cell.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Fixed offset & size NVMEM cell 10 - Rafał Miłecki <rafal@milecki.pl> 11 - Srinivas Kandagatla <srinivas.kandagatla@linaro.org> 16 - const: mac-base 18 Cell with base MAC address to be used for calculating extra relative 20 It can be stored in a plain binary format (cell length 6) or as an [all …]
|
| /linux/Documentation/devicetree/bindings/thermal/ |
| H A D | sprd-thermal.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/thermal/sprd-thermal.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Orson Zhai <orsonzhai@gmail.com> 11 - Baolin Wang <baolin.wang7@gmail.com> 12 - Chunyan Zhang <zhang.lyra@gmail.com> 14 $ref: thermal-sensor.yaml# 18 const: sprd,ums512-thermal 21 maxItems: 1 [all …]
|