Home
last modified time | relevance | path

Searched refs:devinfo (Results 1 – 25 of 126) sorted by relevance

123456

/freebsd-12-stable/sys/dev/sound/pci/hda/
Dhdaa.c52 #define hdaa_lock(devinfo) snd_mtxlock((devinfo)->lock) argument
53 #define hdaa_unlock(devinfo) snd_mtxunlock((devinfo)->lock) argument
54 #define hdaa_lockassert(devinfo) snd_mtxassert((devinfo)->lock) argument
55 #define hdaa_lockowned(devinfo) mtx_owned((devinfo)->lock) argument
202 hdaa_audio_ctl_each(struct hdaa_devinfo *devinfo, int *index) in hdaa_audio_ctl_each() argument
204 if (devinfo == NULL || in hdaa_audio_ctl_each()
205 index == NULL || devinfo->ctl == NULL || in hdaa_audio_ctl_each()
206 devinfo->ctlcnt < 1 || in hdaa_audio_ctl_each()
207 *index < 0 || *index >= devinfo->ctlcnt) in hdaa_audio_ctl_each()
209 return (&devinfo->ctl[(*index)++]); in hdaa_audio_ctl_each()
[all …]
Dhdaa_patches.c156 id = hdaa_codec_id(w->devinfo); in hdac_pin_patch()
157 subid = hdaa_card_id(w->devinfo); in hdac_pin_patch()
467 device_printf(w->devinfo->dev, in hdac_pin_patch()
477 struct hdaa_devinfo *devinfo = w->devinfo; in hdaa_widget_patch() local
485 switch (hdaa_codec_id(devinfo)) { in hdaa_widget_patch()
501 if (hda_get_vendor_id(devinfo->dev) == REALTEK_VENDORID && in hdaa_widget_patch()
502 hdaa_codec_id(devinfo) != HDA_CODEC_ALC260) in hdaa_widget_patch()
514 if (hdaa_codec_id(devinfo) == HDA_CODEC_AD1984A && in hdaa_widget_patch()
519 device_printf(w->devinfo->dev, in hdaa_widget_patch()
530 hdaa_patch(struct hdaa_devinfo *devinfo) in hdaa_patch() argument
[all …]
Dhdaa.h114 struct hdaa_devinfo *devinfo; member
172 struct hdaa_devinfo *devinfo; member
227 struct hdaa_devinfo *devinfo; member
262 #define hdaa_codec_id(devinfo) \ argument
263 (((uint32_t)hda_get_vendor_id(devinfo->dev) << 16) + \
264 hda_get_device_id(devinfo->dev))
266 #define hdaa_card_id(devinfo) \ argument
267 (((uint32_t)hda_get_subdevice_id(devinfo->dev) << 16) + \
268 hda_get_subvendor_id(devinfo->dev))
274 void hdaa_patch(struct hdaa_devinfo *devinfo);
[all …]
/freebsd-12-stable/stand/efi/gptboot/
Dproto.c62 dev_info_t *devinfo = (dev_info_t *)dskp->devinfo; in drvread() local
63 EFI_BLOCK_IO *dev = devinfo->dev; in drvread()
71 "status: %lu\n", devinfo->dev, in drvread()
89 dev_info_t *devinfo = (dev_info_t *)dskp->devinfo; in drvwrite() local
90 EFI_BLOCK_IO *dev = devinfo->dev; in drvwrite()
101 "status: %lu\n", devinfo->dev, in drvwrite()
116 dev_info_t *devinfo = (dev_info_t *)dskp->devinfo; in drvsize() local
117 EFI_BLOCK_IO *dev = devinfo->dev; in drvsize()
143 dev_info_t *devinfo; in probe_handle() local
177 devinfo = malloc(sizeof(*devinfo)); in probe_handle()
[all …]
/freebsd-12-stable/stand/efi/boot1/
Dzfs_module.c46 dev_info_t *devinfo = priv; in ldi_get_size() local
48 return (devinfo->dev->Media->BlockSize * in ldi_get_size()
49 (devinfo->dev->Media->LastBlock + 1)); in ldi_get_size()
55 dev_info_t *devinfo; in vdev_read() local
61 devinfo = (dev_info_t *)priv; in vdev_read()
62 lba = off / devinfo->dev->Media->BlockSize; in vdev_read()
63 remainder = off % devinfo->dev->Media->BlockSize; in vdev_read()
72 size = roundup2(bytes + remainder, devinfo->dev->Media->BlockSize); in vdev_read()
75 rb_size = devinfo->dev->Media->BlockSize; in vdev_read()
86 status = devinfo->dev->ReadBlocks(devinfo->dev, in vdev_read()
[all …]
Dproto.c58 dev_info_t *devinfo; in probe_handle() local
98 devinfo = malloc(sizeof(*devinfo)); in probe_handle()
99 if (devinfo == NULL) { in probe_handle()
103 devinfo->dev = blkio; in probe_handle()
104 devinfo->devpath = devpath; in probe_handle()
105 devinfo->devhandle = h; in probe_handle()
106 devinfo->preferred = preferred; in probe_handle()
107 devinfo->next = NULL; in probe_handle()
110 devinfo->devdata = NULL; in probe_handle()
112 status = boot_modules[i]->probe(devinfo); in probe_handle()
[all …]
Dufs_module.c47 static dev_info_t *devinfo; variable
56 lba += devinfo->partoff; in dskread()
57 lba = lba / (devinfo->dev->Media->BlockSize / DEV_BSIZE); in dskread()
60 status = devinfo->dev->ReadBlocks(devinfo->dev, in dskread()
61 devinfo->dev->Media->MediaId, lba, size, buf); in dskread()
65 "status: %lu\n", devinfo->dev, in dskread()
66 devinfo->dev->Media->MediaId, (uintmax_t)lba, size, in dskread()
86 devinfo = dev; in init_dev()
94 devinfo->partoff = 0; in init_dev()
115 bs = devinfo->dev->Media->BlockSize; in init_dev()
[all …]
/freebsd-12-stable/sys/dev/aic7xxx/
Daic7xxx.c149 struct ahc_devinfo *devinfo);
165 struct ahc_devinfo *devinfo);
167 struct ahc_devinfo *devinfo,
171 struct ahc_devinfo *devinfo,
174 struct ahc_devinfo *devinfo);
176 struct ahc_devinfo *devinfo,
179 struct ahc_devinfo *devinfo,
182 struct ahc_devinfo *devinfo,
196 struct ahc_devinfo *devinfo);
198 struct ahc_devinfo *devinfo);
[all …]
Daic79xx.c120 struct ahd_devinfo *devinfo);
135 struct ahd_devinfo *devinfo,
139 struct ahd_devinfo *devinfo);
141 struct ahd_devinfo *devinfo,
144 struct ahd_devinfo *devinfo,
147 struct ahd_devinfo *devinfo);
149 struct ahd_devinfo *devinfo,
152 struct ahd_devinfo *devinfo,
155 struct ahd_devinfo *devinfo,
168 struct ahd_devinfo *devinfo);
[all …]
Daic79xx_osm.c729 struct ahd_devinfo devinfo; in ahd_set_tran_settings() local
740 ahd_compile_devinfo(&devinfo, SIM_SCSI_ID(ahd, sim), in ahd_set_tran_settings()
745 tinfo = ahd_fetch_transinfo(ahd, devinfo.channel, in ahd_set_tran_settings()
746 devinfo.our_scsiid, in ahd_set_tran_settings()
747 devinfo.target, &tstate); in ahd_set_tran_settings()
770 *discenable |= devinfo.target_mask; in ahd_set_tran_settings()
772 *discenable &= ~devinfo.target_mask; in ahd_set_tran_settings()
777 *tagenable |= devinfo.target_mask; in ahd_set_tran_settings()
779 *tagenable &= ~devinfo.target_mask; in ahd_set_tran_settings()
785 ahd_set_width(ahd, &devinfo, spi->bus_width, in ahd_set_tran_settings()
[all …]
Daic7xxx_osm.c603 struct ahc_devinfo devinfo; in ahc_action() local
616 ahc_compile_devinfo(&devinfo, SIM_SCSI_ID(ahc, sim), in ahc_action()
621 tinfo = ahc_fetch_transinfo(ahc, devinfo.channel, in ahc_action()
622 devinfo.our_scsiid, in ahc_action()
623 devinfo.target, &tstate); in ahc_action()
653 *discenable |= devinfo.target_mask; in ahc_action()
655 *discenable &= ~devinfo.target_mask; in ahc_action()
660 *tagenable |= devinfo.target_mask; in ahc_action()
662 *tagenable &= ~devinfo.target_mask; in ahc_action()
668 ahc_set_width(ahc, &devinfo, spi->bus_width, in ahc_action()
[all …]
/freebsd-12-stable/sys/dev/sound/pci/
Dspicds.c46 void *devinfo; member
69 codec->ctrl(codec->devinfo, cs, 0, cdti); in spicds_wrbit()
71 codec->ctrl(codec->devinfo, cs, 1, cdti); in spicds_wrbit()
87 codec->ctrl(codec->devinfo, 1, 1, 0); in spicds_wrcd()
89 codec->ctrl(codec->devinfo, 0, 1, 0); in spicds_wrcd()
130 codec->ctrl(codec->devinfo, 0, 1, 0); in spicds_wrcd()
132 codec->ctrl(codec->devinfo, 1, 1, 0); in spicds_wrcd()
135 codec->ctrl(codec->devinfo, 1, 1, 0); in spicds_wrcd()
142 spicds_create(device_t dev, void *devinfo, int num, spicds_ctrl ctrl) in spicds_create() argument
157 codec->devinfo = devinfo; in spicds_create()
/freebsd-12-stable/lib/libdevinfo/
DMakefile4 LIB= devinfo
5 SRCS= devinfo.c
6 INCS= devinfo.h
7 MAN= devinfo.3
/freebsd-12-stable/sys/dev/adb/
Dadb_bus.c127 sc->devinfo[i].address = i; in adb_bus_enumerate()
128 sc->devinfo[i].default_address = 0; in adb_bus_enumerate()
148 r3 = sc->devinfo[i].register3; in adb_bus_enumerate()
159 sc->devinfo[next_free].default_address = i; in adb_bus_enumerate()
167 r3 = sc->devinfo[i].register3; in adb_bus_enumerate()
177 sc->devinfo[i].default_address = i; in adb_bus_enumerate()
178 sc->devinfo[(int)(first_relocated)].default_address = 0; in adb_bus_enumerate()
185 if (sc->devinfo[i].default_address) { in adb_bus_enumerate()
187 device_set_ivars(sc->children[i], &sc->devinfo[i]); in adb_bus_enumerate()
223 memcpy(&sc->devinfo[addr].register3,data,2); in adb_receive_raw_packet()
[all …]
/freebsd-12-stable/cddl/usr.sbin/dwatch/libexec/
Dio22 [ "$CUSTOM_TEST" ] || EVENT_TEST='this->devinfo.dev_name != ""'
28 this devinfo_t devinfo;
76 this->devinfo = xlate <devinfo_t> ((struct devstat *)args[1]);
77 this->device_type = device_type[(int)this->devinfo.dev_type];
78 this->device_if = device_if[(int)this->devinfo.dev_type];
79 this->device_entry = strjoin(this->devinfo.dev_name,
80 lltostr(this->devinfo.dev_minor));
/freebsd-12-stable/usr.sbin/devinfo/
DMakefile3 PROG= devinfo
4 MAN= devinfo.8
6 LIBADD= devinfo
/freebsd-12-stable/sys/mips/broadcom/
Dbcm_nvram_cfe.c205 int devinfo; in bcm_nvram_find_cfedev() local
215 if ((devinfo = cfe_getdevinfo(dname)) < 0) { in bcm_nvram_find_cfedev()
216 if (devinfo != CFE_ERR_DEVNOTFOUND) { in bcm_nvram_find_cfedev()
218 "%d\n", dname, devinfo); in bcm_nvram_find_cfedev()
262 int cerr, devinfo, dtype, rlen; in bcm_nvram_iocfe_init() local
280 if ((devinfo = cfe_getdevinfo(iocfe->dname)) < 0) { in bcm_nvram_iocfe_init()
281 IOCFE_LOG(iocfe, "cfe_getdevinfo() failed: %d\n", devinfo); in bcm_nvram_iocfe_init()
287 dtype = devinfo & CFE_DEV_MASK; in bcm_nvram_iocfe_init()
/freebsd-12-stable/sys/dev/pwm/
Dofw_pwmbus.c48 struct ofw_bus_devinfo devinfo; member
75 ivars->devinfo.obd_node = -1; in ofw_pwmbus_add_child()
88 ofw_bus_gen_destroy_devinfo(&ivars->devinfo); in ofw_pwmbus_child_deleted()
99 return (&ivars->devinfo); in ofw_pwmbus_get_devinfo()
163 if (ofw_bus_gen_setup_devinfo(&ivars->devinfo, node) != 0) { in ofw_pwmbus_attach()
/freebsd-12-stable/sys/dev/sound/pcm/
Dac97_if.m38 ac97_noinit(kobj_t obj, void *devinfo)
47 void *devinfo;
52 void *devinfo;
58 void *devinfo;
Dac97.h89 #define AC97_CREATE(dev, devinfo, cls) ac97_create(dev, devinfo, &cls ## _class) argument
97 struct ac97_info *ac97_create(device_t dev, void *devinfo, kobj_class_t cls);
Dac97.c62 void *devinfo; member
316 i[0] = AC97_READ(codec->methods, codec->devinfo, reg); in ac97_rdcd()
317 i[1] = AC97_READ(codec->methods, codec->devinfo, reg); in ac97_rdcd()
319 i[j-- & 1] = AC97_READ(codec->methods, codec->devinfo, reg); in ac97_rdcd()
328 return AC97_READ(codec->methods, codec->devinfo, reg); in ac97_rdcd()
334 AC97_WRITE(codec->methods, codec->devinfo, reg, val); in ac97_wrcd()
611 codec->count = AC97_INIT(codec->methods, codec->devinfo); in ac97_initmixer()
800 codec->count = AC97_INIT(codec->methods, codec->devinfo); in ac97_reinitmixer()
828 ac97_create(device_t dev, void *devinfo, kobj_class_t cls) in ac97_create() argument
839 codec->devinfo = devinfo; in ac97_create()
/freebsd-12-stable/usr.sbin/fwcontrol/
Dfwcontrol.c178 struct fw_devinfo *devinfo; in list_dev() local
190 devinfo = &data->dev[i]; in list_dev()
191 fweui2eui64(&devinfo->eui, &eui); in list_dev()
196 (devinfo->status || i == 0) ? devinfo->dst : -1, in list_dev()
198 devinfo->status, in list_dev()
335 struct fw_devinfo *devinfo; in set_pri_req() local
347 devinfo = &data->dev[i]; in set_pri_req()
348 if (!devinfo->status) in set_pri_req()
350 reg = read_write_quad(fd, devinfo->eui, BUGET_REG, 1, 0); in set_pri_req()
351 fweui2eui64(&devinfo->eui, &eui); in set_pri_req()
[all …]
/freebsd-12-stable/sys/dev/bxe/
Dbxe.h1073 #define IS_MULTI_VNIC(sc) ((sc)->devinfo.mf_info.multi_vnics_mode)
1074 #define VNICS_PER_PORT(sc) ((sc)->devinfo.mf_info.vnics_per_port)
1076 ((sc)->devinfo.mf_info.vnics_per_port * \
1085 #define OVLAN(sc) ((sc)->devinfo.mf_info.ext_id)
1086 #define VIF_ID(sc) ((sc)->devinfo.mf_info.ext_id)
1089 #define NIV_DEFAULT_VLAN(sc) ((sc)->devinfo.mf_info.default_vlan)
1092 #define NIV_ALLOWED_PRIORITIES(sc) ((sc)->devinfo.mf_info.niv_allowed_priorities)
1095 #define NIV_DEFAULT_COS(sc) ((sc)->devinfo.mf_info.niv_default_cos)
1100 #define AFEX_VLAN_MODE(sc) ((sc)->devinfo.mf_info.afex_vlan_mode)
1110 ((sc)->devinfo.mf_info.mf_mode != 0))
[all …]
/freebsd-12-stable/sys/dev/acpica/
Dacpi.c1311 ACPI_DEVICE_INFO *devinfo; in acpi_set_resource() local
1329 if (ACPI_SUCCESS(AcpiGetObjectInfo(ad->ad_handle, &devinfo))) { in acpi_set_resource()
1330 if ((devinfo->Flags & ACPI_PCI_ROOT_BRIDGE) != 0) { in acpi_set_resource()
1337 AcpiOsFree(devinfo); in acpi_set_resource()
1341 AcpiOsFree(devinfo); in acpi_set_resource()
1626 ACPI_DEVICE_INFO *devinfo; in acpi_isa_get_logicalid() local
1634 ACPI_FAILURE(AcpiGetObjectInfo(h, &devinfo))) in acpi_isa_get_logicalid()
1637 pnpid = (devinfo->Valid & ACPI_VALID_HID) != 0 && in acpi_isa_get_logicalid()
1638 devinfo->HardwareId.Length >= ACPI_EISAID_STRING_SIZE ? in acpi_isa_get_logicalid()
1639 PNP_EISAID(devinfo->HardwareId.String) : 0; in acpi_isa_get_logicalid()
[all …]
/freebsd-12-stable/libexec/rpc.rstatd/
Drstat_proc.c317 stats.dinfo = (struct devinfo *)malloc(sizeof(struct devinfo)); in haveadisk()
318 bzero(stats.dinfo, sizeof(struct devinfo)); in haveadisk()
361 stats.dinfo = (struct devinfo *)malloc(sizeof(struct devinfo)); in updatexfers()
362 bzero(stats.dinfo, sizeof(struct devinfo)); in updatexfers()

123456