/external/wpa_supplicant_8/src/drivers/ |
D | driver_roboswitch.c | 86 struct wpa_driver_roboswitch_data *drv, u8 reg) in wpa_driver_roboswitch_mdio_read() argument 88 struct mii_ioctl_data *mii = if_mii(&drv->ifr); in wpa_driver_roboswitch_mdio_read() 93 if (ioctl(drv->fd, SIOCGMIIREG, &drv->ifr) < 0) { in wpa_driver_roboswitch_mdio_read() 103 struct wpa_driver_roboswitch_data *drv, u8 reg, u16 val) in wpa_driver_roboswitch_mdio_write() argument 105 struct mii_ioctl_data *mii = if_mii(&drv->ifr); in wpa_driver_roboswitch_mdio_write() 111 if (ioctl(drv->fd, SIOCSMIIREG, &drv->ifr) < 0) { in wpa_driver_roboswitch_mdio_write() 118 static int wpa_driver_roboswitch_reg(struct wpa_driver_roboswitch_data *drv, in wpa_driver_roboswitch_reg() argument 124 wpa_driver_roboswitch_mdio_write(drv, ROBO_MII_PAGE, in wpa_driver_roboswitch_reg() 127 wpa_driver_roboswitch_mdio_write(drv, ROBO_MII_ADDR, (reg << 8) | op); in wpa_driver_roboswitch_reg() 131 if ((wpa_driver_roboswitch_mdio_read(drv, ROBO_MII_ADDR) & 3) in wpa_driver_roboswitch_reg() [all …]
|
D | driver_macsec_linux.c | 36 struct macsec_drv_data *drv; member 131 static int init_genl_ctx(struct macsec_drv_data *drv) in init_genl_ctx() argument 133 struct macsec_genl_ctx *ctx = &drv->ctx; in init_genl_ctx() 154 ctx->cb_arg.drv = drv; in init_genl_ctx() 168 static int try_commit(struct macsec_drv_data *drv) in try_commit() argument 172 if (!drv->sk) in try_commit() 175 if (!drv->link) in try_commit() 178 if (drv->controlled_port_enabled_set) { in try_commit() 183 drv->ifname, drv->controlled_port_enabled); in try_commit() 187 rtnl_link_set_name(change, drv->ifname); in try_commit() [all …]
|
D | driver_wext.c | 37 static int wpa_driver_wext_finish_drv_init(struct wpa_driver_wext_data *drv); 38 static void wpa_driver_wext_disconnect(struct wpa_driver_wext_data *drv); 42 int wpa_driver_wext_set_auth_param(struct wpa_driver_wext_data *drv, in wpa_driver_wext_set_auth_param() argument 49 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_auth_param() 53 if (ioctl(drv->ioctl_sock, SIOCSIWAUTH, &iwr) < 0) { in wpa_driver_wext_set_auth_param() 74 struct wpa_driver_wext_data *drv = priv; in wpa_driver_wext_get_bssid() local 79 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_get_bssid() 81 if (ioctl(drv->ioctl_sock, SIOCGIWAP, &iwr) < 0) { in wpa_driver_wext_get_bssid() 99 struct wpa_driver_wext_data *drv = priv; in wpa_driver_wext_set_bssid() local 104 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_bssid() [all …]
|
D | driver_macsec_qca.c | 85 static void __macsec_drv_init(struct macsec_qca_data *drv) in __macsec_drv_init() argument 91 wpa_printf(MSG_INFO, "%s: secy_id=%d", __func__, drv->secy_id); in __macsec_drv_init() 94 ret = nss_macsec_secy_en_set(drv->secy_id, true); in __macsec_drv_init() 98 ret = nss_macsec_secy_sc_sa_mapping_mode_set(drv->secy_id, in __macsec_drv_init() 109 ret = nss_macsec_secy_rx_ctl_filt_set(drv->secy_id, 0, &rx_ctl_filt); in __macsec_drv_init() 118 ret = nss_macsec_secy_tx_ctl_filt_set(drv->secy_id, 0, &tx_ctl_filt); in __macsec_drv_init() 124 static void __macsec_drv_deinit(struct macsec_qca_data *drv) in __macsec_drv_deinit() argument 126 nss_macsec_secy_en_set(drv->secy_id, false); in __macsec_drv_deinit() 127 nss_macsec_secy_rx_sc_del_all(drv->secy_id); in __macsec_drv_deinit() 128 nss_macsec_secy_tx_sc_del_all(drv->secy_id); in __macsec_drv_deinit() [all …]
|
D | driver_bsd.c | 82 struct bsd_driver_data *drv; in bsd_get_drvindex() local 84 dl_list_for_each(drv, &global->ifaces, struct bsd_driver_data, list) { in bsd_get_drvindex() 85 if (drv->ifindex == ifindex) in bsd_get_drvindex() 86 return drv; in bsd_get_drvindex() 95 struct bsd_driver_data *drv; in bsd_get_drvname() local 97 dl_list_for_each(drv, &global->ifaces, struct bsd_driver_data, list) { in bsd_get_drvname() 98 if (os_strcmp(drv->ifname, ifname) == 0) in bsd_get_drvname() 99 return drv; in bsd_get_drvname() 107 struct bsd_driver_data *drv = priv; in bsd_set80211() local 110 if (drv->ifindex == 0 || drv->if_removed) in bsd_set80211() [all …]
|
D | driver_ndis.c | 41 int wpa_driver_register_event_cb(struct wpa_driver_ndis_data *drv); 47 static void wpa_driver_ndis_poll(void *drv); 49 static int wpa_driver_ndis_adapter_init(struct wpa_driver_ndis_data *drv); 50 static int wpa_driver_ndis_adapter_open(struct wpa_driver_ndis_data *drv); 51 static void wpa_driver_ndis_adapter_close(struct wpa_driver_ndis_data *drv); 451 static int ndis_get_oid(struct wpa_driver_ndis_data *drv, unsigned int oid, in ndis_get_oid() argument 466 o->ptcDeviceName = drv->adapter_name; in ndis_get_oid() 468 if (!DeviceIoControl(drv->ndisuio, IOCTL_NDISUIO_QUERY_OID_VALUE, in ndis_get_oid() 506 if (!PacketRequest(drv->adapter, FALSE, o)) { in ndis_get_oid() 526 static int ndis_set_oid(struct wpa_driver_ndis_data *drv, unsigned int oid, in ndis_set_oid() argument [all …]
|
D | driver_nl80211.c | 164 wpa_driver_nl80211_finish_drv_init(struct wpa_driver_nl80211_data *drv, 178 static void add_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx, 180 static void del_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx, 182 static int have_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx, 187 static int nl80211_disable_11b_rates(struct wpa_driver_nl80211_data *drv, 190 static int nl80211_leave_ibss(struct wpa_driver_nl80211_data *drv, 245 struct i802_bss * get_bss_ifindex(struct wpa_driver_nl80211_data *drv, in get_bss_ifindex() argument 250 for (bss = drv->first_bss; bss; bss = bss->next) { in get_bss_ifindex() 265 void nl80211_mark_disconnected(struct wpa_driver_nl80211_data *drv) in nl80211_mark_disconnected() argument 267 if (drv->associated) in nl80211_mark_disconnected() [all …]
|
D | driver_hostap.c | 58 static void handle_data(struct hostap_driver_data *drv, u8 *buf, size_t len, in handle_data() argument 82 wpa_supplicant_event(drv->hapd, EVENT_RX_FROM_UNKNOWN, &event); in handle_data() 109 drv_event_eapol_rx(drv->hapd, sa, pos, left); in handle_data() 119 static void handle_tx_callback(struct hostap_driver_data *drv, u8 *buf, in handle_tx_callback() argument 136 wpa_supplicant_event(drv->hapd, EVENT_TX_STATUS, &event); in handle_tx_callback() 140 static void handle_frame(struct hostap_driver_data *drv, u8 *buf, size_t len) in handle_frame() argument 172 handle_tx_callback(drv, buf, data_len, ver == 2 ? 1 : 0); in handle_frame() 184 wpa_supplicant_event(drv->hapd, EVENT_RX_MGMT, &event); in handle_frame() 191 handle_data(drv, buf, data_len, stype); in handle_frame() 202 struct hostap_driver_data *drv = eloop_ctx; in handle_read() local [all …]
|
D | driver_wired.c | 168 static int wired_init_sockets(struct wpa_driver_wired_data *drv, u8 *own_addr) in wired_init_sockets() argument 176 drv->common.sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_PAE)); in wired_init_sockets() 177 if (drv->common.sock < 0) { in wired_init_sockets() 183 if (eloop_register_read_sock(drv->common.sock, handle_read, in wired_init_sockets() 184 drv->common.ctx, NULL)) { in wired_init_sockets() 190 os_strlcpy(ifr.ifr_name, drv->common.ifname, sizeof(ifr.ifr_name)); in wired_init_sockets() 191 if (ioctl(drv->common.sock, SIOCGIFINDEX, &ifr) != 0) { in wired_init_sockets() 203 if (bind(drv->common.sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) in wired_init_sockets() 210 if (wired_multicast_membership(drv->common.sock, ifr.ifr_ifindex, in wired_init_sockets() 218 os_strlcpy(ifr.ifr_name, drv->common.ifname, sizeof(ifr.ifr_name)); in wired_init_sockets() [all …]
|
D | driver_nl80211_scan.c | 79 struct wpa_driver_nl80211_data *drv, struct nl80211_noise_info *info) in nl80211_get_noise_for_scan_results() argument 84 msg = nl80211_drv_msg(drv, NLM_F_DUMP, NL80211_CMD_GET_SURVEY); in nl80211_get_noise_for_scan_results() 85 return send_and_recv_msgs(drv, msg, get_noise_for_scan_results, info, in nl80211_get_noise_for_scan_results() 94 struct wpa_driver_nl80211_data *drv = bss->drv; in nl80211_abort_scan() local 98 ret = send_and_recv_msgs(drv, msg, NULL, NULL, NULL, NULL); in nl80211_abort_scan() 108 static int nl80211_abort_vendor_scan(struct wpa_driver_nl80211_data *drv, in nl80211_abort_vendor_scan() argument 118 msg = nl80211_drv_msg(drv, 0, NL80211_CMD_VENDOR); in nl80211_abort_vendor_scan() 129 ret = send_and_recv_msgs(drv, msg, NULL, NULL, NULL, NULL); in nl80211_abort_vendor_scan() 156 struct wpa_driver_nl80211_data *drv = eloop_ctx; in wpa_driver_nl80211_scan_timeout() local 160 if (drv->vendor_scan_cookie && in wpa_driver_nl80211_scan_timeout() [all …]
|
D | driver_atheros.c | 184 get80211param(struct atheros_driver_data *drv, int op, int *data) in get80211param() argument 189 os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ); in get80211param() 192 if (ioctl(drv->ioctl_sock, IEEE80211_IOCTL_GETPARAM, &iwr) < 0) in get80211param() 202 set80211priv(struct atheros_driver_data *drv, int op, void *data, int len) in set80211priv() argument 213 os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ); in set80211priv() 229 if (ioctl(drv->ioctl_sock, op, &iwr) < 0) { in set80211priv() 232 __func__, drv->iface, op, in set80211priv() 241 set80211param(struct atheros_driver_data *drv, int op, int arg) in set80211param() argument 246 os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ); in set80211param() 250 if (ioctl(drv->ioctl_sock, IEEE80211_IOCTL_SETPARAM, &iwr) < 0) { in set80211param() [all …]
|
D | driver_nl80211_event.c | 26 nl80211_control_port_frame_tx_status(struct wpa_driver_nl80211_data *drv, 158 static void mlme_event_auth(struct wpa_driver_nl80211_data *drv, in mlme_event_auth() argument 164 if (!(drv->capa.flags & WPA_DRIVER_FLAGS_SME) && in mlme_event_auth() 165 drv->force_connect_cmd) { in mlme_event_auth() 183 os_memcpy(drv->auth_bssid, mgmt->sa, ETH_ALEN); in mlme_event_auth() 184 os_memset(drv->auth_attempt_bssid, 0, ETH_ALEN); in mlme_event_auth() 196 wpa_supplicant_event(drv->ctx, EVENT_AUTH, &event); in mlme_event_auth() 220 static void mlme_event_assoc(struct wpa_driver_nl80211_data *drv, in mlme_event_assoc() argument 229 if (!(drv->capa.flags & WPA_DRIVER_FLAGS_SME) && in mlme_event_assoc() 230 drv->force_connect_cmd) { in mlme_event_assoc() [all …]
|
D | driver_privsep.c | 30 static int wpa_priv_reg_cmd(struct wpa_driver_privsep_data *drv, int cmd) in wpa_priv_reg_cmd() argument 34 res = sendto(drv->priv_socket, &cmd, sizeof(cmd), 0, in wpa_priv_reg_cmd() 35 (struct sockaddr *) &drv->priv_addr, in wpa_priv_reg_cmd() 36 sizeof(drv->priv_addr)); in wpa_priv_reg_cmd() 43 static int wpa_priv_cmd(struct wpa_driver_privsep_data *drv, int cmd, in wpa_priv_cmd() argument 58 msg.msg_name = &drv->priv_addr; in wpa_priv_cmd() 59 msg.msg_namelen = sizeof(drv->priv_addr); in wpa_priv_cmd() 61 if (sendmsg(drv->cmd_socket, &msg, 0) < 0) { in wpa_priv_cmd() 73 FD_SET(drv->cmd_socket, &rfds); in wpa_priv_cmd() 76 res = select(drv->cmd_socket + 1, &rfds, NULL, NULL, &tv); in wpa_priv_cmd() [all …]
|
D | driver_openbsd.c | 31 struct openbsd_driver_data *drv = priv; in wpa_driver_openbsd_get_ssid() local 36 os_strlcpy(ifr.ifr_name, drv->ifname, sizeof(ifr.ifr_name)); in wpa_driver_openbsd_get_ssid() 38 if (ioctl(drv->sock, SIOCG80211NWID, &ifr) < 0 || in wpa_driver_openbsd_get_ssid() 49 struct openbsd_driver_data *drv = priv; in wpa_driver_openbsd_get_bssid() local 52 os_strlcpy(id.i_name, drv->ifname, sizeof(id.i_name)); in wpa_driver_openbsd_get_bssid() 53 if (ioctl(drv->sock, SIOCG80211BSSID, &id) < 0) in wpa_driver_openbsd_get_bssid() 74 struct openbsd_driver_data *drv = priv; local 85 os_strlcpy(keyavail.i_name, drv->ifname, sizeof(keyavail.i_name)); 90 if (ioctl(drv->sock, SIOCS80211KEYAVAIL, &keyavail) < 0) 99 struct openbsd_driver_data *drv; local [all …]
|
D | driver_nl80211_monitor.c | 46 static void from_unknown_sta(struct wpa_driver_nl80211_data *drv, in from_unknown_sta() argument 63 wpa_supplicant_event(drv->ctx, EVENT_RX_FROM_UNKNOWN, &event); in from_unknown_sta() 67 static void handle_frame(struct wpa_driver_nl80211_data *drv, in handle_frame() argument 74 if (!drv->use_monitor) in handle_frame() 87 wpa_supplicant_event(drv->ctx, EVENT_RX_MGMT, &event); in handle_frame() 92 from_unknown_sta(drv, buf, len); in handle_frame() 95 from_unknown_sta(drv, buf, len); in handle_frame() 103 struct wpa_driver_nl80211_data *drv = eloop_ctx; in handle_monitor_read() local 163 handle_frame(drv, buf + iter._max_length, in handle_monitor_read() 166 handle_tx_callback(drv->ctx, buf + iter._max_length, in handle_monitor_read() [all …]
|
D | driver_none.c | 24 struct none_driver_data *drv; in none_driver_hapd_init() local 26 drv = os_zalloc(sizeof(struct none_driver_data)); in none_driver_hapd_init() 27 if (drv == NULL) { in none_driver_hapd_init() 32 drv->hapd = hapd; in none_driver_hapd_init() 34 return drv; in none_driver_hapd_init() 40 struct none_driver_data *drv = priv; in none_driver_hapd_deinit() local 42 os_free(drv); in none_driver_hapd_deinit() 48 struct none_driver_data *drv; in none_driver_init() local 50 drv = os_zalloc(sizeof(struct none_driver_data)); in none_driver_init() 51 if (drv == NULL) { in none_driver_init() [all …]
|
D | driver_ndis_.c | 22 void wpa_driver_ndis_event_connect(struct wpa_driver_ndis_data *drv); 23 void wpa_driver_ndis_event_disconnect(struct wpa_driver_ndis_data *drv); 24 void wpa_driver_ndis_event_media_specific(struct wpa_driver_ndis_data *drv, 26 void wpa_driver_ndis_event_adapter_arrival(struct wpa_driver_ndis_data *drv); 27 void wpa_driver_ndis_event_adapter_removal(struct wpa_driver_ndis_data *drv); 41 static void wpa_driver_ndis_event_process(struct wpa_driver_ndis_data *drv, in wpa_driver_ndis_event_process() argument 68 wpa_driver_ndis_event_connect(drv); in wpa_driver_ndis_event_process() 71 wpa_driver_ndis_event_disconnect(drv); in wpa_driver_ndis_event_process() 74 wpa_driver_ndis_event_media_specific(drv, data, data_len); in wpa_driver_ndis_event_process() 77 wpa_driver_ndis_event_adapter_arrival(drv); in wpa_driver_ndis_event_process() [all …]
|
D | driver_nl80211_capa.c | 40 static u32 get_nl80211_protocol_features(struct wpa_driver_nl80211_data *drv) in get_nl80211_protocol_features() argument 49 if (!nl80211_cmd(drv, msg, 0, NL80211_CMD_GET_PROTOCOL_FEATURES)) { in get_nl80211_protocol_features() 54 if (send_and_recv_msgs(drv, msg, protocol_feature_handler, &feat, in get_nl80211_protocol_features() 63 struct wpa_driver_nl80211_data *drv; member 366 info->drv->capa.key_mgmt_iftype[WPA_IF_IBSS] = key_mgmt; in get_iface_akm_suites_info() 369 info->drv->capa.key_mgmt_iftype[WPA_IF_STATION] = in get_iface_akm_suites_info() 373 info->drv->capa.key_mgmt_iftype[WPA_IF_AP_BSS] = in get_iface_akm_suites_info() 377 info->drv->capa.key_mgmt_iftype[WPA_IF_AP_VLAN] = in get_iface_akm_suites_info() 381 info->drv->capa.key_mgmt_iftype[WPA_IF_MESH] = key_mgmt; in get_iface_akm_suites_info() 384 info->drv->capa.key_mgmt_iftype[WPA_IF_P2P_CLIENT] = in get_iface_akm_suites_info() [all …]
|
/external/mesa3d/src/gallium/frontends/va/ |
D | context.c | 114 vlVaDriver *drv; in VA_DRIVER_INIT_FUNC() local 119 drv = CALLOC(1, sizeof(vlVaDriver)); in VA_DRIVER_INIT_FUNC() 120 if (!drv) in VA_DRIVER_INIT_FUNC() 125 FREE(drv); in VA_DRIVER_INIT_FUNC() 129 drv->vscreen = vl_dri3_screen_create(ctx->native_dpy, ctx->x11_screen); in VA_DRIVER_INIT_FUNC() 130 if (!drv->vscreen) in VA_DRIVER_INIT_FUNC() 131 drv->vscreen = vl_dri2_screen_create(ctx->native_dpy, ctx->x11_screen); in VA_DRIVER_INIT_FUNC() 139 FREE(drv); in VA_DRIVER_INIT_FUNC() 143 drv->vscreen = vl_drm_screen_create(drm_info->fd); in VA_DRIVER_INIT_FUNC() 147 FREE(drv); in VA_DRIVER_INIT_FUNC() [all …]
|
D | buffer.c | 43 vlVaDriver *drv; in vlVaCreateBuffer() local 66 drv = VL_VA_DRIVER(ctx); in vlVaCreateBuffer() 67 mtx_lock(&drv->mutex); in vlVaCreateBuffer() 68 *buf_id = handle_table_add(drv->htab, buf); in vlVaCreateBuffer() 69 mtx_unlock(&drv->mutex); in vlVaCreateBuffer() 78 vlVaDriver *drv; in vlVaBufferSetNumElements() local 84 drv = VL_VA_DRIVER(ctx); in vlVaBufferSetNumElements() 85 mtx_lock(&drv->mutex); in vlVaBufferSetNumElements() 86 buf = handle_table_get(drv->htab, buf_id); in vlVaBufferSetNumElements() 87 mtx_unlock(&drv->mutex); in vlVaBufferSetNumElements() [all …]
|
D | subpicture.c | 68 vlVaDriver *drv; in vlVaCreateSubpicture() local 75 drv = VL_VA_DRIVER(ctx); in vlVaCreateSubpicture() 76 mtx_lock(&drv->mutex); in vlVaCreateSubpicture() 77 img = handle_table_get(drv->htab, image); in vlVaCreateSubpicture() 79 mtx_unlock(&drv->mutex); in vlVaCreateSubpicture() 85 mtx_unlock(&drv->mutex); in vlVaCreateSubpicture() 91 mtx_unlock(&drv->mutex); in vlVaCreateSubpicture() 99 vlVaDriver *drv; in vlVaDestroySubpicture() local 105 drv = VL_VA_DRIVER(ctx); in vlVaDestroySubpicture() 106 mtx_lock(&drv->mutex); in vlVaDestroySubpicture() [all …]
|
D | image.c | 106 vlVaDriver *drv; in vlVaCreateImage() local 116 drv = VL_VA_DRIVER(ctx); in vlVaCreateImage() 121 mtx_lock(&drv->mutex); in vlVaCreateImage() 122 img->image_id = handle_table_add(drv->htab, img); in vlVaCreateImage() 123 mtx_unlock(&drv->mutex); in vlVaCreateImage() 199 vlVaDriver *drv; in vlVaDeriveImage() local 226 drv = VL_VA_DRIVER(ctx); in vlVaDeriveImage() 228 if (!drv) in vlVaDeriveImage() 236 surf = handle_table_get(drv->htab, surface); in vlVaDeriveImage() 280 mtx_lock(&drv->mutex); in vlVaDeriveImage() [all …]
|
D | surface.c | 66 vlVaDriver *drv; in vlVaDestroySurfaces() local 72 drv = VL_VA_DRIVER(ctx); in vlVaDestroySurfaces() 73 mtx_lock(&drv->mutex); in vlVaDestroySurfaces() 75 vlVaSurface *surf = handle_table_get(drv->htab, surface_list[i]); in vlVaDestroySurfaces() 77 mtx_unlock(&drv->mutex); in vlVaDestroySurfaces() 84 handle_table_remove(drv->htab, surface_list[i]); in vlVaDestroySurfaces() 86 mtx_unlock(&drv->mutex); in vlVaDestroySurfaces() 94 vlVaDriver *drv; in vlVaSyncSurface() local 101 drv = VL_VA_DRIVER(ctx); in vlVaSyncSurface() 102 if (!drv) in vlVaSyncSurface() [all …]
|
D | picture.c | 43 vlVaDriver *drv; in vlVaBeginPicture() local 50 drv = VL_VA_DRIVER(ctx); in vlVaBeginPicture() 51 if (!drv) in vlVaBeginPicture() 54 mtx_lock(&drv->mutex); in vlVaBeginPicture() 55 context = handle_table_get(drv->htab, context_id); in vlVaBeginPicture() 57 mtx_unlock(&drv->mutex); in vlVaBeginPicture() 66 surf = handle_table_get(drv->htab, render_target); in vlVaBeginPicture() 67 mtx_unlock(&drv->mutex); in vlVaBeginPicture() 99 vlVaGetReferenceFrame(vlVaDriver *drv, VASurfaceID surface_id, in vlVaGetReferenceFrame() argument 102 vlVaSurface *surf = handle_table_get(drv->htab, surface_id); in vlVaGetReferenceFrame() [all …]
|
/external/minigbm/ |
D | drv.c | 113 struct driver *drv; in drv_create() local 116 drv = (struct driver *)calloc(1, sizeof(*drv)); in drv_create() 118 if (!drv) in drv_create() 123 drv->compression = (minigbm_debug == NULL) || (strcmp(minigbm_debug, "nocompression") != 0); in drv_create() 125 drv->fd = fd; in drv_create() 126 drv->backend = drv_get_backend(fd); in drv_create() 128 if (!drv->backend) in drv_create() 131 if (pthread_mutex_init(&drv->driver_lock, NULL)) in drv_create() 134 drv->buffer_table = drmHashCreate(); in drv_create() 135 if (!drv->buffer_table) in drv_create() [all …]
|