/linux/drivers/scsi/elx/libefc/ |
H A D | efc_device.c | 1 // SPDX-License-Identifier: GPL-2.0 19 struct efc *efc = node->efc; in efc_d_send_prli_rsp() 21 node->ls_acc_oxid = ox_id; in efc_d_send_prli_rsp() 22 node->send_ls_acc = EFC_NODE_SEND_LS_ACC_PRLI; in efc_d_send_prli_rsp() 29 if (node->init) { in efc_d_send_prli_rsp() 31 node->display_name, node->wwpn, node->wwnn); in efc_d_send_prli_rsp() 32 if (node->nport->enable_tgt) in efc_d_send_prli_rsp() 33 rc = efc->tt.scsi_new_node(efc, node); in efc_d_send_prli_rsp() 50 node = ctx->app; in __efc_d_common() 51 efc = node->efc; in __efc_d_common() [all …]
|
H A D | efc_node.c | 1 // SPDX-License-Identifier: GPL-2.0 14 struct efc_node *node = rnode->node; in efc_remote_node_cb() 17 spin_lock_irqsave(&efc->lock, flags); in efc_remote_node_cb() 19 spin_unlock_irqrestore(&efc->lock, flags); in efc_remote_node_cb() 28 return xa_load(&nport->lookup, port_id); in efc_node_find() 35 struct efc *efc = node->efc; in _efc_node_free() 38 dma = &node->sparm_dma_buf; in _efc_node_free() 39 dma_pool_free(efc->node_dma_pool, dma->virt, dma->phys); in _efc_node_free() 41 mempool_free(node, efc->node_pool); in _efc_node_free() 49 struct efc *efc = nport->efc; in efc_node_alloc() [all …]
|
H A D | efc_fabric.c | 1 // SPDX-License-Identifier: GPL-2.0 9 * - Fabric logins. 10 * - Fabric controller events. 11 * - Name/directory services interaction. 12 * - Point-to-point logins. 18 * p2p_sm Node State Machine: Point-to-Point Node States 26 struct efc *efc = node->efc; in efc_fabric_initiate_shutdown() 28 node->els_io_enabled = false; in efc_fabric_initiate_shutdown() 30 if (node->attached) { in efc_fabric_initiate_shutdown() 34 * or sometime later, will check node->attached later in in efc_fabric_initiate_shutdown() [all …]
|
H A D | efclib.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 112 * @attached: mark attached if reg VPI succeeds 113 * @p2p_winner: TRUE if we're the point-to-point winner 131 * @p2p_port_id: our port id for point-to-point 134 * @p2p_remote_port_id: remote node's port id for point-to-point 146 bool attached; member 196 * @attached: set true after attach completes 229 bool attached; member 255 * @attached: true if attached 264 bool attached; member [all …]
|
/linux/Documentation/driver-api/usb/ |
H A D | persist.rst | 1 .. _usb-persist: 14 bus must continue to supply suspend current (around 1-5 mA). This 16 detect connect-change events (devices being plugged in or unplugged). 23 device is still attached or perhaps it was removed and a different 28 wakes up all the devices attached to that controller are treated as 38 Unfortunately problems _can_ arise, particularly with mass-storage 41 filesystem on the device, you're out of luck -- everything in that 57 suspend-to-RAM. On almost all systems, no suspend current is 58 available during hibernation (also known as swsusp or suspend-to-disk). 65 suspended -- but it will crash as soon as it wakes up, which isn't [all …]
|
/linux/mm/ |
H A D | mmap_lock.c | 1 // SPDX-License-Identifier: GPL-2.0 52 /* Additional refcnt if the vma is attached. */ in __vma_enter_locked() 60 if (!refcount_add_not_zero(VMA_LOCK_OFFSET, &vma->vm_refcnt)) in __vma_enter_locked() 63 rwsem_acquire(&vma->vmlock_dep_map, 0, 0, _RET_IP_); in __vma_enter_locked() 64 rcuwait_wait_event(&vma->vm_mm->vma_writer_wait, in __vma_enter_locked() 65 refcount_read(&vma->vm_refcnt) == tgt_refcnt, in __vma_enter_locked() 67 lock_acquired(&vma->vmlock_dep_map, _RET_IP_); in __vma_enter_locked() 74 *detached = refcount_sub_and_test(VMA_LOCK_OFFSET, &vma->vm_refcnt); in __vma_exit_locked() 75 rwsem_release(&vma->vmlock_dep_map, _RET_IP_); in __vma_exit_locked() 84 * attached, otherwise it waits until refcnt is indicating that vma in __vma_start_write() [all …]
|
/linux/sound/soc/cirrus/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 7 Say Y or M if you want to add support for codecs attached to 14 Say Y or M if you want to add support for codecs attached to 27 which disables and re-enables I2S in case of underflow and
|
/linux/drivers/infiniband/sw/rxe/ |
H A D | rxe_mcast.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 12 * attached to a new mgid for the first time. These are indexed by 13 * a red-black tree using the mgid. This data structure is searched 15 * qp is attached to the same mgid. It is cleaned up when the last qp 16 * is detached from the mcg. Each time a qp is attached to an mcg an 18 * of qp's that are attached to the mcg. The qp_list is used to replicate 25 * rxe_mcast_add - add multicast address to rxe device 37 ndev = rxe_ib_device_get_netdev(&rxe->ib_dev); in rxe_mcast_add() 39 return -ENODEV; in rxe_mcast_add() 41 ipv6_eth_mc_map((struct in6_addr *)mgid->raw, ll_addr); in rxe_mcast_add() [all …]
|
/linux/tools/testing/selftests/net/ |
H A D | nl_netdev.py | 2 # SPDX-License-Identifier: GPL-2.0 10 def empty_check(nf) -> None: 15 def lo_check(nf) -> None: 17 ksft_eq(len(lo_info['xdp-features']), 0) 18 ksft_eq(len(lo_info['xdp-rx-metadata-features']), 0) 21 def napi_list_check(nf) -> None: 38 def nsim_rxq_reset_down(nf) -> None: 53 def page_pool_check(nf) -> None: 96 attached = [pp for pp in pp_list if "detach-time" not in pp] 97 ksft_eq(len(attached), 0) [all …]
|
/linux/Documentation/admin-guide/ |
H A D | bcache.rst | 11 This is the git repository of bcache-tools: 12 https://git.kernel.org/pub/scm/linux/kernel/git/colyli/bcache-tools.git/ 17 It's designed around the performance characteristics of SSDs - it only allocates 25 great lengths to protect your data - it reliably handles unclean shutdown. (It 27 writes as completed until they're on stable storage). 29 Writeback caching can use most of the cache for buffering writes - writing 36 average is above the cutoff it will skip all IO from that task - instead of 47 You'll need bcache util from the bcache-tools repository. Both the cache device 50 bcache make -B /dev/sdb 51 bcache make -C /dev/sdc [all …]
|
/linux/tools/arch/x86/dell-uart-backlight-emulator/ |
H A D | README | 1 Emulator for DELL0501 UART attached backlight controller 2 -------------------------------------------------------- 13 the backlight controller board attached. 16 the drivers/platform/x86/dell/dell-uart-backlight.c driver without access 32 ./dell-uart-backlight-emulator <path-to-/dev/tty*S#-for-second-port> 36 ./dell-uart-backlight-emulator /dev/ttyUSB0 38 And then (re)load the dell-uart-backlight driver: 40 sudo rmmod dell-uart-backlight; sudo modprobe dell-uart-backlight dyndbg
|
/linux/arch/mips/include/asm/octeon/ |
H A D | cvmx-pow.h | 7 * Copyright (c) 2003-2008 Cavium Networks 14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 31 * New, starting with SDK 1.7.0, cvmx-pow supports a number of 36 * enabled. For example, cvmx-pow will check for the following 38 * - Requesting a POW operation with an active tag switch in 40 * - Waiting for a tag switch to complete for an excessively 43 * - Illegal tag switches from NULL_NULL. 44 * - Illegal tag switches from NULL. 45 * - Illegal deschedule request. [all …]
|
/linux/drivers/gpu/drm/imagination/ |
H A D | pvr_queue.c | 1 // SPDX-License-Identifier: GPL-2.0-only OR MIT 40 sizeof(((struct rogue_fwif_frag_ctx_state *)0)->frag_reg_isp_store[0])); in get_xfer_ctx_state_size() 70 sizeof(((struct rogue_fwif_frag_ctx_state *)0)->frag_reg_isp_store[0])); in get_frag_ctx_state_size() 87 return -EINVAL; in get_ctx_state_size() 116 pvr_context_put(fence->queue->ctx); in pvr_queue_fence_release_work() 117 dma_fence_free(&fence->base); in pvr_queue_fence_release_work() 123 struct pvr_device *pvr_dev = fence->queue->ctx->pvr_dev; in pvr_queue_fence_release() 125 queue_work(pvr_dev->sched_wq, &fence->release_work); in pvr_queue_fence_release() 133 switch (fence->queue->type) { in pvr_queue_job_fence_get_timeline_name() 156 switch (fence->queue->type) { in pvr_queue_cccb_fence_get_timeline_name() [all …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | usdt.c | 1 // SPDX-License-Identifier: GPL-2.0 15 static volatile short nums[] = {-1, -2, -3, -4}; 20 } t1 = { 1, -127 }; 38 y / 7, bla, &bla, -9, nums[x], in trigger_func() 54 bss = skel->bs in subtest_basic_usdt() [all...] |
H A D | link_pinning.c | 1 // SPDX-License-Identifier: GPL-2.0 23 bss->in = 1; in test_link_pinning_subtest() 25 CHECK(bss->out != 1, "res_check1", "exp %d, got %d\n", 1, bss->out); in test_link_pinning_subtest() 40 bss->in = 2; in test_link_pinning_subtest() 42 CHECK(bss->out != 2, "res_check2", "exp %d, got %d\n", 2, bss->out); in test_link_pinning_subtest() 44 /* destroy link, pinned link should keep program attached */ in test_link_pinning_subtest() 48 bss->in = 3; in test_link_pinning_subtest() 50 CHECK(bss->out != 3, "res_check3", "exp %d, got %d\n", 3, bss->out); in test_link_pinning_subtest() 52 /* re-open link from BPFFS */ in test_link_pinning_subtest() 60 /* unpin link from BPFFS, program still attached */ in test_link_pinning_subtest() [all …]
|
/linux/drivers/net/phy/ |
H A D | phy_link_topology.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * either directly or indirectly attached. 20 return -ENOMEM; in netdev_alloc_phy_link_topology() 22 xa_init_flags(&topo->phys, XA_FLAGS_ALLOC1); in netdev_alloc_phy_link_topology() 23 topo->next_phy_index = 1; in netdev_alloc_phy_link_topology() 25 dev->link_topo = topo; in netdev_alloc_phy_link_topology() 34 struct phy_link_topology *topo = dev->link_topo; in phy_link_topo_add_phy() 43 topo = dev->link_topo; in phy_link_topo_add_phy() 48 return -ENOMEM; in phy_link_topo_add_phy() 50 pdn->phy = phy; in phy_link_topo_add_phy() [all …]
|
/linux/fs/xfs/ |
H A D | xfs_inode_item.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2000-2002,2005 Silicon Graphics, Inc. 37 return INODE_ITEM(lip)->ili_inode->i_ino; in xfs_inode_item_sort() 45 struct xfs_mount *mp = ip->i_mount; in xfs_inode_item_precommit_check() 49 dip = kzalloc(mp->m_sb.sb_inodesize, GFP_KERNEL | GFP_NOFS); in xfs_inode_item_precommit_check() 57 fa = xfs_dinode_verify(mp, ip->i_ino, dip); in xfs_inode_item_precommit_check() 59 xfs_inode_verifier_error(ip, -EFSCORRUPTED, __func__, dip, in xfs_inode_item_precommit_check() 72 * per-modification inode state changes are applied. This includes VFS inode 78 * require AGI -> inode cluster buffer lock order. The inode cluster buffer is 79 * not locked until ->precommit, so it happens after everything else has been [all …]
|
H A D | xfs_trans_buf.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2000-2002,2005 Silicon Graphics, Inc. 37 list_for_each_entry(lip, &tp->t_items, li_trans) { in xfs_trans_buf_item_match() 39 if (blip->bli_item.li_type == XFS_LI_BUF && in xfs_trans_buf_item_match() 40 blip->bli_buf->b_target == target && in xfs_trans_buf_item_match() 41 xfs_buf_daddr(blip->bli_buf) == map[0].bm_bn && in xfs_trans_buf_item_match() 42 blip->bli_buf->b_length == len) { in xfs_trans_buf_item_match() 43 ASSERT(blip->bli_buf->b_map_count == nmaps); in xfs_trans_buf_item_match() 44 return blip->bli_buf; in xfs_trans_buf_item_match() 68 ASSERT(bp->b_transp == NULL); in _xfs_trans_bjoin() [all …]
|
/linux/Documentation/admin-guide/cgroup-v1/ |
H A D | cgroups.rst | 6 Documentation/admin-guide/cgroup-v1/cpusets.rst 12 Portions Copyright (c) 2004-2006 Silicon Graphics, Inc. 42 ---------------------- 56 schedules a resource or applies per-cgroup limits, but it may be 62 hierarchy, and a set of subsystems; each subsystem has system-specific 63 state attached to each cgroup in the hierarchy. Each hierarchy has 69 User-level code may create and destroy cgroups by name in an 79 access. For example, cpusets (see Documentation/admin-guide/cgroup-v1/cpusets.rst) allow 83 .. _cgroups-why-needed: 86 ---------------------------- [all …]
|
/linux/drivers/mmc/core/ |
H A D | sdio_io.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright 2007-2008 Pierre Ossman 21 * sdio_claim_host - exclusively claim a bus for a certain SDIO function 32 mmc_claim_host(func->card->host); in sdio_claim_host() 37 * sdio_release_host - release a bus for a certain SDIO function 48 mmc_release_host(func->card->host); in sdio_release_host() 53 * sdio_enable_func - enables a SDIO function for usage 66 return -EINVAL; in sdio_enable_func() 70 ret = mmc_io_rw_direct(func->card, 0, 0, SDIO_CCCR_IOEx, 0, ®); in sdio_enable_func() 74 reg |= 1 << func->num; in sdio_enable_func() [all …]
|
/linux/drivers/tty/serial/8250/ |
H A D | 8250_parisc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * (c) Copyright Matthew Wilcox <willy@debian.org> 2001-2002 18 #include <asm/parisc-device.h> 30 if (!dev->irq && (dev->id.sversion == 0xad)) in serial_init_chip() 31 dev->irq = iosapic_serial_irq(dev); in serial_init_chip() 34 if (!dev->irq) { in serial_init_chip() 38 * the user what they're missing. in serial_init_chip() 40 if (parisc_parent(dev)->id.hw_type != HPHW_IOA) in serial_init_chip() 41 dev_info(&dev->dev, in serial_init_chip() 44 (unsigned long long)dev->hpa.start); in serial_init_chip() [all …]
|
/linux/tools/bpf/bpftool/Documentation/ |
H A D | bpftool-gen.rst | 1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 bpftool-gen 6 ------------------------------------------------------------------------------- 7 tool for BPF code-generation 8 ------------------------------------------------------------------------------- 19 *OPTIONS* := { |COMMON_OPTIONS| | { **-L** | **--use-loader** } } 38 The rules of BPF static linking are mostly the same as for user-space 67 automatically attached and resulting BPF links stored for further use by 68 user in pre-allocated fields in skeleton struct. For BPF programs that 69 can't be automatically attached by libbpf, user can attach them manually, [all …]
|
/linux/fs/xfs/scrub/ |
H A D | repair.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) 2018-2023 Oracle. All Rights Reserved. 58 * told us to fix it. This function returns -EAGAIN to mean "re-run scrub", 69 trace_xrep_attempt(XFS_I(file_inode(sc->file)), sc->sm, error); in xrep_attempt() 71 xchk_ag_btcur_free(&sc->sa); in xrep_attempt() 72 xchk_rtgroup_btcur_free(&sc->sr); in xrep_attempt() 75 ASSERT(sc->ops->repair); in xrep_attempt() 76 run->repair_attempted = true; in xrep_attempt() 78 error = sc->ops->repair(sc); in xrep_attempt() 79 trace_xrep_done(XFS_I(file_inode(sc->file)), sc->sm, error); in xrep_attempt() [all …]
|
/linux/drivers/gpu/drm/vc4/ |
H A D | vc4_irq.c | 70 mutex_lock(&vc4->bin_bo_lock); in vc4_overflow_mem_work() 72 if (!vc4->bin_bo) in vc4_overflow_mem_work() 75 bo = vc4->bin_bo; in vc4_overflow_mem_work() 79 drm_err(&vc4->base, "Couldn't allocate binner overflow mem\n"); in vc4_overflow_mem_work() 83 spin_lock_irqsave(&vc4->job_lock, irqflags); in vc4_overflow_mem_work() 85 if (vc4->bin_alloc_overflow) { in vc4_overflow_mem_work() 96 exec->bin_slots |= vc4->bin_alloc_overflow; in vc4_overflow_mem_work() 101 vc4->bin_alloc_used &= ~vc4->bin_alloc_overflow; in vc4_overflow_mem_work() 104 vc4->bin_alloc_overflow = BIT(bin_bo_slot); in vc4_overflow_mem_work() 106 V3D_WRITE(V3D_BPOA, bo->base.dma_addr + bin_bo_slot * vc4->bin_alloc_size); in vc4_overflow_mem_work() [all …]
|
/linux/fs/afs/ |
H A D | server_list.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 16 if (slist && refcount_dec_and_test(&slist->usage)) { in afs_put_serverlist() 17 for (i = 0; i < slist->nr_servers; i++) in afs_put_serverlist() 18 afs_unuse_server(net, slist->servers[i].server, in afs_put_serverlist() 33 unsigned int type_mask = 1 << volume->type; in afs_alloc_server_list() 35 int ret = -ENOMEM, nr_servers = 0, newrep = 0, i, j, usable = 0; in afs_alloc_server_list() 37 /* Work out if we're going to restrict to NEWREPSITE-marked servers or in afs_alloc_server_list() 43 for (i = 0; i < vldb->nr_servers; i++) { in afs_alloc_server_list() 44 if (!(vldb->fs_mask[i] & type_mask)) in afs_alloc_server_list() 47 if (vldb->vlsf_flags[i] & AFS_VLSF_DONTUSE) in afs_alloc_server_list() [all …]
|