Lines Matching refs:chsp

128 chfs_str_pool_init(struct chfs_str_pool *chsp, struct chfs_mount *chmp)
132 chfs_pool_init(&chsp->chsp_pool_16, 16, "str", chmp);
133 chfs_pool_init(&chsp->chsp_pool_32, 32, "str", chmp);
134 chfs_pool_init(&chsp->chsp_pool_64, 64, "str", chmp);
135 chfs_pool_init(&chsp->chsp_pool_128, 128, "str", chmp);
136 chfs_pool_init(&chsp->chsp_pool_256, 256, "str", chmp);
137 chfs_pool_init(&chsp->chsp_pool_512, 512, "str", chmp);
138 chfs_pool_init(&chsp->chsp_pool_1024, 1024, "str", chmp);
144 chfs_str_pool_destroy(struct chfs_str_pool *chsp)
148 chfs_pool_destroy(&chsp->chsp_pool_16);
149 chfs_pool_destroy(&chsp->chsp_pool_32);
150 chfs_pool_destroy(&chsp->chsp_pool_64);
151 chfs_pool_destroy(&chsp->chsp_pool_128);
152 chfs_pool_destroy(&chsp->chsp_pool_256);
153 chfs_pool_destroy(&chsp->chsp_pool_512);
154 chfs_pool_destroy(&chsp->chsp_pool_1024);
160 chfs_str_pool_get(struct chfs_str_pool *chsp, size_t len, int flags)
167 if (len <= 16) p = &chsp->chsp_pool_16;
168 else if (len <= 32) p = &chsp->chsp_pool_32;
169 else if (len <= 64) p = &chsp->chsp_pool_64;
170 else if (len <= 128) p = &chsp->chsp_pool_128;
171 else if (len <= 256) p = &chsp->chsp_pool_256;
172 else if (len <= 512) p = &chsp->chsp_pool_512;
173 else if (len <= 1024) p = &chsp->chsp_pool_1024;
185 chfs_str_pool_put(struct chfs_str_pool *chsp, char *str, size_t len)
192 if (len <= 16) p = &chsp->chsp_pool_16;
193 else if (len <= 32) p = &chsp->chsp_pool_32;
194 else if (len <= 64) p = &chsp->chsp_pool_64;
195 else if (len <= 128) p = &chsp->chsp_pool_128;
196 else if (len <= 256) p = &chsp->chsp_pool_256;
197 else if (len <= 512) p = &chsp->chsp_pool_512;
198 else if (len <= 1024) p = &chsp->chsp_pool_1024;