Lines Matching refs:iden

219 	__be16 iden;  member
307 u16 kvmppc_gsid_size(u16 iden);
308 unsigned long kvmppc_gsid_flags(u16 iden);
309 u64 kvmppc_gsid_mask(u16 iden);
447 return be16_to_cpu(gse->iden); in kvmppc_gse_iden()
537 int __kvmppc_gse_put(struct kvmppc_gs_buff *gsb, u16 iden, u16 size,
547 static inline int kvmppc_gse_put_be32(struct kvmppc_gs_buff *gsb, u16 iden, in kvmppc_gse_put_be32() argument
553 return __kvmppc_gse_put(gsb, iden, sizeof(__be32), &tmp); in kvmppc_gse_put_be32()
563 static inline int kvmppc_gse_put_u32(struct kvmppc_gs_buff *gsb, u16 iden, in kvmppc_gse_put_u32() argument
568 val &= kvmppc_gsid_mask(iden); in kvmppc_gse_put_u32()
570 return kvmppc_gse_put_be32(gsb, iden, tmp); in kvmppc_gse_put_u32()
579 static inline int kvmppc_gse_put_be64(struct kvmppc_gs_buff *gsb, u16 iden, in kvmppc_gse_put_be64() argument
585 return __kvmppc_gse_put(gsb, iden, sizeof(__be64), &tmp); in kvmppc_gse_put_be64()
595 static inline int kvmppc_gse_put_u64(struct kvmppc_gs_buff *gsb, u16 iden, in kvmppc_gse_put_u64() argument
600 val &= kvmppc_gsid_mask(iden); in kvmppc_gse_put_u64()
602 return kvmppc_gse_put_be64(gsb, iden, tmp); in kvmppc_gse_put_u64()
615 static inline int __kvmppc_gse_put_reg(struct kvmppc_gs_buff *gsb, u16 iden, in __kvmppc_gse_put_reg() argument
618 val &= kvmppc_gsid_mask(iden); in __kvmppc_gse_put_reg()
619 if (kvmppc_gsid_size(iden) == sizeof(u64)) in __kvmppc_gse_put_reg()
620 return kvmppc_gse_put_u64(gsb, iden, val); in __kvmppc_gse_put_reg()
622 if (kvmppc_gsid_size(iden) == sizeof(u32)) { in __kvmppc_gse_put_reg()
629 return kvmppc_gse_put_u32(gsb, iden, tmp); in __kvmppc_gse_put_reg()
640 static inline int kvmppc_gse_put_vector128(struct kvmppc_gs_buff *gsb, u16 iden, in kvmppc_gse_put_vector128() argument
654 return __kvmppc_gse_put(gsb, iden, sizeof(tmp), &tmp); in kvmppc_gse_put_vector128()
665 u16 iden, in kvmppc_gse_put_part_table() argument
685 u16 iden, in kvmppc_gse_put_proc_table() argument
703 static inline int kvmppc_gse_put_buff_info(struct kvmppc_gs_buff *gsb, u16 iden, in kvmppc_gse_put_buff_info() argument
710 return __kvmppc_gse_put(gsb, iden, sizeof(tmp), &tmp); in kvmppc_gse_put_buff_info()
713 int __kvmppc_gse_put(struct kvmppc_gs_buff *gsb, u16 iden, u16 size,
784 bool kvmppc_gsbm_test(struct kvmppc_gs_bitmap *gsbm, u16 iden);
785 void kvmppc_gsbm_set(struct kvmppc_gs_bitmap *gsbm, u16 iden);
786 void kvmppc_gsbm_clear(struct kvmppc_gs_bitmap *gsbm, u16 iden);
813 #define kvmppc_gsbm_for_each(gsbm, iden) \ argument
814 for (iden = kvmppc_gsbm_next(gsbm, 0); iden != 0; \
815 iden = kvmppc_gsbm_next(gsbm, iden))
821 void kvmppc_gsp_insert(struct kvmppc_gs_parser *gsp, u16 iden,
824 u16 iden);
833 #define kvmppc_gsp_for_each(gsp, iden, gse) \ argument
834 for (iden = kvmppc_gsbm_next(&(gsp)->iterator, 0), \
835 gse = kvmppc_gsp_lookup((gsp), iden); \
836 iden != 0; iden = kvmppc_gsbm_next(&(gsp)->iterator, iden), \
837 gse = kvmppc_gsp_lookup((gsp), iden))
850 #define kvmppc_gsm_for_each(gsm, iden) \ argument
851 for (iden = kvmppc_gsbm_next(&gsm->bitmap, 0); iden != 0; \
852 iden = kvmppc_gsbm_next(&gsm->bitmap, iden))
871 static inline void kvmppc_gsm_include(struct kvmppc_gs_msg *gsm, u16 iden) in kvmppc_gsm_include() argument
873 kvmppc_gsbm_set(&gsm->bitmap, iden); in kvmppc_gsm_include()
882 static inline bool kvmppc_gsm_includes(struct kvmppc_gs_msg *gsm, u16 iden) in kvmppc_gsm_includes() argument
884 return kvmppc_gsbm_test(&gsm->bitmap, iden); in kvmppc_gsm_includes()
944 struct kvmppc_gs_msg *gsm, u16 iden) in kvmppc_gsb_receive_datum() argument
948 kvmppc_gsm_include(gsm, iden); in kvmppc_gsb_receive_datum()
984 struct kvmppc_gs_msg *gsm, u16 iden) in kvmppc_gsb_send_datum() argument
988 kvmppc_gsm_include(gsm, iden); in kvmppc_gsb_send_datum()