Lines Matching refs:fnode_sess

812 	struct iscsi_bus_flash_session *fnode_sess =			\
814 struct iscsi_transport *t = fnode_sess->transport; \
815 return t->get_flashnode_param(fnode_sess, param, buf); \
912 struct iscsi_bus_flash_session *fnode_sess = in iscsi_flashnode_sess_attr_is_visible() local
914 struct iscsi_transport *t = fnode_sess->transport; in iscsi_flashnode_sess_attr_is_visible()
1003 struct iscsi_bus_flash_session *fnode_sess = in iscsi_flashnode_sess_release() local
1006 kfree(fnode_sess->targetname); in iscsi_flashnode_sess_release()
1007 kfree(fnode_sess->targetalias); in iscsi_flashnode_sess_release()
1008 kfree(fnode_sess->portal_type); in iscsi_flashnode_sess_release()
1009 kfree(fnode_sess); in iscsi_flashnode_sess_release()
1025 struct iscsi_bus_flash_session *fnode_sess = \
1028 return t->get_flashnode_param(fnode_sess, param, buf); \
1238 struct iscsi_bus_flash_session *fnode_sess; in iscsi_create_flashnode_sess() local
1241 fnode_sess = kzalloc(sizeof(*fnode_sess) + dd_size, GFP_KERNEL); in iscsi_create_flashnode_sess()
1242 if (!fnode_sess) in iscsi_create_flashnode_sess()
1245 fnode_sess->transport = transport; in iscsi_create_flashnode_sess()
1246 fnode_sess->target_id = index; in iscsi_create_flashnode_sess()
1247 fnode_sess->dev.type = &iscsi_flashnode_sess_dev_type; in iscsi_create_flashnode_sess()
1248 fnode_sess->dev.bus = &iscsi_flashnode_bus; in iscsi_create_flashnode_sess()
1249 fnode_sess->dev.parent = &shost->shost_gendev; in iscsi_create_flashnode_sess()
1250 dev_set_name(&fnode_sess->dev, "flashnode_sess-%u:%u", in iscsi_create_flashnode_sess()
1253 err = device_register(&fnode_sess->dev); in iscsi_create_flashnode_sess()
1258 fnode_sess->dd_data = &fnode_sess[1]; in iscsi_create_flashnode_sess()
1260 return fnode_sess; in iscsi_create_flashnode_sess()
1263 put_device(&fnode_sess->dev); in iscsi_create_flashnode_sess()
1283 struct iscsi_bus_flash_session *fnode_sess, in iscsi_create_flashnode_conn() argument
1297 fnode_conn->dev.parent = &fnode_sess->dev; in iscsi_create_flashnode_conn()
1299 shost->host_no, fnode_sess->target_id); in iscsi_create_flashnode_conn()
1340 struct iscsi_bus_flash_session *fnode_sess = NULL; in flashnode_match_index() local
1346 fnode_sess = iscsi_dev_to_flash_session(dev); in flashnode_match_index()
1347 ret = (fnode_sess->target_id == *((int *)data)) ? 1 : 0; in flashnode_match_index()
1367 struct iscsi_bus_flash_session *fnode_sess = NULL; in iscsi_get_flashnode_by_index() local
1373 fnode_sess = iscsi_dev_to_flash_session(dev); in iscsi_get_flashnode_by_index()
1375 return fnode_sess; in iscsi_get_flashnode_by_index()
1411 iscsi_find_flashnode_conn(struct iscsi_bus_flash_session *fnode_sess) in iscsi_find_flashnode_conn() argument
1413 return device_find_child(&fnode_sess->dev, NULL, in iscsi_find_flashnode_conn()
1433 void iscsi_destroy_flashnode_sess(struct iscsi_bus_flash_session *fnode_sess) in iscsi_destroy_flashnode_sess() argument
1437 err = device_for_each_child(&fnode_sess->dev, NULL, in iscsi_destroy_flashnode_sess()
1441 fnode_sess->dev.kobj.name, err); in iscsi_destroy_flashnode_sess()
1443 device_unregister(&fnode_sess->dev); in iscsi_destroy_flashnode_sess()
3436 struct iscsi_bus_flash_session *fnode_sess; in iscsi_set_flashnode_param() local
3456 fnode_sess = iscsi_get_flashnode_by_index(shost, idx); in iscsi_set_flashnode_param()
3457 if (!fnode_sess) { in iscsi_set_flashnode_param()
3464 dev = iscsi_find_flashnode_conn(fnode_sess); in iscsi_set_flashnode_param()
3471 err = transport->set_flashnode_param(fnode_sess, fnode_conn, data, len); in iscsi_set_flashnode_param()
3475 put_device(&fnode_sess->dev); in iscsi_set_flashnode_param()
3523 struct iscsi_bus_flash_session *fnode_sess; in iscsi_del_flashnode() local
3541 fnode_sess = iscsi_get_flashnode_by_index(shost, idx); in iscsi_del_flashnode()
3542 if (!fnode_sess) { in iscsi_del_flashnode()
3549 err = transport->del_flashnode(fnode_sess); in iscsi_del_flashnode()
3550 put_device(&fnode_sess->dev); in iscsi_del_flashnode()
3563 struct iscsi_bus_flash_session *fnode_sess; in iscsi_login_flashnode() local
3583 fnode_sess = iscsi_get_flashnode_by_index(shost, idx); in iscsi_login_flashnode()
3584 if (!fnode_sess) { in iscsi_login_flashnode()
3591 dev = iscsi_find_flashnode_conn(fnode_sess); in iscsi_login_flashnode()
3598 err = transport->login_flashnode(fnode_sess, fnode_conn); in iscsi_login_flashnode()
3602 put_device(&fnode_sess->dev); in iscsi_login_flashnode()
3615 struct iscsi_bus_flash_session *fnode_sess; in iscsi_logout_flashnode() local
3635 fnode_sess = iscsi_get_flashnode_by_index(shost, idx); in iscsi_logout_flashnode()
3636 if (!fnode_sess) { in iscsi_logout_flashnode()
3643 dev = iscsi_find_flashnode_conn(fnode_sess); in iscsi_logout_flashnode()
3651 err = transport->logout_flashnode(fnode_sess, fnode_conn); in iscsi_logout_flashnode()
3655 put_device(&fnode_sess->dev); in iscsi_logout_flashnode()