Lines Matching refs:orb
286 LOGIN_ORB_LUN(be32_to_cpu(req->orb.misc)), &ret); in sbp_management_request_login()
289 LOGIN_ORB_LUN(be32_to_cpu(req->orb.misc))); in sbp_management_request_login()
339 if (LOGIN_ORB_EXCLUSIVE(be32_to_cpu(req->orb.misc)) && in sbp_management_request_login()
406 1 << LOGIN_ORB_RECONNECT(be32_to_cpu(req->orb.misc)), in sbp_management_request_login()
423 login->status_fifo_addr = sbp2_pointer_to_addr(&req->orb.status_fifo); in sbp_management_request_login()
424 login->exclusive = LOGIN_ORB_EXCLUSIVE(be32_to_cpu(req->orb.misc)); in sbp_management_request_login()
459 LOGIN_ORB_RESPONSE_LENGTH(be32_to_cpu(req->orb.length)), in sbp_management_request_login()
470 sbp2_pointer_to_addr(&req->orb.ptr2), response, in sbp_management_request_login()
526 RECONNECT_ORB_LOGIN_ID(be32_to_cpu(req->orb.misc))); in sbp_management_request_reconnect()
571 id = LOGOUT_ORB_LOGIN_ID(be32_to_cpu(req->orb.misc)); in sbp_management_request_logout()
875 sbp2_pointer_to_addr(&req->orb.next_orb), in tgt_agent_process_work()
876 sbp2_pointer_to_addr(&req->orb.data_descriptor), in tgt_agent_process_work()
877 be32_to_cpu(req->orb.misc)); in tgt_agent_process_work()
882 switch (ORB_REQUEST_FORMAT(be32_to_cpu(req->orb.misc))) { in tgt_agent_process_work()
973 req->orb_pointer, &req->orb, sizeof(req->orb)); in tgt_agent_fetch_work()
994 if (be32_to_cpu(req->orb.next_orb.high) & 0x80000000) { in tgt_agent_fetch_work()
999 next_orb = sbp2_pointer_to_addr(&req->orb.next_orb); in tgt_agent_fetch_work()
1126 cmd_len = scsi_command_size(req->orb.command_block); in sbp_fetch_command()
1132 memcpy(req->cmd_buf, req->orb.command_block, in sbp_fetch_command()
1133 min_t(int, cmd_len, sizeof(req->orb.command_block))); in sbp_fetch_command()
1135 if (cmd_len > sizeof(req->orb.command_block)) { in sbp_fetch_command()
1137 copy_len = cmd_len - sizeof(req->orb.command_block); in sbp_fetch_command()
1141 req->orb_pointer + sizeof(req->orb), in sbp_fetch_command()
1142 req->cmd_buf + sizeof(req->orb.command_block), in sbp_fetch_command()
1156 if (!CMDBLK_ORB_PG_TBL_PRESENT(be32_to_cpu(req->orb.misc))) in sbp_fetch_page_table()
1159 pg_tbl_sz = CMDBLK_ORB_DATA_SIZE(be32_to_cpu(req->orb.misc)) * in sbp_fetch_page_table()
1167 sbp2_pointer_to_addr(&req->orb.data_descriptor), in sbp_fetch_page_table()
1183 data_size = CMDBLK_ORB_DATA_SIZE(be32_to_cpu(req->orb.misc)); in sbp_calc_data_length_direction()
1184 direction = CMDBLK_ORB_DIRECTION(be32_to_cpu(req->orb.misc)); in sbp_calc_data_length_direction()
1273 max_payload = 4 << CMDBLK_ORB_MAX_PAYLOAD(be32_to_cpu(req->orb.misc)); in sbp_rw_data()
1274 speed = CMDBLK_ORB_SPEED(be32_to_cpu(req->orb.misc)); in sbp_rw_data()
1276 pg_size = CMDBLK_ORB_PG_SIZE(be32_to_cpu(req->orb.misc)); in sbp_rw_data()
1290 num_pte = CMDBLK_ORB_DATA_SIZE(be32_to_cpu(req->orb.misc)); in sbp_rw_data()
1298 offset = sbp2_pointer_to_addr(&req->orb.data_descriptor); in sbp_rw_data()
1477 agent->orb_offset, &req->orb, sizeof(req->orb)); in sbp_mgt_agent_process()
1484 sbp2_pointer_to_addr(&req->orb.ptr1), in sbp_mgt_agent_process()
1485 sbp2_pointer_to_addr(&req->orb.ptr2), in sbp_mgt_agent_process()
1486 be32_to_cpu(req->orb.misc), be32_to_cpu(req->orb.length), in sbp_mgt_agent_process()
1487 sbp2_pointer_to_addr(&req->orb.status_fifo)); in sbp_mgt_agent_process()
1489 if (!ORB_NOTIFY(be32_to_cpu(req->orb.misc)) || in sbp_mgt_agent_process()
1490 ORB_REQUEST_FORMAT(be32_to_cpu(req->orb.misc)) != 0) { in sbp_mgt_agent_process()
1495 switch (MANAGEMENT_ORB_FUNCTION(be32_to_cpu(req->orb.misc))) { in sbp_mgt_agent_process()
1560 MANAGEMENT_ORB_FUNCTION(be32_to_cpu(req->orb.misc))); in sbp_mgt_agent_process()
1578 sbp2_pointer_to_addr(&req->orb.status_fifo), in sbp_mgt_agent_process()