/linux-4.19.296/drivers/s390/cio/ |
D | device_fsm.c | 41 struct io_subchannel_private *private; in ccw_timeout_log() local 46 private = to_io_private(sch); in ccw_timeout_log() 47 orb = &private->orb; in ccw_timeout_log() 70 if ((void *)(addr_t)orb->cmd.cpa == &private->sense_ccw || in ccw_timeout_log() 71 (void *)(addr_t)orb->cmd.cpa == cdev->private->iccws) in ccw_timeout_log() 82 cdev->private->state); in ccw_timeout_log() 89 &cdev->private->flags, sizeof(cdev->private->flags), 0); in ccw_timeout_log() 115 del_timer(&cdev->private->timer); in ccw_device_set_timeout() 118 if (timer_pending(&cdev->private->timer)) { in ccw_device_set_timeout() 119 if (mod_timer(&cdev->private->timer, jiffies + expires)) in ccw_device_set_timeout() [all …]
|
D | vfio_ccw_fsm.c | 19 static int fsm_io_helper(struct vfio_ccw_private *private) in fsm_io_helper() argument 28 sch = private->sch; in fsm_io_helper() 31 private->state = VFIO_CCW_STATE_BUSY; in fsm_io_helper() 33 orb = cp_get_orb(&private->cp, (u32)(addr_t)sch, sch->lpm); in fsm_io_helper() 71 static void fsm_notoper(struct vfio_ccw_private *private, in fsm_notoper() argument 74 struct subchannel *sch = private->sch; in fsm_notoper() 81 private->state = VFIO_CCW_STATE_NOT_OPER; in fsm_notoper() 87 static void fsm_nop(struct vfio_ccw_private *private, in fsm_nop() argument 92 static void fsm_io_error(struct vfio_ccw_private *private, in fsm_io_error() argument 95 pr_err("vfio-ccw: FSM: I/O request from state:%d\n", private->state); in fsm_io_error() [all …]
|
D | vfio_ccw_drv.c | 32 struct vfio_ccw_private *private = dev_get_drvdata(&sch->dev); in vfio_ccw_sch_quiesce() local 58 private->completion = &completion; in vfio_ccw_sch_quiesce() 64 private->completion = NULL; in vfio_ccw_sch_quiesce() 70 private->state = VFIO_CCW_STATE_NOT_OPER; in vfio_ccw_sch_quiesce() 77 struct vfio_ccw_private *private; in vfio_ccw_sch_io_todo() local 81 private = container_of(work, struct vfio_ccw_private, io_work); in vfio_ccw_sch_io_todo() 82 irb = &private->irb; in vfio_ccw_sch_io_todo() 87 cp_update_scsw(&private->cp, &irb->scsw); in vfio_ccw_sch_io_todo() 89 cp_free(&private->cp); in vfio_ccw_sch_io_todo() 91 memcpy(private->io_region->irb_area, irb, sizeof(*irb)); in vfio_ccw_sch_io_todo() [all …]
|
D | device_pgid.c | 36 struct ccw_dev_id *id = &cdev->private->dev_id; in verify_done() 37 int mpath = cdev->private->flags.mpath; in verify_done() 38 int pgroup = cdev->private->flags.pgroup; in verify_done() 59 struct ccw_request *req = &cdev->private->req; in nop_build_cp() 60 struct ccw1 *cp = cdev->private->iccws; in nop_build_cp() 75 struct ccw_request *req = &cdev->private->req; in nop_do() 78 ~cdev->private->path_noirq_mask); in nop_do() 107 struct ccw_request *req = &cdev->private->req; in nop_callback() 114 cdev->private->path_noirq_mask |= req->lpm; in nop_callback() 117 cdev->private->path_notoper_mask |= req->lpm; in nop_callback() [all …]
|
D | vfio_ccw_ops.c | 18 struct vfio_ccw_private *private; in vfio_ccw_mdev_reset() local 22 private = dev_get_drvdata(mdev_parent_dev(mdev)); in vfio_ccw_mdev_reset() 23 sch = private->sch; in vfio_ccw_mdev_reset() 38 private->state = VFIO_CCW_STATE_IDLE; in vfio_ccw_mdev_reset() 47 struct vfio_ccw_private *private = in vfio_ccw_mdev_notifier() local 57 if (!cp_iova_pinned(&private->cp, unmap->iova)) in vfio_ccw_mdev_notifier() 60 if (vfio_ccw_mdev_reset(private->mdev)) in vfio_ccw_mdev_notifier() 63 cp_free(&private->cp); in vfio_ccw_mdev_notifier() 86 struct vfio_ccw_private *private = dev_get_drvdata(dev); in available_instances_show() local 88 return sprintf(buf, "%d\n", atomic_read(&private->avail)); in available_instances_show() [all …]
|
D | eadm_sch.c | 100 struct eadm_private *private = from_timer(private, t, timer); in eadm_subchannel_timeout() local 101 struct subchannel *sch = private->sch; in eadm_subchannel_timeout() 113 struct eadm_private *private = get_eadm_private(sch); in eadm_subchannel_set_timeout() local 116 del_timer(&private->timer); in eadm_subchannel_set_timeout() 119 if (timer_pending(&private->timer)) { in eadm_subchannel_set_timeout() 120 if (mod_timer(&private->timer, jiffies + expires)) in eadm_subchannel_set_timeout() 123 private->timer.expires = jiffies + expires; in eadm_subchannel_set_timeout() 124 add_timer(&private->timer); in eadm_subchannel_set_timeout() 129 struct eadm_private *private = get_eadm_private(sch); in eadm_subchannel_irq() local 148 if (private->state != EADM_BUSY) { in eadm_subchannel_irq() [all …]
|
D | device_ops.c | 47 cdev->private->options.fast = (flags & CCWDEV_EARLY_NOTIFICATION) != 0; in ccw_device_set_options_mask() 48 cdev->private->options.repall = (flags & CCWDEV_REPORT_ALL) != 0; in ccw_device_set_options_mask() 49 cdev->private->options.pgroup = (flags & CCWDEV_DO_PATHGROUP) != 0; in ccw_device_set_options_mask() 50 cdev->private->options.force = (flags & CCWDEV_ALLOW_FORCE) != 0; in ccw_device_set_options_mask() 51 cdev->private->options.mpath = (flags & CCWDEV_DO_MULTIPATH) != 0; in ccw_device_set_options_mask() 72 cdev->private->options.repall) || in ccw_device_set_options() 74 cdev->private->options.fast)) in ccw_device_set_options() 76 cdev->private->options.fast |= (flags & CCWDEV_EARLY_NOTIFICATION) != 0; in ccw_device_set_options() 77 cdev->private->options.repall |= (flags & CCWDEV_REPORT_ALL) != 0; in ccw_device_set_options() 78 cdev->private->options.pgroup |= (flags & CCWDEV_DO_PATHGROUP) != 0; in ccw_device_set_options() [all …]
|
D | device_id.c | 101 struct ccw_dev_id *dev_id = &cdev->private->dev_id; in diag210_get_dev_info() 102 struct senseid *senseid = &cdev->private->senseid; in diag210_get_dev_info() 136 cdev->private->flags.esid = 0; in snsid_init() 137 memset(&cdev->private->senseid, 0, sizeof(cdev->private->senseid)); in snsid_init() 138 cdev->private->senseid.cu_type = 0xffff; in snsid_init() 146 struct cmd_scsw *scsw = &cdev->private->irb.scsw.cmd; in snsid_check() 152 if (cdev->private->senseid.cu_type == 0xffff) in snsid_check() 155 if (cdev->private->senseid.reserved != 0xff) in snsid_check() 159 cdev->private->flags.esid = 1; in snsid_check() 172 struct ccw_dev_id *id = &cdev->private->dev_id; in snsid_callback() [all …]
|
D | device.c | 264 if (cdev->private->flags.initialized) { in ccw_device_unregister() 265 cdev->private->flags.initialized = 0; in ccw_device_unregister() 304 cdev->private->state != DEV_STATE_DISCONNECTED) { in ccw_device_set_offline() 306 wait_event(cdev->private->wait_q, (dev_fsm_final_state(cdev) || in ccw_device_set_offline() 307 cdev->private->state == DEV_STATE_DISCONNECTED)); in ccw_device_set_offline() 315 "0.%x.%04x\n", ret, cdev->private->dev_id.ssid, in ccw_device_set_offline() 316 cdev->private->dev_id.devno); in ccw_device_set_offline() 319 state = cdev->private->state; in ccw_device_set_offline() 323 cdev->private->state = state; in ccw_device_set_offline() 326 wait_event(cdev->private->wait_q, (dev_fsm_final_state(cdev) || in ccw_device_set_offline() [all …]
|
D | device_status.c | 41 cdev->private->dev_id.devno, sch->schid.ssid, in ccw_device_msg_control_check() 68 cdev->private->flags.doverify = 1; in ccw_device_path_notoper() 82 cdev->private->irb.scsw.cmd.ectl = 0; in ccw_device_accumulate_ecw() 85 cdev->private->irb.scsw.cmd.ectl = irb->scsw.cmd.ectl; in ccw_device_accumulate_ecw() 87 if (!cdev->private->irb.scsw.cmd.ectl) in ccw_device_accumulate_ecw() 90 memcpy (&cdev->private->irb.ecw, irb->ecw, sizeof (irb->ecw)); in ccw_device_accumulate_ecw() 121 cdev_irb = &cdev->private->irb; in ccw_device_accumulate_esw() 182 cdev->private->flags.doverify = 1; in ccw_device_accumulate_esw() 213 memcpy(&cdev->private->irb, irb, sizeof(struct irb)); in ccw_device_accumulate_irb() 222 cdev_irb = &cdev->private->irb; in ccw_device_accumulate_irb() [all …]
|
D | cmf.c | 218 if (!cdev->private->cmb) in set_schib_wait() 226 if (cdev->private->state != DEV_STATE_ONLINE) in set_schib_wait() 235 cdev->private->state = DEV_STATE_CMFCHANGE; in set_schib_wait() 236 cdev->private->cmb_wait = &set_data; in set_schib_wait() 246 if (cdev->private->state == DEV_STATE_CMFCHANGE) in set_schib_wait() 247 cdev->private->state = DEV_STATE_ONLINE; in set_schib_wait() 250 cdev->private->cmb_wait = NULL; in set_schib_wait() 259 struct set_schib_struct *set_data = cdev->private->cmb_wait; in retry_set_schib() 286 cmb_data = cdev->private->cmb; in cmf_copy_block() 304 if (!cdev->private->cmb) in cmf_cmb_copy_wait() [all …]
|
D | ccwreq.c | 43 struct ccw_request *req = &cdev->private->req; in ccwreq_next_path() 60 struct ccw_request *req = &cdev->private->req; in ccwreq_stop() 66 memset(&cdev->private->irb, 0, sizeof(struct irb)); in ccwreq_stop() 77 struct ccw_request *req = &cdev->private->req; in ccwreq_do() 89 memset(&cdev->private->irb, 0, sizeof(struct irb)); in ccwreq_do() 122 struct ccw_request *req = &cdev->private->req; in ccw_request_start() 154 struct ccw_request *req = &cdev->private->req; in ccw_request_cancel() 172 struct irb *irb = &cdev->private->irb; in ccwreq_status() 188 CIO_HEX_EVENT(2, &cdev->private->dev_id, in ccwreq_status() 190 CIO_HEX_EVENT(2, &cdev->private->irb.ecw, SENSE_MAX_COUNT); in ccwreq_status() [all …]
|
D | device.h | 61 int state = cdev->private->state; in dev_fsm_event() 65 inc_irq_stat(cdev->private->int_class); in dev_fsm_event() 79 return (cdev->private->state == DEV_STATE_NOT_OPER || in dev_fsm_final_state() 80 cdev->private->state == DEV_STATE_OFFLINE || in dev_fsm_final_state() 81 cdev->private->state == DEV_STATE_ONLINE || in dev_fsm_final_state() 82 cdev->private->state == DEV_STATE_BOXED); in dev_fsm_final_state()
|
/linux-4.19.296/drivers/s390/block/ |
D | dasd_diag.c | 107 struct dasd_diag_private *private = device->private; in mdsk_init_io() local 108 struct dasd_diag_init_io *iib = &private->iib; in mdsk_init_io() 113 iib->dev_nr = private->dev_id.devno; in mdsk_init_io() 131 struct dasd_diag_private *private = device->private; in mdsk_term_io() local 132 struct dasd_diag_init_io *iib = &private->iib; in mdsk_term_io() 136 iib->dev_nr = private->dev_id.devno; in mdsk_term_io() 167 struct dasd_diag_private *private; in dasd_start_diag() local 178 private = device->private; in dasd_start_diag() 181 private->iob.dev_nr = private->dev_id.devno; in dasd_start_diag() 182 private->iob.key = 0; in dasd_start_diag() [all …]
|
D | dasd_eckd.c | 220 struct dasd_eckd_private *private = device->private; in set_timestamp() local 228 if ((rc && !private->rdc_data.facilities.XRC_supported) || in set_timestamp() 249 struct dasd_eckd_private *private = device->private; in define_extent() local 272 data->attributes.operation = private->attrib.operation; in define_extent() 281 data->attributes.operation = private->attrib.operation; in define_extent() 289 data->attributes.operation = private->attrib.operation; in define_extent() 307 data->attributes.operation = private->attrib.operation; in define_extent() 312 data->attributes.operation = private->attrib.operation; in define_extent() 324 if ((private->rdc_data.cu_type == 0x2105 || in define_extent() 325 private->rdc_data.cu_type == 0x2107 || in define_extent() [all …]
|
D | dasd_alias.c | 189 struct dasd_eckd_private *private = device->private; in dasd_alias_make_device_known_to_lcu() local 232 private->lcu = lcu; in dasd_alias_make_device_known_to_lcu() 246 struct dasd_eckd_private *private = device->private; in dasd_alias_disconnect_device_from_lcu() local 253 lcu = private->lcu; in dasd_alias_disconnect_device_from_lcu() 280 private->lcu = NULL; in dasd_alias_disconnect_device_from_lcu() 317 struct dasd_eckd_private *private = device->private; in _add_device_to_lcu() local 322 private->uid.type = lcu->uac->unit[private->uid.real_unit_addr].ua_type; in _add_device_to_lcu() 323 private->uid.base_unit_addr = in _add_device_to_lcu() 324 lcu->uac->unit[private->uid.real_unit_addr].base_ua; in _add_device_to_lcu() 325 uid = private->uid; in _add_device_to_lcu() [all …]
|
D | dasd_fba.c | 130 struct dasd_fba_private *private = device->private; in dasd_fba_check_characteristics() local 135 if (!private) { in dasd_fba_check_characteristics() 136 private = kzalloc(sizeof(*private), GFP_KERNEL | GFP_DMA); in dasd_fba_check_characteristics() 137 if (!private) { in dasd_fba_check_characteristics() 143 device->private = private; in dasd_fba_check_characteristics() 145 memset(private, 0, sizeof(*private)); in dasd_fba_check_characteristics() 151 device->private = NULL; in dasd_fba_check_characteristics() 152 kfree(private); in dasd_fba_check_characteristics() 160 &private->rdc_data, 32); in dasd_fba_check_characteristics() 166 device->private = NULL; in dasd_fba_check_characteristics() [all …]
|
/linux-4.19.296/crypto/ |
D | algif_rng.c | 63 struct rng_ctx *ctx = ask->private; in rng_recvmsg() 121 static void rng_release(void *private) in rng_release() argument 123 crypto_free_rng(private); in rng_release() 129 struct rng_ctx *ctx = ask->private; in rng_sock_destruct() 135 static int rng_accept_parent(void *private, struct sock *sk) in rng_accept_parent() argument 153 ctx->drng = private; in rng_accept_parent() 154 ask->private = ctx; in rng_accept_parent() 160 static int rng_setkey(void *private, const u8 *seed, unsigned int seedlen) in rng_setkey() argument 166 return crypto_rng_reset(private, seed, seedlen); in rng_setkey()
|
D | algif_skcipher.c | 48 struct crypto_skcipher *tfm = pask->private; in skcipher_sendmsg() 61 struct af_alg_ctx *ctx = ask->private; in _skcipher_recvmsg() 62 struct crypto_skcipher *tfm = pask->private; in _skcipher_recvmsg() 223 tfm = pask->private; in skcipher_check_key() 306 static void skcipher_release(void *private) in skcipher_release() argument 308 crypto_free_skcipher(private); in skcipher_release() 311 static int skcipher_setkey(void *private, const u8 *key, unsigned int keylen) in skcipher_setkey() argument 313 return crypto_skcipher_setkey(private, key, keylen); in skcipher_setkey() 319 struct af_alg_ctx *ctx = ask->private; in skcipher_sock_destruct() 322 struct crypto_skcipher *tfm = pask->private; in skcipher_sock_destruct() [all …]
|
D | algif_aead.c | 53 struct af_alg_ctx *ctx = ask->private; in aead_sufficient_data() 54 struct aead_tfm *aeadc = pask->private; in aead_sufficient_data() 71 struct aead_tfm *aeadc = pask->private; in aead_sendmsg() 99 struct af_alg_ctx *ctx = ask->private; in _aead_recvmsg() 100 struct aead_tfm *aeadc = pask->private; in _aead_recvmsg() 397 tfm = pask->private; in aead_check_key() 504 static void aead_release(void *private) in aead_release() argument 506 struct aead_tfm *tfm = private; in aead_release() 513 static int aead_setauthsize(void *private, unsigned int authsize) in aead_setauthsize() argument 515 struct aead_tfm *tfm = private; in aead_setauthsize() [all …]
|
D | algif_hash.c | 74 struct hash_ctx *ctx = ask->private; in hash_sendmsg() 141 struct hash_ctx *ctx = ask->private; in hash_sendpage() 193 struct hash_ctx *ctx = ask->private; in hash_recvmsg() 240 struct hash_ctx *ctx = ask->private; in hash_accept() 263 ctx2 = ask2->private; in hash_accept() 314 tfm = pask->private; in hash_check_key() 408 static void hash_release(void *private) in hash_release() argument 410 crypto_free_ahash(private); in hash_release() 413 static int hash_setkey(void *private, const u8 *key, unsigned int keylen) in hash_setkey() argument 415 return crypto_ahash_setkey(private, key, keylen); in hash_setkey() [all …]
|
/linux-4.19.296/fs/pstore/ |
D | inode.c | 61 static void free_pstore_private(struct pstore_private *private) in free_pstore_private() argument 63 if (!private) in free_pstore_private() 65 if (private->record) { in free_pstore_private() 66 kfree(private->record->buf); in free_pstore_private() 67 kfree(private->record); in free_pstore_private() 69 kfree(private); in free_pstore_private() 74 struct pstore_private *ps = s->private; in pstore_ftrace_seq_start() 99 struct pstore_private *ps = s->private; in pstore_ftrace_seq_next() 112 struct pstore_private *ps = s->private; in pstore_ftrace_seq_show() 141 struct pstore_private *ps = sf->private; in pstore_file_read() [all …]
|
/linux-4.19.296/fs/ocfs2/ |
D | aops.h | 68 test_bit(0, (unsigned long *)&iocb->private) 71 set_bit(0, (unsigned long *)&iocb->private); in ocfs2_iocb_set_rw_locked() 73 set_bit(1, (unsigned long *)&iocb->private); in ocfs2_iocb_set_rw_locked() 75 clear_bit(1, (unsigned long *)&iocb->private); in ocfs2_iocb_set_rw_locked() 90 clear_bit(OCFS2_IOCB_RW_LOCK, (unsigned long *)&iocb->private) 92 test_bit(OCFS2_IOCB_RW_LOCK_LEVEL, (unsigned long *)&iocb->private)
|
/linux-4.19.296/drivers/iio/buffer/ |
D | industrialio-buffer-cb.c | 19 int (*cb)(const void *data, void *private); 20 void *private; member 33 return cb_buff->cb(data, cb_buff->private); in iio_buffer_cb_store_to() 52 void *private), in iio_channel_get_all_cb() argument 53 void *private) in iio_channel_get_all_cb() 65 cb_buff->private = private; in iio_channel_get_all_cb()
|
/linux-4.19.296/include/crypto/ |
D | if_alg.h | 41 void *private; member 52 void (*release)(void *private); 53 int (*setkey)(void *private, const u8 *key, unsigned int keylen); 54 int (*accept)(void *private, struct sock *sk); 55 int (*accept_nokey)(void *private, struct sock *sk); 56 int (*setauthsize)(void *private, unsigned int authsize); 190 struct af_alg_ctx *ctx = ask->private; in af_alg_sndbuf() 216 struct af_alg_ctx *ctx = ask->private; in af_alg_rcvbuf()
|