Lines Matching refs:p
1206 u16 que_idx, struct qedi_percpu_s *p) in qedi_queue_cqe() argument
1236 list_add_tail(&qedi_cmd->cqe_work.list, &p->work_list); in qedi_queue_cqe()
1251 list_add_tail(&qedi_work->list, &p->work_list); in qedi_queue_cqe()
1265 struct qedi_percpu_s *p = NULL; in qedi_process_completions() local
1286 p = &per_cpu(qedi_percpu, cpu); in qedi_process_completions()
1288 if (unlikely(!p->iothread)) in qedi_process_completions()
1291 spin_lock_irqsave(&p->p_work_lock, flags); in qedi_process_completions()
1299 ret = qedi_queue_cqe(qedi, cqe, fp->sb_id, p); in qedi_process_completions()
1309 wake_up_process(p->iothread); in qedi_process_completions()
1310 spin_unlock_irqrestore(&p->p_work_lock, flags); in qedi_process_completions()
1927 struct qedi_percpu_s *p = arg; in qedi_percpu_io_thread() local
1935 spin_lock_irqsave(&p->p_work_lock, flags); in qedi_percpu_io_thread()
1936 while (!list_empty(&p->work_list)) { in qedi_percpu_io_thread()
1937 list_splice_init(&p->work_list, &work_list); in qedi_percpu_io_thread()
1938 spin_unlock_irqrestore(&p->p_work_lock, flags); in qedi_percpu_io_thread()
1947 spin_lock_irqsave(&p->p_work_lock, flags); in qedi_percpu_io_thread()
1950 spin_unlock_irqrestore(&p->p_work_lock, flags); in qedi_percpu_io_thread()
1960 struct qedi_percpu_s *p = this_cpu_ptr(&qedi_percpu); in qedi_cpu_online() local
1963 thread = kthread_create_on_node(qedi_percpu_io_thread, (void *)p, in qedi_cpu_online()
1970 p->iothread = thread; in qedi_cpu_online()
1977 struct qedi_percpu_s *p = this_cpu_ptr(&qedi_percpu); in qedi_cpu_offline() local
1982 spin_lock_irqsave(&p->p_work_lock, flags); in qedi_cpu_offline()
1983 thread = p->iothread; in qedi_cpu_offline()
1984 p->iothread = NULL; in qedi_cpu_offline()
1986 list_for_each_entry_safe(work, tmp, &p->work_list, list) { in qedi_cpu_offline()
1993 spin_unlock_irqrestore(&p->p_work_lock, flags); in qedi_cpu_offline()
2894 struct qedi_percpu_s *p; in qedi_init() local
2915 p = &per_cpu(qedi_percpu, cpu); in qedi_init()
2916 INIT_LIST_HEAD(&p->work_list); in qedi_init()
2917 spin_lock_init(&p->p_work_lock); in qedi_init()
2918 p->iothread = NULL; in qedi_init()