Home
last modified time | relevance | path

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

12345678910>>...45

/linux/Documentation/wmi/devices/
H A Dmsi-wmi-platform.rst1 .. SPDX-License-Identifier: GPL-2.0-or-later
4 MSI WMI Platform Features driver (msi-wmi-platform)
24 guid("{ABBC0F60-8EA1-11d1-00A0-C90629100000}")]
26 [WmiDataId(1), read, write, Description("16 bytes of data")] uint8 Bytes[16];
31 guid("{ABBC0F63-8EA1-11d1-00A0-C90629100000}")]
33 [WmiDataId(1), read, write, Description("32 bytes of data")] uint8 Bytes[32];
38 guid("{ABBC0F6E-8EA1-11d1-00A0-C90629100000}")]
40 [key, read] string InstanceName;
41 [read] boolean Active;
43 [WmiMethodId(1), Implemented, read, write, Description("Return the contents of a package")]
[all …]
H A Dlenovo-wmi-gamezone.rst1 .. SPDX-License-Identifier: GPL-2.0-or-later
4 Lenovo WMI Interface Gamezone Driver (lenovo-wmi-gamezone)
15 -------------
17 WMI GUID ``887B54E3-DDDC-4B2C-8B88-68A26A8835D0``
19 The Gamezone Data WMI interface provides platform-profile and fan curve
25 - low-power
26 - balanced
27 - balanced-performance
28 - performance
29 - custom
[all …]
H A 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 …]
H A Dalienware-wmi.rst1 .. SPDX-License-Identifier: GPL-2.0-or-later
4 Dell AWCC WMI interface driver (alienware-wmi)
10 The WMI device WMAX has been implemented for many Alienware and Dell's G-Series
17 manage manufacturer predefined thermal profiles. The alienware-wmi driver
30 -------------------------
37 …), Locale("MS\\0x409"), Description("WMI Function"), guid("{A70591CE-A997-11DA-B012-B622A1EF5492}"…
39 [key, read] string InstanceName;
40 [read] boolean Active;
42 …WmiMethodId(13), Implemented, read, write, Description("Return Overclocking Report.")] void Return…
43 …MethodId(14), Implemented, read, write, Description("Set OCUIBIOS Control.")] void Set_OCUIBIOSCon…
[all …]
H A Dlenovo-wmi-other.rst1 .. SPDX-License-Identifier: GPL-2.0-or-later
4 Lenovo WMI Interface Other Mode Driver (lenovo-wmi-other)
16 ----------
18 WMI GUID ``DC2A8805-3A8C-41BA-A6F7-092E0089CD3B``
32 /sys/class/firmware-attributes/lenovo-wmi-other/attributes/<attribute>/
35 -------------------------
37 WMI GUID ``7A8F5407-CB67-4D6E-B547-39B3BE018154``
43 - current_value
44 - default_value
45 - display_name
[all …]
/linux/drivers/net/ethernet/aquantia/atlantic/macsec/
H A 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 …]
/linux/drivers/net/ethernet/intel/igb/
H A 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 …]
H A De1000_82575.c1 // 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 …]
/linux/drivers/mtd/tests/
H A 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 …]
H A Dspeedtest.c1 // 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 …]
H A Dtorturetest.c1 // 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/drivers/scsi/
H A 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 …]
/linux/rust/kernel/
H A Duaccess.rs1 // SPDX-License-Identifier: GPL-2.0
27 pub fn from_addr(addr: usize) -> Self { in from_addr()
33 pub fn from_ptr(addr: *mut c_void) -> Self { in from_ptr()
41 pub fn as_const_ptr(self) -> *const c_void { in as_const_ptr()
49 pub fn as_mut_ptr(self) -> *mut c_void { in as_mut_ptr()
58 pub fn wrapping_byte_add(self, add: usize) -> UserPtr { in wrapping_byte_add()
63 /// A pointer to an area in userspace memory, which can be either read-only or read-write.
65 /// All methods on this struct are safe: attempting to read or write on bad addresses (either out of
70 /// presence of a race, the exact byte values read/written are unspecified but the operation is
71 /// well-defined. Kernelspace code should validate its copy of data after completing a read, and not
[all …]
/linux/drivers/net/ethernet/intel/igc/
H A 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_read_nvm_eerd - Reads EEPROM using EERD register
41 * @offset: offset of word in the EEPROM to read
42 * @words: number of words to read
43 * @data: word read from the EEPROM
49 struct igc_nvm_info *nvm = &hw->nvm; in igc_read_nvm_eerd()
56 if (offset >= nvm->word_size || (words > (nvm->word_size - offset)) || in igc_read_nvm_eerd()
[all …]
H A Digc_i225.c1 // SPDX-License-Identifier: GPL-2.0
10 * igc_acquire_nvm_i225 - Acquire exclusive access to EEPROM
16 * EEPROM access and return -IGC_ERR_NVM (-1).
24 * igc_release_nvm_i225 - Release exclusive access to EEPROM
36 * igc_get_hw_semaphore_i225 - Acquire hardware semaphore
43 s32 timeout = hw->nvm.word_size + 1; in igc_get_hw_semaphore_i225()
61 if (hw->dev_spec._base.clear_semaphore_once) { in igc_get_hw_semaphore_i225()
62 hw->dev_spec._base.clear_semaphore_once = false; in igc_get_hw_semaphore_i225()
75 hw_dbg("Driver can't access device - SMBI bit is set.\n"); in igc_get_hw_semaphore_i225()
76 return -IGC_ERR_NVM; in igc_get_hw_semaphore_i225()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/fpga/
H A 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 …]
/linux/drivers/net/wireless/st/cw1200/
H A 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 …]
/linux/drivers/xen/xen-pciback/
H A 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 …]
/linux/tools/virtio/virtio-trace/
H A DREADME1 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/tools/testing/selftests/bpf/prog_tests/
H A Dbpf_iter.c1 // SPDX-License-Identifier: GPL-2.0
62 /* not check contents, but ensure read() ends without error */ in do_dummy_read_opts()
63 while ((len = read(iter_fd, buf, sizeof(buf))) > 0) in do_dummy_read_opts()
65 ASSERT_GE(len, 0, "read"); in do_dummy_read_opts()
114 /* Read after both map fd and link fd are closed */ in do_read_map_iter_fd()
115 while ((len = read(iter_fd, buf, sizeof(buf))) > 0) in do_read_map_iter_fd()
128 len = read(fd, buf, bufleft); in read_fd_into_buffer()
131 bufleft -= len; in read_fd_into_buffer()
135 return len < 0 ? len : size - bufleft; in read_fd_into_buffer()
146 do_dummy_read(skel->progs.dump_ipv6_route); in test_ipv6_route()
[all …]
/linux/drivers/rtc/
H A Drtc-bq4802.c1 // 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/fs/bcachefs/
H A Ddebug.c1 // SPDX-License-Identifier: GPL-2.0
40 struct btree *v = c->verify_data; in bch2_btree_verify_replica()
41 struct btree_node *n_ondisk = c->verify_ondisk; in bch2_btree_verify_replica()
42 struct btree_node *n_sorted = c->verify_data->data; in bch2_btree_verify_replica()
43 struct bset *sorted, *inmemory = &b->data->keys; in bch2_btree_verify_replica()
47 struct bch_dev *ca = bch2_dev_get_ioref(c, pick.ptr.dev, READ, in bch2_btree_verify_replica()
52 bio = bio_alloc_bioset(ca->disk_sb.bdev, in bch2_btree_verify_replica()
56 &c->btree_bio); in bch2_btree_verify_replica()
57 bio->bi_iter.bi_sector = pick.ptr.offset; in bch2_btree_verify_replica()
63 enumerated_ref_put(&ca->io_ref[READ], in bch2_btree_verify_replica()
[all …]
/linux/fs/
H A 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 …]
/linux/drivers/dma/qcom/
H A Dhidma_mgmt.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
17 #include <linux/dma-mapping.h>
50 "maximum read burst (default: ACPI/DT value)");
60 "maximum number of read transactions (default: ACPI/DT value)");
67 if (!is_power_of_2(mgmtdev->max_write_request) || in hidma_mgmt_setup()
68 (mgmtdev->max_write_request < 128) || in hidma_mgmt_setup()
69 (mgmtdev->max_write_request > 1024)) { in hidma_mgmt_setup()
70 dev_err(&mgmtdev->pdev->dev, "invalid write request %d\n", in hidma_mgmt_setup()
71 mgmtdev->max_write_request); in hidma_mgmt_setup()
[all …]
/linux/drivers/mfd/
H A Dwm831x-auxadc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * wm831x-auxadc.c -- AUXADC for Wolfson WM831x PMICs
5 * Copyright 2009-2011 Wolfson Microelectronics PLC.
40 return -ENOMEM; in wm831x_auxadc_read_irq()
42 init_completion(&req->done); in wm831x_auxadc_read_irq()
43 req->input = input; in wm831x_auxadc_read_irq()
44 req->val = -ETIMEDOUT; in wm831x_auxadc_read_irq()
46 mutex_lock(&wm831x->auxadc_lock); in wm831x_auxadc_read_irq()
49 list_add(&req->list, &wm831x->auxadc_pending); in wm831x_auxadc_read_irq()
51 ena = !wm831x->auxadc_active; in wm831x_auxadc_read_irq()
[all …]

12345678910>>...45