Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/s390/char/
Dmonreader.c151 struct mon_private *monpriv) in mon_send_reply() argument
155 rc = iucv_message_reply(monpriv->path, &monmsg->msg, in mon_send_reply()
157 atomic_dec(&monpriv->msglim_count); in mon_send_reply()
161 monpriv->read_index = (monpriv->read_index + 1) % in mon_send_reply()
163 atomic_dec(&monpriv->read_ready); in mon_send_reply()
173 static void mon_free_mem(struct mon_private *monpriv) in mon_free_mem() argument
178 kfree(monpriv->msg_array[i]); in mon_free_mem()
179 kfree(monpriv); in mon_free_mem()
185 struct mon_private *monpriv; in mon_alloc_mem() local
187 monpriv = kzalloc(sizeof(struct mon_private), GFP_KERNEL); in mon_alloc_mem()
[all …]
Dmonwriter.c79 static struct mon_buf *monwrite_find_hdr(struct mon_private *monpriv, in monwrite_find_hdr() argument
84 list_for_each_entry_safe(entry, next, &monpriv->list, list) in monwrite_find_hdr()
97 static int monwrite_new_hdr(struct mon_private *monpriv) in monwrite_new_hdr() argument
99 struct monwrite_hdr *monhdr = &monpriv->hdr; in monwrite_new_hdr()
109 monbuf = monwrite_find_hdr(monpriv, monhdr); in monwrite_new_hdr()
134 list_add_tail(&monbuf->list, &monpriv->list); in monwrite_new_hdr()
138 monpriv->current_buf = monbuf; in monwrite_new_hdr()
142 static int monwrite_new_data(struct mon_private *monpriv) in monwrite_new_data() argument
144 struct monwrite_hdr *monhdr = &monpriv->hdr; in monwrite_new_data()
145 struct mon_buf *monbuf = monpriv->current_buf; in monwrite_new_data()
[all …]