Lines Matching refs:fc_iu
2246 mad->common.length = cpu_to_be16(sizeof(*mad) - sizeof(mad->fc_iu) - sizeof(mad->iu));
4484 if (wwn_to_u64((u8 *)&mad->fc_iu.response[2]) != tgt->ids.port_name)
4486 if (wwn_to_u64((u8 *)&mad->fc_iu.response[4]) != tgt->ids.node_name)
4488 if (be32_to_cpu(mad->fc_iu.response[6]) != tgt->scsi_id)
4521 fc_reason = (be32_to_cpu(mad->fc_iu.response[1]) & 0x00ff0000) >> 16;
4522 fc_explain = (be32_to_cpu(mad->fc_iu.response[1]) & 0x0000ff00) >> 8;
4548 mad->common.length = cpu_to_be16(sizeof(*mad) - sizeof(mad->fc_iu) - sizeof(mad->iu));
4552 mad->iu.cmd_len = cpu_to_be32(sizeof(mad->fc_iu.payload));
4553 mad->iu.rsp_len = cpu_to_be32(sizeof(mad->fc_iu.response));
4555 offsetof(struct ibmvfc_passthru_mad, fc_iu) +
4557 mad->iu.cmd.len = cpu_to_be32(sizeof(mad->fc_iu.payload));
4559 offsetof(struct ibmvfc_passthru_mad, fc_iu) +
4561 mad->iu.rsp.len = cpu_to_be32(sizeof(mad->fc_iu.response));
4690 mad->fc_iu.payload[0] = cpu_to_be32(IBMVFC_ADISC);
4691 memcpy(&mad->fc_iu.payload[2], &vhost->login_buf->resp.port_name,
4693 memcpy(&mad->fc_iu.payload[4], &vhost->login_buf->resp.node_name,
4695 mad->fc_iu.payload[6] = cpu_to_be32(be64_to_cpu(vhost->login_buf->resp.scsi_id) & 0x00ffffff);