Lines Matching +refs:sb +refs:id +refs:attrs

390 	struct iucv_tty_buffer *sb;  in hvc_iucv_send()  local
404 sb = alloc_tty_buffer(priv->sndbuf_len, GFP_ATOMIC); in hvc_iucv_send()
405 if (!sb) in hvc_iucv_send()
408 memcpy(sb->mbuf->data, priv->sndbuf, priv->sndbuf_len); in hvc_iucv_send()
409 sb->mbuf->datalen = (u16) priv->sndbuf_len; in hvc_iucv_send()
410 sb->msg.length = MSG_SIZE(sb->mbuf->datalen); in hvc_iucv_send()
412 list_add_tail(&sb->list, &priv->tty_outqueue); in hvc_iucv_send()
414 rc = __iucv_message_send(priv->path, &sb->msg, 0, 0, in hvc_iucv_send()
415 (void *) sb->mbuf, sb->msg.length); in hvc_iucv_send()
419 list_del(&sb->list); in hvc_iucv_send()
420 destroy_tty_buffer(sb); in hvc_iucv_send()
487 static int hvc_iucv_notifier_add(struct hvc_struct *hp, int id) in hvc_iucv_notifier_add() argument
491 priv = hvc_iucv_get_private(id); in hvc_iucv_notifier_add()
633 static void hvc_iucv_notifier_hangup(struct hvc_struct *hp, int id) in hvc_iucv_notifier_hangup() argument
637 priv = hvc_iucv_get_private(id); in hvc_iucv_notifier_hangup()
714 static void hvc_iucv_notifier_del(struct hvc_struct *hp, int id) in hvc_iucv_notifier_del() argument
718 priv = hvc_iucv_get_private(id); in hvc_iucv_notifier_del()
957 if (ent->msg.id == msg->id) { in hvc_iucv_msg_complete()
1031 .attrs = hvc_iucv_dev_attrs,
1048 static int __init hvc_iucv_alloc(int id, unsigned int is_console) in hvc_iucv_alloc() argument
1074 priv->hvc = hvc_alloc(id, /* PAGE_SIZE */ in hvc_iucv_alloc()
1075 id, &hvc_iucv_ops, 256); in hvc_iucv_alloc()
1085 snprintf(name, 9, "lnxhvc%-2d", id); in hvc_iucv_alloc()
1095 dev_set_name(priv->dev, "hvc_iucv%d", id); in hvc_iucv_alloc()
1107 hvc_iucv_table[id] = priv; in hvc_iucv_alloc()