Home
last modified time | relevance | path

Searched refs:ggio (Results 1 – 5 of 5) sorted by relevance

/freebsd/sbin/ggate/ggatel/
H A Dggatel.c92 struct g_gate_ctl_io ggio; in g_gatel_serve() local
102 ggio.gctl_version = G_GATE_VERSION; in g_gatel_serve()
103 ggio.gctl_unit = unit; in g_gatel_serve()
105 ggio.gctl_data = malloc(bsize); in g_gatel_serve()
109 ggio.gctl_length = bsize; in g_gatel_serve()
110 ggio.gctl_error = 0; in g_gatel_serve()
111 g_gate_ioctl(G_GATE_CMD_START, &ggio); in g_gatel_serve()
112 error = ggio.gctl_error; in g_gatel_serve()
118 free(ggio.gctl_data); in g_gatel_serve()
124 assert(ggio.gctl_cmd == BIO_DELETE || in g_gatel_serve()
[all …]
/freebsd/sys/geom/gate/
H A Dg_gate.c459 g_gate_create(struct g_gate_ctl_create *ggio) in g_gate_create() argument
469 if (ggio->gctl_mediasize <= 0) { in g_gate_create()
473 if (ggio->gctl_sectorsize <= 0) { in g_gate_create()
477 if (!powerof2(ggio->gctl_sectorsize)) { in g_gate_create()
481 if ((ggio->gctl_mediasize % ggio->gctl_sectorsize) != 0) { in g_gate_create()
485 if ((ggio->gctl_flags & G_GATE_FLAG_READONLY) != 0 && in g_gate_create()
486 (ggio->gctl_flags & G_GATE_FLAG_WRITEONLY) != 0) { in g_gate_create()
490 if (ggio->gctl_unit != G_GATE_UNIT_AUTO && in g_gate_create()
491 ggio->gctl_unit != G_GATE_NAME_GIVEN && in g_gate_create()
492 ggio->gctl_unit < 0) { in g_gate_create()
[all …]
/freebsd/sbin/ggate/ggatec/
H A Dggatec.c96 struct g_gate_ctl_io ggio; in send_thread() local
107 ggio.gctl_version = G_GATE_VERSION; in send_thread()
108 ggio.gctl_unit = unit; in send_thread()
109 ggio.gctl_data = malloc(buf_capacity); in send_thread()
110 if (ggio.gctl_data == NULL) { in send_thread()
116 ggio.gctl_length = buf_capacity; in send_thread()
117 ggio.gctl_error = 0; in send_thread()
118 g_gate_ioctl(G_GATE_CMD_START, &ggio); in send_thread()
119 error = ggio.gctl_error; in send_thread()
134 ggio.gctl_length); in send_thread()
[all …]
/freebsd/sbin/hastd/
H A Dprimary.c1101 reqlog(int loglevel, int debuglevel, struct g_gate_ctl_io *ggio, in reqlog() argument
1110 switch (ggio->gctl_cmd) { in reqlog()
1113 (uintmax_t)ggio->gctl_offset, (uintmax_t)ggio->gctl_length); in reqlog()
1117 (uintmax_t)ggio->gctl_offset, (uintmax_t)ggio->gctl_length); in reqlog()
1124 (uintmax_t)ggio->gctl_offset, (uintmax_t)ggio->gctl_length); in reqlog()
1128 (unsigned int)ggio->gctl_cmd); in reqlog()
1180 struct g_gate_ctl_io *ggio; in write_complete() local
1185 ggio = &hio->hio_ggio; in write_complete()
1186 PJDLOG_ASSERT(ggio->gctl_cmd == BIO_WRITE); in write_complete()
1205 if (ioctl(res->hr_ggatefd, G_GATE_CMD_DONE, ggio) == -1) in write_complete()
[all …]
/freebsd/sbin/ggate/shared/
H A Dggate.c202 struct g_gate_ctl_destroy ggio; in g_gate_destroy() local
204 ggio.gctl_version = G_GATE_VERSION; in g_gate_destroy()
205 ggio.gctl_unit = unit; in g_gate_destroy()
206 ggio.gctl_force = force; in g_gate_destroy()
207 g_gate_ioctl(G_GATE_CMD_DESTROY, &ggio); in g_gate_destroy()