/linux/Documentation/devicetree/bindings/net/ |
H A D | faraday,ftgmac100.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - $ref: ethernet-controller.yaml# 13 - Po-Yu Chuang <ratbert@faraday-tech.com> 18 - const: faraday,ftgmac100 19 - items: 20 - enum: 21 - aspeed,ast2400-mac 22 - aspeed,ast2500-mac [all …]
|
/linux/fs/unicode/ |
H A D | utf8-norm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 int i = um->tables->utf8agetab_size - 1; in utf8version_is_supported() 13 while (i >= 0 && um->tables->utf8agetab[i] != 0) { in utf8version_is_supported() 14 if (version == um->tables->utf8agetab[i]) in utf8version_is_supported() 16 i--; in utf8version_is_supported() 22 * UTF-8 valid ranges. 24 * The UTF-8 encoding spreads the bits of a 32bit word over several 35 * There is an additional requirement on UTF-8, in that only the 47 * Actual unicode characters are limited to the range 0x0 - 0x10FFFF, 51 * 0 - 0x7F: 0 - 0x7F [all …]
|
H A D | mkutf8data.c | 16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 30 /* Default names of the in- and output files. */ 65 /* ------------------------------------------------------------------ */ 80 #define UNICODE_MAJ_MAX ((unsigned short)-1) 81 #define UNICODE_MIN_MAX ((unsigned char)-1) 82 #define UNICODE_REV_MAX ((unsigned char)-1) 106 /* ------------------------------------------------------------------ */ 111 * A compact binary tree, used to decode UTF-8 characters. 116 * NEXTBYTE - flag - advance to next byte if set 117 * BITNUM - 3 bit field - the bit number to tested [all …]
|
/linux/fs/nilfs2/ |
H A D | sufile.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2006-2008 Nippon Telegraph and Telephone Corporation. 22 * struct nilfs_sufile_info - on-memory private data of sufile 23 * @mi: on-memory private data of metadata file 43 return NILFS_MDT(sufile)->mi_entries_per_block; in nilfs_sufile_segment_usages_per_block() 49 __u64 t = segnum + NILFS_MDT(sufile)->mi_first_entry_offset; in nilfs_sufile_get_blkoff() 58 __u64 t = segnum + NILFS_MDT(sufile)->mi_first_entry_offset; in nilfs_sufile_get_offset() 68 nilfs_sufile_segment_usages_per_block(sufile) - in nilfs_sufile_segment_usages_in_block() 70 max - curr + 1); in nilfs_sufile_segment_usages_in_block() 74 * nilfs_sufile_segment_usage_offset - calculate the byte offset of a segment [all …]
|
/linux/include/uapi/linux/ |
H A D | ncsi.h | 2 * Copyright Samuel Mendoza-Jonas, IBM Corporation 2018. 14 * enum ncsi_nl_commands - supported NCSI commands 19 * specific package and its channels - otherwise a dump request returns 26 * @NCSI_CMD_SEND_CMD: send NC-SI command to network card. 47 NCSI_CMD_MAX = __NCSI_CMD_AFTER_LAST - 1 51 * enum ncsi_nl_attrs - General NCSI netlink attributes 59 * @NCSI_ATTR_MULTI_FLAG: flag to signal that multi-mode should be enabled with 61 * @NCSI_ATTR_PACKAGE_MASK: 32-bit mask of allowed packages. 62 * @NCSI_ATTR_CHANNEL_MASK: 32-bit mask of allowed channels. 77 NCSI_ATTR_MAX = __NCSI_ATTR_AFTER_LAST - 1 [all …]
|
/linux/net/ncsi/ |
H A D | ncsi-cmd.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 19 #include "ncsi-pkt.h" 44 h->mc_id = 0; in ncsi_cmd_build_header() 45 h->revision = NCSI_PKT_REVISION; in ncsi_cmd_build_header() 46 h->reserved = 0; in ncsi_cmd_build_header() 47 h->id = nca->id; in ncsi_cmd_build_header() 48 h->type = nca->type; in ncsi_cmd_build_header() 49 h->channel = NCSI_TO_CHANNEL(nca->package, in ncsi_cmd_build_header() 50 nca->channel); in ncsi_cmd_build_header() 51 h->length = htons(nca->payload); in ncsi_cmd_build_header() [all …]
|
/linux/drivers/block/drbd/ |
H A D | drbd_nl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 Copyright (C) 2001-2008, LINBIT Information Technologies GmbH. 8 Copyright (C) 1999-2008, Philipp Reisner <philipp.reisner@linbit.com>. 9 Copyright (C) 2002-2008, Lars Ellenberg <lars.ellenberg@linbit.com>. 100 int err = -EMSGSIZE; in drbd_msg_put_info() 123 int err = -EMSGSIZE; in drbd_msg_sprintf_info() 140 txt->nla_len = nla_attr_size(len+1); in drbd_msg_sprintf_info() 141 nlmsg_trim(skb, (char*)txt + NLA_ALIGN(txt->nla_len)); in drbd_msg_sprintf_info() 148 * and per-family private info->pointers. 163 const u8 cmd = info->genlhdr->cmd; in drbd_adm_prepare() [all …]
|
H A D | drbd_worker.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 Copyright (C) 2001-2008, LINBIT Information Technologies GmbH. 8 Copyright (C) 1999-2008, Philipp Reisner <philipp.reisner@linbit.com>. 9 Copyright (C) 2002-2008, Lars Ellenberg <lars.ellenberg@linbit.com>. 54 device = bio->bi_private; in drbd_md_endio() 55 device->md_io.error = blk_status_to_errno(bio->bi_status); in drbd_md_endio() 58 if (device->ldev) in drbd_md_endio() 65 * drbd_md_put_buffer() may allow us to finally try and re-attach. in drbd_md_endio() 71 * ASSERT(atomic_read(&device->md_io_in_use) == 1) there. in drbd_md_endio() 74 device->md_io.done = 1; in drbd_md_endio() [all …]
|
/linux/drivers/net/ethernet/faraday/ |
H A D | ftgmac100.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * (C) Copyright 2009-2011 Faraday Technology 6 * Po-Yu Chuang <ratbert@faraday-tech.com> 12 #include <linux/dma-mapping.h> 54 /* For NC-SI to register a fixed-link phy device */ 126 struct net_device *netdev = priv->netdev; in ftgmac100_reset_mac() 130 iowrite32(maccr, priv->base + FTGMAC100_OFFSET_MACCR); in ftgmac100_reset_mac() 132 priv->base + FTGMAC100_OFFSET_MACCR); in ftgmac100_reset_mac() 136 maccr = ioread32(priv->base + FTGMAC100_OFFSET_MACCR); in ftgmac100_reset_mac() 144 return -EIO; in ftgmac100_reset_mac() [all …]
|
/linux/drivers/scsi/csiostor/ |
H A D | csio_hw.c | 4 * Copyright (c) 2008-2012 Chelsio Communications, Inc. All rights reserved. 16 * - Redistributions of source code must retain the above 20 * - Redistributions in binary form must reproduce the above 64 {"T580-Dbg 10G", "Chelsio T580-Dbg 10G [FCoE]"}, 65 {"T520-CR 10G", "Chelsio T520-CR 10G [FCoE]"}, 66 {"T522-CR 10G/1G", "Chelsio T522-CR 10G/1G [FCoE]"}, 67 {"T540-CR 10G", "Chelsio T540-CR 10G [FCoE]"}, 68 {"T520-BCH 10G", "Chelsio T520-BCH 10G [FCoE]"}, 69 {"T540-BCH 10G", "Chelsio T540-BCH 10G [FCoE]"}, 70 {"T540-CH 10G", "Chelsio T540-CH 10G [FCoE]"}, [all …]
|
/linux/drivers/net/wireless/realtek/rtw88/ |
H A D | regd.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2 /* Copyright(c) 2018-2019 Realtek Corporation 19 const struct rtw_regd *__r = &__d->regd; \ 23 __r->regulatory->alpha2[0], \ 24 __r->regulatory->alpha2[1], \ 25 __r->regulatory->txpwr_regd_2g, \ 26 __r->regulatory->txpwr_regd_5g, \ 27 __r->dfs_region); \ 192 COUNTRY_REGD_ENT("NC", RTW_REGD_ETSI, RTW_REGD_ETSI), 229 COUNTRY_REGD_ENT("SI", RTW_REGD_ETSI, RTW_REGD_ETSI), [all …]
|
/linux/drivers/net/wireless/realtek/rtw89/ |
H A D | mac_be.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2 /* Copyright(c) 2019-2020 Realtek Corporation 67 test_bit(RTW89_FLAG_DMAC_FUNC, rtwdev->flags)) in rtw89_mac_check_mac_en_be() 70 test_bit(RTW89_FLAG_CMAC0_FUNC, rtwdev->flags)) in rtw89_mac_check_mac_en_be() 73 test_bit(RTW89_FLAG_CMAC1_FUNC, rtwdev->flags)) in rtw89_mac_check_mac_en_be() 76 return -EFAULT; in rtw89_mac_check_mac_en_be() 81 return rtwdev->hci.type == RTW89_HCI_TYPE_PCIE; in is_qta_poh() 86 struct rtw89_hfc_param *param = &rtwdev->mac.hfc_param; in hfc_get_mix_info_be() 87 struct rtw89_hfc_prec_cfg *prec_cfg = ¶m->prec_cfg; in hfc_get_mix_info_be() 88 struct rtw89_hfc_pub_cfg *pub_cfg = ¶m->pub_cfg; in hfc_get_mix_info_be() [all …]
|
H A D | regd.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2 /* Copyright(c) 2019-2020 Realtek Corporation 64 COUNTRY_REGD("SI", RTW89_ETSI, RTW89_ETSI, RTW89_ETSI), 215 COUNTRY_REGD("NC", RTW89_ETSI, RTW89_ETSI, RTW89_NA), 286 "SI", 319 return regd - rtw89_regd_map; in rtw89_regd_get_index() 335 ##_argv, __r->alpha2[0], __r->alpha2[1], \ 336 __r->txpwr_regd[RTW89_BAND_2G], \ 337 __r->txpwr_regd[RTW89_BAND_5G], \ 338 __r->txpwr_regd[RTW89_BAND_6G]); \ [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/drivers/staging/gpib/lpvo_usb_gpib/ |
H A D | lpvo_usb_gpib.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * of Florence, Italy) to support in linux-gpib the open usb-gpib adapter * 6 * implemented at the University of Ljubljana (lpvo.fe.uni-lj.si/gpib) * 44 * in the following table with proper <Vendor-id>, <Product-id>. 48 * and /usr/local/etc/udev/rules.d/99-lpvo_usb_gpib.rules. 77 pr_alert("%s:%s - " format, NAME, __func__, ## __VA_ARGS__); } \ 80 /* standard and extended command sets of the usb-gpib adapter */ 146 #define GPIB_DEV (((struct usb_gpib_priv *)board->private_data)->dev) 149 DIA_LOG(2, "# - board %p\n", board); \ 150 DIA_LOG(2, "# - buffer_length %d\n", board->buffer_length); \ [all …]
|
/linux/include/uapi/drm/ |
H A D | amdgpu_drm.h | 1 /* amdgpu_drm.h -- Public header for the amdgpu driver -*- linux-c -*- 82 * GPU's virtual address space via gart. Gart memory linearizes non-contiguous 89 * %AMDGPU_GEM_DOMAIN_GDS Global on-chip data storage used to share data 131 * for the second page onward should be set to NC. It should never 166 /* Flag that BO should be coherent across devices when using device-level 174 /* Set PTE.D and recompress during GTT->VRAM moves according to TILING flags. */ 267 #define AMDGPU_CTX_PRIORITY_UNSET -2048 268 #define AMDGPU_CTX_PRIORITY_VERY_LOW -1023 269 #define AMDGPU_CTX_PRIORITY_LOW -512 378 /* SI-CI-VI: */ [all …]
|
/linux/drivers/eisa/ |
H A D | eisa.ids | 6 # Marc Zyngier <maz@wild-wind.fr.eu.org> 10 ABP0510 "Advansys ABP-510 ISA SCSI Host Adapter" 11 ABP0540 "Advansys ABP-540/542 ISA SCSI Host Adapter" 12 ABP7401 "AdvanSys ABP-740/742 EISA Single Channel SCSI Host Adapter" 13 ABP7501 "AdvanSys ABP-750/752 EISA Dual Channel SCSI Host Adapter" 14 ACC1200 "ACCTON EtherCombo-32 Ethernet Adapter" 15 ACC120A "ACCTON EtherCombo-32 Ethernet Adapter" 25 ACE7010 "ACME Multi-Function Board" 39 ACR1711 "AcerFrame 1000 486/33 SYSTEM-2" 41 ACR3211 "AcerFrame 3000MP 486 SYSTEM-1" [all …]
|
/linux/include/linux/ |
H A D | ethtool.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 45 * enum ethtool_phys_id_state - indicator state for physical identification 61 ETH_RSS_HASH_TOP_BIT, /* Configurable RSS hash function - Toeplitz */ 62 ETH_RSS_HASH_XOR_BIT, /* Configurable RSS hash function - Xor */ 63 ETH_RSS_HASH_CRC32_BIT, /* Configurable RSS hash function - Crc32 */ 73 * struct kernel_ethtool_ringparam - RX/TX ring configuration 93 * enum ethtool_supported_ring_param - indicator caps for setting ring params 139 * In a simpler world it should be equal to netdev->carrier_down_count 141 * actually take the physical link down, not to mention NC-SI which, 152 * ethtool_rxfh_indir_default - get default value for RX flow hash indirection [all …]
|
/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | t4_hw.c | 4 * Copyright (c) 2003-2016 Chelsio Communications, Inc. All rights reserved. 16 * - Redistributions of source code must retain the above 20 * - Redistributions in binary form must reproduce the above 43 * t4_wait_op_done_val - wait until an operation is completed 46 * @mask: a single-bit field within @reg that indicates completion 55 * operation completes and -EAGAIN otherwise. 68 if (--attempts == 0) in t4_wait_op_done_val() 69 return -EAGAIN; in t4_wait_op_done_val() 83 * t4_set_reg_field - set a register field to a value 102 * t4_read_indirect - read indirectly addressed registers [all …]
|
H A D | cxgb4_debugfs.c | 4 * Copyright (c) 2003-2014 Chelsio Communications, Inc. All rights reserved. 16 * - Redistributions of source code must retain the above 20 * - Redistributions in binary form must reproduce the above 57 pos -= tb->skip_first; in seq_tab_get_idx() 58 return pos >= tb->rows ? NULL : &tb->data[pos * tb->width]; in seq_tab_get_idx() 63 struct seq_tab *tb = seq->private; in seq_tab_start() 65 if (tb->skip_first && *pos == 0) in seq_tab_start() 73 v = seq_tab_get_idx(seq->private, *pos + 1); in seq_tab_next() 84 const struct seq_tab *tb = seq->private; in seq_tab_show() 86 return tb->show(seq, v, ((char *)v - tb->data) / tb->width); in seq_tab_show() [all …]
|
/linux/fs/nfsd/ |
H A D | nfs4state.c | 107 * A waitqueue for all in-progress 4.0 CLOSE operations that are waiting for 141 rc = -ENOMEM; in nfsd4_create_laundry_wq() 152 return ses->se_dead; in is_session_dead() 157 if (atomic_read(&ses->se_ref) > ref_held_by_me) in mark_session_dead_locked() 159 ses->se_dead = true; in mark_session_dead_locked() 165 return clp->cl_time == 0; in is_client_expired() 171 if (clp->cl_state != NFSD4_ACTIVE) in nfsd4_dec_courtesy_client_count() 172 atomic_add_unless(&nn->nfsd_courtesy_clients, -1, 0); in nfsd4_dec_courtesy_client_count() 177 struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id); in get_client_locked() 179 lockdep_assert_held(&nn->client_lock); in get_client_locked() [all …]
|
/linux/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_hsi.h | 3 * Copyright (c) 2007-2013 Broadcom Corporation 125 /* Up to 16 bytes of NULL-terminated string */ 145 (if multiple found, priority order is: NC-SI, UMP, IPMI) */ 150 /* Use SPIO4 as an arbiter between: 0-NC_SI, 1-IPMI 151 (can only be used when an add-in board, not BMC, pulls-down SPIO4) */ 153 /* Use SPIO4 as an arbiter between: 0-UMP, 1-IPMI 154 (can only be used when an add-in board, not BMC, pulls-down SPIO4) */ 156 /* Use SPIO4 as an arbiter between: 0-NC-SI, 1-UMP 157 (can only be used when an add-in board, not BMC, pulls-down SPIO4) */ 409 /* Default values: 2P-64, 4P-32 */ [all …]
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | gmc_v9_0.c | 424 if (adev->asic_type >= CHIP_VEGA20) in gmc_v9_0_ecc_interrupt_state() 483 for_each_set_bit(j, adev->vmhubs_mask, AMDGPU_MAX_VMHUBS) { in gmc_v9_0_vm_fault_interrupt_state() 484 hub = &adev->vmhub[j]; in gmc_v9_0_vm_fault_interrupt_state() 486 reg = hub->vm_context0_cntl + i; in gmc_v9_0_vm_fault_interrupt_state() 493 if (adev->in_s0ix && (j == AMDGPU_GFXHUB(0))) in gmc_v9_0_vm_fault_interrupt_state() 511 for_each_set_bit(j, adev->vmhubs_mask, AMDGPU_MAX_VMHUBS) { in gmc_v9_0_vm_fault_interrupt_state() 512 hub = &adev->vmhub[j]; in gmc_v9_0_vm_fault_interrupt_state() 514 reg = hub->vm_context0_cntl + i; in gmc_v9_0_vm_fault_interrupt_state() 521 if (adev->in_s0ix && (j == AMDGPU_GFXHUB(0))) in gmc_v9_0_vm_fault_interrupt_state() 549 bool retry_fault = !!(entry->src_data[1] & 0x80); in gmc_v9_0_process_interrupt() [all …]
|
/linux/drivers/net/ethernet/sfc/ |
H A D | mcdi_pcol.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright 2009-2018 Solarflare Communications Inc. 5 * Copyright 2019-2020 Xilinx Inc. 13 /* Power-on reset state */ 35 /* The 'doorbell' addresses are hard-wired to alert the MC when written */ 38 /* The rest of these are firmware-defined */ 46 /* Values to be written to the per-port status dword in shared 71 * | | \--- Response 72 * | \------- Error 73 * \------------------------------ Resync (always set) [all …]
|
/linux/scripts/ |
H A D | checkpatch.pl | 2 # SPDX-License-Identifier: GPL-2.0 7 # (c) 2008-2010 Andy Whitcroft <apw@canonical.com> 8 # (c) 2010-2018 Joe Perches <joe@perches.com> 69 my $docsfile = "$D/../Documentation/dev-tools/checkpatch.rst"; 72 my $allow_c99_comments = 1; # Can be overridden by --ignore C99_COMMENT_TOLERANCE 74 my $git_command ='export LANGUAGE=en_US.UTF-8; git'; 88 -q, --quiet quiet 89 -v, --verbose verbose mode 90 --no-tree run without a kernel tree 91 --no-signoff do not check for 'Signed-off-by' line [all …]
|