Home
last modified time | relevance | path

Searched refs:u16 (Results 1 – 22 of 22) sorted by relevance

/pciutils/lib/
H A Di386-io-haiku.h89 intel_inb (u16 port) in intel_inb()
97 static inline u16
98 intel_inw (u16 port) in intel_inw()
100 port_io_args args = { POKE_SIGNATURE, port, sizeof(u16), 0 }; in intel_inw()
103 return (u16)args.value; in intel_inw()
107 intel_inl (u16 port) in intel_inl()
116 intel_outb (u8 value, u16 port) in intel_outb()
123 intel_outw (u16 value, u16 port) in intel_outw()
125 port_io_args args = { POKE_SIGNATURE, port, sizeof(u16), value }; in intel_outw()
130 intel_outl (u32 value, u16 port) in intel_outl()
H A Di386-io-beos.h27 intel_inb (u16 port) in intel_inb()
32 static inline u16
33 intel_inw (u16 port) in intel_inw()
35 return (u16)read_isa_io(0, (void *)(u32)port, sizeof(u16)); in intel_inw()
39 intel_inl (u16 port) in intel_inl()
45 intel_outb (u8 value, u16 port) in intel_outb()
51 intel_outw (u16 value, u16 port) in intel_outw()
57 intel_outl (u32 value, u16 port) in intel_outl()
H A Dpci.h139 u16 domain_16; /* 16-bit version of the PCI domain for backward compatibility */
145 u16 vendor_id, device_id; /* Identity of the device */
146 u16 device_class; /* PCI device class */
164 u16 subsys_vendor_id, subsys_id; /* Subsystem vendor id and subsystem id */
168 u16 rcd_link_status; /* Link Status register for RCD */
169 u16 rcd_link_ctrl; /* Link Control register for RCD */
188 u16 pci_read_word(struct pci_dev *, int pos) PCI_ABI;
192 int pci_write_word(struct pci_dev *, int pos, u16 data) PCI_ABI;
252 u16 id; /* PCI_CAP_ID_xxx */
253 u16 type; /* PCI_CAP_xxx */
H A Di386-ports.c88 u16 class, vendor; in intel_sanity_check()
155 ((u16 *) buf)[0] = cpu_to_le16(intel_inw(addr)); in conf1_read()
187 intel_outw(le16_to_cpu(((u16 *) buf)[0]), addr); in conf1_write()
249 ((u16 *) buf)[0] = cpu_to_le16(intel_inw(addr)); in conf2_read()
285 intel_outw(le16_to_cpu(* (u16 *) buf), addr); in conf2_write()
H A Dsylixos-device.c69 u16 data_word = -1; in sylixos_read()
91 ((u16 *) buf)[0] = cpu_to_le16(data_word); in sylixos_read()
110 u16 data_word; in sylixos_write()
129 data_word = le16_to_cpu(((u16 *) buf)[0]); in sylixos_write()
H A Dobsd-device.c63 u_int16_t u16[2]; in obsd_read() member
94 ((u16 *) buf)[0] = letoh16(u.u16[(pos % 4) / 2]); in obsd_read()
127 pi.pi_data = ((u16 *) buf)[0]; in obsd_write()
H A Dnames-net.c50 u16 counts[DNS_NUM_SECTIONS];
55 u16 rr_type;
56 u16 rr_class;
58 u16 rr_len;
H A Ddarwin.c146 ((u16 *) buf)[0] = cpu_to_le16((u16) param.value); in darwin_read()
182 param.value = le16_to_cpu(((u16 *) buf)[0]); in darwin_write()
H A Dtypes.h20 typedef WORD u16; typedef
31 typedef uint16_t u16; typedef
H A Dfbsd-device.c290 ((u16 *) buf)[0] = cpu_to_le16((u16) pi.pi_data); in fbsd_read()
335 pi.pi_data = le16_to_cpu(((u16 *) buf)[0]); in fbsd_write()
H A Dnbsd-libpci.c91 *(u16*)buf = cpu_to_le16(val >> shift); in nbsd_read()
132 val = (val & ~(0xffff << shift)) | (le16_to_cpu(*(u16*)buf) << shift); in nbsd_write()
H A Dmmio-ports.c324 ((u16 *) buf)[0] = physmem_readw(data); in conf1_ext_read()
372 physmem_writew(((u16 *) buf)[0], data); in conf1_ext_write()
H A Dsysdep.h23 typedef u16 word;
H A Decam.c80 u16 pci_segment;
1155 ((u16 *) buf)[0] = physmem_readw(reg);
1185 physmem_writew(((u16 *) buf)[0], reg);
H A Dwin32-kldbg.c619 u16 pci_segment;
/pciutils/
H A Dls-ecaps.c129 u16 w; in cap_aer()
236 u16 l; in cap_dpc()
268 u16 w; in cap_acs()
294 u16 w; in cap_ari()
316 u16 w; in cap_ats()
335 u16 w; in cap_pri()
361 u16 w; in cap_pasid()
383 u16 b; in cap_sriov()
384 u16 w; in cap_sriov()
457 u16 w; in cap_multicast()
[all …]
H A Dls-caps.c122 u16 command; in cap_pcix_nobridge()
162 u16 secstatus; in cap_pcix_bridge()
417 u16 lctr, lcnf, ftr, eh; in cap_ht_sec()
609 u16 w; in cap_msi()
693 u16 w; in cap_express_dev()
816 u16 w; in cap_express_link()
884 u16 w; in cap_express_slot()
1107 u16 w; in cap_express_dev2()
1338 u16 w; in cap_express_link2()
1403 u16 w; in cap_express_link_rcd()
[all …]
H A Dsetpci.c36 u16 cap_type; /* PCI_CAP_xxx or 0 */
37 u16 cap_id;
H A Dls-map.c73 u16 vendor = pci_read_word(p, PCI_VENDOR_ID); in do_map_bus()
H A DChangeLog1379 its own u8, u16, u32, byte and word types and uses what the user
/pciutils/lmr/
H A Dmargin_hw.c16 static u16 special_hw[][4] =
25 u16 vendor = pci_read_word(dev, PCI_VENDOR_ID); in detect_unique_hw()
26 u16 device = pci_read_word(dev, PCI_DEVICE_ID); in detect_unique_hw()
149 u16 lnk_ctl = pci_read_word(dev->dev, pcie->addr + PCI_EXP_LNKCTL); in margin_prep_dev()
160 u16 lnk_ctl2 = pci_read_word(dev->dev, pcie->addr + PCI_EXP_LNKCTL2); in margin_prep_dev()
176 u16 lnk_ctl = pci_read_word(dev->dev, pcie->addr + PCI_EXP_LNKCTL); in margin_restore_dev()
181 u16 lnk_ctl2 = pci_read_word(dev->dev, pcie->addr + PCI_EXP_LNKCTL2); in margin_restore_dev()
H A Dmargin.c23 typedef u16 margin_cmd;