~ubuntu-branches/debian/experimental/linux-tools/experimental

« back to all changes in this revision

Viewing changes to include/linux/mlx5/driver.h

  • Committer: Package Import Robot
  • Author(s): Ben Hutchings
  • Date: 2014-02-02 16:57:49 UTC
  • mfrom: (1.1.10) (0.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20140202165749-tw94o9t1t0a8txk6
Tags: 3.13-1~exp2
Merge changes from sid up to 3.12.6-3

Show diffs side-by-side

added added

removed removed

Lines of Context:
483
483
        struct rb_root          page_root;
484
484
        int                     fw_pages;
485
485
        int                     reg_pages;
 
486
        struct list_head        free_list;
486
487
 
487
488
        struct mlx5_core_health health;
488
489
 
557
558
struct mlx5_cmd_work_ent {
558
559
        struct mlx5_cmd_msg    *in;
559
560
        struct mlx5_cmd_msg    *out;
 
561
        void                   *uout;
 
562
        int                     uout_size;
560
563
        mlx5_cmd_cbk_t          callback;
561
564
        void                   *context;
562
 
        int idx;
 
565
        int                     idx;
563
566
        struct completion       done;
564
567
        struct mlx5_cmd        *cmd;
565
568
        struct work_struct      work;
570
573
        u8                      token;
571
574
        struct timespec         ts1;
572
575
        struct timespec         ts2;
 
576
        u16                     op;
573
577
};
574
578
 
575
579
struct mlx5_pas {
653
657
int mlx5_cmd_status_to_err(struct mlx5_outbox_hdr *hdr);
654
658
int mlx5_cmd_exec(struct mlx5_core_dev *dev, void *in, int in_size, void *out,
655
659
                  int out_size);
 
660
int mlx5_cmd_exec_cb(struct mlx5_core_dev *dev, void *in, int in_size,
 
661
                     void *out, int out_size, mlx5_cmd_cbk_t callback,
 
662
                     void *context);
656
663
int mlx5_cmd_alloc_uar(struct mlx5_core_dev *dev, u32 *uarn);
657
664
int mlx5_cmd_free_uar(struct mlx5_core_dev *dev, u32 uarn);
658
665
int mlx5_alloc_uuars(struct mlx5_core_dev *dev, struct mlx5_uuar_info *uuari);
676
683
int mlx5_core_arm_srq(struct mlx5_core_dev *dev, struct mlx5_core_srq *srq,
677
684
                      u16 lwm, int is_srq);
678
685
int mlx5_core_create_mkey(struct mlx5_core_dev *dev, struct mlx5_core_mr *mr,
679
 
                          struct mlx5_create_mkey_mbox_in *in, int inlen);
 
686
                          struct mlx5_create_mkey_mbox_in *in, int inlen,
 
687
                          mlx5_cmd_cbk_t callback, void *context,
 
688
                          struct mlx5_create_mkey_mbox_out *out);
680
689
int mlx5_core_destroy_mkey(struct mlx5_core_dev *dev, struct mlx5_core_mr *mr);
681
690
int mlx5_core_query_mkey(struct mlx5_core_dev *dev, struct mlx5_core_mr *mr,
682
691
                         struct mlx5_query_mkey_mbox_out *out, int outlen);
745
754
        return mkey_idx << 8;
746
755
}
747
756
 
 
757
static inline u8 mlx5_mkey_variant(u32 mkey)
 
758
{
 
759
        return mkey & 0xff;
 
760
}
 
761
 
748
762
enum {
749
763
        MLX5_PROF_MASK_QP_SIZE          = (u64)1 << 0,
750
764
        MLX5_PROF_MASK_MR_CACHE         = (u64)1 << 1,