Lines Matching full:headers
100 void (*tlp_write_pkt)(struct altera_pcie *pcie, u32 *headers,
208 * Minimum 2 loops to read TLP headers and 1 loop to read data in tlp_read_packet()
285 static void tlp_write_packet(struct altera_pcie *pcie, u32 *headers, in tlp_write_packet() argument
290 tlp_rp_regdata.reg0 = headers[0]; in tlp_write_packet()
291 tlp_rp_regdata.reg1 = headers[1]; in tlp_write_packet()
296 tlp_rp_regdata.reg0 = headers[2]; in tlp_write_packet()
304 tlp_rp_regdata.reg0 = headers[2]; in tlp_write_packet()
312 static void s10_tlp_write_packet(struct altera_pcie *pcie, u32 *headers, in s10_tlp_write_packet() argument
315 s10_tlp_write_tx(pcie, headers[0], RP_TX_SOP); in s10_tlp_write_packet()
316 s10_tlp_write_tx(pcie, headers[1], 0); in s10_tlp_write_packet()
317 s10_tlp_write_tx(pcie, headers[2], 0); in s10_tlp_write_packet()
322 int where, u8 byte_en, bool read, u32 *headers) in get_tlp_header() argument
334 headers[0] = TLP_CFG_DW0(pcie, cfg); in get_tlp_header()
335 headers[1] = TLP_CFG_DW1(pcie, tag, byte_en); in get_tlp_header()
336 headers[2] = TLP_CFG_DW2(bus, devfn, where); in get_tlp_header()
342 u32 headers[TLP_HDR_SIZE]; in tlp_cfg_dword_read() local
345 headers); in tlp_cfg_dword_read()
347 pcie->pcie_data->ops->tlp_write_pkt(pcie, headers, 0, false); in tlp_cfg_dword_read()
355 u32 headers[TLP_HDR_SIZE]; in tlp_cfg_dword_write() local
359 headers); in tlp_cfg_dword_write()
363 pcie->pcie_data->ops->tlp_write_pkt(pcie, headers, in tlp_cfg_dword_write()
366 pcie->pcie_data->ops->tlp_write_pkt(pcie, headers, in tlp_cfg_dword_write()