Home
last modified time | relevance | path

Searched refs:hctx (Results 1 – 25 of 57) sorted by relevance

123

/drivers/hid/bpf/progs/
A DXPPen__ArtistPro16Gen2.bpf.c90 __u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, 4096 /* size */); in SEC()
100 if (hctx->hid->product == PID_ARTIST_PRO14_GEN2) { in SEC()
105 } else if (hctx->hid->product == PID_ARTIST_PRO19_GEN2) { in SEC()
116 static int xppen_16_fix_eraser(struct hid_bpf_ctx *hctx) in xppen_16_fix_eraser() argument
118 __u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, 10 /* size */); in xppen_16_fix_eraser()
238 static int xppen_16_fix_angle_offset(struct hid_bpf_ctx *hctx) in xppen_16_fix_angle_offset() argument
240 __u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, 10 /* size */); in xppen_16_fix_angle_offset()
273 switch (hctx->hid->product) { in xppen_16_fix_angle_offset()
292 int BPF_PROG(xppen_artist_pro_16_device_event, struct hid_bpf_ctx *hctx) in SEC()
294 int ret = xppen_16_fix_angle_offset(hctx); in SEC()
[all …]
A DHuion__Kamvas-Pro-19.bpf.c255 int BPF_PROG(hid_fix_rdesc_huion_kamvas_pro_19, struct hid_bpf_ctx *hctx) in SEC()
257 __u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, HID_MAX_DESCRIPTOR_SIZE /* size */); in SEC()
262 if (hctx->size == FW_240524_RDESC_SIZE) { in SEC()
284 int BPF_PROG(kamvas_pro_19_fix_3rd_button, struct hid_bpf_ctx *hctx) in SEC()
286 __u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, 10 /* size */); in SEC()
341 struct hid_bpf_ctx *hctx = hid_bpf_allocate_context(ctx->hid); in probe() local
343 if (!hctx) { in probe()
348 const char *name = hctx->hid->name; in probe()
357 hid_bpf_release_context(hctx); in probe()
A DXPPen__ACK05.bpf.c218 int BPF_PROG(ack05_fix_rdesc, struct hid_bpf_ctx *hctx) in SEC()
220 __u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, HID_MAX_DESCRIPTOR_SIZE /* size */); in SEC()
221 __s32 rdesc_size = hctx->size; in SEC()
235 hid_set_name(hctx->hid, "Disabled by HID-BPF Hanvon Ugee Shortcut Remote"); in SEC()
265 int BPF_PROG(ack05_fix_events, struct hid_bpf_ctx *hctx) in SEC()
267 __u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, PAD_REPORT_LENGTH); in SEC()
278 HID_BPF_ASYNC_DELAYED_CALL(switch_to_raw_mode, hctx, 10); in SEC()
315 struct hid_bpf_ctx *hctx = hid_bpf_allocate_context(ctx->hid); in probe() local
317 if (!hctx) { in probe()
323 switch_to_raw_mode(hctx); in probe()
[all …]
A DXPPen__DecoMini4.bpf.c153 int BPF_PROG(hid_rdesc_fixup_xppen_deco_mini_4, struct hid_bpf_ctx *hctx) in SEC()
155 __u8 *data = hid_bpf_get_data(hctx, 0, HID_MAX_DESCRIPTOR_SIZE); in SEC()
160 if (hctx->size == RDESC_SIZE_PAD) { in SEC()
163 } else if (hctx->size == RDESC_SIZE_PEN) { in SEC()
172 int BPF_PROG(hid_device_event_xppen_deco_mini_4, struct hid_bpf_ctx *hctx) in SEC()
174 __u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, 8 /* size */); in SEC()
A DFR-TEC__Raptor-Mach-2.bpf.c137 int BPF_PROG(hid_fix_rdesc_raptor_mach_2, struct hid_bpf_ctx *hctx) in SEC()
139 __u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, HID_MAX_DESCRIPTOR_SIZE /* size */); in SEC()
156 int BPF_PROG(raptor_mach_2_fix_hat_switch, struct hid_bpf_ctx *hctx) in SEC()
158 __u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, 64 /* size */); in SEC()
A DXPPen__Artist24.bpf.c93 int BPF_PROG(hid_fix_rdesc_xppen_artist24, struct hid_bpf_ctx *hctx) in SEC()
95 __u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, 4096 /* size */); in SEC()
154 int BPF_PROG(xppen_24_fix_eraser, struct hid_bpf_ctx *hctx) in SEC()
156 __u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, 10 /* size */); in SEC()
A DThrustmaster__TCA-Yoke-Boeing.bpf.c100 int BPF_PROG(hid_fix_rdesc_tca_yoke, struct hid_bpf_ctx *hctx) in SEC()
104 if (hctx->size != expected_length) in SEC()
107 __u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, HID_MAX_DESCRIPTOR_SIZE /* size */); in SEC()
A DHuion__KeydialK20.bpf.c345 int BPF_PROG(k20_fix_rdesc, struct hid_bpf_ctx *hctx) in SEC()
347 __u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, HID_MAX_DESCRIPTOR_SIZE /* size */); in SEC()
348 __s32 rdesc_size = hctx->size; in SEC()
389 int BPF_PROG(k20_fix_events, struct hid_bpf_ctx *hctx) in SEC()
391 __u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, 10 /* size */); in SEC()
A DHuion__Inspiroy-2-S.bpf.c379 int BPF_PROG(hid_fix_rdesc, struct hid_bpf_ctx *hctx) in SEC()
381 __u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, HID_MAX_DESCRIPTOR_SIZE /* size */); in SEC()
382 __s32 rdesc_size = hctx->size; in SEC()
425 int BPF_PROG(inspiroy_2_fix_events, struct hid_bpf_ctx *hctx) in SEC()
427 __u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, 10 /* size */); in SEC()
A Dhid_bpf_async.h85 static int HID_BPF_ASYNC_CB(____##fun##_cb)(struct hid_bpf_ctx *hctx) \
87 return fun(hctx); \
168 static int hid_bpf_async_delayed_call(struct hid_bpf_ctx *hctx, u64 milliseconds, int key, in hid_bpf_async_delayed_call() argument
191 elem->hid = hctx->hid->id; in hid_bpf_async_delayed_call()
A DHuion__Dial-2.bpf.c442 int BPF_PROG(dial_2_fix_rdesc, struct hid_bpf_ctx *hctx) in SEC()
444 __u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, HID_MAX_DESCRIPTOR_SIZE /* size */); in SEC()
445 __s32 rdesc_size = hctx->size; in SEC()
488 int BPF_PROG(dial_2_fix_events, struct hid_bpf_ctx *hctx) in SEC()
490 __u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, 16 /* size */); in SEC()
A DHP__Elite-Presenter.bpf.c34 int BPF_PROG(hid_fix_rdesc, struct hid_bpf_ctx *hctx) in SEC()
36 __u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, 4096 /* size */); in SEC()
A DMistel__MD770.bpf.c127 int BPF_PROG(hid_rdesc_fixup_mistel_md770, struct hid_bpf_ctx *hctx) in SEC()
129 __u8 *data = hid_bpf_get_data(hctx, 0, HID_MAX_DESCRIPTOR_SIZE); in SEC()
A DRapoo__M50-Plus-Silent.bpf.c121 int BPF_PROG(hid_rdesc_fixup_rapoo_m50, struct hid_bpf_ctx *hctx) in SEC()
123 __u8 *data = hid_bpf_get_data(hctx, 0, HID_MAX_DESCRIPTOR_SIZE); in SEC()
A DIOGEAR__Kaliber-MMOmentum.bpf.c25 int BPF_PROG(hid_fix_rdesc, struct hid_bpf_ctx *hctx) in SEC()
28 __u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, 4096 /* size */); in SEC()
A DMicrosoft__Xbox-Elite-2.bpf.c96 int BPF_PROG(hid_fix_rdesc, struct hid_bpf_ctx *hctx) in SEC()
98 __u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, 4096 /* size */); in SEC()
A DWacom__ArtPen.bpf.c105 int BPF_PROG(artpen_pressure_interpolate, struct hid_bpf_ctx *hctx) in SEC()
107 __u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, PEN_REPORT_LEN /* size */); in SEC()
/drivers/crypto/marvell/octeontx2/
A Dcn10k_cpt.c158 void cn10k_cpt_hw_ctx_set(union cn10k_cpt_hw_ctx *hctx, u16 ctx_sz) in cn10k_cpt_hw_ctx_set() argument
160 hctx->w0.aop_valid = 1; in cn10k_cpt_hw_ctx_set()
161 hctx->w0.ctx_hdr_sz = 0; in cn10k_cpt_hw_ctx_set()
162 hctx->w0.ctx_sz = ctx_sz; in cn10k_cpt_hw_ctx_set()
163 hctx->w0.ctx_push_sz = 1; in cn10k_cpt_hw_ctx_set()
170 union cn10k_cpt_hw_ctx *hctx; in cn10k_cpt_hw_ctx_init() local
179 hctx = kmalloc(CN10K_CPT_HW_CTX_SIZE, GFP_KERNEL); in cn10k_cpt_hw_ctx_init()
180 if (unlikely(!hctx)) in cn10k_cpt_hw_ctx_init()
185 kfree(hctx); in cn10k_cpt_hw_ctx_init()
189 cn10k_cpt_hw_ctx_set(hctx, 1); in cn10k_cpt_hw_ctx_init()
[all …]
A Dcn10k_cpt.h59 void cn10k_cpt_hw_ctx_set(union cn10k_cpt_hw_ctx *hctx, u16 ctx_sz);
/drivers/s390/block/
A Dscm_blk.c283 static blk_status_t scm_blk_request(struct blk_mq_hw_ctx *hctx, in scm_blk_request() argument
286 struct scm_device *scmdev = hctx->queue->queuedata; in scm_blk_request()
288 struct scm_queue *sq = hctx->driver_data; in scm_blk_request()
332 static int scm_blk_init_hctx(struct blk_mq_hw_ctx *hctx, void *data, in scm_blk_init_hctx() argument
341 hctx->driver_data = qd; in scm_blk_init_hctx()
346 static void scm_blk_exit_hctx(struct blk_mq_hw_ctx *hctx, unsigned int idx) in scm_blk_exit_hctx() argument
348 struct scm_queue *qd = hctx->driver_data; in scm_blk_exit_hctx()
351 kfree(hctx->driver_data); in scm_blk_exit_hctx()
352 hctx->driver_data = NULL; in scm_blk_exit_hctx()
/drivers/block/rnbd/
A Drnbd-clt.c139 if (WARN_ON(!q->hctx)) in rnbd_clt_dev_requeue()
143 blk_mq_run_hw_queue(q->hctx, true); in rnbd_clt_dev_requeue()
1096 struct blk_mq_hw_ctx *hctx, in rnbd_clt_dev_kick_mq_queue() argument
1099 struct rnbd_queue *q = hctx->driver_data; in rnbd_clt_dev_kick_mq_queue()
1102 blk_mq_delay_run_hw_queue(hctx, delay); in rnbd_clt_dev_kick_mq_queue()
1160 struct rnbd_queue *q = hctx->driver_data; in rnbd_rdma_poll()
1311 struct blk_mq_hw_ctx *hctx) in rnbd_init_hw_queue() argument
1315 q->hctx = hctx; in rnbd_init_hw_queue()
1321 struct blk_mq_hw_ctx *hctx; in rnbd_init_mq_hw_queues() local
1326 rnbd_init_hw_queue(dev, q, hctx); in rnbd_init_mq_hw_queues()
[all …]
/drivers/block/
A Dvirtio_blk.c133 struct virtio_blk *vblk = hctx->queue->queuedata; in get_virtio_blk_vq()
134 struct virtio_blk_vq *vq = &vblk->vqs[hctx->queue_num]; in get_virtio_blk_vq()
379 struct virtio_blk *vblk = hctx->queue->queuedata; in virtio_commit_rqs()
380 struct virtio_blk_vq *vq = &vblk->vqs[hctx->queue_num]; in virtio_commit_rqs()
416 num = virtblk_map_data(hctx, req, vbr); in virtblk_prep_rq()
429 struct virtio_blk *vblk = hctx->queue->queuedata; in virtio_queue_rq()
433 int qid = hctx->queue_num; in virtio_queue_rq()
438 status = virtblk_prep_rq(hctx, vblk, req, vbr); in virtio_queue_rq()
450 blk_mq_stop_hw_queue(hctx); in virtio_queue_rq()
1198 struct virtio_blk *vblk = hctx->queue->queuedata; in virtblk_poll()
[all …]
/drivers/nvme/target/
A Dloop.c133 static blk_status_t nvme_loop_queue_rq(struct blk_mq_hw_ctx *hctx, in nvme_loop_queue_rq() argument
136 struct nvme_ns *ns = hctx->queue->queuedata; in nvme_loop_queue_rq()
137 struct nvme_loop_queue *queue = hctx->driver_data; in nvme_loop_queue_rq()
218 static int nvme_loop_init_hctx(struct blk_mq_hw_ctx *hctx, void *data, in nvme_loop_init_hctx() argument
232 blk_mq_hctx_set_fq_lock_class(hctx, &loop_hctx_fq_lock_key); in nvme_loop_init_hctx()
234 hctx->driver_data = queue; in nvme_loop_init_hctx()
238 static int nvme_loop_init_admin_hctx(struct blk_mq_hw_ctx *hctx, void *data, in nvme_loop_init_admin_hctx() argument
246 hctx->driver_data = queue; in nvme_loop_init_admin_hctx()
/drivers/block/null_blk/
A Dmain.c1580 struct nullb_queue *nq = hctx->driver_data; in null_poll()
1611 struct blk_mq_hw_ctx *hctx = rq->mq_hctx; in null_timeout_rq() local
1614 if (hctx->type == HCTX_TYPE_POLL) { in null_timeout_rq()
1615 struct nullb_queue *nq = hctx->driver_data; in null_timeout_rq()
1637 if (cmd->fake_timeout || hctx->type == HCTX_TYPE_POLL) in null_timeout_rq()
1642 static blk_status_t null_queue_rq(struct blk_mq_hw_ctx *hctx, in null_queue_rq() argument
1647 struct nullb_queue *nq = hctx->driver_data; in null_queue_rq()
1650 const bool is_poll = hctx->type == HCTX_TYPE_POLL; in null_queue_rq()
1652 might_sleep_if(hctx->flags & BLK_MQ_F_BLOCKING); in null_queue_rq()
1725 struct nullb *nullb = hctx->queue->queuedata; in null_init_hctx()
[all …]
/drivers/nvme/host/
A Dapple.c733 static blk_status_t apple_nvme_queue_rq(struct blk_mq_hw_ctx *hctx, in apple_nvme_queue_rq() argument
736 struct nvme_ns *ns = hctx->queue->queuedata; in apple_nvme_queue_rq()
737 struct apple_nvme_queue *q = hctx->driver_data; in apple_nvme_queue_rq()
776 static int apple_nvme_init_hctx(struct blk_mq_hw_ctx *hctx, void *data, in apple_nvme_init_hctx() argument
779 hctx->driver_data = data; in apple_nvme_init_hctx()
938 static int apple_nvme_poll(struct blk_mq_hw_ctx *hctx, in apple_nvme_poll() argument
941 struct apple_nvme_queue *q = hctx->driver_data; in apple_nvme_poll()

Completed in 56 milliseconds

123