/openbmc/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 …]
|
H A D | dm-thin.c | 1 // 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 …]
|
/openbmc/u-boot/lib/ |
H A D | fdtdec.c | 1 // SPDX-License-Identifier: GPL-2.0+ 30 * good reason why driver-model conversion is infeasible. Examples include 36 COMPAT(NVIDIA_TEGRA20_EMC, "nvidia,tegra20-emc"), 37 COMPAT(NVIDIA_TEGRA20_EMC_TABLE, "nvidia,tegra20-emc-table"), 38 COMPAT(NVIDIA_TEGRA20_NAND, "nvidia,tegra20-nand"), 39 COMPAT(NVIDIA_TEGRA124_XUSB_PADCTL, "nvidia,tegra124-xusb-padctl"), 40 COMPAT(NVIDIA_TEGRA210_XUSB_PADCTL, "nvidia,tegra210-xusb-padctl"), 42 COMPAT(SAMSUNG_EXYNOS5_SROMC, "samsung,exynos-sromc"), 43 COMPAT(SAMSUNG_EXYNOS_USB_PHY, "samsung,exynos-usb-phy"), 44 COMPAT(SAMSUNG_EXYNOS5_USB3_PHY, "samsung,exynos5250-usb3-phy"), [all …]
|
/openbmc/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> 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 …]
|
/openbmc/u-boot/arch/x86/cpu/ |
H A D | irq.c | 1 // SPDX-License-Identifier: GPL-2.0+ 20 * pirq_reg_to_linkno() - Convert a PIRQ routing register offset to link number 30 if (priv->has_regmap) { in pirq_reg_to_linkno() 31 struct pirq_regmap *map = priv->regmap; in pirq_reg_to_linkno() 34 for (i = 0; i < priv->link_num; i++) { in pirq_reg_to_linkno() 35 if (reg - priv->link_base == map->offset) { in pirq_reg_to_linkno() 36 linkno = map->link; in pirq_reg_to_linkno() 42 linkno = reg - priv->link_base; in pirq_reg_to_linkno() 49 * pirq_linkno_to_reg() - Convert a PIRQ link number to routing register offset 59 if (priv->has_regmap) { in pirq_linkno_to_reg() [all …]
|
/openbmc/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-se in snd_seq_client_use_ptr() 417 snd_seq_read(struct file * file,char __user * buf,size_t count,loff_t * offset) snd_seq_read() argument 425 struct snd_seq_event_cell *cell; snd_seq_read() local 842 snd_seq_dispatch_event(struct snd_seq_event_cell * cell,int atomic,int hop) snd_seq_dispatch_event() argument 921 struct snd_seq_event_cell *cell; snd_seq_client_enqueue_event() local 1004 snd_seq_write(struct file * file,const char __user * buf,size_t count,loff_t * offset) snd_seq_write() argument 2594 int count = 0; snd_seq_info_dump_subscribers() local [all...] |
/openbmc/linux/fs/afs/ |
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 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 …]
|
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 …]
|
H A D | vlclient.c | 1 // 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 …]
|
/openbmc/webui-vue/src/views/HardwareStatus/Sensors/ |
H A D | Sensors.vue | 2 <b-container fluid="xl"> 3 <page-title /> 4 <b-row class="align-items-end"> 5 <b-col sm="6" md="5" xl="4"> 8 data-test-id="sensors-input-searchForSensors" 9 @change-search="onChangeSearchInput" 10 @clear-search="onClearSearchInput" 12 </b-col> 13 <b-col sm="3" md="3" xl="2"> 14 <table-cell-count [all …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/webui-vue/docs/guide/components/table/ |
H A D | index.md | 4 [BoostrapVue table component](https://bootstrap-vue.org/docs/components/table). 6 To use the component, include the `<b-table>` tag in the template. The component 13 [Bootstrap-vue table component's documentation page](https://bootstrap-vue.org/docs/components/tabl… 17 - `items` - renders table items 18 - `fields` - renders table header 19 - `hover` - enables table row hover state 20 - `responsive` or `stacked` - makes the table responsive (enables horizontal 22 - `show-empty` _(required if table data is generated dynamically)_ - shows an 24 - `empty-text` _(required if table data is generated dynamically)_ - the 29 example](./table-empty.png) [all …]
|
/openbmc/u-boot/arch/arm/mach-exynos/ |
H A D | pinmux.c | 1 // SPDX-License-Identifier: GPL-2.0+ 15 int i, start, count; in exynos5_uart_config() local 20 count = 4; in exynos5_uart_config() 24 count = 4; in exynos5_uart_config() 28 count = 4; in exynos5_uart_config() 32 count = 2; in exynos5_uart_config() 38 for (i = start; i < start + count; i++) { in exynos5_uart_config() 46 int i, start, count; in exynos5420_uart_config() local 51 count = 4; in exynos5420_uart_config() 55 count = 4; in exynos5420_uart_config() [all …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/webui-vue/src/views/HardwareStatus/Inventory/ |
H A D | InventoryTableDimmSlot.vue | 2 <page-section :section-title="$t('pageInventory.dimmSlot')"> 3 <b-row class="align-items-end"> 4 <b-col sm="6" md="5" xl="4"> 6 @change-search="onChangeSearchInput" 7 @clear-search="onClearSearchInput" 9 </b-col> 10 <b-col sm="6" md="3" xl="2"> 11 <table-cell-count 12 :filtered-items-count="filteredRows" 13 :total-number-of-cells="dimms.length" [all …]
|
H A D | InventoryTableFans.vue | 2 <page-section :section-title="$t('pageInventory.fans')"> 3 <b-row class="align-items-end"> 4 <b-col sm="6" md="5" xl="4"> 6 @change-search="onChangeSearchInput" 7 @clear-search="onClearSearchInput" 9 </b-col> 10 <b-col sm="6" md="3" xl="2"> 11 <table-cell-count 12 :filtered-items-count="filteredRows" 13 :total-number-of-cells="fans.length" [all …]
|
/openbmc/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> 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 …]
|