Lines Matching refs:t
110 char *t = target; in mangle_name() local
118 *(t)++ = '.'; in mangle_name()
120 *(t)++ = '_'; in mangle_name()
122 *(t)++ = *name; in mangle_name()
125 *t = 0; in mangle_name()
137 return t - target; in mangle_name()
823 struct multi_transaction *t; in multi_transaction_kref() local
825 t = container_of(kref, struct multi_transaction, count); in multi_transaction_kref()
826 free_page((unsigned long) t); in multi_transaction_kref()
830 get_multi_transaction(struct multi_transaction *t) in get_multi_transaction() argument
832 if (t) in get_multi_transaction()
833 kref_get(&(t->count)); in get_multi_transaction()
835 return t; in get_multi_transaction()
838 static void put_multi_transaction(struct multi_transaction *t) in put_multi_transaction() argument
840 if (t) in put_multi_transaction()
841 kref_put(&(t->count), multi_transaction_kref); in put_multi_transaction()
864 struct multi_transaction *t; in multi_transaction_new() local
869 t = (struct multi_transaction *)get_zeroed_page(GFP_KERNEL); in multi_transaction_new()
870 if (!t) in multi_transaction_new()
872 kref_init(&t->count); in multi_transaction_new()
873 if (copy_from_user(t->data, buf, size)) { in multi_transaction_new()
874 put_multi_transaction(t); in multi_transaction_new()
878 return t; in multi_transaction_new()
884 struct multi_transaction *t; in multi_transaction_read() local
888 t = get_multi_transaction(file->private_data); in multi_transaction_read()
891 if (!t) in multi_transaction_read()
894 ret = simple_read_from_buffer(buf, size, pos, t->data, t->size); in multi_transaction_read()
895 put_multi_transaction(t); in multi_transaction_read()
940 struct multi_transaction *t; in aa_write_access() local
946 t = multi_transaction_new(file, ubuf, count); in aa_write_access()
947 if (IS_ERR(t)) in aa_write_access()
948 return PTR_ERR(t); in aa_write_access()
951 !memcmp(t->data, QUERY_CMD_PROFILE, QUERY_CMD_PROFILE_LEN)) { in aa_write_access()
952 len = query_label(t->data, MULTI_TRANSACTION_LIMIT, in aa_write_access()
953 t->data + QUERY_CMD_PROFILE_LEN, in aa_write_access()
956 !memcmp(t->data, QUERY_CMD_LABEL, QUERY_CMD_LABEL_LEN)) { in aa_write_access()
957 len = query_label(t->data, MULTI_TRANSACTION_LIMIT, in aa_write_access()
958 t->data + QUERY_CMD_LABEL_LEN, in aa_write_access()
961 !memcmp(t->data, QUERY_CMD_LABELALL, in aa_write_access()
963 len = query_label(t->data, MULTI_TRANSACTION_LIMIT, in aa_write_access()
964 t->data + QUERY_CMD_LABELALL_LEN, in aa_write_access()
967 !memcmp(t->data, QUERY_CMD_DATA, QUERY_CMD_DATA_LEN)) { in aa_write_access()
968 len = query_data(t->data, MULTI_TRANSACTION_LIMIT, in aa_write_access()
969 t->data + QUERY_CMD_DATA_LEN, in aa_write_access()
975 put_multi_transaction(t); in aa_write_access()
979 multi_transaction_set(file, t, len); in aa_write_access()