Lines Matching refs:lopt
44 struct listen_sock *lopt = NULL; in reqsk_queue_alloc() local
52 lopt = kzalloc(lopt_size, GFP_KERNEL | in reqsk_queue_alloc()
55 if (!lopt) in reqsk_queue_alloc()
56 lopt = vzalloc(lopt_size); in reqsk_queue_alloc()
57 if (!lopt) in reqsk_queue_alloc()
60 get_random_bytes(&lopt->hash_rnd, sizeof(lopt->hash_rnd)); in reqsk_queue_alloc()
63 lopt->nr_table_entries = nr_table_entries; in reqsk_queue_alloc()
64 lopt->max_qlen_log = ilog2(nr_table_entries); in reqsk_queue_alloc()
67 queue->listen_opt = lopt; in reqsk_queue_alloc()
82 struct listen_sock *lopt; in reqsk_queue_yank_listen_sk() local
85 lopt = queue->listen_opt; in reqsk_queue_yank_listen_sk()
89 return lopt; in reqsk_queue_yank_listen_sk()
95 struct listen_sock *lopt = reqsk_queue_yank_listen_sk(queue); in reqsk_queue_destroy() local
97 if (listen_sock_qlen(lopt) != 0) { in reqsk_queue_destroy()
100 for (i = 0; i < lopt->nr_table_entries; i++) { in reqsk_queue_destroy()
104 while ((req = lopt->syn_table[i]) != NULL) { in reqsk_queue_destroy()
105 lopt->syn_table[i] = req->dl_next; in reqsk_queue_destroy()
111 atomic_inc(&lopt->qlen_dec); in reqsk_queue_destroy()
121 if (WARN_ON(listen_sock_qlen(lopt) != 0)) in reqsk_queue_destroy()
122 pr_err("qlen %u\n", listen_sock_qlen(lopt)); in reqsk_queue_destroy()
123 kvfree(lopt); in reqsk_queue_destroy()