| /OK3568_Linux_fs/kernel/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> 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 …]
|
| H A D | vl_alias.c | 1 // 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 …]
|
| H A D | volume.c | 1 // 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 …]
|
| H A D | dynroot.c | 1 // 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 …]
|
| 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 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 …]
|
| H A D | super.c | 104 ret = -ENOMEM; in afs_fs_init() 157 struct afs_super_info *as = AFS_FS_S(root->d_sb); in afs_show_devname() 158 struct afs_volume *volume = as->volume; in afs_show_devname() 159 struct afs_cell *cell = as->cell; in afs_show_devname() local 163 if (as->dyn_root) { in afs_show_devname() 168 switch (volume->type) { in afs_show_devname() 173 if (volume->type_force) in afs_show_devname() 182 seq_printf(m, "%c%s:%s%s", pref, cell->name, volume->name, suf); in afs_show_devname() 191 struct afs_super_info *as = AFS_FS_S(root->d_sb); in afs_show_options() 194 if (as->dyn_root) in afs_show_options() [all …]
|
| 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 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 …]
|
| /OK3568_Linux_fs/kernel/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_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() 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/md/ |
| H A D | dm-bio-prison-v2.c | 2 * 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 …]
|
| H A D | dm-bio-prison-v1.c | 8 #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 …]
|
| H A D | dm-bio-prison-v1.h | 2 * Copyright (C) 2011-2017 Red Hat, Inc. 10 #include "persistent-data/dm-block-manager.h" /* FIXME: for dm_block_t */ 11 #include "dm-thin-metadata.h" /* FIXME: for dm_thin_id */ 16 /*----------------------------------------------------------------*/ 20 * where they can't cause any mischief. Bios are put in a cell identified 21 * by a key, multiple bios can be in the same cell. When the cell is 54 * Eventually all bio prison clients should manage their own cell memory. 62 struct dm_bio_prison_cell *cell); 65 * Creates, or retrieves a cell that overlaps the given key. 67 * Returns 1 if pre-existing cell returned, zero if new cell created using [all …]
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/polylabel/1.0.3/include/mapbox/ |
| H A D | polylabel.hpp | 24 auto dx = b.x - x; in getSegDistSq() 25 auto dy = b.y - y; in getSegDistSq() 29 auto t = ((p.x - x) * dx + (p.y - y) * dy) / (dx * dx + dy * dy); in getSegDistSq() 31 if (t > 1) { in getSegDistSq() 41 dx = p.x - x; in getSegDistSq() 42 dy = p.y - y; in getSegDistSq() 54 for (std::size_t i = 0, len = ring.size(), j = len - 1; i < len; j = i++) { in pointToPolygonDist() 59 (point.x < (b.x - a.x) * (point.y - a.y) / (b.y - a.y) + a.x)) inside = !inside; in pointToPolygonDist() 65 return (inside ? 1 : -1) * std::sqrt(minDistSq); in pointToPolygonDist() 69 struct Cell { struct [all …]
|
| /OK3568_Linux_fs/kernel/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> 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 …]
|
| /OK3568_Linux_fs/kernel/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.txt | 5 - 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 …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/powerpc/fsl/ |
| H A D | mpic.txt | 14 - compatible 22 - reg 24 Value type: <prop-encoded-array> 29 - interrupt-controller 35 - #interrupt-cells 39 specifiers do not contain the interrupt-type or type-specific 42 - #address-cells 47 - pic-no-reset 53 configuration registers to a sane state-- masked or 60 - big-endian [all …]
|
| H A D | dma.txt | 4 This is a little-endian 4-channel DMA controller, used in Freescale mpc83xx 9 - compatible : must include "fsl,elo-dma" 10 - reg : DMA General Status Register, i.e. DGSR which contains 12 - ranges : describes the mapping between the address space of the 14 - cell-index : controller index. 0 for controller @ 0x8100 15 - interrupts : interrupt specifier for DMA IRQ 17 - DMA channel nodes: 18 - compatible : must include "fsl,elo-dma-channel" 20 - reg : DMA channel specific registers 21 - cell-index : DMA channel index starts at 0. [all …]
|
| /OK3568_Linux_fs/kernel/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>; 53 compatible = "fsl,ifc", "simple-bus"; [all …]
|
| /OK3568_Linux_fs/kernel/drivers/soc/rockchip/ |
| H A D | rockchip-cpuinfo.c | 18 #include <linux/nvmem-consumer.h> 29 struct device *dev = &pdev->dev; in rockchip_cpuinfo_probe() 30 struct nvmem_cell *cell; in rockchip_cpuinfo_probe() local 35 cell = nvmem_cell_get(dev, "cpu-code"); in rockchip_cpuinfo_probe() 36 if (!IS_ERR(cell)) { in rockchip_cpuinfo_probe() 37 efuse_buf = nvmem_cell_read(cell, &len); in rockchip_cpuinfo_probe() 38 nvmem_cell_put(cell); in rockchip_cpuinfo_probe() 43 rockchip_set_cpu((efuse_buf[0] << 8 | efuse_buf[1])); in rockchip_cpuinfo_probe() 47 cell = nvmem_cell_get(dev, "cpu-version"); in rockchip_cpuinfo_probe() 48 if (!IS_ERR(cell)) { in rockchip_cpuinfo_probe() [all …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/drivers/mmc/host/ |
| H A D | tmio_mmc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Driver for the MMC / SD / SDIO cell found in: 62 divisor = host->pdata->hclk / new_clock; in tmio_mmc_set_clock() 64 /* bit7 set: 1/512, ... bit0 set: 1/4, all bits clear: 1/2 */ in tmio_mmc_set_clock() 65 clk_sel = (divisor <= 1); in tmio_mmc_set_clock() 68 host->pdata->set_clk_div(host->pdev, clk_sel); in tmio_mmc_set_clock() 90 const struct mfd_cell *cell = mfd_get_cell(pdev); in tmio_mmc_suspend() local 96 if (!ret && cell->disable) in tmio_mmc_suspend() 97 cell->disable(pdev); in tmio_mmc_suspend() 105 const struct mfd_cell *cell = mfd_get_cell(pdev); in tmio_mmc_resume() local [all …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/u-boot/lib/ |
| H A D | fdtdec.c | 3 * SPDX-License-Identifier: GPL-2.0+ 29 * good reason why driver-model conversion is infeasible. Examples include 35 COMPAT(NVIDIA_TEGRA20_EMC, "nvidia,tegra20-emc"), 36 COMPAT(NVIDIA_TEGRA20_EMC_TABLE, "nvidia,tegra20-emc-table"), 37 COMPAT(NVIDIA_TEGRA20_NAND, "nvidia,tegra20-nand"), 38 COMPAT(NVIDIA_TEGRA124_XUSB_PADCTL, "nvidia,tegra124-xusb-padctl"), 39 COMPAT(NVIDIA_TEGRA210_XUSB_PADCTL, "nvidia,tegra210-xusb-padctl"), 41 COMPAT(SAMSUNG_EXYNOS5_SROMC, "samsung,exynos-sromc"), 42 COMPAT(SAMSUNG_S3C2440_I2C, "samsung,s3c2440-i2c"), 43 COMPAT(SAMSUNG_EXYNOS5_SOUND, "samsung,exynos-sound"), [all …]
|
| /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/iqfiles/isp20/ |
| H A D | imx307_MTV4-IR-E-P_40IRC-4MP-F16-hdr3.xml | 1 <?xml version="1.0" encoding="utf-8"?> 3 <header type="struct" size="[1 1]"> 4 <code_xml_parse_version index="1" type="char" size="[1 6]"> 7 <creation_date index="1" type="char" size="[1 10]"> 8 2021-01-07 10 <creator index="1" type="char" size="[1 5]"> 13 <sensor_name index="1" type="char" size="[1 6]"> 16 <sample_name index="1" type="char" size="[1 10]"> 17 CMK-OT0837 19 <generator_version index="1" type="char" size="[1 6]"> [all …]
|