Lines Matching refs:lh

119 int ldi_remove_event_handler(ldi_handle_t lh, ldi_callback_id_t id);
1672 ldi_close(ldi_handle_t lh, int flag, cred_t *cr) in ldi_close() argument
1674 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_close()
1681 if (lh == NULL) in ldi_close()
1704 (void) ldi_remove_event_handler(lh, (ldi_callback_id_t)lep); in ldi_close()
1718 LDI_OPENCLOSE((CE_WARN, "%s: lh=0x%p", "ldi close", (void *)lh)); in ldi_close()
1770 ldi_read(ldi_handle_t lh, struct uio *uiop, cred_t *credp) in ldi_read() argument
1772 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_read()
1777 if (lh == NULL) in ldi_read()
1793 ldi_write(ldi_handle_t lh, struct uio *uiop, cred_t *credp) in ldi_write() argument
1795 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_write()
1800 if (lh == NULL) in ldi_write()
1816 ldi_get_size(ldi_handle_t lh, uint64_t *sizep) in ldi_get_size() argument
1821 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_get_size()
1826 if ((lh == NULL) || (sizep == NULL)) in ldi_get_size()
1838 if ((ldi_get_otyp(lh, &otyp)) != 0) in ldi_get_size()
1842 if (ldi_prop_exists(lh, in ldi_get_size()
1845 drv_prop64 = ldi_prop_get_int64(lh, in ldi_get_size()
1848 blksize = ldi_prop_get_int(lh, in ldi_get_size()
1852 blksize = ldi_prop_get_int(lh, LDI_DEV_T_ANY | in ldi_get_size()
1872 if (ldi_prop_exists(lh, in ldi_get_size()
1875 value = ldi_prop_get_int(lh, in ldi_get_size()
1878 blksize = ldi_prop_get_int(lh, in ldi_get_size()
1882 blksize = ldi_prop_get_int(lh, LDI_DEV_T_ANY | in ldi_get_size()
1903 if (ldi_prop_exists(lh, in ldi_get_size()
1906 drv_prop64 = ldi_prop_get_int64(lh, in ldi_get_size()
1912 if (ldi_prop_exists(lh, in ldi_get_size()
1915 value = ldi_prop_get_int(lh, in ldi_get_size()
1926 ldi_ioctl(ldi_handle_t lh, int cmd, intptr_t arg, int mode, in ldi_ioctl() argument
1929 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_ioctl()
1934 if (lh == NULL) in ldi_ioctl()
1976 ldi_poll(ldi_handle_t lh, short events, int anyyet, short *reventsp, in ldi_poll() argument
1979 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_poll()
1984 if (lh == NULL) in ldi_poll()
2001 ldi_prop_op(ldi_handle_t lh, ddi_prop_op_t prop_op, in ldi_prop_op() argument
2004 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_prop_op()
2010 if ((lh == NULL) || (name == NULL) || (strlen(name) == 0)) in ldi_prop_op()
2043 ldi_strategy(ldi_handle_t lh, struct buf *bp) in ldi_strategy() argument
2045 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_strategy()
2048 if ((lh == NULL) || (bp == NULL)) in ldi_strategy()
2062 ldi_dump(ldi_handle_t lh, caddr_t addr, daddr_t blkno, int nblk) in ldi_dump() argument
2064 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_dump()
2067 if (lh == NULL) in ldi_dump()
2079 ldi_devmap(ldi_handle_t lh, devmap_cookie_t dhp, offset_t off, in ldi_devmap() argument
2082 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_devmap()
2085 if (lh == NULL) in ldi_devmap()
2097 ldi_aread(ldi_handle_t lh, struct aio_req *aio_reqp, cred_t *cr) in ldi_aread() argument
2099 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_aread()
2103 if (lh == NULL) in ldi_aread()
2125 ldi_awrite(ldi_handle_t lh, struct aio_req *aio_reqp, cred_t *cr) in ldi_awrite() argument
2127 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_awrite()
2131 if (lh == NULL) in ldi_awrite()
2153 ldi_putmsg(ldi_handle_t lh, mblk_t *smp) in ldi_putmsg() argument
2155 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_putmsg()
2158 if ((lh == NULL) || (smp == NULL)) in ldi_putmsg()
2181 ldi_getmsg(ldi_handle_t lh, mblk_t **rmp, timestruc_t *timeo) in ldi_getmsg() argument
2183 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_getmsg()
2190 if (lh == NULL) in ldi_getmsg()
2214 ldi_get_dev(ldi_handle_t lh, dev_t *devp) in ldi_get_dev() argument
2216 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_get_dev()
2218 if ((lh == NULL) || (devp == NULL)) in ldi_get_dev()
2226 ldi_get_otyp(ldi_handle_t lh, int *otyp) in ldi_get_otyp() argument
2228 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_get_otyp()
2230 if ((lh == NULL) || (otyp == NULL)) in ldi_get_otyp()
2238 ldi_get_devid(ldi_handle_t lh, ddi_devid_t *devid) in ldi_get_devid() argument
2240 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_get_devid()
2244 if ((lh == NULL) || (devid == NULL)) in ldi_get_devid()
2257 ldi_get_minor_name(ldi_handle_t lh, char **minor_name) in ldi_get_minor_name() argument
2259 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_get_minor_name()
2263 if ((lh == NULL) || (minor_name == NULL)) in ldi_get_minor_name()
2277 ldi_prop_lookup_int_array(ldi_handle_t lh, in ldi_prop_lookup_int_array() argument
2280 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_prop_lookup_int_array()
2286 if ((lh == NULL) || (name == NULL) || (strlen(name) == 0)) in ldi_prop_lookup_int_array()
2333 ldi_prop_lookup_int64_array(ldi_handle_t lh, in ldi_prop_lookup_int64_array() argument
2336 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_prop_lookup_int64_array()
2342 if ((lh == NULL) || (name == NULL) || (strlen(name) == 0)) in ldi_prop_lookup_int64_array()
2390 ldi_prop_lookup_string_array(ldi_handle_t lh, in ldi_prop_lookup_string_array() argument
2393 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_prop_lookup_string_array()
2399 if ((lh == NULL) || (name == NULL) || (strlen(name) == 0)) in ldi_prop_lookup_string_array()
2465 ldi_prop_lookup_string(ldi_handle_t lh, in ldi_prop_lookup_string() argument
2468 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_prop_lookup_string()
2474 if ((lh == NULL) || (name == NULL) || (strlen(name) == 0)) in ldi_prop_lookup_string()
2543 ldi_prop_lookup_byte_array(ldi_handle_t lh, in ldi_prop_lookup_byte_array() argument
2546 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_prop_lookup_byte_array()
2552 if ((lh == NULL) || (name == NULL) || (strlen(name) == 0)) in ldi_prop_lookup_byte_array()
2600 ldi_prop_get_int(ldi_handle_t lh, in ldi_prop_get_int() argument
2603 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_prop_get_int()
2609 if ((lh == NULL) || (name == NULL) || (strlen(name) == 0)) in ldi_prop_get_int()
2661 ldi_prop_get_int64(ldi_handle_t lh, in ldi_prop_get_int64() argument
2664 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_prop_get_int64()
2670 if ((lh == NULL) || (name == NULL) || (strlen(name) == 0)) in ldi_prop_get_int64()
2722 ldi_prop_exists(ldi_handle_t lh, uint_t flags, char *name) in ldi_prop_exists() argument
2724 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_prop_exists()
2730 if ((lh == NULL) || (name == NULL) || (strlen(name) == 0)) in ldi_prop_exists()
2774 ldi_get_eventcookie(ldi_handle_t lh, char *name, ddi_eventcookie_t *ecp) in ldi_get_eventcookie() argument
2776 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_get_eventcookie()
2782 if ((lh == NULL) || (name == NULL) || in ldi_get_eventcookie()
2813 ldi_add_event_handler(ldi_handle_t lh, ddi_eventcookie_t ec, in ldi_add_event_handler() argument
2817 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_add_event_handler()
2824 if ((lh == NULL) || (ec == NULL) || (handler == NULL) || (id == NULL)) in ldi_add_event_handler()
2868 ldi_remove_event_handler(ldi_handle_t lh, ldi_callback_id_t id) in ldi_remove_event_handler() argument
2873 if ((lh == NULL) || (id == NULL)) in ldi_remove_event_handler()
3076 ldi_ev_get_cookie(ldi_handle_t lh, char *evname, ldi_ev_cookie_t *cookiep) in ldi_ev_get_cookie() argument
3078 struct ldi_handle *handlep = (struct ldi_handle *)lh; in ldi_ev_get_cookie()
3089 if (lh == NULL || evname == NULL || in ldi_ev_get_cookie()
3166 ldi_ev_register_callbacks(ldi_handle_t lh, ldi_ev_cookie_t cookie, in ldi_ev_register_callbacks() argument
3169 struct ldi_handle *lhp = (struct ldi_handle *)lh; in ldi_ev_register_callbacks()
3178 if (lh == NULL || cookie == NULL || callb == NULL || id == NULL) { in ldi_ev_register_callbacks()