Lines Matching refs:status
107 int status;
115 status = gpu_i2c_check_status(i2cd);
116 if (status < 0)
117 return status;
136 return status;
167 int status, status2;
181 status = gpu_i2c_read(i2cd, msgs[i].buf, msgs[i].len);
182 if (status < 0)
187 status = gpu_i2c_start(i2cd);
188 if (status < 0) {
194 status = gpu_i2c_write(i2cd, addr);
195 if (status < 0)
199 status = gpu_i2c_write(i2cd, msgs[i].buf[j]);
200 if (status < 0)
206 status = gpu_i2c_stop(i2cd);
207 if (status < 0)
210 status = i;
219 return status;
285 int status;
294 status = pcim_enable_device(pdev);
295 if (status < 0) {
296 dev_err(&pdev->dev, "pcim_enable_device failed %d\n", status);
297 return status;
308 status = pci_alloc_irq_vectors(pdev, 1, 1, PCI_IRQ_MSI);
309 if (status < 0) {
310 dev_err(&pdev->dev, "pci_alloc_irq_vectors err %d\n", status);
311 return status;
323 status = i2c_add_adapter(&i2cd->adapter);
324 if (status < 0)
327 status = gpu_populate_client(i2cd, pdev->irq);
328 if (status < 0) {
329 dev_err(&pdev->dev, "gpu_populate_client failed %d\n", status);
344 return status;
358 * correctly. Without it, lspci shows runtime pm status as "D0" for the card.