Lines Matching +full:0 +full:x3a000000

32 	.start	= CSR_REGISTER_BASE + 0x10000,
33 .end = 0x1000000000000ULL,
37 0x1200609e, /* unit_specifier_id: NCITS/T10 */
38 0x13010483, /* unit_sw_version: 1155D Rev 4 */
39 0x3800609e, /* command_set_specifier_id: NCITS/T10 */
40 0x390104d8, /* command_set: SPC-2 */
41 0x3b000000, /* command_set_revision: 0 */
42 0x3c000001, /* firmware_revision: 1 */
47 static atomic_t login_id = ATOMIC_INIT(0);
117 int count = 0; in sbp_login_count_all_by_lun()
170 *err = 0; in sbp_get_lun_from_tpg()
326 sbp_login_count_all_by_lun(tpg, unpacked_lun, 0)) { in sbp_management_request_login()
352 if (sbp_login_count_all_by_lun(tpg, unpacked_lun, 0) >= in sbp_management_request_login()
448 ((login_response_len & 0xffff) << 16) | in sbp_management_request_login()
449 (login->login_id & 0xffff)); in sbp_management_request_login()
450 response->reconnect_hold = cpu_to_be32(sess->reconnect_hold & 0xffff); in sbp_management_request_login()
730 pr_debug("tgt_agent ORB_POINTER write: 0x%llx\n", in tgt_agent_rw_orb_pointer()
826 if (offset == 0x00 && length == 4) { in tgt_agent_rw()
829 } else if (offset == 0x04 && length == 4) { in tgt_agent_rw()
832 } else if (offset == 0x08 && length == 8) { in tgt_agent_rw()
835 } else if (offset == 0x10 && length == 4) { in tgt_agent_rw()
838 } else if (offset == 0x14 && length == 4) { in tgt_agent_rw()
859 pr_debug("tgt_orb ptr:0x%llx next_ORB:0x%llx data_descriptor:0x%llx misc:0x%x\n", in tgt_agent_process_work()
869 case 0:/* Format specified by this standard */ in tgt_agent_process_work()
877 STATUS_BLOCK_DEAD(0) | in tgt_agent_process_work()
887 STATUS_BLOCK_DEAD(0) | in tgt_agent_process_work()
918 if (tag < 0) in sbp_mgt_get_req()
922 memset(req, 0, sizeof(*req)); in sbp_mgt_get_req()
955 req->orb_pointer & 0xfffffffc); in tgt_agent_fetch_work()
981 if (be32_to_cpu(req->orb.next_orb.high) & 0x80000000) { in tgt_agent_fetch_work()
982 next_orb = 0; in tgt_agent_fetch_work()
1024 agent->handler.length = 0x20; in sbp_target_agent_register()
1031 agent->orb_pointer = 0; in sbp_target_agent_register()
1036 if (ret < 0) { in sbp_target_agent_register()
1135 return 0; in sbp_fetch_command()
1144 return 0; in sbp_fetch_page_table()
1162 return 0; in sbp_fetch_page_table()
1174 *data_len = 0; in sbp_calc_data_length_direction()
1182 *data_len = 0; in sbp_calc_data_length_direction()
1183 for (idx = 0; idx < data_size; idx++) { in sbp_calc_data_length_direction()
1216 pr_debug("sbp_handle_command ORB:0x%llx unpacked_lun:%d data_len:%d data_dir:%d\n", in sbp_handle_command()
1229 STATUS_BLOCK_DEAD(0) | in sbp_handle_command()
1276 offset = 0; in sbp_rw_data()
1277 length = 0; in sbp_rw_data()
1280 num_pte = 0; in sbp_rw_data()
1321 WARN_ON(length != 0); in sbp_rw_data()
1322 return 0; in sbp_rw_data()
1330 int rc, ret = 0, length; in sbp_send_status()
1333 length = (((be32_to_cpu(req->status.status) >> 24) & 0x07) + 1) * 4; in sbp_send_status()
1338 pr_debug("sbp_send_status: write failed: 0x%x\n", rc); in sbp_send_status()
1343 pr_debug("sbp_send_status: status write complete for ORB: 0x%llx\n", in sbp_send_status()
1363 switch (sense[0] & 0x7f) { /* sfmt */ in sbp_sense_mangle()
1364 case 0x70: /* current, fixed */ in sbp_sense_mangle()
1365 status[0] = 0 << 6; in sbp_sense_mangle()
1367 case 0x71: /* deferred, fixed */ in sbp_sense_mangle()
1368 status[0] = 1 << 6; in sbp_sense_mangle()
1370 case 0x72: /* current, descriptor */ in sbp_sense_mangle()
1371 case 0x73: /* deferred, descriptor */ in sbp_sense_mangle()
1377 pr_err("sbp_send_sense: unknown sense format: 0x%x\n", in sbp_sense_mangle()
1378 sense[0]); in sbp_sense_mangle()
1381 STATUS_BLOCK_DEAD(0) | in sbp_sense_mangle()
1387 status[0] |= se_cmd->scsi_status & 0x3f;/* status */ in sbp_sense_mangle()
1389 (sense[0] & 0x80) | /* valid */ in sbp_sense_mangle()
1390 ((sense[2] & 0xe0) >> 1) | /* mark, eom, ili */ in sbp_sense_mangle()
1391 (sense[2] & 0x0f); /* sense_key */ in sbp_sense_mangle()
1392 status[2] = 0; /* XXX sense_code */ in sbp_sense_mangle()
1393 status[3] = 0; /* XXX sense_qualifier */ in sbp_sense_mangle()
1417 STATUS_BLOCK_DEAD(0) | in sbp_sense_mangle()
1431 STATUS_BLOCK_DEAD(0) | in sbp_send_sense()
1456 int status_data_len = 0; in sbp_mgt_agent_process()
1467 pr_debug("mgt_orb ptr1:0x%llx ptr2:0x%llx misc:0x%x len:0x%x status_fifo:0x%llx\n", in sbp_mgt_agent_process()
1474 ORB_REQUEST_FORMAT(be32_to_cpu(req->orb.misc)) != 0) { in sbp_mgt_agent_process()
1543 pr_notice("unknown management function 0x%x\n", in sbp_mgt_agent_process()
1646 agent->handler.length = 0x08; in sbp_management_agent_register()
1651 agent->orb_offset = 0; in sbp_management_agent_register()
1656 if (ret < 0) { in sbp_management_agent_register()
1681 return &tport->tport_name[0]; in sbp_get_fabric_wwn()
1709 STATUS_BLOCK_DEAD(0) | in sbp_write_pending()
1718 return 0; in sbp_write_pending()
1731 STATUS_BLOCK_DEAD(0) | in sbp_queue_data_in()
1767 return transport_generic_free_cmd(&req->se_cmd, 0); in sbp_check_stop_free()
1773 int count = 0; in sbp_count_se_tpg_luns()
1786 int num_luns, num_entries, idx = 0, mgt_agt_addr, ret; in sbp_update_unit_directory()
1796 return 0; in sbp_update_unit_directory()
1835 data[idx++] = 0x54000000 | (mgt_agt_addr & 0x00ffffff); in sbp_update_unit_directory()
1838 data[idx++] = 0x3a000000 | in sbp_update_unit_directory()
1839 (((tport->mgt_orb_timeout * 2) << 8) & 0xff00) | in sbp_update_unit_directory()
1843 data[idx++] = 0x3d000000 | (tport->max_reconnect_timeout & 0xffff); in sbp_update_unit_directory()
1846 data[idx++] = 0x8d000000 | (num_luns + 1); in sbp_update_unit_directory()
1860 data[idx++] = 0x14000000 | in sbp_update_unit_directory()
1861 ((type << 16) & 0x1f0000) | in sbp_update_unit_directory()
1862 (lun->unpacked_lun & 0xffff); in sbp_update_unit_directory()
1876 if (ret < 0) { in sbp_update_unit_directory()
1888 int pos = 0, err; in sbp_parse_wwn()
1890 *wwn = 0; in sbp_parse_wwn()
1893 if (c == '\n' && cp[1] == '\0') in sbp_parse_wwn()
1895 if (c == '\0') { in sbp_parse_wwn()
1903 nibble = c - '0'; in sbp_parse_wwn()
1925 u64 guid = 0; in sbp_init_nodeacl()
1927 if (sbp_parse_wwn(name, &guid) < 0) in sbp_init_nodeacl()
1929 return 0; in sbp_init_nodeacl()
1949 if (sbp_count_se_tpg_luns(&tpg->se_tpg) == 0) in sbp_pre_unlink_lun()
1950 tport->enable = 0; in sbp_pre_unlink_lun()
1953 if (ret < 0) in sbp_pre_unlink_lun()
1986 tport->enable = 0; in sbp_make_tpg()
1999 if (ret < 0) in sbp_make_tpg()
2029 u64 guid = 0; in sbp_make_tport()
2031 if (sbp_parse_wwn(name, &guid) < 0) in sbp_make_tport()
2092 if (kstrtoul(page, 16, &val) < 0) in sbp_tpg_directory_id_store()
2094 if (val > 0xffffff) in sbp_tpg_directory_id_store()
2110 if (sbp_count_se_tpg_luns(&tpg->se_tpg) == 0) { in sbp_enable_tpg()
2127 if (ret < 0) { in sbp_enable_tpg()
2132 return 0; in sbp_enable_tpg()
2160 if (kstrtoul(page, 0, &val) < 0) in sbp_tpg_attrib_mgt_orb_timeout_store()
2171 if (ret < 0) in sbp_tpg_attrib_mgt_orb_timeout_store()
2195 if (kstrtoul(page, 0, &val) < 0) in sbp_tpg_attrib_max_reconnect_timeout_store()
2206 if (ret < 0) in sbp_tpg_attrib_max_reconnect_timeout_store()
2229 if (kstrtoul(page, 0, &val) < 0) in sbp_tpg_attrib_max_logins_per_lun_store()