Home
last modified time | relevance | path

Searched refs:fcoeio (Results 1 – 4 of 4) sorted by relevance

/illumos-gate/usr/src/uts/common/io/fcoe/
H A Dfcoe.c111 static int fcoe_copyin_iocdata(intptr_t data, int mode, fcoeio_t **fcoeio,
113 static int fcoe_copyout_iocdata(intptr_t data, int mode, fcoeio_t *fcoeio,
562 fcoe_copyin_iocdata(intptr_t data, int mode, fcoeio_t **fcoeio, in fcoe_copyin_iocdata() argument
570 *fcoeio = kmem_zalloc(sizeof (fcoeio_t), KM_SLEEP); in fcoe_copyin_iocdata()
571 if (ddi_copyin((void *)data, *fcoeio, sizeof (fcoeio_t), mode) != 0) { in fcoe_copyin_iocdata()
576 if ((*fcoeio)->fcoeio_ilen > FCOEIO_MAX_BUF_LEN || in fcoe_copyin_iocdata()
577 (*fcoeio)->fcoeio_alen > FCOEIO_MAX_BUF_LEN || in fcoe_copyin_iocdata()
578 (*fcoeio)->fcoeio_olen > FCOEIO_MAX_BUF_LEN) { in fcoe_copyin_iocdata()
583 if ((*fcoeio)->fcoeio_ilen) { in fcoe_copyin_iocdata()
584 *ibuf = kmem_zalloc((*fcoeio)->fcoeio_ilen, KM_SLEEP); in fcoe_copyin_iocdata()
[all …]
H A Dfcoe_fc.c466 fcoe_delete_port(dev_info_t *parent, fcoeio_t *fcoeio, datalink_id_t linkid, in fcoe_delete_port() argument
474 fcoeio->fcoeio_status = FCOEIOE_MAC_NOT_FOUND; in fcoe_delete_port()
480 fcoeio->fcoeio_status = FCOEIOE_ALREADY; in fcoe_delete_port()
502 fcoeio->fcoeio_status = FCOEIOE_OFFLINE_FAILURE; in fcoe_delete_port()
/illumos-gate/usr/src/lib/libfcoe/common/
H A Dlibfcoe.c483 fcoeio_t fcoeio; in FCOE_CreatePort() local
549 (void) memset(&fcoeio, 0, sizeof (fcoeio)); in FCOE_CreatePort()
550 fcoeio.fcoeio_cmd = FCOEIO_CREATE_FCOE_PORT; in FCOE_CreatePort()
552 fcoeio.fcoeio_ilen = sizeof (param); in FCOE_CreatePort()
553 fcoeio.fcoeio_xfer = FCOEIO_XFER_WRITE; in FCOE_CreatePort()
554 fcoeio.fcoeio_ibuf = (uintptr_t)&param; in FCOE_CreatePort()
556 if (ioctl(fcoe_fd, FCOEIO_CMD, &fcoeio) != 0) { in FCOE_CreatePort()
557 switch (fcoeio.fcoeio_status) { in FCOE_CreatePort()
620 fcoeio_t fcoeio; in FCOE_DeletePort() local
651 (void) memset(&fcoeio, 0, sizeof (fcoeio)); in FCOE_DeletePort()
[all …]
/illumos-gate/usr/src/uts/common/sys/fcoe/
H A Dfcoeio.h82 typedef struct fcoeio { struct