xop 2326 arch/powerpc/xmon/ppc-opc.c #define A(op, xop, rc) (OP (op) | ((((unsigned long)(xop)) & 0x1f) << 1) | (((unsigned long)(rc)) & 1)) xop 2417 arch/powerpc/xmon/ppc-opc.c #define CTX(op, xop) (OP (op) | (((unsigned long)(xop)) & 0x7)) xop 2421 arch/powerpc/xmon/ppc-opc.c #define UCTX(op, xop) (OP (op) | (((unsigned long)(xop)) & 0x1f)) xop 2428 arch/powerpc/xmon/ppc-opc.c #define DQX(op, xop) (OP (op) | ((xop) & 0x7)) xop 2432 arch/powerpc/xmon/ppc-opc.c #define DSO(op, xop) (OP (op) | ((xop) & 0x3)) xop 2436 arch/powerpc/xmon/ppc-opc.c #define DX(op, xop) (OP (op) | ((((unsigned long)(xop)) & 0x1f) << 1)) xop 2440 arch/powerpc/xmon/ppc-opc.c #define EVSEL(op, xop) (OP (op) | (((unsigned long)(xop)) & 0xff) << 3) xop 2444 arch/powerpc/xmon/ppc-opc.c #define IA16(op, xop) (OP (op) | (((unsigned long)(xop)) & 0x1f) << 11) xop 2448 arch/powerpc/xmon/ppc-opc.c #define I16A(op, xop) (OP (op) | (((unsigned long)(xop)) & 0x1f) << 11) xop 2452 arch/powerpc/xmon/ppc-opc.c #define I16L(op, xop) (OP (op) | (((unsigned long)(xop)) & 0x1f) << 11) xop 2464 arch/powerpc/xmon/ppc-opc.c #define LI20(op, xop) (OP (op) | (((unsigned long)(xop)) & 0x1) << 15) xop 2477 arch/powerpc/xmon/ppc-opc.c #define MD(op, xop, rc) (OP (op) | ((((unsigned long)(xop)) & 0x7) << 2) | ((rc) & 1)) xop 2487 arch/powerpc/xmon/ppc-opc.c #define MDS(op, xop, rc) (OP (op) | ((((unsigned long)(xop)) & 0xf) << 1) | ((rc) & 1)) xop 2498 arch/powerpc/xmon/ppc-opc.c #define SCI8(op, xop) (OP (op) | ((((unsigned long)(xop)) & 0x1f) << 11)) xop 2502 arch/powerpc/xmon/ppc-opc.c #define SCI8BF(op, fop, xop) (OP (op) | ((((unsigned long)(xop)) & 0x1f) << 11) | (((fop) & 7) << 23)) xop 2510 arch/powerpc/xmon/ppc-opc.c #define SE_IM5(op, xop) (((((unsigned long)(op)) & 0x3f) << 10) | (((xop) & 0x1) << 9)) xop 2514 arch/powerpc/xmon/ppc-opc.c #define SE_R(op, xop) (((((unsigned long)(op)) & 0x3f) << 10) | (((xop) & 0x3f) << 4)) xop 2518 arch/powerpc/xmon/ppc-opc.c #define SE_RR(op, xop) (((((unsigned long)(op)) & 0x3f) << 10) | (((xop) & 0x3) << 8)) xop 2522 arch/powerpc/xmon/ppc-opc.c #define VX(op, xop) (OP (op) | (((unsigned long)(xop)) & 0x7ff)) xop 2555 arch/powerpc/xmon/ppc-opc.c #define VXA(op, xop) (OP (op) | (((unsigned long)(xop)) & 0x03f)) xop 2564 arch/powerpc/xmon/ppc-opc.c #define VXR(op, xop, rc) (OP (op) | (((rc) & 1) << 10) | (((unsigned long)(xop)) & 0x3ff)) xop 2570 arch/powerpc/xmon/ppc-opc.c #define VXVA(op, xop, vaop) (VX(op,xop) | (((vaop) & 0x1f) << 16)) xop 2572 arch/powerpc/xmon/ppc-opc.c #define VXASH(op, xop) (OP (op) | ((((unsigned long)(xop)) & 0x1f) << 1)) xop 2576 arch/powerpc/xmon/ppc-opc.c #define X(op, xop) (OP (op) | ((((unsigned long)(xop)) & 0x3ff) << 1)) xop 2579 arch/powerpc/xmon/ppc-opc.c #define XVA(op, xop, vaop) (X(op,xop) | (((vaop) & 0x1f) << 16)) xop 2582 arch/powerpc/xmon/ppc-opc.c #define EX(op, xop) (OP (op) | (((unsigned long)(xop)) & 0x7ff)) xop 2588 arch/powerpc/xmon/ppc-opc.c #define XX2(op, xop) (OP (op) | ((((unsigned long)(xop)) & 0x1ff) << 2)) xop 2591 arch/powerpc/xmon/ppc-opc.c #define XX2VA(op, xop, vaop) (XX2(op,xop) | (((vaop) & 0x1f) << 16)) xop 2594 arch/powerpc/xmon/ppc-opc.c #define XX3(op, xop) (OP (op) | ((((unsigned long)(xop)) & 0xff) << 3)) xop 2597 arch/powerpc/xmon/ppc-opc.c #define XX3RC(op, xop, rc) (OP (op) | (((rc) & 1) << 10) | ((((unsigned long)(xop)) & 0x7f) << 3)) xop 2600 arch/powerpc/xmon/ppc-opc.c #define XX4(op, xop) (OP (op) | ((((unsigned long)(xop)) & 0x3) << 4)) xop 2603 arch/powerpc/xmon/ppc-opc.c #define Z(op, xop) (OP (op) | ((((unsigned long)(xop)) & 0x1ff) << 1)) xop 2606 arch/powerpc/xmon/ppc-opc.c #define XRC(op, xop, rc) (X ((op), (xop)) | ((rc) & 1)) xop 2609 arch/powerpc/xmon/ppc-opc.c #define XVARC(op, xop, vaop, rc) (XVA ((op), (xop), (vaop)) | ((rc) & 1)) xop 2612 arch/powerpc/xmon/ppc-opc.c #define XMMF(op, xop, mop0, mop1) (X ((op), (xop)) | ((mop0) & 3) << 19 | ((mop1) & 7) << 16) xop 2615 arch/powerpc/xmon/ppc-opc.c #define ZRC(op, xop, rc) (Z ((op), (xop)) | ((rc) & 1)) xop 2724 arch/powerpc/xmon/ppc-opc.c #define XOPL(op, xop, l) (X ((op), (xop)) | ((((unsigned long)(l)) & 1) << 21)) xop 2727 arch/powerpc/xmon/ppc-opc.c #define XOPL2(op, xop, l) (X ((op), (xop)) | ((((unsigned long)(l)) & 3) << 21)) xop 2730 arch/powerpc/xmon/ppc-opc.c #define XRCL(op, xop, l, rc) (XRC ((op), (xop), (rc)) | ((((unsigned long)(l)) & 1) << 21)) xop 2733 arch/powerpc/xmon/ppc-opc.c #define XRT(op, xop, rt) (X ((op), (xop)) \ xop 2737 arch/powerpc/xmon/ppc-opc.c #define XRTRA(op, xop, rt, ra) (X ((op), (xop)) \ xop 2749 arch/powerpc/xmon/ppc-opc.c #define XTO(op, xop, to) (X ((op), (xop)) | ((((unsigned long)(to)) & 0x1f) << 21)) xop 2753 arch/powerpc/xmon/ppc-opc.c #define XTLB(op, xop, sh) (X ((op), (xop)) | ((((unsigned long)(sh)) & 0x1f) << 11)) xop 2757 arch/powerpc/xmon/ppc-opc.c #define XSYNC(op, xop, l) (X ((op), (xop)) | ((((unsigned long)(l)) & 3) << 21)) xop 2769 arch/powerpc/xmon/ppc-opc.c #define XDSS(op, xop, a) (X ((op), (xop)) | ((((unsigned long)(a)) & 1) << 25)) xop 2773 arch/powerpc/xmon/ppc-opc.c #define XFL(op, xop, rc) (OP (op) | ((((unsigned long)(xop)) & 0x3ff) << 1) | (((unsigned long)(rc)) & 1)) xop 2777 arch/powerpc/xmon/ppc-opc.c #define XISEL(op, xop) (OP (op) | ((((unsigned long)(xop)) & 0x1f) << 1)) xop 2781 arch/powerpc/xmon/ppc-opc.c #define XL(op, xop) (OP (op) | ((((unsigned long)(xop)) & 0x3ff) << 1)) xop 2784 arch/powerpc/xmon/ppc-opc.c #define XLLK(op, xop, lk) (XL ((op), (xop)) | ((lk) & 1)) xop 2793 arch/powerpc/xmon/ppc-opc.c #define XLO(op, bo, xop, lk) \ xop 2794 arch/powerpc/xmon/ppc-opc.c (XLLK ((op), (xop), (lk)) | ((((unsigned long)(bo)) & 0x1f) << 21)) xop 2799 arch/powerpc/xmon/ppc-opc.c #define XLYLK(op, xop, y, lk) (XLLK ((op), (xop), (lk)) | ((((unsigned long)(y)) & 1) << 21)) xop 2804 arch/powerpc/xmon/ppc-opc.c #define XLOCB(op, bo, cb, xop, lk) \ xop 2805 arch/powerpc/xmon/ppc-opc.c (XLO ((op), (bo), (xop), (lk)) | ((((unsigned long)(cb)) & 3) << 16)) xop 2823 arch/powerpc/xmon/ppc-opc.c #define XMBAR(op, xop, mo) (X ((op), (xop)) | ((((unsigned long)(mo)) & 1) << 21)) xop 2826 arch/powerpc/xmon/ppc-opc.c #define XO(op, xop, oe, rc) \ xop 2827 arch/powerpc/xmon/ppc-opc.c (OP (op) | ((((unsigned long)(xop)) & 0x1ff) << 1) | ((((unsigned long)(oe)) & 1) << 10) | (((unsigned long)(rc)) & 1)) xop 2834 arch/powerpc/xmon/ppc-opc.c #define XOPS(op, xop, rc) \ xop 2835 arch/powerpc/xmon/ppc-opc.c (OP (op) | ((((unsigned long)(xop)) & 0x3ff) << 1) | (((unsigned long)(rc)) & 1)) xop 2840 arch/powerpc/xmon/ppc-opc.c #define XS(op, xop, rc) (OP (op) | ((((unsigned long)(xop)) & 0x1ff) << 2) | (((unsigned long)(rc)) & 1)) xop 2847 arch/powerpc/xmon/ppc-opc.c #define XFXM(op, xop, fxm, p4) \ xop 2848 arch/powerpc/xmon/ppc-opc.c (X ((op), (xop)) | ((((unsigned long)(fxm)) & 0xff) << 12) \ xop 2852 arch/powerpc/xmon/ppc-opc.c #define XSPR(op, xop, spr) \ xop 2853 arch/powerpc/xmon/ppc-opc.c (X ((op), (xop)) | ((((unsigned long)(spr)) & 0x1f) << 16) | ((((unsigned long)(spr)) & 0x3e0) << 6)) xop 2868 arch/powerpc/xmon/ppc-opc.c #define XUC(op, xop) (OP (op) | (((unsigned long)(xop)) & 0x1f)) xop 2872 arch/powerpc/xmon/ppc-opc.c #define XW(op, xop, rc) (OP (op) | ((((unsigned long)(xop)) & 0x3f) << 1) | ((rc) & 1)) xop 2877 arch/powerpc/xmon/ppc-opc.c #define APU(op, xop, rc) (OP (op) | (((unsigned long)(xop)) & 0x3ff) << 1 | ((rc) & 1)) xop 34 drivers/target/target_core_xcopy.c static sense_reason_t target_parse_xcopy_cmd(struct xcopy_op *xop); xop 105 drivers/target/target_core_xcopy.c static int target_xcopy_parse_tiddesc_e4(struct se_cmd *se_cmd, struct xcopy_op *xop, xop 151 drivers/target/target_core_xcopy.c if (cscd_index != xop->stdi && cscd_index != xop->dtdi) { xop 157 drivers/target/target_core_xcopy.c if (cscd_index == xop->stdi) { xop 158 drivers/target/target_core_xcopy.c memcpy(&xop->src_tid_wwn[0], &desc[8], XCOPY_NAA_IEEE_REGEX_LEN); xop 162 drivers/target/target_core_xcopy.c if (!memcmp(&xop->local_dev_wwn[0], &xop->src_tid_wwn[0], xop 164 drivers/target/target_core_xcopy.c xop->op_origin = XCOL_SOURCE_RECV_OP; xop 165 drivers/target/target_core_xcopy.c xop->src_dev = se_cmd->se_dev; xop 167 drivers/target/target_core_xcopy.c " received xop\n", xop->src_dev); xop 171 drivers/target/target_core_xcopy.c if (cscd_index == xop->dtdi) { xop 172 drivers/target/target_core_xcopy.c memcpy(&xop->dst_tid_wwn[0], &desc[8], XCOPY_NAA_IEEE_REGEX_LEN); xop 179 drivers/target/target_core_xcopy.c if (!memcmp(&xop->local_dev_wwn[0], &xop->dst_tid_wwn[0], xop 181 drivers/target/target_core_xcopy.c xop->op_origin = XCOL_DEST_RECV_OP; xop 182 drivers/target/target_core_xcopy.c xop->dst_dev = se_cmd->se_dev; xop 184 drivers/target/target_core_xcopy.c " received xop\n", xop->dst_dev); xop 192 drivers/target/target_core_xcopy.c struct xcopy_op *xop, unsigned char *p, xop 220 drivers/target/target_core_xcopy.c memset(&xop->local_dev_wwn[0], 0, XCOPY_NAA_IEEE_REGEX_LEN); xop 221 drivers/target/target_core_xcopy.c target_xcopy_gen_naa_ieee(local_dev, &xop->local_dev_wwn[0]); xop 231 drivers/target/target_core_xcopy.c rc = target_xcopy_parse_tiddesc_e4(se_cmd, xop, xop 247 drivers/target/target_core_xcopy.c switch (xop->op_origin) { xop 249 drivers/target/target_core_xcopy.c rc = target_xcopy_locate_se_dev_e4(xop->dst_tid_wwn, xop 250 drivers/target/target_core_xcopy.c &xop->dst_dev); xop 253 drivers/target/target_core_xcopy.c rc = target_xcopy_locate_se_dev_e4(xop->src_tid_wwn, xop 254 drivers/target/target_core_xcopy.c &xop->src_dev); xop 258 drivers/target/target_core_xcopy.c "stdi: %hu dtdi: %hu\n", xop->stdi, xop->dtdi); xop 274 drivers/target/target_core_xcopy.c xop->src_dev, &xop->src_tid_wwn[0]); xop 276 drivers/target/target_core_xcopy.c xop->dst_dev, &xop->dst_tid_wwn[0]); xop 284 drivers/target/target_core_xcopy.c static int target_xcopy_parse_segdesc_02(struct se_cmd *se_cmd, struct xcopy_op *xop, xop 298 drivers/target/target_core_xcopy.c xop->stdi = get_unaligned_be16(&desc[4]); xop 299 drivers/target/target_core_xcopy.c xop->dtdi = get_unaligned_be16(&desc[6]); xop 301 drivers/target/target_core_xcopy.c if (xop->stdi > XCOPY_CSCD_DESC_ID_LIST_OFF_MAX || xop 302 drivers/target/target_core_xcopy.c xop->dtdi > XCOPY_CSCD_DESC_ID_LIST_OFF_MAX) { xop 304 drivers/target/target_core_xcopy.c XCOPY_CSCD_DESC_ID_LIST_OFF_MAX, xop->stdi, xop->dtdi); xop 309 drivers/target/target_core_xcopy.c desc_len, xop->stdi, xop->dtdi, dc); xop 311 drivers/target/target_core_xcopy.c xop->nolb = get_unaligned_be16(&desc[10]); xop 312 drivers/target/target_core_xcopy.c xop->src_lba = get_unaligned_be64(&desc[12]); xop 313 drivers/target/target_core_xcopy.c xop->dst_lba = get_unaligned_be64(&desc[20]); xop 315 drivers/target/target_core_xcopy.c xop->nolb, (unsigned long long)xop->src_lba, xop 316 drivers/target/target_core_xcopy.c (unsigned long long)xop->dst_lba); xop 319 drivers/target/target_core_xcopy.c xop->dbl = get_unaligned_be24(&desc[29]); xop 321 drivers/target/target_core_xcopy.c pr_debug("XCOPY seg desc 0x02: DC=1 w/ dbl: %u\n", xop->dbl); xop 327 drivers/target/target_core_xcopy.c struct xcopy_op *xop, unsigned char *p, xop 356 drivers/target/target_core_xcopy.c rc = target_xcopy_parse_segdesc_02(se_cmd, xop, desc); xop 397 drivers/target/target_core_xcopy.c static void xcopy_pt_undepend_remotedev(struct xcopy_op *xop) xop 401 drivers/target/target_core_xcopy.c if (xop->op_origin == XCOL_SOURCE_RECV_OP) xop 402 drivers/target/target_core_xcopy.c remote_dev = xop->dst_dev; xop 404 drivers/target/target_core_xcopy.c remote_dev = xop->src_dev; xop 515 drivers/target/target_core_xcopy.c struct xcopy_op *xop, xop 533 drivers/target/target_core_xcopy.c cmd->se_lun = xop->xop_se_cmd->se_lun; xop 534 drivers/target/target_core_xcopy.c cmd->se_dev = xop->xop_se_cmd->se_dev; xop 564 drivers/target/target_core_xcopy.c xop->xop_data_sg, xop->xop_data_nents, xop 603 drivers/target/target_core_xcopy.c struct xcopy_op *xop, xop 613 drivers/target/target_core_xcopy.c bool remote_port = (xop->op_origin == XCOL_DEST_RECV_OP); xop 632 drivers/target/target_core_xcopy.c xop->src_pt_cmd = xpt_cmd; xop 634 drivers/target/target_core_xcopy.c rc = target_xcopy_setup_pt_cmd(xpt_cmd, xop, src_dev, &cdb[0], xop 642 drivers/target/target_core_xcopy.c xop->xop_data_sg = se_cmd->t_data_sg; xop 643 drivers/target/target_core_xcopy.c xop->xop_data_nents = se_cmd->t_data_nents; xop 645 drivers/target/target_core_xcopy.c " memory\n", xop->xop_data_sg, xop->xop_data_nents); xop 665 drivers/target/target_core_xcopy.c struct xcopy_op *xop, xop 675 drivers/target/target_core_xcopy.c bool remote_port = (xop->op_origin == XCOL_SOURCE_RECV_OP); xop 694 drivers/target/target_core_xcopy.c xop->dst_pt_cmd = xpt_cmd; xop 696 drivers/target/target_core_xcopy.c rc = target_xcopy_setup_pt_cmd(xpt_cmd, xop, dst_dev, &cdb[0], xop 699 drivers/target/target_core_xcopy.c struct se_cmd *src_cmd = &xop->src_pt_cmd->se_cmd; xop 707 drivers/target/target_core_xcopy.c src_cmd->t_data_sg = xop->xop_data_sg; xop 708 drivers/target/target_core_xcopy.c src_cmd->t_data_nents = xop->xop_data_nents; xop 727 drivers/target/target_core_xcopy.c struct xcopy_op *xop = container_of(work, struct xcopy_op, xop_work); xop 728 drivers/target/target_core_xcopy.c struct se_cmd *ec_cmd = xop->xop_se_cmd; xop 735 drivers/target/target_core_xcopy.c if (target_parse_xcopy_cmd(xop) != TCM_NO_SENSE) xop 738 drivers/target/target_core_xcopy.c if (WARN_ON_ONCE(!xop->src_dev) || WARN_ON_ONCE(!xop->dst_dev)) xop 741 drivers/target/target_core_xcopy.c src_dev = xop->src_dev; xop 742 drivers/target/target_core_xcopy.c dst_dev = xop->dst_dev; xop 743 drivers/target/target_core_xcopy.c src_lba = xop->src_lba; xop 744 drivers/target/target_core_xcopy.c dst_lba = xop->dst_lba; xop 745 drivers/target/target_core_xcopy.c nolb = xop->nolb; xop 768 drivers/target/target_core_xcopy.c rc = target_xcopy_read_source(ec_cmd, xop, src_dev, src_lba, cur_nolb); xop 779 drivers/target/target_core_xcopy.c rc = target_xcopy_write_destination(ec_cmd, xop, dst_dev, xop 782 drivers/target/target_core_xcopy.c transport_generic_free_cmd(&xop->src_pt_cmd->se_cmd, 0); xop 793 drivers/target/target_core_xcopy.c transport_generic_free_cmd(&xop->src_pt_cmd->se_cmd, 0); xop 794 drivers/target/target_core_xcopy.c xop->dst_pt_cmd->se_cmd.se_cmd_flags &= ~SCF_PASSTHROUGH_SG_TO_MEM_NOALLOC; xop 796 drivers/target/target_core_xcopy.c transport_generic_free_cmd(&xop->dst_pt_cmd->se_cmd, 0); xop 799 drivers/target/target_core_xcopy.c xcopy_pt_undepend_remotedev(xop); xop 800 drivers/target/target_core_xcopy.c kfree(xop); xop 812 drivers/target/target_core_xcopy.c xcopy_pt_undepend_remotedev(xop); xop 815 drivers/target/target_core_xcopy.c kfree(xop); xop 831 drivers/target/target_core_xcopy.c static sense_reason_t target_parse_xcopy_cmd(struct xcopy_op *xop) xop 833 drivers/target/target_core_xcopy.c struct se_cmd *se_cmd = xop->xop_se_cmd; xop 885 drivers/target/target_core_xcopy.c rc = target_xcopy_parse_segment_descriptors(se_cmd, xop, seg_desc, xop 893 drivers/target/target_core_xcopy.c rc = target_xcopy_parse_target_descriptors(se_cmd, xop, &p[16], tdll, &ret); xop 897 drivers/target/target_core_xcopy.c if (xop->src_dev->dev_attrib.block_size != xop 898 drivers/target/target_core_xcopy.c xop->dst_dev->dev_attrib.block_size) { xop 901 drivers/target/target_core_xcopy.c xop->src_dev->dev_attrib.block_size, xop 902 drivers/target/target_core_xcopy.c xop->dst_dev->dev_attrib.block_size); xop 903 drivers/target/target_core_xcopy.c xcopy_pt_undepend_remotedev(xop); xop 922 drivers/target/target_core_xcopy.c struct xcopy_op *xop; xop 946 drivers/target/target_core_xcopy.c xop = kzalloc(sizeof(struct xcopy_op), GFP_KERNEL); xop 947 drivers/target/target_core_xcopy.c if (!xop) xop 949 drivers/target/target_core_xcopy.c xop->xop_se_cmd = se_cmd; xop 950 drivers/target/target_core_xcopy.c INIT_WORK(&xop->xop_work, target_xcopy_do_work); xop 951 drivers/target/target_core_xcopy.c if (WARN_ON_ONCE(!queue_work(xcopy_wq, &xop->xop_work))) xop 956 drivers/target/target_core_xcopy.c kfree(xop); xop 29 fs/dlm/plock.c struct plock_op xop; xop 106 fs/dlm/plock.c struct plock_xop *xop; xop 113 fs/dlm/plock.c xop = kzalloc(sizeof(*xop), GFP_NOFS); xop 114 fs/dlm/plock.c if (!xop) { xop 119 fs/dlm/plock.c op = &xop->xop; xop 132 fs/dlm/plock.c xop->callback = fl->fl_lmops->lm_grant; xop 133 fs/dlm/plock.c locks_init_lock(&xop->flc); xop 134 fs/dlm/plock.c locks_copy_lock(&xop->flc, fl); xop 135 fs/dlm/plock.c xop->fl = fl; xop 136 fs/dlm/plock.c xop->file = file; xop 139 fs/dlm/plock.c xop->callback = NULL; xop 144 fs/dlm/plock.c if (xop->callback == NULL) { xop 152 fs/dlm/plock.c kfree(xop); xop 177 fs/dlm/plock.c kfree(xop); xop 191 fs/dlm/plock.c struct plock_xop *xop = (struct plock_xop *)op; xop 203 fs/dlm/plock.c file = xop->file; xop 204 fs/dlm/plock.c flc = &xop->flc; xop 205 fs/dlm/plock.c fl = xop->fl; xop 206 fs/dlm/plock.c notify = xop->callback; xop 237 fs/dlm/plock.c kfree(xop); xop 439 fs/dlm/plock.c struct plock_xop *xop = (struct plock_xop *)op; xop 442 fs/dlm/plock.c if (xop->callback)