Lines Matching refs:rc
36 int rc, i, bar;
38 rc = pci_request_regions(pdev, HL_NAME);
39 if (rc) {
41 return rc;
52 rc = -ENODEV;
68 return rc;
217 int rc;
226 rc = hl_pci_elbi_write(hdev, prop->pcie_dbi_base_address + dbi_offset,
229 if (rc)
251 int rc = 0;
261 rc |= hl_pci_iatu_write(hdev, offset + 0x8,
263 rc |= hl_pci_iatu_write(hdev, offset + 0xC,
265 rc |= hl_pci_iatu_write(hdev, offset + 0x10,
270 rc |= hl_pci_iatu_write(hdev, offset + 0x14, lower_32_bits(pci_region->addr));
271 rc |= hl_pci_iatu_write(hdev, offset + 0x18, upper_32_bits(pci_region->addr));
274 rc |= hl_pci_iatu_write(hdev, offset + 0x0, 0);
284 rc |= hl_pci_iatu_write(hdev, offset + 0x4, ctrl_reg_val);
292 if (rc)
296 return rc;
313 int rc = 0;
318 rc |= hl_pci_iatu_write(hdev, 0x008,
320 rc |= hl_pci_iatu_write(hdev, 0x00C,
322 rc |= hl_pci_iatu_write(hdev, 0x010,
324 rc |= hl_pci_iatu_write(hdev, 0x014, 0);
326 rc |= hl_pci_iatu_write(hdev, 0x018, 0);
328 rc |= hl_pci_iatu_write(hdev, 0x020,
331 rc |= hl_pci_iatu_write(hdev, 0x000, 0x00002000);
333 rc |= hl_pci_iatu_write(hdev, 0x004, 0x80000000);
341 return rc;
382 int rc;
384 rc = pci_enable_device_mem(pdev);
385 if (rc) {
387 return rc;
392 rc = hdev->asic_funcs->pci_bars_map(hdev);
393 if (rc) {
398 rc = hdev->asic_funcs->init_iatu(hdev);
399 if (rc) {
408 rc = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(prop->dma_mask));
409 if (rc) {
412 prop->dma_mask, rc);
425 return rc;