Searched refs:mval (Results 1 - 18 of 18) sorted by relevance

/linux-4.4.14/fs/xfs/
H A Dxfs_symlink.c51 struct xfs_bmbt_irec mval[XFS_SYMLINK_MAPS]; xfs_readlink_bmap() local
64 error = xfs_bmapi_read(ip, 0, fsblocks, mval, &nmaps, 0); xfs_readlink_bmap()
70 d = XFS_FSB_TO_DADDR(mp, mval[n].br_startblock); xfs_readlink_bmap()
71 byte_cnt = XFS_FSB_TO_B(mp, mval[n].br_blockcount); xfs_readlink_bmap()
185 struct xfs_bmbt_irec mval[XFS_SYMLINK_MAPS]; xfs_symlink() local
327 mval, &nmaps, &free_list); xfs_symlink()
341 d = XFS_FSB_TO_DADDR(mp, mval[n].br_startblock); xfs_symlink()
342 byte_cnt = XFS_FSB_TO_B(mp, mval[n].br_blockcount); xfs_symlink()
444 xfs_bmbt_irec_t mval[XFS_SYMLINK_MAPS]; xfs_inactive_symlink_rmt() local
484 nmaps = ARRAY_SIZE(mval); xfs_inactive_symlink_rmt()
486 mval, &nmaps, 0); xfs_inactive_symlink_rmt()
494 XFS_FSB_TO_DADDR(mp, mval[i].br_startblock), xfs_inactive_symlink_rmt()
495 XFS_FSB_TO_BB(mp, mval[i].br_blockcount), 0); xfs_inactive_symlink_rmt()
/linux-4.4.14/fs/xfs/libxfs/
H A Dxfs_bmap.c525 xfs_bmbt_irec_t *mval, xfs_bmap_validate_ret()
534 ASSERT(mval[i].br_blockcount > 0); xfs_bmap_validate_ret()
536 ASSERT(mval[i].br_startoff >= bno); xfs_bmap_validate_ret()
537 ASSERT(mval[i].br_blockcount <= len); xfs_bmap_validate_ret()
538 ASSERT(mval[i].br_startoff + mval[i].br_blockcount <= xfs_bmap_validate_ret()
541 ASSERT(mval[i].br_startoff < bno + len); xfs_bmap_validate_ret()
542 ASSERT(mval[i].br_startoff + mval[i].br_blockcount > xfs_bmap_validate_ret()
546 mval[i - 1].br_startoff + mval[i - 1].br_blockcount == xfs_bmap_validate_ret()
547 mval[i].br_startoff); xfs_bmap_validate_ret()
548 ASSERT(mval[i].br_startblock != DELAYSTARTBLOCK && xfs_bmap_validate_ret()
549 mval[i].br_startblock != HOLESTARTBLOCK); xfs_bmap_validate_ret()
550 ASSERT(mval[i].br_state == XFS_EXT_NORM || xfs_bmap_validate_ret()
551 mval[i].br_state == XFS_EXT_UNWRITTEN); xfs_bmap_validate_ret()
557 #define xfs_bmap_validate_ret(bno,len,flags,mval,onmap,nmap)
3909 struct xfs_bmbt_irec *mval, xfs_bmapi_trim_map()
3920 *mval = *got; xfs_bmapi_trim_map()
3922 mval->br_startblock = DELAYSTARTBLOCK; xfs_bmapi_trim_map()
3930 mval->br_startoff = *bno; xfs_bmapi_trim_map()
3932 mval->br_startblock = DELAYSTARTBLOCK; xfs_bmapi_trim_map()
3934 mval->br_startblock = got->br_startblock + xfs_bmapi_trim_map()
3943 mval->br_blockcount = XFS_FILBLKS_MIN(end - *bno, xfs_bmapi_trim_map()
3945 mval->br_state = got->br_state; xfs_bmapi_trim_map()
3946 ASSERT(mval->br_blockcount <= len); xfs_bmapi_trim_map()
3963 xfs_bmbt_irec_t *mval = *map; xfs_bmapi_update_map() local
3966 ((mval->br_startoff + mval->br_blockcount) <= end)); xfs_bmapi_update_map()
3967 ASSERT((flags & XFS_BMAPI_ENTIRE) || (mval->br_blockcount <= *len) || xfs_bmapi_update_map()
3968 (mval->br_startoff < obno)); xfs_bmapi_update_map()
3970 *bno = mval->br_startoff + mval->br_blockcount; xfs_bmapi_update_map()
3972 if (*n > 0 && mval->br_startoff == mval[-1].br_startoff) { xfs_bmapi_update_map()
3974 ASSERT(mval->br_startblock == mval[-1].br_startblock); xfs_bmapi_update_map()
3975 ASSERT(mval->br_blockcount > mval[-1].br_blockcount); xfs_bmapi_update_map()
3976 ASSERT(mval->br_state == mval[-1].br_state); xfs_bmapi_update_map()
3977 mval[-1].br_blockcount = mval->br_blockcount; xfs_bmapi_update_map()
3978 mval[-1].br_state = mval->br_state; xfs_bmapi_update_map()
3979 } else if (*n > 0 && mval->br_startblock != DELAYSTARTBLOCK && xfs_bmapi_update_map()
3980 mval[-1].br_startblock != DELAYSTARTBLOCK && xfs_bmapi_update_map()
3981 mval[-1].br_startblock != HOLESTARTBLOCK && xfs_bmapi_update_map()
3982 mval->br_startblock == mval[-1].br_startblock + xfs_bmapi_update_map()
3983 mval[-1].br_blockcount && xfs_bmapi_update_map()
3985 mval[-1].br_state == mval->br_state)) { xfs_bmapi_update_map()
3986 ASSERT(mval->br_startoff == xfs_bmapi_update_map()
3987 mval[-1].br_startoff + mval[-1].br_blockcount); xfs_bmapi_update_map()
3988 mval[-1].br_blockcount += mval->br_blockcount; xfs_bmapi_update_map()
3990 mval->br_startblock == DELAYSTARTBLOCK && xfs_bmapi_update_map()
3991 mval[-1].br_startblock == DELAYSTARTBLOCK && xfs_bmapi_update_map()
3992 mval->br_startoff == xfs_bmapi_update_map()
3993 mval[-1].br_startoff + mval[-1].br_blockcount) { xfs_bmapi_update_map()
3994 mval[-1].br_blockcount += mval->br_blockcount; xfs_bmapi_update_map()
3995 mval[-1].br_state = mval->br_state; xfs_bmapi_update_map()
3997 ((mval->br_startoff + mval->br_blockcount) <= xfs_bmapi_update_map()
3999 mval++; xfs_bmapi_update_map()
4002 *map = mval; xfs_bmapi_update_map()
4013 struct xfs_bmbt_irec *mval, xfs_bmapi_read()
4066 mval->br_startoff = bno; xfs_bmapi_read()
4067 mval->br_startblock = HOLESTARTBLOCK; xfs_bmapi_read()
4068 mval->br_blockcount = xfs_bmapi_read()
4070 mval->br_state = XFS_EXT_NORM; xfs_bmapi_read()
4071 bno += mval->br_blockcount; xfs_bmapi_read()
4072 len -= mval->br_blockcount; xfs_bmapi_read()
4073 mval++; xfs_bmapi_read()
4079 xfs_bmapi_trim_map(mval, &got, &bno, len, obno, end, n, flags); xfs_bmapi_read()
4080 xfs_bmapi_update_map(&mval, &bno, &len, obno, end, &n, flags); xfs_bmapi_read()
4200 struct xfs_bmbt_irec *mval, /* output: map values */ xfs_bmapi_delay()
4201 int *nmap, /* i/o: mval size/count */ xfs_bmapi_delay()
4257 xfs_bmapi_trim_map(mval, &got, &bno, len, obno, end, n, flags); xfs_bmapi_delay()
4258 xfs_bmapi_update_map(&mval, &bno, &len, obno, end, &n, flags); xfs_bmapi_delay()
4398 struct xfs_bmbt_irec *mval, xfs_bmapi_convert_unwritten()
4409 if (mval->br_state == XFS_EXT_UNWRITTEN && xfs_bmapi_convert_unwritten()
4414 if (mval->br_state == XFS_EXT_NORM && xfs_bmapi_convert_unwritten()
4422 ASSERT(mval->br_blockcount <= len); xfs_bmapi_convert_unwritten()
4429 mval->br_state = (mval->br_state == XFS_EXT_UNWRITTEN) xfs_bmapi_convert_unwritten()
4437 error = xfs_zero_extent(bma->ip, mval->br_startblock, xfs_bmapi_convert_unwritten()
4438 mval->br_blockcount); xfs_bmapi_convert_unwritten()
4444 &bma->cur, mval, bma->firstblock, bma->flist, xfs_bmapi_convert_unwritten()
4469 if (mval->br_blockcount < len) xfs_bmapi_convert_unwritten()
4496 struct xfs_bmbt_irec *mval, /* output: map values */ xfs_bmapi_write()
4497 int *nmap, /* i/o: mval size/count */ xfs_bmapi_write()
4516 struct xfs_bmbt_irec *orig_mval; /* original value of mval */ xfs_bmapi_write()
4522 orig_mval = mval; xfs_bmapi_write()
4628 xfs_bmapi_trim_map(mval, &bma.got, &bno, len, obno, xfs_bmapi_write()
4632 error = xfs_bmapi_convert_unwritten(&bma, mval, len, flags); xfs_bmapi_write()
4639 xfs_bmapi_update_map(&mval, &bno, &len, obno, end, &n, flags); xfs_bmapi_write()
521 xfs_bmap_validate_ret( xfs_fileoff_t bno, xfs_filblks_t len, int flags, xfs_bmbt_irec_t *mval, int nmap, int ret_nmap) xfs_bmap_validate_ret() argument
3908 xfs_bmapi_trim_map( struct xfs_bmbt_irec *mval, struct xfs_bmbt_irec *got, xfs_fileoff_t *bno, xfs_filblks_t len, xfs_fileoff_t obno, xfs_fileoff_t end, int n, int flags) xfs_bmapi_trim_map() argument
4009 xfs_bmapi_read( struct xfs_inode *ip, xfs_fileoff_t bno, xfs_filblks_t len, struct xfs_bmbt_irec *mval, int *nmap, int flags) xfs_bmapi_read() argument
4196 xfs_bmapi_delay( struct xfs_inode *ip, xfs_fileoff_t bno, xfs_filblks_t len, struct xfs_bmbt_irec *mval, int *nmap, int flags) xfs_bmapi_delay() argument
4396 xfs_bmapi_convert_unwritten( struct xfs_bmalloca *bma, struct xfs_bmbt_irec *mval, xfs_filblks_t len, int flags) xfs_bmapi_convert_unwritten() argument
4487 xfs_bmapi_write( struct xfs_trans *tp, struct xfs_inode *ip, xfs_fileoff_t bno, xfs_filblks_t len, int flags, xfs_fsblock_t *firstblock, xfs_extlen_t total, struct xfs_bmbt_irec *mval, int *nmap, struct xfs_bmap_free *flist) xfs_bmapi_write() argument
H A Dxfs_bmap.h210 xfs_filblks_t len, struct xfs_bmbt_irec *mval,
213 xfs_filblks_t len, struct xfs_bmbt_irec *mval,
218 struct xfs_bmbt_irec *mval, int *nmap,
/linux-4.4.14/drivers/mmc/core/
H A Dsdio_io.c191 unsigned mval = func->card->host->max_blk_size; sdio_max_byte_size() local
194 mval = min(mval, func->cur_blksize); sdio_max_byte_size()
196 mval = min(mval, func->max_blksize); sdio_max_byte_size()
199 return min(mval, 511u); sdio_max_byte_size()
201 return min(mval, 512u); /* maximum size for byte mode */ sdio_max_byte_size()
/linux-4.4.14/drivers/isdn/i4l/
H A Disdn_tty.c2871 isdn_tty_check_ats(int mreg, int mval, modem_info *info, atemu *m) isdn_tty_check_ats() argument
2876 if (mval > ISDN_PROTO_L2_MAX) isdn_tty_check_ats()
2880 if ((mval * 16) > ISDN_SERIAL_XMIT_MAX) isdn_tty_check_ats()
2883 if ((m->mdmreg[REG_SI1] & 1) && (mval > VBUFX)) isdn_tty_check_ats()
2886 info->xmit_size = mval * 16; isdn_tty_check_ats()
2912 int mval; isdn_tty_cmd_ATS() local
2921 mval = isdn_getnum(p); isdn_tty_cmd_ATS()
2922 if (mval < 0 || mval > 255) isdn_tty_cmd_ATS()
2924 if (isdn_tty_check_ats(mreg, mval, info, m)) isdn_tty_cmd_ATS()
2926 m->mdmreg[mreg] = mval; isdn_tty_cmd_ATS()
2941 mval = m->mdmreg[mreg] | (1 << bitpos); isdn_tty_cmd_ATS()
2943 mval = m->mdmreg[mreg] & ~(1 << bitpos); isdn_tty_cmd_ATS()
2944 if (isdn_tty_check_ats(mreg, mval, info, m)) isdn_tty_cmd_ATS()
2946 m->mdmreg[mreg] = mval; isdn_tty_cmd_ATS()
/linux-4.4.14/drivers/pinctrl/
H A Dpinctrl-zynq.c763 #define DEFINE_ZYNQ_PINMUX_FUNCTION(fname, mval) \
768 .mux_val = mval, \
771 #define DEFINE_ZYNQ_PINMUX_FUNCTION_MUX(fname, mval, offset, mask, shift)\
776 .mux_val = mval, \
/linux-4.4.14/fs/ufs/
H A Dsuper.c1340 unsigned mval = sbi->s_mount_opt & UFS_MOUNT_UFSTYPE; ufs_show_options() local
1343 while (tp->token != Opt_onerror_panic && tp->token != mval) ufs_show_options()
1348 mval = sbi->s_mount_opt & UFS_MOUNT_ONERROR; ufs_show_options()
1349 while (tp->token != Opt_err && tp->token != mval) ufs_show_options()
/linux-4.4.14/fs/
H A Dinode.c1322 int mval; find_inode_nowait() local
1328 mval = match(inode, hashval, data); hlist_for_each_entry()
1329 if (mval == 0) hlist_for_each_entry()
1331 if (mval == 1) hlist_for_each_entry()
/linux-4.4.14/arch/powerpc/xmon/
H A Dxmon.c2405 static unsigned long mval; /* byte value to set memory to */ variable
2415 scanhex((void *)(cmd == 's'? &mval: &msrc)); memops()
2424 memset((void *)mdest, mval, mcount); memops()
2466 scanhex((void *)&mval); memlocate()
2475 && ((GETWORD(val) ^ mval) & mask) == 0) { memlocate()
/linux-4.4.14/drivers/staging/dgap/
H A Ddgap.c2689 u8 mval; dgap_param() local
2693 * If baud rate is zero, flush queues, and set mval to drop DTR. dgap_param()
2708 mval = D_DTR(ch) | D_RTS(ch); dgap_param()
2730 mval = D_DTR(ch) | D_RTS(ch); dgap_param()
2876 mval = D_DTR(ch) | D_RTS(ch); dgap_param()
2956 mval ^= ch->ch_mforce & (mval ^ ch->ch_mval); dgap_param()
2958 if (ch->ch_mostat ^ mval) { dgap_param()
2959 ch->ch_mostat = mval; dgap_param()
2962 dgap_cmdb(ch, SMODEM, (u8)mval, D_RTS(ch) | D_DTR(ch), 0); dgap_param()
/linux-4.4.14/sound/pci/ac97/
H A Dac97_patch.c2350 unsigned short mval; snd_ac97_ad1986_vrefout_put() local
2360 mval = 0; snd_ac97_ad1986_vrefout_put()
2365 mval = AC97_AD1986_MVREF2; snd_ac97_ad1986_vrefout_put()
2370 mval = AC97_AD1986_MVREF0; snd_ac97_ad1986_vrefout_put()
2375 mval = AC97_AD1986_MVREF1; snd_ac97_ad1986_vrefout_put()
2390 AC97_AD1986_MVREF_MASK, mval); snd_ac97_ad1986_vrefout_put()
/linux-4.4.14/net/ipv4/
H A Ddevinet.c2132 #define DEVINET_SYSCTL_ENTRY(attr, name, mval, proc) \
2138 .mode = mval, \
/linux-4.4.14/drivers/tty/serial/jsm/
H A Djsm_cls.c703 * If baud rate is zero, flush queues, and set mval to drop DTR. cls_param()
H A Djsm_neo.c948 * If baud rate is zero, flush queues, and set mval to drop DTR. neo_param()
/linux-4.4.14/drivers/staging/dgnc/
H A Ddgnc_cls.c454 * If baud rate is zero, flush queues, and set mval to drop DTR. cls_param()
H A Ddgnc_neo.c606 * If baud rate is zero, flush queues, and set mval to drop DTR. neo_param()
/linux-4.4.14/net/core/
H A Dneighbour.c3026 #define NEIGH_SYSCTL_ENTRY(attr, data_attr, name, mval, proc) \
3031 .mode = mval, \
/linux-4.4.14/kernel/
H A Dfutex.c2930 u32 uval, uninitialized_var(nval), mval; handle_futex_death() local
2947 mval = (uval & FUTEX_WAITERS) | FUTEX_OWNER_DIED; handle_futex_death()
2957 if (cmpxchg_futex_value_locked(&nval, uaddr, uval, mval)) { handle_futex_death()

Completed in 607 milliseconds