/drivers/net/wireless/broadcom/b43/ |
D | phy_lcn.c | 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() 75 b43_radio_maskset(dev, 0x05e, ~0xf, 0x8); in b43_radio_2064_channel_setup() 76 b43_radio_maskset(dev, 0x05e, ~0xf0, 0x80); in b43_radio_2064_channel_setup() [all …]
|
D | wa.c | 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() 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() 30 b43_phy_write(dev, 0x0024, 0x4680); in b43_wa_initgains() 31 b43_phy_write(dev, 0x0020, 0x0003); in b43_wa_initgains() 32 b43_phy_write(dev, 0x001D, 0x0F40); in b43_wa_initgains() 33 b43_phy_write(dev, 0x001F, 0x1C00); in b43_wa_initgains() [all …]
|
D | phy_n.c | 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() 102 static u8 b43_nphy_get_rx_core_state(struct b43_wldev *dev) in b43_nphy_get_rx_core_state() argument 104 return (b43_phy_read(dev, B43_NPHY_RFSEQCA) & B43_NPHY_RFSEQCA_RXEN) >> in b43_nphy_get_rx_core_state() 113 static void b43_nphy_force_rf_sequence(struct b43_wldev *dev, in b43_nphy_force_rf_sequence() argument 125 u16 seq_mode = b43_phy_read(dev, B43_NPHY_RFSEQMODE); in b43_nphy_force_rf_sequence() 129 b43_phy_set(dev, B43_NPHY_RFSEQMODE, in b43_nphy_force_rf_sequence() 131 b43_phy_set(dev, B43_NPHY_RFSEQTR, trigger[seq]); in b43_nphy_force_rf_sequence() [all …]
|
D | phy_g.c | 54 static void b43_calc_nrssi_threshold(struct b43_wldev *dev); 68 static void generate_rfatt_list(struct b43_wldev *dev, in generate_rfatt_list() argument 71 struct b43_phy *phy = &dev->phy; in generate_rfatt_list() 111 if (!b43_has_hardware_pctl(dev)) { in generate_rfatt_list() 134 static void generate_bbatt_list(struct b43_wldev *dev, in generate_bbatt_list() argument 155 static void b43_shm_clear_tssi(struct b43_wldev *dev) in b43_shm_clear_tssi() argument 157 b43_shm_write16(dev, B43_SHM_SHARED, 0x0058, 0x7F7F); in b43_shm_clear_tssi() 158 b43_shm_write16(dev, B43_SHM_SHARED, 0x005a, 0x7F7F); in b43_shm_clear_tssi() 159 b43_shm_write16(dev, B43_SHM_SHARED, 0x0070, 0x7F7F); in b43_shm_clear_tssi() 160 b43_shm_write16(dev, B43_SHM_SHARED, 0x0072, 0x7F7F); in b43_shm_clear_tssi() [all …]
|
D | phy_common.c | 28 int b43_phy_allocate(struct b43_wldev *dev) in b43_phy_allocate() argument 30 struct b43_phy *phy = &(dev->phy); in b43_phy_allocate() 70 err = phy->ops->allocate(dev); in b43_phy_allocate() 77 void b43_phy_free(struct b43_wldev *dev) in b43_phy_free() argument 79 dev->phy.ops->free(dev); in b43_phy_free() 80 dev->phy.ops = NULL; in b43_phy_free() 83 int b43_phy_init(struct b43_wldev *dev) in b43_phy_init() argument 85 struct b43_phy *phy = &dev->phy; in b43_phy_init() 93 phy->chandef = &dev->wl->hw->conf.chandef; in b43_phy_init() 97 phy->ops->switch_analog(dev, true); in b43_phy_init() [all …]
|
/drivers/net/wireless/broadcom/b43legacy/ |
D | phy.c | 70 static void b43legacy_phy_initg(struct b43legacy_wldev *dev); 74 void b43legacy_phy_lock(struct b43legacy_wldev *dev) in b43legacy_phy_lock() argument 77 B43legacy_WARN_ON(dev->phy.phy_locked); in b43legacy_phy_lock() 78 dev->phy.phy_locked = 1; in b43legacy_phy_lock() 81 if (dev->dev->id.revision < 3) { in b43legacy_phy_lock() 82 b43legacy_mac_suspend(dev); in b43legacy_phy_lock() 84 if (!b43legacy_is_mode(dev->wl, NL80211_IFTYPE_AP)) in b43legacy_phy_lock() 85 b43legacy_power_saving_ctl_bits(dev, -1, 1); in b43legacy_phy_lock() 89 void b43legacy_phy_unlock(struct b43legacy_wldev *dev) in b43legacy_phy_unlock() argument 92 B43legacy_WARN_ON(!dev->phy.phy_locked); in b43legacy_phy_unlock() [all …]
|
D | radio.c | 77 void b43legacy_radio_lock(struct b43legacy_wldev *dev) in b43legacy_radio_lock() argument 81 status = b43legacy_read32(dev, B43legacy_MMIO_MACCTL); in b43legacy_radio_lock() 84 b43legacy_write32(dev, B43legacy_MMIO_MACCTL, status); in b43legacy_radio_lock() 88 void b43legacy_radio_unlock(struct b43legacy_wldev *dev) in b43legacy_radio_unlock() argument 92 b43legacy_read16(dev, B43legacy_MMIO_PHY_VER); /* dummy read */ in b43legacy_radio_unlock() 93 status = b43legacy_read32(dev, B43legacy_MMIO_MACCTL); in b43legacy_radio_unlock() 96 b43legacy_write32(dev, B43legacy_MMIO_MACCTL, status); in b43legacy_radio_unlock() 99 u16 b43legacy_radio_read16(struct b43legacy_wldev *dev, u16 offset) in b43legacy_radio_read16() argument 101 struct b43legacy_phy *phy = &dev->phy; in b43legacy_radio_read16() 122 b43legacy_write16(dev, B43legacy_MMIO_RADIO_CONTROL, offset); in b43legacy_radio_read16() [all …]
|
/drivers/i2c/busses/ |
D | i2c-designware-master.c | 26 static void i2c_dw_configure_fifo_master(struct dw_i2c_dev *dev) in i2c_dw_configure_fifo_master() argument 29 regmap_write(dev->map, DW_IC_TX_TL, dev->tx_fifo_depth / 2); in i2c_dw_configure_fifo_master() 30 regmap_write(dev->map, DW_IC_RX_TL, 0); in i2c_dw_configure_fifo_master() 33 regmap_write(dev->map, DW_IC_CON, dev->master_cfg); in i2c_dw_configure_fifo_master() 36 static int i2c_dw_set_timings_master(struct dw_i2c_dev *dev) in i2c_dw_set_timings_master() argument 41 struct i2c_timings *t = &dev->timings; in i2c_dw_set_timings_master() 45 ret = i2c_dw_acquire_lock(dev); in i2c_dw_set_timings_master() 49 ret = regmap_read(dev->map, DW_IC_COMP_PARAM_1, &comp_param1); in i2c_dw_set_timings_master() 50 i2c_dw_release_lock(dev); in i2c_dw_set_timings_master() 59 if (!dev->ss_hcnt || !dev->ss_lcnt) { in i2c_dw_set_timings_master() [all …]
|
D | i2c-at91-master.c | 34 void at91_init_twi_bus_master(struct at91_twi_dev *dev) in at91_init_twi_bus_master() argument 36 struct at91_twi_pdata *pdata = dev->pdata; in at91_init_twi_bus_master() 40 if (dev->fifo_size) in at91_init_twi_bus_master() 41 at91_twi_write(dev, AT91_TWI_CR, AT91_TWI_FIFOEN); in at91_init_twi_bus_master() 42 at91_twi_write(dev, AT91_TWI_CR, AT91_TWI_MSEN); in at91_init_twi_bus_master() 43 at91_twi_write(dev, AT91_TWI_CR, AT91_TWI_SVDIS); in at91_init_twi_bus_master() 44 at91_twi_write(dev, AT91_TWI_CWGR, dev->twi_cwgr_reg); in at91_init_twi_bus_master() 47 if (pdata->has_dig_filtr && dev->enable_dig_filt) in at91_init_twi_bus_master() 51 if (pdata->has_adv_dig_filtr && dev->enable_dig_filt) in at91_init_twi_bus_master() 53 (AT91_TWI_FILTR_THRES(dev->filter_width) & in at91_init_twi_bus_master() [all …]
|
D | i2c-davinci.c | 121 struct device *dev; member 169 static void i2c_davinci_calc_clk_dividers(struct davinci_i2c_dev *dev) in i2c_davinci_calc_clk_dividers() argument 171 struct davinci_i2c_platform_data *pdata = dev->pdata; in i2c_davinci_calc_clk_dividers() 177 u32 input_clock = clk_get_rate(dev->clk); in i2c_davinci_calc_clk_dividers() 178 struct device_node *of_node = dev->dev->of_node; in i2c_davinci_calc_clk_dividers() 244 davinci_i2c_write_reg(dev, DAVINCI_I2C_PSC_REG, psc); in i2c_davinci_calc_clk_dividers() 245 davinci_i2c_write_reg(dev, DAVINCI_I2C_CLKH_REG, clkh); in i2c_davinci_calc_clk_dividers() 246 davinci_i2c_write_reg(dev, DAVINCI_I2C_CLKL_REG, clkl); in i2c_davinci_calc_clk_dividers() 248 dev_dbg(dev->dev, "input_clock = %d, CLK = %d\n", input_clock, clk); in i2c_davinci_calc_clk_dividers() 256 static int i2c_davinci_init(struct davinci_i2c_dev *dev) in i2c_davinci_init() argument [all …]
|
/drivers/media/rc/ |
D | ene_ir.c | 35 static void ene_set_reg_addr(struct ene_device *dev, u16 reg) in ene_set_reg_addr() argument 37 outb(reg >> 8, dev->hw_io + ENE_ADDR_HI); in ene_set_reg_addr() 38 outb(reg & 0xFF, dev->hw_io + ENE_ADDR_LO); in ene_set_reg_addr() 42 static u8 ene_read_reg(struct ene_device *dev, u16 reg) in ene_read_reg() argument 45 ene_set_reg_addr(dev, reg); in ene_read_reg() 46 retval = inb(dev->hw_io + ENE_IO); in ene_read_reg() 52 static void ene_write_reg(struct ene_device *dev, u16 reg, u8 value) in ene_write_reg() argument 55 ene_set_reg_addr(dev, reg); in ene_write_reg() 56 outb(value, dev->hw_io + ENE_IO); in ene_write_reg() 60 static void ene_set_reg_mask(struct ene_device *dev, u16 reg, u8 mask) in ene_set_reg_mask() argument [all …]
|
/drivers/base/ |
D | dd.c | 77 struct device *dev; in deferred_probe_work_func() local 94 typeof(*dev->p), deferred_probe); in deferred_probe_work_func() 95 dev = private->device; in deferred_probe_work_func() 98 get_device(dev); in deferred_probe_work_func() 100 kfree(dev->p->deferred_probe_reason); in deferred_probe_work_func() 101 dev->p->deferred_probe_reason = NULL; in deferred_probe_work_func() 115 device_pm_move_to_tail(dev); in deferred_probe_work_func() 117 dev_dbg(dev, "Retrying from deferred list\n"); in deferred_probe_work_func() 118 bus_probe_device(dev); in deferred_probe_work_func() 121 put_device(dev); in deferred_probe_work_func() [all …]
|
/drivers/char/pcmcia/ |
D | cm4000_cs.c | 46 #define reader_to_dev(x) (&x->p_dev->dev) 145 #define ZERO_DEV(dev) \ argument 146 memset(&dev->atr_csum,0, \ 204 #define ATRLENCK(dev,pos) \ argument 205 if (pos>=dev->atr_len || pos>=MAX_ATR) \ 319 static int parse_atr(struct cm4000_dev *dev) in parse_atr() argument 325 DEBUGP(3, dev, "-> parse_atr: dev->atr_len = %i\n", dev->atr_len); in parse_atr() 327 if (dev->atr_len < 3) { in parse_atr() 328 DEBUGP(5, dev, "parse_atr: atr_len < 3\n"); in parse_atr() 332 if (dev->atr[0] == 0x3f) in parse_atr() [all …]
|
/drivers/base/power/ |
D | runtime.c | 21 static pm_callback_t __rpm_get_callback(struct device *dev, size_t cb_offset) in __rpm_get_callback() argument 26 if (dev->pm_domain) in __rpm_get_callback() 27 ops = &dev->pm_domain->ops; in __rpm_get_callback() 28 else if (dev->type && dev->type->pm) in __rpm_get_callback() 29 ops = dev->type->pm; in __rpm_get_callback() 30 else if (dev->class && dev->class->pm) in __rpm_get_callback() 31 ops = dev->class->pm; in __rpm_get_callback() 32 else if (dev->bus && dev->bus->pm) in __rpm_get_callback() 33 ops = dev->bus->pm; in __rpm_get_callback() 42 if (!cb && dev->driver && dev->driver->pm) in __rpm_get_callback() [all …]
|
/drivers/media/usb/cx231xx/ |
D | cx231xx-avcore.c | 46 static int verve_write_byte(struct cx231xx *dev, u8 saddr, u8 data) in verve_write_byte() argument 48 return cx231xx_write_i2c_data(dev, VERVE_I2C_ADDRESS, in verve_write_byte() 52 static int verve_read_byte(struct cx231xx *dev, u8 saddr, u8 *data) in verve_read_byte() argument 57 status = cx231xx_read_i2c_data(dev, VERVE_I2C_ADDRESS, in verve_read_byte() 62 void initGPIO(struct cx231xx *dev) in initGPIO() argument 70 cx231xx_send_gpio_cmd(dev, _gpio_direction, (u8 *)&value, 4, 0, 0); in initGPIO() 72 verve_read_byte(dev, 0x07, &val); in initGPIO() 73 dev_dbg(dev->dev, "verve_read_byte address0x07=0x%x\n", val); in initGPIO() 74 verve_write_byte(dev, 0x07, 0xF4); in initGPIO() 75 verve_read_byte(dev, 0x07, &val); in initGPIO() [all …]
|
/drivers/net/wireless/mediatek/mt7601u/ |
D | phy.c | 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 23 if (WARN_ON(!test_bit(MT7601U_STATE_WLAN_RUNNING, &dev->state)) || in mt7601u_rf_wr() 26 if (test_bit(MT7601U_STATE_REMOVED, &dev->state)) in mt7601u_rf_wr() 29 mutex_lock(&dev->reg_atomic_mutex); in mt7601u_rf_wr() 31 if (!mt76_poll(dev, MT_RF_CSR_CFG, MT_RF_CSR_CFG_KICK, 0, 100)) { in mt7601u_rf_wr() 36 mt7601u_wr(dev, MT_RF_CSR_CFG, in mt7601u_rf_wr() 42 trace_rf_write(dev, bank, offset, value); in mt7601u_rf_wr() 44 mutex_unlock(&dev->reg_atomic_mutex); in mt7601u_rf_wr() 47 dev_err(dev->dev, "Error: RF write %02hhx:%02hhx failed:%d!!\n", in mt7601u_rf_wr() [all …]
|
/drivers/net/ethernet/ibm/emac/ |
D | core.c | 123 static inline void emac_report_timeout_error(struct emac_instance *dev, in emac_report_timeout_error() argument 126 if (emac_has_feature(dev, EMAC_FTR_440GX_PHY_CLK_FIX | in emac_report_timeout_error() 129 DBG(dev, "%s" NL, error); in emac_report_timeout_error() 131 printk(KERN_ERR "%pOF: %s\n", dev->ofdev->dev.of_node, error); in emac_report_timeout_error() 138 static inline void emac_rx_clk_tx(struct emac_instance *dev) in emac_rx_clk_tx() argument 141 if (emac_has_feature(dev, EMAC_FTR_440EP_PHY_CLK_FIX)) in emac_rx_clk_tx() 143 0, SDR0_MFR_ECS >> dev->cell_index); in emac_rx_clk_tx() 147 static inline void emac_rx_clk_default(struct emac_instance *dev) in emac_rx_clk_default() argument 150 if (emac_has_feature(dev, EMAC_FTR_440EP_PHY_CLK_FIX)) in emac_rx_clk_default() 152 SDR0_MFR_ECS >> dev->cell_index, 0); in emac_rx_clk_default() [all …]
|
/drivers/media/test-drivers/vivid/ |
D | vivid-kthread-cap.c | 44 static inline v4l2_std_id vivid_get_std_cap(const struct vivid_dev *dev) in vivid_get_std_cap() argument 46 if (vivid_is_sdtv_cap(dev)) in vivid_get_std_cap() 47 return dev->std_cap[dev->input]; in vivid_get_std_cap() 51 static void copy_pix(struct vivid_dev *dev, int win_y, int win_x, in copy_pix() argument 55 int left = dev->overlay_out_left; in copy_pix() 56 int top = dev->overlay_out_top; in copy_pix() 63 if (dev->bitmap_out) { in copy_pix() 64 const u8 *p = dev->bitmap_out; in copy_pix() 65 unsigned stride = (dev->compose_out.width + 7) / 8; in copy_pix() 67 win_x -= dev->compose_out.left; in copy_pix() [all …]
|
/drivers/misc/mei/ |
D | init.c | 82 void mei_cancel_work(struct mei_device *dev) in mei_cancel_work() argument 84 cancel_work_sync(&dev->reset_work); in mei_cancel_work() 85 cancel_work_sync(&dev->bus_rescan_work); in mei_cancel_work() 87 cancel_delayed_work_sync(&dev->timer_work); in mei_cancel_work() 98 int mei_reset(struct mei_device *dev) in mei_reset() argument 100 enum mei_dev_state state = dev->dev_state; in mei_reset() 110 mei_fw_status_str(dev, fw_sts_str, MEI_FW_STATUS_STR_SZ); in mei_reset() 111 dev_warn(dev->dev, "unexpected reset: dev_state = %s fw status = %s\n", in mei_reset() 115 mei_clear_interrupts(dev); in mei_reset() 122 mei_hbm_idle(dev); in mei_reset() [all …]
|
D | hbm.c | 95 static inline int mei_hbm_write_message(struct mei_device *dev, in mei_hbm_write_message() argument 99 return mei_write_message(dev, hdr, sizeof(*hdr), data, hdr->length); in mei_hbm_write_message() 107 void mei_hbm_idle(struct mei_device *dev) in mei_hbm_idle() argument 109 dev->init_clients_timer = 0; in mei_hbm_idle() 110 dev->hbm_state = MEI_HBM_IDLE; in mei_hbm_idle() 118 void mei_hbm_reset(struct mei_device *dev) in mei_hbm_reset() argument 120 mei_me_cl_rm_all(dev); in mei_hbm_reset() 122 mei_hbm_idle(dev); in mei_hbm_reset() 170 static inline int mei_hbm_cl_write(struct mei_device *dev, struct mei_cl *cl, in mei_hbm_cl_write() argument 178 return mei_hbm_write_message(dev, &mei_hdr, buf); in mei_hbm_cl_write() [all …]
|
D | hw-me.c | 58 static inline u32 mei_me_mecbrw_read(const struct mei_device *dev) in mei_me_mecbrw_read() argument 60 return mei_me_reg_read(to_me_hw(dev), ME_CB_RW); in mei_me_mecbrw_read() 69 static inline void mei_me_hcbww_write(struct mei_device *dev, u32 data) in mei_me_hcbww_write() argument 71 mei_me_reg_write(to_me_hw(dev), H_CB_WW, data); in mei_me_hcbww_write() 81 static inline u32 mei_me_mecsr_read(const struct mei_device *dev) in mei_me_mecsr_read() argument 85 reg = mei_me_reg_read(to_me_hw(dev), ME_CSR_HA); in mei_me_mecsr_read() 86 trace_mei_reg_read(dev->dev, "ME_CSR_HA", ME_CSR_HA, reg); in mei_me_mecsr_read() 98 static inline u32 mei_hcsr_read(const struct mei_device *dev) in mei_hcsr_read() argument 102 reg = mei_me_reg_read(to_me_hw(dev), H_CSR); in mei_hcsr_read() 103 trace_mei_reg_read(dev->dev, "H_CSR", H_CSR, reg); in mei_hcsr_read() [all …]
|
/drivers/usb/misc/ |
D | adutux.c | 105 static inline void adu_debug_data(struct device *dev, const char *function, in adu_debug_data() argument 108 dev_dbg(dev, "%s - length = %d, data = %*ph\n", in adu_debug_data() 116 static void adu_abort_transfers(struct adu_device *dev) in adu_abort_transfers() argument 120 if (dev->disconnected) in adu_abort_transfers() 126 spin_lock_irqsave(&dev->buflock, flags); in adu_abort_transfers() 127 if (!dev->read_urb_finished) { in adu_abort_transfers() 128 spin_unlock_irqrestore(&dev->buflock, flags); in adu_abort_transfers() 129 usb_kill_urb(dev->interrupt_in_urb); in adu_abort_transfers() 131 spin_unlock_irqrestore(&dev->buflock, flags); in adu_abort_transfers() 133 spin_lock_irqsave(&dev->buflock, flags); in adu_abort_transfers() [all …]
|
/drivers/mtd/nand/raw/ |
D | r852.c | 34 static inline uint8_t r852_read_reg(struct r852_device *dev, int address) in r852_read_reg() argument 36 uint8_t reg = readb(dev->mmio + address); in r852_read_reg() 41 static inline void r852_write_reg(struct r852_device *dev, in r852_write_reg() argument 44 writeb(value, dev->mmio + address); in r852_write_reg() 49 static inline uint32_t r852_read_reg_dword(struct r852_device *dev, int address) in r852_read_reg_dword() argument 51 uint32_t reg = le32_to_cpu(readl(dev->mmio + address)); in r852_read_reg_dword() 56 static inline void r852_write_reg_dword(struct r852_device *dev, in r852_write_reg_dword() argument 59 writel(cpu_to_le32(value), dev->mmio + address); in r852_write_reg_dword() 71 static void r852_dma_test(struct r852_device *dev) in r852_dma_test() argument 73 dev->dma_usable = (r852_read_reg(dev, R852_DMA_CAP) & in r852_dma_test() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | main.c | 181 static int fw_initializing(struct mlx5_core_dev *dev) in fw_initializing() argument 183 return ioread32be(&dev->iseg->initializing) >> 31; in fw_initializing() 186 static int wait_fw_init(struct mlx5_core_dev *dev, u32 max_wait_mili, in wait_fw_init() argument 195 while (fw_initializing(dev)) { in wait_fw_init() 201 mlx5_core_warn(dev, "Waiting for FW initialization, timeout abort in %ds\n", in wait_fw_init() 211 static void mlx5_set_driver_version(struct mlx5_core_dev *dev) in mlx5_set_driver_version() argument 219 if (!MLX5_CAP_GEN(dev, driver_version)) in mlx5_set_driver_version() 245 mlx5_cmd_exec_in(dev, set_driver_version, in); in mlx5_set_driver_version() 254 dev_warn(&pdev->dev, "Warning: couldn't set 64-bit PCI DMA mask\n"); in set_dma_caps() 257 dev_err(&pdev->dev, "Can't set PCI DMA mask, aborting\n"); in set_dma_caps() [all …]
|
/drivers/scsi/aacraid/ |
D | src.c | 34 static int aac_src_get_sync_status(struct aac_dev *dev); 39 struct aac_dev *dev; in aac_src_intr_message() local 46 dev = ctx->dev; in aac_src_intr_message() 49 if (dev->msi_enabled) { in aac_src_intr_message() 52 bellbits = src_readl(dev, MUnit.ODR_MSI); in aac_src_intr_message() 60 bellbits = src_readl(dev, MUnit.ODR_R); in aac_src_intr_message() 63 src_writel(dev, MUnit.ODR_C, bellbits); in aac_src_intr_message() 64 src_readl(dev, MUnit.ODR_C); in aac_src_intr_message() 67 src_writel(dev, MUnit.ODR_C, bellbits); in aac_src_intr_message() 68 src_readl(dev, MUnit.ODR_C); in aac_src_intr_message() [all …]
|