Searched refs:clp (Results 1 – 2 of 2) sorted by relevance
104 clalloc(struct clist *clp, int size, int quot) in clalloc() argument106 clp->c_cs = kalloc_data(size, Z_WAITOK | Z_ZERO); in clalloc()107 if (!clp->c_cs) { in clalloc()112 clp->c_cq = kalloc_data(QMEM(size), Z_WAITOK | Z_ZERO); in clalloc()113 if (!clp->c_cq) { in clalloc()114 kfree_data(clp->c_cs, size); in clalloc()118 clp->c_cq = (u_char *)0; in clalloc()121 clp->c_cf = clp->c_cl = (u_char *)0; in clalloc()122 clp->c_ce = clp->c_cs + size; in clalloc()123 clp->c_cn = size; in clalloc()[all …]
282 u_char *firstc(struct clist *clp, int *c);287 int clalloc(struct clist *clp, int size, int quot);288 void clfree(struct clist *clp);