/linux/drivers/net/wireless/broadcom/b43/ |
H A D | phy_lcn.c | 101 if (dev->phy.rev == 1) { in b43_radio_2064_channel_setup() 243 if (!(dev->dev->bus_sprom->boardflags_lo & B43_BFL_FEM)) in b43_phy_lcn_rev0_baseband_init() 246 if (dev->dev->bus_sprom->boardflags_lo & B43_BFL_FEM) { in b43_phy_lcn_rev0_baseband_init() 277 if (dev->dev->bus_sprom->board_rev >= 0x1204) in b43_phy_lcn_bu_tweaks() 338 b43_mac_suspend(dev); in b43_phy_lcn_sense_setup() 417 b43_mac_enable(dev); in b43_phy_lcn_sense_setup() 535 b43_mac_suspend(dev); in b43_phy_lcn_tx_pwr_ctl_init() 558 b43_mac_enable(dev); in b43_phy_lcn_tx_pwr_ctl_init() 589 struct bcma_drv_cc *cc = &dev->dev->bdev->bus->drv_cc; in b43_phy_lcn_set_channel_tweaks() 700 struct bcma_drv_cc *cc = &dev->dev->bdev->bus->drv_cc; in b43_phy_lcn_op_init() [all …]
|
H A D | wa.c | 302 struct ssb_sprom *sprom = dev->dev->bus_sprom; in b43_wa_boards_g() 305 if (dev->dev->board_vendor != SSB_BOARDVENDOR_BCM || in b43_wa_boards_g() 306 dev->dev->board_type != SSB_BOARD_BU4306 || in b43_wa_boards_g() 307 dev->dev->board_rev != 0x17) { in b43_wa_boards_g() 343 b43_wa_fft(dev); in b43_wa_all() 344 b43_wa_nft(dev); in b43_wa_all() 345 b43_wa_rt(dev); in b43_wa_all() 346 b43_wa_nst(dev); in b43_wa_all() 347 b43_wa_art(dev); in b43_wa_all() 359 b43_wa_nft(dev); in b43_wa_all() [all …]
|
H A D | phy_n.c | 513 if (dev->dev->core_rev == 16) in b43_nphy_classifier() 523 if (dev->dev->core_rev == 16) in b43_nphy_classifier() 4058 if (dev->dev->core_rev == 11 || dev->dev->core_rev == 12) { in b43_nphy_tx_power_ctl_setup() 4075 if (dev->dev->core_rev == 11 || dev->dev->core_rev == 12) in b43_nphy_tx_power_ctl_setup() 4159 if (dev->dev->core_rev == 11 || dev->dev->core_rev == 12) { in b43_nphy_tx_power_ctl_setup() 4180 if (dev->dev->core_rev == 11 || dev->dev->core_rev == 12) in b43_nphy_tx_power_ctl_setup() 5874 if (dev->dev->core_rev == 11 || dev->dev->core_rev == 12) { in b43_nphy_op_recalc_txpower() 5880 if (dev->dev->core_rev == 11 || dev->dev->core_rev == 12) in b43_nphy_op_recalc_txpower() 5946 switch (dev->dev->bus_type) { in b43_nphy_superswitch_init() 6206 switch (dev->dev->bus_type) { in b43_nphy_pmu_spur_avoid() [all …]
|
H A D | phy_g.c | 1599 b43_hf_write(dev, b43_hf_read(dev) in b43_phy_initb6() 2096 if ((dev->dev->chip_id == 0x4306 in b43_phy_initg() 2097 && dev->dev->chip_pkg == 2) || 0) { in b43_phy_initg() 2113 if (dev->dev->bus_sprom->country_code == in b43_gphy_channel_switch() 2144 struct b43_bus_dev *bdev = dev->dev; in default_radio_attenuation() 2151 if (dev->dev->board_rev < 0x43) { in default_radio_attenuation() 2154 } else if (dev->dev->board_rev < 0x51) { in default_radio_attenuation() 2387 pab0 = (s16) (dev->dev->bus_sprom->pa0b0); in b43_gphy_init_tssi2dbm_table() 2402 (s8) (dev->dev->bus_sprom->itssi_bg); in b43_gphy_init_tssi2dbm_table() 2843 } else if (dev->dev->bus_sprom-> in b43_gphy_op_adjust_txpower() [all …]
|
/linux/drivers/net/wireless/broadcom/b43legacy/ |
H A D | phy.c | 81 if (dev->dev->id.revision < 3) { in b43legacy_phy_lock() 96 if (dev->dev->id.revision < 3) { in b43legacy_phy_unlock() 145 (dev->dev->bus->boardinfo.type == 0x0416)) in b43legacy_phy_init_pctl() 775 if (dev->dev->bus->sprom.boardflags_lo & in b43legacy_phy_initb6() 1054 if (dev->dev->bus->sprom.boardflags_lo & in b43legacy_phy_initg() 1090 if (dev->dev->bus->chip_id == 0x4306 in b43legacy_phy_initg() 1091 && dev->dev->bus->chip_package == 2) { in b43legacy_phy_initg() 1817 max_pwr = dev->dev->bus->sprom.maxpwr_bg; in b43legacy_phy_xmitpower() 1819 if ((dev->dev->bus->sprom.boardflags_lo in b43legacy_phy_xmitpower() 1980 pab0 = (s16)(dev->dev->bus->sprom.pa0b0); in b43legacy_phy_init_tssi2dbm_table() [all …]
|
H A D | radio.c | 814 if (!(dev->dev->bus->sprom.boardflags_lo & in b43legacy_calc_nrssi_threshold() 844 !(dev->dev->bus->sprom.boardflags_lo & in b43legacy_calc_nrssi_threshold() 1537 !(dev->dev->bus->sprom.boardflags_lo in b43legacy_radio_init2050() 1948 dev->dev->bus->sprom.board_rev >= 30) in b43legacy_default_radio_attenuation() 1951 dev->dev->bus->boardinfo.type == 0x416) in b43legacy_default_radio_attenuation() 1958 dev->dev->bus->sprom.board_rev >= 30) in b43legacy_default_radio_attenuation() 1968 dev->dev->bus->sprom.board_rev >= 30) in b43legacy_default_radio_attenuation() 1971 dev->dev->bus->boardinfo.type == in b43legacy_default_radio_attenuation() 1974 else if (dev->dev->bus->chip_id == 0x4320) in b43legacy_default_radio_attenuation() 2001 dev->dev->bus->boardinfo.type == 0x421) { in b43legacy_default_radio_attenuation() [all …]
|
/linux/drivers/media/rc/ |
H A D | ene_ir.c | 183 dev->r_pointer = dev->w_pointer; in ene_rx_setup_hw_buffer() 202 dev->buffer_len = dev->extra_buf1_len + dev->extra_buf2_len + 8; in ene_rx_setup_hw_buffer() 223 if (dev->r_pointer > dev->buffer_len) in ene_rx_setup_hw_buffer() 266 dev->w_pointer, dev->r_pointer); in ene_rx_read_hw_pointer() 274 if (dev->r_pointer == dev->w_pointer) { in ene_rx_get_sample_reg() 279 if (dev->r_pointer == dev->w_pointer) { in ene_rx_get_sample_reg() 288 if (dev->r_pointer == dev->buffer_len) in ene_rx_get_sample_reg() 619 if (dev->tx_pos == dev->tx_len) { in ene_tx_sample() 652 dev->tx_reg = !dev->tx_reg; in ene_tx_sample() 792 dev->r_pointer = dev->w_pointer; in ene_isr() [all …]
|
/linux/net/nfc/ |
H A D | core.c | 39 device_lock(&dev->dev); in nfc_fw_download() 62 device_unlock(&dev->dev); in nfc_fw_download() 95 device_lock(&dev->dev); in nfc_dev_up() 128 device_unlock(&dev->dev); in nfc_dev_up() 143 device_lock(&dev->dev); in nfc_dev_down() 161 dev->ops->dev_down(dev); in nfc_dev_down() 208 device_lock(&dev->dev); in nfc_start_poll() 247 device_lock(&dev->dev); in nfc_stop_poll() 292 device_lock(&dev->dev); in nfc_dep_link_up() 1075 dev_set_name(&dev->dev, "nfc%d", dev->idx); in nfc_allocate_device() [all …]
|
/linux/drivers/i2c/busses/ |
H A D | i2c-designware-master.c | 66 if (!dev->ss_hcnt || !dev->ss_lcnt) { in i2c_dw_set_timings_master() 85 dev->ss_hcnt, dev->ss_lcnt); in i2c_dw_set_timings_master() 98 dev->fs_hcnt = dev->fp_hcnt; in i2c_dw_set_timings_master() 99 dev->fs_lcnt = dev->fp_lcnt; in i2c_dw_set_timings_master() 175 dev->hs_hcnt, dev->hs_lcnt); in i2c_dw_set_timings_master() 432 dev_err(dev->dev, in i2c_dw_xfer_msg() 875 dev_err(dev->dev, in i2c_dw_xfer() 1022 ret = dev->init(dev); in i2c_dw_probe_master() 1031 adap->dev.parent = dev->dev; in i2c_dw_probe_master() 1048 ret = devm_request_irq(dev->dev, dev->irq, i2c_dw_isr, in i2c_dw_probe_master() [all …]
|
H A D | i2c-at91-master.c | 100 dev_warn(dev->dev, in at91_calc_twi_clock() 115 dev_warn(dev->dev, in at91_calc_twi_clock() 169 dev_dbg(dev->dev, "wrote 0x%x, to go %zu\n", *dev->buf, dev->buf_len); in at91_twi_write_next_byte() 178 dma_unmap_single(dev->dev, sg_dma_address(&dev->dma.sg[0]), in at91_twi_write_data_dma_callback() 207 dma_addr = dma_map_single(dev->dev, dev->buf, dev->buf_len, in at91_twi_write_data_dma() 295 dev->buf_len += *dev->buf; in at91_twi_read_next_byte() 310 dev_dbg(dev->dev, "read 0x%x, to go %zu\n", *dev->buf, dev->buf_len); in at91_twi_read_next_byte() 320 dma_unmap_single(dev->dev, sg_dma_address(&dev->dma.sg[0]), in at91_twi_read_data_dma_callback() 325 dev->buf += dev->buf_len - 2; in at91_twi_read_data_dma_callback() 889 dev_name(dev->dev), dev); in at91_twi_probe_master() [all …]
|
H A D | i2c-davinci.c | 271 dev_dbg(dev->dev, "PSC = %d\n", in i2c_davinci_init() 273 dev_dbg(dev->dev, "CLKL = %d\n", in i2c_davinci_init() 275 dev_dbg(dev->dev, "CLKH = %d\n", in i2c_davinci_init() 768 dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL); in davinci_i2c_probe() 774 dev->dev = &pdev->dev; in davinci_i2c_probe() 813 pm_runtime_enable(dev->dev); in davinci_i2c_probe() 842 adap->dev.parent = &pdev->dev; in davinci_i2c_probe() 876 pm_runtime_put_sync(dev->dev); in davinci_i2c_probe() 878 pm_runtime_disable(dev->dev); in davinci_i2c_probe() 899 pm_runtime_put_sync(dev->dev); in davinci_i2c_remove() [all …]
|
/linux/drivers/misc/mei/ |
H A D | init.c | 103 dev->saved_dev_state = dev->dev_state; in mei_save_fw_status() 128 if (kind_is_gsc(dev) || kind_is_gscfi(dev)) { in mei_reset() 170 memset(dev->rd_msg_hdr, 0, sizeof(dev->rd_msg_hdr)); in mei_reset() 193 dev_dbg(dev->dev, "wrong state = %d on link start\n", dev->dev_state); in mei_reset() 239 dev_err(dev->dev, "reset failed ret = %d", ret); in mei_start() 245 dev_err(dev->dev, "HBM haven't started"); in mei_start() 250 dev_dbg(dev->dev, "MEI start failed.\n"); in mei_start() 287 dev_err(dev->dev, "device disabled = %d\n", err); in mei_restart() 316 dev_err(dev->dev, "device disabled = %d\n", ret); in mei_reset_work() 327 dev_dbg(dev->dev, "stopping the device.\n"); in mei_stop() [all …]
|
H A D | hw-me.c | 104 trace_mei_reg_read(dev->dev, "H_CSR", H_CSR, reg); in mei_hcsr_read() 117 trace_mei_reg_write(dev->dev, "H_CSR", H_CSR, reg); in mei_hcsr_write() 446 if (!kind_is_gsc(dev) && !kind_is_gscfi(dev)) in mei_gsc_pxp_check() 485 dev_err(dev->dev, "wait hw ready failed\n"); in mei_me_hw_ready_wait() 543 if (kind_is_gsc(dev) || kind_is_gscfi(dev)) in mei_me_hw_start() 547 dev_dbg(dev->dev, "hw is ready\n"); in mei_me_hw_start() 977 dev_dbg(dev->dev, "d0i3 set not needed\n"); in mei_me_d0i3_enter_sync() 1060 dev_dbg(dev->dev, "d0i3 enter\n"); in mei_me_d0i3_enter() 1173 dev_dbg(dev->dev, "d0i3 want resume\n"); in mei_me_d0i3_intr() 1253 pm_runtime_set_active(dev->dev); in mei_me_hw_reset() [all …]
|
H A D | hbm.c | 354 dev_err(dev->dev, in mei_hbm_capabilities_req() 446 dev_dbg(dev->dev, "adding client response\n"); in mei_hbm_add_cl_resp() 1106 pm_request_resume(dev->dev); in mei_hbm_pg_resume() 1327 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1372 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1415 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1483 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1526 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1545 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() 1579 dev->dev_state, dev->hbm_state); in mei_hbm_dispatch() [all …]
|
/linux/drivers/base/power/ |
H A D | runtime.c | 27 if (dev->pm_domain) in __rpm_get_callback() 29 else if (dev->type && dev->type->pm) in __rpm_get_callback() 31 else if (dev->class && dev->class->pm) in __rpm_get_callback() 33 else if (dev->bus && dev->bus->pm) in __rpm_get_callback() 43 if (!cb && dev->driver && dev->driver->pm) in __rpm_get_callback() 240 dev = dev->parent; in pm_runtime_set_memalloc_noio() 363 __releases(&dev->power.lock) __acquires(&dev->power.lock) in __rpm_callback() 561 __releases(&dev->power.lock) __acquires(&dev->power.lock) in rpm_suspend() 847 if (dev->power.no_callbacks && !parent && dev->parent) { in rpm_resume() 1008 rpm_suspend(dev, dev->power.timer_autosuspends ? in pm_suspend_timer_fn() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | main.c | 905 pci_set_drvdata(dev->pdev, dev); in mlx5_pci_init() 934 dev->iseg_base = dev->bar_addr; in mlx5_pci_init() 935 dev->iseg = ioremap(dev->iseg_base, sizeof(*dev->iseg)); in mlx5_pci_init() 1037 dev->vxlan = mlx5_vxlan_create(dev); in mlx5_init_once() 1038 dev->geneve = mlx5_geneve_create(dev); in mlx5_init_once() 1094 dev->dm = mlx5_dm_create(dev); in mlx5_init_once() 1099 dev->hv_vhca = mlx5_hv_vhca_create(dev); in mlx5_init_once() 1334 dev->priv.uar = mlx5_get_uars_page(dev); in mlx5_load() 1445 mlx5_put_uars_page(dev, dev->priv.uar); in mlx5_load() 1469 mlx5_put_uars_page(dev, dev->priv.uar); in mlx5_unload() [all …]
|
/linux/drivers/net/wireless/mediatek/mt7601u/ |
H A D | phy.c | 296 t = &bbp_mode_table[dev->temp_mode][dev->bw]; in mt7601u_load_bbp_temp_table_bw() 319 t[dev->bw].regs, t[dev->bw].n); in mt7601u_bbp_temp() 700 dev_dbg(dev->dev, in mt7601u_tssi_dc_gain_cal() 739 dev_dbg(dev->dev, "Recalibrate DPD\n"); in mt7601u_temp_comp() 864 dev_dbg(dev->dev, in mt7601u_tssi_params_get() 962 dev->agc_save = mt7601u_bbp_rr(dev, 66); in mt7601u_agc_save() 967 mt7601u_bbp_wr(dev, 66, dev->agc_save); in mt7601u_agc_restore() 1011 dev->raw_temp = mt7601u_read_temp(dev); in mt7601u_phy_calibrate() 1113 dev->freq_cal.freq = dev->ee->rf_freq_off; in mt7601u_phy_con_cal_onoff() 1128 dev->curr_temp = (dev->raw_temp - dev->ee->ref_temp) * in mt7601u_init_cal() [all …]
|
/linux/drivers/media/usb/cx231xx/ |
H A D | cx231xx-avcore.c | 146 dev_dbg(dev->dev, in cx231xx_afe_init_super_block() 155 dev_dbg(dev->dev, in cx231xx_afe_init_super_block() 162 dev_dbg(dev->dev, in cx231xx_afe_init_super_block() 644 dev_err(dev->dev, in cx231xx_set_decoder_video_input() 1382 dev_dbg(dev->dev, 1387 dev_dbg(dev->dev, 1392 dev_dbg(dev->dev, 1397 dev_dbg(dev->dev, 1403 dev_dbg(dev->dev, 1408 dev_dbg(dev->dev, [all …]
|
/linux/drivers/media/platform/samsung/s5p-mfc/ |
H A D | s5p_mfc_ctrl.c | 67 dev->variant->fw_name[i], &dev->plat_dev->dev); in s5p_mfc_load_firmware() 96 s5p_mfc_release_priv_buf(dev, &dev->fw_buf); in s5p_mfc_release_firmware() 139 if (dev->risc_on && !IS_MFCV12(dev)) in s5p_mfc_reset() 146 if ((!dev->risc_on) || (!IS_MFCV7_PLUS(dev))) in s5p_mfc_reset() 182 mfc_write(dev, dev->dma_base[BANK_L_CTX], in s5p_mfc_init_memctrl() 187 mfc_write(dev, dev->dma_base[BANK_L_CTX], in s5p_mfc_init_memctrl() 189 mfc_write(dev, dev->dma_base[BANK_R_CTX], in s5p_mfc_init_memctrl() 272 if (dev->int_err != 0 || dev->int_type != in s5p_mfc_init_hw() 276 dev->int_err, dev->int_type); in s5p_mfc_init_hw() 323 if (dev->int_err != 0 || dev->int_type != in s5p_mfc_sleep() [all …]
|
/linux/drivers/platform/x86/amd/pmf/ |
H A D | tee-if.c | 84 dev_dbg(dev->dev, "update SPL: %u\n", val); in amd_pmf_apply_policies() 92 dev_dbg(dev->dev, "update SPPT: %u\n", val); in amd_pmf_apply_policies() 100 dev_dbg(dev->dev, "update FPPT: %u\n", val); in amd_pmf_apply_policies() 219 memset(dev->shbuf, 0, dev->policy_sz); in amd_pmf_invoke_cmd_enact() 260 dev_dbg(dev->dev, "Policy Binary size: %u bytes\n", dev->policy_sz); in amd_pmf_invoke_cmd_init() 261 memset(dev->shbuf, 0, dev->policy_sz); in amd_pmf_invoke_cmd_init() 417 dev->pmf_idev = devm_input_allocate_device(dev->dev); in amd_pmf_register_input_device() 469 dev_dbg(dev->dev, "TEE init done\n"); in amd_pmf_tee_init() 515 dev->policy_base = devm_ioremap(dev->dev, dev->policy_addr, dev->policy_sz); in amd_pmf_init_smart_pc() 527 memcpy_fromio(dev->policy_buf, dev->policy_base, dev->policy_sz); in amd_pmf_init_smart_pc() [all …]
|
/linux/drivers/usb/misc/ |
H A D | adutux.c | 170 dev_dbg(&dev->udev->dev, in adu_interrupt_in_callback() 214 dev_dbg(&dev->udev->dev, in adu_interrupt_out_callback() 377 dev_dbg(&dev->udev->dev, in adu_read() 397 dev_dbg(&dev->udev->dev, in adu_read() 412 dev_dbg(&dev->udev->dev, in adu_read() 417 dev_dbg(&dev->udev->dev, in adu_read() 458 dev_dbg(&dev->udev->dev, in adu_read() 465 dev_dbg(&dev->udev->dev, in adu_read() 550 dev_dbg(&dev->udev->dev, in adu_write() 562 dev_dbg(&dev->udev->dev, in adu_write() [all …]
|
/linux/drivers/mtd/nand/raw/ |
H A D | r852.c | 148 if (dev->phys_dma_addr && dev->phys_dma_addr != dev->phys_bounce_buffer) in r852_dma_done() 149 dma_unmap_single(&dev->pci_dev->dev, dev->phys_dma_addr, in r852_dma_done() 196 dev->phys_dma_addr = dma_map_single(&dev->pci_dev->dev, buf, in r852_do_dma() 199 if (dma_mapping_error(&dev->pci_dev->dev, dev->phys_dma_addr)) in r852_do_dma() 342 r852_write_reg(dev, R852_CTL, dev->ctlreg); in r852_cmdctl() 349 r852_write_reg(dev, R852_CTL, dev->ctlreg); in r852_cmdctl() 416 r852_write_reg(dev, R852_CTL, dev->ctlreg); in r852_ecc_hwctl() 454 r852_write_reg(dev, R852_CTL, dev->ctlreg); in r852_ecc_calculate() 481 r852_write_reg(dev, R852_CTL, dev->ctlreg); in r852_ecc_correct() 635 mtd->dev.parent = &dev->pci_dev->dev; in r852_register_nand_device() [all …]
|
/linux/drivers/net/ethernet/mediatek/ |
H A D | mtk_wed.c | 457 err = dev->wlan.reset(dev); in mtk_wed_fe_reset() 842 dev->wlan.init_rx_buf(dev, dev->wlan.rx_npkt); in mtk_wed_rx_buffer_alloc() 2147 dev_err(dev->hw->dev, in mtk_wed_dma_enable() 2219 dev_err(dev->hw->dev, in mtk_wed_start_hw_rro() 2230 dev_err(dev->hw->dev, in mtk_wed_start_hw_rro() 2299 dev_err(dev->hw->dev, in mtk_wed_ind_rx_ring_setup() 2316 dev_err(dev->hw->dev, in mtk_wed_ind_rx_ring_setup() 2408 ? &dev->wlan.pci_dev->dev in mtk_wed_attach() 2414 dev->dev = hw->dev; in mtk_wed_attach() 2713 priv->dev = dev; in mtk_wed_setup_tc_block() [all …]
|
/linux/drivers/base/ |
H A D | dd.c | 428 dev->driver->coredump(dev); in coredump_store() 556 dev->pm_domain->dismiss(dev); in device_unbind_cleanup() 567 dev->bus->remove(dev); in device_remove() 569 dev->driver->remove(dev); in device_remove() 577 ret = dev->bus->probe(dev); in call_driver_probe() 697 dev->bus->dma_cleanup(dev); in really_probe() 706 dev->pm_domain->sync(dev); in really_probe() 721 dev->bus->dma_cleanup(dev); in really_probe() 968 .dev = dev, in __device_attach_async_helper() 1022 .dev = dev, in __device_attach() [all …]
|
/linux/drivers/staging/media/sunxi/cedrus/ |
H A D | cedrus_hw.c | 245 0, dev_name(dev->dev), dev); in cedrus_hw_probe() 266 dev->ahb_clk = devm_clk_get(dev->dev, "ahb"); in cedrus_hw_probe() 274 dev->mod_clk = devm_clk_get(dev->dev, "mod"); in cedrus_hw_probe() 282 dev->ram_clk = devm_clk_get(dev->dev, "ram"); in cedrus_hw_probe() 290 dev->rstc = devm_reset_control_get(dev->dev, NULL); in cedrus_hw_probe() 313 pm_runtime_enable(dev->dev); in cedrus_hw_probe() 323 pm_runtime_disable(dev->dev); in cedrus_hw_probe() 325 sunxi_sram_release(dev->dev); in cedrus_hw_probe() 334 pm_runtime_disable(dev->dev); in cedrus_hw_remove() 336 cedrus_hw_suspend(dev->dev); in cedrus_hw_remove() [all …]
|