Lines Matching refs:tmp

150     uint32_t tmp;  in pci_enable_msi()  local
190 tmp = pci_read_config(ptr->bus, ptr->device, ptr->func, cap_ptr); // 读取cap+0x0处的值 in pci_enable_msi()
191 tmp |= (1U << 31); in pci_enable_msi()
192 pci_write_config(ptr->bus, ptr->device, ptr->func, cap_ptr, tmp); in pci_enable_msi()
197 tmp = pci_read_config(ptr->bus, ptr->device, ptr->func, cap_ptr); // 读取cap+0x0处的值 in pci_enable_msi()
198 message_control = (tmp >> 16) & 0xffff; in pci_enable_msi()
210 tmp = msi_desc->msg.data; in pci_enable_msi()
212 pci_write_config(ptr->bus, ptr->device, ptr->func, cap_ptr + 0xc, tmp); in pci_enable_msi()
214 pci_write_config(ptr->bus, ptr->device, ptr->func, cap_ptr + 0x8, tmp); in pci_enable_msi()
217 tmp = pci_read_config(ptr->bus, ptr->device, ptr->func, cap_ptr); // 读取cap+0x0处的值 in pci_enable_msi()
218 tmp |= (1 << 16); in pci_enable_msi()
219 pci_write_config(ptr->bus, ptr->device, ptr->func, cap_ptr, tmp); in pci_enable_msi()
235 uint32_t tmp; in pci_start_msi() local
244 tmp = pci_read_config(ptr->bus, ptr->device, ptr->func, cap_ptr); // 读取cap+0x0处的值 in pci_start_msi()
246 if (tmp & 0xff != 0x5) in pci_start_msi()
250 tmp = pci_read_config(ptr->bus, ptr->device, ptr->func, cap_ptr); // 读取cap+0x0处的值 in pci_start_msi()
251 tmp |= (1 << 16); in pci_start_msi()
252 pci_write_config(ptr->bus, ptr->device, ptr->func, cap_ptr, tmp); in pci_start_msi()
261 tmp = pci_read_config(ptr->bus, ptr->device, ptr->func, cap_ptr); // 读取cap+0x0处的值 in pci_start_msi()
263 if (tmp & 0xff != 0x5) in pci_start_msi()
267 tmp = pci_read_config(ptr->bus, ptr->device, ptr->func, cap_ptr); // 读取cap+0x0处的值 in pci_start_msi()
268 tmp |= (1 << 16); in pci_start_msi()
269 pci_write_config(ptr->bus, ptr->device, ptr->func, cap_ptr, tmp); in pci_start_msi()
293 uint32_t tmp; in pci_disable_msi() local
302 tmp = pci_read_config(ptr->bus, ptr->device, ptr->func, cap_ptr); // 读取cap+0x0处的值 in pci_disable_msi()
304 if (tmp & 0xff != 0x5) in pci_disable_msi()
308 tmp = pci_read_config(ptr->bus, ptr->device, ptr->func, cap_ptr); // 读取cap+0x0处的值 in pci_disable_msi()
309 tmp &= (~(1 << 16)); in pci_disable_msi()
310 pci_write_config(ptr->bus, ptr->device, ptr->func, cap_ptr, tmp); in pci_disable_msi()
319 tmp = pci_read_config(ptr->bus, ptr->device, ptr->func, cap_ptr); // 读取cap+0x0处的值 in pci_disable_msi()
321 if (tmp & 0xff != 0x5) in pci_disable_msi()
325 tmp = pci_read_config(ptr->bus, ptr->device, ptr->func, cap_ptr); // 读取cap+0x0处的值 in pci_disable_msi()
326 tmp &= (~(1 << 16)); in pci_disable_msi()
327 pci_write_config(ptr->bus, ptr->device, ptr->func, cap_ptr, tmp); in pci_disable_msi()