Lines Matching defs:auth
2193 struct usb4_switch_nvm_auth *auth = data;
2194 struct icm *icm = auth->icm;
2198 get_route(auth->reply.route_hi, auth->reply.route_lo),
2199 auth->reply.hdr.flags, auth->reply.status);
2204 icm->last_nvm_auth = auth;
2210 struct usb4_switch_nvm_auth *auth;
2215 auth = kzalloc(sizeof(*auth), GFP_KERNEL);
2216 if (!auth)
2219 auth->icm = icm;
2220 auth->request.hdr.code = ICM_USB4_SWITCH_OP;
2221 auth->request.route_hi = upper_32_bits(route);
2222 auth->request.route_lo = lower_32_bits(route);
2223 auth->request.opcode = USB4_SWITCH_OP_NVM_AUTH;
2233 req->request = &auth->request;
2234 req->request_size = sizeof(auth->request);
2236 req->response = &auth->reply;
2238 req->response_size = sizeof(auth->reply);
2245 auth);
2254 kfree(auth);
2323 struct usb4_switch_nvm_auth *auth;
2331 auth = icm->last_nvm_auth;
2334 if (auth && auth->reply.route_hi == sw->config.route_hi &&
2335 auth->reply.route_lo == sw->config.route_lo) {
2337 tb_route(sw), auth->reply.hdr.flags, auth->reply.status);
2338 if (auth->reply.hdr.flags & ICM_FLAGS_ERROR)
2341 *status = auth->reply.status;
2346 kfree(auth);