gdm 30 drivers/staging/gdm724x/gdm_tty.c #define GDM_TTY_READY(gdm) (gdm && gdm->tty_dev && gdm->port.count) gdm 33 drivers/staging/gdm724x/gdm_tty.c static struct gdm *gdm_table[TTY_MAX_COUNT][GDM_TTY_MINOR]; gdm 41 drivers/staging/gdm724x/gdm_tty.c struct gdm *gdm = container_of(port, struct gdm, port); gdm 44 drivers/staging/gdm724x/gdm_tty.c gdm_table[gdm->index][gdm->minor] = NULL; gdm 47 drivers/staging/gdm724x/gdm_tty.c kfree(gdm); gdm 56 drivers/staging/gdm724x/gdm_tty.c struct gdm *gdm = NULL; gdm 65 drivers/staging/gdm724x/gdm_tty.c gdm = gdm_table[ret][tty->index]; gdm 66 drivers/staging/gdm724x/gdm_tty.c if (!gdm) { gdm 71 drivers/staging/gdm724x/gdm_tty.c tty_port_get(&gdm->port); gdm 75 drivers/staging/gdm724x/gdm_tty.c tty_port_put(&gdm->port); gdm 80 drivers/staging/gdm724x/gdm_tty.c tty->driver_data = gdm; gdm 88 drivers/staging/gdm724x/gdm_tty.c struct gdm *gdm = tty->driver_data; gdm 90 drivers/staging/gdm724x/gdm_tty.c return tty_port_open(&gdm->port, tty, filp); gdm 95 drivers/staging/gdm724x/gdm_tty.c struct gdm *gdm = tty->driver_data; gdm 97 drivers/staging/gdm724x/gdm_tty.c tty_port_put(&gdm->port); gdm 102 drivers/staging/gdm724x/gdm_tty.c struct gdm *gdm = tty->driver_data; gdm 104 drivers/staging/gdm724x/gdm_tty.c tty_port_hangup(&gdm->port); gdm 109 drivers/staging/gdm724x/gdm_tty.c struct gdm *gdm = tty->driver_data; gdm 111 drivers/staging/gdm724x/gdm_tty.c tty_port_close(&gdm->port, tty, filp); gdm 120 drivers/staging/gdm724x/gdm_tty.c struct gdm *gdm = tty_dev->gdm[index]; gdm 122 drivers/staging/gdm724x/gdm_tty.c if (!GDM_TTY_READY(gdm)) { gdm 124 drivers/staging/gdm724x/gdm_tty.c gdm->tty_dev->recv_func(gdm->tty_dev->priv_dev, gdm 130 drivers/staging/gdm724x/gdm_tty.c if (tty_buffer_request_room(&gdm->port, len) == len) { gdm 131 drivers/staging/gdm724x/gdm_tty.c tty_insert_flip_string(&gdm->port, data, len); gdm 132 drivers/staging/gdm724x/gdm_tty.c tty_flip_buffer_push(&gdm->port); gdm 139 drivers/staging/gdm724x/gdm_tty.c gdm->tty_dev->recv_func(gdm->tty_dev->priv_dev, gdm 147 drivers/staging/gdm724x/gdm_tty.c struct gdm *gdm = arg; gdm 149 drivers/staging/gdm724x/gdm_tty.c if (!GDM_TTY_READY(gdm)) gdm 152 drivers/staging/gdm724x/gdm_tty.c tty_port_tty_wakeup(&gdm->port); gdm 158 drivers/staging/gdm724x/gdm_tty.c struct gdm *gdm = tty->driver_data; gdm 163 drivers/staging/gdm724x/gdm_tty.c if (!GDM_TTY_READY(gdm)) gdm 171 drivers/staging/gdm724x/gdm_tty.c gdm->tty_dev->send_func(gdm->tty_dev->priv_dev, gdm 174 drivers/staging/gdm724x/gdm_tty.c gdm->index, gdm 176 drivers/staging/gdm724x/gdm_tty.c gdm); gdm 188 drivers/staging/gdm724x/gdm_tty.c struct gdm *gdm = tty->driver_data; gdm 190 drivers/staging/gdm724x/gdm_tty.c if (!GDM_TTY_READY(gdm)) gdm 198 drivers/staging/gdm724x/gdm_tty.c struct gdm *gdm; gdm 203 drivers/staging/gdm724x/gdm_tty.c gdm = kmalloc(sizeof(*gdm), GFP_KERNEL); gdm 204 drivers/staging/gdm724x/gdm_tty.c if (!gdm) gdm 214 drivers/staging/gdm724x/gdm_tty.c kfree(gdm); gdm 219 drivers/staging/gdm724x/gdm_tty.c gdm_table[i][j] = gdm; gdm 222 drivers/staging/gdm724x/gdm_tty.c tty_dev->gdm[i] = gdm; gdm 223 drivers/staging/gdm724x/gdm_tty.c tty_port_init(&gdm->port); gdm 225 drivers/staging/gdm724x/gdm_tty.c gdm->port.ops = &gdm_port_ops; gdm 226 drivers/staging/gdm724x/gdm_tty.c gdm->index = i; gdm 227 drivers/staging/gdm724x/gdm_tty.c gdm->minor = j; gdm 228 drivers/staging/gdm724x/gdm_tty.c gdm->tty_dev = tty_dev; gdm 230 drivers/staging/gdm724x/gdm_tty.c tty_port_register_device(&gdm->port, gdm_driver[i], gdm 231 drivers/staging/gdm724x/gdm_tty.c gdm->minor, device); gdm 235 drivers/staging/gdm724x/gdm_tty.c gdm->tty_dev->recv_func(gdm->tty_dev->priv_dev, gdm 243 drivers/staging/gdm724x/gdm_tty.c struct gdm *gdm; gdm 248 drivers/staging/gdm724x/gdm_tty.c gdm = tty_dev->gdm[i]; gdm 249 drivers/staging/gdm724x/gdm_tty.c if (!gdm) gdm 253 drivers/staging/gdm724x/gdm_tty.c gdm_table[gdm->index][gdm->minor] = NULL; gdm 256 drivers/staging/gdm724x/gdm_tty.c tty = tty_port_tty_get(&gdm->port); gdm 262 drivers/staging/gdm724x/gdm_tty.c tty_unregister_device(gdm_driver[i], gdm->minor); gdm 263 drivers/staging/gdm724x/gdm_tty.c tty_port_put(&gdm->port); gdm 51 drivers/staging/gdm724x/gdm_tty.h struct gdm *gdm[2];