/linux-4.4.14/drivers/s390/char/ |
D | tty3270.c | 126 static void tty3270_set_timer(struct tty3270 *tp, int expires) in tty3270_set_timer() argument 128 mod_timer(&tp->timer, jiffies + expires); in tty3270_set_timer() 135 tty3270_update_prompt(struct tty3270 *tp, char *input, int count) in tty3270_update_prompt() argument 140 line = tp->prompt; in tty3270_update_prompt() 144 line->string[5] = tp->inattr; in tty3270_update_prompt() 145 if (count > tp->view.cols * 2 - 11) in tty3270_update_prompt() 146 count = tp->view.cols * 2 - 11; in tty3270_update_prompt() 150 if (count < tp->view.cols * 2 - 11) { in tty3270_update_prompt() 153 off = tp->view.cols * tp->view.rows - 9; in tty3270_update_prompt() 154 raw3270_buffer_address(tp->view.dev, line->string+count+8, off); in tty3270_update_prompt() [all …]
|
/linux-4.4.14/drivers/net/ethernet/realtek/ |
D | r8169.c | 76 #define TX_SLOTS_AVAIL(tp) \ argument 77 (tp->dirty_tx + NUM_TX_DESC - tp->cur_tx) 80 #define TX_FRAGS_READY_FOR(tp,nr_frags) \ argument 81 (TX_SLOTS_AVAIL(tp) >= (nr_frags + 1)) 820 void (*phy_reset_enable)(struct rtl8169_private *tp); 822 unsigned int (*phy_reset_pending)(struct rtl8169_private *tp); 824 int (*do_ioctl)(struct rtl8169_private *tp, struct mii_ioctl_data *data, int cmd); 887 static void rtl_lock_work(struct rtl8169_private *tp) in rtl_lock_work() argument 889 mutex_lock(&tp->wk.mutex); in rtl_lock_work() 892 static void rtl_unlock_work(struct rtl8169_private *tp) in rtl_unlock_work() argument [all …]
|
D | 8139too.c | 643 static void rtl8139_start_thread(struct rtl8139_private *tp); 720 struct rtl8139_private *tp = netdev_priv(dev); in __rtl8139_cleanup_dev() local 724 assert (tp->pci_dev != NULL); in __rtl8139_cleanup_dev() 725 pdev = tp->pci_dev; in __rtl8139_cleanup_dev() 727 if (tp->mmio_addr) in __rtl8139_cleanup_dev() 728 pci_iounmap (pdev, tp->mmio_addr); in __rtl8139_cleanup_dev() 759 struct rtl8139_private *tp; in rtl8139_init_board() local 776 dev = alloc_etherdev (sizeof (*tp)); in rtl8139_init_board() 782 tp = netdev_priv(dev); in rtl8139_init_board() 783 tp->pci_dev = pdev; in rtl8139_init_board() [all …]
|
/linux-4.4.14/drivers/net/ethernet/broadcom/ |
D | tg3.c | 88 #define tg3_flag(tp, flag) \ argument 89 _tg3_flag(TG3_FLAG_##flag, (tp)->tg3_flags) 90 #define tg3_flag_set(tp, flag) \ argument 91 _tg3_flag_set(TG3_FLAG_##flag, (tp)->tg3_flags) 92 #define tg3_flag_clear(tp, flag) \ argument 93 _tg3_flag_clear(TG3_FLAG_##flag, (tp)->tg3_flags) 128 #define TG3_MAX_MTU(tp) \ argument 129 (tg3_flag(tp, JUMBO_CAPABLE) ? 9000 : 1500) 135 #define TG3_RX_STD_RING_SIZE(tp) \ argument 136 (tg3_flag(tp, LRG_PROD_RING_CAP) ? \ [all …]
|
/linux-4.4.14/drivers/net/usb/ |
D | r8152.c | 657 int get_registers(struct r8152 *tp, u16 value, u16 index, u16 size, void *data) in get_registers() argument 666 ret = usb_control_msg(tp->udev, usb_rcvctrlpipe(tp->udev, 0), in get_registers() 677 int set_registers(struct r8152 *tp, u16 value, u16 index, u16 size, void *data) in set_registers() argument 686 ret = usb_control_msg(tp->udev, usb_sndctrlpipe(tp->udev, 0), in set_registers() 695 static int generic_ocp_read(struct r8152 *tp, u16 index, u16 size, in generic_ocp_read() argument 701 if (test_bit(RTL8152_UNPLUG, &tp->flags)) in generic_ocp_read() 713 ret = get_registers(tp, index, type, limit, data); in generic_ocp_read() 721 ret = get_registers(tp, index, type, size, data); in generic_ocp_read() 733 set_bit(RTL8152_UNPLUG, &tp->flags); in generic_ocp_read() 738 static int generic_ocp_write(struct r8152 *tp, u16 index, u16 byteen, in generic_ocp_write() argument [all …]
|
/linux-4.4.14/fs/xfs/ |
D | xfs_trans.c | 62 xfs_trans_t *tp; in xfs_trans_alloc() local 65 tp = _xfs_trans_alloc(mp, type, KM_SLEEP); in xfs_trans_alloc() 66 tp->t_flags |= XFS_TRANS_FREEZE_PROT; in xfs_trans_alloc() 67 return tp; in xfs_trans_alloc() 76 xfs_trans_t *tp; in _xfs_trans_alloc() local 81 tp = kmem_zone_zalloc(xfs_trans_zone, memflags); in _xfs_trans_alloc() 82 tp->t_magic = XFS_TRANS_HEADER_MAGIC; in _xfs_trans_alloc() 83 tp->t_type = type; in _xfs_trans_alloc() 84 tp->t_mountp = mp; in _xfs_trans_alloc() 85 INIT_LIST_HEAD(&tp->t_items); in _xfs_trans_alloc() [all …]
|
D | xfs_trans_buf.c | 38 struct xfs_trans *tp, in xfs_trans_buf_item_match() argument 51 list_for_each_entry(lidp, &tp->t_items, lid_trans) { in xfs_trans_buf_item_match() 76 struct xfs_trans *tp, in _xfs_trans_bjoin() argument 89 xfs_buf_item_init(bp, tp->t_mountp); in _xfs_trans_bjoin() 105 xfs_trans_add_item(tp, &bip->bli_item); in _xfs_trans_bjoin() 111 bp->b_transp = tp; in _xfs_trans_bjoin() 117 struct xfs_trans *tp, in xfs_trans_bjoin() argument 120 _xfs_trans_bjoin(tp, bp, 0); in xfs_trans_bjoin() 135 struct xfs_trans *tp, in xfs_trans_get_buf_map() argument 144 if (!tp) in xfs_trans_get_buf_map() [all …]
|
D | xfs_trans_dquot.c | 41 xfs_trans_t *tp, in xfs_trans_dqjoin() argument 44 ASSERT(dqp->q_transp != tp); in xfs_trans_dqjoin() 51 xfs_trans_add_item(tp, &dqp->q_logitem.qli_item); in xfs_trans_dqjoin() 57 dqp->q_transp = tp; in xfs_trans_dqjoin() 73 xfs_trans_t *tp, in xfs_trans_log_dquot() argument 76 ASSERT(dqp->q_transp == tp); in xfs_trans_log_dquot() 79 tp->t_flags |= XFS_TRANS_DIRTY; in xfs_trans_log_dquot() 149 xfs_trans_t *tp, in xfs_trans_mod_dquot_byino() argument 154 xfs_mount_t *mp = tp->t_mountp; in xfs_trans_mod_dquot_byino() 161 if (tp->t_dqinfo == NULL) in xfs_trans_mod_dquot_byino() [all …]
|
D | xfs_inode.c | 744 xfs_trans_t *tp, in xfs_ialloc() argument 754 struct xfs_mount *mp = tp->t_mountp; in xfs_ialloc() 765 error = xfs_dialloc(tp, pip ? pip->i_ino : 0, mode, okalloc, in xfs_ialloc() 780 error = xfs_iget(mp, tp, ino, XFS_IGET_CREATE, in xfs_ialloc() 922 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_ialloc() 923 xfs_trans_log_inode(tp, ip, flags); in xfs_ialloc() 958 xfs_trans_t *tp; in xfs_dir_ialloc() local 965 tp = *tpp; in xfs_dir_ialloc() 966 ASSERT(tp->t_flags & XFS_TRANS_PERM_LOG_RES); in xfs_dir_ialloc() 983 code = xfs_ialloc(tp, dp, mode, nlink, rdev, prid, okalloc, in xfs_dir_ialloc() [all …]
|
D | xfs_rtalloc.c | 49 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtget_summary() argument 56 return xfs_rtmodify_summary_int(mp, tp, log, bbno, 0, rbpp, rsb, sum); in xfs_rtget_summary() 66 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtany_summary() argument 85 error = xfs_rtget_summary(mp, tp, log, bbno, rbpp, rsb, &sum); in xfs_rtany_summary() 113 xfs_trans_t *tp) /* transaction pointer */ in xfs_rtcopy_summary() argument 127 error = xfs_rtget_summary(omp, tp, log, bbno, &bp, in xfs_rtcopy_summary() 133 error = xfs_rtmodify_summary(omp, tp, log, bbno, -sum, in xfs_rtcopy_summary() 137 error = xfs_rtmodify_summary(nmp, tp, log, bbno, sum, in xfs_rtcopy_summary() 153 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtallocate_range() argument 170 error = xfs_rtfind_back(mp, tp, start, 0, &preblock); in xfs_rtallocate_range() [all …]
|
D | xfs_trans_extfree.c | 37 xfs_trans_get_efi(xfs_trans_t *tp, in xfs_trans_get_efi() argument 42 ASSERT(tp != NULL); in xfs_trans_get_efi() 45 efip = xfs_efi_init(tp->t_mountp, nextents); in xfs_trans_get_efi() 51 xfs_trans_add_item(tp, &efip->efi_item); in xfs_trans_get_efi() 61 xfs_trans_log_efi_extent(xfs_trans_t *tp, in xfs_trans_log_efi_extent() argument 69 tp->t_flags |= XFS_TRANS_DIRTY; in xfs_trans_log_efi_extent() 92 xfs_trans_get_efd(xfs_trans_t *tp, in xfs_trans_get_efd() argument 98 ASSERT(tp != NULL); in xfs_trans_get_efd() 101 efdp = xfs_efd_init(tp->t_mountp, efip, nextents); in xfs_trans_get_efd() 107 xfs_trans_add_item(tp, &efdp->efd_item); in xfs_trans_get_efd() [all …]
|
D | xfs_symlink.c | 174 struct xfs_trans *tp = NULL; in xfs_symlink() local 225 tp = xfs_trans_alloc(mp, XFS_TRANS_SYMLINK); in xfs_symlink() 235 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_symlink, resblks, 0); in xfs_symlink() 238 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_symlink, 0, 0); in xfs_symlink() 258 error = xfs_trans_reserve_quota(tp, mp, udqp, gdqp, in xfs_symlink() 267 error = xfs_dir_canenter(tp, dp, link_name); in xfs_symlink() 280 error = xfs_dir_ialloc(&tp, dp, S_IFLNK | (mode & ~S_IFMT), 1, 0, in xfs_symlink() 292 xfs_trans_ijoin(tp, dp, XFS_IOLOCK_EXCL | XFS_ILOCK_EXCL); in xfs_symlink() 298 xfs_qm_vop_create_dqattach(tp, ip, udqp, gdqp, pdqp); in xfs_symlink() 317 xfs_trans_log_inode(tp, ip, XFS_ILOG_DDATA | XFS_ILOG_CORE); in xfs_symlink() [all …]
|
D | xfs_trans.h | 136 #define xfs_trans_get_block_res(tp) ((tp)->t_blk_res) argument 137 #define xfs_trans_set_sync(tp) ((tp)->t_flags |= XFS_TRANS_SYNC) argument 140 #define xfs_trans_agblocks_delta(tp, d) ((tp)->t_ag_freeblks_delta += (int64_t)d) argument 141 #define xfs_trans_agflist_delta(tp, d) ((tp)->t_ag_flist_delta += (int64_t)d) argument 142 #define xfs_trans_agbtree_delta(tp, d) ((tp)->t_ag_btree_delta += (int64_t)d) argument 144 #define xfs_trans_agblocks_delta(tp, d) argument 145 #define xfs_trans_agflist_delta(tp, d) argument 146 #define xfs_trans_agbtree_delta(tp, d) argument 158 struct xfs_buf *xfs_trans_get_buf_map(struct xfs_trans *tp, 165 struct xfs_trans *tp, in xfs_trans_get_buf() argument [all …]
|
D | xfs_quota.h | 114 #define xfs_trans_dup_dqinfo(tp, tp2) argument 115 #define xfs_trans_free_dqinfo(tp) argument 116 #define xfs_trans_mod_dquot_byino(tp, ip, fields, delta) argument 117 #define xfs_trans_apply_dquot_deltas(tp) argument 118 #define xfs_trans_unreserve_and_mod_dquots(tp) argument 119 static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp, in xfs_trans_reserve_quota_nblks() argument 124 static inline int xfs_trans_reserve_quota_bydquots(struct xfs_trans *tp, in xfs_trans_reserve_quota_bydquots() argument 131 #define xfs_qm_vop_create_dqattach(tp, ip, u, g, p) argument 133 #define xfs_qm_vop_chown(tp, ip, old, new) (NULL) argument 134 #define xfs_qm_vop_chown_reserve(tp, ip, u, g, p, fl) (0) argument [all …]
|
D | xfs_rtalloc.h | 38 struct xfs_trans *tp, /* transaction pointer */ 54 struct xfs_trans *tp, /* transaction pointer */ 86 struct xfs_trans *tp, /* transaction pointer */ 101 int xfs_rtbuf_get(struct xfs_mount *mp, struct xfs_trans *tp, 103 int xfs_rtcheck_range(struct xfs_mount *mp, struct xfs_trans *tp, 106 int xfs_rtfind_back(struct xfs_mount *mp, struct xfs_trans *tp, 109 int xfs_rtfind_forw(struct xfs_mount *mp, struct xfs_trans *tp, 112 int xfs_rtmodify_range(struct xfs_mount *mp, struct xfs_trans *tp, 114 int xfs_rtmodify_summary_int(struct xfs_mount *mp, struct xfs_trans *tp, 118 int xfs_rtmodify_summary(struct xfs_mount *mp, struct xfs_trans *tp, int log, [all …]
|
D | xfs_bmap_util.c | 99 struct xfs_trans **tp, /* transaction pointer addr */ in xfs_bmap_finish() argument 109 ASSERT((*tp)->t_flags & XFS_TRANS_PERM_LOG_RES); in xfs_bmap_finish() 114 efi = xfs_trans_get_efi(*tp, flist->xbf_count); in xfs_bmap_finish() 116 xfs_trans_log_efi_extent(*tp, efi, free->xbfi_startblock, in xfs_bmap_finish() 119 error = __xfs_trans_roll(tp, NULL, committed); in xfs_bmap_finish() 133 xfs_force_shutdown((*tp)->t_mountp, in xfs_bmap_finish() 149 efd = xfs_trans_get_efd(*tp, efi, flist->xbf_count); in xfs_bmap_finish() 153 error = xfs_trans_free_extent(*tp, efd, free->xbfi_startblock, in xfs_bmap_finish() 211 xfs_trans_ijoin(ap->tp, mp->m_rbmip, XFS_ILOCK_EXCL); in xfs_bmap_rtalloc() 220 error = xfs_rtpick_extent(mp, ap->tp, ralen, &rtx); in xfs_bmap_rtalloc() [all …]
|
D | xfs_qm_syscalls.c | 227 struct xfs_trans *tp; in xfs_qm_scall_trunc_qfile() local 239 tp = xfs_trans_alloc(mp, XFS_TRANS_TRUNCATE_FILE); in xfs_qm_scall_trunc_qfile() 240 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_itruncate, 0, 0); in xfs_qm_scall_trunc_qfile() 242 xfs_trans_cancel(tp); in xfs_qm_scall_trunc_qfile() 248 xfs_trans_ijoin(tp, ip, 0); in xfs_qm_scall_trunc_qfile() 251 xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); in xfs_qm_scall_trunc_qfile() 253 error = xfs_itruncate_extents(&tp, ip, XFS_DATA_FORK, 0); in xfs_qm_scall_trunc_qfile() 255 xfs_trans_cancel(tp); in xfs_qm_scall_trunc_qfile() 261 xfs_trans_ichgtime(tp, ip, XFS_ICHGTIME_MOD | XFS_ICHGTIME_CHG); in xfs_qm_scall_trunc_qfile() 262 error = xfs_trans_commit(tp); in xfs_qm_scall_trunc_qfile() [all …]
|
D | xfs_iomap.c | 129 xfs_trans_t *tp; in xfs_iomap_write_direct() local 198 tp = xfs_trans_alloc(mp, XFS_TRANS_DIOSTRAT); in xfs_iomap_write_direct() 214 tp->t_flags |= XFS_TRANS_RESERVE; in xfs_iomap_write_direct() 216 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_write, in xfs_iomap_write_direct() 222 xfs_trans_cancel(tp); in xfs_iomap_write_direct() 229 error = xfs_trans_reserve_quota_nblks(tp, ip, qblocks, 0, quota_flag); in xfs_iomap_write_direct() 233 xfs_trans_ijoin(tp, ip, 0); in xfs_iomap_write_direct() 241 error = xfs_bmapi_write(tp, ip, offset_fsb, count_fsb, in xfs_iomap_write_direct() 250 error = xfs_bmap_finish(&tp, &free_list, &committed); in xfs_iomap_write_direct() 254 error = xfs_trans_commit(tp); in xfs_iomap_write_direct() [all …]
|
D | xfs_dquot.c | 227 xfs_trans_t *tp, in xfs_qm_init_dquot_blk() argument 237 ASSERT(tp); in xfs_qm_init_dquot_blk() 260 xfs_trans_dquot_buf(tp, bp, in xfs_qm_init_dquot_blk() 264 xfs_trans_log_buf(tp, bp, 0, BBTOB(q->qi_dqchunklen) - 1); in xfs_qm_init_dquot_blk() 311 xfs_trans_t *tp = *tpp; in xfs_qm_dqalloc() local 313 ASSERT(tp != NULL); in xfs_qm_dqalloc() 331 xfs_trans_ijoin(tp, quotip, XFS_ILOCK_EXCL); in xfs_qm_dqalloc() 333 error = xfs_bmapi_write(tp, quotip, offset_fsb, in xfs_qm_dqalloc() 350 bp = xfs_trans_get_buf(tp, mp->m_ddev_targp, in xfs_qm_dqalloc() 364 xfs_qm_init_dquot_blk(tp, mp, be32_to_cpu(dqp->q_core.d_id), in xfs_qm_dqalloc() [all …]
|
D | xfs_log_cil.c | 158 struct xfs_trans *tp, in xlog_cil_insert_format_items() argument 166 if (list_empty(&tp->t_items)) { in xlog_cil_insert_format_items() 171 list_for_each_entry(lidp, &tp->t_items, lid_trans) { in xlog_cil_insert_format_items() 280 struct xfs_trans *tp) in xlog_cil_insert_items() argument 289 ASSERT(tp); in xlog_cil_insert_items() 295 xlog_cil_insert_format_items(log, tp, &len, &diff_iovecs); in xlog_cil_insert_items() 303 list_for_each_entry(lidp, &tp->t_items, lid_trans) { in xlog_cil_insert_items() 324 if (!list_empty(&tp->t_busy)) in xlog_cil_insert_items() 325 list_splice_init(&tp->t_busy, &ctx->busy_extents); in xlog_cil_insert_items() 336 tp->t_ticket->t_curr_res -= ctx->ticket->t_unit_res; in xlog_cil_insert_items() [all …]
|
D | xfs_trans_inode.c | 39 struct xfs_trans *tp, in xfs_trans_ijoin() argument 56 xfs_trans_add_item(tp, &iip->ili_item); in xfs_trans_ijoin() 66 struct xfs_trans *tp, in xfs_trans_ichgtime() argument 73 ASSERT(tp); in xfs_trans_ichgtime() 103 xfs_trans_t *tp, in xfs_trans_log_inode() argument 132 tp->t_flags |= XFS_TRANS_DIRTY; in xfs_trans_log_inode()
|
D | xfs_iops.c | 546 xfs_trans_t *tp; in xfs_setattr_nonsize() local 609 tp = xfs_trans_alloc(mp, XFS_TRANS_SETATTR_NOT_SIZE); in xfs_setattr_nonsize() 610 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_ichange, 0, 0); in xfs_setattr_nonsize() 638 ASSERT(tp); in xfs_setattr_nonsize() 639 error = xfs_qm_vop_chown_reserve(tp, ip, udqp, gdqp, in xfs_setattr_nonsize() 647 xfs_trans_ijoin(tp, ip, 0); in xfs_setattr_nonsize() 671 olddquot1 = xfs_qm_vop_chown(tp, ip, in xfs_setattr_nonsize() 683 olddquot2 = xfs_qm_vop_chown(tp, ip, in xfs_setattr_nonsize() 696 xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); in xfs_setattr_nonsize() 701 xfs_trans_set_sync(tp); in xfs_setattr_nonsize() [all …]
|
D | xfs_pnfs.c | 262 struct xfs_trans *tp; in xfs_fs_commit_blocks() local 311 tp = xfs_trans_alloc(mp, XFS_TRANS_SETATTR_NOT_SIZE); in xfs_fs_commit_blocks() 312 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_ichange, 0, 0); in xfs_fs_commit_blocks() 314 xfs_trans_cancel(tp); in xfs_fs_commit_blocks() 319 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_fs_commit_blocks() 320 xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); in xfs_fs_commit_blocks() 328 xfs_trans_set_sync(tp); in xfs_fs_commit_blocks() 329 error = xfs_trans_commit(tp); in xfs_fs_commit_blocks()
|
D | xfs_fsops.c | 166 xfs_trans_t *tp; in xfs_growfs_data_private() local 201 tp = xfs_trans_alloc(mp, XFS_TRANS_GROWFS); in xfs_growfs_data_private() 202 tp->t_flags |= XFS_TRANS_RESERVE; in xfs_growfs_data_private() 203 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_growdata, in xfs_growfs_data_private() 206 xfs_trans_cancel(tp); in xfs_growfs_data_private() 437 xfs_trans_agblocks_delta(tp, nfree); in xfs_growfs_data_private() 445 error = xfs_ialloc_read_agi(mp, tp, agno, &bp); in xfs_growfs_data_private() 454 xfs_ialloc_log_agi(tp, bp, XFS_AGI_LENGTH); in xfs_growfs_data_private() 458 error = xfs_alloc_read_agf(mp, tp, agno, 0, &bp); in xfs_growfs_data_private() 468 xfs_alloc_log_agf(tp, bp, XFS_AGF_LENGTH); in xfs_growfs_data_private() [all …]
|
D | xfs_ioctl.c | 328 xfs_trans_t *tp; in xfs_set_dmattrs() local 337 tp = xfs_trans_alloc(mp, XFS_TRANS_SET_DMATTRS); in xfs_set_dmattrs() 338 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_ichange, 0, 0); in xfs_set_dmattrs() 340 xfs_trans_cancel(tp); in xfs_set_dmattrs() 344 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_set_dmattrs() 349 xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); in xfs_set_dmattrs() 350 error = xfs_trans_commit(tp); in xfs_set_dmattrs() 1011 struct xfs_trans *tp, in xfs_ioctl_setattr_xflags() argument 1040 xfs_trans_ichgtime(tp, ip, XFS_ICHGTIME_CHG); in xfs_ioctl_setattr_xflags() 1041 xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); in xfs_ioctl_setattr_xflags() [all …]
|
D | xfs_icreate_item.c | 161 struct xfs_trans *tp, in xfs_icreate_log() argument 173 xfs_log_item_init(tp->t_mountp, &icp->ic_item, XFS_LI_ICREATE, in xfs_icreate_log() 185 xfs_trans_add_item(tp, &icp->ic_item); in xfs_icreate_log() 186 tp->t_flags |= XFS_TRANS_DIRTY; in xfs_icreate_log()
|
D | xfs_extent_busy.c | 36 struct xfs_trans *tp, in xfs_extent_busy_insert() argument 55 trace_xfs_extent_busy_enomem(tp->t_mountp, agno, bno, len); in xfs_extent_busy_insert() 56 xfs_trans_set_sync(tp); in xfs_extent_busy_insert() 67 trace_xfs_extent_busy(tp->t_mountp, agno, bno, len); in xfs_extent_busy_insert() 69 pag = xfs_perag_get(tp->t_mountp, new->agno); in xfs_extent_busy_insert() 90 list_add(&new->list, &tp->t_busy); in xfs_extent_busy_insert()
|
D | xfs_qm.c | 719 xfs_trans_t *tp; in xfs_qm_qino_alloc() local 755 tp = xfs_trans_alloc(mp, XFS_TRANS_QM_QINOCREATE); in xfs_qm_qino_alloc() 756 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_create, in xfs_qm_qino_alloc() 759 xfs_trans_cancel(tp); in xfs_qm_qino_alloc() 764 error = xfs_dir_ialloc(&tp, NULL, S_IFREG, 1, 0, 0, 1, ip, in xfs_qm_qino_alloc() 767 xfs_trans_cancel(tp); in xfs_qm_qino_alloc() 796 xfs_log_sb(tp); in xfs_qm_qino_alloc() 798 error = xfs_trans_commit(tp); in xfs_qm_qino_alloc() 1744 xfs_trans_t *tp, in xfs_qm_vop_chown() argument 1762 xfs_trans_mod_dquot(tp, prevdq, bfield, -(ip->i_d.di_nblocks)); in xfs_qm_vop_chown() [all …]
|
D | xfs_bmap_util.h | 34 int xfs_bmap_count_blocks(struct xfs_trans *tp, struct xfs_inode *ip, 53 int xfs_bmap_last_extent(struct xfs_trans *tp, struct xfs_inode *ip,
|
D | xfs_aops.c | 105 struct xfs_trans *tp; in xfs_setfilesize_trans_alloc() local 108 tp = xfs_trans_alloc(mp, XFS_TRANS_FSYNC_TS); in xfs_setfilesize_trans_alloc() 110 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_fsyncts, 0, 0); in xfs_setfilesize_trans_alloc() 112 xfs_trans_cancel(tp); in xfs_setfilesize_trans_alloc() 116 ioend->io_append_trans = tp; in xfs_setfilesize_trans_alloc() 127 current_restore_flags_nested(&tp->t_pflags, PF_FSTRANS); in xfs_setfilesize_trans_alloc() 137 struct xfs_trans *tp, in xfs_setfilesize() argument 147 xfs_trans_cancel(tp); in xfs_setfilesize() 154 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_setfilesize() 155 xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); in xfs_setfilesize() [all …]
|
D | xfs_trans_priv.h | 32 void xfs_trans_free_items(struct xfs_trans *tp, xfs_lsn_t commit_lsn, 34 void xfs_trans_unreserve_and_mod_sb(struct xfs_trans *tp);
|
D | xfs_icreate_item.h | 29 void xfs_icreate_log(struct xfs_trans *tp, xfs_agnumber_t agno,
|
/linux-4.4.14/drivers/sbus/char/ |
D | bbc_envctrl.c | 119 static void get_current_temps(struct bbc_cpu_temperature *tp) in get_current_temps() argument 121 tp->prev_amb_temp = tp->curr_amb_temp; in get_current_temps() 122 bbc_i2c_readb(tp->client, in get_current_temps() 123 (unsigned char *) &tp->curr_amb_temp, in get_current_temps() 125 tp->prev_cpu_temp = tp->curr_cpu_temp; in get_current_temps() 126 bbc_i2c_readb(tp->client, in get_current_temps() 127 (unsigned char *) &tp->curr_cpu_temp, in get_current_temps() 131 tp->index, in get_current_temps() 132 (int) tp->curr_cpu_temp, (int) tp->curr_amb_temp); in get_current_temps() 137 static void do_envctrl_shutdown(struct bbc_cpu_temperature *tp) in do_envctrl_shutdown() argument [all …]
|
/linux-4.4.14/drivers/net/ethernet/dec/tulip/ |
D | pnic2.c | 82 struct tulip_private *tp = netdev_priv(dev); in pnic2_timer() local 83 void __iomem *ioaddr = tp->base_addr; in pnic2_timer() 91 mod_timer(&tp->timer, RUN_AT(next_tick)); in pnic2_timer() 98 struct tulip_private *tp = netdev_priv(dev); in pnic2_start_nway() local 99 void __iomem *ioaddr = tp->base_addr; in pnic2_start_nway() 111 if (tp->sym_advertise & 0x0100) csr14 |= 0x00020000; in pnic2_start_nway() 114 if (tp->sym_advertise & 0x0080) csr14 |= 0x00010000; in pnic2_start_nway() 117 if (tp->sym_advertise & 0x0020) csr14 |= 0x00000040; in pnic2_start_nway() 130 tp->nway = tp->mediasense = 1; in pnic2_start_nway() 131 tp->nwayset = tp->lpar = 0; in pnic2_start_nway() [all …]
|
D | interrupt.c | 61 struct tulip_private *tp = netdev_priv(dev); in tulip_refill_rx() local 66 for (; tp->cur_rx - tp->dirty_rx > 0; tp->dirty_rx++) { in tulip_refill_rx() 67 entry = tp->dirty_rx % RX_RING_SIZE; in tulip_refill_rx() 68 if (tp->rx_buffers[entry].skb == NULL) { in tulip_refill_rx() 72 skb = tp->rx_buffers[entry].skb = in tulip_refill_rx() 77 mapping = pci_map_single(tp->pdev, skb->data, PKT_BUF_SZ, in tulip_refill_rx() 79 if (dma_mapping_error(&tp->pdev->dev, mapping)) { in tulip_refill_rx() 81 tp->rx_buffers[entry].skb = NULL; in tulip_refill_rx() 85 tp->rx_buffers[entry].mapping = mapping; in tulip_refill_rx() 87 tp->rx_ring[entry].buffer1 = cpu_to_le32(mapping); in tulip_refill_rx() [all …]
|
D | tulip_core.c | 129 struct tulip_private *tp = netdev_priv(dev); in tulip_timer() local 132 schedule_work(&tp->media_work); in tulip_timer() 275 static void tulip_set_power_state (struct tulip_private *tp, in tulip_set_power_state() argument 278 if (tp->flags & HAS_ACPI) { in tulip_set_power_state() 280 pci_read_config_dword (tp->pdev, CFDD, &tmp); in tulip_set_power_state() 287 pci_write_config_dword (tp->pdev, CFDD, newtmp); in tulip_set_power_state() 295 struct tulip_private *tp = netdev_priv(dev); in tulip_up() local 296 void __iomem *ioaddr = tp->base_addr; in tulip_up() 302 napi_enable(&tp->napi); in tulip_up() 306 tulip_set_power_state (tp, 0, 0); in tulip_up() [all …]
|
D | 21142.c | 30 struct tulip_private *tp = in t21142_media_task() local 32 struct net_device *dev = tp->dev; in t21142_media_task() 33 void __iomem *ioaddr = tp->base_addr; in t21142_media_task() 53 } else if (tp->nwayset) { in t21142_media_task() 59 } else if (tp->medialock) { in t21142_media_task() 95 if (new_csr6 != (tp->csr6 & ~0x00D5)) { in t21142_media_task() 96 tp->csr6 &= 0x00D5; in t21142_media_task() 97 tp->csr6 |= new_csr6; in t21142_media_task() 99 tulip_restart_rxtx(tp); in t21142_media_task() 107 mod_timer(&tp->timer, RUN_AT(next_tick)); in t21142_media_task() [all …]
|
D | timer.c | 19 struct tulip_private *tp = in tulip_media_task() local 21 struct net_device *dev = tp->dev; in tulip_media_task() 22 void __iomem *ioaddr = tp->base_addr; in tulip_media_task() 34 switch (tp->chip_id) { in tulip_media_task() 43 if (tp->mtable == NULL) { /* No EEPROM info, use generic code. */ in tulip_media_task() 53 mleaf = &tp->mtable->mleaf[tp->cur_index]; in tulip_media_task() 87 if (tp->medialock) in tulip_media_task() 90 if (--tp->cur_index < 0) { in tulip_media_task() 92 tp->cur_index = tp->mtable->leafcount - 1; in tulip_media_task() 94 dev->if_port = tp->mtable->mleaf[tp->cur_index].media; in tulip_media_task() [all …]
|
D | media.c | 49 struct tulip_private *tp = netdev_priv(dev); in tulip_mdio_read() local 53 void __iomem *ioaddr = tp->base_addr; in tulip_mdio_read() 60 if (tp->chip_id == COMET && phy_id == 30) { in tulip_mdio_read() 66 spin_lock_irqsave(&tp->mii_lock, flags); in tulip_mdio_read() 67 if (tp->chip_id == LC82C168) { in tulip_mdio_read() 76 spin_unlock_irqrestore(&tp->mii_lock, flags); in tulip_mdio_read() 105 spin_unlock_irqrestore(&tp->mii_lock, flags); in tulip_mdio_read() 111 struct tulip_private *tp = netdev_priv(dev); in tulip_mdio_write() local 114 void __iomem *ioaddr = tp->base_addr; in tulip_mdio_write() 121 if (tp->chip_id == COMET && phy_id == 30) { in tulip_mdio_write() [all …]
|
D | pnic.c | 21 struct tulip_private *tp = netdev_priv(dev); in pnic_do_nway() local 22 void __iomem *ioaddr = tp->base_addr; in pnic_do_nway() 24 u32 new_csr6 = tp->csr6 & ~0x40C40200; in pnic_do_nway() 31 tp->nwayset = 1; in pnic_do_nway() 37 tp->full_duplex = 1; in pnic_do_nway() 43 if (tp->csr6 != new_csr6) { in pnic_do_nway() 44 tp->csr6 = new_csr6; in pnic_do_nway() 46 tulip_restart_rxtx(tp); in pnic_do_nway() 54 struct tulip_private *tp = netdev_priv(dev); in pnic_lnk_change() local 55 void __iomem *ioaddr = tp->base_addr; in pnic_lnk_change() [all …]
|
D | eeprom.c | 104 static void tulip_build_fake_mediatable(struct tulip_private *tp) in tulip_build_fake_mediatable() argument 107 if (tp->flags & NEEDS_FAKE_MEDIA_TABLE) { in tulip_build_fake_mediatable() 120 tp->mtable = kmalloc(sizeof(struct mediatable) + in tulip_build_fake_mediatable() 123 if (tp->mtable == NULL) in tulip_build_fake_mediatable() 126 tp->mtable->defaultmedia = 0x800; in tulip_build_fake_mediatable() 127 tp->mtable->leafcount = 1; in tulip_build_fake_mediatable() 128 tp->mtable->csr12dir = 0x3f; /* inputs on bit7 for hsc-pci, bit6 for pci-fx */ in tulip_build_fake_mediatable() 129 tp->mtable->has_nonmii = 0; in tulip_build_fake_mediatable() 130 tp->mtable->has_reset = 0; in tulip_build_fake_mediatable() 131 tp->mtable->has_mii = 1; in tulip_build_fake_mediatable() [all …]
|
D | tulip.h | 522 static inline void tulip_start_rxtx(struct tulip_private *tp) in tulip_start_rxtx() argument 524 void __iomem *ioaddr = tp->base_addr; in tulip_start_rxtx() 525 iowrite32(tp->csr6 | RxTx, ioaddr + CSR6); in tulip_start_rxtx() 530 static inline void tulip_stop_rxtx(struct tulip_private *tp) in tulip_stop_rxtx() argument 532 void __iomem *ioaddr = tp->base_addr; in tulip_stop_rxtx() 547 netdev_dbg(tp->dev, "tulip_stop_rxtx() failed (CSR5 0x%x CSR6 0x%x)\n", in tulip_stop_rxtx() 553 static inline void tulip_restart_rxtx(struct tulip_private *tp) in tulip_restart_rxtx() argument 555 tulip_stop_rxtx(tp); in tulip_restart_rxtx() 557 tulip_start_rxtx(tp); in tulip_restart_rxtx() 560 static inline void tulip_tx_timeout_complete(struct tulip_private *tp, void __iomem *ioaddr) in tulip_tx_timeout_complete() argument [all …]
|
/linux-4.4.14/net/ipv4/ |
D | tcp_input.c | 210 static void tcp_ecn_queue_cwr(struct tcp_sock *tp) in tcp_ecn_queue_cwr() argument 212 if (tp->ecn_flags & TCP_ECN_OK) in tcp_ecn_queue_cwr() 213 tp->ecn_flags |= TCP_ECN_QUEUE_CWR; in tcp_ecn_queue_cwr() 216 static void tcp_ecn_accept_cwr(struct tcp_sock *tp, const struct sk_buff *skb) in tcp_ecn_accept_cwr() argument 219 tp->ecn_flags &= ~TCP_ECN_DEMAND_CWR; in tcp_ecn_accept_cwr() 222 static void tcp_ecn_withdraw_cwr(struct tcp_sock *tp) in tcp_ecn_withdraw_cwr() argument 224 tp->ecn_flags &= ~TCP_ECN_DEMAND_CWR; in tcp_ecn_withdraw_cwr() 227 static void __tcp_ecn_check_ce(struct tcp_sock *tp, const struct sk_buff *skb) in __tcp_ecn_check_ce() argument 235 if (tp->ecn_flags & TCP_ECN_SEEN) in __tcp_ecn_check_ce() 236 tcp_enter_quickack_mode((struct sock *)tp); in __tcp_ecn_check_ce() [all …]
|
D | tcp_output.c | 75 struct tcp_sock *tp = tcp_sk(sk); in tcp_event_new_data_sent() local 76 unsigned int prior_packets = tp->packets_out; in tcp_event_new_data_sent() 79 tp->snd_nxt = TCP_SKB_CB(skb)->end_seq; in tcp_event_new_data_sent() 81 tp->packets_out += tcp_skb_pcount(skb); in tcp_event_new_data_sent() 99 const struct tcp_sock *tp = tcp_sk(sk); in tcp_acceptable_seq() local 101 if (!before(tcp_wnd_end(tp), tp->snd_nxt)) in tcp_acceptable_seq() 102 return tp->snd_nxt; in tcp_acceptable_seq() 104 return tcp_wnd_end(tp); in tcp_acceptable_seq() 123 struct tcp_sock *tp = tcp_sk(sk); in tcp_advertise_mss() local 125 int mss = tp->advmss; in tcp_advertise_mss() [all …]
|
D | tcp.c | 383 struct tcp_sock *tp = tcp_sk(sk); in tcp_init_sock() local 385 __skb_queue_head_init(&tp->out_of_order_queue); in tcp_init_sock() 387 tcp_prequeue_init(tp); in tcp_init_sock() 388 INIT_LIST_HEAD(&tp->tsq_node); in tcp_init_sock() 391 tp->mdev_us = jiffies_to_usecs(TCP_TIMEOUT_INIT); in tcp_init_sock() 392 tp->rtt_min[0].rtt = ~0U; in tcp_init_sock() 399 tp->snd_cwnd = TCP_INIT_CWND; in tcp_init_sock() 404 tp->snd_ssthresh = TCP_INFINITE_SSTHRESH; in tcp_init_sock() 405 tp->snd_cwnd_clamp = ~0; in tcp_init_sock() 406 tp->mss_cache = TCP_MSS_DEFAULT; in tcp_init_sock() [all …]
|
D | tcp_yeah.c | 44 struct tcp_sock *tp = tcp_sk(sk); in tcp_yeah_init() local 56 tp->snd_cwnd_clamp = min_t(u32, tp->snd_cwnd_clamp, 0xffffffff/128); in tcp_yeah_init() 72 struct tcp_sock *tp = tcp_sk(sk); in tcp_yeah_cong_avoid() local 78 if (tp->snd_cwnd <= tp->snd_ssthresh) in tcp_yeah_cong_avoid() 79 tcp_slow_start(tp, acked); in tcp_yeah_cong_avoid() 84 tp->snd_cwnd_cnt += yeah->pkts_acked; in tcp_yeah_cong_avoid() 85 if (tp->snd_cwnd_cnt > min(tp->snd_cwnd, TCP_SCALABLE_AI_CNT)) { in tcp_yeah_cong_avoid() 86 if (tp->snd_cwnd < tp->snd_cwnd_clamp) in tcp_yeah_cong_avoid() 87 tp->snd_cwnd++; in tcp_yeah_cong_avoid() 88 tp->snd_cwnd_cnt = 0; in tcp_yeah_cong_avoid() [all …]
|
D | tcp_highspeed.c | 101 struct tcp_sock *tp = tcp_sk(sk); in hstcp_init() local 108 tp->snd_cwnd_clamp = min_t(u32, tp->snd_cwnd_clamp, 0xffffffff/128); in hstcp_init() 113 struct tcp_sock *tp = tcp_sk(sk); in hstcp_cong_avoid() local 119 if (tcp_in_slow_start(tp)) in hstcp_cong_avoid() 120 tcp_slow_start(tp, acked); in hstcp_cong_avoid() 129 if (tp->snd_cwnd > hstcp_aimd_vals[ca->ai].cwnd) { in hstcp_cong_avoid() 130 while (tp->snd_cwnd > hstcp_aimd_vals[ca->ai].cwnd && in hstcp_cong_avoid() 133 } else if (ca->ai && tp->snd_cwnd <= hstcp_aimd_vals[ca->ai-1].cwnd) { in hstcp_cong_avoid() 134 while (ca->ai && tp->snd_cwnd <= hstcp_aimd_vals[ca->ai-1].cwnd) in hstcp_cong_avoid() 139 if (tp->snd_cwnd < tp->snd_cwnd_clamp) { in hstcp_cong_avoid() [all …]
|
D | tcp_recovery.c | 24 struct tcp_sock *tp = tcp_sk(sk); in tcp_rack_mark_lost() local 26 u32 reo_wnd, prior_retrans = tp->retrans_out; in tcp_rack_mark_lost() 28 if (inet_csk(sk)->icsk_ca_state < TCP_CA_Recovery || !tp->rack.advanced) in tcp_rack_mark_lost() 32 tp->rack.advanced = 0; in tcp_rack_mark_lost() 43 if (tp->rack.reord && tcp_min_rtt(tp) != ~0U) in tcp_rack_mark_lost() 44 reo_wnd = max(tcp_min_rtt(tp) >> 2, reo_wnd); in tcp_rack_mark_lost() 53 if (!after(scb->end_seq, tp->snd_una) || in tcp_rack_mark_lost() 57 if (skb_mstamp_after(&tp->rack.mstamp, &skb->skb_mstamp)) { in tcp_rack_mark_lost() 59 if (skb_mstamp_us_delta(&tp->rack.mstamp, in tcp_rack_mark_lost() 64 tcp_skb_mark_lost_uncond_verify(tp, skb); in tcp_rack_mark_lost() [all …]
|
D | tcp_vegas.c | 72 const struct tcp_sock *tp = tcp_sk(sk); in vegas_enable() local 79 vegas->beg_snd_nxt = tp->snd_nxt; in vegas_enable() 159 static inline u32 tcp_vegas_ssthresh(struct tcp_sock *tp) in tcp_vegas_ssthresh() argument 161 return min(tp->snd_ssthresh, tp->snd_cwnd-1); in tcp_vegas_ssthresh() 166 struct tcp_sock *tp = tcp_sk(sk); in tcp_vegas_cong_avoid() local 180 vegas->beg_snd_nxt = tp->snd_nxt; in tcp_vegas_cong_avoid() 219 target_cwnd = (u64)tp->snd_cwnd * vegas->baseRTT; in tcp_vegas_cong_avoid() 226 diff = tp->snd_cwnd * (rtt-vegas->baseRTT) / vegas->baseRTT; in tcp_vegas_cong_avoid() 228 if (diff > gamma && tcp_in_slow_start(tp)) { in tcp_vegas_cong_avoid() 240 tp->snd_cwnd = min(tp->snd_cwnd, (u32)target_cwnd+1); in tcp_vegas_cong_avoid() [all …]
|
D | tcp_hybla.c | 47 struct tcp_sock *tp = tcp_sk(sk); in hybla_init() local 56 tp->snd_cwnd = 2; in hybla_init() 57 tp->snd_cwnd_clamp = 65535; in hybla_init() 63 ca->minrtt_us = tp->srtt_us; in hybla_init() 64 tp->snd_cwnd = ca->rho; in hybla_init() 91 struct tcp_sock *tp = tcp_sk(sk); in hybla_cong_avoid() local 97 if (tp->srtt_us < ca->minrtt_us) { in hybla_cong_avoid() 99 ca->minrtt_us = tp->srtt_us; in hybla_cong_avoid() 115 if (tcp_in_slow_start(tp)) { in hybla_cong_avoid() 139 increment = ca->rho2_7ls / tp->snd_cwnd; in hybla_cong_avoid() [all …]
|
D | tcp_veno.c | 119 struct tcp_sock *tp = tcp_sk(sk); in tcp_veno_cong_avoid() local 147 target_cwnd = (u64)tp->snd_cwnd * veno->basertt; in tcp_veno_cong_avoid() 151 veno->diff = (tp->snd_cwnd << V_PARAM_SHIFT) - target_cwnd; in tcp_veno_cong_avoid() 153 if (tcp_in_slow_start(tp)) { in tcp_veno_cong_avoid() 155 tcp_slow_start(tp, acked); in tcp_veno_cong_avoid() 162 tcp_cong_avoid_ai(tp, tp->snd_cwnd, 1); in tcp_veno_cong_avoid() 167 if (tp->snd_cwnd_cnt >= tp->snd_cwnd) { in tcp_veno_cong_avoid() 169 tp->snd_cwnd < tp->snd_cwnd_clamp) { in tcp_veno_cong_avoid() 170 tp->snd_cwnd++; in tcp_veno_cong_avoid() 174 tp->snd_cwnd_cnt = 0; in tcp_veno_cong_avoid() [all …]
|
D | tcp_dctcp.c | 76 static void dctcp_reset(const struct tcp_sock *tp, struct dctcp *ca) in dctcp_reset() argument 78 ca->next_seq = tp->snd_nxt; in dctcp_reset() 86 const struct tcp_sock *tp = tcp_sk(sk); in dctcp_init() local 88 if ((tp->ecn_flags & TCP_ECN_OK) || in dctcp_init() 93 ca->prior_snd_una = tp->snd_una; in dctcp_init() 94 ca->prior_rcv_nxt = tp->rcv_nxt; in dctcp_init() 101 dctcp_reset(tp, ca); in dctcp_init() 115 struct tcp_sock *tp = tcp_sk(sk); in dctcp_ssthresh() local 117 return max(tp->snd_cwnd - ((tp->snd_cwnd * ca->dctcp_alpha) >> 11U), 2U); in dctcp_ssthresh() 129 struct tcp_sock *tp = tcp_sk(sk); in dctcp_ce_state_0_to_1() local [all …]
|
D | tcp_timer.c | 57 struct tcp_sock *tp = tcp_sk(sk); in tcp_out_of_resources() local 62 if ((s32)(tcp_time_stamp - tp->lsndtime) > 2*TCP_RTO_MAX || !do_reset) in tcp_out_of_resources() 72 if ((s32)(tcp_time_stamp - tp->lsndtime) <= TCP_TIMEWAIT_LEN || in tcp_out_of_resources() 74 (!tp->snd_wnd && !tp->packets_out)) in tcp_out_of_resources() 114 struct tcp_sock *tp = tcp_sk(sk); in tcp_mtu_probing() local 119 mss = max(mss, 68 - tp->tcp_header_len); in tcp_mtu_probing() 162 struct tcp_sock *tp = tcp_sk(sk); in tcp_write_timeout() local 169 if (tp->syn_fastopen || tp->syn_data) in tcp_write_timeout() 171 if (tp->syn_data && icsk->icsk_retransmits == 1) in tcp_write_timeout() 184 if (tp->syn_data_acked && in tcp_write_timeout() [all …]
|
D | tcp_cdg.c | 141 struct tcp_sock *tp = tcp_sk(sk); in tcp_cdg_hystart_update() local 162 tp->snd_cwnd); in tcp_cdg_hystart_update() 163 tp->snd_ssthresh = tp->snd_cwnd; in tcp_cdg_hystart_update() 181 tp->snd_cwnd); in tcp_cdg_hystart_update() 182 tp->snd_ssthresh = tp->snd_cwnd; in tcp_cdg_hystart_update() 242 struct tcp_sock *tp = tcp_sk(sk); in tcp_cdg_backoff() local 253 ca->shadow_wnd = max(ca->shadow_wnd, tp->snd_cwnd); in tcp_cdg_backoff() 263 struct tcp_sock *tp = tcp_sk(sk); in tcp_cdg_cong_avoid() local 267 if (tcp_in_slow_start(tp) && hystart_detect) in tcp_cdg_cong_avoid() 275 ca->rtt_seq = tp->snd_nxt; in tcp_cdg_cong_avoid() [all …]
|
D | tcp_cong.c | 377 u32 tcp_slow_start(struct tcp_sock *tp, u32 acked) in tcp_slow_start() argument 379 u32 cwnd = min(tp->snd_cwnd + acked, tp->snd_ssthresh); in tcp_slow_start() 381 acked -= cwnd - tp->snd_cwnd; in tcp_slow_start() 382 tp->snd_cwnd = min(cwnd, tp->snd_cwnd_clamp); in tcp_slow_start() 391 void tcp_cong_avoid_ai(struct tcp_sock *tp, u32 w, u32 acked) in tcp_cong_avoid_ai() argument 394 if (tp->snd_cwnd_cnt >= w) { in tcp_cong_avoid_ai() 395 tp->snd_cwnd_cnt = 0; in tcp_cong_avoid_ai() 396 tp->snd_cwnd++; in tcp_cong_avoid_ai() 399 tp->snd_cwnd_cnt += acked; in tcp_cong_avoid_ai() 400 if (tp->snd_cwnd_cnt >= w) { in tcp_cong_avoid_ai() [all …]
|
D | tcp_scalable.c | 20 struct tcp_sock *tp = tcp_sk(sk); in tcp_scalable_cong_avoid() local 25 if (tcp_in_slow_start(tp)) in tcp_scalable_cong_avoid() 26 tcp_slow_start(tp, acked); in tcp_scalable_cong_avoid() 28 tcp_cong_avoid_ai(tp, min(tp->snd_cwnd, TCP_SCALABLE_AI_CNT), in tcp_scalable_cong_avoid() 34 const struct tcp_sock *tp = tcp_sk(sk); in tcp_scalable_ssthresh() local 36 return max(tp->snd_cwnd - (tp->snd_cwnd>>TCP_SCALABLE_MD_SCALE), 2U); in tcp_scalable_ssthresh()
|
D | tcp_lp.c | 135 struct tcp_sock *tp = tcp_sk(sk); in tcp_lp_remote_hz_estimator() local 146 if (tp->rx_opt.rcv_tsval == lp->remote_ref_time || in tcp_lp_remote_hz_estimator() 147 tp->rx_opt.rcv_tsecr == lp->local_ref_time) in tcp_lp_remote_hz_estimator() 150 m = HZ * (tp->rx_opt.rcv_tsval - in tcp_lp_remote_hz_estimator() 151 lp->remote_ref_time) / (tp->rx_opt.rcv_tsecr - in tcp_lp_remote_hz_estimator() 170 lp->remote_ref_time = tp->rx_opt.rcv_tsval; in tcp_lp_remote_hz_estimator() 171 lp->local_ref_time = tp->rx_opt.rcv_tsecr; in tcp_lp_remote_hz_estimator() 188 struct tcp_sock *tp = tcp_sk(sk); in tcp_lp_owd_calculator() local 196 tp->rx_opt.rcv_tsval * (LP_RESOL / lp->remote_hz) - in tcp_lp_owd_calculator() 197 tp->rx_opt.rcv_tsecr * (LP_RESOL / HZ); in tcp_lp_owd_calculator() [all …]
|
D | tcp_bic.c | 143 struct tcp_sock *tp = tcp_sk(sk); in bictcp_cong_avoid() local 149 if (tcp_in_slow_start(tp)) in bictcp_cong_avoid() 150 tcp_slow_start(tp, acked); in bictcp_cong_avoid() 152 bictcp_update(ca, tp->snd_cwnd); in bictcp_cong_avoid() 153 tcp_cong_avoid_ai(tp, ca->cnt, 1); in bictcp_cong_avoid() 163 const struct tcp_sock *tp = tcp_sk(sk); in bictcp_recalc_ssthresh() local 169 if (tp->snd_cwnd < ca->last_max_cwnd && fast_convergence) in bictcp_recalc_ssthresh() 170 ca->last_max_cwnd = (tp->snd_cwnd * (BICTCP_BETA_SCALE + beta)) in bictcp_recalc_ssthresh() 173 ca->last_max_cwnd = tp->snd_cwnd; in bictcp_recalc_ssthresh() 175 ca->loss_cwnd = tp->snd_cwnd; in bictcp_recalc_ssthresh() [all …]
|
D | tcp_illinois.c | 58 struct tcp_sock *tp = tcp_sk(sk); in rtt_reset() local 61 ca->end_seq = tp->snd_nxt; in rtt_reset() 222 struct tcp_sock *tp = tcp_sk(sk); in update_params() local 225 if (tp->snd_cwnd < win_thresh) { in update_params() 260 struct tcp_sock *tp = tcp_sk(sk); in tcp_illinois_cong_avoid() local 271 if (tcp_in_slow_start(tp)) in tcp_illinois_cong_avoid() 272 tcp_slow_start(tp, acked); in tcp_illinois_cong_avoid() 278 tp->snd_cwnd_cnt += ca->acked; in tcp_illinois_cong_avoid() 284 delta = (tp->snd_cwnd_cnt * ca->alpha) >> ALPHA_SHIFT; in tcp_illinois_cong_avoid() 285 if (delta >= tp->snd_cwnd) { in tcp_illinois_cong_avoid() [all …]
|
D | tcp_westwood.c | 163 const struct tcp_sock *tp = tcp_sk(sk); in westwood_fast_bw() local 168 w->bk += tp->snd_una - w->snd_una; in westwood_fast_bw() 169 w->snd_una = tp->snd_una; in westwood_fast_bw() 180 const struct tcp_sock *tp = tcp_sk(sk); in westwood_acked_count() local 183 w->cumul_ack = tp->snd_una - w->snd_una; in westwood_acked_count() 189 w->accounted += tp->mss_cache; in westwood_acked_count() 190 w->cumul_ack = tp->mss_cache; in westwood_acked_count() 193 if (w->cumul_ack > tp->mss_cache) { in westwood_acked_count() 197 w->cumul_ack = tp->mss_cache; in westwood_acked_count() 204 w->snd_una = tp->snd_una; in westwood_acked_count() [all …]
|
D | tcp_cubic.c | 131 struct tcp_sock *tp = tcp_sk(sk); in bictcp_hystart_reset() local 135 ca->end_seq = tp->snd_nxt; in bictcp_hystart_reset() 338 struct tcp_sock *tp = tcp_sk(sk); in bictcp_cong_avoid() local 344 if (tcp_in_slow_start(tp)) { in bictcp_cong_avoid() 347 acked = tcp_slow_start(tp, acked); in bictcp_cong_avoid() 351 bictcp_update(ca, tp->snd_cwnd, acked); in bictcp_cong_avoid() 352 tcp_cong_avoid_ai(tp, ca->cnt, acked); in bictcp_cong_avoid() 357 const struct tcp_sock *tp = tcp_sk(sk); in bictcp_recalc_ssthresh() local 363 if (tp->snd_cwnd < ca->last_max_cwnd && fast_convergence) in bictcp_recalc_ssthresh() 364 ca->last_max_cwnd = (tp->snd_cwnd * (BICTCP_BETA_SCALE + beta)) in bictcp_recalc_ssthresh() [all …]
|
D | tcp_metrics.c | 371 struct tcp_sock *tp = tcp_sk(sk); in tcp_update_metrics() local 384 if (icsk->icsk_backoff || !tp->srtt_us) { in tcp_update_metrics() 400 m = rtt - tp->srtt_us; in tcp_update_metrics() 408 rtt = tp->srtt_us; in tcp_update_metrics() 422 if (m < tp->mdev_us) in tcp_update_metrics() 423 m = tp->mdev_us; in tcp_update_metrics() 434 if (tcp_in_initial_slowstart(tp)) { in tcp_update_metrics() 438 if (val && (tp->snd_cwnd >> 1) > val) in tcp_update_metrics() 440 tp->snd_cwnd >> 1); in tcp_update_metrics() 444 if (tp->snd_cwnd > val) in tcp_update_metrics() [all …]
|
D | tcp_htcp.c | 69 const struct tcp_sock *tp = tcp_sk(sk); in htcp_cwnd_undo() local 79 return max(tp->snd_cwnd, (tp->snd_ssthresh << 7) / ca->beta); in htcp_cwnd_undo() 105 const struct tcp_sock *tp = tcp_sk(sk); in measure_achieved_throughput() local 127 if (ca->packetcount >= tp->snd_cwnd - (ca->alpha >> 7 ? : 1) && in measure_achieved_throughput() 224 const struct tcp_sock *tp = tcp_sk(sk); in htcp_recalc_ssthresh() local 228 return max((tp->snd_cwnd * ca->beta) >> 7, 2U); in htcp_recalc_ssthresh() 233 struct tcp_sock *tp = tcp_sk(sk); in htcp_cong_avoid() local 239 if (tcp_in_slow_start(tp)) in htcp_cong_avoid() 240 tcp_slow_start(tp, acked); in htcp_cong_avoid() 245 if ((tp->snd_cwnd_cnt * ca->alpha)>>7 >= tp->snd_cwnd) { in htcp_cong_avoid() [all …]
|
D | fib_trie.c | 178 static inline void node_set_parent(struct key_vector *n, struct key_vector *tp) in node_set_parent() argument 181 rcu_assign_pointer(tn_info(n)->parent, tp); in node_set_parent() 442 static inline void put_child_root(struct key_vector *tp, t_key key, in put_child_root() argument 445 if (IS_TRIE(tp)) in put_child_root() 446 rcu_assign_pointer(tp->tnode[0], n); in put_child_root() 448 put_child(tp, get_index(key, tp), n); in put_child_root() 485 struct key_vector *tp = node_parent(oldtnode); in replace() local 489 NODE_INIT_PARENT(tn, tp); in replace() 490 put_child_root(tp, tn->key, tn); in replace() 507 return tp; in replace() [all …]
|
D | tcp_diag.c | 28 const struct tcp_sock *tp = tcp_sk(sk); in tcp_diag_get_info() local 30 r->idiag_rqueue = max_t(int, tp->rcv_nxt - tp->copied_seq, 0); in tcp_diag_get_info() 31 r->idiag_wqueue = tp->write_seq - tp->snd_una; in tcp_diag_get_info()
|
D | tcp_ipv4.c | 111 struct tcp_sock *tp = tcp_sk(sk); in tcp_twsk_unique() local 127 tp->write_seq = tcptw->tw_snd_nxt + 65535 + 2; in tcp_twsk_unique() 128 if (tp->write_seq == 0) in tcp_twsk_unique() 129 tp->write_seq = 1; in tcp_twsk_unique() 130 tp->rx_opt.ts_recent = tcptw->tw_ts_recent; in tcp_twsk_unique() 131 tp->rx_opt.ts_recent_stamp = tcptw->tw_ts_recent_stamp; in tcp_twsk_unique() 145 struct tcp_sock *tp = tcp_sk(sk); in tcp_v4_connect() local 194 if (tp->rx_opt.ts_recent_stamp && inet->inet_daddr != daddr) { in tcp_v4_connect() 196 tp->rx_opt.ts_recent = 0; in tcp_v4_connect() 197 tp->rx_opt.ts_recent_stamp = 0; in tcp_v4_connect() [all …]
|
D | tcp_probe.c | 110 const struct tcp_sock *tp = tcp_sk(sk); in jtcp_rcv_established() local 118 (full || tp->snd_cwnd != tcp_probe.lastcwnd)) { in jtcp_rcv_established() 149 p->snd_nxt = tp->snd_nxt; in jtcp_rcv_established() 150 p->snd_una = tp->snd_una; in jtcp_rcv_established() 151 p->snd_cwnd = tp->snd_cwnd; in jtcp_rcv_established() 152 p->snd_wnd = tp->snd_wnd; in jtcp_rcv_established() 153 p->rcv_wnd = tp->rcv_wnd; in jtcp_rcv_established() 155 p->srtt = tp->srtt_us >> 3; in jtcp_rcv_established() 159 tcp_probe.lastcwnd = tp->snd_cwnd; in jtcp_rcv_established()
|
D | tcp_minisocks.c | 270 const struct tcp_sock *tp = tcp_sk(sk); in tcp_time_wait() local 274 if (tcp_death_row.sysctl_tw_recycle && tp->rx_opt.ts_recent_stamp) in tcp_time_wait() 285 tw->tw_rcv_wscale = tp->rx_opt.rcv_wscale; in tcp_time_wait() 286 tcptw->tw_rcv_nxt = tp->rcv_nxt; in tcp_time_wait() 287 tcptw->tw_snd_nxt = tp->snd_nxt; in tcp_time_wait() 288 tcptw->tw_rcv_wnd = tcp_receive_window(tp); in tcp_time_wait() 289 tcptw->tw_ts_recent = tp->rx_opt.ts_recent; in tcp_time_wait() 290 tcptw->tw_ts_recent_stamp = tp->rx_opt.ts_recent_stamp; in tcp_time_wait() 291 tcptw->tw_ts_offset = tp->tsoffset; in tcp_time_wait() 316 key = tp->af_specific->md5_lookup(sk, sk); in tcp_time_wait() [all …]
|
D | tcp_fastopen.c | 132 struct tcp_sock *tp; in tcp_fastopen_create_child() local 155 tp = tcp_sk(child); in tcp_fastopen_create_child() 157 tp->fastopen_rsk = req; in tcp_fastopen_create_child() 163 tp->snd_wnd = ntohs(tcp_hdr(skb)->window); in tcp_fastopen_create_child() 199 tp->syn_data_acked = 1; in tcp_fastopen_create_child() 204 tp->bytes_received = end_seq - TCP_SKB_CB(skb)->seq - 1; in tcp_fastopen_create_child() 209 tcp_rsk(req)->rcv_nxt = tp->rcv_nxt = end_seq; in tcp_fastopen_create_child()
|
/linux-4.4.14/drivers/net/ethernet/sis/ |
D | sis190.c | 400 struct sis190_private *tp = netdev_priv(dev); in __mdio_write() local 402 mdio_write(tp->mmio_addr, phy_id, reg, val); in __mdio_write() 407 struct sis190_private *tp = netdev_priv(dev); in __mdio_read() local 409 return mdio_read(tp->mmio_addr, phy_id, reg); in __mdio_read() 487 static struct sk_buff *sis190_alloc_rx_skb(struct sis190_private *tp, in sis190_alloc_rx_skb() argument 490 u32 rx_buf_sz = tp->rx_buf_sz; in sis190_alloc_rx_skb() 494 skb = netdev_alloc_skb(tp->dev, rx_buf_sz); in sis190_alloc_rx_skb() 497 mapping = pci_map_single(tp->pci_dev, skb->data, tp->rx_buf_sz, in sis190_alloc_rx_skb() 499 if (pci_dma_mapping_error(tp->pci_dev, mapping)) in sis190_alloc_rx_skb() 512 static u32 sis190_rx_fill(struct sis190_private *tp, struct net_device *dev, in sis190_rx_fill() argument [all …]
|
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb/ |
D | tp.c | 53 void t1_tp_destroy(struct petp *tp) in t1_tp_destroy() argument 55 kfree(tp); in t1_tp_destroy() 60 struct petp *tp = kzalloc(sizeof(*tp), GFP_KERNEL); in t1_tp_create() local 62 if (!tp) in t1_tp_create() 65 tp->adapter = adapter; in t1_tp_create() 67 return tp; in t1_tp_create() 70 void t1_tp_intr_enable(struct petp *tp) in t1_tp_intr_enable() argument 72 u32 tp_intr = readl(tp->adapter->regs + A_PL_ENABLE); in t1_tp_intr_enable() 75 if (!t1_is_asic(tp->adapter)) { in t1_tp_intr_enable() 78 tp->adapter->regs + FPGA_TP_ADDR_INTERRUPT_ENABLE); in t1_tp_intr_enable() [all …]
|
D | tp.h | 60 void t1_tp_destroy(struct petp *tp); 62 void t1_tp_intr_disable(struct petp *tp); 63 void t1_tp_intr_enable(struct petp *tp); 64 void t1_tp_intr_clear(struct petp *tp); 65 int t1_tp_intr_handler(struct petp *tp); 68 void t1_tp_set_tcp_checksum_offload(struct petp *tp, int enable); 69 void t1_tp_set_ip_checksum_offload(struct petp *tp, int enable); 70 int t1_tp_set_coalescing_size(struct petp *tp, unsigned int size); 71 int t1_tp_reset(struct petp *tp, struct tp_params *p, unsigned int tp_clk);
|
D | subr.c | 762 t1_tp_intr_enable(adapter->tp); in t1_interrupts_enable() 794 t1_tp_intr_disable(adapter->tp); in t1_interrupts_disable() 820 t1_tp_intr_clear(adapter->tp); in t1_interrupts_clear() 855 t1_tp_intr_handler(adapter->tp); in asic_slow_intr() 979 if (t1_tp_reset(adapter->tp, &adapter->params.tp, bi->clock_core)) in t1_init_hw_modules() 1024 if (adapter->tp) in t1_free_sw_modules() 1025 t1_tp_destroy(adapter->tp); in t1_free_sw_modules() 1072 adapter->tp = t1_tp_create(adapter, &adapter->params.tp); in t1_init_sw_modules() 1073 if (!adapter->tp) { in t1_init_sw_modules()
|
D | Makefile | 8 cxgb-objs := cxgb2.o espi.o tp.o pm3393.o sge.o subr.o \
|
/linux-4.4.14/drivers/net/ethernet/3com/ |
D | typhoon.c | 461 typhoon_hello(struct typhoon *tp) in typhoon_hello() argument 463 struct basic_ring *ring = &tp->cmdRing; in typhoon_hello() 470 if(spin_trylock(&tp->command_lock)) { in typhoon_hello() 476 iowrite32(ring->lastWrite, tp->ioaddr + TYPHOON_REG_CMD_READY); in typhoon_hello() 477 spin_unlock(&tp->command_lock); in typhoon_hello() 482 typhoon_process_response(struct typhoon *tp, int resp_size, in typhoon_process_response() argument 485 struct typhoon_indexes *indexes = tp->indexes; in typhoon_process_response() 487 u8 *base = tp->respRing.ringBase; in typhoon_process_response() 518 typhoon_media_status(tp->dev, resp); in typhoon_process_response() 520 typhoon_hello(tp); in typhoon_process_response() [all …]
|
/linux-4.4.14/arch/sparc/kernel/ |
D | windows.c | 41 static inline void shift_window_buffer(int first_win, int last_win, struct thread_info *tp) in shift_window_buffer() argument 46 tp->rwbuf_stkptrs[i] = tp->rwbuf_stkptrs[i+1]; in shift_window_buffer() 47 memcpy(&tp->reg_window[i], &tp->reg_window[i+1], sizeof(struct reg_window32)); in shift_window_buffer() 62 struct thread_info *tp = current_thread_info(); in synchronize_user_stack() local 66 if(!tp->w_saved) in synchronize_user_stack() 70 for(window = tp->w_saved - 1; window >= 0; window--) { in synchronize_user_stack() 71 unsigned long sp = tp->rwbuf_stkptrs[window]; in synchronize_user_stack() 74 if (copy_to_user((char __user *) sp, &tp->reg_window[window], in synchronize_user_stack() 78 shift_window_buffer(window, tp->w_saved - 1, tp); in synchronize_user_stack() 79 tp->w_saved--; in synchronize_user_stack() [all …]
|
D | kstack.h | 10 static inline bool kstack_valid(struct thread_info *tp, unsigned long sp) in kstack_valid() argument 12 unsigned long base = (unsigned long) tp; in kstack_valid() 22 if (hardirq_stack[tp->cpu]) { in kstack_valid() 23 base = (unsigned long) hardirq_stack[tp->cpu]; in kstack_valid() 27 base = (unsigned long) softirq_stack[tp->cpu]; in kstack_valid() 36 static inline bool kstack_is_trap_frame(struct thread_info *tp, struct pt_regs *regs) in kstack_is_trap_frame() argument 38 unsigned long base = (unsigned long) tp; in kstack_is_trap_frame() 45 if (hardirq_stack[tp->cpu]) { in kstack_is_trap_frame() 46 base = (unsigned long) hardirq_stack[tp->cpu]; in kstack_is_trap_frame() 50 base = (unsigned long) softirq_stack[tp->cpu]; in kstack_is_trap_frame()
|
D | stacktrace.c | 11 static void __save_stack_trace(struct thread_info *tp, in __save_stack_trace() argument 21 if (tp == current_thread_info()) { in __save_stack_trace() 25 ksp = tp->ksp; in __save_stack_trace() 30 t = tp->task; in __save_stack_trace() 37 if (!kstack_valid(tp, fp)) in __save_stack_trace() 43 if (kstack_is_trap_frame(tp, regs)) { in __save_stack_trace() 81 struct thread_info *tp = task_thread_info(tsk); in save_stack_trace_tsk() local 83 __save_stack_trace(tp, trace, true); in save_stack_trace_tsk()
|
D | process_64.c | 194 static void __global_reg_self(struct thread_info *tp, struct pt_regs *regs, in __global_reg_self() argument 213 if (kstack_valid(tp, (unsigned long) rw)) { in __global_reg_self() 217 if (kstack_valid(tp, (unsigned long) rw)) in __global_reg_self() 224 rp->thread = tp; in __global_reg_self() 244 struct thread_info *tp = current_thread_info(); in arch_trigger_all_cpu_backtrace() local 250 regs = tp->kregs; in arch_trigger_all_cpu_backtrace() 259 __global_reg_self(tp, regs, this_cpu); in arch_trigger_all_cpu_backtrace() 273 tp = gp->thread; in arch_trigger_all_cpu_backtrace() 277 ((tp && tp->task) ? tp->task->comm : "NULL"), in arch_trigger_all_cpu_backtrace() 278 ((tp && tp->task) ? tp->task->pid : -1)); in arch_trigger_all_cpu_backtrace() [all …]
|
/linux-4.4.14/net/sched/ |
D | cls_api.c | 103 struct nlmsghdr *n, struct tcf_proto *tp, 109 static inline u32 tcf_auto_prio(struct tcf_proto *tp) in tcf_auto_prio() argument 113 if (tp) in tcf_auto_prio() 114 first = tp->prio - 1; in tcf_auto_prio() 134 struct tcf_proto *tp; in tc_ctl_tfilter() local 206 (tp = rtnl_dereference(*back)) != NULL; in tc_ctl_tfilter() 207 back = &tp->next) { in tc_ctl_tfilter() 208 if (tp->prio >= prio) { in tc_ctl_tfilter() 209 if (tp->prio == prio) { in tc_ctl_tfilter() 211 (tp->protocol != protocol && protocol)) in tc_ctl_tfilter() [all …]
|
D | cls_cgroup.c | 25 struct tcf_proto *tp; member 29 static int cls_cgroup_classify(struct sk_buff *skb, const struct tcf_proto *tp, in cls_cgroup_classify() argument 32 struct cls_cgroup_head *head = rcu_dereference_bh(tp->root); in cls_cgroup_classify() 46 static unsigned long cls_cgroup_get(struct tcf_proto *tp, u32 handle) in cls_cgroup_get() argument 51 static int cls_cgroup_init(struct tcf_proto *tp) in cls_cgroup_init() argument 72 struct tcf_proto *tp, unsigned long base, in cls_cgroup_change() argument 77 struct cls_cgroup_head *head = rtnl_dereference(tp->root); in cls_cgroup_change() 98 new->tp = tp; in cls_cgroup_change() 105 err = tcf_exts_validate(net, tp, tb, tca[TCA_RATE], &e, ovr); in cls_cgroup_change() 109 err = tcf_em_tree_validate(tp, tb[TCA_CGROUP_EMATCHES], &t); in cls_cgroup_change() [all …]
|
D | cls_basic.c | 35 struct tcf_proto *tp; member 40 static int basic_classify(struct sk_buff *skb, const struct tcf_proto *tp, in basic_classify() argument 44 struct basic_head *head = rcu_dereference_bh(tp->root); in basic_classify() 59 static unsigned long basic_get(struct tcf_proto *tp, u32 handle) in basic_get() argument 62 struct basic_head *head = rtnl_dereference(tp->root); in basic_get() 78 static int basic_init(struct tcf_proto *tp) in basic_init() argument 86 rcu_assign_pointer(tp->root, head); in basic_init() 99 static bool basic_destroy(struct tcf_proto *tp, bool force) in basic_destroy() argument 101 struct basic_head *head = rtnl_dereference(tp->root); in basic_destroy() 109 tcf_unbind_filter(tp, &f->res); in basic_destroy() [all …]
|
D | cls_fw.c | 48 struct tcf_proto *tp; member 59 static int fw_classify(struct sk_buff *skb, const struct tcf_proto *tp, in fw_classify() argument 62 struct fw_head *head = rcu_dereference_bh(tp->root); in fw_classify() 88 !(TC_H_MAJ(id ^ tp->q->handle)))) { in fw_classify() 98 static unsigned long fw_get(struct tcf_proto *tp, u32 handle) in fw_get() argument 100 struct fw_head *head = rtnl_dereference(tp->root); in fw_get() 114 static int fw_init(struct tcf_proto *tp) in fw_init() argument 130 static bool fw_destroy(struct tcf_proto *tp, bool force) in fw_destroy() argument 132 struct fw_head *head = rtnl_dereference(tp->root); in fw_destroy() 149 tcf_unbind_filter(tp, &f->res); in fw_destroy() [all …]
|
D | cls_tcindex.c | 44 struct tcf_proto *tp; member 82 static int tcindex_classify(struct sk_buff *skb, const struct tcf_proto *tp, in tcindex_classify() argument 85 struct tcindex_data *p = rcu_dereference_bh(tp->root); in tcindex_classify() 90 skb, tp, res, p); in tcindex_classify() 96 res->classid = TC_H_MAKE(TC_H_MAJ(tp->q->handle), key); in tcindex_classify() 108 static unsigned long tcindex_get(struct tcf_proto *tp, u32 handle) in tcindex_get() argument 110 struct tcindex_data *p = rtnl_dereference(tp->root); in tcindex_get() 113 pr_debug("tcindex_get(tp %p,handle 0x%08x)\n", tp, handle); in tcindex_get() 120 static int tcindex_init(struct tcf_proto *tp) in tcindex_init() argument 124 pr_debug("tcindex_init(tp %p)\n", tp); in tcindex_init() [all …]
|
D | cls_flower.c | 36 struct flow_dissector_key_ports tp; member 118 static int fl_classify(struct sk_buff *skb, const struct tcf_proto *tp, in fl_classify() argument 121 struct cls_fl_head *head = rcu_dereference_bh(tp->root); in fl_classify() 146 static int fl_init(struct tcf_proto *tp) in fl_init() argument 155 rcu_assign_pointer(tp->root, head); in fl_init() 168 static bool fl_destroy(struct tcf_proto *tp, bool force) in fl_destroy() argument 170 struct cls_fl_head *head = rtnl_dereference(tp->root); in fl_destroy() 180 RCU_INIT_POINTER(tp->root, NULL); in fl_destroy() 187 static unsigned long fl_get(struct tcf_proto *tp, u32 handle) in fl_get() argument 189 struct cls_fl_head *head = rtnl_dereference(tp->root); in fl_get() [all …]
|
D | cls_u32.c | 66 struct tcf_proto *tp; member 105 static int u32_classify(struct sk_buff *skb, const struct tcf_proto *tp, struct tcf_result *res) in u32_classify() argument 112 struct tc_u_hnode *ht = rcu_dereference_bh(tp->root); in u32_classify() 286 static unsigned long u32_get(struct tcf_proto *tp, u32 handle) in u32_get() argument 289 struct tc_u_common *tp_c = tp->data; in u32_get() 292 ht = rtnl_dereference(tp->root); in u32_get() 320 static int u32_init(struct tcf_proto *tp) in u32_init() argument 325 tp_c = tp->q->u32_node; in u32_init() 334 root_ht->prio = tp->prio; in u32_init() 342 tp_c->q = tp->q; in u32_init() [all …]
|
D | cls_bpf.c | 50 struct tcf_proto *tp; member 78 static int cls_bpf_classify(struct sk_buff *skb, const struct tcf_proto *tp, in cls_bpf_classify() argument 81 struct cls_bpf_head *head = rcu_dereference_bh(tp->root); in cls_bpf_classify() 142 static int cls_bpf_init(struct tcf_proto *tp) in cls_bpf_init() argument 151 rcu_assign_pointer(tp->root, head); in cls_bpf_init() 156 static void cls_bpf_delete_prog(struct tcf_proto *tp, struct cls_bpf_prog *prog) in cls_bpf_delete_prog() argument 174 cls_bpf_delete_prog(prog->tp, prog); in __cls_bpf_delete_prog() 177 static int cls_bpf_delete(struct tcf_proto *tp, unsigned long arg) in cls_bpf_delete() argument 182 tcf_unbind_filter(tp, &prog->res); in cls_bpf_delete() 188 static bool cls_bpf_destroy(struct tcf_proto *tp, bool force) in cls_bpf_destroy() argument [all …]
|
D | cls_route.c | 59 struct tcf_proto *tp; member 128 static int route4_classify(struct sk_buff *skb, const struct tcf_proto *tp, in route4_classify() argument 131 struct route4_head *head = rcu_dereference_bh(tp->root); in route4_classify() 200 !(TC_H_MAJ(id^tp->q->handle)))) { in route4_classify() 230 static unsigned long route4_get(struct tcf_proto *tp, u32 handle) in route4_get() argument 232 struct route4_head *head = rtnl_dereference(tp->root); in route4_get() 259 static int route4_init(struct tcf_proto *tp) in route4_init() argument 267 rcu_assign_pointer(tp->root, head); in route4_init() 280 static bool route4_destroy(struct tcf_proto *tp, bool force) in route4_destroy() argument 282 struct route4_head *head = rtnl_dereference(tp->root); in route4_destroy() [all …]
|
D | cls_rsvp.h | 131 static int rsvp_classify(struct sk_buff *skb, const struct tcf_proto *tp, in rsvp_classify() argument 134 struct rsvp_head *head = rcu_dereference_bh(tp->root); in rsvp_classify() 225 static void rsvp_replace(struct tcf_proto *tp, struct rsvp_filter *n, u32 h) in rsvp_replace() argument 227 struct rsvp_head *head = rtnl_dereference(tp->root); in rsvp_replace() 252 static unsigned long rsvp_get(struct tcf_proto *tp, u32 handle) in rsvp_get() argument 254 struct rsvp_head *head = rtnl_dereference(tp->root); in rsvp_get() 274 static int rsvp_init(struct tcf_proto *tp) in rsvp_init() argument 280 rcu_assign_pointer(tp->root, data); in rsvp_init() 294 static void rsvp_delete_filter(struct tcf_proto *tp, struct rsvp_filter *f) in rsvp_delete_filter() argument 296 tcf_unbind_filter(tp, &f->res); in rsvp_delete_filter() [all …]
|
D | cls_flow.c | 45 struct tcf_proto *tp; member 292 static int flow_classify(struct sk_buff *skb, const struct tcf_proto *tp, in flow_classify() argument 295 struct flow_head *head = rcu_dereference_bh(tp->root); in flow_classify() 376 struct tcf_proto *tp, unsigned long base, in flow_change() argument 380 struct flow_head *head = rtnl_dereference(tp->root); in flow_change() 422 err = tcf_exts_validate(net, tp, tb, tca[TCA_RATE], &e, ovr); in flow_change() 426 err = tcf_em_tree_validate(tp, tb[TCA_FLOW_EMATCHES], &t); in flow_change() 444 fnew->tp = fold->tp; in flow_change() 490 baseclass = TC_H_MAKE(tp->q->handle, baseclass); in flow_change() 496 fnew->tp = tp; in flow_change() [all …]
|
D | sch_api.c | 1820 int tc_classify(struct sk_buff *skb, const struct tcf_proto *tp, in tc_classify() argument 1825 const struct tcf_proto *old_tp = tp; in tc_classify() 1830 for (; tp; tp = rcu_dereference_bh(tp->next)) { in tc_classify() 1833 if (tp->protocol != protocol && in tc_classify() 1834 tp->protocol != htons(ETH_P_ALL)) in tc_classify() 1837 err = tp->classify(skb, tp, res); in tc_classify() 1851 tp->q->ops->id, tp->prio & 0xffff, in tc_classify() 1852 ntohs(tp->protocol)); in tc_classify() 1856 tp = old_tp; in tc_classify() 1863 bool tcf_destroy(struct tcf_proto *tp, bool force) in tcf_destroy() argument [all …]
|
D | ematch.c | 173 static int tcf_em_validate(struct tcf_proto *tp, in tcf_em_validate() argument 181 struct net *net = dev_net(qdisc_dev(tp->q)); in tcf_em_validate() 304 int tcf_em_tree_validate(struct tcf_proto *tp, struct nlattr *nla, in tcf_em_tree_validate() argument 362 err = tcf_em_validate(tp, tree_hdr, em, rt_match, idx); in tcf_em_tree_validate()
|
/linux-4.4.14/fs/xfs/libxfs/ |
D | xfs_rtbitmap.c | 51 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtbuf_get() argument 69 error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp, in xfs_rtbuf_get() 85 xfs_trans_t *tp, /* transaction pointer */ in xfs_rtfind_back() argument 108 error = xfs_rtbuf_get(mp, tp, block, 0, &bp); in xfs_rtfind_back() 145 xfs_trans_brelse(tp, bp); in xfs_rtfind_back() 159 xfs_trans_brelse(tp, bp); in xfs_rtfind_back() 160 error = xfs_rtbuf_get(mp, tp, --block, 0, &bp); in xfs_rtfind_back() 191 xfs_trans_brelse(tp, bp); in xfs_rtfind_back() 205 xfs_trans_brelse(tp, bp); in xfs_rtfind_back() 206 error = xfs_rtbuf_get(mp, tp, --block, 0, &bp); in xfs_rtfind_back() [all …]
|
D | xfs_ialloc.h | 81 struct xfs_trans *tp, /* transaction pointer */ 96 struct xfs_trans *tp, /* transaction pointer */ 107 struct xfs_trans *tp, /* transaction pointer */ 124 struct xfs_trans *tp, /* transaction pointer */ 134 struct xfs_trans *tp, /* transaction pointer */ 145 struct xfs_trans *tp, /* transaction pointer */ 163 int xfs_ialloc_inode_init(struct xfs_mount *mp, struct xfs_trans *tp, 168 int xfs_read_agi(struct xfs_mount *mp, struct xfs_trans *tp,
|
D | xfs_ialloc.c | 161 struct xfs_trans *tp, in xfs_inobt_insert() argument 174 cur = xfs_inobt_init_cursor(mp, tp, agbp, agno, btnum); in xfs_inobt_insert() 252 struct xfs_trans *tp, in xfs_ialloc_inode_init() argument 309 if (tp) in xfs_ialloc_inode_init() 310 xfs_icreate_log(tp, agno, agbno, icount, in xfs_ialloc_inode_init() 320 fbuf = xfs_trans_get_buf(tp, mp->m_ddev_targp, d, in xfs_ialloc_inode_init() 345 } else if (tp) { in xfs_ialloc_inode_init() 347 xfs_trans_log_buf(tp, fbuf, ioffset, in xfs_ialloc_inode_init() 352 if (tp) { in xfs_ialloc_inode_init() 361 xfs_trans_inode_alloc_buf(tp, fbuf); in xfs_ialloc_inode_init() [all …]
|
D | xfs_alloc.h | 100 struct xfs_trans *tp; /* transaction pointer */ member 153 struct xfs_trans *tp, /* transaction pointer */ 163 struct xfs_trans *tp, /* transaction pointer */ 173 struct xfs_trans *tp, /* transaction pointer */ 182 struct xfs_trans *tp, /* transaction pointer */ 194 struct xfs_trans *tp, /* transaction pointer */ 211 struct xfs_trans *tp, /* transaction pointer */ 236 int xfs_read_agf(struct xfs_mount *mp, struct xfs_trans *tp,
|
D | xfs_dir2_leaf.c | 261 struct xfs_trans *tp, in xfs_dir3_leaf_read() argument 269 err = xfs_da_read_buf(tp, dp, fbno, mappedbno, bpp, in xfs_dir3_leaf_read() 271 if (!err && tp) in xfs_dir3_leaf_read() 272 xfs_trans_buf_set_type(tp, *bpp, XFS_BLFT_DIR_LEAF1_BUF); in xfs_dir3_leaf_read() 278 struct xfs_trans *tp, in xfs_dir3_leafn_read() argument 286 err = xfs_da_read_buf(tp, dp, fbno, mappedbno, bpp, in xfs_dir3_leafn_read() 288 if (!err && tp) in xfs_dir3_leafn_read() 289 xfs_trans_buf_set_type(tp, *bpp, XFS_BLFT_DIR_LEAFN_BUF); in xfs_dir3_leafn_read() 299 struct xfs_trans *tp, in xfs_dir3_leaf_init() argument 334 xfs_trans_buf_set_type(tp, bp, XFS_BLFT_DIR_LEAF1_BUF); in xfs_dir3_leaf_init() [all …]
|
D | xfs_dir2_block.c | 42 static void xfs_dir2_block_log_leaf(xfs_trans_t *tp, struct xfs_buf *bp, 44 static void xfs_dir2_block_log_tail(xfs_trans_t *tp, struct xfs_buf *bp); 133 struct xfs_trans *tp, in xfs_dir3_block_read() argument 140 err = xfs_da_read_buf(tp, dp, mp->m_dir_geo->datablk, -1, bpp, in xfs_dir3_block_read() 142 if (!err && tp) in xfs_dir3_block_read() 143 xfs_trans_buf_set_type(tp, *bpp, XFS_BLFT_DIR_BLOCK_BUF); in xfs_dir3_block_read() 150 struct xfs_trans *tp, in xfs_dir3_block_init() argument 157 xfs_trans_buf_set_type(tp, bp, XFS_BLFT_DIR_BLOCK_BUF); in xfs_dir3_block_init() 360 xfs_trans_t *tp; /* transaction structure */ in xfs_dir2_block_addname() local 365 tp = args->trans; in xfs_dir2_block_addname() [all …]
|
D | xfs_dir2.c | 227 xfs_trans_t *tp, in xfs_dir_init() argument 235 error = xfs_dir_ino_validate(tp->t_mountp, pdp->i_ino); in xfs_dir_init() 245 args->trans = tp; in xfs_dir_init() 257 xfs_trans_t *tp, in xfs_dir_createname() argument 271 rval = xfs_dir_ino_validate(tp->t_mountp, inum); in xfs_dir_createname() 292 args->trans = tp; in xfs_dir_createname() 356 xfs_trans_t *tp, in xfs_dir_lookup() argument 386 args->trans = tp; in xfs_dir_lookup() 434 xfs_trans_t *tp, in xfs_dir_removename() argument 464 args->trans = tp; in xfs_dir_removename() [all …]
|
D | xfs_bmap.h | 36 struct xfs_trans *tp; /* transaction pointer */ member 197 int xfs_bmap_finish(struct xfs_trans **tp, struct xfs_bmap_free *flist, 200 int xfs_bmap_first_unused(struct xfs_trans *tp, struct xfs_inode *ip, 202 int xfs_bmap_last_before(struct xfs_trans *tp, struct xfs_inode *ip, 207 int xfs_bmap_read_extents(struct xfs_trans *tp, struct xfs_inode *ip, 215 int xfs_bmapi_write(struct xfs_trans *tp, struct xfs_inode *ip, 220 int xfs_bunmapi(struct xfs_trans *tp, struct xfs_inode *ip, 227 int xfs_bmap_shift_extents(struct xfs_trans *tp, struct xfs_inode *ip,
|
D | xfs_alloc.c | 549 xfs_trans_t *tp, /* transaction pointer */ in xfs_alloc_read_agfl() argument 558 mp, tp, mp->m_ddev_targp, in xfs_alloc_read_agfl() 570 struct xfs_trans *tp, in xfs_alloc_update_counters() argument 580 xfs_trans_agblocks_delta(tp, len); in xfs_alloc_update_counters() 585 xfs_alloc_log_agf(tp, agbp, XFS_AGF_FREEBLKS); in xfs_alloc_update_counters() 640 error = xfs_alloc_update_counters(args->tp, args->pag, in xfs_alloc_ag_vextent() 651 xfs_trans_mod_sb(args->tp, args->wasdel ? in xfs_alloc_ag_vextent() 687 bno_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_exact() 745 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_exact() 929 cnt_cur = xfs_allocbt_init_cursor(args->mp, args->tp, args->agbp, in xfs_alloc_ag_vextent_near() [all …]
|
D | xfs_dir2_node.c | 161 struct xfs_trans *tp, in __xfs_dir3_free_read() argument 169 err = xfs_da_read_buf(tp, dp, fbno, mappedbno, bpp, in __xfs_dir3_free_read() 173 if (!err && tp && *bpp) in __xfs_dir3_free_read() 174 xfs_trans_buf_set_type(tp, *bpp, XFS_BLFT_DIR_FREE_BUF); in __xfs_dir3_free_read() 180 struct xfs_trans *tp, in xfs_dir2_free_read() argument 185 return __xfs_dir3_free_read(tp, dp, fbno, -1, bpp); in xfs_dir2_free_read() 190 struct xfs_trans *tp, in xfs_dir2_free_try_read() argument 195 return __xfs_dir3_free_read(tp, dp, fbno, -2, bpp); in xfs_dir2_free_try_read() 204 struct xfs_trans *tp = args->trans; in xfs_dir3_free_get_buf() local 211 error = xfs_da_get_buf(tp, dp, xfs_dir2_db_to_da(args->geo, fbno), in xfs_dir3_free_get_buf() [all …]
|
D | xfs_da_btree.c | 255 struct xfs_trans *tp, in xfs_da3_node_read() argument 264 err = xfs_da_read_buf(tp, dp, bno, mappedbno, bpp, in xfs_da3_node_read() 266 if (!err && tp) { in xfs_da3_node_read() 288 xfs_trans_buf_set_type(tp, *bpp, type); in xfs_da3_node_read() 309 struct xfs_trans *tp = args->trans; in xfs_da3_node_create() local 310 struct xfs_mount *mp = tp->t_mountp; in xfs_da3_node_create() 319 error = xfs_da_get_buf(tp, dp, blkno, -1, &bp, whichfork); in xfs_da3_node_create() 323 xfs_trans_buf_set_type(tp, bp, XFS_BLFT_DA_NODE_BUF); in xfs_da3_node_create() 340 xfs_trans_log_buf(tp, bp, in xfs_da3_node_create() 520 struct xfs_trans *tp; in xfs_da3_root_split() local [all …]
|
D | xfs_bmap.c | 661 xfs_trans_t *tp, /* transaction pointer */ in xfs_bmap_btree_to_extents() argument 692 error = xfs_btree_read_bufl(mp, tp, cbno, 0, &cbp, XFS_BMAP_BTREE_REF, in xfs_bmap_btree_to_extents() 701 xfs_trans_mod_dquot_byino(tp, ip, XFS_TRANS_DQ_BCOUNT, -1L); in xfs_bmap_btree_to_extents() 702 xfs_trans_binval(tp, cbp); in xfs_bmap_btree_to_extents() 719 xfs_trans_t *tp, /* transaction pointer */ in xfs_bmap_extents_to_btree() argument 769 cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork); in xfs_bmap_extents_to_btree() 778 args.tp = tp; in xfs_bmap_extents_to_btree() 810 xfs_trans_mod_dquot_byino(tp, ip, XFS_TRANS_DQ_BCOUNT, 1L); in xfs_bmap_extents_to_btree() 811 abp = xfs_btree_get_bufl(mp, tp, args.fsbno, 0); in xfs_bmap_extents_to_btree() 887 xfs_trans_t *tp, /* transaction pointer */ in xfs_bmap_local_to_extents() argument [all …]
|
D | xfs_bmap_btree.c | 445 args.tp = cur->bc_tp; in xfs_bmbt_alloc_block() 464 args.minleft = xfs_trans_get_block_res(args.tp); in xfs_bmbt_alloc_block() 473 if (!args.wasdel && xfs_trans_get_block_res(args.tp) == 0) { in xfs_bmbt_alloc_block() 504 xfs_trans_log_inode(args.tp, cur->bc_private.b.ip, XFS_ILOG_CORE); in xfs_bmbt_alloc_block() 505 xfs_trans_mod_dquot_byino(args.tp, cur->bc_private.b.ip, in xfs_bmbt_alloc_block() 526 struct xfs_trans *tp = cur->bc_tp; in xfs_bmbt_free_block() local 532 xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); in xfs_bmbt_free_block() 533 xfs_trans_mod_dquot_byino(tp, ip, XFS_TRANS_DQ_BCOUNT, -1L); in xfs_bmbt_free_block() 534 xfs_trans_binval(tp, bp); in xfs_bmbt_free_block() 781 struct xfs_trans *tp, /* transaction pointer */ in xfs_bmbt_init_cursor() argument [all …]
|
D | xfs_dir2.h | 127 extern int xfs_dir_init(struct xfs_trans *tp, struct xfs_inode *dp, 129 extern int xfs_dir_createname(struct xfs_trans *tp, struct xfs_inode *dp, 133 extern int xfs_dir_lookup(struct xfs_trans *tp, struct xfs_inode *dp, 136 extern int xfs_dir_removename(struct xfs_trans *tp, struct xfs_inode *dp, 140 extern int xfs_dir_replace(struct xfs_trans *tp, struct xfs_inode *dp, 144 extern int xfs_dir_canenter(struct xfs_trans *tp, struct xfs_inode *dp,
|
D | xfs_symlink_remote.c | 178 struct xfs_trans *tp, in xfs_symlink_local_to_remote() argument 186 xfs_trans_buf_set_type(tp, bp, XFS_BLFT_SYMLINK_BUF); in xfs_symlink_local_to_remote() 191 xfs_trans_log_buf(tp, bp, 0, ifp->if_bytes - 1); in xfs_symlink_local_to_remote() 207 xfs_trans_log_buf(tp, bp, 0, sizeof(struct xfs_dsymlink_hdr) + in xfs_symlink_local_to_remote()
|
D | xfs_dir2_priv.h | 32 extern int xfs_dir3_block_read(struct xfs_trans *tp, struct xfs_inode *dp, 49 extern int xfs_dir3_data_read(struct xfs_trans *tp, struct xfs_inode *dp, 62 extern int xfs_dir3_leafn_read(struct xfs_trans *tp, struct xfs_inode *dp, 116 extern int xfs_dir2_free_read(struct xfs_trans *tp, struct xfs_inode *dp,
|
D | xfs_sb.c | 808 struct xfs_trans *tp) in xfs_log_sb() argument 810 struct xfs_mount *mp = tp->t_mountp; in xfs_log_sb() 811 struct xfs_buf *bp = xfs_trans_getsb(tp, mp, 0); in xfs_log_sb() 818 xfs_trans_buf_set_type(tp, bp, XFS_BLFT_SB_BUF); in xfs_log_sb() 819 xfs_trans_log_buf(tp, bp, 0, sizeof(struct xfs_dsb)); in xfs_log_sb() 838 struct xfs_trans *tp; in xfs_sync_sb() local 841 tp = _xfs_trans_alloc(mp, XFS_TRANS_SB_CHANGE, KM_SLEEP); in xfs_sync_sb() 842 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_sb, 0, 0); in xfs_sync_sb() 844 xfs_trans_cancel(tp); in xfs_sync_sb() 848 xfs_log_sb(tp); in xfs_sync_sb() [all …]
|
D | xfs_inode_buf.c | 163 struct xfs_trans *tp, in xfs_imap_to_bp() argument 174 error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp, imap->im_blkno, in xfs_imap_to_bp() 349 xfs_trans_t *tp, in xfs_iread() argument 360 error = xfs_imap(mp, tp, ip->i_ino, &ip->i_imap, iget_flags); in xfs_iread() 384 error = xfs_imap_to_bp(mp, tp, &ip->i_imap, &dip, &bp, 0, iget_flags); in xfs_iread() 478 xfs_trans_brelse(tp, bp); in xfs_iread()
|
D | xfs_attr_leaf.h | 56 void xfs_attr_fork_remove(struct xfs_inode *ip, struct xfs_trans *tp); 100 int xfs_attr3_leaf_read(struct xfs_trans *tp, struct xfs_inode *dp,
|
D | xfs_dir2_data.c | 322 struct xfs_trans *tp, in xfs_dir3_data_read() argument 330 err = xfs_da_read_buf(tp, dp, bno, mapped_bno, bpp, in xfs_dir3_data_read() 332 if (!err && tp) in xfs_dir3_data_read() 333 xfs_trans_buf_set_type(tp, *bpp, XFS_BLFT_DIR_DATA_BUF); in xfs_dir3_data_read() 586 xfs_trans_t *tp; /* transaction pointer */ in xfs_dir3_data_init() local 591 tp = args->trans; in xfs_dir3_data_init() 595 error = xfs_da_get_buf(tp, dp, xfs_dir2_db_to_da(args->geo, blkno), in xfs_dir3_data_init() 600 xfs_trans_buf_set_type(tp, bp, XFS_BLFT_DIR_DATA_BUF); in xfs_dir3_data_init()
|
D | xfs_sb.h | 31 extern void xfs_log_sb(struct xfs_trans *tp);
|
/linux-4.4.14/include/net/ |
D | tcp.h | 415 void tcp_clear_retrans(struct tcp_sock *tp); 424 void tcp_disable_fack(struct tcp_sock *tp); 572 void tcp_skb_mark_lost_uncond_verify(struct tcp_sock *tp, struct sk_buff *skb); 585 static inline int tcp_bound_to_half_wnd(struct tcp_sock *tp, int pktsize) in tcp_bound_to_half_wnd() argument 596 if (tp->max_window >= 512) in tcp_bound_to_half_wnd() 597 cutoff = (tp->max_window >> 1); in tcp_bound_to_half_wnd() 599 cutoff = tp->max_window; in tcp_bound_to_half_wnd() 602 return max_t(int, cutoff, 68U - tp->tcp_header_len); in tcp_bound_to_half_wnd() 629 static inline u32 __tcp_set_rto(const struct tcp_sock *tp) in __tcp_set_rto() argument 631 return usecs_to_jiffies((tp->srtt_us >> 3) + tp->rttvar_us); in __tcp_set_rto() [all …]
|
D | pkt_cls.h | 27 cls_set_class(struct tcf_proto *tp, unsigned long *clp, in cls_set_class() argument 32 tcf_tree_lock(tp); in cls_set_class() 34 tcf_tree_unlock(tp); in cls_set_class() 40 tcf_bind_filter(struct tcf_proto *tp, struct tcf_result *r, unsigned long base) in tcf_bind_filter() argument 44 cl = tp->q->ops->cl_ops->bind_tcf(tp->q, base, r->classid); in tcf_bind_filter() 45 cl = cls_set_class(tp, &r->class, cl); in tcf_bind_filter() 47 tp->q->ops->cl_ops->unbind_tcf(tp->q, cl); in tcf_bind_filter() 51 tcf_unbind_filter(struct tcf_proto *tp, struct tcf_result *r) in tcf_unbind_filter() argument 56 tp->q->ops->cl_ops->unbind_tcf(tp->q, cl); in tcf_unbind_filter() 133 int tcf_exts_validate(struct net *net, struct tcf_proto *tp, [all …]
|
/linux-4.4.14/drivers/input/mouse/ |
D | trackpoint.c | 116 struct trackpoint_data *tp = psmouse->private; in trackpoint_show_int_attr() local 118 unsigned char value = *(unsigned char *)((char *)tp + attr->field_offset); in trackpoint_show_int_attr() 129 struct trackpoint_data *tp = psmouse->private; in trackpoint_set_int_attr() local 131 unsigned char *field = (unsigned char *)((char *)tp + attr->field_offset); in trackpoint_set_int_attr() 158 struct trackpoint_data *tp = psmouse->private; in trackpoint_set_bit_attr() local 160 unsigned char *field = (unsigned char *)((char *)tp + attr->field_offset); in trackpoint_set_bit_attr() 285 struct trackpoint_data *tp = psmouse->private; in trackpoint_sync() local 307 TRACKPOINT_UPDATE(in_power_on_state, psmouse, tp, sensitivity); in trackpoint_sync() 308 TRACKPOINT_UPDATE(in_power_on_state, psmouse, tp, inertia); in trackpoint_sync() 309 TRACKPOINT_UPDATE(in_power_on_state, psmouse, tp, speed); in trackpoint_sync() [all …]
|
/linux-4.4.14/kernel/trace/ |
D | trace_kprobe.c | 35 struct trace_probe tp; member 39 (offsetof(struct trace_kprobe, tp.args) + \ 296 tk->tp.call.class = &tk->tp.class; in alloc_trace_kprobe() 297 tk->tp.call.name = kstrdup(event, GFP_KERNEL); in alloc_trace_kprobe() 298 if (!tk->tp.call.name) in alloc_trace_kprobe() 306 tk->tp.class.system = kstrdup(group, GFP_KERNEL); in alloc_trace_kprobe() 307 if (!tk->tp.class.system) in alloc_trace_kprobe() 311 INIT_LIST_HEAD(&tk->tp.files); in alloc_trace_kprobe() 314 kfree(tk->tp.call.name); in alloc_trace_kprobe() 324 for (i = 0; i < tk->tp.nr_args; i++) in free_trace_kprobe() [all …]
|
D | trace_uprobe.c | 60 struct trace_probe tp; member 64 (offsetof(struct trace_uprobe, tp.args) + \ 253 tu->tp.call.class = &tu->tp.class; in alloc_trace_uprobe() 254 tu->tp.call.name = kstrdup(event, GFP_KERNEL); in alloc_trace_uprobe() 255 if (!tu->tp.call.name) in alloc_trace_uprobe() 258 tu->tp.class.system = kstrdup(group, GFP_KERNEL); in alloc_trace_uprobe() 259 if (!tu->tp.class.system) in alloc_trace_uprobe() 263 INIT_LIST_HEAD(&tu->tp.files); in alloc_trace_uprobe() 271 kfree(tu->tp.call.name); in alloc_trace_uprobe() 281 for (i = 0; i < tu->tp.nr_args; i++) in free_trace_uprobe() [all …]
|
D | trace_probe.h | 288 static inline bool trace_probe_is_enabled(struct trace_probe *tp) in trace_probe_is_enabled() argument 290 return !!(tp->flags & (TP_FLAG_TRACE | TP_FLAG_PROFILE)); in trace_probe_is_enabled() 293 static inline bool trace_probe_is_registered(struct trace_probe *tp) in trace_probe_is_registered() argument 295 return !!(tp->flags & TP_FLAG_REGISTERED); in trace_probe_is_registered() 317 find_event_file_link(struct trace_probe *tp, struct trace_event_file *file) in find_event_file_link() argument 321 list_for_each_entry(link, &tp->files, list) in find_event_file_link() 348 __get_data_size(struct trace_probe *tp, struct pt_regs *regs) in __get_data_size() argument 353 for (i = 0; i < tp->nr_args; i++) in __get_data_size() 354 if (unlikely(tp->args[i].fetch_size.fn)) { in __get_data_size() 355 call_fetch(&tp->args[i].fetch_size, regs, &len); in __get_data_size() [all …]
|
D | trace_probe.c | 663 static int __set_print_fmt(struct trace_probe *tp, char *buf, int len, in __set_print_fmt() argument 684 for (i = 0; i < tp->nr_args; i++) { in __set_print_fmt() 686 tp->args[i].name, tp->args[i].type->fmt); in __set_print_fmt() 691 for (i = 0; i < tp->nr_args; i++) { in __set_print_fmt() 692 if (strcmp(tp->args[i].type->name, "string") == 0) in __set_print_fmt() 695 tp->args[i].name); in __set_print_fmt() 698 tp->args[i].name); in __set_print_fmt() 707 int set_print_fmt(struct trace_probe *tp, bool is_return) in set_print_fmt() argument 713 len = __set_print_fmt(tp, NULL, 0, is_return); in set_print_fmt() 719 __set_print_fmt(tp, print_fmt, len + 1, is_return); in set_print_fmt() [all …]
|
/linux-4.4.14/net/sctp/ |
D | transport.c | 314 void sctp_transport_update_rto(struct sctp_transport *tp, __u32 rtt) in sctp_transport_update_rto() argument 316 if (unlikely(!tp->rto_pending)) in sctp_transport_update_rto() 318 pr_debug("%s: rto_pending not set on transport %p!\n", __func__, tp); in sctp_transport_update_rto() 320 if (tp->rttvar || tp->srtt) { in sctp_transport_update_rto() 321 struct net *net = sock_net(tp->asoc->base.sk); in sctp_transport_update_rto() 333 tp->rttvar = tp->rttvar - (tp->rttvar >> net->sctp.rto_beta) in sctp_transport_update_rto() 334 + (((__u32)abs((__s64)tp->srtt - (__s64)rtt)) >> net->sctp.rto_beta); in sctp_transport_update_rto() 335 tp->srtt = tp->srtt - (tp->srtt >> net->sctp.rto_alpha) in sctp_transport_update_rto() 341 tp->srtt = rtt; in sctp_transport_update_rto() 342 tp->rttvar = rtt >> 1; in sctp_transport_update_rto() [all …]
|
D | output.c | 381 struct sctp_transport *tp = packet->transport; in sctp_packet_transmit() local 382 struct sctp_association *asoc = tp->asoc; in sctp_packet_transmit() 416 if (!sctp_transport_dst_check(tp)) { in sctp_packet_transmit() 417 sctp_transport_route(tp, NULL, sctp_sk(sk)); in sctp_packet_transmit() 422 dst = dst_clone(tp->dst); in sctp_packet_transmit() 476 if (!chunk->resent && !tp->rto_pending) { in sctp_packet_transmit() 478 tp->rto_pending = 1; in sctp_packet_transmit() 560 tp->af_specific->ecn_capable(nskb->sk); in sctp_packet_transmit() 570 if (asoc->peer.last_sent_to != tp) in sctp_packet_transmit() 574 asoc->peer.last_sent_to = tp; in sctp_packet_transmit() [all …]
|
/linux-4.4.14/include/uapi/linux/ |
D | atmsvc.h | 51 #define SELECT_TOP_PCR(tp) ((tp).pcr ? (tp).pcr : \ argument 52 (tp).max_pcr && (tp).max_pcr != ATM_MAX_PCR ? (tp).max_pcr : \ 53 (tp).min_pcr ? (tp).min_pcr : ATM_MAX_PCR)
|
D | tcp.h | 69 #define tcp_flag_word(tp) ( ((union tcp_word_hdr *)(tp))->words [3]) argument
|
/linux-4.4.14/kernel/ |
D | tracepoint.c | 193 static int tracepoint_add_func(struct tracepoint *tp, in tracepoint_add_func() argument 198 if (tp->regfunc && !static_key_enabled(&tp->key)) in tracepoint_add_func() 199 tp->regfunc(); in tracepoint_add_func() 201 tp_funcs = rcu_dereference_protected(tp->funcs, in tracepoint_add_func() 216 rcu_assign_pointer(tp->funcs, tp_funcs); in tracepoint_add_func() 217 if (!static_key_enabled(&tp->key)) in tracepoint_add_func() 218 static_key_slow_inc(&tp->key); in tracepoint_add_func() 229 static int tracepoint_remove_func(struct tracepoint *tp, in tracepoint_remove_func() argument 234 tp_funcs = rcu_dereference_protected(tp->funcs, in tracepoint_remove_func() 244 if (tp->unregfunc && static_key_enabled(&tp->key)) in tracepoint_remove_func() [all …]
|
D | torture.c | 283 void torture_shuffle_task_register(struct task_struct *tp) in torture_shuffle_task_register() argument 287 if (WARN_ON_ONCE(tp == NULL)) in torture_shuffle_task_register() 292 stp->st_t = tp; in torture_shuffle_task_register() 715 char *f, struct task_struct **tp) in _torture_create_kthread() argument 720 *tp = kthread_run(fn, arg, "%s", s); in _torture_create_kthread() 721 if (IS_ERR(*tp)) { in _torture_create_kthread() 722 ret = PTR_ERR(*tp); in _torture_create_kthread() 724 *tp = NULL; in _torture_create_kthread() 726 torture_shuffle_task_register(*tp); in _torture_create_kthread() 734 void _torture_stop_kthread(char *m, struct task_struct **tp) in _torture_stop_kthread() argument [all …]
|
D | futex_compat.c | 179 ktime_t t, *tp = NULL; in COMPAT_SYSCALL_DEFINE6() local 194 tp = &t; in COMPAT_SYSCALL_DEFINE6() 200 return do_futex(uaddr, op, val, tp, uaddr2, val2, val3); in COMPAT_SYSCALL_DEFINE6()
|
/linux-4.4.14/net/atm/ |
D | atm_misc.c | 75 int atm_pcr_goal(const struct atm_trafprm *tp) in atm_pcr_goal() argument 77 if (tp->pcr && tp->pcr != ATM_MAX_PCR) in atm_pcr_goal() 78 return -tp->pcr; in atm_pcr_goal() 79 if (tp->min_pcr && !tp->pcr) in atm_pcr_goal() 80 return tp->min_pcr; in atm_pcr_goal() 81 if (tp->max_pcr != ATM_MAX_PCR) in atm_pcr_goal() 82 return -tp->max_pcr; in atm_pcr_goal()
|
D | common.c | 289 static int adjust_tp(struct atm_trafprm *tp, unsigned char aal) in adjust_tp() argument 293 if (!tp->traffic_class) in adjust_tp() 308 if (!tp->max_sdu) in adjust_tp() 309 tp->max_sdu = max_sdu; in adjust_tp() 310 else if (tp->max_sdu > max_sdu) in adjust_tp() 312 if (!tp->max_cdv) in adjust_tp() 313 tp->max_cdv = ATM_MAX_CDV; in adjust_tp() 706 static int check_tp(const struct atm_trafprm *tp) in check_tp() argument 709 if (!tp->traffic_class || tp->traffic_class == ATM_ANYCLASS) in check_tp() 711 if (tp->traffic_class != ATM_UBR && !tp->min_pcr && !tp->pcr && in check_tp() [all …]
|
/linux-4.4.14/drivers/scsi/sym53c8xx_2/ |
D | sym_glue.c | 268 struct sym_tcb *tp = &np->target[cp->target]; in sym_scatter() local 282 if ((len & 1) && (tp->head.wval & EWS)) { in sym_scatter() 303 struct sym_tcb *tp; in sym_queue_command() local 311 tp = &np->target[sdev->id]; in sym_queue_command() 316 lp = sym_lp(tp, sdev->lun); in sym_queue_command() 715 static void sym_tune_dev_queuing(struct sym_tcb *tp, int lun, u_short reqtags) in sym_tune_dev_queuing() argument 717 struct sym_lcb *lp = sym_lp(tp, lun); in sym_tune_dev_queuing() 731 dev_info(&tp->starget->dev, in sym_tune_dev_queuing() 740 struct sym_tcb *tp = &np->target[sdev->id]; in sym53c8xx_slave_alloc() local 759 if (tp->usrflags & SYM_SCAN_BOOT_DISABLED) { in sym53c8xx_slave_alloc() [all …]
|
D | sym_hipd.c | 83 struct sym_tcb *tp = &np->target[target]; in sym_print_nego_msg() local 84 dev_info(&tp->starget->dev, "%s: ", label); in sym_print_nego_msg() 915 struct sym_tcb *tp = &np->target[i]; local 917 tp->usrflags |= (SYM_DISC_ENABLED | SYM_TAGS_ENABLED); 918 tp->usrtags = SYM_SETUP_MAX_TAG; 919 tp->usr_width = np->maxwide; 920 tp->usr_period = 9; 922 sym_nvram_setup_target(tp, i, nvram); 924 if (!tp->usrtags) 925 tp->usrflags &= ~SYM_TAGS_ENABLED; [all …]
|
D | sym_nvram.c | 95 sym_Symbios_setup_target(struct sym_tcb *tp, int target, Symbios_nvram *nvram) in sym_Symbios_setup_target() argument 100 tp->usrtags = 0; in sym_Symbios_setup_target() 102 tp->usrflags &= ~SYM_DISC_ENABLED; in sym_Symbios_setup_target() 104 tp->usrflags |= SYM_SCAN_BOOT_DISABLED; in sym_Symbios_setup_target() 106 tp->usrflags |= SYM_SCAN_LUNS_DISABLED; in sym_Symbios_setup_target() 107 tp->usr_period = (tn->sync_period + 3) / 4; in sym_Symbios_setup_target() 108 tp->usr_width = (tn->bus_width == 0x8) ? 0 : 1; in sym_Symbios_setup_target() 119 sym_Tekram_setup_target(struct sym_tcb *tp, int target, Tekram_nvram *nvram) in sym_Tekram_setup_target() argument 124 tp->usrtags = 2 << nvram->max_tags_index; in sym_Tekram_setup_target() 128 tp->usrflags |= SYM_DISC_ENABLED; in sym_Tekram_setup_target() [all …]
|
D | sym_nvram.h | 197 void sym_nvram_setup_target (struct sym_tcb *tp, int target, struct sym_nvram *nvp); 202 static inline void sym_nvram_setup_target(struct sym_tcb *tp, struct sym_nvram *nvram) { } in sym_nvram_setup_target() argument
|
D | sym_hipd.h | 581 #define sym_lp(tp, lun) (!lun) ? (tp)->lun0p : NULL argument 583 #define sym_lp(tp, lun) \ argument 584 (!lun) ? (tp)->lun0p : (tp)->lunmp ? (tp)->lunmp[((u8)lun)] : NULL
|
/linux-4.4.14/drivers/scsi/ |
D | esp_scsi.c | 549 static int esp_need_to_nego_wide(struct esp_target_data *tp) in esp_need_to_nego_wide() argument 551 struct scsi_target *target = tp->starget; in esp_need_to_nego_wide() 553 return spi_width(target) != tp->nego_goal_width; in esp_need_to_nego_wide() 556 static int esp_need_to_nego_sync(struct esp_target_data *tp) in esp_need_to_nego_sync() argument 558 struct scsi_target *target = tp->starget; in esp_need_to_nego_sync() 561 if (!spi_offset(target) && !tp->nego_goal_offset) in esp_need_to_nego_sync() 564 if (spi_offset(target) == tp->nego_goal_offset && in esp_need_to_nego_sync() 565 spi_period(target) == tp->nego_goal_period) in esp_need_to_nego_sync() 721 struct esp_target_data *tp; in esp_maybe_execute_command() local 747 tp = &esp->target[tgt]; in esp_maybe_execute_command() [all …]
|
D | scsi_transport_spi.c | 286 struct spi_transport_attrs *tp; \ 288 tp = (struct spi_transport_attrs *)&starget->starget_data; \ 289 return snprintf(buf, 20, format_string, tp->field); \ 301 struct spi_transport_attrs *tp; \ 303 tp = (struct spi_transport_attrs *)&starget->starget_data; \ 305 tp->field = val; \ 317 struct spi_transport_attrs *tp; \ 319 tp = (struct spi_transport_attrs *)&starget->starget_data; \ 322 return snprintf(buf, 20, format_string, tp->field); \ 353 struct spi_transport_attrs *tp \ [all …]
|
D | ncr53c8xx.c | 1937 static void ncr_negotiate (struct ncb* np, struct tcb* tp); 3972 struct tcb *tp = &np->target[i]; in ncr_prepare_setting() local 3974 tp->usrsync = driver_setup.default_sync; in ncr_prepare_setting() 3975 tp->usrwide = driver_setup.max_wide; in ncr_prepare_setting() 3976 tp->usrtags = MAX_TAGS; in ncr_prepare_setting() 3977 tp->period = 0xffff; in ncr_prepare_setting() 4062 struct tcb *tp = &np->target[cp->target]; in ncr_prepare_nego() local 4065 struct scsi_target *starget = tp->starget; in ncr_prepare_nego() 4068 if (!tp->widedone) { in ncr_prepare_nego() 4072 tp->widedone=1; in ncr_prepare_nego() [all …]
|
D | mesh.c | 214 struct mesh_target *tp = &ms->tgts[ms->conn_tgt]; in dlog() local 217 tlp = &tp->log[tp->log_ix]; in dlog() 227 if (++tp->log_ix >= N_DBG_LOG) in dlog() 228 tp->log_ix = 0; in dlog() 229 if (tp->n_log < N_DBG_LOG) in dlog() 230 ++tp->n_log; in dlog() 239 struct mesh_target *tp = &ms->tgts[t]; in dumplog() local 243 if (tp->n_log == 0) in dumplog() 245 i = tp->log_ix - tp->n_log; in dumplog() 248 tp->n_log = 0; in dumplog() [all …]
|
/linux-4.4.14/arch/x86/kernel/ |
D | tce_64.c | 52 u64* tp; in tce_build() local 60 tp = ((u64*)tbl->it_base) + index; in tce_build() 67 *tp = cpu_to_be64(t); in tce_build() 68 flush_tce(tp); in tce_build() 71 tp++; in tce_build() 77 u64* tp; in tce_free() local 79 tp = ((u64*)tbl->it_base) + index; in tce_free() 82 *tp = cpu_to_be64(0); in tce_free() 83 flush_tce(tp); in tce_free() 84 tp++; in tce_free()
|
/linux-4.4.14/net/openvswitch/ |
D | flow.c | 68 #define TCP_FLAGS_BE16(tp) (*(__be16 *)&tcp_flag_word(tp) & htons(0x0FFF)) argument 373 key->tp.src = htons(icmp->icmp6_type); in parse_icmpv6() 374 key->tp.dst = htons(icmp->icmp6_code); in parse_icmpv6() 467 key->tp.flags = 0; in key_extract() 537 key->tp.src = tcp->source; in key_extract() 538 key->tp.dst = tcp->dest; in key_extract() 539 key->tp.flags = TCP_FLAGS_BE16(tcp); in key_extract() 541 memset(&key->tp, 0, sizeof(key->tp)); in key_extract() 547 key->tp.src = udp->source; in key_extract() 548 key->tp.dst = udp->dest; in key_extract() [all …]
|
D | flow_netlink.c | 229 if (match->key->tp.src == in match_validate() 231 match->key->tp.src == htons(NDISC_NEIGHBOUR_ADVERTISEMENT)) { in match_validate() 233 if (match->mask && (match->mask->key.tp.src == htons(0xff))) in match_validate() 1060 SW_FLOW_KEY_PUT(match, tp.src, tcp_key->tcp_src, is_mask); in ovs_key_from_nlattrs() 1061 SW_FLOW_KEY_PUT(match, tp.dst, tcp_key->tcp_dst, is_mask); in ovs_key_from_nlattrs() 1066 SW_FLOW_KEY_PUT(match, tp.flags, in ovs_key_from_nlattrs() 1076 SW_FLOW_KEY_PUT(match, tp.src, udp_key->udp_src, is_mask); in ovs_key_from_nlattrs() 1077 SW_FLOW_KEY_PUT(match, tp.dst, udp_key->udp_dst, is_mask); in ovs_key_from_nlattrs() 1085 SW_FLOW_KEY_PUT(match, tp.src, sctp_key->sctp_src, is_mask); in ovs_key_from_nlattrs() 1086 SW_FLOW_KEY_PUT(match, tp.dst, sctp_key->sctp_dst, is_mask); in ovs_key_from_nlattrs() [all …]
|
/linux-4.4.14/arch/x86/crypto/ |
D | serpent-avx2-asm_64.S | 37 #define tp %ymm1 macro 61 vpor x0, x3, tp; \ 65 vpxor x1, tp, x3; \ 80 vpxor x0, x1, tp; \ 83 vpand tp, x1, x4; \ 84 vpor tp, x0, x0; \ 87 vpxor x3, tp, x1; 102 vpand x2, x0, tp; \ 103 vpxor x3, tp, tp; \ 107 vpand tp, x1, x1; [all …]
|
D | serpent-avx-x86_64-asm_64.S | 52 #define tp %xmm5 macro 69 vpor x0, x3, tp; \ 73 vpxor x1, tp, x3; \ 88 vpxor x0, x1, tp; \ 91 vpand tp, x1, x4; \ 92 vpor tp, x0, x0; \ 95 vpxor x3, tp, x1; 110 vpand x2, x0, tp; \ 111 vpxor x3, tp, tp; \ 115 vpand tp, x1, x1; [all …]
|
/linux-4.4.14/include/linux/ |
D | torture.h | 66 void torture_shuffle_task_register(struct task_struct *tp); 86 char *f, struct task_struct **tp); 87 void _torture_stop_kthread(char *m, struct task_struct **tp); 89 #define torture_create_kthread(n, arg, tp) \ argument 91 "Failed to create " #n, &(tp)) 92 #define torture_stop_kthread(n, tp) \ argument 93 _torture_stop_kthread("Stopping " #n " task", &(tp))
|
D | tracepoint.h | 51 tracepoint_probe_register(struct tracepoint *tp, void *probe, void *data); 53 tracepoint_probe_register_prio(struct tracepoint *tp, void *probe, void *data, 56 tracepoint_probe_unregister(struct tracepoint *tp, void *probe, void *data); 58 for_each_kernel_tracepoint(void (*fct)(struct tracepoint *tp, void *priv), 145 #define __DO_TRACE(tp, proto, args, cond, prercu, postrcu) \ argument 155 it_func_ptr = rcu_dereference_sched((tp)->funcs); \
|
D | tcp.h | 400 static inline void tcp_move_syn(struct tcp_sock *tp, in tcp_move_syn() argument 403 tp->saved_syn = req->saved_syn; in tcp_move_syn() 407 static inline void tcp_saved_syn_free(struct tcp_sock *tp) in tcp_saved_syn_free() argument 409 kfree(tp->saved_syn); in tcp_saved_syn_free() 410 tp->saved_syn = NULL; in tcp_saved_syn_free()
|
D | posix-timers.h | 100 int (*clock_getres) (const clockid_t which_clock, struct timespec *tp); 102 const struct timespec *tp); 103 int (*clock_get) (const clockid_t which_clock, struct timespec * tp);
|
/linux-4.4.14/arch/tile/include/asm/ |
D | percpu.h | 32 unsigned long tp; in __my_cpu_offset() local 34 asm("move %0, tp" : "=r" (tp) : "U" (*sp)); in __my_cpu_offset() 35 return tp; in __my_cpu_offset() 48 #define set_my_cpu_offset(tp) (my_cpu_offset_reg = (tp)) argument
|
/linux-4.4.14/arch/arm/include/asm/ |
D | tls.h | 9 .macro switch_tls_none, base, tp, tpuser, tmp1, tmp2 12 .macro switch_tls_v6k, base, tp, tpuser, tmp1, tmp2 14 mcr p15, 0, \tp, c13, c0, 3 @ set TLS register 19 .macro switch_tls_v6, base, tp, tpuser, tmp1, tmp2 24 streq \tp, [\tmp2, #-15] @ set TLS value at 0xffff0ff0 26 mcrne p15, 0, \tp, c13, c0, 3 @ yes, set TLS register 31 .macro switch_tls_software, base, tp, tpuser, tmp1, tmp2 33 str \tp, [\tmp1, #-15] @ set TLS value at 0xffff0ff0
|
/linux-4.4.14/arch/xtensa/platforms/iss/ |
D | network.c | 94 } tp; member 166 char *dev_name = lp->tp.info.tuntap.dev_name; in tuntap_open() 189 lp->tp.info.tuntap.fd = fd; in tuntap_open() 195 simc_close(lp->tp.info.tuntap.fd); in tuntap_close() 196 lp->tp.info.tuntap.fd = -1; in tuntap_close() 201 return simc_read(lp->tp.info.tuntap.fd, in tuntap_read() 207 return simc_write(lp->tp.info.tuntap.fd, (*skb)->data, (*skb)->len); in tuntap_write() 217 return simc_poll(lp->tp.info.tuntap.fd); in tuntap_poll() 254 strlcpy(lp->tp.info.tuntap.dev_name, dev_name, in tuntap_probe() 255 sizeof(lp->tp.info.tuntap.dev_name)); in tuntap_probe() [all …]
|
/linux-4.4.14/drivers/net/wireless/mwifiex/ |
D | sta_event.c | 243 struct mwifiex_tx_pause_tlv *tp; in mwifiex_process_uap_tx_pause() local 247 tp = (void *)tlv; in mwifiex_process_uap_tx_pause() 250 tp->peermac, tp->tx_pause, in mwifiex_process_uap_tx_pause() 251 tp->pkt_cnt); in mwifiex_process_uap_tx_pause() 253 if (ether_addr_equal(tp->peermac, priv->netdev->dev_addr)) { in mwifiex_process_uap_tx_pause() 254 if (tp->tx_pause) in mwifiex_process_uap_tx_pause() 258 } else if (is_multicast_ether_addr(tp->peermac)) { in mwifiex_process_uap_tx_pause() 259 mwifiex_update_ralist_tx_pause(priv, tp->peermac, tp->tx_pause); in mwifiex_process_uap_tx_pause() 262 sta_ptr = mwifiex_get_sta_entry(priv, tp->peermac); in mwifiex_process_uap_tx_pause() 265 if (sta_ptr && sta_ptr->tx_pause != tp->tx_pause) { in mwifiex_process_uap_tx_pause() [all …]
|
/linux-4.4.14/arch/h8300/kernel/ |
D | traps.c | 56 unsigned char *tp; in dump() local 76 tp = ((unsigned char *) fp->pc) - 0x20; in dump() 77 for (sp = (unsigned long *) tp, i = 0; (i < 0x40); i += 4) { in dump() 79 pr_info("\n%08x: ", (int) (tp + i)); in dump() 85 tp = ((unsigned char *) fp) - 0x40; in dump() 86 for (sp = (unsigned long *) tp, i = 0; (i < 0xc0); i += 4) { in dump() 88 pr_info("\n%08x: ", (int) (tp + i)); in dump()
|
/linux-4.4.14/arch/powerpc/kernel/ |
D | irq.c | 564 struct thread_info *tp; in exc_lvl_ctx_init() local 579 tp = critirq_ctx[cpu_nr]; in exc_lvl_ctx_init() 580 tp->cpu = cpu_nr; in exc_lvl_ctx_init() 581 tp->preempt_count = 0; in exc_lvl_ctx_init() 585 tp = dbgirq_ctx[cpu_nr]; in exc_lvl_ctx_init() 586 tp->cpu = cpu_nr; in exc_lvl_ctx_init() 587 tp->preempt_count = 0; in exc_lvl_ctx_init() 590 tp = mcheckirq_ctx[cpu_nr]; in exc_lvl_ctx_init() 591 tp->cpu = cpu_nr; in exc_lvl_ctx_init() 592 tp->preempt_count = HARDIRQ_OFFSET; in exc_lvl_ctx_init() [all …]
|
/linux-4.4.14/arch/nios2/kernel/ |
D | process.c | 150 unsigned char *tp; in dump() local 188 tp = ((unsigned char *) fp->ea) - 0x20; in dump() 189 for (sp = (unsigned long *) tp, i = 0; (i < 0x40); i += 4) { in dump() 191 pr_emerg("\n%08x: ", (int) (tp + i)); in dump() 197 tp = ((unsigned char *) fp) - 0x40; in dump() 198 for (sp = (unsigned long *) tp, i = 0; (i < 0xc0); i += 4) { in dump() 200 pr_emerg("\n%08x: ", (int) (tp + i)); in dump() 207 tp = (unsigned char *) (fp->sp - 0x10); in dump() 208 for (sp = (unsigned long *) tp, i = 0; (i < 0x80); i += 4) { in dump() 210 pr_emerg("\n%08x: ", (int) (tp + i)); in dump()
|
/linux-4.4.14/kernel/time/ |
D | posix-timers.c | 206 static int posix_clock_realtime_get(clockid_t which_clock, struct timespec *tp) in posix_clock_realtime_get() argument 208 ktime_get_real_ts(tp); in posix_clock_realtime_get() 214 const struct timespec *tp) in posix_clock_realtime_set() argument 216 return do_sys_settimeofday(tp, NULL); in posix_clock_realtime_set() 228 static int posix_ktime_get_ts(clockid_t which_clock, struct timespec *tp) in posix_ktime_get_ts() argument 230 ktime_get_ts(tp); in posix_ktime_get_ts() 237 static int posix_get_monotonic_raw(clockid_t which_clock, struct timespec *tp) in posix_get_monotonic_raw() argument 239 getrawmonotonic(tp); in posix_get_monotonic_raw() 244 static int posix_get_realtime_coarse(clockid_t which_clock, struct timespec *tp) in posix_get_realtime_coarse() argument 246 *tp = current_kernel_time(); in posix_get_realtime_coarse() [all …]
|
D | posix-cpu-timers.c | 55 timespec_to_sample(const clockid_t which_clock, const struct timespec *tp) in timespec_to_sample() argument 61 ret = (unsigned long long)tp->tv_sec * NSEC_PER_SEC + tp->tv_nsec; in timespec_to_sample() 63 ret = cputime_to_expires(timespec_to_cputime(tp)); in timespec_to_sample() 70 struct timespec *tp) in sample_to_timespec() argument 73 *tp = ns_to_timespec(expires); in sample_to_timespec() 75 cputime_to_timespec((__force cputime_t)expires, tp); in sample_to_timespec() 144 posix_cpu_clock_getres(const clockid_t which_clock, struct timespec *tp) in posix_cpu_clock_getres() argument 148 tp->tv_sec = 0; in posix_cpu_clock_getres() 149 tp->tv_nsec = ((NSEC_PER_SEC + HZ - 1) / HZ); in posix_cpu_clock_getres() 156 tp->tv_nsec = 1; in posix_cpu_clock_getres() [all …]
|
/linux-4.4.14/tools/perf/util/ |
D | probe-event.c | 508 static int find_perf_probe_point_from_dwarf(struct probe_trace_point *tp, in find_perf_probe_point_from_dwarf() argument 514 u64 addr = tp->address; in find_perf_probe_point_from_dwarf() 523 ret = get_text_start_address(tp->module, &stext); in find_perf_probe_point_from_dwarf() 527 } else if (tp->symbol) { in find_perf_probe_point_from_dwarf() 529 ret = kernel_get_symbol_address_by_name(tp->symbol, &addr, in find_perf_probe_point_from_dwarf() 530 false, !!tp->module); in find_perf_probe_point_from_dwarf() 533 addr += tp->offset; in find_perf_probe_point_from_dwarf() 537 tp->module ? : "kernel"); in find_perf_probe_point_from_dwarf() 539 dinfo = debuginfo_cache__open(tp->module, verbose == 0); in find_perf_probe_point_from_dwarf() 547 pp->retprobe = tp->retprobe; in find_perf_probe_point_from_dwarf() [all …]
|
D | header.c | 420 static int build_cpu_topo(struct cpu_topo *tp, int cpu) in build_cpu_topo() argument 444 for (i = 0; i < tp->core_sib; i++) { in build_cpu_topo() 445 if (!strcmp(buf, tp->core_siblings[i])) in build_cpu_topo() 448 if (i == tp->core_sib) { in build_cpu_topo() 449 tp->core_siblings[i] = buf; in build_cpu_topo() 450 tp->core_sib++; in build_cpu_topo() 469 for (i = 0; i < tp->thread_sib; i++) { in build_cpu_topo() 470 if (!strcmp(buf, tp->thread_siblings[i])) in build_cpu_topo() 473 if (i == tp->thread_sib) { in build_cpu_topo() 474 tp->thread_siblings[i] = buf; in build_cpu_topo() [all …]
|
/linux-4.4.14/fs/jfs/ |
D | jfs_dmap.c | 79 static void dbSplit(dmtree_t * tp, int leafno, int splitsz, int newval); 80 static int dbBackSplit(dmtree_t * tp, int leafno); 81 static int dbJoin(dmtree_t * tp, int leafno, int newval); 82 static void dbAdjTree(dmtree_t * tp, int leafno, int newval); 103 static int dbFindLeaf(dmtree_t * tp, int l2nb, int *leafidx); 2181 dmtree_t *tp = (dmtree_t *) & dp->tree; in dbAllocBits() local 2231 dbSplit(tp, word, BUDMIN, in dbAllocBits() 2272 dbSplit(tp, word, size, NOFREE); in dbAllocBits() 2328 dmtree_t *tp = (dmtree_t *) & dp->tree; in dbFreeBits() local 2378 rc = dbJoin(tp, word, in dbFreeBits() [all …]
|
/linux-4.4.14/net/ipv6/netfilter/ |
D | ip6t_hbh.c | 58 const u_int8_t *tp = NULL; in hbh_mt6() local 108 tp = skb_header_pointer(skb, ptr, sizeof(_opttype), in hbh_mt6() 110 if (tp == NULL) in hbh_mt6() 114 if (*tp != (optinfo->opts[temp] & 0xFF00) >> 8) { in hbh_mt6() 115 pr_debug("Tbad %02X %02X\n", *tp, in hbh_mt6() 122 if (*tp) { in hbh_mt6()
|
/linux-4.4.14/drivers/net/ethernet/amd/ |
D | declance.c | 328 unsigned short *tp; in cp_to_buf() local 338 tp = to; in cp_to_buf() 342 *tp++ = *fp++; in cp_to_buf() 343 tp++; in cp_to_buf() 347 rtp = (unsigned char *)tp; in cp_to_buf() 357 tp = to; in cp_to_buf() 360 *tp++ = *fp++; in cp_to_buf() 361 *tp++ = *fp++; in cp_to_buf() 362 *tp++ = *fp++; in cp_to_buf() 363 *tp++ = *fp++; in cp_to_buf() [all …]
|
/linux-4.4.14/lib/mpi/ |
D | mpih-mul.c | 356 if (!ctx->tp || ctx->tp_size < vsize) { in mpihelp_mul_karatsuba_case() 357 if (ctx->tp) in mpihelp_mul_karatsuba_case() 358 mpi_free_limb_space(ctx->tp); in mpihelp_mul_karatsuba_case() 359 ctx->tp = mpi_alloc_limb_space(2 * vsize); in mpihelp_mul_karatsuba_case() 360 if (!ctx->tp) { in mpihelp_mul_karatsuba_case() 370 MPN_MUL_N_RECURSE(ctx->tp, up, vp, vsize, ctx->tspace); in mpihelp_mul_karatsuba_case() 371 cy = mpihelp_add_n(prodp, prodp, ctx->tp, vsize); in mpihelp_mul_karatsuba_case() 372 mpihelp_add_1(prodp + vsize, ctx->tp + vsize, vsize, in mpihelp_mul_karatsuba_case() 410 if (ctx->tp) in mpihelp_release_karatsuba_ctx() 411 mpi_free_limb_space(ctx->tp); in mpihelp_release_karatsuba_ctx() [all …]
|
D | mpi-pow.c | 188 mpi_ptr_t tp; in mpi_powm() local 219 tp = rp; in mpi_powm() 221 xp = tp; in mpi_powm() 247 tp = rp; in mpi_powm() 249 xp = tp; in mpi_powm()
|
/linux-4.4.14/drivers/platform/chrome/ |
D | chromeos_laptop.c | 43 static struct i2c_client *tp; variable 288 if (tp) in setup_cyapa_tp() 292 tp = add_i2c_device("trackpad", type, &cyapa_device); in setup_cyapa_tp() 293 return (!tp) ? -EAGAIN : 0; in setup_cyapa_tp() 300 if (tp) in setup_atmel_224s_tp() 304 tp = add_probed_i2c_device("trackpad", type, in setup_atmel_224s_tp() 306 return (!tp) ? -EAGAIN : 0; in setup_atmel_224s_tp() 633 if (tp) in chromeos_laptop_exit() 634 i2c_unregister_device(tp); in chromeos_laptop_exit()
|
/linux-4.4.14/arch/mips/boot/dts/qca/ |
D | ar9132_tl_wr1043nd_v1.dts | 92 label = "tp-link:green:usb"; 97 label = "tp-link:green:system"; 103 label = "tp-link:green:qss"; 108 label = "tp-link:green:wlan";
|
/linux-4.4.14/arch/ia64/hp/sim/boot/ |
D | fw-emu.c | 47 offtime (unsigned long t, efi_time_t *tp) in offtime() argument 69 tp->hour = rem / SECS_PER_HOUR; in offtime() 71 tp->minute = rem / 60; in offtime() 72 tp->second = rem % 60; in offtime() 90 tp->year = y; in offtime() 95 tp->month = y + 1; in offtime() 96 tp->day = days + 1; in offtime()
|
/linux-4.4.14/drivers/ptp/ |
D | ptp_clock.c | 100 static int ptp_clock_getres(struct posix_clock *pc, struct timespec *tp) in ptp_clock_getres() argument 102 tp->tv_sec = 0; in ptp_clock_getres() 103 tp->tv_nsec = 1; in ptp_clock_getres() 107 static int ptp_clock_settime(struct posix_clock *pc, const struct timespec *tp) in ptp_clock_settime() argument 110 struct timespec64 ts = timespec_to_timespec64(*tp); in ptp_clock_settime() 115 static int ptp_clock_gettime(struct posix_clock *pc, struct timespec *tp) in ptp_clock_gettime() argument 123 *tp = timespec64_to_timespec(ts); in ptp_clock_gettime()
|
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_debugfs.c | 688 adap->params.tp.la_mask = val << 16; in tp_la_write() 690 adap->params.tp.la_mask); in tp_la_write() 1216 struct trace_params tp; in mps_trc_show() local 1220 t4_get_trace_filter(adap, &tp, trcidx, &enabled); in mps_trc_show() 1226 if (tp.skip_ofst * 8 >= TRACE_LEN) { in mps_trc_show() 1230 if (tp.port < 8) { in mps_trc_show() 1231 i = adap->chan_map[tp.port & 3]; in mps_trc_show() 1238 adap->port[i]->name, tp.port < 4 ? "Rx" : "Tx"); in mps_trc_show() 1241 tp.port - 8); in mps_trc_show() 1242 seq_printf(seq, "snap length: %u, min length: %u\n", tp.snap_len, in mps_trc_show() [all …]
|
D | l2t.c | 425 struct tp_params *tp = &adap->params.tp; in cxgb4_select_ntuple() local 431 if (tp->vlan_shift >= 0 && l2t->vlan != VLAN_NONE) in cxgb4_select_ntuple() 432 ntuple |= (u64)(FT_VLAN_VLD_F | l2t->vlan) << tp->vlan_shift; in cxgb4_select_ntuple() 434 if (tp->port_shift >= 0) in cxgb4_select_ntuple() 435 ntuple |= (u64)l2t->lport << tp->port_shift; in cxgb4_select_ntuple() 437 if (tp->protocol_shift >= 0) in cxgb4_select_ntuple() 438 ntuple |= (u64)IPPROTO_TCP << tp->protocol_shift; in cxgb4_select_ntuple() 440 if (tp->vnic_shift >= 0) { in cxgb4_select_ntuple() 448 FT_VNID_ID_VLD_V(vld)) << tp->vnic_shift; in cxgb4_select_ntuple()
|
D | t4_hw.c | 5142 int t4_set_trace_filter(struct adapter *adap, const struct trace_params *tp, in t4_set_trace_filter() argument 5160 if (tp->snap_len > ((10 * 1024 / 4) - (2 * 8))) in t4_set_trace_filter() 5168 if (tp->snap_len > 9600 || idx) in t4_set_trace_filter() 5172 if (tp->port > (is_t4(adap->params.chip) ? 11 : 19) || tp->invert > 1 || in t4_set_trace_filter() 5173 tp->skip_len > TFLENGTH_M || tp->skip_ofst > TFOFFSET_M || in t4_set_trace_filter() 5174 tp->min_len > TFMINPKTSIZE_M) in t4_set_trace_filter() 5185 t4_write_reg(adap, data_reg, tp->data[i]); in t4_set_trace_filter() 5186 t4_write_reg(adap, mask_reg, ~tp->mask[i]); in t4_set_trace_filter() 5189 TFCAPTUREMAX_V(tp->snap_len) | in t4_set_trace_filter() 5190 TFMINPKTSIZE_V(tp->min_len)); in t4_set_trace_filter() [all …]
|
/linux-4.4.14/drivers/char/ |
D | mmtimer.c | 481 static int sgi_clock_get(clockid_t clockid, struct timespec *tp) in sgi_clock_get() argument 487 *tp = ns_to_timespec(nsec); in sgi_clock_get() 488 tp->tv_sec += sgi_clock_offset.tv_sec; in sgi_clock_get() 492 static int sgi_clock_set(const clockid_t clockid, const struct timespec *tp) in sgi_clock_set() argument 500 sgi_clock_offset.tv_sec = tp->tv_sec - div_u64_rem(nsec, NSEC_PER_SEC, &rem); in sgi_clock_set() 502 if (rem <= tp->tv_nsec) in sgi_clock_set() 503 sgi_clock_offset.tv_nsec = tp->tv_sec - rem; in sgi_clock_set() 505 sgi_clock_offset.tv_nsec = tp->tv_sec + NSEC_PER_SEC - rem; in sgi_clock_set() 768 static int sgi_clock_getres(const clockid_t which_clock, struct timespec *tp) in sgi_clock_getres() argument 770 tp->tv_sec = 0; in sgi_clock_getres() [all …]
|
/linux-4.4.14/scripts/ |
D | gcc-goto.sh | 13 static struct { int dummy; int state; } tp; 14 asm (".long %c0" :: "i" (&tp.state));
|
D | analyze_suspend.py | 902 tp = sysvals.tpath 909 os.system('echo 0 > '+tp+'tracing_on') 911 os.system('echo global > '+tp+'trace_clock') 913 os.system('echo nop > '+tp+'current_tracer') 914 os.system('echo 100000 > '+tp+'buffer_size_kb') 918 os.system('echo function_graph > '+tp+'current_tracer') 919 os.system('echo "" > '+tp+'set_ftrace_filter') 921 os.system('echo funcgraph-abstime > '+tp+'trace_options') 922 os.system('echo funcgraph-proc > '+tp+'trace_options') 924 os.system('cat '+tp+'available_filter_functions | grep '+\ [all …]
|
/linux-4.4.14/net/ipv6/ |
D | tcp_ipv6.c | 120 struct tcp_sock *tp = tcp_sk(sk); in tcp_v6_connect() local 178 if (tp->rx_opt.ts_recent_stamp && in tcp_v6_connect() 180 tp->rx_opt.ts_recent = 0; in tcp_v6_connect() 181 tp->rx_opt.ts_recent_stamp = 0; in tcp_v6_connect() 182 tp->write_seq = 0; in tcp_v6_connect() 208 tp->af_specific = &tcp_sock_ipv6_mapped_specific; in tcp_v6_connect() 218 tp->af_specific = &tcp_sock_ipv6_specific; in tcp_v6_connect() 262 !tp->rx_opt.ts_recent_stamp && in tcp_v6_connect() 271 tp->rx_opt.mss_clamp = IPV6_MIN_MTU - sizeof(struct tcphdr) - sizeof(struct ipv6hdr); in tcp_v6_connect() 282 if (!tp->write_seq && likely(!tp->repair)) in tcp_v6_connect() [all …]
|
D | ip6_vti.c | 157 struct ip6_tnl __rcu **tp = vti6_tnl_bucket(ip6n, &t->parms); in vti6_tnl_link() local 159 rcu_assign_pointer(t->next , rtnl_dereference(*tp)); in vti6_tnl_link() 160 rcu_assign_pointer(*tp, t); in vti6_tnl_link() 166 struct ip6_tnl __rcu **tp; in vti6_tnl_unlink() local 169 for (tp = vti6_tnl_bucket(ip6n, &t->parms); in vti6_tnl_unlink() 170 (iter = rtnl_dereference(*tp)) != NULL; in vti6_tnl_unlink() 171 tp = &iter->next) { in vti6_tnl_unlink() 173 rcu_assign_pointer(*tp, t->next); in vti6_tnl_unlink() 261 struct ip6_tnl __rcu **tp; in vti6_locate() local 265 for (tp = vti6_tnl_bucket(ip6n, p); in vti6_locate() [all …]
|
/linux-4.4.14/Documentation/arm/Samsung/ |
D | clksrc-change-registers.awk | 24 r = split(l, tp) 26 p[0] = tp[2] 27 p[1] = remove_brackets(tp[3])
|
/linux-4.4.14/drivers/staging/lustre/lnet/lnet/ |
D | lib-move.c | 52 lnet_test_peer_t *tp; in lnet_fail_nid() local 62 LIBCFS_ALLOC(tp, sizeof(*tp)); in lnet_fail_nid() 63 if (tp == NULL) in lnet_fail_nid() 66 tp->tp_nid = nid; in lnet_fail_nid() 67 tp->tp_threshold = threshold; in lnet_fail_nid() 70 list_add_tail(&tp->tp_list, &the_lnet.ln_test_peers); in lnet_fail_nid() 81 tp = list_entry(el, lnet_test_peer_t, tp_list); in lnet_fail_nid() 83 if (tp->tp_threshold == 0 || /* needs culling anyway */ in lnet_fail_nid() 85 tp->tp_nid == nid) { /* matched this one */ in lnet_fail_nid() 86 list_del(&tp->tp_list); in lnet_fail_nid() [all …]
|
/linux-4.4.14/arch/powerpc/include/asm/ |
D | irq.h | 66 extern void call_do_softirq(struct thread_info *tp); 67 extern void call_do_irq(struct pt_regs *regs, struct thread_info *tp);
|
/linux-4.4.14/drivers/atm/ |
D | horizon.c | 2045 static int check_max_sdu (hrz_aal aal, struct atm_trafprm * tp, unsigned int max_frame_size) { in check_max_sdu() argument 2050 if (!(tp->max_sdu)) { in check_max_sdu() 2052 tp->max_sdu = ATM_AAL0_SDU; in check_max_sdu() 2053 } else if (tp->max_sdu != ATM_AAL0_SDU) { in check_max_sdu() 2059 if (tp->max_sdu == 0 || tp->max_sdu > ATM_MAX_AAL34_PDU) { in check_max_sdu() 2060 PRINTD (DBG_QOS, "%sing max_sdu", tp->max_sdu ? "capp" : "default"); in check_max_sdu() 2061 tp->max_sdu = ATM_MAX_AAL34_PDU; in check_max_sdu() 2065 if (tp->max_sdu == 0 || tp->max_sdu > max_frame_size) { in check_max_sdu() 2066 PRINTD (DBG_QOS, "%sing max_sdu", tp->max_sdu ? "capp" : "default"); in check_max_sdu() 2067 tp->max_sdu = max_frame_size; in check_max_sdu() [all …]
|
/linux-4.4.14/arch/um/drivers/ |
D | pty.c | 96 char *tp = &line[strlen("/dev/")]; in getmaster() local 99 *tp = 't'; in getmaster() 101 *tp = 'p'; in getmaster()
|
/linux-4.4.14/drivers/net/ethernet/sun/ |
D | niu.c | 2500 const struct niu_phy_template *tp; in niu_determine_phy_disposition() local 2510 tp = &phy_template_niu_10g_serdes; in niu_determine_phy_disposition() 2514 tp = &phy_template_niu_1g_serdes; in niu_determine_phy_disposition() 2520 tp = &phy_template_niu_10g_hotplug; in niu_determine_phy_disposition() 2526 tp = &phy_template_niu_10g_fiber; in niu_determine_phy_disposition() 2538 tp = &phy_template_1g_copper; in niu_determine_phy_disposition() 2549 tp = &phy_template_10g_copper; in niu_determine_phy_disposition() 2554 tp = &phy_template_1g_fiber; in niu_determine_phy_disposition() 2559 tp = &phy_template_10g_fiber; in niu_determine_phy_disposition() 2565 tp = &phy_template_10g_fiber_hotplug; in niu_determine_phy_disposition() [all …]
|
/linux-4.4.14/arch/sparc/mm/ |
D | tsb.c | 513 static void tsb_destroy_one(struct tsb_config *tp) in tsb_destroy_one() argument 517 if (!tp->tsb) in tsb_destroy_one() 519 cache_index = tp->tsb_reg_val & 0x7UL; in tsb_destroy_one() 520 kmem_cache_free(tsb_caches[cache_index], tp->tsb); in tsb_destroy_one() 521 tp->tsb = NULL; in tsb_destroy_one() 522 tp->tsb_reg_val = 0UL; in tsb_destroy_one()
|
/linux-4.4.14/arch/arm/boot/dts/ |
D | nspire-tp.dts | 2 * linux/arch/arm/boot/nspire-tp.dts 43 compatible = "ti,nspire-tp";
|
/linux-4.4.14/Documentation/devicetree/bindings/input/touchscreen/ |
D | sun4i.txt | 14 - allwinner,tp-sensitive-adjust : integer (4 bits) 36 allwinner,tp-sensitive-adjust = <0>;
|
/linux-4.4.14/drivers/ide/ |
D | cmd64x.c | 101 struct ide_timing tp; in cmd64x_program_timings() local 103 ide_timing_compute(pair, pair->pio_mode, &tp, T, 0); in cmd64x_program_timings() 104 ide_timing_merge(&t, &tp, &t, IDE_TIMING_SETUP); in cmd64x_program_timings() 107 &tp, T, 0); in cmd64x_program_timings() 108 ide_timing_merge(&tp, &t, &t, IDE_TIMING_SETUP); in cmd64x_program_timings()
|
/linux-4.4.14/drivers/scsi/megaraid/ |
D | megaraid_mm.c | 686 struct timer_list *tp = NULL; in lld_ioctl() local 697 tp = &timer; in lld_ioctl() 698 init_timer(tp); in lld_ioctl() 700 tp->function = lld_timedout; in lld_ioctl() 701 tp->data = (unsigned long)kioc; in lld_ioctl() 702 tp->expires = jiffies + adp->timeout * HZ; in lld_ioctl() 704 add_timer(tp); in lld_ioctl() 712 if (tp) { in lld_ioctl() 713 del_timer_sync(tp); in lld_ioctl()
|
/linux-4.4.14/drivers/tty/serial/jsm/ |
D | jsm_tty.c | 524 struct tty_struct *tp; in jsm_input() local 542 tp = port->tty; in jsm_input() 572 if (!tp || in jsm_input() 573 !(tp->termios.c_cflag & CREAD) ) { in jsm_input() 622 if (I_PARMRK(tp) || I_BRKINT(tp) || I_INPCK(tp)) { in jsm_input()
|
/linux-4.4.14/fs/proc/ |
D | base.c | 2159 struct timers_private *tp = m->private; in timers_start() local 2161 tp->task = get_pid_task(tp->pid, PIDTYPE_PID); in timers_start() 2162 if (!tp->task) in timers_start() 2165 tp->sighand = lock_task_sighand(tp->task, &tp->flags); in timers_start() 2166 if (!tp->sighand) in timers_start() 2169 return seq_list_start(&tp->task->signal->posix_timers, *pos); in timers_start() 2174 struct timers_private *tp = m->private; in timers_next() local 2175 return seq_list_next(v, &tp->task->signal->posix_timers, pos); in timers_next() 2180 struct timers_private *tp = m->private; in timers_stop() local 2182 if (tp->sighand) { in timers_stop() [all …]
|
/linux-4.4.14/kernel/debug/kdb/ |
D | kdb_main.c | 916 kdbtab_t *tp; in kdb_parse() local 1007 for_each_kdbcmd(tp, i) { in kdb_parse() 1008 if (tp->cmd_name) { in kdb_parse() 1014 if (tp->cmd_minlen in kdb_parse() 1015 && (strlen(argv[0]) <= tp->cmd_minlen)) { in kdb_parse() 1017 tp->cmd_name, in kdb_parse() 1018 tp->cmd_minlen) == 0) { in kdb_parse() 1023 if (strcmp(argv[0], tp->cmd_name) == 0) in kdb_parse() 1034 for_each_kdbcmd(tp, i) { in kdb_parse() 1035 if (tp->cmd_name) { in kdb_parse() [all …]
|
/linux-4.4.14/drivers/net/ethernet/8390/ |
D | mac8390.c | 168 static void word_memcpy_tocard(unsigned long tp, const void *fp, int count); 169 static void word_memcpy_fromcard(void *tp, unsigned long fp, int count); 838 static void word_memcpy_tocard(unsigned long tp, const void *fp, int count) in word_memcpy_tocard() argument 840 volatile unsigned short *to = (void *)tp; in word_memcpy_tocard() 850 static void word_memcpy_fromcard(void *tp, unsigned long fp, int count) in word_memcpy_fromcard() argument 852 unsigned short *to = tp; in word_memcpy_fromcard()
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
D | nv50.c | 238 nv50_gr_prop_trap(struct nv50_gr *gr, u32 ustatus_addr, u32 ustatus, u32 tp) in nv50_gr_prop_trap() argument 256 tp, e14, e10 | ((e18 >> 24) & 0x1f)); in nv50_gr_prop_trap() 261 tp, e14, e10 | ((e18 >> 7) & 0x1f)); in nv50_gr_prop_trap() 265 tp, e14, e10); in nv50_gr_prop_trap() 273 tp, ustatus, msg, e14, e10); in nv50_gr_prop_trap() 276 tp, e0c, e18, e1c, e20, e24); in nv50_gr_prop_trap()
|
/linux-4.4.14/arch/tile/include/uapi/asm/ |
D | sigcontext.h | 32 __uint_reg_t tp; /* Aliases gregs[TREG_TP]. */ member
|
/linux-4.4.14/drivers/platform/x86/ |
D | intel_mid_thermal.c | 135 static int adc_to_temp(int direct, uint16_t adc_val, int *tp) in adc_to_temp() argument 142 *tp = to_msic_die_temp(adc_val) * 1000; in adc_to_temp() 164 *tp = temp * 1000; in adc_to_temp()
|
/linux-4.4.14/drivers/media/platform/vivid/ |
D | vivid-rds-gen.c | 68 data[1].msb = (rds->pty >> 3) | (rds->tp << 2); in vivid_rds_generate() 153 rds->tp = true; in vivid_rds_gen_fill()
|
D | vivid-rds-gen.h | 43 bool tp; member
|
D | vivid-radio-common.c | 89 rds->tp = dev->radio_tx_rds_tp->cur.val; in vivid_radio_rds_init() 104 v4l2_ctrl_s_ctrl(dev->radio_rx_rds_tp, rds->tp); in vivid_radio_rds_init()
|
/linux-4.4.14/tools/perf/tests/ |
D | Build | 8 perf-y += openat-syscall-tp-fields.o 12 perf-y += evsel-tp-sched.o
|
/linux-4.4.14/Documentation/devicetree/bindings/arm/ |
D | nspire.txt | 6 Touchpad models should have "ti,nspire-tp"
|
/linux-4.4.14/arch/x86/xen/ |
D | time.c | 462 struct timespec tp; in xen_time_init() local 478 xen_read_wallclock(&tp); in xen_time_init() 479 do_settimeofday(&tp); in xen_time_init()
|
/linux-4.4.14/Documentation/ptp/ |
D | testptp.c | 184 int64_t t1, t2, tp; in main() local 499 tp = pctns(pct+2*i+1); in main() 502 offset = (t2 + t1) / 2 - tp; in main()
|