Lines Matching +full:cs +full:- +full:0

1 /* SPDX-License-Identifier: GPL-2.0 */
23 #define TC_WRITE 0x01 /* Write */
24 #define TC_RDBUF 0x02 /* Read Buffer */
25 #define TC_EWRITE 0x05 /* Erase write */
26 #define TC_READMOD 0x06 /* Read modified */
27 #define TC_EWRITEA 0x0d /* Erase write alternate */
28 #define TC_WRITESF 0x11 /* Write structured field */
31 #define TO_SF 0x1d /* Start field */
32 #define TO_SBA 0x11 /* Set buffer address */
33 #define TO_IC 0x13 /* Insert cursor */
34 #define TO_PT 0x05 /* Program tab */
35 #define TO_RA 0x3c /* Repeat to address */
36 #define TO_SFE 0x29 /* Start field extended */
37 #define TO_EUA 0x12 /* Erase unprotected to address */
38 #define TO_MF 0x2c /* Modify field */
39 #define TO_SA 0x28 /* Set attribute */
42 #define TF_INPUT 0x40 /* Visible input */
43 #define TF_INPUTN 0x4c /* Invisible input */
44 #define TF_INMDT 0xc1 /* Visible, Set-MDT */
45 #define TF_LOG 0x60
48 #define TAT_RESET 0x00
49 #define TAT_FIELD 0xc0
50 #define TAT_EXTHI 0x41
51 #define TAT_COLOR 0x42
52 #define TAT_CHARS 0x43
53 #define TAT_TRANS 0x46
55 /* Extended-Highlighting Bytes */
56 #define TAX_RESET 0x00
57 #define TAX_BLINK 0xf1
58 #define TAX_REVER 0xf2
59 #define TAX_UNDER 0xf4
62 #define TAR_RESET 0x00
65 #define TAC_RESET 0x00
66 #define TAC_BLUE 0xf1
67 #define TAC_RED 0xf2
68 #define TAC_PINK 0xf3
69 #define TAC_GREEN 0xf4
70 #define TAC_TURQ 0xf5
71 #define TAC_YELLOW 0xf6
72 #define TAC_WHITE 0xf7
73 #define TAC_DEFAULT 0x00
76 #define TW_NONE 0x40 /* No particular action */
77 #define TW_KR 0xc2 /* Keyboard restore */
78 #define TW_PLUSALARM 0x04 /* Add this bit for alarm */
123 return list_empty(&rq->list); in raw3270_request_final()
152 #define RAW3270_VIEW_LOCK_IRQ 0
159 unsigned char *ascebc; /* ascii -> ebcdic table */
178 atomic_inc(&view->ref_count); in raw3270_get_view()
186 if (atomic_dec_return(&view->ref_count) == 0) in raw3270_put_view()
219 struct string *cs, *tmp; in alloc_string() local
222 size = (len + 7L) & -8L; in alloc_string()
223 list_for_each_entry(cs, free_list, list) { in alloc_string()
224 if (cs->size < size) in alloc_string()
226 if (cs->size > size + sizeof(struct string)) { in alloc_string()
227 char *endaddr = (char *) (cs + 1) + cs->size; in alloc_string()
228 tmp = (struct string *) (endaddr - size) - 1; in alloc_string()
229 tmp->size = size; in alloc_string()
230 cs->size -= size + sizeof(struct string); in alloc_string()
231 cs = tmp; in alloc_string()
233 list_del(&cs->list); in alloc_string()
234 cs->len = len; in alloc_string()
235 INIT_LIST_HEAD(&cs->list); in alloc_string()
236 INIT_LIST_HEAD(&cs->update); in alloc_string()
237 return cs; in alloc_string()
243 free_string(struct list_head *free_list, struct string *cs) in free_string() argument
251 if (list_entry(p, struct string, list) > cs) in free_string()
256 if (left->next != free_list) { in free_string()
257 tmp = list_entry(left->next, struct string, list); in free_string()
258 if ((char *) (cs + 1) + cs->size == (char *) tmp) { in free_string()
259 list_del(&tmp->list); in free_string()
260 cs->size += tmp->size + sizeof(struct string); in free_string()
266 if ((char *) (tmp + 1) + tmp->size == (char *) cs) { in free_string()
267 tmp->size += cs->size + sizeof(struct string); in free_string()
268 return tmp->size; in free_string()
271 __list_add(&cs->list, left, left->next); in free_string()
272 return cs->size; in free_string()
278 struct string *cs; in add_string_memory() local
280 cs = (struct string *) mem; in add_string_memory()
281 cs->size = size - sizeof(struct string); in add_string_memory()
282 free_string(free_list, cs); in add_string_memory()