Lines Matching defs:orb
252 uint32_t orb[8];
267 sizeof(ocb->orb) + sizeof(ocb->ind_ptr), (op));
417 /* B */ "Dummy ORB completed",
424 /* 0 */ "Operation request block (ORB)",
1310 printf("%s: orb pointer active\n", __func__);
1479 memset(ocb->orb, 0, sizeof(ocb->orb));
1480 ocb->orb[6] = htonl((nid << 16) | SBP_BIND_HI);
1481 ocb->orb[7] = htonl(SBP_DEV2ADDR(dv_unit, sdev->lun_id));
1493 ocb->orb[0] = ocb->orb[1] = 0; /* password */
1494 ocb->orb[2] = htonl(nid << 16);
1495 ocb->orb[3] = htonl(sdev->dma.bus_addr + sbp_login_off);
1496 ocb->orb[4] = htonl(ORB_NOTIFY | sdev->lun_id);
1498 ocb->orb[4] |= htonl(ORB_EXV);
1499 ocb->orb[5] = htonl(SBP_LOGIN_SIZE);
1506 ocb->orb[0] = htonl((0 << 16) | 0);
1507 ocb->orb[1] = htonl(aocb->bus_addr & 0xffffffff);
1514 ocb->orb[4] = htonl(ORB_NOTIFY | func | sdev->login->id);
1519 /* there is a standing ORB */
1804 printf("%s:%s:%s: ORB status src:%x resp:%x dead:%x"
1805 " len:%x stat:%x orb:%x%08x\n",
1848 switch (ntohl(ocb->orb[4]) & ORB_FMT_MSK) {
1856 orb_fun = ntohl(ocb->orb[4]) & ORB_FUN_MSK;
2165 "%s:%s: request timeout(mgm orb:0x%08x) ... ",
2186 "%s:%s: request timeout(cmd orb:0x%08x) ... ",
2281 ocb->orb[0] = htonl(1 << 31);
2282 ocb->orb[1] = 0;
2283 ocb->orb[2] = htonl(((sc->sc_fd.fc->nodeid | FWLOCALBUS) << 16));
2284 ocb->orb[3] = htonl(ocb->bus_addr + IND_PTR_OFFSET);
2286 ocb->orb[4] =
2290 ocb->orb[4] |= htonl(ORB_CMD_IN);
2296 memcpy((void *)&ocb->orb[5], cdb, xs->cmdlen);
2298 printf("ORB %08x %08x %08x %08x\n", ntohl(ocb->orb[0]), ntohl(ocb->orb[1]), ntohl(ocb->orb[2]), ntohl(ocb->orb[3]));
2299 printf("ORB %08x %08x %08x %08x\n", ntohl(ocb->orb[4]), ntohl(ocb->orb[5]), ntohl(ocb->orb[6]), ntohl(ocb->orb[7]));
2338 ocb->orb[3] = htonl(s->ds_addr);
2339 ocb->orb[4] |= htonl(s->ds_len);
2357 ocb->orb[4] |= htonl(ORB_CMD_PTBL | seg);
2362 const int flag = (ntohl(ocb->orb[4]) & ORB_CMD_IN) ?
2407 if (ntohl(ocb->orb[4]) & 0xffff) {
2409 (ntohl(ocb->orb[4]) & ORB_CMD_IN) ?
2426 * next ORB
2489 * Suppress compiler optimization so that orb[1] must be
2494 *(volatile uint32_t *)&prev2->orb[1] = htonl(ocb->bus_addr);
2495 *(volatile uint32_t *)&prev2->orb[0] = 0;
2559 if (ntohl(ocb->orb[4]) & 0xffff) {
2560 const int flag = (ntohl(ocb->orb[4]) & ORB_CMD_IN) ?