Lines Matching refs:headers
99 void (*tlp_write_pkt)(struct altera_pcie *pcie, u32 *headers,
284 static void tlp_write_packet(struct altera_pcie *pcie, u32 *headers, in tlp_write_packet() argument
289 tlp_rp_regdata.reg0 = headers[0]; in tlp_write_packet()
290 tlp_rp_regdata.reg1 = headers[1]; in tlp_write_packet()
295 tlp_rp_regdata.reg0 = headers[2]; in tlp_write_packet()
303 tlp_rp_regdata.reg0 = headers[2]; in tlp_write_packet()
311 static void s10_tlp_write_packet(struct altera_pcie *pcie, u32 *headers, in s10_tlp_write_packet() argument
314 s10_tlp_write_tx(pcie, headers[0], RP_TX_SOP); in s10_tlp_write_packet()
315 s10_tlp_write_tx(pcie, headers[1], 0); in s10_tlp_write_packet()
316 s10_tlp_write_tx(pcie, headers[2], 0); in s10_tlp_write_packet()
321 int where, u8 byte_en, bool read, u32 *headers) in get_tlp_header() argument
333 headers[0] = TLP_CFG_DW0(pcie, cfg); in get_tlp_header()
334 headers[1] = TLP_CFG_DW1(pcie, tag, byte_en); in get_tlp_header()
335 headers[2] = TLP_CFG_DW2(bus, devfn, where); in get_tlp_header()
341 u32 headers[TLP_HDR_SIZE]; in tlp_cfg_dword_read() local
344 headers); in tlp_cfg_dword_read()
346 pcie->pcie_data->ops->tlp_write_pkt(pcie, headers, 0, false); in tlp_cfg_dword_read()
354 u32 headers[TLP_HDR_SIZE]; in tlp_cfg_dword_write() local
358 headers); in tlp_cfg_dword_write()
362 pcie->pcie_data->ops->tlp_write_pkt(pcie, headers, in tlp_cfg_dword_write()
365 pcie->pcie_data->ops->tlp_write_pkt(pcie, headers, in tlp_cfg_dword_write()