Lines Matching refs:lh
119 int ldi_remove_event_handler(ldi_handle_t lh, ldi_callback_id_t id);
1689 ldi_close(ldi_handle_t lh, int flag, cred_t *cr) in ldi_close() argument
1691 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_close()
1698 if (lh == NULL) in ldi_close()
1721 (void) ldi_remove_event_handler(lh, (ldi_callback_id_t)lep); in ldi_close()
1735 LDI_OPENCLOSE((CE_WARN, "%s: lh=0x%p", "ldi close", (void *)lh)); in ldi_close()
1787 ldi_read(ldi_handle_t lh, struct uio *uiop, cred_t *credp) in ldi_read() argument
1789 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_read()
1794 if (lh == NULL) in ldi_read()
1810 ldi_write(ldi_handle_t lh, struct uio *uiop, cred_t *credp) in ldi_write() argument
1812 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_write()
1817 if (lh == NULL) in ldi_write()
1833 ldi_get_size(ldi_handle_t lh, uint64_t *sizep) in ldi_get_size() argument
1838 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_get_size()
1843 if ((lh == NULL) || (sizep == NULL)) in ldi_get_size()
1855 if ((ldi_get_otyp(lh, &otyp)) != 0) in ldi_get_size()
1859 if (ldi_prop_exists(lh, in ldi_get_size()
1862 drv_prop64 = ldi_prop_get_int64(lh, in ldi_get_size()
1865 blksize = ldi_prop_get_int(lh, in ldi_get_size()
1869 blksize = ldi_prop_get_int(lh, LDI_DEV_T_ANY | in ldi_get_size()
1889 if (ldi_prop_exists(lh, in ldi_get_size()
1892 value = ldi_prop_get_int(lh, in ldi_get_size()
1895 blksize = ldi_prop_get_int(lh, in ldi_get_size()
1899 blksize = ldi_prop_get_int(lh, LDI_DEV_T_ANY | in ldi_get_size()
1920 if (ldi_prop_exists(lh, in ldi_get_size()
1923 drv_prop64 = ldi_prop_get_int64(lh, in ldi_get_size()
1929 if (ldi_prop_exists(lh, in ldi_get_size()
1932 value = ldi_prop_get_int(lh, in ldi_get_size()
1943 ldi_ioctl(ldi_handle_t lh, int cmd, intptr_t arg, int mode, in ldi_ioctl() argument
1946 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_ioctl()
1951 if (lh == NULL) in ldi_ioctl()
1993 ldi_poll(ldi_handle_t lh, short events, int anyyet, short *reventsp, in ldi_poll() argument
1996 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_poll()
2001 if (lh == NULL) in ldi_poll()
2018 ldi_prop_op(ldi_handle_t lh, ddi_prop_op_t prop_op, in ldi_prop_op() argument
2021 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_prop_op()
2027 if ((lh == NULL) || (name == NULL) || (strlen(name) == 0)) in ldi_prop_op()
2060 ldi_strategy(ldi_handle_t lh, struct buf *bp) in ldi_strategy() argument
2062 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_strategy()
2065 if ((lh == NULL) || (bp == NULL)) in ldi_strategy()
2079 ldi_dump(ldi_handle_t lh, caddr_t addr, daddr_t blkno, int nblk) in ldi_dump() argument
2081 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_dump()
2084 if (lh == NULL) in ldi_dump()
2096 ldi_devmap(ldi_handle_t lh, devmap_cookie_t dhp, offset_t off, in ldi_devmap() argument
2099 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_devmap()
2102 if (lh == NULL) in ldi_devmap()
2114 ldi_aread(ldi_handle_t lh, struct aio_req *aio_reqp, cred_t *cr) in ldi_aread() argument
2116 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_aread()
2120 if (lh == NULL) in ldi_aread()
2142 ldi_awrite(ldi_handle_t lh, struct aio_req *aio_reqp, cred_t *cr) in ldi_awrite() argument
2144 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_awrite()
2148 if (lh == NULL) in ldi_awrite()
2170 ldi_putmsg(ldi_handle_t lh, mblk_t *smp) in ldi_putmsg() argument
2172 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_putmsg()
2175 if ((lh == NULL) || (smp == NULL)) in ldi_putmsg()
2198 ldi_getmsg(ldi_handle_t lh, mblk_t **rmp, timestruc_t *timeo) in ldi_getmsg() argument
2200 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_getmsg()
2207 if (lh == NULL) in ldi_getmsg()
2231 ldi_get_dev(ldi_handle_t lh, dev_t *devp) in ldi_get_dev() argument
2233 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_get_dev()
2235 if ((lh == NULL) || (devp == NULL)) in ldi_get_dev()
2243 ldi_get_otyp(ldi_handle_t lh, int *otyp) in ldi_get_otyp() argument
2245 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_get_otyp()
2247 if ((lh == NULL) || (otyp == NULL)) in ldi_get_otyp()
2255 ldi_get_devid(ldi_handle_t lh, ddi_devid_t *devid) in ldi_get_devid() argument
2257 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_get_devid()
2261 if ((lh == NULL) || (devid == NULL)) in ldi_get_devid()
2274 ldi_get_minor_name(ldi_handle_t lh, char **minor_name) in ldi_get_minor_name() argument
2276 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_get_minor_name()
2280 if ((lh == NULL) || (minor_name == NULL)) in ldi_get_minor_name()
2294 ldi_prop_lookup_int_array(ldi_handle_t lh, in ldi_prop_lookup_int_array() argument
2297 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_prop_lookup_int_array()
2303 if ((lh == NULL) || (name == NULL) || (strlen(name) == 0)) in ldi_prop_lookup_int_array()
2350 ldi_prop_lookup_int64_array(ldi_handle_t lh, in ldi_prop_lookup_int64_array() argument
2353 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_prop_lookup_int64_array()
2359 if ((lh == NULL) || (name == NULL) || (strlen(name) == 0)) in ldi_prop_lookup_int64_array()
2407 ldi_prop_lookup_string_array(ldi_handle_t lh, in ldi_prop_lookup_string_array() argument
2410 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_prop_lookup_string_array()
2416 if ((lh == NULL) || (name == NULL) || (strlen(name) == 0)) in ldi_prop_lookup_string_array()
2482 ldi_prop_lookup_string(ldi_handle_t lh, in ldi_prop_lookup_string() argument
2485 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_prop_lookup_string()
2491 if ((lh == NULL) || (name == NULL) || (strlen(name) == 0)) in ldi_prop_lookup_string()
2560 ldi_prop_lookup_byte_array(ldi_handle_t lh, in ldi_prop_lookup_byte_array() argument
2563 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_prop_lookup_byte_array()
2569 if ((lh == NULL) || (name == NULL) || (strlen(name) == 0)) in ldi_prop_lookup_byte_array()
2617 ldi_prop_get_int(ldi_handle_t lh, in ldi_prop_get_int() argument
2620 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_prop_get_int()
2626 if ((lh == NULL) || (name == NULL) || (strlen(name) == 0)) in ldi_prop_get_int()
2678 ldi_prop_get_int64(ldi_handle_t lh, in ldi_prop_get_int64() argument
2681 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_prop_get_int64()
2687 if ((lh == NULL) || (name == NULL) || (strlen(name) == 0)) in ldi_prop_get_int64()
2739 ldi_prop_exists(ldi_handle_t lh, uint_t flags, char *name) in ldi_prop_exists() argument
2741 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_prop_exists()
2747 if ((lh == NULL) || (name == NULL) || (strlen(name) == 0)) in ldi_prop_exists()
2791 ldi_get_eventcookie(ldi_handle_t lh, char *name, ddi_eventcookie_t *ecp) in ldi_get_eventcookie() argument
2793 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_get_eventcookie()
2799 if ((lh == NULL) || (name == NULL) || in ldi_get_eventcookie()
2830 ldi_add_event_handler(ldi_handle_t lh, ddi_eventcookie_t ec, in ldi_add_event_handler() argument
2834 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_add_event_handler()
2841 if ((lh == NULL) || (ec == NULL) || (handler == NULL) || (id == NULL)) in ldi_add_event_handler()
2885 ldi_remove_event_handler(ldi_handle_t lh, ldi_callback_id_t id) in ldi_remove_event_handler() argument
2890 if ((lh == NULL) || (id == NULL)) in ldi_remove_event_handler()
3093 ldi_ev_get_cookie(ldi_handle_t lh, char *evname, ldi_ev_cookie_t *cookiep) in ldi_ev_get_cookie() argument
3095 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_ev_get_cookie()
3106 if (lh == NULL || evname == NULL || in ldi_ev_get_cookie()
3183 ldi_ev_register_callbacks(ldi_handle_t lh, ldi_ev_cookie_t cookie, in ldi_ev_register_callbacks() argument
3186 struct ldi_handle *lhp = (struct ldi_handle *)lh; in ldi_ev_register_callbacks()
3195 if (lh == NULL || cookie == NULL || callb == NULL || id == NULL) { in ldi_ev_register_callbacks()