/Linux-v6.1/drivers/net/ethernet/aquantia/atlantic/macsec/ |
D | macsec_api.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 48 /*! Read the raw table data from the specified row of the Egress CTL 50 * rec - [OUT] The raw table row data will be unpacked into the fields of rec. 51 * table_index - The table row to read (max 23). 59 * rec - [IN] The bitfield values to write to the table row. 60 * table_index - The table row to write(max 23). 66 /*! Read the raw table data from the specified row of the Egress 68 * rec - [OUT] The raw table row data will be unpacked into the fields of rec. 69 * table_index - The table row to read (max 47). 77 * rec - [IN] The bitfield values to write to the table row. [all …]
|
/Linux-v6.1/drivers/net/ethernet/intel/igb/ |
D | e1000_nvm.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2007 - 2018 Intel Corporation. */ 11 * igb_raise_eec_clk - Raise EEPROM clock 22 udelay(hw->nvm.delay_usec); in igb_raise_eec_clk() 26 * igb_lower_eec_clk - Lower EEPROM clock 37 udelay(hw->nvm.delay_usec); in igb_lower_eec_clk() 41 * igb_shift_out_eec_bits - Shift data bits our to the EEPROM 44 * @count: number of bits to shift out 46 * We need to shift 'count' bits out to the EEPROM. So, the value in the 47 * "data" parameter will be shifted out to the EEPROM one bit at a time. [all …]
|
D | e1000_i210.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2007 - 2018 Intel Corporation. */ 17 * igb_get_hw_semaphore_i210 - Acquire hardware semaphore 25 s32 timeout = hw->nvm.word_size + 1; in igb_get_hw_semaphore_i210() 42 if (hw->dev_spec._82575.clear_semaphore_once) { in igb_get_hw_semaphore_i210() 43 hw->dev_spec._82575.clear_semaphore_once = false; in igb_get_hw_semaphore_i210() 56 hw_dbg("Driver can't access device - SMBI bit is set.\n"); in igb_get_hw_semaphore_i210() 57 return -E1000_ERR_NVM; in igb_get_hw_semaphore_i210() 77 return -E1000_ERR_NVM; in igb_get_hw_semaphore_i210() 84 * igb_acquire_nvm_i210 - Request for access to EEPROM [all …]
|
D | e1000_82575.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2007 - 2018 Intel Corporation. */ 61 * igb_write_vfta_i350 - Write value to VLAN filter table 71 struct igb_adapter *adapter = hw->back; in igb_write_vfta_i350() 74 for (i = 10; i--;) in igb_write_vfta_i350() 78 adapter->shadow_vfta[offset] = value; in igb_write_vfta_i350() 82 * igb_sgmii_uses_mdio_82575 - Determine if I2C pins are for external MDIO 93 switch (hw->mac.type) { in igb_sgmii_uses_mdio_82575() 114 * igb_check_for_link_media_swap - Check which M88E1112 interface linked 121 struct e1000_phy_info *phy = &hw->phy; in igb_check_for_link_media_swap() [all …]
|
D | e1000_phy.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2007 - 2018 Intel Corporation. */ 31 * igb_check_reset_block - Check if PHY reset is blocked 34 * Read the PHY management control register and check whether a PHY reset 48 * igb_get_phy_id - Retrieve the PHY ID and revision 56 struct e1000_phy_info *phy = &hw->phy; in igb_get_phy_id() 61 if ((hw->mac.type == e1000_i210) || (hw->mac.type == e1000_i211)) in igb_get_phy_id() 62 phy->ops.write_reg(hw, I347AT4_PAGE_SELECT, 0); in igb_get_phy_id() 64 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igb_get_phy_id() 66 goto out; in igb_get_phy_id() [all …]
|
/Linux-v6.1/drivers/mtd/tests/ |
D | subpagetest.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2006-2007 Nokia Corporation 5 * Test sub-page read and write on MTD device. 6 * Author: Adrian Hunter <ext-adrian.hunter@nokia.com> 22 static int dev = -EINVAL; 47 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock() 58 return err ? err : -1; in write_eraseblock() 72 return err ? err : -1; in write_eraseblock() 82 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock2() 85 if (addr + (subpgsize * k) > (loff_t)(ebnum + 1) * mtd->erasesize) in write_eraseblock2() [all …]
|
D | speedtest.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Test read and write speed of a MTD device. 24 static int dev = -EINVAL; 47 loff_t addr = (loff_t)ebnum * mtd->erasesize; in multiblock_erase() 51 ei.len = mtd->erasesize * blocks; in multiblock_erase() 65 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock() 67 return mtdtest_write(mtd, addr, mtd->erasesize, iobuf); in write_eraseblock() 73 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock_by_page() 91 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock_by_2pages() 109 loff_t addr = (loff_t)ebnum * mtd->erasesize; in read_eraseblock() [all …]
|
D | torturetest.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2006-2008 Artem Bityutskiy 4 * Copyright (C) 2006-2008 Jarkko Lavinen 5 * Copyright (C) 2006-2008 Adrian Hunter 40 static int dev = -EINVAL; 73 static void report_corrupt(unsigned char *read, unsigned char *written); 92 size_t read; in check_eraseblock() local 93 loff_t addr = (loff_t)ebnum * mtd->erasesize; in check_eraseblock() 94 size_t len = mtd->erasesize; in check_eraseblock() 97 addr = (loff_t)(ebnum + 1) * mtd->erasesize - pgcnt * pgsize; in check_eraseblock() [all …]
|
/Linux-v6.1/drivers/scsi/ |
D | constants.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Additions for SCSI 3+ (SPC-3 T10/1416-D Rev 07 3 May 2002) 8 * Updated to SPC-4 T10/1713-D Rev 36g, D. Gilbert 20130701 38 /* 00-03 */ "Test Unit Ready", "Rezero Unit/Rewind", NULL, "Request Sense", 39 /* 04-07 */ "Format Unit/Medium", "Read Block Limits", NULL, 41 /* 08-0d */ "Read(6)", NULL, "Write(6)", "Seek(6)", NULL, NULL, 42 /* 0e-12 */ NULL, "Read Reverse", "Write Filemarks", "Space", "Inquiry", 43 /* 13-16 */ "Verify(6)", "Recover Buffered Data", "Mode Select(6)", 45 /* 17-1a */ "Release(6)", "Copy", "Erase", "Mode Sense(6)", 46 /* 1b-1d */ "Start/Stop Unit", "Receive Diagnostic", "Send Diagnostic", [all …]
|
/Linux-v6.1/drivers/net/ethernet/intel/igc/ |
D | igc_phy.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * igc_check_reset_block - Check if PHY reset is blocked 10 * Read the PHY management control register and check whether a PHY reset 25 * igc_get_phy_id - Retrieve the PHY ID and revision 33 struct igc_phy_info *phy = &hw->phy; in igc_get_phy_id() 37 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igc_get_phy_id() 39 goto out; in igc_get_phy_id() 41 phy->id = (u32)(phy_id << 16); in igc_get_phy_id() 43 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igc_get_phy_id() 45 goto out; in igc_get_phy_id() [all …]
|
D | igc_nvm.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * igc_poll_eerd_eewr_done - Poll for EEPROM read/write completion 12 * Polls the EEPROM status bit for either read or write completion based 17 s32 ret_val = -IGC_ERR_NVM; in igc_poll_eerd_eewr_done() 39 * igc_acquire_nvm - Generic request for access to EEPROM 44 * EEPROM access and return -IGC_ERR_NVM (-1). 60 timeout--; in igc_acquire_nvm() 67 ret_val = -IGC_ERR_NVM; in igc_acquire_nvm() 74 * igc_release_nvm - Release exclusive access to EEPROM 89 * igc_read_nvm_eerd - Reads EEPROM using EERD register [all …]
|
D | igc_i225.c | 1 // SPDX-License-Identifier: GPL-2.0 9 * igc_acquire_nvm_i225 - Acquire exclusive access to EEPROM 15 * EEPROM access and return -IGC_ERR_NVM (-1). 23 * igc_release_nvm_i225 - Release exclusive access to EEPROM 35 * igc_get_hw_semaphore_i225 - Acquire hardware semaphore 42 s32 timeout = hw->nvm.word_size + 1; in igc_get_hw_semaphore_i225() 60 if (hw->dev_spec._base.clear_semaphore_once) { in igc_get_hw_semaphore_i225() 61 hw->dev_spec._base.clear_semaphore_once = false; in igc_get_hw_semaphore_i225() 74 hw_dbg("Driver can't access device - SMBI bit is set.\n"); in igc_get_hw_semaphore_i225() 75 return -IGC_ERR_NVM; in igc_get_hw_semaphore_i225() [all …]
|
/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/ |
D | bpf_iter.c | 1 // SPDX-License-Identifier: GPL-2.0 63 /* not check contents, but ensure read() ends without error */ in do_dummy_read_opts() 64 while ((len = read(iter_fd, buf, sizeof(buf))) > 0) in do_dummy_read_opts() 66 CHECK(len < 0, "read", "read failed: %s\n", strerror(errno)); in do_dummy_read_opts() 115 /* Read after both map fd and link fd are closed */ in do_read_map_iter_fd() 116 while ((len = read(iter_fd, buf, sizeof(buf))) > 0) in do_read_map_iter_fd() 129 len = read(fd, buf, bufleft); in read_fd_into_buffer() 132 bufleft -= len; in read_fd_into_buffer() 136 return len < 0 ? len : size - bufleft; in read_fd_into_buffer() 147 do_dummy_read(skel->progs.dump_ipv6_route); in test_ipv6_route() [all …]
|
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
D | cmd.c | 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 28 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 47 u32 out[MLX5_FPGA_ACCESS_REG_SZ]; in mlx5_fpga_access_reg() local 51 return -EINVAL; in mlx5_fpga_access_reg() 53 return -EINVAL; in mlx5_fpga_access_reg() 55 return -EINVAL; in mlx5_fpga_access_reg() 62 err = mlx5_core_access_reg(dev, in, sizeof(in), out, sizeof(out), in mlx5_fpga_access_reg() 68 memcpy(buf, MLX5_ADDR_OF(fpga_access_reg, out, data), size); in mlx5_fpga_access_reg() 77 return mlx5_core_access_reg(dev, in, sizeof(in), dev->caps.fpga, in mlx5_fpga_caps() [all …]
|
/Linux-v6.1/drivers/net/wireless/st/cw1200/ |
D | fwio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Firmware I/O code for mac80211 ST-Ericsson CW1200 drivers 5 * Copyright (c) 2010, ST-Ericsson 9 * ST-Ericsson UMAC CW1200 driver which is 10 * Copyright (c) 2010, ST-Ericsson 26 int hw_type = -1; in cw1200_get_hw_type() 93 switch (priv->hw_revision) { in cw1200_load_firmware_cw1200() 96 if (!priv->sdd_path) in cw1200_load_firmware_cw1200() 97 priv->sdd_path = SDD_FILE_10; in cw1200_load_firmware_cw1200() 101 if (!priv->sdd_path) in cw1200_load_firmware_cw1200() [all …]
|
/Linux-v6.1/drivers/xen/xen-pciback/ |
D | conf_space_capability.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * PCI Backend - Handles the virtual fields found on the capability lists 28 .u.w.read = xen_pcibk_read_config_word, 36 list_add_tail(&cap->cap_list, &capabilities); in register_capability() 46 cap_offset = pci_find_capability(dev, cap->capability); in xen_pcibk_config_capability_add_fields() 48 dev_dbg(&dev->dev, "Found capability 0x%x at 0x%x\n", in xen_pcibk_config_capability_add_fields() 49 cap->capability, cap_offset); in xen_pcibk_config_capability_add_fields() 55 goto out; in xen_pcibk_config_capability_add_fields() 57 cap->fields, in xen_pcibk_config_capability_add_fields() 60 goto out; in xen_pcibk_config_capability_add_fields() [all …]
|
D | conf_space.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * PCI Backend - Functions for creating a virtual configuration space for 34 DEFINE_PCI_CONFIG(read, byte, u8 *) in DEFINE_PCI_CONFIG() argument 35 DEFINE_PCI_CONFIG(read, word, u16 *) in DEFINE_PCI_CONFIG() 36 DEFINE_PCI_CONFIG(read, dword, u32 *) in DEFINE_PCI_CONFIG() 47 const struct config_field *field = entry->field; in DEFINE_PCI_CONFIG() 51 switch (field->size) { in DEFINE_PCI_CONFIG() 53 if (field->u.b.read) in DEFINE_PCI_CONFIG() 54 ret = field->u.b.read(dev, offset, (u8 *) value, in DEFINE_PCI_CONFIG() 55 entry->data); in DEFINE_PCI_CONFIG() [all …]
|
/Linux-v6.1/fs/ |
D | kernel_read_file.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * kernel_read_file() - read file contents into a kernel buffer 11 * @file file to read from 18 * @file_size if non-NULL, the full size of @file will be 21 * file contents being read (for LSMs to examine) 23 * @offset must be 0 unless both @buf and @file_size are non-NULL 24 * (i.e. the caller must be expecting to read partial file contents 25 * via an already-allocated @buf, in at most @buf_size chunks, and 26 * will be able to determine when the entire file was read by 27 * checking @file_size). This isn't a recommended way to read a [all …]
|
/Linux-v6.1/tools/virtio/virtio-trace/ |
D | README | 1 Trace Agent for virtio-trace 6 - splice a page of ring-buffer to read_pipe without memory copying 7 - splice the page from write_pipe to virtio-console without memory copying 8 - write trace data to stdout by using -o option 9 - controlled by start/stop orders from a Host 13 2) Create a read/write thread per CPU. Each thread is bound to a CPU. 14 The read/write threads hold it. 17 the controller wake read/write threads. 18 5) The read/write threads start to read trace data from ring-buffers and 19 write the data to virtio-serial. [all …]
|
/Linux-v6.1/tools/testing/selftests/arm64/fp/ |
D | sve-ptrace.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2015-2021 ARM Limited. 58 #define VL_TESTS (((SVE_VQ_MAX - SVE_VQ_MIN) + 1) * 4) 74 if (ptrace(PTRACE_TRACEME, -1, NULL, NULL)) in do_child() 123 if (ptrace(PTRACE_GETREGSET, pid, type->regset, &iov)) in get_sve() 127 if (sve->size <= sz) in get_sve() 130 sz = sve->size; in get_sve() 145 iov.iov_len = sve->size; in set_sve() 146 return ptrace(PTRACE_SETREGSET, pid, type->regset, &iov); in set_sve() 165 type->name); in ptrace_set_get_inherit() [all …]
|
/Linux-v6.1/drivers/rtc/ |
D | rtc-bq4802.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* rtc-bq4802.c: TI BQ4802 RTC driver. 26 u8 (*read)(struct bq4802 *, int); member 32 return inb(p->ioport + off); in bq4802_read_io() 37 outb(val, p->ioport + off); in bq4802_write_io() 42 return readb(p->regs + off); in bq4802_read_mem() 47 writeb(val, p->regs + off); in bq4802_write_mem() 57 spin_lock_irqsave(&p->lock, flags); in bq4802_read_time() 59 val = p->read(p, 0x0e); in bq4802_read_time() 60 p->write(p, 0xe, val | 0x08); in bq4802_read_time() [all …]
|
/Linux-v6.1/drivers/media/radio/ |
D | radio-wl1273.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 #include <linux/mfd/wl1273-core.h> 15 #include <media/v4l2-common.h> 16 #include <media/v4l2-ctrls.h> 17 #include <media/v4l2-device.h> 18 #include <media/v4l2-ioctl.h> 35 * static int radio_nr - The number of the radio device 87 * static unsigned int rds_buf - the number of RDS buffer blocks used. 98 struct i2c_client *client = core->client; in wl1273_fm_write_fw() 102 msg.addr = client->addr; in wl1273_fm_write_fw() [all …]
|
/Linux-v6.1/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_debugfs.c | 21 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 46 * amdgpu_debugfs_process_reg_op - Handle MMIO register reads/writes 48 * @read: True if reading 50 * @buf: User buffer to write/read to 51 * @size: Number of bytes to write/read 65 * This is necessary to read registers that might be 68 * The lower bits are the BYTE offset of the register to read. This 72 static int amdgpu_debugfs_process_reg_op(bool read, struct file *f, in amdgpu_debugfs_process_reg_op() argument 75 struct amdgpu_device *adev = file_inode(f)->i_private; in amdgpu_debugfs_process_reg_op() 86 return -EINVAL; in amdgpu_debugfs_process_reg_op() [all …]
|
/Linux-v6.1/drivers/net/ethernet/intel/igbvf/ |
D | mbx.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2009 - 2018 Intel Corporation. */ 7 * e1000_poll_for_msg - Wait for message notification 14 struct e1000_mbx_info *mbx = &hw->mbx; in e1000_poll_for_msg() 15 int countdown = mbx->timeout; in e1000_poll_for_msg() 17 if (!mbx->ops.check_for_msg) in e1000_poll_for_msg() 18 goto out; in e1000_poll_for_msg() 20 while (countdown && mbx->ops.check_for_msg(hw)) { in e1000_poll_for_msg() 21 countdown--; in e1000_poll_for_msg() 22 udelay(mbx->usec_delay); in e1000_poll_for_msg() [all …]
|
/Linux-v6.1/drivers/dma/qcom/ |
D | hidma_mgmt.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2015-2017, The Linux Foundation. All rights reserved. 20 #include <linux/dma-mapping.h> 53 "maximum read burst (default: ACPI/DT value)"); 63 "maximum number of read transactions (default: ACPI/DT value)"); 70 if (!is_power_of_2(mgmtdev->max_write_request) || in hidma_mgmt_setup() 71 (mgmtdev->max_write_request < 128) || in hidma_mgmt_setup() 72 (mgmtdev->max_write_request > 1024)) { in hidma_mgmt_setup() 73 dev_err(&mgmtdev->pdev->dev, "invalid write request %d\n", in hidma_mgmt_setup() 74 mgmtdev->max_write_request); in hidma_mgmt_setup() [all …]
|