Home
last modified time | relevance | path

Searched refs:bdf (Results 1 – 25 of 84) sorted by relevance

1234

/external/freetype/src/sfnt/
Dttbdf.c43 TT_BDF bdf = &face->bdf; in tt_face_free_bdf_props() local
46 if ( bdf->loaded ) in tt_face_free_bdf_props()
51 if ( bdf->table ) in tt_face_free_bdf_props()
52 FT_FRAME_RELEASE( bdf->table ); in tt_face_free_bdf_props()
54 bdf->table_end = NULL; in tt_face_free_bdf_props()
55 bdf->strings = NULL; in tt_face_free_bdf_props()
56 bdf->strings_size = 0; in tt_face_free_bdf_props()
65 TT_BDF bdf = &face->bdf; in tt_face_load_bdf_props() local
70 FT_ZERO( bdf ); in tt_face_load_bdf_props()
75 FT_FRAME_EXTRACT( length, bdf->table ) ) in tt_face_load_bdf_props()
[all …]
/external/u-boot/drivers/pci/
Dpcie_intel_fpga.c62 #define IS_ROOT_PORT(pcie, bdf) \ argument
63 ((PCI_BUS(bdf) == pcie->first_busno) ? true : false)
93 pci_dev_t bdf, int offset) in intel_fpga_pcie_hide_rc_bar() argument
95 if (IS_ROOT_PORT(pcie, bdf) && PCI_DEV(bdf) == 0 && in intel_fpga_pcie_hide_rc_bar()
96 PCI_FUNC(bdf) == 0 && offset == PCI_BASE_ADDRESS_0) in intel_fpga_pcie_hide_rc_bar()
120 pci_dev_t bdf) in intel_fpga_pcie_addr_valid() argument
123 if (!IS_ROOT_PORT(pcie, bdf) && !intel_fpga_pcie_link_up(pcie)) in intel_fpga_pcie_addr_valid()
127 if (IS_ROOT_PORT(pcie, bdf) && PCI_DEV(bdf) > 0) in intel_fpga_pcie_addr_valid()
130 if ((PCI_BUS(bdf) == pcie->first_busno + 1) && PCI_DEV(bdf) > 0) in intel_fpga_pcie_addr_valid()
195 static int tlp_cfg_dword_read(struct intel_fpga_pcie *pcie, pci_dev_t bdf, in tlp_cfg_dword_read() argument
[all …]
Dpci_common.c287 pci_dev_t bdf; in pci_hose_find_devices() local
290 for (bdf = PCI_BDF(busnum, 0, 0); in pci_hose_find_devices()
291 bdf < PCI_BDF(busnum + 1, 0, 0); in pci_hose_find_devices()
292 bdf += PCI_BDF(0, 0, 1)) { in pci_hose_find_devices()
293 if (pci_skip_dev(hose, bdf)) in pci_hose_find_devices()
296 if (!PCI_FUNC(bdf)) { in pci_hose_find_devices()
297 pci_read_config_byte(bdf, PCI_HEADER_TYPE, in pci_hose_find_devices()
305 pci_read_config_word(bdf, PCI_VENDOR_ID, &vendor); in pci_hose_find_devices()
306 pci_read_config_word(bdf, PCI_DEVICE_ID, &device); in pci_hose_find_devices()
312 return bdf; in pci_hose_find_devices()
[all …]
Dpci-uclass.c114 int dm_pci_bus_find_bdf(pci_dev_t bdf, struct udevice **devp) in dm_pci_bus_find_bdf() argument
119 ret = pci_get_bus(PCI_BUS(bdf), &bus); in dm_pci_bus_find_bdf()
122 return pci_bus_find_devfn(bus, PCI_MASK_BUS(bdf), devp); in dm_pci_bus_find_bdf()
239 int pci_bus_write_config(struct udevice *bus, pci_dev_t bdf, int offset, in pci_bus_write_config() argument
247 return ops->write_config(bus, bdf, offset, value, size); in pci_bus_write_config()
250 int pci_bus_clrset_config32(struct udevice *bus, pci_dev_t bdf, int offset, in pci_bus_clrset_config32() argument
256 ret = pci_bus_read_config(bus, bdf, offset, &val, PCI_SIZE_32); in pci_bus_clrset_config32()
262 return pci_bus_write_config(bus, bdf, offset, val, PCI_SIZE_32); in pci_bus_clrset_config32()
265 int pci_write_config(pci_dev_t bdf, int offset, unsigned long value, in pci_write_config() argument
271 ret = pci_get_bus(PCI_BUS(bdf), &bus); in pci_write_config()
[all …]
Dpci_gt64120.c44 unsigned char access_type, pci_dev_t bdf, in gt_config_access() argument
47 unsigned int bus = PCI_BUS(bdf); in gt_config_access()
48 unsigned int dev = PCI_DEV(bdf); in gt_config_access()
49 unsigned int devfn = PCI_DEV(bdf) << 3 | PCI_FUNC(bdf); in gt_config_access()
61 PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf), where, *data); in gt_config_access()
110 PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf), where, *data); in gt_config_access()
Dpcie_ecam_generic.c38 static int pci_generic_ecam_conf_address(struct udevice *bus, pci_dev_t bdf, in pci_generic_ecam_conf_address() argument
45 addr += PCI_BUS(bdf) << 20; in pci_generic_ecam_conf_address()
46 addr += PCI_DEV(bdf) << 15; in pci_generic_ecam_conf_address()
47 addr += PCI_FUNC(bdf) << 12; in pci_generic_ecam_conf_address()
66 static int pci_generic_ecam_read_config(struct udevice *bus, pci_dev_t bdf, in pci_generic_ecam_read_config() argument
71 bdf, offset, valuep, size); in pci_generic_ecam_read_config()
86 static int pci_generic_ecam_write_config(struct udevice *bus, pci_dev_t bdf, in pci_generic_ecam_write_config() argument
91 bdf, offset, value, size); in pci_generic_ecam_write_config()
Dpcie_xilinx.c57 static int pcie_xilinx_config_address(struct udevice *udev, pci_dev_t bdf, in pcie_xilinx_config_address() argument
61 unsigned int bus = PCI_BUS(bdf); in pcie_xilinx_config_address()
62 unsigned int dev = PCI_DEV(bdf); in pcie_xilinx_config_address()
63 unsigned int func = PCI_FUNC(bdf); in pcie_xilinx_config_address()
100 static int pcie_xilinx_read_config(struct udevice *bus, pci_dev_t bdf, in pcie_xilinx_read_config() argument
105 bdf, offset, valuep, size); in pcie_xilinx_read_config()
122 static int pcie_xilinx_write_config(struct udevice *bus, pci_dev_t bdf, in pcie_xilinx_write_config() argument
127 bdf, offset, value, size); in pcie_xilinx_write_config()
Dpci-aardvark.c168 static int pcie_advk_addr_valid(pci_dev_t bdf, int first_busno) in pcie_advk_addr_valid() argument
175 if ((PCI_BUS(bdf) == first_busno) && (PCI_DEV(bdf) > 0)) in pcie_advk_addr_valid()
300 static int pcie_advk_read_config(struct udevice *bus, pci_dev_t bdf, in pcie_advk_read_config() argument
309 PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf)); in pcie_advk_read_config()
311 if (!pcie_advk_addr_valid(bdf, pcie->first_busno)) { in pcie_advk_read_config()
324 if (PCI_BUS(bdf) == pcie->first_busno) in pcie_advk_read_config()
331 reg = PCIE_BDF(bdf) | PCIE_CONF_REG(offset); in pcie_advk_read_config()
397 static int pcie_advk_write_config(struct udevice *bus, pci_dev_t bdf, in pcie_advk_write_config() argument
405 PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf)); in pcie_advk_write_config()
409 if (!pcie_advk_addr_valid(bdf, pcie->first_busno)) { in pcie_advk_write_config()
[all …]
Dpci-rcar-gen2.c110 static u32 get_bus_address(struct udevice *dev, pci_dev_t bdf, u32 offset) in get_bus_address() argument
114 return priv->cfg_base + (PCI_DEV(bdf) >> 1) * 0x100 + (offset & ~3); in get_bus_address()
117 static u32 setup_bus_address(struct udevice *dev, pci_dev_t bdf, u32 offset) in setup_bus_address() argument
122 reg = PCI_DEV(bdf) ? RCAR_AHBPCI_WIN1_DEVICE : RCAR_AHBPCI_WIN1_HOST; in setup_bus_address()
126 return get_bus_address(dev, bdf, offset); in setup_bus_address()
129 static int rcar_gen2_pci_read_config(struct udevice *dev, pci_dev_t bdf, in rcar_gen2_pci_read_config() argument
136 ret = rcar_gen2_pci_addr_valid(bdf, offset); in rcar_gen2_pci_read_config()
142 addr = get_bus_address(dev, bdf, offset); in rcar_gen2_pci_read_config()
149 static int rcar_gen2_pci_write_config(struct udevice *dev, pci_dev_t bdf, in rcar_gen2_pci_write_config() argument
156 ret = rcar_gen2_pci_addr_valid(bdf, offset); in rcar_gen2_pci_write_config()
[all …]
Dpcie_dw_mvebu.c243 static int pcie_dw_mvebu_read_config(struct udevice *bus, pci_dev_t bdf, in pcie_dw_mvebu_read_config() argument
252 PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf)); in pcie_dw_mvebu_read_config()
254 if (!pcie_dw_addr_valid(bdf, pcie->first_busno)) { in pcie_dw_mvebu_read_config()
260 va_address = set_cfg_address(pcie, bdf, offset); in pcie_dw_mvebu_read_config()
289 static int pcie_dw_mvebu_write_config(struct udevice *bus, pci_dev_t bdf, in pcie_dw_mvebu_write_config() argument
298 PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf)); in pcie_dw_mvebu_write_config()
301 if (!pcie_dw_addr_valid(bdf, pcie->first_busno)) { in pcie_dw_mvebu_write_config()
306 va_address = set_cfg_address(pcie, bdf, offset); in pcie_dw_mvebu_write_config()
Dpcie_layerscape.c224 static int ls_pcie_addr_valid(struct ls_pcie *pcie, pci_dev_t bdf) in ls_pcie_addr_valid() argument
231 if (PCI_BUS(bdf) < bus->seq) in ls_pcie_addr_valid()
234 if ((PCI_BUS(bdf) > bus->seq) && (!ls_pcie_link_up(pcie))) in ls_pcie_addr_valid()
237 if (PCI_BUS(bdf) <= (bus->seq + 1) && (PCI_DEV(bdf) > 0)) in ls_pcie_addr_valid()
243 int ls_pcie_conf_address(struct udevice *bus, pci_dev_t bdf, in ls_pcie_conf_address() argument
249 if (ls_pcie_addr_valid(pcie, bdf)) in ls_pcie_conf_address()
252 if (PCI_BUS(bdf) == bus->seq) { in ls_pcie_conf_address()
257 busdev = PCIE_ATU_BUS(PCI_BUS(bdf) - bus->seq) | in ls_pcie_conf_address()
258 PCIE_ATU_DEV(PCI_DEV(bdf)) | in ls_pcie_conf_address()
259 PCIE_ATU_FUNC(PCI_FUNC(bdf)); in ls_pcie_conf_address()
[all …]
Dpci_msc01.c28 unsigned char access_type, pci_dev_t bdf, in msc01_config_access() argument
34 unsigned int bus = PCI_BUS(bdf); in msc01_config_access()
35 unsigned int dev = PCI_DEV(bdf); in msc01_config_access()
36 unsigned int devfn = PCI_DEV(bdf) << 3 | PCI_FUNC(bdf); in msc01_config_access()
Dpci_tegra.c276 static unsigned long tegra_pcie_conf_offset(pci_dev_t bdf, int where) in tegra_pcie_conf_offset() argument
278 return ((where & 0xf00) << 16) | (PCI_BUS(bdf) << 16) | in tegra_pcie_conf_offset()
279 (PCI_DEV(bdf) << 11) | (PCI_FUNC(bdf) << 8) | in tegra_pcie_conf_offset()
283 static int tegra_pcie_conf_address(struct tegra_pcie *pcie, pci_dev_t bdf, in tegra_pcie_conf_address() argument
286 unsigned int bus = PCI_BUS(bdf); in tegra_pcie_conf_address()
289 unsigned int dev = PCI_DEV(bdf); in tegra_pcie_conf_address()
301 unsigned int dev = PCI_DEV(bdf); in tegra_pcie_conf_address()
306 *address = pcie->cs.start + tegra_pcie_conf_offset(bdf, where); in tegra_pcie_conf_address()
311 static int pci_tegra_read_config(struct udevice *bus, pci_dev_t bdf, in pci_tegra_read_config() argument
319 err = tegra_pcie_conf_address(pcie, bdf, offset, &address); in pci_tegra_read_config()
[all …]
Dpcie_layerscape_fixup.c184 pci_dev_t bdf; in fdt_fixup_pcie() local
207 bdf = dm_pci_get_bdf(dev) - PCI_BDF(bus->seq, 0, 0); in fdt_fixup_pcie()
209 ls_pcie_lut_set_mapping(pcie, index, bdf >> 8, in fdt_fixup_pcie()
212 fdt_pcie_set_msi_map_entry(blob, pcie, bdf >> 8, in fdt_fixup_pcie()
215 fdt_pcie_set_iommu_map_entry(blob, pcie, bdf >> 8, in fdt_fixup_pcie()
/external/u-boot/board/imgtec/malta/
Dmalta.c168 pci_dev_t bdf; in pci_init_board() local
191 bdf = pci_find_device(PCI_VENDOR_ID_INTEL, in pci_init_board()
193 if (bdf == -1) in pci_init_board()
197 pci_write_config_byte(bdf, PCI_CFG_PIIX4_PIRQRCA, 10); in pci_init_board()
198 pci_write_config_byte(bdf, PCI_CFG_PIIX4_PIRQRCB, 10); in pci_init_board()
199 pci_write_config_byte(bdf, PCI_CFG_PIIX4_PIRQRCC, 11); in pci_init_board()
200 pci_write_config_byte(bdf, PCI_CFG_PIIX4_PIRQRCD, 11); in pci_init_board()
203 pci_read_config_dword(bdf, PCI_CFG_PIIX4_GENCFG, &val32); in pci_init_board()
205 pci_write_config_dword(bdf, PCI_CFG_PIIX4_GENCFG, val32); in pci_init_board()
208 pci_read_config_byte(bdf, PCI_CFG_PIIX4_SERIRQC, &val8); in pci_init_board()
[all …]
/external/u-boot/arch/x86/cpu/
Dpci.c19 int pci_x86_read_config(struct udevice *bus, pci_dev_t bdf, uint offset, in pci_x86_read_config() argument
22 outl(bdf | (offset & 0xfc) | PCI_CFG_EN, PCI_REG_ADDR); in pci_x86_read_config()
38 int pci_x86_write_config(struct udevice *bus, pci_dev_t bdf, uint offset, in pci_x86_write_config() argument
41 outl(bdf | (offset & 0xfc) | PCI_CFG_EN, PCI_REG_ADDR); in pci_x86_write_config()
59 pci_dev_t bdf; in pci_assign_irqs() local
65 bdf = PCI_BDF(bus, device, func); in pci_assign_irqs()
66 pci_read_config16(bdf, PCI_VENDOR_ID, &vendor); in pci_assign_irqs()
70 pci_read_config8(bdf, PCI_INTERRUPT_PIN, &pin); in pci_assign_irqs()
83 pci_write_config8(bdf, PCI_INTERRUPT_LINE, line); in pci_assign_irqs()
Dirq.c162 priv->bdf = dm_pci_get_bdf(dev->parent); in create_pirq_routing_table()
258 rt->rtr_bus = PCI_BUS(priv->bdf); in create_pirq_routing_table()
259 rt->rtr_devfn = (PCI_DEV(priv->bdf) << 3) | PCI_FUNC(priv->bdf); in create_pirq_routing_table()
270 pr.bdf = fdt_addr_to_cpu(cell[0]); in create_pirq_routing_table()
275 i, PCI_BUS(pr.bdf), PCI_DEV(pr.bdf), in create_pirq_routing_table()
276 PCI_FUNC(pr.bdf), 'A' + pr.pin - 1, in create_pirq_routing_table()
280 PCI_BUS(pr.bdf), PCI_DEV(pr.bdf)); in create_pirq_routing_table()
283 PCI_BUS(pr.bdf), PCI_DEV(pr.bdf)); in create_pirq_routing_table()
304 fill_irq_info(priv, slot, PCI_BUS(pr.bdf), PCI_DEV(pr.bdf), in create_pirq_routing_table()
/external/u-boot/board/armltd/integrator/
Dpci.c88 static unsigned long v3_open_config_window(pci_dev_t bdf, int offset) in v3_open_config_window() argument
91 unsigned int busnr = PCI_BUS(bdf); in v3_open_config_window()
92 unsigned int devfn = PCI_FUNC(bdf); in v3_open_config_window()
109 int slot = PCI_DEV(bdf); in v3_open_config_window()
121 address = PCI_FUNC(bdf) << 8; in v3_open_config_window()
187 static int pci_integrator_read_byte(struct pci_controller *hose, pci_dev_t bdf, in pci_integrator_read_byte() argument
192 addr = v3_open_config_window(bdf, offset); in pci_integrator_read_byte()
199 pci_dev_t bdf, int offset, in pci_integrator_read__word() argument
204 addr = v3_open_config_window(bdf, offset); in pci_integrator_read__word()
211 pci_dev_t bdf, int offset, in pci_integrator_read_dword() argument
[all …]
/external/freetype/src/tools/
Dno-copyright23 src/bdf/bdf.c
24 src/bdf/bdf.h
25 src/bdf/bdfdrivr.c
26 src/bdf/bdfdrivr.h
27 src/bdf/bdferror.h
28 src/bdf/bdflib.c
29 src/bdf/module.mk
30 src/bdf/README
31 src/bdf/rules.mk
/external/u-boot/arch/x86/lib/
Dbios_interrupts.c111 pci_dev_t bdf; in int1a_handler() local
135 bdf = -1; in int1a_handler()
140 bdf = dm_pci_get_bdf(dev); in int1a_handler()
147 busdevfn = (PCI_BUS(bdf) << 8) | PCI_DEV(bdf) << 3 | in int1a_handler()
148 PCI_FUNC(bdf); in int1a_handler()
167 bdf = PCI_BDF(bus, devfn >> 3, devfn & 7); in int1a_handler()
169 ret = dm_pci_bus_find_bdf(bdf, &dev); in int1a_handler()
171 debug("%s: Device %x not found\n", __func__, bdf); in int1a_handler()
/external/u-boot/drivers/bios_emulator/
Datibios.c242 pci_dev_t bdf; in PCI_doBIOSPOST() local
252 bdf = dm_pci_get_bdf(pcidev); in PCI_doBIOSPOST()
253 regs.x.ax = (int)PCI_BUS(bdf) << 8 | in PCI_doBIOSPOST()
254 (int)PCI_DEV(bdf) << 3 | (int)PCI_FUNC(bdf); in PCI_doBIOSPOST()
494 pci_dev_t bdf; in PCI_postController() local
524 bdf = dm_pci_get_bdf(pcidev); in PCI_postController()
525 vga_info->function = PCI_FUNC(bdf); in PCI_postController()
526 vga_info->device = PCI_DEV(bdf); in PCI_postController()
527 vga_info->bus = PCI_BUS(bdf); in PCI_postController()
558 pci_dev_t bdf = dm_pci_get_bdf(pcidev); in biosemu_setup() local
[all …]
/external/freetype/src/bdf/
Drules.mk32 BDF_DIR := $(SRC_DIR)/bdf
49 BDF_DRV_H := $(BDF_DIR)/bdf.h \
59 BDF_DRV_OBJ_S := $(OBJ_DIR)/bdf.$O
63 BDF_DRV_SRC_S := $(BDF_DIR)/bdf.c
DJamfile1 # FreeType 2 src/bdf Jamfile
12 SubDir FT2_TOP $(FT2_SRC_DIR) bdf ;
25 _sources = bdf ;
31 # end of src/bdf Jamfile
/external/u-boot/board/theadorable/
Dtheadorable.c240 pci_dev_t bdf; in board_late_init() local
249 bdf = pci_find_device(PCI_VENDOR_ID_PLX, 0x8619, 0); in board_late_init()
250 if (bdf == -1) { in board_late_init()
300 pci_dev_t bdf; in do_pcie_test() local
316 bdf = pci_find_device(ven_id, dev_id, 0); in do_pcie_test()
317 if (bdf == -1) { in do_pcie_test()
/external/u-boot/cmd/
Dpci.c487 static int pci_cfg_display(pci_dev_t bdf, ulong addr, enum pci_size_t size, in pci_cfg_display()
513 val = pci_read_config(bdf, addr, size); in pci_cfg_display()
530 static int pci_cfg_write (pci_dev_t bdf, ulong addr, ulong size, ulong value) in pci_cfg_write() argument
533 pci_write_config_dword(bdf, addr, value); in pci_cfg_write()
537 pci_write_config_word(bdf, addr, val); in pci_cfg_write()
541 pci_write_config_byte(bdf, addr, val); in pci_cfg_write()
551 static int pci_cfg_modify(pci_dev_t bdf, ulong addr, ulong size, ulong value, in pci_cfg_modify()
567 val = pci_read_config(bdf, addr, size); in pci_cfg_modify()
598 pci_cfg_write(bdf, addr, size, i); in pci_cfg_modify()
668 pci_dev_t bdf = 0; in do_pci() local
[all …]

1234