Home
last modified time | relevance | path

Searched refs:dev_num (Results 1 – 25 of 51) sorted by relevance

123

/drivers/soundwire/
Dbus.c177 if (slave->dev_num) { /* clear dev_num if assigned */ in sdw_delete_slave()
178 clear_bit(slave->dev_num, bus->assigned); in sdw_delete_slave()
279 msg->dev_num, ret, in sdw_transfer_unlocked()
353 msg->dev_num, ret); in sdw_transfer_defer()
359 u32 addr, size_t count, u16 dev_num, u8 flags, u8 *buf) in sdw_fill_msg() argument
364 msg->dev_num = dev_num; in sdw_fill_msg()
383 if (dev_num == SDW_ENUM_DEV_NUM || dev_num == SDW_BROADCAST_DEV_NUM) { in sdw_fill_msg()
384 pr_err("SDW: Invalid device for paging :%d\n", dev_num); in sdw_fill_msg()
422 ret = sdw_fill_msg(&msg, slave, addr, size, slave->dev_num, flags, val); in sdw_ntransfer_no_pm()
483 sdw_bread_no_pm(struct sdw_bus *bus, u16 dev_num, u32 addr) in sdw_bread_no_pm() argument
[all …]
Dbus.h66 u8 dev_num; member
166 u32 addr, size_t count, u16 dev_num, u8 flags, u8 *buf);
200 int sdw_bread_no_pm_unlocked(struct sdw_bus *bus, u16 dev_num, u32 addr);
201 int sdw_bwrite_no_pm_unlocked(struct sdw_bus *bus, u16 dev_num, u32 addr, u8 value);
Dirq.c51 slave->irq = irq_create_mapping(slave->bus->domain, slave->dev_num); in sdw_irq_create_mapping()
58 irq_dispose_mapping(irq_find_mapping(slave->bus->domain, slave->dev_num)); in sdw_irq_dispose_mapping()
Dintel_auxdevice.c95 int dev_num) in generic_new_peripheral_assigned() argument
112 if (dev_num < dev_num_min || dev_num > dev_num_max) { in generic_new_peripheral_assigned()
114 __func__, dev_num, slave->prop.wake_capable); in generic_new_peripheral_assigned()
119 sdw->link_res->hw_ops->program_sdi(sdw, dev_num); in generic_new_peripheral_assigned()
191 ida_free(&intel_peripheral_ida, slave->dev_num); in intel_put_device_num_ida()
Damd_manager.c180 upper_data = FIELD_PREP(AMD_SDW_MCP_CMD_DEV_ADDR, msg->dev_num); in amd_sdw_ctl_word_prep()
244 scp_msg.dev_num = msg->dev_num; in amd_program_scp_addr()
259 msg->dev_num); in amd_program_scp_addr()
265 msg->dev_num); in amd_program_scp_addr()
269 msg->dev_num); in amd_program_scp_addr()
308 msg->dev_num); in amd_sdw_fill_msg_resp()
313 msg->dev_num); in amd_sdw_fill_msg_resp()
317 msg->dev_num); in amd_sdw_fill_msg_resp()
Dqcom.c534 int dev_num; in qcom_swrm_get_alert_slave_dev_num() local
538 for (dev_num = 1; dev_num <= SDW_MAX_DEVICES; dev_num++) { in qcom_swrm_get_alert_slave_dev_num()
539 status = (val >> (dev_num * SWRM_MCP_SLV_STATUS_SZ)); in qcom_swrm_get_alert_slave_dev_num()
542 ctrl->status[dev_num] = status & SWRM_MCP_SLV_STATUS_MASK; in qcom_swrm_get_alert_slave_dev_num()
543 return dev_num; in qcom_swrm_get_alert_slave_dev_num()
579 slave->dev_num = devnum; in qcom_swrm_set_slave_dev_num()
909 ret = qcom_swrm_cmd_fifo_rd_cmd(ctrl, msg->dev_num, in qcom_swrm_xfer_msg()
920 msg->dev_num, in qcom_swrm_xfer_msg()
Dcadence_master.c583 dev_err_ratelimited(cdns->dev, "Msg NACKed for Slave %d\n", msg->dev_num); in cdns_fill_msg_resp()
588 dev_dbg_ratelimited(cdns->dev, "Msg ignored for Slave %d\n", msg->dev_num); in cdns_fill_msg_resp()
643 data = FIELD_PREP(CDNS_MCP_CMD_DEV_ADDR, msg->dev_num); in _cdns_xfer_msg()
664 cmd, msg->dev_num, msg->addr, msg->len); in _cdns_xfer_msg()
690 data[0] = FIELD_PREP(CDNS_MCP_CMD_DEV_ADDR, msg->dev_num); in cdns_program_scp_addr()
728 "SCP_addrpage NACKed for Slave %d\n", msg->dev_num); in cdns_program_scp_addr()
734 "SCP_addrpage ignored for Slave %d\n", msg->dev_num); in cdns_program_scp_addr()
Dintel_ace2x.c637 static void intel_program_sdi(struct sdw_intel *sdw, int dev_num) in intel_program_sdi() argument
641 ret = hdac_bus_eml_sdw_set_lsdiid(sdw->link_res->hbus, sdw->instance, dev_num); in intel_program_sdi()
644 __func__, sdw->instance, dev_num); in intel_program_sdi()
/drivers/cdx/controller/
Dcdx_controller.c50 u8 bus_num, u8 dev_num, in cdx_configure_device() argument
57 ret = cdx_mcdi_reset_device(cdx->priv, bus_num, dev_num); in cdx_configure_device()
69 u8 bus_num, dev_num, num_cdx_bus; in cdx_scan_devices() local
93 for (dev_num = 0; dev_num < num_cdx_dev; dev_num++) { in cdx_scan_devices()
98 dev_num, &dev_params); in cdx_scan_devices()
102 bus_num, dev_num, ret); in cdx_scan_devices()
111 dev_num, ret); in cdx_scan_devices()
116 dev_num, bus_num); in cdx_scan_devices()
Dmcdi_functions.c49 u8 bus_num, u8 dev_num, in cdx_mcdi_get_dev_config() argument
60 MCDI_SET_DWORD(inbuf, CDX_BUS_GET_DEVICE_CONFIG_IN_DEVICE, dev_num); in cdx_mcdi_get_dev_config()
71 dev_params->dev_num = dev_num; in cdx_mcdi_get_dev_config()
127 int cdx_mcdi_reset_device(struct cdx_mcdi *cdx, u8 bus_num, u8 dev_num) in cdx_mcdi_reset_device() argument
133 MCDI_SET_DWORD(inbuf, CDX_DEVICE_RESET_IN_DEVICE, dev_num); in cdx_mcdi_reset_device()
Dmcdi_functions.h47 u8 bus_num, u8 dev_num,
59 u8 bus_num, u8 dev_num);
/drivers/net/ethernet/marvell/prestera/
Dprestera_dsa.c86 u32 dev_num = dsa->hw_dev_num; in prestera_dsa_build() local
91 words[0] |= FIELD_PREP(PRESTERA_DSA_W0_DEV_NUM, dev_num); in prestera_dsa_build()
92 dev_num = FIELD_GET(PRESTERA_DSA_DEV_NUM, dev_num); in prestera_dsa_build()
93 words[3] |= FIELD_PREP(PRESTERA_DSA_W3_DEV_NUM, dev_num); in prestera_dsa_build()
/drivers/char/tpm/
Dtpm-chip.c272 idr_remove(&dev_nums_idr, chip->dev_num); in tpm_dev_release()
340 chip->dev_num = rc; in tpm_chip_alloc()
349 if (chip->dev_num == 0) in tpm_chip_alloc()
352 chip->dev.devt = MKDEV(MAJOR(tpm_devt), chip->dev_num); in tpm_chip_alloc()
354 rc = dev_set_name(&chip->dev, "tpm%d", chip->dev_num); in tpm_chip_alloc()
434 idr_replace(&dev_nums_idr, chip, chip->dev_num); in tpm_add_char_device()
450 idr_replace(&dev_nums_idr, NULL, chip->dev_num); in tpm_del_char_device()
546 "tpm-rng-%d", chip->dev_num); in tpm_add_hwrng()
/drivers/staging/greybus/
Dauthentication.c36 dev_t dev_num; member
331 cap->dev_num = MKDEV(MAJOR(cap_dev_num), minor); in gb_cap_connection_init()
334 ret = cdev_add(&cap->cdev, cap->dev_num, 1); in gb_cap_connection_init()
339 cap->class_device = device_create(cap_class, cap->parent, cap->dev_num, in gb_cap_connection_init()
373 device_destroy(cap_class, cap->dev_num); in gb_cap_connection_exit()
375 ida_simple_remove(&cap_minors_map, MINOR(cap->dev_num)); in gb_cap_connection_exit()
Dfw-management.c35 dev_t dev_num; member
624 fw_mgmt->dev_num = MKDEV(MAJOR(fw_mgmt_dev_num), minor); in gb_fw_mgmt_connection_init()
627 ret = cdev_add(&fw_mgmt->cdev, fw_mgmt->dev_num, 1); in gb_fw_mgmt_connection_init()
633 fw_mgmt->dev_num, NULL, in gb_fw_mgmt_connection_init()
667 device_destroy(fw_mgmt_class, fw_mgmt->dev_num); in gb_fw_mgmt_connection_exit()
669 ida_simple_remove(&fw_mgmt_minors_map, MINOR(fw_mgmt->dev_num)); in gb_fw_mgmt_connection_exit()
/drivers/pci/hotplug/
Dcpqphp_pci.c154 int cpqhp_set_irq(u8 bus_num, u8 dev_num, u8 int_pin, u8 irq_num) in cpqhp_set_irq() argument
171 fakedev->devfn = dev_num << 3; in cpqhp_set_irq()
175 __func__, dev_num, bus_num, int_pin, irq_num); in cpqhp_set_irq()
201 static int PCI_ScanBusForNonBridge(struct controller *ctrl, u8 bus_num, u8 *dev_num) in PCI_ScanBusForNonBridge() argument
216 *dev_num = tdevice; in PCI_ScanBusForNonBridge()
239 static int PCI_GetBusDevHelper(struct controller *ctrl, u8 *bus_num, u8 *dev_num, u8 slot, u8 nobri… in PCI_GetBusDevHelper() argument
253 *dev_num = tdevice; in PCI_GetBusDevHelper()
255 pci_bus_read_config_dword(ctrl->pci_bus, *dev_num, PCI_VENDOR_ID, &work); in PCI_GetBusDevHelper()
259 dbg("bus_num %d devfn %d\n", *bus_num, *dev_num); in PCI_GetBusDevHelper()
260 pci_bus_read_config_dword(ctrl->pci_bus, *dev_num, PCI_CLASS_REVISION, &work); in PCI_GetBusDevHelper()
[all …]
/drivers/cdx/
Dcdx.c97 cdx_dev->dev_num, &dev_config); in cdx_dev_reset()
484 cdx_dev->dev_num = dev_params->dev_num; in cdx_device_add()
498 cdx_dev->dev_num); in cdx_device_add()
Dcdx.h30 u8 dev_num; member
/drivers/media/usb/hdpvr/
Dhdpvr-core.c275 int dev_num; in hdpvr_probe() local
373 dev_num = atomic_inc_return(&dev_nr); in hdpvr_probe()
374 if (dev_num >= HDPVR_MAX) { in hdpvr_probe()
383 video_nr[dev_num]); in hdpvr_probe()
/drivers/platform/chrome/wilco_ec/
Dtelemetry.c424 dev_t dev_num = 0; in telem_module_init() local
434 ret = alloc_chrdev_region(&dev_num, 0, TELEM_MAX_DEV, TELEM_DEV_NAME); in telem_module_init()
439 telem_major = MAJOR(dev_num); in telem_module_init()
Devent.c531 dev_t dev_num = 0; in event_module_init() local
541 ret = alloc_chrdev_region(&dev_num, 0, EVENT_MAX_DEV, EVENT_DEV_NAME); in event_module_init()
546 event_major = MAJOR(dev_num); in event_module_init()
/drivers/nfc/st21nfca/
Dcore.c944 int dev_num; in st21nfca_hci_probe() local
966 dev_num = find_first_zero_bit(dev_mask, ST21NFCA_NUM_DEVICES); in st21nfca_hci_probe()
967 if (dev_num >= ST21NFCA_NUM_DEVICES) { in st21nfca_hci_probe()
972 set_bit(dev_num, dev_mask); in st21nfca_hci_probe()
975 "ST21AH", dev_num); in st21nfca_hci_probe()
/drivers/nfc/st-nci/
Dse.c551 int r, dev_num; in st_nci_hci_network_init() local
584 dev_num = find_first_zero_bit(dev_mask, ST_NCI_NUM_DEVICES); in st_nci_hci_network_init()
585 if (dev_num >= ST_NCI_NUM_DEVICES) { in st_nci_hci_network_init()
592 "%s%2x", "ST21BH", dev_num); in st_nci_hci_network_init()
/drivers/s390/char/
Dvmlogrdr.c311 int dev_num = 0; in vmlogrdr_open() local
316 dev_num = iminor(inode); in vmlogrdr_open()
317 if (dev_num >= MAXMINOR) in vmlogrdr_open()
319 logptr = &sys_ser[dev_num]; in vmlogrdr_open()
/drivers/net/can/usb/peak_usb/
Dpcan_usb_pro.h116 __le32 dev_num; member

123