Lines Matching refs:cis
292 struct cis_cache_entry *cis; in read_cis_cache() local
310 list_for_each_entry(cis, &s->cis_cache, node) { in read_cis_cache()
311 if (cis->addr == addr && cis->len == len && cis->attr == attr) { in read_cis_cache()
312 memcpy(ptr, cis->cache, len); in read_cis_cache()
322 cis = kmalloc(sizeof(struct cis_cache_entry) + len, GFP_KERNEL); in read_cis_cache()
323 if (cis) { in read_cis_cache()
324 cis->addr = addr; in read_cis_cache()
325 cis->len = len; in read_cis_cache()
326 cis->attr = attr; in read_cis_cache()
327 memcpy(cis->cache, ptr, len); in read_cis_cache()
328 list_add(&cis->node, &s->cis_cache); in read_cis_cache()
339 struct cis_cache_entry *cis; in remove_cis_cache() local
342 list_for_each_entry(cis, &s->cis_cache, node) in remove_cis_cache()
343 if (cis->addr == addr && cis->len == len && cis->attr == attr) { in remove_cis_cache()
344 list_del(&cis->node); in remove_cis_cache()
345 kfree(cis); in remove_cis_cache()
361 struct cis_cache_entry *cis; in destroy_cis_cache() local
364 cis = list_entry(l, struct cis_cache_entry, node); in destroy_cis_cache()
365 list_del(&cis->node); in destroy_cis_cache()
366 kfree(cis); in destroy_cis_cache()
375 struct cis_cache_entry *cis; in verify_cis_cache() local
389 list_for_each_entry(cis, &s->cis_cache, node) { in verify_cis_cache()
390 int len = cis->len; in verify_cis_cache()
395 ret = pcmcia_read_cis_mem(s, cis->attr, cis->addr, len, buf); in verify_cis_cache()
396 if (ret || memcmp(buf, cis->cache, len) != 0) { in verify_cis_cache()