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()
1231 STATUS_BLOCK_DEAD(0) | in sbp_handle_command()
1266 pg_size = 0x100 << pg_size; in sbp_rw_data()
1279 offset = 0; in sbp_rw_data()
1280 length = 0; in sbp_rw_data()
1283 num_pte = 0; in sbp_rw_data()
1324 WARN_ON(length != 0); in sbp_rw_data()
1325 return 0; in sbp_rw_data()
1333 int rc, ret = 0, length; in sbp_send_status()
1336 length = (((be32_to_cpu(req->status.status) >> 24) & 0x07) + 1) * 4; in sbp_send_status()
1341 pr_debug("sbp_send_status: write failed: 0x%x\n", rc); in sbp_send_status()
1346 pr_debug("sbp_send_status: status write complete for ORB: 0x%llx\n", in sbp_send_status()
1366 switch (sense[0] & 0x7f) { /* sfmt */ in sbp_sense_mangle()
1367 case 0x70: /* current, fixed */ in sbp_sense_mangle()
1368 status[0] = 0 << 6; in sbp_sense_mangle()
1370 case 0x71: /* deferred, fixed */ in sbp_sense_mangle()
1371 status[0] = 1 << 6; in sbp_sense_mangle()
1373 case 0x72: /* current, descriptor */ in sbp_sense_mangle()
1374 case 0x73: /* deferred, descriptor */ in sbp_sense_mangle()
1380 pr_err("sbp_send_sense: unknown sense format: 0x%x\n", in sbp_sense_mangle()
1381 sense[0]); in sbp_sense_mangle()
1384 STATUS_BLOCK_DEAD(0) | in sbp_sense_mangle()
1390 status[0] |= se_cmd->scsi_status & 0x3f;/* status */ in sbp_sense_mangle()
1392 (sense[0] & 0x80) | /* valid */ in sbp_sense_mangle()
1393 ((sense[2] & 0xe0) >> 1) | /* mark, eom, ili */ in sbp_sense_mangle()
1394 (sense[2] & 0x0f); /* sense_key */ in sbp_sense_mangle()
1420 STATUS_BLOCK_DEAD(0) | in sbp_sense_mangle()
1434 STATUS_BLOCK_DEAD(0) | in sbp_send_sense()
1459 int status_data_len = 0; in sbp_mgt_agent_process()
1470 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()
1477 ORB_REQUEST_FORMAT(be32_to_cpu(req->orb.misc)) != 0) { in sbp_mgt_agent_process()
1546 pr_notice("unknown management function 0x%x\n", in sbp_mgt_agent_process()
1649 agent->handler.length = 0x08; in sbp_management_agent_register()
1654 agent->orb_offset = 0; in sbp_management_agent_register()
1659 if (ret < 0) { in sbp_management_agent_register()
1681 return 0; in sbp_check_false()
1689 return &tport->tport_name[0]; in sbp_get_fabric_wwn()
1713 return 0; in sbp_sess_get_index()
1727 STATUS_BLOCK_DEAD(0) | in sbp_write_pending()
1736 return 0; in sbp_write_pending()
1746 return 0; in sbp_get_cmd_state()
1759 STATUS_BLOCK_DEAD(0) | in sbp_queue_data_in()
1795 return transport_generic_free_cmd(&req->se_cmd, 0); in sbp_check_stop_free()
1801 int count = 0; in sbp_count_se_tpg_luns()
1814 int num_luns, num_entries, idx = 0, mgt_agt_addr, ret; in sbp_update_unit_directory()
1824 return 0; in sbp_update_unit_directory()
1863 data[idx++] = 0x54000000 | (mgt_agt_addr & 0x00ffffff); in sbp_update_unit_directory()
1866 data[idx++] = 0x3a000000 | in sbp_update_unit_directory()
1867 (((tport->mgt_orb_timeout * 2) << 8) & 0xff00) | in sbp_update_unit_directory()
1871 data[idx++] = 0x3d000000 | (tport->max_reconnect_timeout & 0xffff); in sbp_update_unit_directory()
1874 data[idx++] = 0x8d000000 | (num_luns + 1); in sbp_update_unit_directory()
1888 data[idx++] = 0x14000000 | in sbp_update_unit_directory()
1889 ((type << 16) & 0x1f0000) | in sbp_update_unit_directory()
1890 (lun->unpacked_lun & 0xffff); in sbp_update_unit_directory()
1904 if (ret < 0) { in sbp_update_unit_directory()
1916 int pos = 0, err; in sbp_parse_wwn()
1918 *wwn = 0; in sbp_parse_wwn()
1921 if (c == '\n' && cp[1] == '\0') in sbp_parse_wwn()
1923 if (c == '\0') { in sbp_parse_wwn()
1931 nibble = c - '0'; in sbp_parse_wwn()
1953 u64 guid = 0; in sbp_init_nodeacl()
1955 if (sbp_parse_wwn(name, &guid) < 0) in sbp_init_nodeacl()
1957 return 0; in sbp_init_nodeacl()
1977 if (sbp_count_se_tpg_luns(&tpg->se_tpg) == 0) in sbp_pre_unlink_lun()
1978 tport->enable = 0; in sbp_pre_unlink_lun()
1981 if (ret < 0) in sbp_pre_unlink_lun()
2014 tport->enable = 0; in sbp_make_tpg()
2027 if (ret < 0) in sbp_make_tpg()
2057 u64 guid = 0; in sbp_make_tport()
2059 if (sbp_parse_wwn(name, &guid) < 0) in sbp_make_tport()
2120 if (kstrtoul(page, 16, &val) < 0) in sbp_tpg_directory_id_store()
2122 if (val > 0xffffff) in sbp_tpg_directory_id_store()
2148 if (kstrtoul(page, 0, &val) < 0) in sbp_tpg_enable_store()
2150 if ((val != 0) && (val != 1)) in sbp_tpg_enable_store()
2157 if (sbp_count_se_tpg_luns(&tpg->se_tpg) == 0) { in sbp_tpg_enable_store()
2174 if (ret < 0) { in sbp_tpg_enable_store()
2209 if (kstrtoul(page, 0, &val) < 0) in sbp_tpg_attrib_mgt_orb_timeout_store()
2220 if (ret < 0) in sbp_tpg_attrib_mgt_orb_timeout_store()
2244 if (kstrtoul(page, 0, &val) < 0) in sbp_tpg_attrib_max_reconnect_timeout_store()
2255 if (ret < 0) in sbp_tpg_attrib_max_reconnect_timeout_store()
2278 if (kstrtoul(page, 0, &val) < 0) in sbp_tpg_attrib_max_logins_per_lun_store()