Home
last modified time | relevance | path

Searched refs:frags (Results 1 – 25 of 36) sorted by relevance

12

/illumos-gate/usr/src/uts/common/io/xge/hal/xgehal/
H A Dxgehal-fifo-fp.c72 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 Dlm_send.c104 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 Dvmxnet3_tx.c162 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 Dvmxnet3.h83 uint16_t frags; member
/illumos-gate/usr/src/uts/common/io/bnx/570x/driver/common/lmdev/
H A Dbnx_lm_send.c29 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 Dbnx_lm_recv.c515 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 Dlm.h261 lm_frag_list_t *frags);
278 lm_frag_list_t *frags);
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dnblk.c44 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 Dnge_tx.c40 (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 Dpass5.c44 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 Dinode.c264 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 Dufs_alloc.c902 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 Dufs_trans.c437 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 Dufs_subr.c1313 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 Dsfe_util.h441 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 Dsfe.c192 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 Dmemcluster.c242 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 Dip.h14 uint16_t frags; member
/illumos-gate/usr/src/cmd/fs.d/ufs/mkfs/
H A Dmkfs.c4302 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 Dxgehal-fifo.h221 int frags; member
291 const int frags);
/illumos-gate/usr/src/cmd/fs.d/ufs/quot/
H A Dquot.c300 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 Dfs.h413 #define fragstoblks(fs, frags) /* calculates (frags / fs->fs_frag) */ \ argument
414 ((frags) >> (fs)->fs_fragshift)
H A Dufs2.h398 #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 Dfs.h589 #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 Dufs_fs.h675 #define fragstoblks(fs, frags) /* calculates (frags / fs->fs_frag) */ \ argument
676 ((frags) >> (fs)->fs_fragshift)

12