Lines Matching refs:cis
290 struct cis_cache_entry *cis;
308 list_for_each_entry(cis, &s->cis_cache, node) {
309 if (cis->addr == addr && cis->len == len && cis->attr == attr) {
310 memcpy(ptr, cis->cache, len);
320 cis = kmalloc(sizeof(struct cis_cache_entry) + len, GFP_KERNEL);
321 if (cis) {
322 cis->addr = addr;
323 cis->len = len;
324 cis->attr = attr;
325 memcpy(cis->cache, ptr, len);
326 list_add(&cis->node, &s->cis_cache);
337 struct cis_cache_entry *cis;
340 list_for_each_entry(cis, &s->cis_cache, node)
341 if (cis->addr == addr && cis->len == len && cis->attr == attr) {
342 list_del(&cis->node);
343 kfree(cis);
359 struct cis_cache_entry *cis;
362 cis = list_entry(l, struct cis_cache_entry, node);
363 list_del(&cis->node);
364 kfree(cis);
373 struct cis_cache_entry *cis;
387 list_for_each_entry(cis, &s->cis_cache, node) {
388 int len = cis->len;
393 ret = pcmcia_read_cis_mem(s, cis->attr, cis->addr, len, buf);
394 if (ret || memcmp(buf, cis->cache, len) != 0) {
1597 .attr = { .name = "cis", .mode = S_IRUGO | S_IWUSR },