Lines Matching refs:offset

842 	int		 offset;  in fcoei_initiate_ct_req()  local
877 offset = 0; in fcoei_initiate_ct_req()
878 FCOE_V2B_1(ct->ct_rev, FPLD + offset); in fcoei_initiate_ct_req()
880 offset = 1; in fcoei_initiate_ct_req()
881 FCOE_V2B_3(ct->ct_inid, FPLD + offset); in fcoei_initiate_ct_req()
883 offset = 4; in fcoei_initiate_ct_req()
884 FCOE_V2B_1(ct->ct_fcstype, FPLD + offset); in fcoei_initiate_ct_req()
886 offset = 5; in fcoei_initiate_ct_req()
887 FCOE_V2B_1(ct->ct_fcssubtype, FPLD + offset); in fcoei_initiate_ct_req()
889 offset = 6; in fcoei_initiate_ct_req()
890 FCOE_V2B_1(ct->ct_options, FPLD + offset); in fcoei_initiate_ct_req()
892 offset = 8; in fcoei_initiate_ct_req()
893 FCOE_V2B_2(ct->ct_cmdrsp, FPLD + offset); in fcoei_initiate_ct_req()
895 offset = 10; in fcoei_initiate_ct_req()
896 FCOE_V2B_2(ct->ct_aiusize, FPLD + offset); in fcoei_initiate_ct_req()
898 offset = 13; in fcoei_initiate_ct_req()
899 FCOE_V2B_1(ct->ct_reason, FPLD + offset); in fcoei_initiate_ct_req()
901 offset = 14; in fcoei_initiate_ct_req()
902 FCOE_V2B_1(ct->ct_expln, FPLD + offset); in fcoei_initiate_ct_req()
904 offset = 15; in fcoei_initiate_ct_req()
905 FCOE_V2B_1(ct->ct_vendor, FPLD + offset); in fcoei_initiate_ct_req()
923 offset = 16; in fcoei_initiate_ct_req()
924 FCOE_V2B_4(((uint32_t *)(intptr_t)(bp + offset))[0], in fcoei_initiate_ct_req()
925 FPLD + offset); in fcoei_initiate_ct_req()
929 offset = 16; in fcoei_initiate_ct_req()
930 bcopy(bp + offset, FPLD + offset, 8); in fcoei_initiate_ct_req()
935 offset = 16; in fcoei_initiate_ct_req()
936 FCOE_V2B_4(((uint32_t *)(intptr_t)(bp + offset))[0], in fcoei_initiate_ct_req()
937 FPLD + offset); in fcoei_initiate_ct_req()
939 offset = 20; in fcoei_initiate_ct_req()
940 bcopy(bp + offset, FPLD + offset, 8); in fcoei_initiate_ct_req()
944 offset = 16; in fcoei_initiate_ct_req()
945 FCOE_V2B_4(((uint32_t *)(intptr_t)(bp + offset))[0], in fcoei_initiate_ct_req()
946 FPLD + offset); in fcoei_initiate_ct_req()
948 offset = 20; in fcoei_initiate_ct_req()
949 bcopy(bp + offset, FPLD + offset, bp[20] + 1); in fcoei_initiate_ct_req()
953 offset = 16; in fcoei_initiate_ct_req()
954 bcopy(bp + offset, FPLD + offset, 8); in fcoei_initiate_ct_req()
956 offset = 24; in fcoei_initiate_ct_req()
957 bcopy(bp + offset, FPLD + offset, bp[24] + 1); in fcoei_initiate_ct_req()
961 offset = 16; in fcoei_initiate_ct_req()
962 FCOE_V2B_4(((uint32_t *)(intptr_t)(bp + offset))[0], in fcoei_initiate_ct_req()
963 FPLD + offset); in fcoei_initiate_ct_req()
969 offset = 20; in fcoei_initiate_ct_req()
972 ((uint32_t *)(intptr_t)(bp + offset))[0], in fcoei_initiate_ct_req()
973 FPLD + offset); in fcoei_initiate_ct_req()
974 offset += 4; in fcoei_initiate_ct_req()
980 offset = 16; in fcoei_initiate_ct_req()
981 FCOE_V2B_4(((uint32_t *)(intptr_t)(bp + offset))[0], in fcoei_initiate_ct_req()
982 FPLD + offset); in fcoei_initiate_ct_req()
984 offset = 20; in fcoei_initiate_ct_req()
985 FCOE_V2B_4(((uint32_t *)(intptr_t)(bp + offset))[0], in fcoei_initiate_ct_req()
986 FPLD + offset); in fcoei_initiate_ct_req()
990 offset = 16; in fcoei_initiate_ct_req()
991 bcopy(bp + offset, FPLD + offset, 24); in fcoei_initiate_ct_req()
1043 int offset = 0; in fcoei_initiate_fcp_cmd() local
1072 frm->frm_payload + offset); in fcoei_initiate_fcp_cmd()
1073 offset += 2; in fcoei_initiate_fcp_cmd()
1075 frm->frm_payload + offset); in fcoei_initiate_fcp_cmd()
1076 offset += 2; in fcoei_initiate_fcp_cmd()
1078 frm->frm_payload + offset); in fcoei_initiate_fcp_cmd()
1079 offset += 2; in fcoei_initiate_fcp_cmd()
1081 frm->frm_payload + offset); in fcoei_initiate_fcp_cmd()
1085 offset = offsetof(fcp_cmd_t, fcp_cntl); in fcoei_initiate_fcp_cmd()
1086 frm->frm_payload[offset] = 0; in fcoei_initiate_fcp_cmd()
1088 offset += 1; in fcoei_initiate_fcp_cmd()
1089 frm->frm_payload[offset] = fcp_cmd_iu->fcp_cntl.cntl_qtype & 0x07; in fcoei_initiate_fcp_cmd()
1090 offset += 1; in fcoei_initiate_fcp_cmd()
1091 frm->frm_payload[offset] = in fcoei_initiate_fcp_cmd()
1098 offset += 1; in fcoei_initiate_fcp_cmd()
1099 frm->frm_payload[offset] = in fcoei_initiate_fcp_cmd()
1105 offset = offsetof(fcp_cmd_t, fcp_cdb); in fcoei_initiate_fcp_cmd()
1106 bcopy(fcp_cmd_iu->fcp_cdb, frm->frm_payload + offset, FCP_CDB_SIZE); in fcoei_initiate_fcp_cmd()
1110 offset += FCP_CDB_SIZE; in fcoei_initiate_fcp_cmd()
1111 FCOE_V2B_4(fcp_cmd_iu->fcp_data_len, frm->frm_payload + offset); in fcoei_initiate_fcp_cmd()
1345 int offset; in fcoei_fill_els_logi_cmd() local
1350 offset = 0; in fcoei_fill_els_logi_cmd()
1351 FCOE_V2B_1(els_logi->ls_code.ls_code, FPLD + offset); in fcoei_fill_els_logi_cmd()
1356 offset = 4; in fcoei_fill_els_logi_cmd()
1357 FCOE_V2B_2(els_logi->common_service.fcph_version, FPLD + offset); in fcoei_fill_els_logi_cmd()
1359 offset = 6; in fcoei_fill_els_logi_cmd()
1360 FCOE_V2B_2(els_logi->common_service.btob_credit, FPLD + offset); in fcoei_fill_els_logi_cmd()
1362 offset = 8; in fcoei_fill_els_logi_cmd()
1363 FCOE_V2B_2(els_logi->common_service.cmn_features, FPLD + offset); in fcoei_fill_els_logi_cmd()
1365 offset = 10; in fcoei_fill_els_logi_cmd()
1366 FCOE_V2B_2(els_logi->common_service.rx_bufsize, FPLD + offset); in fcoei_fill_els_logi_cmd()
1368 offset = 12; in fcoei_fill_els_logi_cmd()
1369 FCOE_V2B_2(els_logi->common_service.conc_sequences, FPLD + offset); in fcoei_fill_els_logi_cmd()
1371 offset = 14; in fcoei_fill_els_logi_cmd()
1372 FCOE_V2B_2(els_logi->common_service.relative_offset, FPLD + offset); in fcoei_fill_els_logi_cmd()
1374 offset = 16; in fcoei_fill_els_logi_cmd()
1375 FCOE_V2B_4(els_logi->common_service.e_d_tov, FPLD + offset); in fcoei_fill_els_logi_cmd()
1380 offset = 20; in fcoei_fill_els_logi_cmd()
1381 bcopy(&els_logi->nport_ww_name, FPLD + offset, 8); in fcoei_fill_els_logi_cmd()
1383 offset = 28; in fcoei_fill_els_logi_cmd()
1384 bcopy(&els_logi->node_ww_name, FPLD + offset, 8); in fcoei_fill_els_logi_cmd()
1389 offset = 68; in fcoei_fill_els_logi_cmd()
1390 FCOE_V2B_2(els_logi->class_3.class_opt, FPLD + offset); in fcoei_fill_els_logi_cmd()
1392 offset = 70; in fcoei_fill_els_logi_cmd()
1393 FCOE_V2B_2(els_logi->class_3.initiator_ctl, FPLD + offset); in fcoei_fill_els_logi_cmd()
1395 offset = 72; in fcoei_fill_els_logi_cmd()
1396 FCOE_V2B_2(els_logi->class_3.recipient_ctl, FPLD + offset); in fcoei_fill_els_logi_cmd()
1398 offset = 74; in fcoei_fill_els_logi_cmd()
1399 FCOE_V2B_2(els_logi->class_3.rcv_size, FPLD + offset); in fcoei_fill_els_logi_cmd()
1401 offset = 76; in fcoei_fill_els_logi_cmd()
1402 FCOE_V2B_2(els_logi->class_3.conc_sequences, FPLD + offset); in fcoei_fill_els_logi_cmd()
1404 offset = 78; in fcoei_fill_els_logi_cmd()
1405 FCOE_V2B_2(els_logi->class_3.n_port_e_to_e_credit, FPLD + offset); in fcoei_fill_els_logi_cmd()
1407 offset = 80; in fcoei_fill_els_logi_cmd()
1408 FCOE_V2B_2(els_logi->class_3.open_seq_per_xchng, FPLD + offset); in fcoei_fill_els_logi_cmd()
1431 int offset = 0; in fcoei_fill_els_prli_cmd() local
1439 offset = 0; in fcoei_fill_els_prli_cmd()
1440 FCOE_V2B_1(els_prli->ls_code, FPLD + offset); in fcoei_fill_els_prli_cmd()
1442 offset = 1; in fcoei_fill_els_prli_cmd()
1443 FCOE_V2B_1(els_prli->page_length, FPLD + offset); in fcoei_fill_els_prli_cmd()
1445 offset = 2; in fcoei_fill_els_prli_cmd()
1446 FCOE_V2B_2(els_prli->payload_length, FPLD + offset); in fcoei_fill_els_prli_cmd()
1451 offset = 4; in fcoei_fill_els_prli_cmd()
1452 FCOE_V2B_1(fcp_spp->type, FPLD + offset); in fcoei_fill_els_prli_cmd()
1457 offset = 6; in fcoei_fill_els_prli_cmd()
1461 (fcp_spp->establish_image_pair << 13)), FPLD + offset); in fcoei_fill_els_prli_cmd()
1466 offset = 8; in fcoei_fill_els_prli_cmd()
1467 FCOE_V2B_4(fcp_spp->orig_process_associator, FPLD + offset); in fcoei_fill_els_prli_cmd()
1469 offset = 12; in fcoei_fill_els_prli_cmd()
1470 FCOE_V2B_4(fcp_spp->resp_process_associator, FPLD + offset); in fcoei_fill_els_prli_cmd()
1475 offset = 16; in fcoei_fill_els_prli_cmd()
1481 (fcp_spp->write_xfer_rdy_disabled), FPLD + offset); in fcoei_fill_els_prli_cmd()
1502 int offset; in fcoei_fill_els_scr_cmd() local
1504 offset = 0; in fcoei_fill_els_scr_cmd()
1505 FCOE_V2B_1(els_scr->ls_code.ls_code, FPLD + offset); in fcoei_fill_els_scr_cmd()
1507 offset = 7; in fcoei_fill_els_scr_cmd()
1508 FCOE_V2B_1(els_scr->scr_func, FPLD + offset); in fcoei_fill_els_scr_cmd()
1529 int offset; in fcoei_fill_els_adisc_cmd() local
1531 offset = 0; in fcoei_fill_els_adisc_cmd()
1532 FCOE_V2B_1(els_adisc->ls_code.ls_code, FPLD + offset); in fcoei_fill_els_adisc_cmd()
1534 offset = 5; in fcoei_fill_els_adisc_cmd()
1535 FCOE_V2B_3(els_adisc->hard_addr.hard_addr, FPLD + offset); in fcoei_fill_els_adisc_cmd()
1537 offset = 8; in fcoei_fill_els_adisc_cmd()
1538 bcopy(&els_adisc->port_wwn, FPLD + offset, 8); in fcoei_fill_els_adisc_cmd()
1540 offset = 16; in fcoei_fill_els_adisc_cmd()
1541 bcopy(&els_adisc->node_wwn, FPLD + offset, 8); in fcoei_fill_els_adisc_cmd()
1543 offset = 25; in fcoei_fill_els_adisc_cmd()
1544 FCOE_V2B_3(els_adisc->nport_id.port_id, FPLD + offset); in fcoei_fill_els_adisc_cmd()
1586 int offset; in fcoei_fill_els_logo_cmd() local
1588 offset = 0; in fcoei_fill_els_logo_cmd()
1589 FCOE_V2B_1(els_logo->ls_code.ls_code, FPLD + offset); in fcoei_fill_els_logo_cmd()
1591 offset = 5; in fcoei_fill_els_logo_cmd()
1592 FCOE_V2B_3(els_logo->nport_id.port_id, FPLD + offset); in fcoei_fill_els_logo_cmd()
1594 offset = 8; in fcoei_fill_els_logo_cmd()
1595 bcopy(&els_logo->nport_ww_name, FPLD + offset, 8); in fcoei_fill_els_logo_cmd()
1602 int offset; in fcoei_fill_els_rls_cmd() local
1604 offset = 0; in fcoei_fill_els_rls_cmd()
1605 FCOE_V2B_1(els_rls->ls_code.ls_code, FPLD + offset); in fcoei_fill_els_rls_cmd()
1607 offset = 5; in fcoei_fill_els_rls_cmd()
1608 FCOE_V2B_3(els_rls->rls_portid.port_id, FPLD + offset); in fcoei_fill_els_rls_cmd()
1615 int offset; in fcoei_fill_els_rnid_cmd() local
1617 offset = 0; in fcoei_fill_els_rnid_cmd()
1618 FCOE_V2B_1(els_rnid->ls_code.ls_code, FPLD + offset); in fcoei_fill_els_rnid_cmd()
1620 offset = 4; in fcoei_fill_els_rnid_cmd()
1621 bcopy(&els_rnid->data_format, FPLD + offset, 1); in fcoei_fill_els_rnid_cmd()
1641 int offset; in fcoei_fill_els_acc_resp() local
1643 offset = 0; in fcoei_fill_els_acc_resp()
1644 FCOE_V2B_1(els_code->ls_code, FPLD + offset); in fcoei_fill_els_acc_resp()
1646 offset = 1; in fcoei_fill_els_acc_resp()
1647 FCOE_V2B_3(els_code->mbz, FPLD + offset); in fcoei_fill_els_acc_resp()
1668 int offset; in fcoei_fill_els_rjt_resp() local
1670 offset = 0; /* reset ls code */ in fcoei_fill_els_rjt_resp()
1671 FCOE_V2B_1(els_rjt->ls_code.ls_code, FPLD + offset); in fcoei_fill_els_rjt_resp()
1673 offset = 5; /* reason code */ in fcoei_fill_els_rjt_resp()
1674 FCOE_V2B_1(els_rjt->action, FPLD + offset); in fcoei_fill_els_rjt_resp()
1676 offset = 6; /* reason explanation */ in fcoei_fill_els_rjt_resp()
1677 FCOE_V2B_1(els_rjt->reason, FPLD + offset); in fcoei_fill_els_rjt_resp()
1679 offset = 7; /* vendor unique */ in fcoei_fill_els_rjt_resp()
1680 FCOE_V2B_1(els_rjt->vu, FPLD + offset); in fcoei_fill_els_rjt_resp()
1701 int offset; in fcoei_fill_els_adisc_resp() local
1706 offset = 0; in fcoei_fill_els_adisc_resp()
1707 FCOE_V2B_1(els_adisc->ls_code.ls_code, FPLD + offset); in fcoei_fill_els_adisc_resp()
1709 offset = 5; in fcoei_fill_els_adisc_resp()
1710 FCOE_V2B_3(els_adisc->hard_addr.hard_addr, FPLD + offset); in fcoei_fill_els_adisc_resp()
1712 offset = 8; in fcoei_fill_els_adisc_resp()
1713 bcopy(&els_adisc->port_wwn, FPLD + offset, FC_WWN_SIZE); in fcoei_fill_els_adisc_resp()
1715 offset = 16; in fcoei_fill_els_adisc_resp()
1716 bcopy(&els_adisc->node_wwn, FPLD + offset, FC_WWN_SIZE); in fcoei_fill_els_adisc_resp()
1718 offset = 25; in fcoei_fill_els_adisc_resp()
1719 FCOE_V2B_3(els_adisc->nport_id.port_id, FPLD + offset); in fcoei_fill_els_adisc_resp()