Lines Matching refs:i2400m_fw

1502 struct i2400m_fw {  struct
1511 struct i2400m_fw *i2400m_fw = in i2400m_fw_destroy() argument
1512 container_of(kref, struct i2400m_fw, kref); in i2400m_fw_destroy()
1513 release_firmware(i2400m_fw->fw); in i2400m_fw_destroy()
1514 kfree(i2400m_fw); in i2400m_fw_destroy()
1519 struct i2400m_fw *i2400m_fw_get(struct i2400m_fw *i2400m_fw) in i2400m_fw_get() argument
1521 if (i2400m_fw != NULL && i2400m_fw != (void *) ~0) in i2400m_fw_get()
1522 kref_get(&i2400m_fw->kref); in i2400m_fw_get()
1523 return i2400m_fw; in i2400m_fw_get()
1528 void i2400m_fw_put(struct i2400m_fw *i2400m_fw) in i2400m_fw_put() argument
1530 kref_put(&i2400m_fw->kref, i2400m_fw_destroy); in i2400m_fw_put()
1553 struct i2400m_fw *i2400m_fw; in i2400m_dev_bootstrap() local
1562 i2400m_fw = i2400m_fw_get(i2400m->fw_cached); in i2400m_dev_bootstrap()
1564 if (i2400m_fw == (void *) ~0) { in i2400m_dev_bootstrap()
1567 } else if (i2400m_fw != NULL) { in i2400m_dev_bootstrap()
1570 ret = i2400m_fw_bootstrap(i2400m, i2400m_fw->fw, flags); in i2400m_dev_bootstrap()
1571 i2400m_fw_put(i2400m_fw); in i2400m_dev_bootstrap()
1606 struct i2400m_fw *i2400m_fw; in i2400m_fw_cache() local
1611 i2400m_fw = i2400m->fw_cached; in i2400m_fw_cache()
1613 if (i2400m_fw != NULL && i2400m_fw != (void *) ~0) { in i2400m_fw_cache()
1614 i2400m_fw_put(i2400m_fw); in i2400m_fw_cache()
1621 i2400m_fw = (void *) ~0; in i2400m_fw_cache()
1625 i2400m_fw = kzalloc(sizeof(*i2400m_fw), GFP_ATOMIC); in i2400m_fw_cache()
1626 if (i2400m_fw == NULL) in i2400m_fw_cache()
1628 kref_init(&i2400m_fw->kref); in i2400m_fw_cache()
1629 result = request_firmware(&i2400m_fw->fw, i2400m->fw_name, dev); in i2400m_fw_cache()
1633 kfree(i2400m_fw); in i2400m_fw_cache()
1634 i2400m_fw = (void *) ~0; in i2400m_fw_cache()
1639 i2400m->fw_cached = i2400m_fw; in i2400m_fw_cache()
1646 struct i2400m_fw *i2400m_fw; in i2400m_fw_uncache() local
1649 i2400m_fw = i2400m->fw_cached; in i2400m_fw_uncache()
1653 if (i2400m_fw != NULL && i2400m_fw != (void *) ~0) in i2400m_fw_uncache()
1654 i2400m_fw_put(i2400m_fw); in i2400m_fw_uncache()