Home
last modified time | relevance | path

Searched +full:0 +full:- +full:dev (Results 1 – 25 of 1114) sorted by relevance

12345678910>>...45

/openbmc/linux/drivers/net/wireless/broadcom/b43legacy/
H A Dradio.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>,
14 driver Copyright(c) 2003 - 2004 Intel Corporation.
30 0x0002, 0x0003, 0x0001, 0x000F,
31 0x0006, 0x0007, 0x0005, 0x000F,
32 0x000A, 0x000B, 0x0009, 0x000F,
33 0x000E, 0x000F, 0x000D, 0x000F,
41 u16 flipped = 0x0000; in flip_4bit()
43 B43legacy_BUG_ON(!((value & ~0x000F) == 0x0000)); in flip_4bit()
45 flipped |= (value & 0x0001) << 3; in flip_4bit()
[all …]
H A Dphy.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>,
14 driver Copyright(c) 2003 - 2004 Intel Corporation.
33 0x4D, 0x4C, 0x4B, 0x4A,
34 0x4A, 0x49, 0x48, 0x47,
35 0x47, 0x46, 0x45, 0x45,
36 0x44, 0x43, 0x42, 0x42,
37 0x41, 0x40, 0x3F, 0x3E,
38 0x3D, 0x3C, 0x3B, 0x3A,
39 0x39, 0x38, 0x37, 0x36,
[all …]
/openbmc/linux/drivers/net/wireless/broadcom/b43/
H A Dphy_g.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>,
8 Copyright (c) 2005-2007 Stefano Brivio <stefano.brivio@polimi.it>
9 Copyright (c) 2005-2008 Michael Buesch <m@bues.ch>
41 5, -7, -20, -20,
42 -20, -20, -20, -20,
43 -20, -20, -20, -20,
54 static void b43_calc_nrssi_threshold(struct b43_wldev *dev);
65 return b43_radio_channel_codes_bg[channel - 1]; in channel2freq_bg()
68 static void generate_rfatt_list(struct b43_wldev *dev, in generate_rfatt_list() argument
[all …]
H A Dwa.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 Copyright (c) 2005-2007 Stefano Brivio <stefano.brivio@polimi.it>
9 Copyright (c) 2005-2007 Michael Buesch <m@bues.ch>
20 void b43_wa_initgains(struct b43_wldev *dev) in b43_wa_initgains() argument
22 struct b43_phy *phy = &dev->phy; in b43_wa_initgains()
24 b43_phy_write(dev, B43_PHY_LNAHPFCTL, 0x1FF9); in b43_wa_initgains()
25 b43_phy_mask(dev, B43_PHY_LPFGAINCTL, 0xFF0F); in b43_wa_initgains()
26 if (phy->rev <= 2) in b43_wa_initgains()
27 b43_ofdmtab_write16(dev, B43_OFDMTAB_LPFGAIN, 0, 0x1FBF); in b43_wa_initgains()
28 b43_radio_write16(dev, 0x0002, 0x1FBF); in b43_wa_initgains()
[all …]
H A Dphy_n.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 Copyright (c) 2010-2011 Rafał Miłecki <zajec5@gmail.com>
64 N_RF_CTL_OVER_CMD_RXRF_PU = 0,
72 N_INTC_OVERRIDE_OFF = 0,
80 N_RSSI_W1 = 0,
90 N_RAIL_I = 0,
94 static inline bool b43_nphy_ipa(struct b43_wldev *dev) in b43_nphy_ipa() argument
96 enum nl80211_band band = b43_current_band(dev->wl); in b43_nphy_ipa()
97 return ((dev->phy.n->ipa2g_on && band == NL80211_BAND_2GHZ) || in b43_nphy_ipa()
98 (dev->phy.n->ipa5g_on && band == NL80211_BAND_5GHZ)); in b43_nphy_ipa()
[all …]
H A Dphy_lcn.c4 IEEE 802.11n LCN-PHY support
21 Boston, MA 02110-1301, USA.
62 static void b43_radio_2064_channel_setup(struct b43_wldev *dev) in b43_radio_2064_channel_setup() argument
66 b43_radio_set(dev, 0x09d, 0x4); in b43_radio_2064_channel_setup()
67 b43_radio_write(dev, 0x09e, 0xf); in b43_radio_2064_channel_setup()
70 b43_radio_write(dev, 0x02a, 0xb); in b43_radio_2064_channel_setup()
71 b43_radio_maskset(dev, 0x030, ~0x3, 0xa); in b43_radio_2064_channel_setup()
72 b43_radio_maskset(dev, 0x091, ~0x3, 0); in b43_radio_2064_channel_setup()
73 b43_radio_maskset(dev, 0x038, ~0xf, 0x7); in b43_radio_2064_channel_setup()
74 b43_radio_maskset(dev, 0x030, ~0xc, 0x8); in b43_radio_2064_channel_setup()
[all …]
H A Dphy_ht.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 IEEE 802.11n HT-PHY support
22 HT_RSSI_W1 = 0,
35 static void b43_radio_2059_channel_setup(struct b43_wldev *dev, in b43_radio_2059_channel_setup() argument
42 b43_radio_write(dev, 0x16, e->radio_syn16); in b43_radio_2059_channel_setup()
43 b43_radio_write(dev, 0x17, e->radio_syn17); in b43_radio_2059_channel_setup()
44 b43_radio_write(dev, 0x22, e->radio_syn22); in b43_radio_2059_channel_setup()
45 b43_radio_write(dev, 0x25, e->radio_syn25); in b43_radio_2059_channel_setup()
46 b43_radio_write(dev, 0x27, e->radio_syn27); in b43_radio_2059_channel_setup()
47 b43_radio_write(dev, 0x28, e->radio_syn28); in b43_radio_2059_channel_setup()
[all …]
H A Dphy_lp.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 IEEE 802.11a/g LP-PHY driver
7 Copyright (c) 2008-2009 Michael Buesch <m@bues.ch>
35 static unsigned int b43_lpphy_op_get_default_chan(struct b43_wldev *dev) in b43_lpphy_op_get_default_chan() argument
37 if (b43_current_band(dev->wl) == NL80211_BAND_2GHZ) in b43_lpphy_op_get_default_chan()
42 static int b43_lpphy_op_allocate(struct b43_wldev *dev) in b43_lpphy_op_allocate() argument
48 return -ENOMEM; in b43_lpphy_op_allocate()
49 dev->phy.lp = lpphy; in b43_lpphy_op_allocate()
51 return 0; in b43_lpphy_op_allocate()
54 static void b43_lpphy_op_prepare_structs(struct b43_wldev *dev) in b43_lpphy_op_prepare_structs() argument
[all …]
/openbmc/linux/drivers/net/wireless/mediatek/mt7601u/
H A Dphy.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * (c) Copyright 2002-2010, Ralink Technology, Inc.
16 static void mt7601u_agc_reset(struct mt7601u_dev *dev);
19 mt7601u_rf_wr(struct mt7601u_dev *dev, u8 bank, u8 offset, u8 value) in mt7601u_rf_wr() argument
21 int ret = 0; in mt7601u_rf_wr()
23 if (WARN_ON(!test_bit(MT7601U_STATE_WLAN_RUNNING, &dev->state)) || in mt7601u_rf_wr()
25 return -EINVAL; in mt7601u_rf_wr()
26 if (test_bit(MT7601U_STATE_REMOVED, &dev->state)) in mt7601u_rf_wr()
27 return 0; in mt7601u_rf_wr()
29 mutex_lock(&dev->reg_atomic_mutex); in mt7601u_rf_wr()
[all …]
/openbmc/linux/drivers/media/dvb-frontends/
H A Drtl2832_sdr.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * GNU Radio plugin "gr-kernel" for device usage will be on:
8 * https://git.linuxtv.org/anttip/gr-kernel.git
14 #include <media/v4l2-device.h>
15 #include <media/v4l2-ioctl.h>
16 #include <media/v4l2-ctrls.h>
17 #include <media/v4l2-event.h>
18 #include <media/videobuf2-v4l2.h>
19 #include <media/videobuf2-vmalloc.h>
32 ((sd) && (sd)->ops && (sd)->ops->o && (sd)->ops->o->f)
[all …]
H A Dm88ds3103.c1 // SPDX-License-Identifier: GPL-2.0-or-later
13 static int m88ds3103_update_bits(struct m88ds3103_dev *dev, in m88ds3103_update_bits() argument
20 if (mask != 0xff) { in m88ds3103_update_bits()
21 ret = regmap_bulk_read(dev->regmap, reg, &tmp, 1); in m88ds3103_update_bits()
30 return regmap_bulk_write(dev->regmap, reg, &val, 1); in m88ds3103_update_bits()
34 static int m88ds3103_wr_reg_val_tab(struct m88ds3103_dev *dev, in m88ds3103_wr_reg_val_tab() argument
37 struct i2c_client *client = dev->client; in m88ds3103_wr_reg_val_tab()
41 dev_dbg(&client->dev, "tab_len=%d\n", tab_len); in m88ds3103_wr_reg_val_tab()
44 ret = -EINVAL; in m88ds3103_wr_reg_val_tab()
48 for (i = 0, j = 0; i < tab_len; i++, j++) { in m88ds3103_wr_reg_val_tab()
[all …]
/openbmc/linux/drivers/media/usb/cx231xx/
H A Dcx231xx-avcore.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 cx231xx_avcore.c - driver for Conexant Cx23100/101/102
24 #include <media/v4l2-common.h>
25 #include <media/v4l2-ioctl.h>
27 #include "cx231xx-dif.h"
29 #define TUNER_MODE_FM_RADIO 0
31 -: BLOCK ARRANGEMENT :-
32 I2S block ----------------------|
35 Analog Front End --> Direct IF -|-> Cx25840 --> Audio
38 |-> Cx25840 --> Video
[all …]
/openbmc/linux/drivers/scsi/
H A Datp870u.c1 // SPDX-License-Identifier: GPL-2.0-only
32 #include <linux/dma-mapping.h>
44 static void send_s870(struct atp_unit *dev,unsigned char c);
45 static void atp_is(struct atp_unit *dev, unsigned char c, bool wide_chip,
50 outb(val, atp->baseport + reg); in atp_writeb_base()
55 outw(val, atp->baseport + reg); in atp_writew_base()
60 outb(val, atp->ioport[channel] + reg); in atp_writeb_io()
65 outw(val, atp->ioport[channel] + reg); in atp_writew_io()
70 outb(val, atp->pciport[channel] + reg); in atp_writeb_pci()
75 outl(val, atp->pciport[channel] + reg); in atp_writel_pci()
[all …]
/openbmc/linux/Documentation/admin-guide/
H A Ddevices.txt1 0 Unnamed devices (e.g. non-device mounts)
2 0 = reserved as null device number
6 1 = /dev/mem Physical memory access
7 2 = /dev/kmem OBSOLETE - replaced by /proc/kcore
8 3 = /dev/null Null device
9 4 = /dev/port I/O port access
10 5 = /dev/zero Null byte source
11 6 = /dev/core OBSOLETE - replaced by /proc/kcore
12 7 = /dev/full Returns ENOSPC on write
13 8 = /dev/random Nondeterministic random number gen.
[all …]
/openbmc/linux/drivers/media/test-drivers/vivid/
H A Dvivid-core.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * vivid-core.c - A Virtual Video Test Driver, core initialization
19 #include <linux/v4l2-dv-timings.h>
20 #include <media/videobuf2-vmalloc.h>
21 #include <media/videobuf2-dma-contig.h>
22 #include <media/v4l2-dv-timings.h>
23 #include <media/v4l2-ioctl.h>
24 #include <media/v4l2-fh.h>
25 #include <media/v4l2-event.h>
27 #include "vivid-core.h"
[all …]
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt76x2/
H A Dphy.c1 // SPDX-License-Identifier: ISC
13 mt76x2_adjust_high_lna_gain(struct mt76x02_dev *dev, int reg, s8 offset) in mt76x2_adjust_high_lna_gain() argument
18 mt76_rr(dev, MT_BBP(AGC, reg))); in mt76x2_adjust_high_lna_gain()
19 gain -= offset / 2; in mt76x2_adjust_high_lna_gain()
20 mt76_rmw_field(dev, MT_BBP(AGC, reg), MT_BBP_AGC_LNA_HIGH_GAIN, gain); in mt76x2_adjust_high_lna_gain()
24 mt76x2_adjust_agc_gain(struct mt76x02_dev *dev, int reg, s8 offset) in mt76x2_adjust_agc_gain() argument
28 gain = FIELD_GET(MT_BBP_AGC_GAIN, mt76_rr(dev, MT_BBP(AGC, reg))); in mt76x2_adjust_agc_gain()
30 mt76_rmw_field(dev, MT_BBP(AGC, reg), MT_BBP_AGC_GAIN, gain); in mt76x2_adjust_agc_gain()
33 void mt76x2_apply_gain_adj(struct mt76x02_dev *dev) in mt76x2_apply_gain_adj() argument
35 s8 *gain_adj = dev->cal.rx.high_gain; in mt76x2_apply_gain_adj()
[all …]
H A Dpci_init.c1 // SPDX-License-Identifier: ISC
13 mt76x2_mac_pbf_init(struct mt76x02_dev *dev) in mt76x2_mac_pbf_init() argument
23 mt76_set(dev, MT_PBF_SYS_CTRL, val); in mt76x2_mac_pbf_init()
24 mt76_clear(dev, MT_PBF_SYS_CTRL, val); in mt76x2_mac_pbf_init()
26 mt76_wr(dev, MT_PBF_TX_MAX_PCNT, 0xefef3f1f); in mt76x2_mac_pbf_init()
27 mt76_wr(dev, MT_PBF_RX_MAX_PCNT, 0xfebf); in mt76x2_mac_pbf_init()
31 mt76x2_fixup_xtal(struct mt76x02_dev *dev) in mt76x2_fixup_xtal() argument
34 s8 offset = 0; in mt76x2_fixup_xtal()
36 eep_val = mt76x02_eeprom_get(dev, MT_EE_XTAL_TRIM_2); in mt76x2_fixup_xtal()
38 offset = eep_val & 0x7f; in mt76x2_fixup_xtal()
[all …]
/openbmc/u-boot/fs/yaffs2/
H A Dyaffs_checkptrw.c2 * YAFFS: Yet Another Flash File System. A NAND-flash specific file system.
4 * Copyright (C) 2002-2011 Aleph One Ltd.
17 static int yaffs2_checkpt_space_ok(struct yaffs_dev *dev) in yaffs2_checkpt_space_ok() argument
19 int blocks_avail = dev->n_erased_blocks - dev->param.n_reserved_blocks; in yaffs2_checkpt_space_ok()
24 return (blocks_avail <= 0) ? 0 : 1; in yaffs2_checkpt_space_ok()
27 static int yaffs_checkpt_erase(struct yaffs_dev *dev) in yaffs_checkpt_erase() argument
31 if (!dev->param.erase_fn) in yaffs_checkpt_erase()
32 return 0; in yaffs_checkpt_erase()
35 dev->internal_start_block, dev->internal_end_block); in yaffs_checkpt_erase()
37 for (i = dev->internal_start_block; i <= dev->internal_end_block; i++) { in yaffs_checkpt_erase()
[all …]
/openbmc/linux/drivers/net/wireless/realtek/rtl818x/rtl8187/
H A Drtl8225.c1 // SPDX-License-Identifier: GPL-2.0-only
27 mutex_lock(&priv->io_mutex); in rtl818x_ioread8_idx()
28 usb_control_msg(priv->udev, usb_rcvctrlpipe(priv->udev, 0), in rtl818x_ioread8_idx()
30 (unsigned long)addr, idx & 0x03, in rtl818x_ioread8_idx()
31 &priv->io_dmabuf->bits8, sizeof(val), 500); in rtl818x_ioread8_idx()
33 val = priv->io_dmabuf->bits8; in rtl818x_ioread8_idx()
34 mutex_unlock(&priv->io_mutex); in rtl818x_ioread8_idx()
44 mutex_lock(&priv->io_mutex); in rtl818x_ioread16_idx()
45 usb_control_msg(priv->udev, usb_rcvctrlpipe(priv->udev, 0), in rtl818x_ioread16_idx()
47 (unsigned long)addr, idx & 0x03, in rtl818x_ioread16_idx()
[all …]
/openbmc/linux/drivers/net/wireless/mediatek/mt76/
H A Dmt792x_dma.c1 // SPDX-License-Identifier: ISC
13 struct mt792x_dev *dev = dev_instance; in mt792x_irq_handler() local
15 if (test_bit(MT76_REMOVED, &dev->mt76.phy.state)) in mt792x_irq_handler()
17 mt76_wr(dev, dev->irq_map->host_irq_enable, 0); in mt792x_irq_handler()
19 if (!test_bit(MT76_STATE_INITIALIZED, &dev->mphy.state)) in mt792x_irq_handler()
22 tasklet_schedule(&dev->mt76.irq_tasklet); in mt792x_irq_handler()
30 struct mt792x_dev *dev = (struct mt792x_dev *)data; in mt792x_irq_tasklet() local
31 const struct mt792x_irq_map *irq_map = dev->irq_map; in mt792x_irq_tasklet()
32 u32 intr, mask = 0; in mt792x_irq_tasklet()
34 mt76_wr(dev, irq_map->host_irq_enable, 0); in mt792x_irq_tasklet()
[all …]
/openbmc/linux/drivers/net/usb/
H A Dasix_devices.c1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Copyright (C) 2003-2006 David Hollis <dhollis@davehollis.com>
7 * Copyright (c) 2002-2003 TiVo Inc.
12 #define PHY_MODE_MARVELL 0x0000
13 #define MII_MARVELL_LED_CTRL 0x0018
14 #define MII_MARVELL_STATUS 0x001b
15 #define MII_MARVELL_CTRL 0x0014
17 #define MARVELL_LED_MANUAL 0x0019
19 #define MARVELL_STATUS_HWCFG 0x0004
21 #define MARVELL_CTRL_TXDELAY 0x0002
[all …]
/openbmc/linux/drivers/media/usb/hackrf/
H A Dhackrf.c1 // SPDX-License-Identifier: GPL-2.0-or-later
11 #include <media/v4l2-device.h>
12 #include <media/v4l2-ioctl.h>
13 #include <media/v4l2-ctrls.h>
14 #include <media/v4l2-event.h>
15 #include <media/videobuf2-v4l2.h>
16 #include <media/videobuf2-vmalloc.h>
19 * Used Avago MGA-81563 RF amplifier could be destroyed pretty easily with too
29 CMD_SET_TRANSCEIVER_MODE = 0x01,
30 CMD_SAMPLE_RATE_SET = 0x06,
[all …]
/openbmc/linux/drivers/media/usb/hdpvr/
H A Dhdpvr-control.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Hauppauge HD PVR USB driver - video 4 linux 2 interface
18 #include <media/v4l2-common.h>
23 int hdpvr_config_call(struct hdpvr_device *dev, uint value, u8 valbuf) in hdpvr_config_call() argument
26 char request_type = 0x38, snd_request = 0x01; in hdpvr_config_call()
28 mutex_lock(&dev->usbc_mutex); in hdpvr_config_call()
29 dev->usbc_buf[0] = valbuf; in hdpvr_config_call()
30 ret = usb_control_msg(dev->udev, in hdpvr_config_call()
31 usb_sndctrlpipe(dev->udev, 0), in hdpvr_config_call()
32 snd_request, 0x00 | request_type, in hdpvr_config_call()
[all …]
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7996/
H A Ddma.c1 // SPDX-License-Identifier: ISC
12 struct mt7996_dev *dev; in mt7996_poll_tx() local
14 dev = container_of(napi, struct mt7996_dev, mt76.tx_napi); in mt7996_poll_tx()
16 mt76_connac_tx_cleanup(&dev->mt76); in mt7996_poll_tx()
17 if (napi_complete_done(napi, 0)) in mt7996_poll_tx()
18 mt7996_irq_enable(dev, MT_INT_TX_DONE_MCU); in mt7996_poll_tx()
20 return 0; in mt7996_poll_tx()
23 static void mt7996_dma_config(struct mt7996_dev *dev) in mt7996_dma_config() argument
27 dev->q_wfdma_mask |= (1 << (q)); \ in mt7996_dma_config()
28 dev->q_int_mask[(q)] = int; \ in mt7996_dma_config()
[all …]
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7615/
H A Ddma.c1 // SPDX-License-Identifier: ISC
15 mt7622_init_tx_queues_multi(struct mt7615_dev *dev) in mt7622_init_tx_queues_multi() argument
26 for (i = 0; i < ARRAY_SIZE(wmm_queue_map); i++) { in mt7622_init_tx_queues_multi()
27 ret = mt76_init_tx_queue(&dev->mphy, i, wmm_queue_map[i], in mt7622_init_tx_queues_multi()
29 MT_TX_RING_BASE, 0); in mt7622_init_tx_queues_multi()
34 ret = mt76_init_tx_queue(&dev->mphy, MT_TXQ_PSD, MT7622_TXQ_MGMT, in mt7622_init_tx_queues_multi()
36 MT_TX_RING_BASE, 0); in mt7622_init_tx_queues_multi()
40 return mt76_init_mcu_queue(&dev->mt76, MT_MCUQ_WM, MT7622_TXQ_MCU, in mt7622_init_tx_queues_multi()
45 mt7615_init_tx_queues(struct mt7615_dev *dev) in mt7615_init_tx_queues() argument
49 ret = mt76_init_mcu_queue(&dev->mt76, MT_MCUQ_FWDL, MT7615_TXQ_FWDL, in mt7615_init_tx_queues()
[all …]

12345678910>>...45