Home
last modified time | relevance | path

Searched refs:nsgpgs (Results 1 – 4 of 4) sorted by relevance

/linux-4.4.14/drivers/scsi/bfa/
Dbfa_svc.h75 int nsgpgs);
76 void bfa_sgpg_mfree(struct bfa_s *bfa, struct list_head *sgpg_q, int nsgpgs);
79 void bfa_sgpg_wait(struct bfa_s *bfa, struct bfa_sgpg_wqe_s *wqe, int nsgpgs);
Dbfa_fcpim.c2446 ioim->nsgpgs = BFA_SGPG_NPAGE(ioim->nsges); in bfa_ioim_sgpg_alloced()
2609 u16 nsgpgs; in bfa_ioim_sgpg_alloc() local
2616 nsgpgs = BFA_SGPG_NPAGE(ioim->nsges); in bfa_ioim_sgpg_alloc()
2617 if (!nsgpgs) in bfa_ioim_sgpg_alloc()
2620 if (bfa_sgpg_malloc(ioim->bfa, &ioim->sgpg_q, nsgpgs) in bfa_ioim_sgpg_alloc()
2622 bfa_sgpg_wait(ioim->bfa, &ioim->iosp->sgpg_wqe, nsgpgs); in bfa_ioim_sgpg_alloc()
2626 ioim->nsgpgs = nsgpgs; in bfa_ioim_sgpg_alloc()
2962 ioim->nsgpgs = 0; in bfa_ioim_alloc()
2978 if (ioim->nsgpgs > 0) in bfa_ioim_free()
2979 bfa_sgpg_mfree(ioim->bfa, &ioim->sgpg_q, ioim->nsgpgs); in bfa_ioim_free()
Dbfa_fcpim.h177 u16 nsgpgs; /* number of SG pages */ member
Dbfa_svc.c5367 bfa_sgpg_malloc(struct bfa_s *bfa, struct list_head *sgpg_q, int nsgpgs) in bfa_sgpg_malloc() argument
5373 if (mod->free_sgpgs < nsgpgs) in bfa_sgpg_malloc()
5376 for (i = 0; i < nsgpgs; i++) { in bfa_sgpg_malloc()
5382 mod->free_sgpgs -= nsgpgs; in bfa_sgpg_malloc()