Home | History | Annotate | Download | only in hyperv

Lines Matching refs:ksi

254 	struct hvkbd_keystroke_info *ksi;
258 ksi = kmem_zalloc(sizeof(*ksi), KM_SLEEP);
259 LIST_INSERT_HEAD(&sc->sc_ks_free, ksi, link);
268 struct hvkbd_keystroke_info *ksi;
270 while ((ksi = STAILQ_FIRST(&sc->sc_ks_queue)) != NULL) {
271 STAILQ_REMOVE(&sc->sc_ks_queue, ksi, hvkbd_keystroke_info,
273 kmem_free(ksi, sizeof(*ksi));
275 while ((ksi = LIST_FIRST(&sc->sc_ks_free)) != NULL) {
276 LIST_REMOVE(ksi, link);
277 kmem_free(ksi, sizeof(*ksi));
373 struct hvkbd_keystroke_info *ksi;
376 ksi = LIST_FIRST(&sc->sc_ks_free);
377 if (ksi != NULL) {
378 LIST_REMOVE(ksi, link);
379 ksi->ks = *ks;
380 STAILQ_INSERT_TAIL(&sc->sc_ks_queue, ksi, slink);
384 return (ksi != NULL) ? 0 : 1;
390 struct hvkbd_keystroke_info *ksi;
394 ksi = STAILQ_FIRST(&sc->sc_ks_queue);
395 if (ksi != NULL) {
397 ks = ksi->ks;
398 LIST_INSERT_HEAD(&sc->sc_ks_free, ksi, link);
402 if (ksi == NULL)
423 struct hvkbd_keystroke_info *ksi;
428 ksi = STAILQ_FIRST(&sc->sc_ks_queue);
429 if (ksi != NULL) {
431 ks = ksi->ks;
432 LIST_INSERT_HEAD(&sc->sc_ks_free, ksi, link);
436 if (ksi == NULL)