/linux-4.1.27/drivers/staging/lustre/lustre/lov/ |
H A D | lov_pack.c | 419 struct lov_user_md_v3 lum; lov_getstripe() local 438 if (copy_from_user(&lum, lump, lum_size)) { lov_getstripe() 441 } else if ((lum.lmm_magic != LOV_USER_MAGIC) && lov_getstripe() 442 (lum.lmm_magic != LOV_USER_MAGIC_V3)) { lov_getstripe() 447 if (lum.lmm_stripe_count && lov_getstripe() 448 (lum.lmm_stripe_count < lsm->lsm_stripe_count)) { lov_getstripe() 450 lum.lmm_stripe_count = lsm->lsm_stripe_count; lov_getstripe() 451 rc = copy_to_user(lump, &lum, lum_size); lov_getstripe() 463 CLASSERT(sizeof(lum) == sizeof(struct lov_mds_md_v3)); lov_getstripe() 464 CLASSERT(sizeof(lum.lmm_objects[0]) == sizeof(lmmk->lmm_objects[0])); lov_getstripe() 474 if (lum.lmm_magic == LOV_USER_MAGIC) { lov_getstripe() 490 if (lum.lmm_stripe_count == 0) lov_getstripe() 492 else if (lum.lmm_stripe_count < lmmk->lmm_stripe_count) { lov_getstripe() 500 lum.lmm_stripe_count = lmmk->lmm_stripe_count; lov_getstripe() 501 lum.lmm_layout_gen = lmmk->lmm_layout_gen; lov_getstripe() 502 ((struct lov_user_md *)lmmk)->lmm_layout_gen = lum.lmm_layout_gen; lov_getstripe() 503 ((struct lov_user_md *)lmmk)->lmm_stripe_count = lum.lmm_stripe_count; lov_getstripe()
|
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/ |
H A D | pack_generic.c | 2089 void lustre_swab_lmv_user_md(struct lmv_user_md *lum) lustre_swab_lmv_user_md() argument 2093 __swab32s(&lum->lum_magic); lustre_swab_lmv_user_md() 2094 __swab32s(&lum->lum_stripe_count); lustre_swab_lmv_user_md() 2095 __swab32s(&lum->lum_stripe_offset); lustre_swab_lmv_user_md() 2096 __swab32s(&lum->lum_hash_type); lustre_swab_lmv_user_md() 2097 __swab32s(&lum->lum_type); lustre_swab_lmv_user_md() 2098 CLASSERT(offsetof(typeof(*lum), lum_padding1) != 0); lustre_swab_lmv_user_md() 2099 CLASSERT(offsetof(typeof(*lum), lum_padding2) != 0); lustre_swab_lmv_user_md() 2100 CLASSERT(offsetof(typeof(*lum), lum_padding3) != 0); lustre_swab_lmv_user_md() 2102 for (i = 0; i < lum->lum_stripe_count; i++) { lustre_swab_lmv_user_md() 2103 __swab32s(&lum->lum_objects[i].lum_mds); lustre_swab_lmv_user_md() 2104 lustre_swab_lu_fid(&lum->lum_objects[i].lum_fid); lustre_swab_lmv_user_md() 2110 static void print_lum(struct lov_user_md *lum) print_lum() argument 2112 CDEBUG(D_OTHER, "lov_user_md %p:\n", lum); print_lum() 2113 CDEBUG(D_OTHER, "\tlmm_magic: %#x\n", lum->lmm_magic); print_lum() 2114 CDEBUG(D_OTHER, "\tlmm_pattern: %#x\n", lum->lmm_pattern); print_lum() 2115 CDEBUG(D_OTHER, "\tlmm_object_id: %llu\n", lmm_oi_id(&lum->lmm_oi)); print_lum() 2116 CDEBUG(D_OTHER, "\tlmm_object_gr: %llu\n", lmm_oi_seq(&lum->lmm_oi)); print_lum() 2117 CDEBUG(D_OTHER, "\tlmm_stripe_size: %#x\n", lum->lmm_stripe_size); print_lum() 2118 CDEBUG(D_OTHER, "\tlmm_stripe_count: %#x\n", lum->lmm_stripe_count); print_lum() 2120 lum->lmm_stripe_offset); print_lum() 2129 static void lustre_swab_lov_user_md_common(struct lov_user_md_v1 *lum) lustre_swab_lov_user_md_common() argument 2131 __swab32s(&lum->lmm_magic); lustre_swab_lov_user_md_common() 2132 __swab32s(&lum->lmm_pattern); lustre_swab_lov_user_md_common() 2133 lustre_swab_lmm_oi(&lum->lmm_oi); lustre_swab_lov_user_md_common() 2134 __swab32s(&lum->lmm_stripe_size); lustre_swab_lov_user_md_common() 2135 __swab16s(&lum->lmm_stripe_count); lustre_swab_lov_user_md_common() 2136 __swab16s(&lum->lmm_stripe_offset); lustre_swab_lov_user_md_common() 2137 print_lum(lum); lustre_swab_lov_user_md_common() 2140 void lustre_swab_lov_user_md_v1(struct lov_user_md_v1 *lum) lustre_swab_lov_user_md_v1() argument 2143 lustre_swab_lov_user_md_common(lum); lustre_swab_lov_user_md_v1() 2147 void lustre_swab_lov_user_md_v3(struct lov_user_md_v3 *lum) lustre_swab_lov_user_md_v3() argument 2150 lustre_swab_lov_user_md_common((struct lov_user_md_v1 *)lum); lustre_swab_lov_user_md_v3()
|
/linux-4.1.27/drivers/staging/lustre/lustre/mdc/ |
H A D | mdc_lib.c | 343 struct lov_user_md *lum = NULL; mdc_setattr_pack() local 360 lum = req_capsule_client_get(&req->rq_pill, &RMF_EADATA); mdc_setattr_pack() 362 lum->lmm_magic = LOV_USER_MAGIC_V1; mdc_setattr_pack() 363 lum->lmm_stripe_size = 0; mdc_setattr_pack() 364 lum->lmm_stripe_count = 0; mdc_setattr_pack() 365 lum->lmm_stripe_offset = (typeof(lum->lmm_stripe_offset))(-1); mdc_setattr_pack() 367 memcpy(lum, ea, ealen); mdc_setattr_pack()
|
/linux-4.1.27/drivers/media/usb/gspca/ |
H A D | autogain_functions.c | 48 PDEBUG(D_FRAM, "autogain: lum: %d, desired: %d, steps: %d", gspca_expo_autogain() 133 PDEBUG(D_FRAM, "autogain: lum: %d, desired: %d, steps: %d", gspca_coarse_grained_expo_autogain()
|
H A D | sonixb.c | 1359 int lum = sd->header[lum_offset] + sd_pkt_scan() local 1363 get a lum of 0 in this case drop 2 frames sd_pkt_scan() 1365 change have an unstable image. Sometimes lum sd_pkt_scan() 1368 if the previous lum was 0 too. */ sd_pkt_scan() 1369 if (lum == 0 && sd->prev_avg_lum != 0) { sd_pkt_scan() 1370 lum = -1; sd_pkt_scan() 1374 sd->prev_avg_lum = lum; sd_pkt_scan() 1375 atomic_set(&sd->avg_lum, lum); sd_pkt_scan()
|
H A D | spca508.c | 363 * lum filter disable, lum noise clip disable */ 440 {0x00ff, 0x8615}, /* High lum thresh for white balance */ 441 {0x0000, 0x8616}, /* Low lum thresh for white balance */
|
H A D | stk1135.c | 226 { 0x220, 0xc814 }, { 0x221, 0x8080 }, /* lum limits, RGB gain */ stk1135_configure_mt9m112()
|
H A D | sonixj.c | 2596 PDEBUG(D_FRAM, "mean lum %d", delta); do_autogain()
|
/linux-4.1.27/drivers/staging/lustre/lustre/include/ |
H A D | obd.h | 189 static inline int lov_lum_lsm_cmp(struct lov_user_md *lum, lov_lum_lsm_cmp() argument 192 if (lsm->lsm_magic != lum->lmm_magic) lov_lum_lsm_cmp() 194 if ((lsm->lsm_stripe_count != 0) && (lum->lmm_stripe_count != 0) && lov_lum_lsm_cmp() 195 (lsm->lsm_stripe_count != lum->lmm_stripe_count)) lov_lum_lsm_cmp() 197 if ((lsm->lsm_stripe_size != 0) && (lum->lmm_stripe_size != 0) && lov_lum_lsm_cmp() 198 (lsm->lsm_stripe_size != lum->lmm_stripe_size)) lov_lum_lsm_cmp() 200 if ((lsm->lsm_pattern != 0) && (lum->lmm_pattern != 0) && lov_lum_lsm_cmp() 201 (lsm->lsm_pattern != lum->lmm_pattern)) lov_lum_lsm_cmp() 205 ((struct lov_user_md_v3 *)lum)->lmm_pool_name, lov_lum_lsm_cmp() 213 struct lov_user_md *lum) lov_lum_swab_if_needed() 215 if (lum && copy_from_user(lumv3, lum, sizeof(struct lov_user_md_v1))) lov_lum_swab_if_needed() 224 if (lum && copy_from_user(lumv3, lum, sizeof(*lumv3))) lov_lum_swab_if_needed() 227 if (lum && copy_from_user(lumv3, lum, sizeof(*lumv3))) lov_lum_swab_if_needed() 211 lov_lum_swab_if_needed(struct lov_user_md_v3 *lumv3, int *lmm_magic, struct lov_user_md *lum) lov_lum_swab_if_needed() argument
|
/linux-4.1.27/drivers/staging/lustre/lustre/llite/ |
H A D | dir.c | 1324 struct lmv_user_md *lum; ll_dir_ioctl() local 1351 lum = (struct lmv_user_md *)data->ioc_inlbuf2; ll_dir_ioctl() 1354 if (lum->lum_magic != LMV_USER_MAGIC || ll_dir_ioctl() 1355 lumlen != sizeof(*lum)) { ll_dir_ioctl() 1356 CERROR("%s: wrong lum magic %x or size %d: rc = %d\n", ll_dir_ioctl() 1357 filename, lum->lum_magic, lumlen, -EFAULT); ll_dir_ioctl() 1366 rc = ll_dir_setdirstripe(inode, lum, filename); ll_dir_ioctl() 1402 struct lmv_user_md lum; ll_dir_ioctl() local 1408 if (copy_from_user(&lum, lump, sizeof(struct lmv_user_md))) ll_dir_ioctl() 1411 if (lum.lum_magic != LMV_MAGIC_V1) ll_dir_ioctl() 1421 *tmp = lum; ll_dir_ioctl() 1567 struct lov_user_md *lum; ll_dir_ioctl() local 1573 lum = &lumd->lmd_lmm; ll_dir_ioctl() 1582 if (copy_from_user(lmm, lum, lmmsize)) { ll_dir_ioctl()
|
H A D | llite_internal.h | 767 int flags, struct lov_user_md *lum,
|
H A D | file.c | 1346 int flags, struct lov_user_md *lum, int lum_size) ll_lov_setstripe_ea_info() 1362 rc = ll_intent_file_open(dentry, lum, lum_size, &oit); ll_lov_setstripe_ea_info() 1345 ll_lov_setstripe_ea_info(struct inode *inode, struct dentry *dentry, int flags, struct lov_user_md *lum, int lum_size) ll_lov_setstripe_ea_info() argument
|
/linux-4.1.27/drivers/staging/lustre/lustre/osc/ |
H A D | osc_request.c | 2594 struct lov_user_md_v3 lum, *lumk; osc_getstripe() local 2604 if (copy_from_user(&lum, lump, lum_size)) osc_getstripe() 2607 if ((lum.lmm_magic != LOV_USER_MAGIC_V1) && osc_getstripe() 2608 (lum.lmm_magic != LOV_USER_MAGIC_V3)) osc_getstripe() 2614 LASSERT(sizeof(lum.lmm_objects[0]) == sizeof(lumk->lmm_objects[0])); osc_getstripe() 2618 if (lum.lmm_stripe_count > 0) { osc_getstripe() 2619 lum_size = lov_mds_md_size(lum.lmm_stripe_count, lum.lmm_magic); osc_getstripe() 2624 if (lum.lmm_magic == LOV_USER_MAGIC_V1) osc_getstripe() 2631 lum_size = lov_mds_md_size(0, lum.lmm_magic); osc_getstripe() 2632 lumk = &lum; osc_getstripe() 2641 if (lumk != &lum) osc_getstripe()
|
/linux-4.1.27/security/keys/ |
H A D | proc.c | 234 sprintf(xbuf, "%lum", timo / 60); proc_keys_show()
|
/linux-4.1.27/drivers/staging/lustre/lustre/lmv/ |
H A D | lmv_obd.c | 1227 struct lmv_user_md *lum; lmv_placement_policy() local 1229 lum = (struct lmv_user_md *)op_data->op_data; lmv_placement_policy() 1230 if (lum->lum_type == LMV_STRIPE_TYPE && lmv_placement_policy() 1231 lum->lum_stripe_offset != -1) { lmv_placement_policy() 1232 if (lum->lum_stripe_offset >= lmv->desc.ld_tgt_count) { lmv_placement_policy() 1235 lum->lum_stripe_offset, lmv_placement_policy() 1239 *mds = lum->lum_stripe_offset; lmv_placement_policy()
|
/linux-4.1.27/drivers/media/i2c/ |
H A D | saa7115.c | 554 /* must be horiz lum scaling / 2 */ 589 /* hor lum scaling 0x0400 = 1 */ 595 /* must be hor lum scaling / 2 */ 939 * must be lum/2, so i'll just bitshift :) */ saa711x_set_size()
|
/linux-4.1.27/drivers/staging/lustre/lustre/include/lustre/ |
H A D | lustre_user.h | 410 extern void lustre_swab_lmv_user_md(struct lmv_user_md *lum);
|
H A D | lustre_idl.h | 3354 extern void lustre_swab_lov_user_md_v1(struct lov_user_md_v1 *lum); 3355 extern void lustre_swab_lov_user_md_v3(struct lov_user_md_v3 *lum);
|
/linux-4.1.27/drivers/video/fbdev/omap2/dss/ |
H A D | dsi.c | 1502 seq_printf(s, "CLKIN4DDR\t%-16lum %u\n", dsi_dump_dsidev_clocks()
|