/device/soc/rockchip/common/vendor/drivers/video/rockchip/mpp/ |
H A D | mpp_service.c | 159 if (srv->procfs) {
in mpp_procfs_remove() 160 proc_remove(srv->procfs);
in mpp_procfs_remove() 161 srv->procfs = NULL;
in mpp_procfs_remove() 261 srv->procfs = proc_mkdir(MPP_SERVICE_NAME, NULL);
in mpp_procfs_init() 262 if (IS_ERR_OR_NULL(srv->procfs)) {
in mpp_procfs_init() 264 srv->procfs = NULL;
in mpp_procfs_init() 268 proc_create_single("version", FILE_RIGHT_444, srv->procfs, mpp_show_version);
in mpp_procfs_init() 270 proc_create_single_data("sessions-summary", FILE_RIGHT_444, srv->procfs, mpp_show_session_summary, srv);
in mpp_procfs_init() 272 proc_create_single("supports-cmd", FILE_RIGHT_444, srv->procfs, mpp_show_support_cmd);
in mpp_procfs_init() 274 proc_create_single_data("supports-device", FILE_RIGHT_444, srv->procfs, mpp_show_support_devic in mpp_procfs_init() [all...] |
H A D | mpp_vepu1.c | 101 struct proc_dir_entry *procfs;
member 446 if (enc->procfs) {
in vepu_procfs_remove() 447 proc_remove(enc->procfs);
in vepu_procfs_remove() 448 enc->procfs = NULL;
in vepu_procfs_remove() 527 enc->procfs = proc_mkdir(mpp->dev->of_node->name, mpp->srv->procfs);
in vepu_procfs_init() 528 if (IS_ERR_OR_NULL(enc->procfs)) {
in vepu_procfs_init() 529 mpp_err("failed on open procfs\n");
in vepu_procfs_init() 530 enc->procfs = NULL;
in vepu_procfs_init() 533 mpp_procfs_create_u32("aclk", FILE_RIGHT_644, enc->procfs, in vepu_procfs_init() [all...] |
H A D | mpp_jpgdec.c | 96 struct proc_dir_entry *procfs;
member 347 if (dec->procfs) {
in jpgdec_procfs_remove() 348 proc_remove(dec->procfs);
in jpgdec_procfs_remove() 349 dec->procfs = NULL;
in jpgdec_procfs_remove() 359 dec->procfs = proc_mkdir(mpp->dev->of_node->name, mpp->srv->procfs);
in jpgdec_procfs_init() 360 if (IS_ERR_OR_NULL(dec->procfs)) {
in jpgdec_procfs_init() 361 mpp_err("failed on open procfs\n");
in jpgdec_procfs_init() 362 dec->procfs = NULL;
in jpgdec_procfs_init() 365 mpp_procfs_create_u32("aclk", FILE_RIGHT_644, dec->procfs, in jpgdec_procfs_init() [all...] |
H A D | mpp_vdpu2.c | 105 struct proc_dir_entry *procfs;
member 423 if (dec->procfs) {
in vdpu_procfs_remove() 424 proc_remove(dec->procfs);
in vdpu_procfs_remove() 425 dec->procfs = NULL;
in vdpu_procfs_remove() 435 dec->procfs = proc_mkdir(mpp->dev->of_node->name, mpp->srv->procfs);
in vdpu_procfs_init() 436 if (IS_ERR_OR_NULL(dec->procfs)) {
in vdpu_procfs_init() 437 mpp_err("failed on open procfs\n");
in vdpu_procfs_init() 438 dec->procfs = NULL;
in vdpu_procfs_init() 441 mpp_procfs_create_u32("aclk", FILE_RIGHT_644, dec->procfs, in vdpu_procfs_init() [all...] |
H A D | mpp_rkvdec2.c | 578 if (dec->procfs) {
in rkvdec2_procfs_remove() 579 proc_remove(dec->procfs);
in rkvdec2_procfs_remove() 580 dec->procfs = NULL;
in rkvdec2_procfs_remove() 598 if (!mpp->dev || !mpp->dev->of_node || !mpp->dev->of_node->name || !mpp->srv || !mpp->srv->procfs) {
in rkvdec2_procfs_init() 603 dec->procfs = proc_mkdir(name, mpp->srv->procfs);
in rkvdec2_procfs_init() 604 if (IS_ERR_OR_NULL(dec->procfs)) {
in rkvdec2_procfs_init() 605 mpp_err("failed on open procfs\n");
in rkvdec2_procfs_init() 606 dec->procfs = NULL;
in rkvdec2_procfs_init() 609 mpp_procfs_create_u32("aclk", MPP_PROCFS_FILE, dec->procfs, in rkvdec2_procfs_init() [all...] |
H A D | mpp_vepu2.c | 118 struct proc_dir_entry *procfs;
member 533 if (enc->procfs) {
in vepu_procfs_remove() 534 proc_remove(enc->procfs);
in vepu_procfs_remove() 535 enc->procfs = NULL;
in vepu_procfs_remove() 615 if (!mpp->dev || !mpp->dev->of_node || !mpp->dev->of_node->name || !mpp->srv || !mpp->srv->procfs) {
in vepu_procfs_init() 621 enc->procfs = proc_mkdir(name, mpp->srv->procfs);
in vepu_procfs_init() 622 if (IS_ERR_OR_NULL(enc->procfs)) {
in vepu_procfs_init() 623 mpp_err("failed on open procfs\n");
in vepu_procfs_init() 624 enc->procfs in vepu_procfs_init() [all...] |
H A D | mpp_vdpu1.c | 120 struct proc_dir_entry *procfs;
member 471 if (dec->procfs) {
in vdpu_procfs_remove() 472 proc_remove(dec->procfs);
in vdpu_procfs_remove() 473 dec->procfs = NULL;
in vdpu_procfs_remove() 483 dec->procfs = proc_mkdir(mpp->dev->of_node->name, mpp->srv->procfs);
in vdpu_procfs_init() 484 if (IS_ERR_OR_NULL(dec->procfs)) {
in vdpu_procfs_init() 485 mpp_err("failed on open procfs\n");
in vdpu_procfs_init() 486 dec->procfs = NULL;
in vdpu_procfs_init() 489 mpp_procfs_create_u32("aclk", FILE_RIGHT_644, dec->procfs, in vdpu_procfs_init() [all...] |
H A D | mpp_rkvenc.c | 184 struct proc_dir_entry *procfs;
member 678 if (enc->procfs) {
in rkvenc_procfs_remove() 679 proc_remove(enc->procfs);
in rkvenc_procfs_remove() 680 enc->procfs = NULL;
in rkvenc_procfs_remove() 759 enc->procfs = proc_mkdir(mpp->dev->of_node->name, mpp->srv->procfs);
in rkvenc_procfs_init() 760 if (IS_ERR_OR_NULL(enc->procfs)) {
in rkvenc_procfs_init() 761 mpp_err("failed on open procfs\n");
in rkvenc_procfs_init() 762 enc->procfs = NULL;
in rkvenc_procfs_init() 766 mpp_procfs_create_u32("aclk", FILE_RIGHT_644, enc->procfs, in rkvenc_procfs_init() [all...] |
H A D | mpp_iep2.c | 210 struct proc_dir_entry *procfs;
member 701 if (iep->procfs) {
in iep2_procfs_remove() 702 proc_remove(iep->procfs);
in iep2_procfs_remove() 703 iep->procfs = NULL;
in iep2_procfs_remove() 713 iep->procfs = proc_mkdir(mpp->dev->of_node->name, mpp->srv->procfs);
in iep2_procfs_init() 714 if (IS_ERR_OR_NULL(iep->procfs)) {
in iep2_procfs_init() 716 iep->procfs = NULL;
in iep2_procfs_init() 719 mpp_procfs_create_u32("aclk", IEP2_SESSION_PROCF, iep->procfs, &iep->aclk_info.debug_rate_hz);
in iep2_procfs_init() 720 mpp_procfs_create_u32("session_buffers", IEP2_SESSION_PROCF, iep->procfs, in iep2_procfs_init() [all...] |
H A D | mpp_rkvenc2.c | 174 struct proc_dir_entry *procfs;
member 1028 if (enc->procfs) {
in rkvenc_procfs_remove() 1029 proc_remove(enc->procfs);
in rkvenc_procfs_remove() 1030 enc->procfs = NULL;
in rkvenc_procfs_remove() 1110 if (!mpp->dev || !mpp->dev->of_node || !mpp->dev->of_node->name || !mpp->srv || !mpp->srv->procfs) {
in rkvenc_procfs_init() 1116 enc->procfs = proc_mkdir(name, mpp->srv->procfs);
in rkvenc_procfs_init() 1117 if (IS_ERR_OR_NULL(enc->procfs)) {
in rkvenc_procfs_init() 1118 mpp_err("failed on open procfs\n");
in rkvenc_procfs_init() 1119 enc->procfs in rkvenc_procfs_init() [all...] |
H A D | mpp_rkvdec.c | 161 struct proc_dir_entry *procfs;
member 1096 if (dec->procfs) {
in rkvdec_procfs_remove() 1097 proc_remove(dec->procfs);
in rkvdec_procfs_remove() 1098 dec->procfs = NULL;
in rkvdec_procfs_remove() 1108 dec->procfs = proc_mkdir(mpp->dev->of_node->name, mpp->srv->procfs);
in rkvdec_procfs_init() 1109 if (IS_ERR_OR_NULL(dec->procfs)) {
in rkvdec_procfs_init() 1110 mpp_err("failed on open procfs\n");
in rkvdec_procfs_init() 1111 dec->procfs = NULL;
in rkvdec_procfs_init() 1114 mpp_procfs_create_u32("aclk", FILE_PERMISSION_VALUE, dec->procfs, in rkvdec_procfs_init() [all...] |
/device/soc/rockchip/rk3588/kernel/drivers/video/rockchip/mpp/ |
H A D | mpp_service.c | 162 if (srv->procfs) { in mpp_procfs_remove() 163 proc_remove(srv->procfs); in mpp_procfs_remove() 164 srv->procfs = NULL; in mpp_procfs_remove() 260 srv->procfs = proc_mkdir(MPP_SERVICE_NAME, NULL); in mpp_procfs_init() 261 if (IS_ERR_OR_NULL(srv->procfs)) { in mpp_procfs_init() 263 srv->procfs = NULL; in mpp_procfs_init() 267 proc_create_single("version", 0444, srv->procfs, mpp_show_version); in mpp_procfs_init() 270 srv->procfs, mpp_show_session_summary, srv); in mpp_procfs_init() 272 proc_create_single("supports-cmd", 0444, srv->procfs, mpp_show_support_cmd); in mpp_procfs_init() 275 srv->procfs, mpp_show_support_devic in mpp_procfs_init() [all...] |
H A D | mpp_vepu1.c | 103 struct proc_dir_entry *procfs; member 475 if (enc->procfs) { in vepu_procfs_remove() 476 proc_remove(enc->procfs); in vepu_procfs_remove() 477 enc->procfs = NULL; in vepu_procfs_remove() 552 enc->procfs = proc_mkdir(mpp->dev->of_node->name, mpp->srv->procfs); in vepu_procfs_init() 553 if (IS_ERR_OR_NULL(enc->procfs)) { in vepu_procfs_init() 554 mpp_err("failed on open procfs\n"); in vepu_procfs_init() 555 enc->procfs = NULL; in vepu_procfs_init() 559 enc->procfs, in vepu_procfs_init() [all...] |
H A D | mpp_vdpu1.c | 122 struct proc_dir_entry *procfs; member 488 if (dec->procfs) { in vdpu_procfs_remove() 489 proc_remove(dec->procfs); in vdpu_procfs_remove() 490 dec->procfs = NULL; in vdpu_procfs_remove() 500 dec->procfs = proc_mkdir(mpp->dev->of_node->name, mpp->srv->procfs); in vdpu_procfs_init() 501 if (IS_ERR_OR_NULL(dec->procfs)) { in vdpu_procfs_init() 502 mpp_err("failed on open procfs\n"); in vdpu_procfs_init() 503 dec->procfs = NULL; in vdpu_procfs_init() 507 dec->procfs, in vdpu_procfs_init() [all...] |
H A D | mpp_vdpu2.c | 107 struct proc_dir_entry *procfs; member 441 if (dec->procfs) { in vdpu_procfs_remove() 442 proc_remove(dec->procfs); in vdpu_procfs_remove() 443 dec->procfs = NULL; in vdpu_procfs_remove() 453 dec->procfs = proc_mkdir(mpp->dev->of_node->name, mpp->srv->procfs); in vdpu_procfs_init() 454 if (IS_ERR_OR_NULL(dec->procfs)) { in vdpu_procfs_init() 455 mpp_err("failed on open procfs\n"); in vdpu_procfs_init() 456 dec->procfs = NULL; in vdpu_procfs_init() 460 dec->procfs, in vdpu_procfs_init() [all...] |
H A D | mpp_jpgdec.c | 98 struct proc_dir_entry *procfs; member 359 if (dec->procfs) { in jpgdec_procfs_remove() 360 proc_remove(dec->procfs); in jpgdec_procfs_remove() 361 dec->procfs = NULL; in jpgdec_procfs_remove() 371 dec->procfs = proc_mkdir(mpp->dev->of_node->name, mpp->srv->procfs); in jpgdec_procfs_init() 372 if (IS_ERR_OR_NULL(dec->procfs)) { in jpgdec_procfs_init() 373 mpp_err("failed on open procfs\n"); in jpgdec_procfs_init() 374 dec->procfs = NULL; in jpgdec_procfs_init() 378 dec->procfs, in jpgdec_procfs_init() [all...] |
H A D | mpp_rkvdec2.c | 582 if (dec->procfs) { in rkvdec2_procfs_remove() 583 proc_remove(dec->procfs); in rkvdec2_procfs_remove() 584 dec->procfs = NULL; in rkvdec2_procfs_remove() 603 !mpp->srv || !mpp->srv->procfs) in rkvdec2_procfs_init() 608 dec->procfs = proc_mkdir(name, mpp->srv->procfs); in rkvdec2_procfs_init() 609 if (IS_ERR_OR_NULL(dec->procfs)) { in rkvdec2_procfs_init() 610 mpp_err("failed on open procfs\n"); in rkvdec2_procfs_init() 611 dec->procfs = NULL; in rkvdec2_procfs_init() 615 dec->procfs, in rkvdec2_procfs_init() [all...] |
H A D | mpp_vepu2.c | 120 struct proc_dir_entry *procfs; member 556 if (enc->procfs) { in vepu_procfs_remove() 557 proc_remove(enc->procfs); in vepu_procfs_remove() 558 enc->procfs = NULL; in vepu_procfs_remove() 635 !mpp->srv || !mpp->srv->procfs) in vepu_procfs_init() 641 enc->procfs = proc_mkdir(name, mpp->srv->procfs); in vepu_procfs_init() 642 if (IS_ERR_OR_NULL(enc->procfs)) { in vepu_procfs_init() 643 mpp_err("failed on open procfs\n"); in vepu_procfs_init() 644 enc->procfs in vepu_procfs_init() [all...] |
H A D | mpp_rkvenc.c | 188 struct proc_dir_entry *procfs; member 721 if (enc->procfs) { in rkvenc_procfs_remove() 722 proc_remove(enc->procfs); in rkvenc_procfs_remove() 723 enc->procfs = NULL; in rkvenc_procfs_remove() 798 enc->procfs = proc_mkdir(mpp->dev->of_node->name, mpp->srv->procfs); in rkvenc_procfs_init() 799 if (IS_ERR_OR_NULL(enc->procfs)) { in rkvenc_procfs_init() 800 mpp_err("failed on open procfs\n"); in rkvenc_procfs_init() 801 enc->procfs = NULL; in rkvenc_procfs_init() 806 enc->procfs, in rkvenc_procfs_init() [all...] |
H A D | mpp_iep2.c | 220 struct proc_dir_entry *procfs; member 752 if (iep->procfs) { in iep2_procfs_remove() 753 proc_remove(iep->procfs); in iep2_procfs_remove() 754 iep->procfs = NULL; in iep2_procfs_remove() 764 iep->procfs = proc_mkdir(mpp->dev->of_node->name, mpp->srv->procfs); in iep2_procfs_init() 765 if (IS_ERR_OR_NULL(iep->procfs)) { in iep2_procfs_init() 767 iep->procfs = NULL; in iep2_procfs_init() 771 iep->procfs, &iep->aclk_info.debug_rate_hz); in iep2_procfs_init() 773 iep->procfs, in iep2_procfs_init() [all...] |
H A D | mpp_rkvenc2.c | 176 struct proc_dir_entry *procfs; member 1021 if (enc->procfs) { in rkvenc_procfs_remove() 1022 proc_remove(enc->procfs); in rkvenc_procfs_remove() 1023 enc->procfs = NULL; in rkvenc_procfs_remove() 1100 !mpp->srv || !mpp->srv->procfs) in rkvenc_procfs_init() 1106 enc->procfs = proc_mkdir(name, mpp->srv->procfs); in rkvenc_procfs_init() 1107 if (IS_ERR_OR_NULL(enc->procfs)) { in rkvenc_procfs_init() 1108 mpp_err("failed on open procfs\n"); in rkvenc_procfs_init() 1109 enc->procfs in rkvenc_procfs_init() [all...] |
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/ispp/ |
H A D | procfs.c | 10 #include "procfs.h" 93 dev->procfs = proc_create_data(dev->name, 0, NULL, &ops, dev); in rkispp_proc_init() 94 if (!dev->procfs) { in rkispp_proc_init() 102 if (dev->procfs) { in rkispp_proc_cleanup() 105 dev->procfs = NULL; in rkispp_proc_cleanup()
|
H A D | dev.h | 12 #include "procfs.h" 48 struct proc_dir_entry *procfs; member
|
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/ispp/ |
H A D | procfs.c | 10 #include "procfs.h" 131 dev->procfs = proc_create_data(dev->name, 0, NULL, &ops, dev); in rkispp_proc_init() 132 if (!dev->procfs) in rkispp_proc_init() 139 if (dev->procfs) in rkispp_proc_cleanup() 141 dev->procfs = NULL; in rkispp_proc_cleanup()
|
H A D | dev.h | 12 #include "procfs.h" 41 struct proc_dir_entry *procfs; member
|