Home
last modified time | relevance | path

Searched refs:bsp (Results 1 – 22 of 22) sorted by relevance

/illumos-gate/usr/src/common/fs/
H A Dbootfsops.c275 bbootfs_fstat(int fd, struct bootstat *bsp) in bbootfs_fstat() argument
282 bsp->st_dev = 1; in bbootfs_fstat()
283 bsp->st_ino = fdp->fd_file->bf_ino; in bbootfs_fstat()
284 bsp->st_mode = 0444; in bbootfs_fstat()
285 bsp->st_nlink = 1; in bbootfs_fstat()
286 bsp->st_uid = bsp->st_gid = 0; in bbootfs_fstat()
287 bsp->st_rdev = 0; in bbootfs_fstat()
288 bsp->st_size = fdp->fd_file->bf_size; in bbootfs_fstat()
289 bsp->st_blksize = 1; in bbootfs_fstat()
290 bsp->st_blocks = fdp->fd_file->bf_size; in bbootfs_fstat()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dutil.c140 quote_internal_chars(ibp, obp, bsp) in quote_internal_chars() argument
143 int *bsp;
163 if (olen > *bsp)
167 *bsp = olen;
182 bufused = sm_strlcpy(obp, ibp, *bsp);
192 *bsp = olen;
/illumos-gate/usr/src/uts/common/io/
H A Dbridge.c827 bridge_stream_t *bsp; in stream_alloc() local
832 bsp = kmem_zalloc(sizeof (*bsp), KM_SLEEP); in stream_alloc()
833 bsp->bs_minor = mn; in stream_alloc()
834 return (bsp); in stream_alloc()
838 stream_free(bridge_stream_t *bsp) in stream_free() argument
840 mac_minor_rele(bsp->bs_minor); in stream_free()
841 kmem_free(bsp, sizeof (*bsp)); in stream_free()
846 stream_ref(bridge_stream_t *bsp) in stream_ref() argument
849 bsp->bs_taskq_cnt++; in stream_ref()
854 stream_unref(bridge_stream_t *bsp) in stream_unref() argument
[all …]
/illumos-gate/usr/src/cmd/bhyve/amd64/
H A Dbhyverun_machdep.c357 bhyve_start_vcpu(struct vcpu *vcpu, bool bsp, bool suspend) in bhyve_start_vcpu() argument
361 if (!bsp) { in bhyve_start_vcpu()
390 error = vm_set_run_state(vcpu, bsp ? VRS_RUN : VRS_HALT, 0); in bhyve_start_vcpu()
398 bhyve_init_platform(struct vmctx *ctx, struct vcpu *bsp __unused) in bhyve_init_platform()
433 bhyve_init_platform_late(struct vmctx *ctx, struct vcpu *bsp __unused) in bhyve_init_platform_late()
/illumos-gate/usr/src/cmd/bhyve/common/
H A Dbhyverun.h72 void bhyve_start_vcpu(struct vcpu *vcpu, bool bsp, bool suspend);
73 int bhyve_init_platform(struct vmctx *ctx, struct vcpu *bsp);
74 int bhyve_init_platform_late(struct vmctx *ctx, struct vcpu *bsp);
H A Dbhyverun.c680 struct vcpu *bsp; in main() local
723 bsp = vm_vcpu_open(ctx, BSP); in main()
724 max_vcpus = num_vcpus_allowed(ctx, bsp); in main()
731 bhyve_init_vcpu(bsp); in main()
739 vcpu_info[vcpuid].vcpu = bsp; in main()
773 if (bhyve_init_platform(ctx, bsp) != 0) in main()
822 if (vm_set_capability(bsp, VM_CAP_UNRESTRICTED_GUEST, 1)) { in main()
830 error = vcpu_reset(bsp); in main()
834 if (bhyve_init_platform_late(ctx, bsp) != 0) in main()
/illumos-gate/usr/src/cmd/fs.d/pcfs/mkfs/
H A Dmkfs_main.c134 static void swap_pack_grabsebpb(bpb_t *wbpb, struct _boot_sector *bsp);
135 static void swap_pack_bpb32cpy(struct _boot_sector32 *bsp, bpb_t *wbpb);
136 static void swap_pack_sebpbcpy(struct _boot_sector *bsp, bpb_t *wbpb);
137 static void swap_pack_bpbcpy(struct _boot_sector *bsp, bpb_t *wbpb);
153 static void write_fat32_bootstuff(int fd, boot_sector_t *bsp, bpb_t *wbpb,
166 static void write_bootsects(int fd, boot_sector_t *bsp, bpb_t *wbpb,
1508 swap_pack_bpbcpy(struct _boot_sector *bsp, bpb_t *wbpb) in swap_pack_bpbcpy() argument
1512 fillp = (uchar_t *)&(bsp->bs_filler[ORIG_BPB_START_INDEX]); in swap_pack_bpbcpy()
1538 swap_pack_bpb32cpy(struct _boot_sector32 *bsp, bpb_t *wbpb) in swap_pack_bpb32cpy() argument
1543 fillp = (uchar_t *)&(bsp->bs_filler[ORIG_BPB_START_INDEX]); in swap_pack_bpb32cpy()
[all …]
/illumos-gate/usr/src/cmd/fs.d/pcfs/common/
H A Dpcfs_common.h96 extern void swap_pack_grab32bpb(bpb_t *wbpb, struct _boot_sector *bsp);
97 extern void swap_pack_grabbpb(bpb_t *wbpb, struct _boot_sector *bsp);
H A Dpcfs_common.c60 void swap_pack_grab32bpb(bpb_t *wbpb, struct _boot_sector *bsp);
61 void swap_pack_grabbpb(bpb_t *wbpb, struct _boot_sector *bsp);
239 swap_pack_grabbpb(bpb_t *wbpb, struct _boot_sector *bsp) in swap_pack_grabbpb() argument
243 grabp = (uchar_t *)&(bsp->bs_filler[ORIG_BPB_START_INDEX]); in swap_pack_grabbpb()
284 swap_pack_grab32bpb(bpb_t *wbpb, struct _boot_sector *bsp) in swap_pack_grab32bpb() argument
288 grabp = (uchar_t *)&(bsp->bs_filler[BPB_32_START_INDEX]); in swap_pack_grab32bpb()
/illumos-gate/usr/src/uts/common/krtld/
H A Dbootrd.c125 BRD_FSTAT(struct boot_fs_ops *ops, int fd, struct bootstat *bsp) in BRD_FSTAT() argument
128 return (bbootfs_ops.fsw_fstat(fd & ~BFD_F_SYSTEM_BOOT, bsp)); in BRD_FSTAT()
130 return (ops->fsw_fstat(fd, bsp)); in BRD_FSTAT()
/illumos-gate/usr/src/uts/common/io/bge/
H A Dbge_send.c207 boolean_t bge_recycle(bge_t *bgep, bge_status_t *bsp);
211 bge_recycle(bge_t *bgep, bge_status_t *bsp) in bge_recycle() argument
227 ASSERT(srp->cons_index_p == SEND_INDEX_P(bsp, ring)); in bge_recycle()
371 bge_status_t *bsp; in bge_send_serial() local
388 bsp = DMA_VPTR(bgep->status_block); in bge_send_serial()
404 (void) bge_recycle(bgep, bsp); in bge_send_serial()
H A Dbge_recv2.c410 void bge_receive(bge_t *bgep, bge_status_t *bsp);
414 bge_receive(bge_t *bgep, bge_status_t *bsp) in bge_receive() argument
431 ASSERT(rrp->prod_index_p == RECV_INDEX_P(bsp, index)); in bge_receive()
H A Dbge_hw.h1962 #define SEND_INDEX_P(bsp, ring) (&(bsp)->index[(ring)^0].send_cons_index) argument
1963 #define RECV_INDEX_P(bsp, ring) (&(bsp)->index[(ring)^0].recv_prod_index) argument
1968 #define SEND_INDEX_P(bsp, ring) (&(bsp)->index[(ring)^1].send_cons_index) argument
1969 #define RECV_INDEX_P(bsp, ring) (&(bsp)->index[(ring)^1].recv_prod_index) argument
H A Dbge_main2.c2195 bge_status_t *bsp; local
2243 bsp = DMA_VPTR(bgep->status_block);
2244 brp->cons_index_p = &bsp->buff_cons_index[buff_cons_xref[ring]];
2295 bge_status_t *bsp; local
2322 bsp = DMA_VPTR(bgep->status_block);
2323 rrp->prod_index_p = RECV_INDEX_P(bsp, ring);
2356 bge_status_t *bsp; local
2388 bsp = DMA_VPTR(bgep->status_block);
2389 srp->cons_index_p = SEND_INDEX_P(bsp, ring);
H A Dbge_impl.h1290 void bge_receive(bge_t *bgep, bge_status_t *bsp);
1295 boolean_t bge_recycle(bge_t *bgep, bge_status_t *bsp);
H A Dbge_chip2.c5058 bge_status_t *bsp; in bge_status_sync() local
5071 bsp = DMA_VPTR(bgep->status_block); in bge_status_sync()
5072 *flags = bge_atomic_clr64(&bsp->flags_n_tag, bits); in bge_status_sync()
5151 bge_status_t *bsp; in bge_intr() local
5219 bsp = DMA_VPTR(bgep->status_block); in bge_intr()
5281 bge_receive(bgep, bsp); in bge_intr()
5282 (void) bge_recycle(bgep, bsp); in bge_intr()
5395 bge_status_t *bsp; in bge_factotum_stall_check() local
5420 bsp = DMA_VPTR(bgep->status_block); in bge_factotum_stall_check()
5421 if (dogval < bge_watchdog_count || bge_recycle(bgep, bsp)) in bge_factotum_stall_check()
/illumos-gate/usr/src/uts/common/os/
H A Ddamap.c948 bitset_t *bsp; in damap_lookup_all() local
962 bsp = kmem_alloc(sizeof (*bsp), KM_SLEEP); in damap_lookup_all()
963 bitset_init(bsp); in damap_lookup_all()
964 bitset_resize(bsp, mapsz); in damap_lookup_all()
965 bitset_copy(&mapp->dam_active_set, bsp); in damap_lookup_all()
967 if (bitset_in_set(bsp, i)) { in damap_lookup_all()
981 *id_listp = (damap_id_list_t)bsp; in damap_lookup_all()
986 bitset_fini(bsp); in damap_lookup_all()
987 kmem_free(bsp, sizeof (*bsp)); in damap_lookup_all()
H A Dsunddi.c9879 struct devi_busy *bsp = arg; in visit_dip() local
9881 ASSERT(bsp->callback); in visit_dip()
9887 return (bsp->callback(dip, bsp->arg, 0)); in visit_dip()
9890 if (mod_hash_find(bsp->dv_hash, dip, (mod_hash_val_t *)&dvbusy)) in visit_dip()
9896 if (mod_hash_find(bsp->s_hash, dip, (mod_hash_val_t *)&sbusy)) in visit_dip()
9908 return (bsp->callback(dip, bsp->arg, dvbusy)); in visit_dip()
9917 struct devi_busy *bsp = arg; in visit_snode() local
9934 if (mod_hash_remove(bsp->s_hash, dip, (mod_hash_val_t *)&sbusy)) in visit_snode()
9939 if (mod_hash_insert(bsp->s_hash, dip, (mod_hash_val_t)sbusy)) { in visit_snode()
9945 bsp->s_total += count; in visit_snode()
[all …]
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/
H A Dcfga_list.c680 struct bus_state *bsp = (struct bus_state *)arg; in get_bus_state() local
683 bsp->b_state = di_state(node); in get_bus_state()
684 bsp->b_retired = di_retired(node); in get_bus_state()
688 (void) strlcpy(bsp->iconnect_type, itype, 16); in get_bus_state()
690 bsp->iconnect_type[0] = '\0'; in get_bus_state()
/illumos-gate/usr/src/uts/common/io/scsi/targets/
H A Dsd.c12089 struct sd_mapblocksize_info *bsp; in sd_mapblocksize_iostart() local
12159 bsp = kmem_zalloc(sizeof (struct sd_mapblocksize_info), KM_SLEEP); in sd_mapblocksize_iostart()
12160 bsp->mbs_oprivate = xp->xb_private; in sd_mapblocksize_iostart()
12161 xp->xb_private = bsp; in sd_mapblocksize_iostart()
12218 bsp->mbs_wmp = sd_range_lock(un, start_block, end_block - 1, in sd_mapblocksize_iostart()
12267 bsp->mbs_copy_offset = (ssize_t)(first_byte - in sd_mapblocksize_iostart()
12269 ASSERT((bsp->mbs_copy_offset >= 0) && in sd_mapblocksize_iostart()
12270 (bsp->mbs_copy_offset < un->un_phy_blocksize)); in sd_mapblocksize_iostart()
12272 bsp->mbs_copy_offset = (ssize_t)(first_byte - in sd_mapblocksize_iostart()
12274 ASSERT((bsp->mbs_copy_offset >= 0) && in sd_mapblocksize_iostart()
[all …]
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dreadcf.c766 translate_dollars(ibp, obp, bsp) in translate_dollars() argument
769 int *bsp;
782 bp = quote_internal_chars(ibp, obp, bsp);
/illumos-gate/usr/src/lib/libsqlite/tool/
H A Dlemon.c773 struct symbol *bsp; /* Symbol following the dot in configuration "bcfp" */ local
793 bsp = bcfp->rp->rhs[bcfp->dot]; /* Get symbol after dot */
794 if( bsp!=sp ) continue; /* Must be same as for "cfp" */