Lines Matching defs:vldc_cmd
1333 vldc_opt_op_t vldc_cmd;
1337 if (ddi_copyin(arg, &vldc_cmd, sizeof (vldc_cmd), mode) != 0) {
1341 D1("vldc_ioctl_opt_op: op %d\n", vldc_cmd.opt_sel);
1343 switch (vldc_cmd.opt_sel) {
1347 if (vldc_cmd.op_sel == VLDC_OP_GET) {
1348 vldc_cmd.opt_val = vport->mtu;
1349 if (ddi_copyout(&vldc_cmd, arg,
1350 sizeof (vldc_cmd), mode) == -1) {
1354 new_mtu = vldc_cmd.opt_val;
1386 if (vldc_cmd.op_sel == VLDC_OP_GET) {
1387 vldc_cmd.opt_val = vport->status;
1388 if (ddi_copyout(&vldc_cmd, arg,
1389 sizeof (vldc_cmd), mode) == -1) {
1400 if (vldc_cmd.op_sel == VLDC_OP_GET) {
1401 vldc_cmd.opt_val = vport->ldc_mode;
1402 if (ddi_copyout(&vldc_cmd, arg,
1403 sizeof (vldc_cmd), mode) == -1) {
1408 rv = vldc_set_ldc_mode(vport, vldcp, vldc_cmd.opt_val);
1416 D1("vldc_ioctl_opt_op: unsupported op %d\n", vldc_cmd.opt_sel);