Home
last modified time | relevance | path

Searched refs:monpriv (Results 1 – 2 of 2) sorted by relevance

/linux-5.19.10/drivers/s390/char/
Dmonreader.c148 struct mon_private *monpriv) in mon_send_reply() argument
152 rc = iucv_message_reply(monpriv->path, &monmsg->msg, in mon_send_reply()
154 atomic_dec(&monpriv->msglim_count); in mon_send_reply()
158 monpriv->read_index = (monpriv->read_index + 1) % in mon_send_reply()
160 atomic_dec(&monpriv->read_ready); in mon_send_reply()
170 static void mon_free_mem(struct mon_private *monpriv) in mon_free_mem() argument
175 kfree(monpriv->msg_array[i]); in mon_free_mem()
176 kfree(monpriv); in mon_free_mem()
182 struct mon_private *monpriv; in mon_alloc_mem() local
184 monpriv = kzalloc(sizeof(struct mon_private), GFP_KERNEL); in mon_alloc_mem()
[all …]
Dmonwriter.c84 static struct mon_buf *monwrite_find_hdr(struct mon_private *monpriv, in monwrite_find_hdr() argument
89 list_for_each_entry_safe(entry, next, &monpriv->list, list) in monwrite_find_hdr()
102 static int monwrite_new_hdr(struct mon_private *monpriv) in monwrite_new_hdr() argument
104 struct monwrite_hdr *monhdr = &monpriv->hdr; in monwrite_new_hdr()
114 monbuf = monwrite_find_hdr(monpriv, monhdr); in monwrite_new_hdr()
139 list_add_tail(&monbuf->list, &monpriv->list); in monwrite_new_hdr()
143 monpriv->current_buf = monbuf; in monwrite_new_hdr()
147 static int monwrite_new_data(struct mon_private *monpriv) in monwrite_new_data() argument
149 struct monwrite_hdr *monhdr = &monpriv->hdr; in monwrite_new_data()
150 struct mon_buf *monbuf = monpriv->current_buf; in monwrite_new_data()
[all …]