/linux/drivers/misc/sgi-xp/ |
H A D | xpc_channel.c | 6 * Copyright (c) 2004-2009 Silicon Graphics, Inc. All Rights Reserved. 27 xpc_process_connect(struct xpc_channel *ch, unsigned long *irq_flags) in xpc_process_connect() argument 31 lockdep_assert_held(&ch->lock); in xpc_process_connect() 33 if (!(ch->flags & XPC_C_OPENREQUEST) || in xpc_process_connect() 34 !(ch->flags & XPC_C_ROPENREQUEST)) { in xpc_process_connect() 38 DBUG_ON(!(ch->flags & XPC_C_CONNECTING)); in xpc_process_connect() 40 if (!(ch->flags & XPC_C_SETUP)) { in xpc_process_connect() 41 spin_unlock_irqrestore(&ch->lock, *irq_flags); in xpc_process_connect() 42 ret = xpc_arch_ops.setup_msg_structures(ch); in xpc_process_connect() 43 spin_lock_irqsave(&ch->lock, *irq_flags); in xpc_process_connect() [all …]
|
H A D | xpc_uv.c | 6 * Copyright (c) 2008-2009 Silicon Graphics, Inc. All Rights Reserved. 10 * Cross Partition Communication (XPC) uv-based functions. 29 #include "../sgi-gru/gru.h" 30 #include "../sgi-gru/grukservices.h" 59 mutex_init(&part_uv->cached_activate_gru_mq_desc_mutex); in xpc_setup_partitions_uv() 60 spin_lock_init(&part_uv->flags_lock); in xpc_setup_partitions_uv() 61 part_uv->remote_act_state = XPC_P_AS_INACTIVE; in xpc_setup_partitions_uv() 76 if (part_uv->cached_activate_gru_mq_desc != NULL) { in xpc_teardown_partitions_uv() 77 mutex_lock(&part_uv->cached_activate_gru_mq_desc_mutex); in xpc_teardown_partitions_uv() 78 spin_lock_irqsave(&part_uv->flags_lock, irq_flags); in xpc_teardown_partitions_uv() [all …]
|
/linux/drivers/scsi/esas2r/ |
H A D | esas2r_flash.c | 6 * Copyright (c) 2001-2013 ATTO Technology, Inc. 22 * LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, 41 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 108 len--; in esas2r_calc_byte_xor_cksum() 113 len -= 4; in esas2r_calc_byte_xor_cksum() 115 while (len--) { in esas2r_calc_byte_xor_cksum() 127 while (len--) in esas2r_calc_byte_cksum() 136 struct atto_vda_flash_req *vrq = &rq->vrq->flash; in esas2r_fmapi_callback() 138 (struct esas2r_flash_context *)rq->interrupt_cx; in esas2r_fmapi_callback() 140 if (rq->req_stat == RS_SUCCESS) { in esas2r_fmapi_callback() [all …]
|
/linux/drivers/accessibility/speakup/ |
H A D | keyhelp.c | 1 // SPDX-License-Identifier: GPL-2.0+ 16 static const int num_key_names = MSG_KEYNAMES_END - MSG_KEYNAMES_START + 1; 21 -1, -1, -1, -1, -1, -1, -1, -1, 22 -1, -1, -1, -1, -1, -1, -1, -1, 23 -1, -1, -1, -1, -1, -1, -1, -1, 24 -1, -1 }; 51 u_char *kp, counters[MAXFUNCS], ch, ch1; in build_key_data() local 55 nstates = (int)(state_tbl[-1]); in build_key_data() 82 while ((ch = *kp++)) { in build_key_data() 89 key = (state_tbl[i] << 8) + ch; in build_key_data() [all …]
|
/linux/Documentation/devicetree/bindings/iio/addac/ |
H A D | adi,ad74413r.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Cosmin Tanislav <cosmin.tanislav@analog.com> 13 The AD74412R and AD74413R are quad-channel software configurable input/output 18 The devices feature a 16-bit ADC and four configurable 13-bit DACs to provide 20 The AD74413R differentiates itself from the AD74412R by being HART-compatible. 27 - adi,ad74412r 28 - adi,ad74413r 33 '#address-cells': [all …]
|
/linux/sound/core/ |
H A D | vmaster.c | 1 // SPDX-License-Identifier: GPL-2.0-only 24 * link master - this contains a list of follower controls that are 41 * link follower - this contains a follower control element 60 int err, ch; in follower_update() local 64 return -ENOMEM; in follower_update() 65 uctl->id = follower->follower.id; in follower_update() 66 err = follower->follower.get(&follower->follower, uctl); in follower_update() 69 for (ch = 0; ch < follower->info.count; ch++) in follower_update() 70 follower->vals[ch] = uctl->value.integer.value[ch]; in follower_update() 80 if (follower->info.count) { in follower_init() [all …]
|
/linux/drivers/firmware/imx/ |
H A D | imx-scu.c | 1 // SPDX-License-Identifier: GPL-2.0+ 30 struct mbox_chan *ch; member 70 -EINVAL, /* IMX_SC_ERR_VERSION */ 71 -EINVAL, /* IMX_SC_ERR_CONFIG */ 72 -EINVAL, /* IMX_SC_ERR_PARM */ 73 -EACCES, /* IMX_SC_ERR_NOACCESS */ 74 -EACCES, /* IMX_SC_ERR_LOCKED */ 75 -ERANGE, /* IMX_SC_ERR_UNAVAILABLE */ 76 -EEXIST, /* IMX_SC_ERR_NOTFOUND */ 77 -EPERM, /* IMX_SC_ERR_NOPOWER */ [all …]
|
H A D | imx-scu-irq.c | 1 // SPDX-License-Identifier: GPL-2.0+ 9 #include <dt-bindings/firmware/imx/rsrc.h> 123 hdr->ver = IMX_SC_RPC_VERSION; in imx_scu_irq_get_status() 124 hdr->svc = IMX_SC_RPC_SVC_IRQ; in imx_scu_irq_get_status() 125 hdr->func = IMX_SC_IRQ_FUNC_STATUS; in imx_scu_irq_get_status() 126 hdr->size = 2; in imx_scu_irq_get_status() 149 return -EPROBE_DEFER; in imx_scu_irq_group_enable() 151 hdr->ver = IMX_SC_RPC_VERSION; in imx_scu_irq_group_enable() 152 hdr->svc = IMX_SC_RPC_SVC_IRQ; in imx_scu_irq_group_enable() 153 hdr->func = IMX_SC_IRQ_FUNC_ENABLE; in imx_scu_irq_group_enable() [all …]
|
/linux/arch/powerpc/math-emu/ |
H A D | math_efp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * arch/powerpc/math-emu/math_efp.c 5 * Copyright (C) 2006-2008, 2010 Freescale Semiconductor, Inc. 10 * Derived from arch/alpha/math-emu/math.c 11 * arch/powerpc/math-emu/math.c 15 * fully comply with IEEE-754 floating point standard. 26 #include <asm/sfp-machine.h> 28 #include <math-emu/soft-fp.h> 29 #include <math-emu/single.h> 30 #include <math-emu/double.h> [all …]
|
/linux/drivers/mmc/core/ |
H A D | sdio_uart.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 14 * Note: Although this driver assumes a 16550A-like UART implementation, 67 struct sdio_func *func; member 89 int index, ret = -EBUSY; in sdio_uart_add_port() 91 mutex_init(&port->func_lock); in sdio_uart_add_port() 92 spin_lock_init(&port->write_lock); in sdio_uart_add_port() 93 if (kfifo_alloc(&port->xmit_fifo, FIFO_SIZE, GFP_KERNEL)) in sdio_uart_add_port() 94 return -ENOMEM; in sdio_uart_add_port() 99 port->index = index; in sdio_uart_add_port() 120 tty_port_get(&port->port); in sdio_uart_port_get() [all …]
|
/linux/drivers/media/rc/keymaps/ |
H A D | rc-msi-tvanywhere-plus.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 // msi-tvanywhere-plus.h - Keytable for msi_tvanywhere_plus Remote Controller 4 // keymap imported from ir-keymaps.c 8 #include <media/rc-map.h> 27 /* ---- Remote Button Layout ---- 38 CH+ 39 VOL- VOL+ 40 CH- 44 << FUNC >> RESET 67 same IR code as Ch+, Ch-, >>, and << . The raw code assigned [all …]
|
H A D | rc-pv951.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 // pv951.h - Keytable for pv951 Remote Controller 4 // keymap imported from ir-keymaps.c 8 #include <media/rc-map.h> 35 { 0x18, KEY_KPPLUSMINUS }, /* CH +/- */ 40 { 0x17, KEY_OK }, /* CH RTN */ 41 { 0x19, KEY_MODE }, /* FUNC */
|
/linux/drivers/net/wireless/broadcom/b43/ |
H A D | sdio.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 * Copyright (C) 2009 Michael Buesch <m@bues.ch> 41 for (q = b43_sdio_quirks; q->quirks; q++) { in b43_sdio_get_quirks() 42 if (vendor == q->vendor && device == q->device) in b43_sdio_get_quirks() 43 return q->quirks; in b43_sdio_get_quirks() 49 static void b43_sdio_interrupt_dispatcher(struct sdio_func *func) in b43_sdio_interrupt_dispatcher() argument 51 struct b43_sdio *sdio = sdio_get_drvdata(func); in b43_sdio_interrupt_dispatcher() 52 struct b43_wldev *dev = sdio->irq_handler_opaque; in b43_sdio_interrupt_dispatcher() 57 sdio_release_host(func); in b43_sdio_interrupt_dispatcher() 58 sdio->irq_handler(dev); in b43_sdio_interrupt_dispatcher() [all …]
|
/linux/drivers/net/wireless/realtek/rtw89/ |
H A D | phy.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2 /* Copyright(c) 2019-2020 Realtek Corporation 19 const struct rtw89_phy_gen_def *phy = rtwdev->chip->phy_def; in rtw89_phy0_phy1_offset() 21 return phy->phy0_phy1_offset(rtwdev, addr); in rtw89_phy0_phy1_offset() 27 u32 bit_rate = report->bit_rate; in get_max_amsdu_len() 34 if (report->might_fallback_legacy) in get_max_amsdu_len() 49 return rtwdev->chip->max_amsdu_limit; in get_max_amsdu_len() 65 ra_mask |= GENMASK_ULL(highest_mcs - gap, 0) << nss; in get_mcs_ra_mask() 68 ra_mask |= GENMASK_ULL(highest_mcs - gap * 2, 0) << nss; in get_mcs_ra_mask() 80 struct ieee80211_sta_he_cap cap = link_sta->he_cap; in get_he_ra_mask() [all …]
|
H A D | mac.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2 /* Copyright(c) 2019-2020 Realtek Corporation 43 const struct rtw89_mac_gen_def *mac = rtwdev->chip->mac_def; in rtw89_mac_mem_write() 44 u32 addr = mac->mem_base_addrs[sel] + offset; in rtw89_mac_mem_write() 46 rtw89_write32(rtwdev, mac->filter_model_addr, addr); in rtw89_mac_mem_write() 47 rtw89_write32(rtwdev, mac->indir_access_addr, val); in rtw89_mac_mem_write() 53 const struct rtw89_mac_gen_def *mac = rtwdev->chip->mac_def; in rtw89_mac_mem_read() 54 u32 addr = mac->mem_base_addrs[sel] + offset; in rtw89_mac_mem_read() 56 rtw89_write32(rtwdev, mac->filter_model_addr, addr); in rtw89_mac_mem_read() 57 return rtw89_read32(rtwdev, mac->indir_access_addr); in rtw89_mac_mem_read() [all …]
|
/linux/arch/x86/kernel/ |
H A D | early_printk.c | 1 // SPDX-License-Identifier: GPL-2.0 16 #include <xen/hvc-console.h> 17 #include <asm/pci-direct.h> 20 #include <linux/usb/xhci-dbgp.h> 34 while ((c = *str++) != '\0' && n-- > 0) { in early_vga_write() 45 current_ypos = max_ypos-1; in early_vga_write() 50 current_xpos--; in early_vga_write() 74 .index = -1, 110 static int early_serial_putc(unsigned char ch) in early_serial_putc() argument 114 while ((serial_in(early_serial_base, LSR) & XMTRDY) == 0 && --timeout) in early_serial_putc() [all …]
|
/linux/sound/pci/hda/ |
H A D | patch_conexant.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Tobin Davis <tdavis@dsl-only.net> 63 spec->gen.beep_nid = nid; in set_beep_amp() 65 knew = snd_hda_gen_add_kctl(&spec->gen, NULL, in set_beep_amp() 68 return -ENOMEM; in set_beep_amp() 69 knew->private_valu in set_beep_amp() 440 int ch, val; olpc_xo_update_mic_boost() local [all...] |
/linux/net/sctp/ |
H A D | inqueue.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) 1999-2000 Cisco, Inc. 4 * Copyright (c) 1999-2001 Motorola, Inc. 17 * lksctp developers <linux-sctp@vger.kernel.org> 34 INIT_LIST_HEAD(&queue->in_chunk_list); in sctp_inq_init() 35 queue->in_progress = NULL; in sctp_inq_init() 38 INIT_WORK(&queue->immediate, NULL); in sctp_inq_init() 44 if (chunk->head_skb) in sctp_inq_chunk_free() 45 chunk->skb = chunk->head_skb; in sctp_inq_chunk_free() 55 list_for_each_entry_safe(chunk, tmp, &queue->in_chunk_list, list) { in sctp_inq_free() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
H A D | nv04.c | 43 struct nvkm_fifo *fifo = chan->cgrp->runl->fifo; in nv04_chan_stop() 44 struct nvkm_device *device = fifo->engine.subdev.device; in nv04_chan_stop() 45 struct nvkm_memory *fctx = device->imem->ramfc; in nv04_chan_stop() 48 u32 data = chan->ramfc_offset; in nv04_chan_stop() 52 spin_lock_irqsave(&fifo->lock, flags); in nv04_chan_stop() 56 chid = nvkm_rd32(device, NV03_PFIFO_CACHE1_PUSH1) & fifo->chid->mask; in nv04_chan_stop() 57 if (chid == chan->id) { in nv04_chan_stop() 62 c = chan->func->ramfc->layout; in nv04_chan_stop() 65 u32 rm = ((1ULL << c->bits) - 1) << c->regs; in nv04_chan_stop() 66 u32 cm = ((1ULL << c->bits) - 1) << c->ctxs; in nv04_chan_stop() [all …]
|
H A D | gk104.c | 42 struct nvkm_device *device = chan->cgrp->runl->fifo->engine.subdev.device; in gk104_chan_stop() 44 nvkm_mask(device, 0x800004 + (chan->id * 8), 0x00000800, 0x00000800); in gk104_chan_stop() 50 struct nvkm_device *device = chan->cgrp->runl->fifo->engine.subdev.device; in gk104_chan_start() 52 nvkm_mask(device, 0x800004 + (chan->id * 8), 0x00000400, 0x00000400); in gk104_chan_start() 58 struct nvkm_device *device = chan->cgrp->runl->fifo->engine.subdev.device; in gk104_chan_unbind() 60 nvkm_wr32(device, 0x800000 + (chan->id * 8), 0x00000000); in gk104_chan_unbind() 66 struct nvkm_device *device = chan->cgrp->runl->fifo->engine.subdev.device; in gk104_chan_bind_inst() 68 nvkm_wr32(device, 0x800000 + (chan->id * 8), 0x80000000 | chan->inst->addr >> 12); in gk104_chan_bind_inst() 74 struct nvkm_runl *runl = chan->cgrp->runl; in gk104_chan_bind() 75 struct nvkm_device *device = runl->fifo->engine.subdev.device; in gk104_chan_bind() [all …]
|
/linux/scripts/kconfig/ |
H A D | nconf.c | 1 // SPDX-License-Identifier: GPL-2.0 17 #include "mnconf-common.h" 23 "------------\n" 34 "------------\n" 36 "build. Kernel features can either be built-in, modularized, or removed.\n" 43 " - - are selected by another feature\n" 53 "A trailing \"--->\" designates a submenu, a trailing \"----\" an\n" 57 "----------------------------------------------------------------------\n" 69 "Start incremental, case-insensitive search for STRING in menu entries,\n" 79 "----------------------------------------------------------------------\n" [all …]
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_umc.c | 41 dev_warn(adev->dev, in amdgpu_umc_convert_error_address() 60 kcalloc(adev->umc.max_ras_err_cnt_per_query, in amdgpu_umc_page_retirement_mca() 63 dev_warn(adev->dev, in amdgpu_umc_page_retirement_mca() 69 err_data.err_addr_len = adev->umc.max_ras_err_cnt_per_query; in amdgpu_umc_page_retirement_mca() 105 mutex_lock(&con->page_retirement_lock); in amdgpu_umc_handle_bad_pages() 106 ret = amdgpu_dpm_get_ecc_info(adev, (void *)&(con->umc_ecc)); in amdgpu_umc_handle_bad_pages() 107 if (ret == -EOPNOTSUPP && in amdgpu_umc_handle_bad_pages() 109 if (adev->umc.ras && adev->umc.ras->ras_block.hw_ops && in amdgpu_umc_handle_bad_pages() 110 adev->umc.ras->ras_block.hw_ops->query_ras_error_count) in amdgpu_umc_handle_bad_pages() 111 adev->umc.ras->ras_block.hw_ops->query_ras_error_count(adev, ras_error_status); in amdgpu_umc_handle_bad_pages() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | gp102.c | 36 struct nvkm_subdev *subdev = &chan->disp->engine.subdev; in gp102_disp_dmac_init() 37 struct nvkm_device *device = subdev->device; in gp102_disp_dmac_init() 38 int ctrl = chan->chid.ctrl; in gp102_disp_dmac_init() 39 int user = chan->chid.user; in gp102_disp_dmac_init() 42 nvkm_wr32(device, 0x611494 + (ctrl * 0x0010), chan->push); in gp102_disp_dmac_init() 46 nvkm_wr32(device, 0x640000 + (ctrl * 0x1000), chan->suspend_put); in gp102_disp_dmac_init() 54 nvkm_error(subdev, "ch %d init: %08x\n", user, in gp102_disp_dmac_init() 56 return -EBUSY; in gp102_disp_dmac_init() 74 .func = &gf119_disp_pioc_func, 81 .func = &gf119_disp_pioc_func, [all …]
|
H A D | nv50.c | 49 struct nvkm_device *device = pior->disp->engine.subdev.device; in nv50_pior_clock() 58 int ret = nvkm_i2c_aux_lnk_ctl(aux, pior->dp.nr, pior->dp.bw, pior->dp.ef); in nv50_pior_dp_links() 82 struct nvkm_device *device = pior->disp->engine.subdev.device; in nv50_pior_power() 96 /* GF119 moves this information to per-head methods, which is in nv50_pior_depth() 99 if (state->head && state == &ior->asy) { in nv50_pior_depth() 100 struct nvkm_head *head = nvkm_head_find(ior->disp, __ffs(state->head)); in nv50_pior_depth() 103 struct nvkm_head_state *state = &head->asy; in nv50_pior_depth() 105 case 6: state->or.depth = 30; break; in nv50_pior_depth() 106 case 5: state->or.depth = 24; break; in nv50_pior_depth() 107 case 2: state->or.depth = 18; break; in nv50_pior_depth() [all …]
|
/linux/drivers/edac/ |
H A D | i7core_edac.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Xeon 55xx and Xeon 56xx also known as Nehalem, Nehalem-EP, Lynnfield 7 * and Westmere-EP. 9 * Copyright (c) 2009-2010 by: 23 * http://www.arrownac.com/manufacturers/intel/s/nehalem/5500-datasheet-v2.pdf 51 * This is used for Nehalem-EP and Nehalem-EX devices, where the non-core 92 * http://www.arrownac.com/manufacturers/intel/s/nehalem/5500-datasheet-v2.pdf 132 #define RDLCH(r, ch) ((((r) >> (3 + (ch * 6))) & 0x07) - 1) argument 133 #define WRLCH(r, ch) ((((r) >> (ch * 6)) & 0x07) - 1) argument 187 #define MC_RIR_LIMIT_MASK ((1 << 10) - 1) [all …]
|