• Home
  • Raw
  • Download

Lines Matching refs:i2400m_fw

1503 struct i2400m_fw {  struct
1512 struct i2400m_fw *i2400m_fw = in i2400m_fw_destroy() local
1513 container_of(kref, struct i2400m_fw, kref); in i2400m_fw_destroy()
1514 release_firmware(i2400m_fw->fw); in i2400m_fw_destroy()
1515 kfree(i2400m_fw); in i2400m_fw_destroy()
1520 struct i2400m_fw *i2400m_fw_get(struct i2400m_fw *i2400m_fw) in i2400m_fw_get() argument
1522 if (i2400m_fw != NULL && i2400m_fw != (void *) ~0) in i2400m_fw_get()
1523 kref_get(&i2400m_fw->kref); in i2400m_fw_get()
1524 return i2400m_fw; in i2400m_fw_get()
1529 void i2400m_fw_put(struct i2400m_fw *i2400m_fw) in i2400m_fw_put() argument
1531 kref_put(&i2400m_fw->kref, i2400m_fw_destroy); in i2400m_fw_put()
1554 struct i2400m_fw *i2400m_fw; in i2400m_dev_bootstrap() local
1563 i2400m_fw = i2400m_fw_get(i2400m->fw_cached); in i2400m_dev_bootstrap()
1565 if (i2400m_fw == (void *) ~0) { in i2400m_dev_bootstrap()
1568 } else if (i2400m_fw != NULL) { in i2400m_dev_bootstrap()
1571 ret = i2400m_fw_bootstrap(i2400m, i2400m_fw->fw, flags); in i2400m_dev_bootstrap()
1572 i2400m_fw_put(i2400m_fw); in i2400m_dev_bootstrap()
1607 struct i2400m_fw *i2400m_fw; in i2400m_fw_cache() local
1612 i2400m_fw = i2400m->fw_cached; in i2400m_fw_cache()
1614 if (i2400m_fw != NULL && i2400m_fw != (void *) ~0) { in i2400m_fw_cache()
1615 i2400m_fw_put(i2400m_fw); in i2400m_fw_cache()
1622 i2400m_fw = (void *) ~0; in i2400m_fw_cache()
1626 i2400m_fw = kzalloc(sizeof(*i2400m_fw), GFP_ATOMIC); in i2400m_fw_cache()
1627 if (i2400m_fw == NULL) in i2400m_fw_cache()
1629 kref_init(&i2400m_fw->kref); in i2400m_fw_cache()
1630 result = request_firmware(&i2400m_fw->fw, i2400m->fw_name, dev); in i2400m_fw_cache()
1634 kfree(i2400m_fw); in i2400m_fw_cache()
1635 i2400m_fw = (void *) ~0; in i2400m_fw_cache()
1640 i2400m->fw_cached = i2400m_fw; in i2400m_fw_cache()
1647 struct i2400m_fw *i2400m_fw; in i2400m_fw_uncache() local
1650 i2400m_fw = i2400m->fw_cached; in i2400m_fw_uncache()
1654 if (i2400m_fw != NULL && i2400m_fw != (void *) ~0) in i2400m_fw_uncache()
1655 i2400m_fw_put(i2400m_fw); in i2400m_fw_uncache()