Lines Matching refs:result
568 int offset, result = 0;
569 for (offset = 0; offset < SRAM_BYTES && result == 0; offset += 4)
570 result = sram_test_word(lanai, offset, pattern);
571 return result;
577 int result;
579 if ((result = sram_test_pass(lanai, 0x5555)) != 0)
580 return result;
581 if ((result = sram_test_pass(lanai, 0xAAAA)) != 0)
582 return result;
903 /* read back result */
1098 int result;
1099 result = pci_read_config_word(lanai->pci, PCI_STATUS, &s);
1100 if (result != PCIBIOS_SUCCESSFUL) {
1102 "%d\n", lanai->number, result);
1110 result = pci_write_config_word(lanai->pci, PCI_STATUS, s);
1111 if (result != PCIBIOS_SUCCESSFUL)
1113 "%d\n", lanai->number, result);
1933 int result;
1946 result = check_board_id_and_rev("PCI", pci->subsystem_device, NULL);
1947 if (result != 0)
1948 return result;
1950 result = pci_write_config_byte(pci, PCI_LATENCY_TIMER, 0);
1951 if (result != PCIBIOS_SUCCESSFUL) {
1953 "PCI_LATENCY_TIMER: %d\n", lanai->number, result);
2046 * Note that storing a number greater than 2046.0 will result in
2062 * The end result is supposed to be a fixed-point number with FRAC_BITS
2110 int result;
2133 if ((result = lanai_pci_start(lanai)) != 0)
2139 result = -ENOMEM;
2161 result = check_board_id_and_rev("register",
2163 if (result != 0)
2167 if ((result = eeprom_read(lanai)) != 0)
2169 if ((result = eeprom_validate(lanai)) != 0)
2181 if ((result = sram_test_and_clear(lanai)) != 0)
2187 if ((result = service_buffer_allocate(lanai)) != 0)
2189 if ((result = vcc_table_allocate(lanai)) != 0)
2196 if ((result = request_irq(lanai->pci->irq, lanai_int, IRQF_SHARED,
2240 return result;
2313 int result = 0;
2321 result = lanai_normalize_ci(lanai, atmvcc, &vpi, &vci);
2322 if (unlikely(result != 0))
2342 result = aal0_buffer_allocate(lanai);
2344 result = lanai_setup_rx_vci_aal5(
2346 if (unlikely(result != 0))
2360 result = lanai_setup_tx_vci(lanai, lvcc, &atmvcc->qos);
2361 if (unlikely(result != 0))
2388 return result;
2556 int result;
2577 result = lanai_dev_open(atmdev);
2578 if (result != 0) {
2579 DPRINTK("lanai_start() failed, err=%d\n", -result);
2583 return result;