Home
last modified time | relevance | path

Searched +full:read +full:- +full:out (Results 1 – 25 of 1152) sorted by relevance

12345678910>>...47

/kernel/linux/linux-6.6/drivers/net/ethernet/aquantia/atlantic/macsec/
Dmacsec_api.h1 /* 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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/macsec/
Dmacsec_api.h1 /* 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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igb/
De1000_nvm.c1 // 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 …]
De1000_i210.c1 // 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 …]
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/igb/
De1000_nvm.c1 // 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 …]
De1000_i210.c1 // 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 …]
/kernel/linux/linux-6.6/drivers/mtd/tests/
Dsubpagetest.c1 // 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 …]
/kernel/linux/linux-5.10/drivers/mtd/tests/
Dsubpagetest.c1 // 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 …]
/kernel/linux/linux-6.6/Documentation/wmi/devices/
Ddell-wmi-ddv.rst1 .. SPDX-License-Identifier: GPL-2.0-or-later
4 Dell DDV WMI interface driver (dell-wmi-ddv)
10 Many Dell notebooks made after ~2020 support a WMI-based interface for
15 so it was called `DDV`. Currently the ``dell-wmi-ddv`` driver supports
21 trial-and-error, please keep that in mind.
27 including batteries. It has a form similar to `CC-PPPPPP-MMMMM-YMD-SSSS-FFF`
52 …), Locale("MS\\0x409"), Description("WMI Function"), guid("{8A42EA14-4F2A-FD45-6422-0087F7A7E608}"…
54 [key, read] string InstanceName;
55 [read] boolean Active;
57 …dId(1), Implemented, read, write, Description("Return Battery Design Capacity.")] void BatteryDesi…
[all …]
/kernel/linux/linux-6.6/drivers/scsi/
Dconstants.c1 // 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 …]
/kernel/linux/linux-5.10/drivers/scsi/
Dconstants.c1 // 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 …]
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/igc/
Digc_phy.c1 // SPDX-License-Identifier: GPL-2.0
8 * igc_check_reset_block - Check if PHY reset is blocked
11 * Read the PHY management control register and check whether a PHY reset
26 * igc_get_phy_id - Retrieve the PHY ID and revision
34 struct igc_phy_info *phy = &hw->phy; in igc_get_phy_id()
38 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igc_get_phy_id()
40 goto out; in igc_get_phy_id()
42 phy->id = (u32)(phy_id << 16); in igc_get_phy_id()
44 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igc_get_phy_id()
46 goto out; in igc_get_phy_id()
[all …]
Digc_nvm.c1 // 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 …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dbpf_iter.c1 // SPDX-License-Identifier: GPL-2.0
55 /* not check contents, but ensure read() ends without error */ in do_dummy_read()
56 while ((len = read(iter_fd, buf, sizeof(buf))) > 0) in do_dummy_read()
58 CHECK(len < 0, "read", "read failed: %s\n", strerror(errno)); in do_dummy_read()
75 do_dummy_read(skel->progs.dump_ipv6_route); in test_ipv6_route()
89 do_dummy_read(skel->progs.dump_netlink); in test_netlink()
103 do_dummy_read(skel->progs.dump_bpf_map); in test_bpf_map()
117 do_dummy_read(skel->progs.dump_task); in test_task()
131 do_dummy_read(skel->progs.dump_task_stack); in test_task_stack()
152 skel->bss->tgid = getpid(); in test_task_file()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igc/
Digc_phy.c1 // 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 …]
Digc_nvm.c1 // 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 …]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
Dbpf_iter.c1 // SPDX-License-Identifier: GPL-2.0
64 /* not check contents, but ensure read() ends without error */ in do_dummy_read_opts()
65 while ((len = read(iter_fd, buf, sizeof(buf))) > 0) in do_dummy_read_opts()
67 CHECK(len < 0, "read", "read failed: %s\n", strerror(errno)); in do_dummy_read_opts()
116 /* Read after both map fd and link fd are closed */ in do_read_map_iter_fd()
117 while ((len = read(iter_fd, buf, sizeof(buf))) > 0) in do_read_map_iter_fd()
130 len = read(fd, buf, bufleft); in read_fd_into_buffer()
133 bufleft -= len; in read_fd_into_buffer()
137 return len < 0 ? len : size - bufleft; in read_fd_into_buffer()
148 do_dummy_read(skel->progs.dump_ipv6_route); in test_ipv6_route()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/fpga/
Dcmd.c14 * - 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 …]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/fpga/
Dcmd.c14 * - 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 …]
/kernel/linux/linux-6.6/fs/
Dkernel_read_file.c1 // 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 …]
/kernel/linux/linux-5.10/fs/
Dkernel_read_file.c1 // 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 …]
/kernel/linux/linux-5.10/drivers/net/wireless/st/cw1200/
Dfwio.c1 // 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 …]
/kernel/linux/linux-6.6/drivers/net/wireless/st/cw1200/
Dfwio.c1 // 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 …]
/kernel/linux/linux-5.10/drivers/xen/xen-pciback/
Dconf_space_capability.c1 // 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 …]
/kernel/linux/linux-6.6/drivers/xen/xen-pciback/
Dconf_space_capability.c1 // 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 …]

12345678910>>...47