/illumos-gate/usr/src/uts/common/io/xge/hal/xgehal/ |
H A D | xgehal-fifo-fp.c | 72 txdl_priv->frags << 5 /* sizeof(xge_hal_fifo_txd_t) */, in __hal_fifo_dtr_post_single() 82 ctrl = XGE_HAL_TX_FIFO_LAST_TXD_NUM(txdl_priv->frags - 1); in __hal_fifo_dtr_post_single() 130 xge_hal_fifo_txd_t *txdp, int list_size, int frags) in __hal_fifo_txdl_free_many() argument 134 int invalid_frags = frags % list_size; in __hal_fifo_txdl_free_many() 138 txdp, frags, list_size); in __hal_fifo_txdl_free_many() 144 txdp, frags, list_size); in __hal_fifo_txdl_free_many() 151 xge_assert(frags); in __hal_fifo_txdl_free_many() 152 frags -= list_size; in __hal_fifo_txdl_free_many() 160 frags, list_size); in __hal_fifo_txdl_free_many() 164 xge_assert(frags == 0) in __hal_fifo_txdl_free_many() [all …]
|
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/ |
H A D | lm_send.c | 104 IN lm_frag_list_t *frags, in lm_pre_process_lso_packet() argument 117 for(cnt = 0; cnt < frags->cnt; cnt++) in lm_pre_process_lso_packet() 120 sum_frag_size += (u16_t)frags->frag_arr[cnt].size; in lm_pre_process_lso_packet() 137 IN lm_frag_list_t *frags, in lm_process_lso_packet() argument 197 lm_handle_lso_split(frags->frag_arr[0].addr, in lm_process_lso_packet() 213 for(cnt = 1; cnt < frags->cnt; cnt++) in lm_process_lso_packet() 346 IN lm_frag_list_t *frags, in lm_copy_packet_to_coalesce_buffer() argument 357 CHK_NULL(lmpkt) || CHK_NULL(frags))) in lm_copy_packet_to_coalesce_buffer() 364 frag = &frags->frag_arr[0]; in lm_copy_packet_to_coalesce_buffer() 365 for (cnt = 0; cnt < frags->cnt; cnt++, frag++) { in lm_copy_packet_to_coalesce_buffer() [all …]
|
/illumos-gate/usr/src/uts/intel/io/vmxnet3s/ |
H A D | vmxnet3_tx.c | 162 unsigned int frags = 0, totLen = 0; in vmxnet3_tx_one() local 207 ASSERT(cmdRing->avail - frags); in vmxnet3_tx_one() 209 if (frags >= cmdRing->size - 1 || in vmxnet3_tx_one() 211 frags >= VMXNET3_MAX_TXD_PER_PKT)) { in vmxnet3_tx_one() 213 "overfragmented mp (%u)\n", frags); in vmxnet3_tx_one() 219 if (cmdRing->avail - frags <= 1) { in vmxnet3_tx_one() 233 frags++; in vmxnet3_tx_one() 288 txq->metaRing[eopIdx].frags = frags; in vmxnet3_tx_one() 289 cmdRing->avail -= frags; in vmxnet3_tx_one() 450 ASSERT(eopMetaDesc->frags); in vmxnet3_tx_complete() [all …]
|
H A D | vmxnet3.h | 83 uint16_t frags; member
|
/illumos-gate/usr/src/uts/common/io/bnx/570x/driver/common/lmdev/ |
H A D | bnx_lm_send.c | 29 lm_frag_list_t *frags) in lm_send_packet() argument 65 if(frags->cnt == 0) in lm_send_packet() 74 packet->u1.tx.dbg_frag_cnt = (u16_t) frags->cnt; in lm_send_packet() 79 if(frags->cnt > txq->bd_left) in lm_send_packet() 88 txq->bd_left -= (u16_t) frags->cnt; in lm_send_packet() 201 frag = frags->frag_arr; in lm_send_packet() 217 for(cnt = 0; cnt < frags->cnt; cnt++) in lm_send_packet() 249 if(cnt+1 < frags->cnt) in lm_send_packet() 283 packet->u1.tx.bd_used = (u16_t) frags->cnt; in lm_send_packet() 334 lm_frag_list_t *frags) in lm_send_packet() argument [all …]
|
H A D | bnx_lm_recv.c | 515 lm_frag_list_t *frags) in lm_post_buffers() argument 557 DbgBreakIf(frags->cnt != 2); in lm_post_buffers() 558 DbgBreakIf(frags->frag_arr[0].size < rxq->vmq_lookahead_size); in lm_post_buffers() 562 frags->frag_arr[0].addr.as_u64, in lm_post_buffers() 563 frags->frag_arr[0].size); in lm_post_buffers() 565 rxq->prod_bseq += frags->frag_arr[0].size; in lm_post_buffers() 572 frags->frag_arr[1].addr.as_u64, in lm_post_buffers() 573 frags->frag_arr[1].size); in lm_post_buffers() 574 rxq->prod_bseq += frags->frag_arr[1].size; in lm_post_buffers() 578 DbgBreakIf(frags->cnt != 1); in lm_post_buffers() [all …]
|
H A D | lm.h | 261 lm_frag_list_t *frags); 278 lm_frag_list_t *frags);
|
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | nblk.c | 44 fsblkcnt_t frags = 0; in nblk() local 68 frags = (frsize > 0) ? in nblk() 79 if (!frags) in nblk() 82 tot = howmany(frags, DEV_BSIZE); in nblk()
|
/illumos-gate/usr/src/uts/common/io/nge/ |
H A D | nge_tx.c | 40 (sd)->frags = 0; \ 568 srp->sw_sbds[j].frags = (uint32_t)fragno; in nge_send_mapped() 598 uint32_t frags = 0; in nge_send() local 614 for (frags = 0, bp = mp; bp != NULL; bp = bp->b_cont) { in nge_send() 617 frags++; in nge_send() 625 (frags <= NGE_MAP_FRAGS) && in nge_send() 626 (srp->tx_free > frags * NGE_MAX_COOKIES)) { in nge_send() 627 status = nge_send_mapped(ngep, mp, frags); in nge_send()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | pass5.c | 44 int32_t c, blk, frags; in pass5() local 238 frags = 0; in pass5() 243 frags++; in pass5() 245 if (frags == fs->fs_frag) { in pass5() 252 } else if (frags > 0) { in pass5() 253 newcg->cg_cs.cs_nffree += frags; in pass5()
|
H A D | inode.c | 264 int ret, i, frags; in ckinode_common() local 306 frags = howmany((int)dp->di_size, sblock.fs_fsize) % in ckinode_common() 308 if (frags == 0) in ckinode_common() 309 frags = sblock.fs_frag; in ckinode_common() 311 frags); in ckinode_common()
|
/illumos-gate/usr/src/uts/common/fs/ufs/ |
H A D | ufs_alloc.c | 902 int frags, bbase; in fragextend() local 907 frags = numfrags(fs, nsize); in fragextend() 909 if (bbase > fragnum(fs, (bprev + frags - 1))) { in fragextend() 925 for (i = numfrags(fs, osize); i < frags; i++) { in fragextend() 946 for (i = frags; i < fs->fs_frag - bbase; i++) in fragextend() 952 if (i != frags) in fragextend() 953 cgp->cg_frsum[i - frags]++; in fragextend() 954 for (i = numfrags(fs, osize); i < frags; i++) { in fragextend() 982 int bno, frags; in alloccg() local 1030 frags = numfrags(fs, size); in alloccg() [all …]
|
H A D | ufs_trans.c | 437 daddr_t frags = dbtofsb(ip->i_fs, ip->i_blocks); in ufs_trans_mata_iget() local 440 if (frags && ((ifmt == IFDIR) || (ifmt == IFSHAD) || in ufs_trans_mata_iget() 442 ufs_trans_mata_direct(ip, &frags, &ip->i_db[0], NDADDR); in ufs_trans_mata_iget() 444 if (frags) in ufs_trans_mata_iget() 445 ufs_trans_mata_direct(ip, &frags, &ip->i_ib[0], NIADDR); in ufs_trans_mata_iget() 447 for (i = 0; i < NIADDR && frags; ++i) in ufs_trans_mata_iget() 449 ufs_trans_mata_indir(ip, &frags, ip->i_ib[i], i); in ufs_trans_mata_iget()
|
H A D | ufs_subr.c | 1313 daddr_t frags; /* frags of summary info to read */ in ufs_getsummaryinfo() local 1325 frags = howmany(fs->fs_cssize, fs->fs_fsize); in ufs_getsummaryinfo() 1347 for (i = 0; i < frags; i += fs->fs_frag) { in ufs_getsummaryinfo() 1348 if (i + fs->fs_frag > frags) in ufs_getsummaryinfo() 1353 size = (frags - i) * fs->fs_fsize; in ufs_getsummaryinfo() 1390 daddr_t frags; /* frags of summary info to write */ in ufs_putsummaryinfo() local 1409 frags = howmany(fs->fs_cssize, fs->fs_fsize); in ufs_putsummaryinfo() 1413 for (error = 0, i = 0; (i < frags) && (error == 0); i += fs->fs_frag) { in ufs_putsummaryinfo() 1414 if (i + fs->fs_frag > frags) { in ufs_putsummaryinfo() 1419 size = (frags - i) * fs->fs_fsize; in ufs_putsummaryinfo()
|
/illumos-gate/usr/src/uts/common/io/sfe/ |
H A D | sfe_util.h | 441 int frags, uint64_t flag); 475 void (*gc_tx_start) (struct gem_dev *dp, int slot, int frags); 477 ddi_dma_cookie_t *dmacookie, int frags); 478 void (*gc_rx_start)(struct gem_dev *dp, int slot, int frags); 487 (struct gem_dev *dp, int slot, int frags);
|
H A D | sfe.c | 192 ddi_dma_cookie_t *dmacookie, int frags, uint64_t flags); 195 ddi_dma_cookie_t *dmacookie, int frags); 1104 ddi_dma_cookie_t *dmacookie, int frags, uint64_t flags) in sfe_tx_desc_write() argument 1116 dp->tx_desc_tail, slot, frags, flags); in sfe_tx_desc_write() 1118 for (i = 0; i < frags; i++) { in sfe_tx_desc_write() 1132 ASSERT(frags == 1); in sfe_tx_desc_write() 1144 return (frags); in sfe_tx_desc_write() 1175 ddi_dma_cookie_t *dmacookie, int frags) in sfe_rx_desc_write() argument 1183 ASSERT(frags == 1); in sfe_rx_desc_write() 1187 dp->name, __func__, dp->rx_active_tail, slot, frags); in sfe_rx_desc_write() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/isc/ |
H A D | memcluster.c | 242 int i, frags; in __memget_record() local 284 frags = total_size / new_size; in __memget_record() 286 stats[new_size].freefrags += frags; in __memget_record() 290 for (i = 0; i < (frags - 1); i++) { in __memget_record()
|
/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | ip.h | 14 uint16_t frags; member
|
/illumos-gate/usr/src/cmd/fs.d/ufs/mkfs/ |
H A D | mkfs.c | 4302 long frags; /* number of frags */ member 4375 if (frag != cfp->ofrag + cfp->frags) in addcsfrag() 4377 cfp->frags++; in addcsfrag() 4388 cfp->frags = 1; in addcsfrag() 4468 daddr32_t frags; in findcsfragino() local 4486 frags = dbtofsb(&sblock, dp->di_blocks); in findcsfragino() 4488 checkdirect((ino_t)i, &frags, &dp->di_db[0], NDADDR+NIADDR); in findcsfragino() 4489 for (j = 0; j < NIADDR && frags; ++j) { in findcsfragino() 4492 checkindirect((ino_t)i, &frags, in findcsfragino() 4495 checkindirect((ino_t)i, &frags, in findcsfragino() [all …]
|
/illumos-gate/usr/src/uts/common/io/xge/hal/include/ |
H A D | xgehal-fifo.h | 221 int frags; member 291 const int frags);
|
/illumos-gate/usr/src/cmd/fs.d/ufs/quot/ |
H A D | quot.c | 300 long blks, frags, size; in qacct() local 319 frags = blks * sblock.fs_frag + in qacct() 327 size = (long)((offset_t)frags * (offset_t)sblock.fs_fsize / 1024); in qacct()
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | fs.h | 413 #define fragstoblks(fs, frags) /* calculates (frags / fs->fs_frag) */ \ argument 414 ((frags) >> (fs)->fs_fragshift)
|
H A D | ufs2.h | 398 #define fragstoblks(fs, frags) /* calculates (frags / fs->fs_frag) */ \ argument 399 ((frags) >> (fs)->fs_fragshift)
|
/illumos-gate/usr/src/boot/sys/ufs/ffs/ |
H A D | fs.h | 589 #define fragstoblks(fs, frags) /* calculates (frags / fs->fs_frag) */ \ argument 590 ((frags) >> (fs)->fs_fragshift)
|
/illumos-gate/usr/src/uts/common/sys/fs/ |
H A D | ufs_fs.h | 675 #define fragstoblks(fs, frags) /* calculates (frags / fs->fs_frag) */ \ argument 676 ((frags) >> (fs)->fs_fragshift)
|