Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpu: host1x: Export public API

Make the public API symbols visible so that depending drivers can be
built as a module.

Signed-off-by: Thierry Reding <treding@nvidia.com>

+22
+2
drivers/gpu/host1x/bus.c
··· 188 188 189 189 return 0; 190 190 } 191 + EXPORT_SYMBOL(host1x_device_init); 191 192 192 193 int host1x_device_exit(struct host1x_device *device) 193 194 { ··· 214 213 215 214 return 0; 216 215 } 216 + EXPORT_SYMBOL(host1x_device_exit); 217 217 218 218 static int host1x_register_client(struct host1x *host1x, 219 219 struct host1x_client *client)
+5
drivers/gpu/host1x/channel.c
··· 43 43 44 44 return host1x_hw_channel_submit(host, job); 45 45 } 46 + EXPORT_SYMBOL(host1x_job_submit); 46 47 47 48 struct host1x_channel *host1x_channel_get(struct host1x_channel *channel) 48 49 { ··· 61 60 62 61 return err ? NULL : channel; 63 62 } 63 + EXPORT_SYMBOL(host1x_channel_get); 64 64 65 65 void host1x_channel_put(struct host1x_channel *channel) 66 66 { ··· 78 76 79 77 mutex_unlock(&channel->reflock); 80 78 } 79 + EXPORT_SYMBOL(host1x_channel_put); 81 80 82 81 struct host1x_channel *host1x_channel_request(struct device *dev) 83 82 { ··· 118 115 mutex_unlock(&host->chlist_mutex); 119 116 return NULL; 120 117 } 118 + EXPORT_SYMBOL(host1x_channel_request); 121 119 122 120 void host1x_channel_free(struct host1x_channel *channel) 123 121 { ··· 128 124 list_del(&channel->list); 129 125 kfree(channel); 130 126 } 127 + EXPORT_SYMBOL(host1x_channel_free);
+6
drivers/gpu/host1x/job.c
··· 75 75 76 76 return job; 77 77 } 78 + EXPORT_SYMBOL(host1x_job_alloc); 78 79 79 80 struct host1x_job *host1x_job_get(struct host1x_job *job) 80 81 { 81 82 kref_get(&job->ref); 82 83 return job; 83 84 } 85 + EXPORT_SYMBOL(host1x_job_get); 84 86 85 87 static void job_free(struct kref *ref) 86 88 { ··· 95 93 { 96 94 kref_put(&job->ref, job_free); 97 95 } 96 + EXPORT_SYMBOL(host1x_job_put); 98 97 99 98 void host1x_job_add_gather(struct host1x_job *job, struct host1x_bo *bo, 100 99 u32 words, u32 offset) ··· 107 104 cur_gather->offset = offset; 108 105 job->num_gathers++; 109 106 } 107 + EXPORT_SYMBOL(host1x_job_add_gather); 110 108 111 109 /* 112 110 * NULL an already satisfied WAIT_SYNCPT host method, by patching its ··· 564 560 565 561 return err; 566 562 } 563 + EXPORT_SYMBOL(host1x_job_pin); 567 564 568 565 void host1x_job_unpin(struct host1x_job *job) 569 566 { ··· 582 577 job->gather_copy_mapped, 583 578 job->gather_copy); 584 579 } 580 + EXPORT_SYMBOL(host1x_job_unpin); 585 581 586 582 /* 587 583 * Debug routine used to dump job entries
+9
drivers/gpu/host1x/syncpt.c
··· 93 93 { 94 94 return sp->id; 95 95 } 96 + EXPORT_SYMBOL(host1x_syncpt_id); 96 97 97 98 /* 98 99 * Updates the value sent to hardware. ··· 169 168 { 170 169 return host1x_hw_syncpt_cpu_incr(sp->host, sp); 171 170 } 171 + EXPORT_SYMBOL(host1x_syncpt_incr); 172 172 173 173 /* 174 174 * Updated sync point form hardware, and returns true if syncpoint is expired, ··· 379 377 struct host1x *host = dev_get_drvdata(dev->parent); 380 378 return host1x_syncpt_alloc(host, dev, flags); 381 379 } 380 + EXPORT_SYMBOL(host1x_syncpt_request); 382 381 383 382 void host1x_syncpt_free(struct host1x_syncpt *sp) 384 383 { ··· 393 390 sp->name = NULL; 394 391 sp->client_managed = false; 395 392 } 393 + EXPORT_SYMBOL(host1x_syncpt_free); 396 394 397 395 void host1x_syncpt_deinit(struct host1x *host) 398 396 { ··· 412 408 smp_rmb(); 413 409 return (u32)atomic_read(&sp->max_val); 414 410 } 411 + EXPORT_SYMBOL(host1x_syncpt_read_max); 415 412 416 413 /* 417 414 * Read min, which is a shadow of the current sync point value in hardware. ··· 422 417 smp_rmb(); 423 418 return (u32)atomic_read(&sp->min_val); 424 419 } 420 + EXPORT_SYMBOL(host1x_syncpt_read_min); 425 421 426 422 int host1x_syncpt_nb_pts(struct host1x *host) 427 423 { ··· 445 439 return NULL; 446 440 return host->syncpt + id; 447 441 } 442 + EXPORT_SYMBOL(host1x_syncpt_get); 448 443 449 444 struct host1x_syncpt_base *host1x_syncpt_get_base(struct host1x_syncpt *sp) 450 445 { 451 446 return sp ? sp->base : NULL; 452 447 } 448 + EXPORT_SYMBOL(host1x_syncpt_get_base); 453 449 454 450 u32 host1x_syncpt_base_id(struct host1x_syncpt_base *base) 455 451 { 456 452 return base->id; 457 453 } 454 + EXPORT_SYMBOL(host1x_syncpt_base_id);