Lines Matching full:headers
156 * Minimum 2 loops to read TLP headers and 1 loop to read data in tlp_read_packet()
186 static void tlp_write_packet(struct altera_pcie *pcie, u32 *headers, in tlp_write_packet() argument
191 tlp_rp_regdata.reg0 = headers[0]; in tlp_write_packet()
192 tlp_rp_regdata.reg1 = headers[1]; in tlp_write_packet()
197 tlp_rp_regdata.reg0 = headers[2]; in tlp_write_packet()
205 tlp_rp_regdata.reg0 = headers[2]; in tlp_write_packet()
216 u32 headers[TLP_HDR_SIZE]; in tlp_cfg_dword_read() local
218 headers[0] = TLP_CFGRD_DW0(pcie, bus); in tlp_cfg_dword_read()
219 headers[1] = TLP_CFG_DW1(pcie, TLP_READ_TAG, byte_en); in tlp_cfg_dword_read()
220 headers[2] = TLP_CFG_DW2(bus, devfn, where); in tlp_cfg_dword_read()
222 tlp_write_packet(pcie, headers, 0, false); in tlp_cfg_dword_read()
230 u32 headers[TLP_HDR_SIZE]; in tlp_cfg_dword_write() local
233 headers[0] = TLP_CFGWR_DW0(pcie, bus); in tlp_cfg_dword_write()
234 headers[1] = TLP_CFG_DW1(pcie, TLP_WRITE_TAG, byte_en); in tlp_cfg_dword_write()
235 headers[2] = TLP_CFG_DW2(bus, devfn, where); in tlp_cfg_dword_write()
239 tlp_write_packet(pcie, headers, value, true); in tlp_cfg_dword_write()
241 tlp_write_packet(pcie, headers, value, false); in tlp_cfg_dword_write()