Home
last modified time | relevance | path

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

1234

/linux/drivers/cdx/controller/
H A 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()
186 MCDI_SET_DWORD(inbuf, CDX_DEVICE_RESET_IN_DEVICE, dev_num); in cdx_mcdi_reset_device()
195 u8 dev_num, u32 *flags) in cdx_mcdi_ctrl_flag_get() argument
218 u8 dev_num, bool enable, int bit_pos) in cdx_mcdi_ctrl_flag_set() argument
228 ret = cdx_mcdi_ctrl_flag_get(cdx, bus_num, dev_num, &flags); in cdx_mcdi_ctrl_flag_set()
246 u8 dev_num, bool enable) in cdx_mcdi_bus_master_enable() argument
248 return cdx_mcdi_ctrl_flag_set(cdx, bus_num, dev_num, enable, in cdx_mcdi_bus_master_enable()
253 u8 dev_num, bool enable) in cdx_mcdi_msi_enable() argument
[all …]
H A Dcdx_controller.c61 u8 bus_num, u8 dev_num, in cdx_configure_device() argument
75 ret = cdx_mcdi_write_msi(cdx->priv, bus_num, dev_num, msi_index, addr, data); in cdx_configure_device()
78 ret = cdx_mcdi_reset_device(cdx->priv, bus_num, dev_num); in cdx_configure_device()
81 ret = cdx_mcdi_bus_master_enable(cdx->priv, bus_num, dev_num, in cdx_configure_device()
85 ret = cdx_mcdi_msi_enable(cdx->priv, bus_num, dev_num, dev_config->msi_enable); in cdx_configure_device()
97 u8 bus_num, dev_num, num_cdx_bus; in cdx_scan_devices() local
127 for (dev_num = 0; dev_num < num_cdx_dev; dev_num++) { in cdx_scan_devices()
132 dev_num, &dev_params); in cdx_scan_devices()
136 bus_num, dev_num, ret); in cdx_scan_devices()
146 dev_num, ret); in cdx_scan_devices()
[all …]
H A Dmcdi_functions.h47 u8 bus_num, u8 dev_num,
85 int cdx_mcdi_write_msi(struct cdx_mcdi *cdx, u8 bus_num, u8 dev_num,
97 u8 bus_num, u8 dev_num);
110 u8 dev_num, bool enable);
123 u8 dev_num, bool enable);
/linux/drivers/soundwire/
H A Dbus.c364 msg->dev_num = dev_num; in sdw_fill_msg()
752 int ret, dev_num; in sdw_assign_device_num() local
763 dev_num); in sdw_assign_device_num()
764 return dev_num; in sdw_assign_device_num()
766 slave->dev_num = dev_num; in sdw_assign_device_num()
777 slave->dev_num); in sdw_assign_device_num()
780 dev_num = slave->dev_num; in sdw_assign_device_num()
786 dev_num, ret); in sdw_assign_device_num()
933 slave->dev_num); in sdw_modify_slave_status()
1024 dev_num); in sdw_bus_wait_for_clk_prep_deprep()
[all …]
H A 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);
H A 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()
H A Dintel_auxdevice.c96 int dev_num) in generic_new_peripheral_assigned() argument
113 if (dev_num < dev_num_min || dev_num > dev_num_max) { in generic_new_peripheral_assigned()
115 __func__, dev_num, slave->prop.wake_capable); in generic_new_peripheral_assigned()
120 sdw->link_res->hw_ops->program_sdi(sdw, dev_num); in generic_new_peripheral_assigned()
268 ida_free(&intel_peripheral_ida, slave->dev_num); in intel_put_device_num_ida()
/linux/tools/iio/
H A Diio_generic_buffer.c360 int dev_num = -1, trig_num = -1; in main() local
424 dev_num = strtoul(optarg, &dummy, 10); in main()
455 if (dev_num < 0 && !device_name) { in main()
460 } else if (dev_num >= 0 && device_name) { in main()
465 } else if (dev_num < 0) { in main()
466 dev_num = find_type_by_name(device_name, "iio:device"); in main()
467 if (dev_num < 0) { in main()
469 ret = dev_num; in main()
473 printf("iio device number being used is %d\n", dev_num); in main()
520 "%s-dev%d", device_name, dev_num); in main()
[all …]
H A Diio_event_monitor.c353 int dev_num; in main() local
371 dev_num = find_type_by_name(device_name, "iio:device"); in main()
372 if (dev_num >= 0) { in main()
374 device_name, dev_num); in main()
375 ret = asprintf(&chrdev_name, "/dev/iio:device%d", dev_num); in main()
379 ret = asprintf(&dev_dir_name, "%siio:device%d", iio_dir, dev_num); in main()
/linux/drivers/net/ethernet/marvell/prestera/
H A 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()
/linux/tools/testing/selftests/zram/
H A Dzram_lib.sh77 echo "create '$dev_num' zram device(s)"
84 dev_end=$(($dev_start + $dev_num - 1))
97 modprobe zram num_devices=$dev_num
111 modprobe zram num_devices=$dev_num
115 dev_end=$(($dev_num - 1))
H A Dzram02.sh16 dev_num=1
/linux/drivers/char/tpm/
H A Dtpm-chip.c275 idr_remove(&dev_nums_idr, chip->dev_num); in tpm_dev_release()
346 chip->dev_num = rc; in tpm_chip_alloc()
355 if (chip->dev_num == 0) in tpm_chip_alloc()
358 chip->dev.devt = MKDEV(MAJOR(tpm_devt), chip->dev_num); in tpm_chip_alloc()
360 rc = dev_set_name(&chip->dev, "tpm%d", chip->dev_num); in tpm_chip_alloc()
440 idr_replace(&dev_nums_idr, chip, chip->dev_num); in tpm_add_char_device()
456 idr_replace(&dev_nums_idr, NULL, chip->dev_num); in tpm_del_char_device()
548 "tpm-rng-%d", chip->dev_num); in tpm_add_hwrng()
/linux/drivers/staging/greybus/
H A Dauthentication.c36 dev_t dev_num; member
334 cap->dev_num = MKDEV(MAJOR(cap_dev_num), minor); in gb_cap_connection_init()
337 ret = cdev_add(&cap->cdev, cap->dev_num, 1); in gb_cap_connection_init()
342 cap->class_device = device_create(&cap_class, cap->parent, cap->dev_num, in gb_cap_connection_init()
376 device_destroy(&cap_class, cap->dev_num); in gb_cap_connection_exit()
378 ida_free(&cap_minors_map, MINOR(cap->dev_num)); in gb_cap_connection_exit()
H A Dfw-management.c35 dev_t dev_num; member
623 fw_mgmt->dev_num = MKDEV(MAJOR(fw_mgmt_dev_num), minor); in gb_fw_mgmt_connection_init()
626 ret = cdev_add(&fw_mgmt->cdev, fw_mgmt->dev_num, 1); in gb_fw_mgmt_connection_init()
632 fw_mgmt->dev_num, NULL, in gb_fw_mgmt_connection_init()
666 device_destroy(&fw_mgmt_class, fw_mgmt->dev_num); in gb_fw_mgmt_connection_exit()
668 ida_free(&fw_mgmt_minors_map, MINOR(fw_mgmt->dev_num)); in gb_fw_mgmt_connection_exit()
/linux/drivers/pci/hotplug/
H A 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()
216 *dev_num = tdevice; in PCI_ScanBusForNonBridge()
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()
264 pci_bus_read_config_byte(ctrl->pci_bus, *dev_num, PCI_SECONDARY_BUS, &tbus); in PCI_GetBusDevHelper()
266 if (PCI_ScanBusForNonBridge(ctrl, tbus, dev_num) == 0) { in PCI_GetBusDevHelper()
[all …]
/linux/drivers/cdx/
H A Dcdx_msi.c65 cdx->ops->dev_configure(cdx, cdx_dev->bus_num, cdx_dev->dev_num, &dev_config); in cdx_msi_write_irq_unlock()
76 return cdx->ops->dev_configure(cdx, cdx_dev->bus_num, cdx_dev->dev_num, in cdx_enable_msi()
92 cdx->ops->dev_configure(cdx, cdx_dev->bus_num, cdx_dev->dev_num, &dev_config); in cdx_disable_msi()
/linux/sound/sparc/
H A Damd7930.c991 static int dev_num; in amd7930_sbus_probe() local
998 if (dev_num >= SNDRV_CARDS) in amd7930_sbus_probe()
1000 if (!enable[dev_num]) { in amd7930_sbus_probe()
1001 dev_num++; in amd7930_sbus_probe()
1005 err = snd_card_new(&op->dev, index[dev_num], id[dev_num], in amd7930_sbus_probe()
1019 irq, dev_num, &amd)) < 0) in amd7930_sbus_probe()
1037 dev_num++; in amd7930_sbus_probe()
/linux/include/net/bluetooth/
H A Dhci_sock.h146 __u16 dev_num; member
147 struct hci_dev_req dev_req[] __counted_by(dev_num);
/linux/tools/counter/
H A Dcounter_watch_events.c196 int c, fd, i, ret, rc = 0, debug = 0, loop = 0, dev_num = 0, nwatch = 0; in main() local
215 dev_num = strtoul(optarg, NULL, 10); in main()
338 ret = asprintf(&device_name, "/dev/counter%d", dev_num); in main()
/linux/net/bluetooth/rfcomm/
H A Dtty.c508 u16 dev_num; in rfcomm_get_dev_list() local
512 if (get_user(dev_num, (u16 __user *) arg)) in rfcomm_get_dev_list()
515 if (!dev_num || dev_num > (PAGE_SIZE * 4) / sizeof(*di)) in rfcomm_get_dev_list()
518 dl = kzalloc(struct_size(dl, dev_info, dev_num), GFP_KERNEL); in rfcomm_get_dev_list()
522 dl->dev_num = dev_num; in rfcomm_get_dev_list()
537 if (++n >= dev_num) in rfcomm_get_dev_list()
543 dl->dev_num = n; in rfcomm_get_dev_list()
/linux/drivers/media/usb/hdpvr/
H A 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()
/linux/include/linux/cdx/
H A Dcdx_bus.h53 u8 bus_num, u8 dev_num,
156 u8 dev_num; member
/linux/arch/mips/pci/
H A Dpci-octeon.c239 int dev_num; in octeon_pci_pcibios_map_irq() local
244 dev_num = dev->devfn >> 3; in octeon_pci_pcibios_map_irq()
245 if (dev_num < strlen(interrupts)) in octeon_pci_pcibios_map_irq()
246 irq_num = ((interrupts[dev_num] - 'A' + pin - 1) & 3) + in octeon_pci_pcibios_map_irq()
/linux/drivers/platform/chrome/wilco_ec/
H A Dtelemetry.c429 dev_t dev_num = 0; in telem_module_init() local
439 ret = alloc_chrdev_region(&dev_num, 0, TELEM_MAX_DEV, TELEM_DEV_NAME); in telem_module_init()
444 telem_major = MAJOR(dev_num); in telem_module_init()

1234