Lines Matching defs:context
3103 * @context: buffer for stored context
3106 * and stash it in the context structure, for use by the context
3110 static void velocity_save_context(struct velocity_info *vptr, struct velocity_context *context)
3117 *((u32 *) (context->mac_reg + i)) = readl(ptr + i);
3120 *((u32 *) (context->mac_reg + i)) = readl(ptr + i);
3123 *((u32 *) (context->mac_reg + i)) = readl(ptr + i);
3144 velocity_save_context(vptr, &vptr->context);
3151 velocity_save_context(vptr, &vptr->context);
3165 * @context: buffer for stored context
3167 * Reload the register configuration from the velocity context
3170 static void velocity_restore_context(struct velocity_info *vptr, struct velocity_context *context)
3177 writel(*((u32 *) (context->mac_reg + i)), ptr + i);
3182 writeb(~(*((u8 *) (context->mac_reg + i))), ptr + i + 4);
3184 writeb(*((u8 *) (context->mac_reg + i)), ptr + i);
3188 writel(*((u32 *) (context->mac_reg + i)), ptr + i);
3191 writel(*((u32 *) (context->mac_reg + i)), ptr + i);
3194 writeb(*((u8 *) (context->mac_reg + i)), ptr + i);
3217 velocity_restore_context(vptr, &vptr->context);