Searched refs:csb (Results 1 - 4 of 4) sorted by relevance

/freebsd-current/usr.sbin/fstyp/
H A Dapfs.c84 struct nx_superblock *csb; local
88 csb = read_buf(fp, 0, sizeof(*csb));
89 if (csb == NULL)
93 if (strncmp(csb->nx_magic, "NXSB", 4) != 0 ||
94 csb->nx_o.o_oid != OID_NX_SUPERBLOCK ||
95 (csb->nx_o.o_type & OBJECT_TYPE_MASK) != OBJECT_TYPE_NX_SUPERBLOCK)
105 free(csb);
/freebsd-current/sys/net/
H A Dparavirt.h35 The guest allocates the shared Communication Status Block (csb) and
37 csb->csb_on enables the mode. If disabled, the device acts a regular one.
40 if possible. In particular (only mentioning csb mode below),
151 void paravirt_configure_csb(struct paravirt_csb** csb, uint32_t csbbal,
/freebsd-current/tests/sys/netmap/
H A Dctrl-api-test.c168 void *csb; /* CSB entries (atok and ktoa) */ member in struct:TestContext
1274 if (ctx->csb) {
1275 free(ctx->csb);
1277 ret = posix_memalign(&ctx->csb, sizeof(struct nm_csb_atok), csb_size);
1285 opt->csb_atok = (uintptr_t)ctx->csb;
1286 opt->csb_ktoa = (uintptr_t)(((uint8_t *)ctx->csb) +
2102 if (ctx->csb) {
2103 free(ctx->csb);
2104 ctx->csb = NULL;
/freebsd-current/sys/dev/netmap/
H A Dnetmap_kern.h2452 #define CSB_READ(csb, field, r) (get_user(r, &csb->field))
2453 #define CSB_WRITE(csb, field, v) (put_user(v, &csb->field))
2455 #define CSB_READ(csb, field, r) do { \
2458 v = fuword32(&csb->field); \
2462 #define CSB_WRITE(csb, field, v) do { \
2465 error = suword32(&csb->field, v); \

Completed in 112 milliseconds