/openbmc/linux/drivers/nvme/host/ |
H A D | pci.c | 265 dev->dbbuf_dbs = dma_alloc_coherent(dev->dev, mem_size, in nvme_dbbuf_dma_alloc() 270 dev->dbbuf_eis = dma_alloc_coherent(dev->dev, mem_size, in nvme_dbbuf_dma_alloc() 278 dma_free_coherent(dev->dev, mem_size, dev->dbbuf_dbs, in nvme_dbbuf_dma_alloc() 1544 nvmeq->dev = dev; in nvme_alloc_queue() 1756 dev->ctrl.numa_node = dev_to_node(dev->dev); in nvme_pci_configure_admin_queue() 1932 dma_free_coherent(dev->dev, in nvme_free_host_mem() 2511 dev->dbs = dev->bar + 4096; in nvme_pci_enable() 2677 dev_to_node(dev->dev)); in nvme_pci_alloc_iod_mempool() 2696 put_device(dev->dev); in nvme_pci_free_ctrl() 2966 dev->dev = get_device(&pdev->dev); in nvme_pci_alloc_dev() [all …]
|
/openbmc/u-boot/drivers/net/ |
H A D | ax88180.c | 158 tmpval = INW (dev, MISC); in ax88180_mac_reset() 545 dev->enetaddr[0] | (((unsigned short)dev->enetaddr[1]) << 8); in ax88180_init() 549 dev->enetaddr[2] | (((unsigned short)dev->enetaddr[3]) << 8); in ax88180_init() 553 dev->enetaddr[4] | (((unsigned short)dev->enetaddr[5]) << 8); in ax88180_init() 565 OUTW (dev, INW (dev, ISR), ISR); in ax88180_init() 704 struct eth_device *dev; in ax88180_initialize() local 707 dev = (struct eth_device *)malloc (sizeof *dev); in ax88180_initialize() 709 if (NULL == dev) in ax88180_initialize() 712 memset (dev, 0, sizeof *dev); in ax88180_initialize() 723 dev->priv = priv; in ax88180_initialize() [all …]
|
H A D | smc911x.c | 24 uchar *m = dev->enetaddr; in smc911x_handle_mac_address() 134 smc911x_reset(dev); in smc911x_init() 142 smc911x_enable(dev); in smc911x_init() 188 smc911x_reset(dev); in smc911x_halt() 226 if (dev) { in smc911x_miiphy_read() 239 if (dev) in smc911x_miiphy_write() 250 dev = malloc(sizeof(*dev)); in smc911x_initialize() 251 if (!dev) { in smc911x_initialize() 254 memset(dev, 0, sizeof(*dev)); in smc911x_initialize() 260 free(dev); in smc911x_initialize() [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt76x0/ |
H A D | init.c | 41 dev_err(dev->mt76.dev, "PLL and XTAL check failed\n"); in mt76x0_set_wlan_state() 74 mt76_wr(dev, MT_MAC_SYS_CTRL, in mt76x0_reset_csr_bbp() 149 dev_warn(dev->mt76.dev, "Warning: MAC TX did not stop!\n"); in mt76x0_mac_stop() 167 dev_warn(dev->mt76.dev, "Warning: MAC RX did not stop!\n"); in mt76x0_mac_stop() 182 mt76x0_reset_csr_bbp(dev); in mt76x0_init_hardware() 192 ret = mt76x0_init_bbp(dev); in mt76x0_init_hardware() 196 dev->mt76.rxfilter = mt76_rr(dev, MT_RX_FILTR_CFG); in mt76x0_init_hardware() 209 mt76x0_phy_init(dev); in mt76x0_init_hardware() 259 if (dev->mphy.cap.has_2ghz) in mt76x0_register_device() 260 mt76x0_init_txpower(dev, &dev->mphy.sband_2g.sband); in mt76x0_register_device() [all …]
|
/openbmc/u-boot/cmd/ |
H A D | tpm_test.c | 89 tpm_init(dev); in test_early_extend() 102 tpm_init(dev); in test_early_nvram() 116 tpm_init(dev); in test_early_nvram2() 130 tpm_init(dev); in test_enable() 157 tpm_init(dev); in test_fast_enable() 187 tpm_init(dev); in test_global_lock() 224 tpm_init(dev); in test_lock() 261 tpm_init(dev); in test_readonly() 315 tpm_init(dev); in test_redefine_unowned() 365 tpm_init(dev); in test_space_perm() [all …]
|
/openbmc/u-boot/fs/yaffs2/ |
H A D | yaffs_guts.c | 144 if (dev->temp_in_use > dev->max_temp) in yaffs_get_temp_buffer() 145 dev->max_temp = dev->temp_in_use; in yaffs_get_temp_buffer() 405 dev->alloc_block_finder, dev->seq_number, in yaffs_find_alloc_block() 446 yaffs_set_chunk_bit(dev, dev->alloc_block, dev->alloc_page); in yaffs_alloc_chunk() 1258 if (dev && dev->param.remove_obj_fn) in yaffs_remove_obj_from_dir() 2782 dev->gc_dirtiest, dev->gc_pages_in_use, in yaffs_find_gc_block() 2807 if (dev->param.gc_control && (dev->param.gc_control(dev) & 1) == 0) in yaffs_check_gc() 4559 dev->lost_n_found = dev->root_dir = NULL; in yaffs_create_initial_dir() 4560 dev->unlinked_dir = dev->del_dir = NULL; in yaffs_create_initial_dir() 4572 if (dev->lost_n_found && dev->root_dir && dev->unlinked_dir in yaffs_create_initial_dir() [all …]
|
/openbmc/u-boot/drivers/core/ |
H A D | read.c | 79 if (ofnode_is_np(dev_ofnode(dev))) in dev_read_addr_index() 82 return devfdt_get_addr_index(dev, index); in dev_read_addr_index() 102 return dev_read_addr_index(dev, index); in dev_read_addr_name() 117 return dev_read_addr_index(dev, 0); in dev_read_addr() 122 fdt_addr_t addr = dev_read_addr(dev); in dev_read_addr_ptr() 127 void *dev_remap_addr(struct udevice *dev) in dev_remap_addr() argument 129 return dev_remap_addr_index(dev, 0); in dev_remap_addr() 140 return ofnode_get_name(dev_ofnode(dev)); in dev_read_name() 198 ofnode node = dev_ofnode(dev); in dev_read_phandle() 213 ofnode node = dev_ofnode(dev); in dev_read_alias_seq() [all …]
|
H A D | device-remove.c | 25 assert(dev); in device_chld_unbind() 45 assert(dev); in device_chld_remove() 64 if (!dev) in device_unbind() 73 drv = dev->driver; in device_unbind() 102 if (dev->parent) in device_unbind() 109 free(dev); in device_unbind() 123 free(dev->priv); in device_free() 160 if (!dev) in device_remove() 187 if (dev->parent && dev->parent->driver->child_post_remove) { in device_remove() 188 ret = dev->parent->driver->child_post_remove(dev); in device_remove() [all …]
|
/openbmc/linux/drivers/ssb/ |
H A D | driver_gige.c | 34 return ssb_read8(dev->dev, offset); in gige_read8() 39 return ssb_read16(dev->dev, offset); in gige_read16() 44 return ssb_read32(dev->dev, offset); in gige_read32() 50 ssb_write8(dev->dev, offset, value); in gige_write8() 56 ssb_write16(dev->dev, offset, value); in gige_write16() 62 ssb_write32(dev->dev, offset, value); in gige_write32() 176 dev = kzalloc(sizeof(*dev), GFP_KERNEL); in ssb_gige_probe() 177 if (!dev) in ssb_gige_probe() 179 dev->dev = sdev; in ssb_gige_probe() 182 dev->pci_controller.pci_ops = &dev->pci_ops; in ssb_gige_probe() [all …]
|
/openbmc/linux/drivers/scsi/ |
H A D | imm.c | 67 dev->base = dev->dev->port->base; in got_it() 81 if (parport_claim(dev->dev) == 0) { in imm_wakeup() 94 if (parport_claim(dev->dev) == 0) { in imm_pb_claim() 112 parport_release(dev->dev); in imm_pb_dismiss() 117 parport_release(dev->dev); in imm_pb_release() 852 if ((dev->dp) && (dev->rd)) in imm_engine() 875 if ((dev->dp) && (dev->rd)) { in imm_engine() 1177 if (!dev->dev) in __imm_attach() 1200 ppb = dev->base = dev->dev->port->base; in __imm_attach() 1201 dev->base_hi = dev->dev->port->base_hi; in __imm_attach() [all …]
|
H A D | ppa.c | 67 dev->base = dev->dev->port->base; in got_it() 81 parport_claim(dev->dev); in ppa_wakeup() 94 if (parport_claim(dev->dev) == 0) { in ppa_pb_claim() 112 parport_release(dev->dev); in ppa_pb_dismiss() 117 parport_release(dev->dev); in ppa_pb_release() 474 int modes = dev->dev->port->modes; in ppa_init() 475 int ppb_hi = dev->dev->port->base_hi; in ppa_init() 1069 if (!dev->dev) in __ppa_attach() 1091 dev->base = dev->dev->port->base; in __ppa_attach() 1130 parport_unregister_device(dev->dev); in __ppa_attach() [all …]
|
/openbmc/linux/drivers/base/power/ |
H A D | sysfs.c | 111 device_lock(dev); in control_store() 113 pm_runtime_allow(dev); in control_store() 115 pm_runtime_forbid(dev); in control_store() 118 device_unlock(dev); in control_store() 203 device_lock(dev); in autosuspend_delay_ms_store() 205 device_unlock(dev); in autosuspend_delay_ms_store() 356 if (dev->power.wakeup) { in wakeup_count_show() 515 if (dev->power.wakeup && dev->power.wakeup->dev) in dpm_sysfs_wakeup_change_owner() 516 return device_change_owner(dev->power.wakeup->dev, kuid, kgid); in dpm_sysfs_wakeup_change_owner() 574 if (dev->power.disable_depth && !dev->power.runtime_auto) in runtime_enabled_show() [all …]
|
H A D | power.h | 6 if (!dev->power.early_init) { in device_pm_init_common() 7 spin_lock_init(&dev->power.lock); in device_pm_init_common() 8 dev->power.qos = NULL; in device_pm_init_common() 9 dev->power.early_init = true; in device_pm_init_common() 17 dev->power.disable_depth = 1; in pm_runtime_early_init() 18 device_pm_init_common(dev); in pm_runtime_early_init() 35 struct device *dev; member 87 device_pm_init_common(dev); in pm_runtime_early_init() 142 pm_runtime_remove(dev); in device_pm_remove() 168 device_pm_sleep_init(dev); in device_pm_init() [all …]
|
/openbmc/linux/drivers/ipack/ |
H A D | ipack.c | 370 dev_warn(&dev->dev, "invalid id size"); in ipack_device_read_id() 429 dev->dev.bus = &ipack_bus_type; in ipack_device_init() 430 dev->dev.release = ipack_device_release; in ipack_device_init() 431 dev->dev.parent = dev->bus->parent; in ipack_device_init() 432 ret = dev_set_name(&dev->dev, in ipack_device_init() 437 device_initialize(&dev->dev); in ipack_device_init() 441 if (dev->bus->ops->reset_timeout(dev)) in ipack_device_init() 463 return device_add(&dev->dev); in ipack_device_add() 469 device_del(&dev->dev); in ipack_device_del() 476 get_device(&dev->dev); in ipack_get_device() [all …]
|
/openbmc/linux/drivers/net/wireless/broadcom/b43/ |
H A D | tables_nphy.c | 3355 if (dev->dev->chip_id == 43224 && dev->dev->chip_rev == 1) { in b43_ntab_read_bulk() 3430 if ((offset >> 10) == 9 && dev->dev->chip_id == 43224 && in b43_ntab_write_bulk() 3431 dev->dev->chip_rev == 1) { in b43_ntab_write_bulk() 3482 struct ssb_sprom *sprom = dev->dev->bus_sprom; in b43_nphy_tables_init_rev7_volatile() 3553 struct ssb_sprom *sprom = dev->dev->bus_sprom; in b43_nphy_tables_init_rev3() 3656 if (dev->dev->chip_id == BCMA_CHIP_ID_BCM47162) in b43_nphy_get_ipa_gain_table() 3666 b43err(dev->wl, in b43_nphy_get_ipa_gain_table() 3679 b43err(dev->wl, in b43_nphy_get_ipa_gain_table() 3689 struct ssb_sprom *sprom = dev->dev->bus_sprom; in b43_nphy_get_tx_gain_table() 3772 if (!ghz5 && dev->phy.rev >= 6 && dev->phy.radio_rev == 11) in b43_nphy_get_gain_ctl_workaround_ent() [all …]
|
/openbmc/linux/drivers/usb/c67x00/ |
H A D | c67x00-ll-hpi.c | 73 return __raw_readw(dev->hpi.base + reg * dev->hpi.regstep); in hpi_read_reg() 79 __raw_writew(value, dev->hpi.base + reg * dev->hpi.regstep); in hpi_write_reg() 211 hpi_recv_mbox(dev); in c67x00_ll_hpi_reg_init() 212 c67x00_ll_hpi_status(dev); in c67x00_ll_hpi_reg_init() 290 rc = ll_recv_msg(dev); in c67x00_comm_exec_int() 308 struct c67x00_device *dev = sie->dev; in c67x00_ll_husb_sie_init() local 318 struct c67x00_device *dev = sie->dev; in c67x00_ll_husb_reset() local 378 dev->hpi.lcp.last_msg = hpi_recv_mbox(dev); in c67x00_ll_irq() 389 hpi_send_mbox(dev, COMM_RESET); in c67x00_ll_reset() 390 rc = ll_recv_msg(dev); in c67x00_ll_reset() [all …]
|
/openbmc/qemu/hw/pci/ |
H A D | pcie.c | 55 uint8_t *exp_cap = dev->config + dev->exp.exp_cap; in pcie_cap_v1_fill() 56 uint8_t *cmask = dev->cmask + dev->exp.exp_cap; in pcie_cap_v1_fill() 93 uint8_t *exp_cap = dev->config + dev->exp.exp_cap; in pcie_cap_fill_slot_lnk() 289 uint8_t *exp_cap = dev->config + dev->exp.exp_cap; in pcie_cap_flags_set_vector() 365 msix_notify(dev, pcie_cap_flags_get_vector(dev)); in hotplug_event_notify() 367 msi_notify(dev, pcie_cap_flags_get_vector(dev)); in hotplug_event_notify() 369 pci_set_irq(dev, dev->exp.hpev_notified); in hotplug_event_notify() 376 if (!msix_enabled(dev) && !msi_enabled(dev) && pci_intx(dev) != -1 && in hotplug_event_clear() 384 uint8_t *exp_cap = dev->config + dev->exp.exp_cap; in pcie_cap_slot_enable_power() 533 uint8_t *exp_cap = dev->config + dev->exp.exp_cap; in pcie_cap_slot_do_unplug() [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7615/ |
H A D | debugfs.c | 10 mt7615_mutex_acquire(dev); in mt7615_reg_set() 11 mt76_wr(dev, dev->mt76.debugfs_reg, val); in mt7615_reg_set() 23 *val = mt76_rr(dev, dev->mt76.debugfs_reg); in mt7615_reg_get() 105 if (!mt7615_firmware_offload(dev) || mt76_is_usb(&dev->mt76)) in mt7615_pm_set() 231 mt7615_mcu_fw_log_2_host(dev, dev->fw_debug ? 2 : 0); in mt7615_fw_debug_set() 266 mt76_tx_queue_skb_raw(dev, dev->mphy.q_tx[0], skb, 0); in mt7615_reset_test_set() 421 mt7615_rf_wr(dev, dev->debugfs_rf_wf, dev->debugfs_rf_reg, val); in mt7615_rf_reg_set() 431 *val = mt7615_rf_rr(dev, dev->debugfs_rf_wf, dev->debugfs_rf_reg); in mt7615_rf_reg_get() 557 debugfs_create_devm_seqfile(dev->mt76.dev, "xmit-queues", dir, in mt7615_init_debugfs() 562 debugfs_create_devm_seqfile(dev->mt76.dev, "acq", dir, in mt7615_init_debugfs() [all …]
|
/openbmc/linux/drivers/usb/gadget/function/ |
H A D | f_printer.c | 232 kfree(dev); in printer_dev_free() 835 dev->in_ep->driver_data = dev; in set_printer_interface() 837 dev->out_ep->desc = ep_desc(dev->gadget, &fs_ep_out_desc, in set_printer_interface() 839 dev->out_ep->driver_data = dev; in set_printer_interface() 843 DBG(dev, "enable %s --> %d\n", dev->in_ep->name, result); in set_printer_interface() 849 DBG(dev, "enable %s --> %d\n", dev->out_ep->name, result); in set_printer_interface() 916 list_add(&dev->current_rx_req->list, &dev->rx_reqs); in printer_soft_reset() 1059 VDBG(dev, in printer_func_setup() 1454 printer_req_free(dev->out_ep, dev->current_rx_req); in printer_func_unbind() 1485 dev = kzalloc(sizeof(*dev), GFP_KERNEL); in gprinter_alloc() [all …]
|
/openbmc/linux/drivers/pnp/ |
H A D | manager.c | 57 pnp_dbg(&dev->dev, " io %d disabled\n", idx); in pnp_assign_port() 68 pnp_dbg(&dev->dev, " couldn't assign io %d " in pnp_assign_port() 108 pnp_dbg(&dev->dev, " mem %d disabled\n", idx); in pnp_assign_mem() 119 pnp_dbg(&dev->dev, " couldn't assign mem %d " in pnp_assign_mem() 156 pnp_dbg(&dev->dev, " irq %d disabled\n", idx); in pnp_assign_irq() 345 if (dev->protocol->set(dev) < 0) { in pnp_start_dev() 346 dev_err(&dev->dev, "activation failed\n"); in pnp_start_dev() 350 dev_info(&dev->dev, "activated\n"); in pnp_start_dev() 367 if (dev->protocol->disable(dev) < 0) { in pnp_stop_dev() 368 dev_err(&dev->dev, "disable failed\n"); in pnp_stop_dev() [all …]
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-at91-slave.c | 69 if (dev->slave) in at91_reg_slave() 76 pm_runtime_get_sync(dev->dev); in at91_reg_slave() 84 dev_info(dev->dev, "entered slave mode (ADR=%d)\n", slave->addr); in at91_reg_slave() 95 dev_info(dev->dev, "leaving slave mode\n"); in at91_unreg_slave() 97 dev->slave = NULL; in at91_unreg_slave() 98 dev->smr = 0; in at91_unreg_slave() 102 pm_runtime_put(dev->dev); in at91_unreg_slave() 124 0, dev_name(dev->dev), dev); in at91_twi_probe_slave() 126 dev_err(dev->dev, "Cannot get irq %d: %d\n", dev->irq, rc); in at91_twi_probe_slave() 138 if (dev->slave_detected && dev->smr) { in at91_init_twi_bus_slave() [all …]
|
/openbmc/linux/drivers/base/ |
H A D | core.c | 1322 if (dev->fwnode && dev->fwnode->dev == dev) { in device_links_driver_bound() 2503 dev->release(dev); in device_release() 2505 dev->type->release(dev); in device_release() 3500 dev->p->device = dev; in device_private_init() 3543 dev = get_device(dev); in device_add() 3647 if (dev->fwnode && !dev->fwnode->dev) { in device_add() 3648 dev->fwnode->dev = dev; in device_add() 3807 if (dev->fwnode && dev->fwnode->dev == dev) in device_del() 4492 dev = get_device(dev); in device_rename() 4559 dev = get_device(dev); in device_move() [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt76x2/ |
H A D | usb_mac.c | 36 mt76_wr(dev, 0x504, 0x06000000); in mt76x2u_mac_fixup_xtal() 37 mt76_wr(dev, 0x50c, 0x08800000); in mt76x2u_mac_fixup_xtal() 39 mt76_wr(dev, 0x504, 0x0); in mt76x2u_mac_fixup_xtal() 70 mt76_write_mac_initvals(dev); in mt76x2u_mac_reset() 76 mt76_wr(dev, MT_WMM_AIFSN, 0x2273); in mt76x2u_mac_reset() 77 mt76_wr(dev, MT_WMM_CWMIN, 0x2344); in mt76x2u_mac_reset() 80 mt76_clear(dev, MT_MAC_SYS_CTRL, in mt76x2u_mac_reset() 84 if (is_mt7612(dev)) in mt76x2u_mac_reset() 90 mt76x2u_mac_fixup_xtal(dev); in mt76x2u_mac_reset() 128 mt76_clear(dev, MT_MAC_SYS_CTRL, in mt76x2u_mac_stop() [all …]
|
/openbmc/linux/drivers/media/usb/uvc/ |
H A D | uvc_status.c | 54 usb_make_path(dev->udev, dev->input_phys, sizeof(dev->input_phys)); in uvc_input_init() 55 strlcat(dev->input_phys, "/button", sizeof(dev->input_phys)); in uvc_input_init() 60 input->dev.parent = &dev->intf->dev; in uvc_input_init() 78 if (dev->input) in uvc_input_unregister() 85 if (dev->input) { in uvc_input_report_key() 218 dev_warn(&dev->udev->dev, in uvc_status_complete() 235 uvc_event_streaming(dev, dev->status, len); in uvc_status_complete() 250 dev_err(&dev->udev->dev, in uvc_status_complete() 265 dev->status = kzalloc(sizeof(*dev->status), GFP_KERNEL); in uvc_status_init() 286 usb_fill_int_urb(dev->int_urb, dev->udev, pipe, in uvc_status_init() [all …]
|
/openbmc/linux/drivers/pci/ |
H A D | pci.h | 33 void pci_cleanup_rom(struct pci_dev *dev); 77 int pci_power_up(struct pci_dev *dev); 91 void pci_pm_init(struct pci_dev *dev); 92 void pci_ea_init(struct pci_dev *dev); 93 void pci_msi_init(struct pci_dev *dev); 103 pm_wakeup_event(&dev->dev, 100); in pci_wakeup_event() 122 int type = pci_pcie_type(dev); in pcie_downstream_port() 180 if (dev->bus->self) in pci_no_d1d2() 361 pci_doe_disconnected(dev); in pci_dev_set_disconnected() 518 int resno = res - dev->resource; in pci_resource_alignment() [all …]
|