Lines Matching defs:context
29 * Events are answers to commands and they carry a context ID that
31 * notifications, they come out of the blue and have a context ID of
32 * zero. Think of the context ID kind of like a handler. The
33 * uwb_rc_neh_* code deals with managing context IDs.
36 * open a handle a context ID is assigned to you.
95 * Controller with a given context id (context) and type (evt_type and
108 u8 context;
141 * Assigns @neh a context id from @rc's pool
145 * @returns 0 if context id was assigned ok; < 0 errno on error (if
146 * all the context IDs are taken).
150 * NOTE: WUSB spec reserves context ids 0x00 for notifications and
155 * consecutive opened @neh's getting the same context ID assigned (to
174 neh->context = result;
179 /** Releases @neh's context ID back to @rc (@rc->neh_lock is locked). */
184 if (neh->context == 0)
186 if (test_bit(neh->context, rc->ctx_bm) == 0) {
187 dev_err(dev, "context %u not set in bitmap\n",
188 neh->context);
191 clear_bit(neh->context, rc->ctx_bm);
192 neh->context = 0;
205 * event. A context ID will be assigned to the command.
237 cmd->bCommandContext = neh->context;
293 if (neh->context)
309 && neh->context == rceb->bEventContext;
570 if (neh->context)