Lines Matching refs:n_reqs
33 int n_reqs; member
43 if (WARN(pi->n_reqs == BRCMF_PNO_MAX_BUCKETS, in brcmf_pno_store_request()
49 pi->reqs[pi->n_reqs++] = req; in brcmf_pno_store_request()
61 if (pi->n_reqs == 0) in brcmf_pno_remove_request()
65 for (i = 0; i < pi->n_reqs; i++) { in brcmf_pno_remove_request()
70 if (WARN(i == pi->n_reqs, "reqid not found\n")) { in brcmf_pno_remove_request()
76 pi->n_reqs--; in brcmf_pno_remove_request()
79 if (!pi->n_reqs || i == pi->n_reqs) in brcmf_pno_remove_request()
83 while (i <= pi->n_reqs - 1) { in brcmf_pno_remove_request()
163 for (ri = 0; ri < pi->n_reqs; ri++) in brcmf_pno_set_random()
305 brcmf_dbg(SCAN, "n_reqs=%d\n", pi->n_reqs); in brcmf_pno_prep_fwconfig()
306 if (WARN_ON(!pi->n_reqs)) in brcmf_pno_prep_fwconfig()
314 for (i = 1; i < pi->n_reqs; i++) { in brcmf_pno_prep_fwconfig()
324 fw_buckets = kcalloc(pi->n_reqs, sizeof(*fw_buckets), GFP_KERNEL); in brcmf_pno_prep_fwconfig()
329 for (i = 0; i < pi->n_reqs; i++) { in brcmf_pno_prep_fwconfig()
347 for (i = 0; i < pi->n_reqs; i++) { in brcmf_pno_prep_fwconfig()
356 return pi->n_reqs; in brcmf_pno_prep_fwconfig()
371 for (i = 0; i < pi->n_reqs; i++) { in brcmf_pno_config_networks()
483 if (pi->n_reqs) in brcmf_pno_start_sched_scan()
500 if (!pi->n_reqs) in brcmf_pno_stop_sched_scan()
509 if (pi->n_reqs) in brcmf_pno_stop_sched_scan()
537 WARN_ON(pi->n_reqs); in brcmf_pno_detach()
558 if (bucket < pi->n_reqs) in brcmf_pno_find_reqid_by_bucket()
574 for (i = 0; i < pi->n_reqs; i++) { in brcmf_pno_get_bucket_map()