Lines Matching refs:val

241                               uint32_t address, uint32_t val, int len);
297 pci_set_byte(uint8_t *config, uint8_t val) in pci_set_byte() argument
299 *config = val; in pci_set_byte()
309 pci_set_word(uint8_t *config, uint16_t val) in pci_set_word() argument
311 cpu_to_le16wu((uint16_t *)config, val); in pci_set_word()
321 pci_set_long(uint8_t *config, uint32_t val) in pci_set_long() argument
323 cpu_to_le32wu((uint32_t *)config, val); in pci_set_long()
333 pci_set_quad(uint8_t *config, uint64_t val) in pci_set_quad() argument
335 cpu_to_le64w((uint64_t *)config, val); in pci_set_quad()
345 pci_config_set_vendor_id(uint8_t *pci_config, uint16_t val) in pci_config_set_vendor_id() argument
347 pci_set_word(&pci_config[PCI_VENDOR_ID], val); in pci_config_set_vendor_id()
351 pci_config_set_device_id(uint8_t *pci_config, uint16_t val) in pci_config_set_device_id() argument
353 pci_set_word(&pci_config[PCI_DEVICE_ID], val); in pci_config_set_device_id()
357 pci_config_set_revision(uint8_t *pci_config, uint8_t val) in pci_config_set_revision() argument
359 pci_set_byte(&pci_config[PCI_REVISION_ID], val); in pci_config_set_revision()
363 pci_config_set_class(uint8_t *pci_config, uint16_t val) in pci_config_set_class() argument
365 pci_set_word(&pci_config[PCI_CLASS_DEVICE], val); in pci_config_set_class()
369 pci_config_set_prog_interface(uint8_t *pci_config, uint8_t val) in pci_config_set_prog_interface() argument
371 pci_set_byte(&pci_config[PCI_CLASS_PROG], val); in pci_config_set_prog_interface()
375 pci_config_set_interrupt_pin(uint8_t *pci_config, uint8_t val) in pci_config_set_interrupt_pin() argument
377 pci_set_byte(&pci_config[PCI_INTERRUPT_PIN], val); in pci_config_set_interrupt_pin()
389 uint8_t val = pci_get_byte(config); in pci_byte_test_and_clear_mask() local
390 pci_set_byte(config, val & ~mask); in pci_byte_test_and_clear_mask()
391 return val & mask; in pci_byte_test_and_clear_mask()
397 uint8_t val = pci_get_byte(config); in pci_byte_test_and_set_mask() local
398 pci_set_byte(config, val | mask); in pci_byte_test_and_set_mask()
399 return val & mask; in pci_byte_test_and_set_mask()
405 uint16_t val = pci_get_word(config); in pci_word_test_and_clear_mask() local
406 pci_set_word(config, val & ~mask); in pci_word_test_and_clear_mask()
407 return val & mask; in pci_word_test_and_clear_mask()
413 uint16_t val = pci_get_word(config); in pci_word_test_and_set_mask() local
414 pci_set_word(config, val | mask); in pci_word_test_and_set_mask()
415 return val & mask; in pci_word_test_and_set_mask()
421 uint32_t val = pci_get_long(config); in pci_long_test_and_clear_mask() local
422 pci_set_long(config, val & ~mask); in pci_long_test_and_clear_mask()
423 return val & mask; in pci_long_test_and_clear_mask()
429 uint32_t val = pci_get_long(config); in pci_long_test_and_set_mask() local
430 pci_set_long(config, val | mask); in pci_long_test_and_set_mask()
431 return val & mask; in pci_long_test_and_set_mask()
437 uint64_t val = pci_get_quad(config); in pci_quad_test_and_clear_mask() local
438 pci_set_quad(config, val & ~mask); in pci_quad_test_and_clear_mask()
439 return val & mask; in pci_quad_test_and_clear_mask()
445 uint64_t val = pci_get_quad(config); in pci_quad_test_and_set_mask() local
446 pci_set_quad(config, val | mask); in pci_quad_test_and_set_mask()
447 return val & mask; in pci_quad_test_and_set_mask()