Home
last modified time | relevance | path

Searched refs:tif (Results 1 - 20 of 20) sorted by relevance

/third_party/ltp/testcases/kernel/device-drivers/dev_sim_framework/user_space/
H A Dtmod_ki.c22 * calls. Each function will need to setup the tif structure
26 * use tif structure for passing params between user
29 * the ki_generic function below. the tif structure makes
48 tmod_interface_t tif; in ki_generic() local
53 tif.in_len = 0; in ki_generic()
54 tif.in_data = 0; in ki_generic()
55 tif.out_len = 0; in ki_generic()
56 tif.out_data = 0; in ki_generic()
57 tif.out_rc = 0; in ki_generic()
62 rc = ioctl(fd, flag, &tif); in ki_generic()
[all...]
/third_party/ltp/testcases/kernel/device-drivers/agp/user_space/
H A Dtagp_ki.c22 * calls. Each function will need to setup the tif structure
26 * use tif structure for passing params between user
29 * the ki_generic function below. the tif structure makes
48 tagp_interface_t tif; in ki_generic() local
53 tif.in_len = 0; in ki_generic()
54 tif.in_data = 0; in ki_generic()
55 tif.out_len = 0; in ki_generic()
56 tif.out_data = 0; in ki_generic()
57 tif.out_rc = 0; in ki_generic()
62 rc = ioctl(fd, flag, &tif); in ki_generic()
[all...]
/third_party/ltp/testcases/kernel/device-drivers/base/user_base/
H A Dtbase_ki.c22 * calls. Each function will need to setup the tif structure
26 * use tif structure for passing params between user
29 * the ki_generic function below. the tif structure makes
48 tmod_interface_t tif; in ki_generic() local
53 tif.in_len = 0; in ki_generic()
54 tif.in_data = 0; in ki_generic()
55 tif.out_len = 0; in ki_generic()
56 tif.out_data = 0; in ki_generic()
57 tif.out_rc = 0; in ki_generic()
62 rc = ioctl(fd, flag, &tif); in ki_generic()
[all...]
/third_party/ltp/testcases/kernel/device-drivers/usb/user_usb/
H A Dtusb_ki.c22 * and kernel calls. Each function will need to setup the tif
26 * use tif structure for passing params between user
50 * tif in_data and out_data values
57 tusb_interface_t tif; in ki_generic() local
62 tif.in_len = 0; in ki_generic()
63 tif.in_data = 0; in ki_generic()
64 tif.out_len = 0; in ki_generic()
65 tif.out_data = 0; in ki_generic()
66 tif.out_rc = 0; in ki_generic()
71 rc = ioctl(fd, flag, &tif); in ki_generic()
[all...]
/third_party/ltp/testcases/kernel/device-drivers/dev_sim_framework/kernel_space/
H A Dtmod.c98 tmod_interface_t tif; in tmod_ioctl() local
111 * between user and kernel space, using the tif in tmod_ioctl()
116 if (copy_from_user(&tif, (void *)l, sizeof(tif))) { in tmod_ioctl()
124 if (tif.in_len > 0) { in tmod_ioctl()
125 inparms = (caddr_t *) kmalloc(tif.in_len, GFP_KERNEL); in tmod_ioctl()
130 rc = copy_from_user(inparms, tif.in_data, tif.in_len); in tmod_ioctl()
136 if (tif.out_len > 0) { in tmod_ioctl()
137 outparms = (caddr_t *) kmalloc(tif in tmod_ioctl()
[all...]
/third_party/libwebsockets/lib/misc/fts/
H A Dtrie.c397 struct lws_fts_instance_file *tif; in finalize_per_input() local
420 * .ofs_last_inst_file contains the fileoffset of that child's tif in finalize_per_input()
427 tif = t->tif_list; in finalize_per_input()
428 while (tif) { in finalize_per_input()
431 spill((3 * MAX_VLI) + tif->count, 0); in finalize_per_input()
433 temp = tif->owner->ofs_last_inst_file; in finalize_per_input()
434 if (tif->total) in finalize_per_input()
435 tif->owner->ofs_last_inst_file = t->c + (unsigned int)bp; in finalize_per_input()
441 bp += wq32(&buf[bp], tif->file_index); in finalize_per_input()
442 bp += wq32(&buf[bp], tif in finalize_per_input()
549 struct lws_fts_instance_file *tif; lws_fts_fill() local
[all...]
/third_party/cups-filters/cupsfilters/
H A Dimage-tiff.c43 TIFF *tif; /* TIFF file */ in _cupsImageReadTIFF() local
87 if ((tif = TIFFFdOpen(fileno(fp), "", "r")) == NULL) in _cupsImageReadTIFF()
94 if (!TIFFGetField(tif, TIFFTAG_IMAGEWIDTH, &width)) in _cupsImageReadTIFF()
97 TIFFClose(tif); in _cupsImageReadTIFF()
102 if (!TIFFGetField(tif, TIFFTAG_IMAGELENGTH, &height)) in _cupsImageReadTIFF()
105 TIFFClose(tif); in _cupsImageReadTIFF()
110 if (!TIFFGetField(tif, TIFFTAG_PHOTOMETRIC, &photometric)) in _cupsImageReadTIFF()
113 TIFFClose(tif); in _cupsImageReadTIFF()
118 if (!TIFFGetField(tif, TIFFTAG_COMPRESSION, &compression)) in _cupsImageReadTIFF()
121 TIFFClose(tif); in _cupsImageReadTIFF()
[all...]
/third_party/skia/third_party/externals/libwebp/imageio/
H A Dtiffdec.c40 static int ExtractMetadataFromTIFF(TIFF* const tif, Metadata* const metadata) { in ExtractMetadataFromTIFF() argument
51 if (TIFFGetField(tif, kTIFFMetadataMap[i].tag, &tag_data_len, &tag_data) && in ExtractMetadataFromTIFF()
63 if (TIFFGetField(tif, TIFFTAG_EXIFIFD, &exif_ifd_offset)) { in ExtractMetadataFromTIFF()
158 TIFF* tif; in ReadTIFF() local
173 tif = TIFFClientOpen("Memory", "r", &my_data, in ReadTIFF()
176 if (tif == NULL) { in ReadTIFF()
181 dircount = TIFFNumberOfDirectories(tif); in ReadTIFF()
187 if (!TIFFGetFieldDefaulted(tif, TIFFTAG_SAMPLESPERPIXEL, &samples_per_px)) { in ReadTIFF()
193 if (!(TIFFGetField(tif, TIFFTAG_IMAGEWIDTH, &image_width) && in ReadTIFF()
194 TIFFGetField(tif, TIFFTAG_IMAGELENGT in ReadTIFF()
[all...]
/third_party/backends/backend/escl/
H A Descl_tiff.c57 TIFF* tif = NULL; in get_TIFF_data() local
66 tif = TIFFFdOpen(fileno(scanner->tmp), "temp", "r"); in get_TIFF_data()
67 if (!tif) { in get_TIFF_data()
73 TIFFGetField(tif, TIFFTAG_IMAGEWIDTH, &w); in get_TIFF_data()
74 TIFFGetField(tif, TIFFTAG_IMAGELENGTH, &h); in get_TIFF_data()
84 if (!TIFFReadRGBAImage(tif, w, h, (uint32_t *)surface, 0)) in get_TIFF_data()
102 TIFFClose(tif); in get_TIFF_data()
/third_party/ltp/testcases/kernel/device-drivers/base/tbase/
H A Dtbase.c242 tmod_interface_t tif; in tbase_ioctl() local
255 * between user and kernel space, using the tif in tbase_ioctl()
260 if (copy_from_user(&tif, (void *)l, sizeof(tif))) { in tbase_ioctl()
268 if (tif.in_len > 0) { in tbase_ioctl()
269 inparms = (caddr_t *) kmalloc(tif.in_len, GFP_KERNEL); in tbase_ioctl()
274 rc = copy_from_user(inparms, tif.in_data, tif.in_len); in tbase_ioctl()
280 if (tif.out_len > 0) { in tbase_ioctl()
281 outparms = (caddr_t *) kmalloc(tif in tbase_ioctl()
[all...]
/third_party/ltp/testcases/kernel/device-drivers/usb/tusb/
H A Dtusb.c189 tusb_interface_t tif; in tusb_ioctl() local
199 if (copy_from_user(&tif, (void *)l, sizeof(tif))) { in tusb_ioctl()
207 if (tif.in_len > 0) { in tusb_ioctl()
208 inparms = (caddr_t *) kmalloc(tif.in_len, GFP_KERNEL); in tusb_ioctl()
213 rc = copy_from_user(inparms, tif.in_data, tif.in_len); in tusb_ioctl()
219 if (tif.out_len > 0) { in tusb_ioctl()
220 outparms = (caddr_t *) kmalloc(tif.out_len, GFP_KERNEL); in tusb_ioctl()
258 tif in tusb_ioctl()
[all...]
/third_party/ltp/testcases/kernel/device-drivers/agp/kernel_space/
H A Dtagp.c127 tagp_interface_t tif; in tagp_ioctl() local
140 * between user and kernel space, using the tif in tagp_ioctl()
145 if (copy_from_user(&tif, (void *)l, sizeof(tif))) { in tagp_ioctl()
153 if (tif.in_len > 0) { in tagp_ioctl()
154 inparms = (caddr_t *) kmalloc(tif.in_len, GFP_KERNEL); in tagp_ioctl()
159 rc = copy_from_user(inparms, tif.in_data, tif.in_len); in tagp_ioctl()
165 if (tif.out_len > 0) { in tagp_ioctl()
166 outparms = (caddr_t *) kmalloc(tif in tagp_ioctl()
[all...]
/third_party/skia/gm/
H A Dbigtileimagefilter.cpp72 sk_sp<SkImageFilter> tif(SkImageFilters::Tile(
76 p.setImageFilter(std::move(tif));
87 sk_sp<SkImageFilter> tif(SkImageFilters::Tile(
92 p2.setImageFilter(std::move(tif));
/third_party/selinux/libsepol/cil/src/
H A Dcil_write_ast.c614 struct cil_tunableif *tif = node->data; in cil_write_ast_node() local
616 if (tif->datum_expr) in cil_write_ast_node()
617 write_expr(out, tif->datum_expr); in cil_write_ast_node()
619 write_expr(out, tif->str_expr); in cil_write_ast_node()
H A Dcil.c2440 void cil_tunif_init(struct cil_tunableif **tif) in cil_tunif_init() argument
2442 *tif = cil_malloc(sizeof(**tif)); in cil_tunif_init()
2444 (*tif)->str_expr = NULL; in cil_tunif_init()
2445 (*tif)->datum_expr = NULL; in cil_tunif_init()
H A Dcil_build_ast.h134 void cil_destroy_tunif(struct cil_tunableif *tif);
H A Dcil_internal.h1037 void cil_tunif_init(struct cil_tunableif **tif);
H A Dcil_build_ast.c2946 struct cil_tunableif *tif = NULL; in cil_gen_tunif() local
2959 cil_tunif_init(&tif); in cil_gen_tunif()
2961 rc = cil_gen_expr(parse_current->next, CIL_TUNABLE, &tif->str_expr); in cil_gen_tunif()
2977 ast_node->data = tif; in cil_gen_tunif()
2983 cil_destroy_tunif(tif); in cil_gen_tunif()
2987 void cil_destroy_tunif(struct cil_tunableif *tif) in cil_destroy_tunif() argument
2989 if (tif == NULL) { in cil_destroy_tunif()
2993 cil_list_destroy(&tif->str_expr, CIL_TRUE); in cil_destroy_tunif()
2994 cil_list_destroy(&tif->datum_expr, CIL_FALSE); in cil_destroy_tunif()
2996 free(tif); in cil_destroy_tunif()
[all...]
H A Dcil_resolve_ast.c3412 struct cil_tunableif *tif = (struct cil_tunableif*)current->data; in cil_resolve_tunif() local
3422 rc = cil_resolve_expr(CIL_TUNABLEIF, tif->str_expr, &tif->datum_expr, current, extra_args); in cil_resolve_tunif()
3427 result = __cil_evaluate_tunable_expr(tif->datum_expr->head); in cil_resolve_tunif()
/third_party/selinux/libsepol/cil/test/unit/
H A Dtest_cil_resolve_ast.c6831 struct cil_tunableif *tif = (struct cil_tunableif*)test_db->ast->root->cl_head->next->next->next->data; in test_cil_resolve_expr_stack_tunables() local
6833 int rc = cil_resolve_expr_stack(tif->expr_stack, test_db->ast->root->cl_head->next->next->next, args); in test_cil_resolve_expr_stack_tunables()
7026 struct cil_tunableif *tif = (struct cil_tunableif*)test_db->ast->root->cl_head->next->next->next->data; in test_cil_evaluate_expr_stack_and() local
7028 cil_resolve_expr_stack(tif->expr_stack, test_db->ast->root->cl_head->next->next->next, args); in test_cil_evaluate_expr_stack_and()
7029 int rc = cil_evaluate_expr_stack(tif->expr_stack, &result); in test_cil_evaluate_expr_stack_and()
7053 struct cil_tunableif *tif = (struct cil_tunableif*)test_db->ast->root->cl_head->next->next->next->data; in test_cil_evaluate_expr_stack_not() local
7055 cil_resolve_expr_stack(tif->expr_stack, test_db->ast->root->cl_head->next->next->next, args); in test_cil_evaluate_expr_stack_not()
7056 int rc = cil_evaluate_expr_stack(tif->expr_stack, &result); in test_cil_evaluate_expr_stack_not()
7080 struct cil_tunableif *tif = (struct cil_tunableif*)test_db->ast->root->cl_head->next->next->next->data; in test_cil_evaluate_expr_stack_or() local
7082 cil_resolve_expr_stack(tif in test_cil_evaluate_expr_stack_or()
7107 struct cil_tunableif *tif = (struct cil_tunableif*)test_db->ast->root->cl_head->next->next->next->data; test_cil_evaluate_expr_stack_xor() local
7134 struct cil_tunableif *tif = (struct cil_tunableif*)test_db->ast->root->cl_head->next->next->next->data; test_cil_evaluate_expr_stack_eq() local
7161 struct cil_tunableif *tif = (struct cil_tunableif*)test_db->ast->root->cl_head->next->next->next->data; test_cil_evaluate_expr_stack_neq() local
7189 struct cil_tunableif *tif = (struct cil_tunableif*)test_db->ast->root->cl_head->next->next->next->next->data; test_cil_evaluate_expr_stack_oper1() local
7217 struct cil_tunableif *tif = (struct cil_tunableif*)test_db->ast->root->cl_head->next->next->next->next->data; test_cil_evaluate_expr_stack_oper2() local
[all...]

Completed in 38 milliseconds