/freebsd/tools/tools/drm/ |
H A D | gen-drm_pciids | 29 my $device_id = uc($2); 32 $pciids{$current_vendor_define}{$device_id} = { 61 my $device_id = uc($2); 65 $pciids{$current_vendor_define}{$device_id} = { 103 my $device_id = uc($1); 105 $pciids{$current_vendor_id}{'devices'}{$device_id} = $device_name; 138 foreach my $device_id (sort keys(%{$linux_pciids{$vendor_define}})) { 139 my $vendor_id = $linux_pciids{$vendor_define}{$device_id}{'vendor_id'}; 141 if (exists($freebsd_pciids{$vendor_define}{$device_id})) { 142 print STDERR " $vendor_define: $vendor_id:$device_id already in header\n"; [all …]
|
/freebsd/usr.sbin/mfiutil/ |
H A D | mfi_drive.c | 56 mfi_drive_name(struct mfi_pd_info *pinfo, uint16_t device_id, uint32_t def) in mfi_drive_name() argument 70 if (device_id == 0xffff) in mfi_drive_name() 73 snprintf(buf, sizeof(buf), "%2u", device_id); in mfi_drive_name() 82 if (mfi_pd_get_info(fd, device_id, &info, NULL) < 0) { in mfi_drive_name() 83 warn("Failed to fetch info for drive %2u", device_id); in mfi_drive_name() 95 if (device_id == 0xffff) in mfi_drive_name() 98 error = snprintf(p, len, "%2u", device_id); in mfi_drive_name() 115 else if (pinfo->encl_device_id == pinfo->ref.v.device_id) in mfi_drive_name() 161 mfi_lookup_drive(int fd, char *drive, uint16_t *device_id) in mfi_lookup_drive() argument 175 *device_id = val; in mfi_lookup_drive() [all …]
|
H A D | mfi_show.c | 349 uint16_t device_id; in show_config() local 384 device_id = ar->pd[j].ref.v.device_id; in show_config() 386 device_id, in show_config() 388 if (device_id != 0xffff) { in show_config() 389 if (mfi_pd_get_info(fd, device_id, &pinfo, in show_config() 425 "global", mfi_drive_name(NULL, sp->ref.v.device_id, in show_config() 427 if (mfi_pd_get_info(fd, sp->ref.v.device_id, &pinfo, NULL) < 0) in show_config() 562 if (mfi_pd_get_info(fd, list->addr[i].device_id, &info, in show_drives() 566 list->addr[i].device_id); in show_drives() 585 if (mfi_pd_get_info(fd, list->addr[i].device_id, &info, in show_drives() [all …]
|
H A D | mfi_config.c | 292 uint16_t device_id; in parse_array() local 351 error = mfi_lookup_drive(fd, cp, &device_id); in parse_array() 358 if (mfi_pd_get_info(fd, device_id, pinfo, NULL) < 0) { in parse_array() 367 warnx("Drive %u is not available", device_id); in parse_array() 374 warnx("Drive %u is foreign", device_id); in parse_array() 437 array_info->drives[i].ref.v.device_id, in build_array() 929 uint16_t device_id; in add_spare() local 948 error = mfi_lookup_drive(fd, av[1], &device_id); in add_spare() 952 if (mfi_pd_get_info(fd, device_id, &info, NULL) < 0) { in add_spare() 959 warnx("Drive %u is not available", device_id); in add_spare() [all …]
|
H A D | mfi_foreign.c | 181 uint16_t device_id; in foreign_show_cfg() local 192 device_id = ar->pd[k].ref.v.device_id; in foreign_show_cfg() 193 if (device_id == 0xffff) in foreign_show_cfg() 196 printf(" drive %u %s\n", device_id, in foreign_show_cfg()
|
H A D | mfiutil.h | 154 int mfi_lookup_drive(int fd, char *drive, uint16_t *device_id); 163 int mfi_pd_get_info(int fd, uint16_t device_id, struct mfi_pd_info *info, 168 const char *mfi_drive_name(struct mfi_pd_info *pinfo, uint16_t device_id,
|
H A D | mfi_patrol.c | 168 if (mfi_pd_get_info(fd, list->addr[i].device_id, &info, in show_patrol() 172 list->addr[i].device_id); in show_patrol() 180 list->addr[i].device_id, in show_patrol()
|
/freebsd/sys/dev/wbwd/ |
H A D | wbwd.c | 125 uint8_t device_id; member 130 .device_id = 0x52, 135 .device_id = 0x59, 140 .device_id = 0x60, 145 .device_id = 0x68, 150 .device_id = 0x70, 155 .device_id = 0x82, 160 .device_id = 0x85, 165 .device_id = 0x88, 170 .device_id = 0xa0, [all …]
|
/freebsd/sys/arm/xilinx/ |
H A D | zy7_mp.c | 60 int device_id; in zynq7_mp_setmaxid() local 71 device_id = bus_space_read_4(fdtbus_bs_tag, slcr_handle, 0) & in zynq7_mp_setmaxid() 80 if (device_id == ZY7_SLCR_PSS_IDCODE_DEVICE_7Z007S || in zynq7_mp_setmaxid() 81 device_id == ZY7_SLCR_PSS_IDCODE_DEVICE_7Z012S || in zynq7_mp_setmaxid() 82 device_id == ZY7_SLCR_PSS_IDCODE_DEVICE_7Z014S) { in zynq7_mp_setmaxid()
|
/freebsd/sys/dev/isci/ |
H A D | isci_oem_parameters.c | 45 uint16_t device_id; member 107 uint16_t device_id = isci->pci_common_header.device_id; in isci_get_oem_parameters() local 118 pcir_header->device_id == device_id) in isci_get_oem_parameters()
|
/freebsd/sys/dev/mrsas/ |
H A D | mrsas_cam.c | 75 union ccb *ccb, u_int32_t device_id, 266 u_int32_t device_id; in mrsas_action() local 282 device_id = ccb_h->target_id; in mrsas_action() 288 sc->pd_list[device_id].driveState != MR_PD_STATE_SYSTEM) { in mrsas_action() 793 u_int32_t device_id; in mrsas_build_ldio_rw() local 796 device_id = ccb_h->target_id; in mrsas_build_ldio_rw() 799 io_request->RaidContext.raid_context.VirtualDiskTgtId = htole16(device_id); in mrsas_build_ldio_rw() 806 if (mrsas_setup_io(sc, cmd, ccb, device_id, io_request) != SUCCESS) in mrsas_build_ldio_rw() 835 u_int32_t device_id = io_info->ldTgtId; in mrsas_stream_detect() local 836 LD_STREAM_DETECT *current_ld_SD = sc->streamDetectByLD[device_id]; in mrsas_stream_detect() [all …]
|
/freebsd/sys/dev/isci/scil/ |
H A D | scic_sds_library.c | 122 this_library->pci_device = pci_header->device_id; in scic_library_set_pci_info() 199 U16 device_id; in scic_library_get_pci_device_controller_count() local 202 device_id = this_library->pci_device; in scic_library_get_pci_device_controller_count() 210 ((device_id & 0xFFF1) == 0x1D60) in scic_library_get_pci_device_controller_count()
|
/freebsd/sys/arm/mv/clk/ |
H A D | periph_clk_d.c | 70 dev_id = device_def->common_def.device_id; in a37x0_periph_d_register_full_clk_dd() 134 dev_id = device_def->common_def.device_id; in a37x0_periph_d_register_full_clk() 143 A37x0_INTERNAL_CLK_ID(device_def->common_def.device_id, MUX_POS)); in a37x0_periph_d_register_full_clk() 149 A37x0_INTERNAL_CLK_ID(device_def->common_def.device_id, DIV1_POS)); in a37x0_periph_d_register_full_clk() 188 dev_id = device_def->common_def.device_id; in a37x0_periph_d_register_periph_cpu() 233 dev_id = device_def->common_def.device_id; in a37x0_periph_d_register_mdd()
|
H A D | periph.h | 65 .common_def.device_id = _id, \ 107 .common_def.device_id = _id, \ 140 .common_def.device_id = _id, \ 165 .common_def.device_id = _id, \ 183 .common_def.device_id = _id, \ 217 .common_def.device_id = _id, \ 239 .common_def.device_id = _id, \ 261 .common_def.device_id = _id, \ 363 int device_id; member
|
H A D | periph_clk_mux_gate.c | 68 dev_id = device_def->common_def.device_id; in a37x0_periph_register_mux_gate() 120 dev_id = device_def->common_def.device_id; in a37x0_periph_register_mux_gate_fixed()
|
/freebsd/contrib/ofed/infiniband-diags/src/ |
H A D | vendstat.c | 69 uint16_t device_id; member 169 static int is_ext_fw_info_supported(uint16_t device_id) { in is_ext_fw_info_supported() argument 172 if (ext_fw_info_device[i][0] <= device_id && in is_ext_fw_info_supported() 173 device_id <= ext_fw_info_device[i][1]) in is_ext_fw_info_supported() 469 if (is_ext_fw_info_supported(ntohs(gi_is3->hw_info.device_id))) { in main() 489 printf("hw_dev_id: 0x%04x\n", ntohs(gi_is3->hw_info.device_id)); in main() 508 if (ntohs(gi_is3->hw_info.device_id) != IS3_DEVICE_ID) { in main() 511 ntohs(gi_is3->hw_info.device_id)); in main()
|
/freebsd/sys/arm/freescale/vybrid/ |
H A D | vf_edma.c | 157 if ((sc->device_id == 0 && mux_grp == 1) || \ in channel_configure() 158 (sc->device_id == 1 && mux_grp == 0)) { in channel_configure() 160 mux_num = (sc->device_id * 2) + 1; in channel_configure() 163 mux_num = sc->device_id * 2; in channel_configure() 288 sc->device_id = dts_value; in edma_attach()
|
/freebsd/sys/dev/qat/qat_common/ |
H A D | qat_uclo.c | 1256 unsigned int device_id = pci_get_device(GET_DEV(handle->accel_dev)); in qat_uclo_map_simg() local 1270 ICP_QAT_CSS_FWSK_MODULUS_LEN(device_id) + in qat_uclo_map_simg() 1271 ICP_QAT_CSS_FWSK_EXPONENT_LEN(device_id); in qat_uclo_map_simg() 1273 suof_img_hdr->css_signature + ICP_QAT_CSS_SIGNATURE_LEN(device_id); in qat_uclo_map_simg() 1503 unsigned int device_id = pci_get_device(GET_DEV(handle->accel_dev)); in qat_uclo_broadcast_load_fw() local 1505 if (IS_QAT_GEN4(device_id)) { in qat_uclo_broadcast_load_fw() 1545 if (IS_QAT_GEN4(device_id)) in qat_uclo_broadcast_load_fw() 1619 unsigned int device_id = pci_get_device(GET_DEV(handle->accel_dev)); in qat_uclo_map_auth_fw() local 1622 (ICP_QAT_AE_IMG_OFFSET(device_id) + ICP_QAT_CSS_MAX_IMAGE_LEN)) { in qat_uclo_map_auth_fw() 1627 ICP_QAT_CSS_AE_SIMG_LEN(device_id) + simg_offset : in qat_uclo_map_auth_fw() [all …]
|
/freebsd/sys/dev/sound/macio/ |
H A D | davbus.c | 65 int device_id; member 418 if (d->device_id == 5 || d->device_id == 11) { in screamer_set_outputs() 422 if (d->device_id == 8 || d->device_id == 11) { in screamer_set_outputs() 438 switch (d->device_id) { in screamer_read_status() 542 OF_getprop(sc->soundnode, "device-id", &sc->device_id, sizeof(u_int)); in davbus_attach()
|
/freebsd/sys/arm/broadcom/bcm2835/ |
H A D | bcm2835_mbox_prop.h | 81 uint32_t device_id; member 84 uint32_t device_id; member 96 uint32_t device_id; member 100 uint32_t device_id; member
|
/freebsd/sys/x86/iommu/ |
H A D | amd_drv.c | 465 sc->device_id = pci_get_rid(dev); in amdiommu_attach() 467 ild.devid = sc->device_id; in amdiommu_attach() 621 amdiommu_unit_by_device_id(u_int pci_seg, u_int device_id) in amdiommu_unit_by_device_id() argument 626 if (unit->unit_dom == pci_seg && unit->device_id == device_id) in amdiommu_unit_by_device_id() 641 u_int device_id; member 808 ifu->device_id = ivrs->Header.DeviceId; in amdiommu_find_unit_scan_0x11() 827 ifu->device_id = ivrs->Header.DeviceId; in amdiommu_find_unit_scan_0x10() 915 unit = amdiommu_unit_by_device_id(ifu.domain, ifu.device_id); in amdiommu_find_unit() 970 unit = amdiommu_unit_by_device_id(0, ifu.device_id); in amdiommu_find_unit_for_ioapic() 977 ifu.device_id); in amdiommu_find_unit_for_ioapic() [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7996/ |
H A D | mmio.c | 200 u32 device_id) in mt7996_mmio_init() argument 208 switch (device_id) { in mt7996_mmio_init() 229 mdev->rev = (device_id << 16) | (mt76_rr(dev, MT_HW_REV) & 0xff); in mt7996_mmio_init() 328 void __iomem *mem_base, u32 device_id) in mt7996_mmio_probe() argument 359 ret = mt7996_mmio_init(mdev, mem_base, device_id); in mt7996_mmio_probe()
|
/freebsd/sys/cam/nvme/ |
H A D | nvme_xpt.c | 414 if (path->device->device_id != NULL) { in nvme_probe_done() 415 free(path->device->device_id, M_CAMXPT); in nvme_probe_done() 416 path->device->device_id = NULL; in nvme_probe_done() 433 path->device->device_id = (uint8_t *) in nvme_probe_done() 437 if (path->device->device_id != NULL) { in nvme_probe_done() 438 did = (struct scsi_vpd_device_id *)path->device->device_id; in nvme_probe_done() 612 device->device_id = NULL; in nvme_alloc_device() 670 memcpy(cdai->buf, device->device_id, amt); in nvme_dev_advinfo()
|
/freebsd/sys/dev/qat/include/common/ |
H A D | icp_qat_hal.h | 205 #define GET_CSR_OFFSET(device_id, cap_offset_, ae_offset_, ep_offset_) \ argument 207 if (IS_QAT_GEN3(device_id)) { \ 211 } else if (IS_QAT_GEN4(device_id)) { \
|
/freebsd/contrib/ofed/libirdma/ |
H A D | irdma_umain.c | 224 unsigned vendor_id, device_id; in irdma_driver_init() local 238 sscanf(buf, "%i", &device_id); in irdma_driver_init() 242 if (device_id != hca_table[i].device) in irdma_driver_init()
|