Home
last modified time | relevance | path

Searched refs:inst (Results 1 – 25 of 55) sorted by relevance

123

/drivers/crypto/qat/qat_common/
Dqat_crypto.c61 void qat_crypto_put_instance(struct qat_crypto_instance *inst) in qat_crypto_put_instance() argument
63 if (atomic_sub_return(1, &inst->refctr) == 0) in qat_crypto_put_instance()
64 adf_dev_put(inst->accel_dev); in qat_crypto_put_instance()
69 struct qat_crypto_instance *inst; in qat_crypto_free_instances() local
74 inst = list_entry(list_ptr, struct qat_crypto_instance, list); in qat_crypto_free_instances()
76 for (i = 0; i < atomic_read(&inst->refctr); i++) in qat_crypto_free_instances()
77 qat_crypto_put_instance(inst); in qat_crypto_free_instances()
79 if (inst->sym_tx) in qat_crypto_free_instances()
80 adf_remove_ring(inst->sym_tx); in qat_crypto_free_instances()
82 if (inst->sym_rx) in qat_crypto_free_instances()
[all …]
Dqat_algs.c119 struct qat_crypto_instance *inst; member
496 dev = &GET_DEV(ctx->inst->accel_dev); in qat_alg_setkey()
506 struct qat_crypto_instance *inst = in qat_alg_setkey() local
508 if (!inst) { in qat_alg_setkey()
513 dev = &GET_DEV(inst->accel_dev); in qat_alg_setkey()
514 ctx->inst = inst; in qat_alg_setkey()
549 static void qat_alg_free_bufl(struct qat_crypto_instance *inst, in qat_alg_free_bufl() argument
552 struct device *dev = &GET_DEV(inst->accel_dev); in qat_alg_free_bufl()
580 static int qat_alg_sgl_to_bufl(struct qat_crypto_instance *inst, in qat_alg_sgl_to_bufl() argument
587 struct device *dev = &GET_DEV(inst->accel_dev); in qat_alg_sgl_to_bufl()
[all …]
/drivers/phy/
Dphy-exynos4x12-usb2.c168 static void exynos4x12_isol(struct samsung_usb2_phy_instance *inst, bool on) in exynos4x12_isol() argument
170 struct samsung_usb2_phy_driver *drv = inst->drv; in exynos4x12_isol()
174 switch (inst->cfg->id) { in exynos4x12_isol()
195 static void exynos4x12_setup_clk(struct samsung_usb2_phy_instance *inst) in exynos4x12_setup_clk() argument
197 struct samsung_usb2_phy_driver *drv = inst->drv; in exynos4x12_setup_clk()
211 static void exynos4x12_phy_pwr(struct samsung_usb2_phy_instance *inst, bool on) in exynos4x12_phy_pwr() argument
213 struct samsung_usb2_phy_driver *drv = inst->drv; in exynos4x12_phy_pwr()
219 switch (inst->cfg->id) { in exynos4x12_phy_pwr()
263 static void exynos4x12_power_on_int(struct samsung_usb2_phy_instance *inst) in exynos4x12_power_on_int() argument
265 if (inst->int_cnt++ > 0) in exynos4x12_power_on_int()
[all …]
Dphy-exynos5-usbdrd.c135 void (*phy_isol)(struct phy_usb_instance *inst, u32 on);
137 unsigned int (*set_refclk)(struct phy_usb_instance *inst);
178 struct exynos5_usbdrd_phy *to_usbdrd_phy(struct phy_usb_instance *inst) in to_usbdrd_phy() argument
180 return container_of((inst), struct exynos5_usbdrd_phy, in to_usbdrd_phy()
181 phys[(inst)->index]); in to_usbdrd_phy()
221 static void exynos5_usbdrd_phy_isol(struct phy_usb_instance *inst, in exynos5_usbdrd_phy_isol() argument
226 if (!inst->reg_pmu) in exynos5_usbdrd_phy_isol()
231 regmap_update_bits(inst->reg_pmu, inst->pmu_offset, in exynos5_usbdrd_phy_isol()
241 exynos5_usbdrd_pipe3_set_refclk(struct phy_usb_instance *inst) in exynos5_usbdrd_pipe3_set_refclk() argument
244 struct exynos5_usbdrd_phy *phy_drd = to_usbdrd_phy(inst); in exynos5_usbdrd_pipe3_set_refclk()
[all …]
Dphy-s5pv210-usb2.c92 static void s5pv210_isol(struct samsung_usb2_phy_instance *inst, bool on) in s5pv210_isol() argument
94 struct samsung_usb2_phy_driver *drv = inst->drv; in s5pv210_isol()
97 switch (inst->cfg->id) { in s5pv210_isol()
112 static void s5pv210_phy_pwr(struct samsung_usb2_phy_instance *inst, bool on) in s5pv210_phy_pwr() argument
114 struct samsung_usb2_phy_driver *drv = inst->drv; in s5pv210_phy_pwr()
120 switch (inst->cfg->id) { in s5pv210_phy_pwr()
152 static int s5pv210_power_on(struct samsung_usb2_phy_instance *inst) in s5pv210_power_on() argument
154 s5pv210_isol(inst, 0); in s5pv210_power_on()
155 s5pv210_phy_pwr(inst, 1); in s5pv210_power_on()
160 static int s5pv210_power_off(struct samsung_usb2_phy_instance *inst) in s5pv210_power_off() argument
[all …]
Dphy-exynos4210-usb2.c127 static void exynos4210_isol(struct samsung_usb2_phy_instance *inst, bool on) in exynos4210_isol() argument
129 struct samsung_usb2_phy_driver *drv = inst->drv; in exynos4210_isol()
133 switch (inst->cfg->id) { in exynos4210_isol()
149 static void exynos4210_phy_pwr(struct samsung_usb2_phy_instance *inst, bool on) in exynos4210_phy_pwr() argument
151 struct samsung_usb2_phy_driver *drv = inst->drv; in exynos4210_phy_pwr()
158 switch (inst->cfg->id) { in exynos4210_phy_pwr()
210 static int exynos4210_power_on(struct samsung_usb2_phy_instance *inst) in exynos4210_power_on() argument
213 exynos4210_phy_pwr(inst, 1); in exynos4210_power_on()
214 exynos4210_isol(inst, 0); in exynos4210_power_on()
219 static int exynos4210_power_off(struct samsung_usb2_phy_instance *inst) in exynos4210_power_off() argument
[all …]
Dphy-samsung-usb2.c24 struct samsung_usb2_phy_instance *inst = phy_get_drvdata(phy); in samsung_usb2_phy_power_on() local
25 struct samsung_usb2_phy_driver *drv = inst->drv; in samsung_usb2_phy_power_on()
29 inst->cfg->label); in samsung_usb2_phy_power_on()
36 if (inst->cfg->power_on) { in samsung_usb2_phy_power_on()
38 ret = inst->cfg->power_on(inst); in samsung_usb2_phy_power_on()
52 struct samsung_usb2_phy_instance *inst = phy_get_drvdata(phy); in samsung_usb2_phy_power_off() local
53 struct samsung_usb2_phy_driver *drv = inst->drv; in samsung_usb2_phy_power_off()
57 inst->cfg->label); in samsung_usb2_phy_power_off()
58 if (inst->cfg->power_off) { in samsung_usb2_phy_power_off()
60 ret = inst->cfg->power_off(inst); in samsung_usb2_phy_power_off()
Dphy-exynos5250-usb2.c178 static void exynos5250_isol(struct samsung_usb2_phy_instance *inst, bool on) in exynos5250_isol() argument
180 struct samsung_usb2_phy_driver *drv = inst->drv; in exynos5250_isol()
184 switch (inst->cfg->id) { in exynos5250_isol()
200 static int exynos5250_power_on(struct samsung_usb2_phy_instance *inst) in exynos5250_power_on() argument
202 struct samsung_usb2_phy_driver *drv = inst->drv; in exynos5250_power_on()
209 switch (inst->cfg->id) { in exynos5250_power_on()
321 exynos5250_isol(inst, 0); in exynos5250_power_on()
326 static int exynos5250_power_off(struct samsung_usb2_phy_instance *inst) in exynos5250_power_off() argument
328 struct samsung_usb2_phy_driver *drv = inst->drv; in exynos5250_power_off()
333 exynos5250_isol(inst, 1); in exynos5250_power_off()
[all …]
/drivers/soc/ti/
Dknav_qmss_queue.c63 #define for_each_handle_rcu(qh, inst) \ argument
64 list_for_each_entry_rcu(qh, &inst->handles, list)
66 #define for_each_instance(idx, inst, kdev) \ argument
67 for (idx = 0, inst = kdev->instances; \
69 idx++, inst = knav_queue_idx_to_inst(kdev, idx))
76 void knav_queue_notify(struct knav_queue_inst *inst) in knav_queue_notify() argument
80 if (!inst) in knav_queue_notify()
84 for_each_handle_rcu(qh, inst) { in knav_queue_notify()
98 struct knav_queue_inst *inst = _instdata; in knav_queue_int_handler() local
100 knav_queue_notify(inst); in knav_queue_int_handler()
[all …]
Dknav_qmss.h284 struct knav_queue_inst *inst; member
313 struct knav_queue_inst *inst);
315 struct knav_queue_inst *inst, unsigned flags);
317 struct knav_queue_inst *inst);
319 struct knav_queue_inst *inst, bool enabled);
384 extern void knav_queue_notify(struct knav_queue_inst *inst);
Dknav_qmss_acc.c44 struct knav_queue_inst *inst; in __knav_acc_notify() local
51 inst = knav_range_offset_to_inst(kdev, range, in __knav_acc_notify()
53 if (inst->notify_needed) { in __knav_acc_notify()
54 inst->notify_needed = 0; in __knav_acc_notify()
57 knav_queue_notify(inst); in __knav_acc_notify()
62 inst = knav_range_offset_to_inst(kdev, range, queue); in __knav_acc_notify()
65 knav_queue_notify(inst); in __knav_acc_notify()
425 struct knav_queue_inst *inst, unsigned flags) in knav_acc_open_queue() argument
427 unsigned id = inst->id - range->queue_base; in knav_acc_open_queue()
433 struct knav_queue_inst *inst) in knav_acc_close_queue() argument
[all …]
/drivers/scsi/
Datari_scsi.h51 #define NCR5380_dma_read_setup(inst,d,c) atari_scsi_dma_setup (inst, d, c, 0) argument
52 #define NCR5380_dma_write_setup(inst,d,c) atari_scsi_dma_setup (inst, d, c, 1) argument
53 #define NCR5380_dma_residual(inst) atari_scsi_dma_residual( inst ) argument
/drivers/net/ethernet/broadcom/
Dbnx2_fw.h21 .inst = BNX2_COM_CPU_INSTRUCTION,
37 .inst = BNX2_CP_CPU_INSTRUCTION,
53 .inst = BNX2_RXP_CPU_INSTRUCTION,
69 .inst = BNX2_TPAT_CPU_INSTRUCTION,
85 .inst = BNX2_TXP_CPU_INSTRUCTION,
/drivers/edac/
Damd8131_edac.c71 .inst = NORTH_A,
76 .inst = NORTH_B,
81 .inst = SOUTH_A,
86 .inst = SOUTH_B,
90 {.inst = NO_BRIDGE,},
253 for (dev_info = amd8131_chipset.devices; dev_info->inst != NO_BRIDGE; in amd8131_probe()
258 if (dev_info->inst == NO_BRIDGE) /* should never happen */ in amd8131_probe()
317 for (dev_info = amd8131_chipset.devices; dev_info->inst != NO_BRIDGE; in amd8131_remove()
322 if (dev_info->inst == NO_BRIDGE) /* should never happen */ in amd8131_remove()
Dedac_device.c77 struct edac_device_instance *dev_inst, *inst; in edac_device_alloc_ctl_info() local
164 inst = &dev_inst[instance]; in edac_device_alloc_ctl_info()
165 inst->ctl = dev_ctl; in edac_device_alloc_ctl_info()
166 inst->nr_blocks = nr_blocks; in edac_device_alloc_ctl_info()
168 inst->blocks = blk_p; in edac_device_alloc_ctl_info()
171 snprintf(inst->name, sizeof(inst->name), in edac_device_alloc_ctl_info()
177 blk->instance = inst; in edac_device_alloc_ctl_info()
182 instance, inst, block, blk, blk->name); in edac_device_alloc_ctl_info()
/drivers/gpu/drm/nouveau/core/engine/mpeg/
Dnv44.c75 u32 inst = 0x80000000 | nv_gpuobj(chan)->addr >> 4; in nv44_mpeg_context_fini() local
78 if (nv_rd32(priv, 0x00b318) == inst) in nv44_mpeg_context_fini()
109 u32 inst = nv_rd32(priv, 0x00b318) & 0x000fffff; in nv44_mpeg_intr() local
117 engctx = nouveau_engctx_get(engine, inst); in nv44_mpeg_intr()
141 chid, inst << 4, nouveau_client_name(engctx), stat, in nv44_mpeg_intr()
Dnv40.c44 u32 inst = *(u32 *)arg << 4; in nv40_mpeg_mthd_dma() local
45 u32 dma0 = nv_ro32(imem, inst + 0); in nv40_mpeg_mthd_dma()
46 u32 dma1 = nv_ro32(imem, inst + 4); in nv40_mpeg_mthd_dma()
47 u32 dma2 = nv_ro32(imem, inst + 8); in nv40_mpeg_mthd_dma()
Dnv31.c69 u32 inst = *(u32 *)arg << 4; in nv31_mpeg_mthd_dma() local
70 u32 dma0 = nv_ro32(imem, inst + 0); in nv31_mpeg_mthd_dma()
71 u32 dma1 = nv_ro32(imem, inst + 4); in nv31_mpeg_mthd_dma()
72 u32 dma2 = nv_ro32(imem, inst + 8); in nv31_mpeg_mthd_dma()
/drivers/media/platform/vivid/
Dvivid-core.c635 static int __init vivid_create_instance(int inst) in vivid_create_instance() argument
641 int ccs_cap = ccs_cap_mode[inst]; in vivid_create_instance()
642 int ccs_out = ccs_out_mode[inst]; in vivid_create_instance()
648 unsigned node_type = node_types[inst]; in vivid_create_instance()
658 dev->inst = inst; in vivid_create_instance()
662 "%s-%03d", VIVID_MODULE_NAME, inst); in vivid_create_instance()
670 dev->multiplanar = multiplanar[inst] > 1; in vivid_create_instance()
675 dev->num_inputs = num_inputs[inst]; in vivid_create_instance()
681 dev->input_type[i] = (input_types[inst] >> (i * 2)) & 0x3; in vivid_create_instance()
687 dev->num_outputs = num_outputs[inst]; in vivid_create_instance()
[all …]
/drivers/gpu/drm/nouveau/core/engine/graph/
Dnv40.c169 u32 inst = 0x01000000 | nv_gpuobj(chan)->addr >> 4; in nv40_graph_context_fini() local
174 if (nv_rd32(priv, 0x40032c) == inst) { in nv40_graph_context_fini()
177 nv_wr32(priv, 0x400784, inst); in nv40_graph_context_fini()
190 if (nv_rd32(priv, 0x400330) == inst) in nv40_graph_context_fini()
303 u32 inst = nv_rd32(priv, 0x40032c) & 0x000fffff; in nv40_graph_intr() local
312 engctx = nouveau_engctx_get(engine, inst); in nv40_graph_intr()
341 chid, inst << 4, nouveau_client_name(engctx), subc, in nv40_graph_intr()
Dnv50.c584 int chid, u64 inst, struct nouveau_object *engctx) in nv50_graph_trap_handler() argument
619 chid, inst, in nv50_graph_trap_handler()
644 chid, inst, in nv50_graph_trap_handler()
802 u32 inst = nv_rd32(priv, 0x40032c) & 0x0fffffff; in nv50_graph_intr() local
811 engctx = nouveau_engctx_get(engine, inst); in nv50_graph_intr()
830 if (!nv50_graph_trap_handler(priv, show, chid, (u64)inst << 12, in nv50_graph_intr()
848 chid, (u64)inst << 12, nouveau_client_name(engctx), in nv50_graph_intr()
/drivers/gpu/drm/nouveau/core/engine/copy/
Dnva3.c90 u64 inst = nv_ro32(falcon, 0x050) & 0x3fffffff; in nva3_copy_intr() local
98 engctx = nouveau_engctx_get(engine, inst); in nva3_copy_intr()
105 chid, inst << 12, nouveau_client_name(engctx), subc, in nva3_copy_intr()
/drivers/gpu/drm/nouveau/core/engine/crypt/
Dnv98.c91 u32 inst = nv_rd32(priv, 0x087050) & 0x3fffffff; in nv98_crypt_intr() local
99 engctx = nouveau_engctx_get(engine, inst); in nv98_crypt_intr()
106 chid, (u64)inst << 12, nouveau_client_name(engctx), in nv98_crypt_intr()
Dnv84.c122 u32 inst = nv_rd32(priv, 0x102188) & 0x7fffffff; in nv84_crypt_intr() local
125 engctx = nouveau_engctx_get(engine, inst); in nv84_crypt_intr()
132 chid, (u64)inst << 12, nouveau_client_name(engctx), in nv84_crypt_intr()
/drivers/staging/lustre/lustre/mgc/
Dmgc_request.c1112 char *inst; in mgc_apply_recover_logs() local
1122 OBD_ALLOC(inst, PAGE_CACHE_SIZE); in mgc_apply_recover_logs()
1123 if (inst == NULL) in mgc_apply_recover_logs()
1127 pos = snprintf(inst, PAGE_CACHE_SIZE, "%p", cfg->cfg_instance); in mgc_apply_recover_logs()
1129 OBD_FREE(inst, PAGE_CACHE_SIZE); in mgc_apply_recover_logs()
1134 rc = server_name2svname(lsi->lsi_svname, inst, NULL, in mgc_apply_recover_logs()
1137 OBD_FREE(inst, PAGE_CACHE_SIZE); in mgc_apply_recover_logs()
1140 pos = strlen(inst); in mgc_apply_recover_logs()
1144 buf = inst + pos; in mgc_apply_recover_logs()
1228 pos += sprintf(obdname + pos, "-%s-%s", cname, inst); in mgc_apply_recover_logs()
[all …]

123