Lines Matching refs:cis
291 struct cis_cache_entry *cis; in read_cis_cache() local
309 list_for_each_entry(cis, &s->cis_cache, node) { in read_cis_cache()
310 if (cis->addr == addr && cis->len == len && cis->attr == attr) { in read_cis_cache()
311 memcpy(ptr, cis->cache, len); in read_cis_cache()
321 cis = kmalloc(sizeof(struct cis_cache_entry) + len, GFP_KERNEL); in read_cis_cache()
322 if (cis) { in read_cis_cache()
323 cis->addr = addr; in read_cis_cache()
324 cis->len = len; in read_cis_cache()
325 cis->attr = attr; in read_cis_cache()
326 memcpy(cis->cache, ptr, len); in read_cis_cache()
327 list_add(&cis->node, &s->cis_cache); in read_cis_cache()
338 struct cis_cache_entry *cis; in remove_cis_cache() local
341 list_for_each_entry(cis, &s->cis_cache, node) in remove_cis_cache()
342 if (cis->addr == addr && cis->len == len && cis->attr == attr) { in remove_cis_cache()
343 list_del(&cis->node); in remove_cis_cache()
344 kfree(cis); in remove_cis_cache()
360 struct cis_cache_entry *cis; in destroy_cis_cache() local
363 cis = list_entry(l, struct cis_cache_entry, node); in destroy_cis_cache()
364 list_del(&cis->node); in destroy_cis_cache()
365 kfree(cis); in destroy_cis_cache()
374 struct cis_cache_entry *cis; in verify_cis_cache() local
387 list_for_each_entry(cis, &s->cis_cache, node) { in verify_cis_cache()
388 int len = cis->len; in verify_cis_cache()
393 ret = pcmcia_read_cis_mem(s, cis->attr, cis->addr, len, buf); in verify_cis_cache()
394 if (ret || memcmp(buf, cis->cache, len) != 0) { in verify_cis_cache()