Lines Matching refs:mode

132 ibnex_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *credp,
140 return (ibnex_devctl(dev, cmd, arg, mode, credp, rvalp));
148 return (ibnex_ctl_get_api_ver(dev, cmd, arg, mode,
152 return (ibnex_ctl_get_hca_list(dev, cmd, arg, mode,
156 return (ibnex_ctl_query_hca(dev, cmd, arg, mode,
160 return (ibnex_ctl_query_hca_port(dev, cmd, arg, mode,
194 ibnex_devctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *credp,
220 IBTF_DPRINTF_L4("ibnex", "\tdevctl: cmd=%x, arg=%p, mode=%x, cred=%p, "
221 "\t\trval=%p dev=0x%x", cmd, arg, mode, credp, rvalp, dev);
280 if (ddi_model_convert_from(mode & FMODELS) == DDI_MODEL_ILP32) {
284 sizeof (ioc32), mode) != 0) {
299 mode) != 0) {
323 ioc.ap_id_len, mode) != 0) {
348 ioc.bufsiz, mode) != 0) {
364 ioc.bufsiz, mode) != 0) {
418 ioc.bufsiz, mode) != 0) {
432 ioc.bufsiz, mode) != 0) {
475 ioc.bufsiz, mode) != 0) {
488 ioc.bufsiz, mode) != 0) {
539 ioc.bufsiz, mode) != 0) {
551 ioc.bufsiz, mode) != 0) {
604 ioc.bufsiz, mode) != 0) {
617 ioc.bufsiz, mode) != 0) {
632 ioc.bufsiz, mode) != 0) {
659 ioc.bufsiz, mode) != 0) {
724 ioc.bufsiz, mode) != 0) {
736 ioc.buf, ioc.bufsiz, mode) != 0) {
858 if (!(mode & FWRITE)) {
859 IBTF_DPRINTF_L2("ibnex", "%s: invalid mode %x",
860 msg, mode);
965 if (!(mode & FWRITE)) {
966 IBTF_DPRINTF_L2("ibnex", "%s: invalid mode %x",
967 msg, mode);
2793 ibnex_ctl_get_api_ver(dev_t dev, int cmd, intptr_t arg, int mode,
2799 "mode=%x, cred=%p, rval=%p, dev=0x%x", cmd, arg, mode, credp,
2805 mode) != 0) {
2818 ibnex_ctl_get_hca_list(dev_t dev, int cmd, intptr_t arg, int mode,
2828 "mode=%x, cred=%p, rval=%p, dev=0x%x", cmd, arg, mode, credp,
2832 if (ddi_model_convert_from(mode & FMODELS) == DDI_MODEL_ILP32) {
2836 sizeof (ibnex_ctl_get_hca_list_32_t), mode) != 0) {
2850 sizeof (ibnex_ctl_get_hca_list_t), mode) != 0) {
2862 if (ddi_copyout(&nhcas, in_nhcasp, sizeof (uint_t), mode) != 0) {
2875 n * sizeof (ib_guid_t), mode) != 0) {
2958 ibnex_ctl_query_hca(dev_t dev, int cmd, intptr_t arg, int mode,
2973 "mode=%x, cred=%p, rval=%p, dev=0x%x", cmd, arg, mode, credp,
2977 if (ddi_model_convert_from(mode & FMODELS) == DDI_MODEL_ILP32) {
2982 sizeof (ibnex_ctl_query_hca_32_t), mode) != 0) {
2999 sizeof (ibnex_ctl_query_hca_t), mode) != 0) {
3024 if (ddi_model_convert_from(mode & FMODELS) == DDI_MODEL_ILP32) {
3033 sizeof (ibnex_ctl_hca_info_32_t), mode) != 0) {
3049 sizeof (ibnex_ctl_hca_info_t), mode) != 0) {
3060 hca_device_path_len, mode) != 0) {
3114 ibnex_ctl_query_hca_port(dev_t dev, int cmd, intptr_t arg, int mode,
3128 "mode=%x, cred=%p, rval=%p, dev=0x%x", cmd, arg, mode, credp,
3135 if (ddi_model_convert_from(mode & FMODELS) == DDI_MODEL_ILP32) {
3140 sizeof (ibnex_ctl_query_hca_port_32_t), mode) != 0) {
3164 sizeof (ibnex_ctl_query_hca_port_t), mode) != 0) {
3201 if (ddi_model_convert_from(mode & FMODELS) == DDI_MODEL_ILP32) {
3208 sizeof (ibnex_ctl_hca_port_info_32_t), mode) != 0 ||
3212 sgid_tbl_sz * sizeof (ib_gid_t), mode) != 0 ||
3216 pkey_tbl_sz * sizeof (ib_pkey_t), mode) != 0) {
3232 sizeof (ibnex_ctl_hca_port_info_t), mode) != 0 ||
3236 sgid_tbl_sz * sizeof (ib_gid_t), mode) != 0 ||
3240 pkey_tbl_sz * sizeof (ib_pkey_t), mode) != 0) {