/linux-4.19.296/drivers/s390/cio/ |
D | device_fsm.c | 37 static void ccw_timeout_log(struct ccw_device *cdev) in ccw_timeout_log() argument 45 sch = to_subchannel(cdev->dev.parent); in ccw_timeout_log() 56 dev_name(&cdev->dev)); 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() 99 struct ccw_device *cdev = priv->cdev; in ccw_device_timeout() local 101 spin_lock_irq(cdev->ccwlock); in ccw_device_timeout() 103 ccw_timeout_log(cdev); in ccw_device_timeout() 104 dev_fsm_event(cdev, DEV_EVENT_TIMEOUT); in ccw_device_timeout() [all …]
|
D | device.c | 62 struct ccw_device *cdev = to_ccwdev(dev); in ccw_bus_match() local 69 found = ccw_device_id_match(ids, &cdev->id); in ccw_bus_match() 73 cdev->id.driver_info = found->driver_info; in ccw_bus_match() 105 struct ccw_device *cdev = to_ccwdev(dev); in ccw_uevent() local 106 struct ccw_device_id *id = &(cdev->id); in ccw_uevent() 153 struct ccw_device *cdev; in io_subchannel_prepare() local 158 cdev = sch_get_cdev(sch); in io_subchannel_prepare() 159 if (cdev && !device_is_registered(&cdev->dev)) in io_subchannel_prepare() 213 struct ccw_device *cdev = to_ccwdev(dev); in devtype_show() local 214 struct ccw_device_id *id = &(cdev->id); in devtype_show() [all …]
|
D | device_pgid.c | 28 static void verify_start(struct ccw_device *cdev); 33 static void verify_done(struct ccw_device *cdev, int rc) in verify_done() argument 35 struct subchannel *sch = to_subchannel(cdev->dev.parent); in verify_done() 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() 51 ccw_device_verify_done(cdev, rc); in verify_done() 57 static void nop_build_cp(struct ccw_device *cdev) in nop_build_cp() argument 59 struct ccw_request *req = &cdev->private->req; in nop_build_cp() 60 struct ccw1 *cp = cdev->private->iccws; in nop_build_cp() [all …]
|
D | device_ops.c | 39 int ccw_device_set_options_mask(struct ccw_device *cdev, unsigned long flags) in ccw_device_set_options_mask() argument 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() 64 int ccw_device_set_options(struct ccw_device *cdev, unsigned long flags) in ccw_device_set_options() argument 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() [all …]
|
D | ccwreq.c | 41 static u16 ccwreq_next_path(struct ccw_device *cdev) in ccwreq_next_path() argument 43 struct ccw_request *req = &cdev->private->req; in ccwreq_next_path() 58 static void ccwreq_stop(struct ccw_device *cdev, int rc) in ccwreq_stop() argument 60 struct ccw_request *req = &cdev->private->req; in ccwreq_stop() 65 ccw_device_set_timeout(cdev, 0); in ccwreq_stop() 66 memset(&cdev->private->irb, 0, sizeof(struct irb)); in ccwreq_stop() 69 req->callback(cdev, req->data, rc); in ccwreq_stop() 75 static void ccwreq_do(struct ccw_device *cdev) in ccwreq_do() argument 77 struct ccw_request *req = &cdev->private->req; in ccwreq_do() 78 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccwreq_do() [all …]
|
D | cmf.c | 175 static int set_schib(struct ccw_device *cdev, u32 mme, int mbfc, in set_schib() argument 178 struct subchannel *sch = to_subchannel(cdev->dev.parent); in set_schib() 211 static int set_schib_wait(struct ccw_device *cdev, u32 mme, in set_schib_wait() argument 217 spin_lock_irq(cdev->ccwlock); in set_schib_wait() 218 if (!cdev->private->cmb) in set_schib_wait() 221 ret = set_schib(cdev, mme, mbfc, address); 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() 237 spin_unlock_irq(cdev->ccwlock); in set_schib_wait() [all …]
|
D | device_id.c | 99 static int diag210_get_dev_info(struct ccw_device *cdev) in diag210_get_dev_info() argument 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() 134 static void snsid_init(struct ccw_device *cdev) in snsid_init() argument 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() 144 static int snsid_check(struct ccw_device *cdev, void *data) in snsid_check() argument 146 struct cmd_scsw *scsw = &cdev->private->irb.scsw.cmd; in snsid_check() 152 if (cdev->private->senseid.cu_type == 0xffff) in snsid_check() [all …]
|
D | device.h | 59 dev_fsm_event(struct ccw_device *cdev, enum dev_event dev_event) in dev_fsm_event() argument 61 int state = cdev->private->state; in dev_fsm_event() 65 inc_irq_stat(cdev->private->int_class); in dev_fsm_event() 70 dev_jumptable[state][dev_event](cdev, dev_event); in dev_fsm_event() 77 dev_fsm_final_state(struct ccw_device *cdev) in dev_fsm_final_state() argument 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() 87 void io_subchannel_recog_done(struct ccw_device *cdev); [all …]
|
D | device_status.c | 28 ccw_device_msg_control_check(struct ccw_device *cdev, struct irb *irb) in ccw_device_msg_control_check() argument 30 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_msg_control_check() 41 cdev->private->dev_id.devno, sch->schid.ssid, in ccw_device_msg_control_check() 53 ccw_device_path_notoper(struct ccw_device *cdev) in ccw_device_path_notoper() argument 57 sch = to_subchannel(cdev->dev.parent); in ccw_device_path_notoper() 68 cdev->private->flags.doverify = 1; in ccw_device_path_notoper() 75 ccw_device_accumulate_ecw(struct ccw_device *cdev, struct irb *irb) in ccw_device_accumulate_ecw() argument 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() [all …]
|
D | ccwgroup.c | 44 sysfs_remove_link(&gdev->cdev[i]->dev.kobj, "group_device"); in __ccwgroup_remove_symlinks() 54 struct ccw_device *cdev; in __ccwgroup_remove_cdev_refs() local 58 cdev = gdev->cdev[i]; in __ccwgroup_remove_cdev_refs() 59 if (!cdev) in __ccwgroup_remove_cdev_refs() 61 spin_lock_irq(cdev->ccwlock); in __ccwgroup_remove_cdev_refs() 62 dev_set_drvdata(&cdev->dev, NULL); in __ccwgroup_remove_cdev_refs() 63 spin_unlock_irq(cdev->ccwlock); in __ccwgroup_remove_cdev_refs() 64 gdev->cdev[i] = NULL; in __ccwgroup_remove_cdev_refs() 65 put_device(&cdev->dev); in __ccwgroup_remove_cdev_refs() 246 rc = sysfs_create_link(&gdev->cdev[i]->dev.kobj, in __ccwgroup_create_symlinks() [all …]
|
/linux-4.19.296/drivers/misc/mic/cosm/ |
D | cosm_main.c | 42 static void cosm_hw_reset(struct cosm_device *cdev, bool force) in cosm_hw_reset() argument 47 if (force && cdev->hw_ops->force_reset) in cosm_hw_reset() 48 cdev->hw_ops->force_reset(cdev); in cosm_hw_reset() 50 cdev->hw_ops->reset(cdev); in cosm_hw_reset() 53 if (cdev->hw_ops->ready(cdev)) { in cosm_hw_reset() 54 cosm_set_state(cdev, MIC_READY); in cosm_hw_reset() 64 cosm_set_state(cdev, MIC_RESET_FAILED); in cosm_hw_reset() 74 int cosm_start(struct cosm_device *cdev) in cosm_start() argument 80 mutex_lock(&cdev->cosm_mutex); in cosm_start() 81 if (!cdev->bootmode) { in cosm_start() [all …]
|
D | cosm_sysfs.c | 49 void cosm_set_shutdown_status(struct cosm_device *cdev, u8 shutdown_status) in cosm_set_shutdown_status() argument 51 dev_dbg(&cdev->dev, "Shutdown Status %s -> %s\n", in cosm_set_shutdown_status() 52 cosm_shutdown_status_string[cdev->shutdown_status], in cosm_set_shutdown_status() 54 cdev->shutdown_status = shutdown_status; in cosm_set_shutdown_status() 57 void cosm_set_state(struct cosm_device *cdev, u8 state) in cosm_set_state() argument 59 dev_dbg(&cdev->dev, "State %s -> %s\n", in cosm_set_state() 60 cosm_state_string[cdev->state], in cosm_set_state() 62 cdev->state = state; in cosm_set_state() 63 sysfs_notify_dirent(cdev->state_sysfs); in cosm_set_state() 69 struct cosm_device *cdev = dev_get_drvdata(dev); in family_show() local [all …]
|
D | cosm_scif_server.c | 107 static void cosm_update_mic_status(struct cosm_device *cdev) in cosm_update_mic_status() argument 109 if (cdev->shutdown_status_int != MIC_NOP) { in cosm_update_mic_status() 110 cosm_set_shutdown_status(cdev, cdev->shutdown_status_int); in cosm_update_mic_status() 111 cdev->shutdown_status_int = MIC_NOP; in cosm_update_mic_status() 116 static void cosm_shutdown_status_int(struct cosm_device *cdev, in cosm_shutdown_status_int() argument 126 dev_err(&cdev->dev, "%s %d Unexpected shutdown_status %d\n", in cosm_shutdown_status_int() 130 cdev->shutdown_status_int = shutdown_status; in cosm_shutdown_status_int() 131 cdev->heartbeat_watchdog_enable = false; in cosm_shutdown_status_int() 133 if (cdev->state != MIC_SHUTTING_DOWN) in cosm_shutdown_status_int() 134 cosm_set_state(cdev, MIC_SHUTTING_DOWN); in cosm_shutdown_status_int() [all …]
|
D | cosm_debugfs.c | 40 struct cosm_device *cdev = s->private; in cosm_log_buf_show() local 45 if (!cdev || !cdev->log_buf_addr || !cdev->log_buf_len) in cosm_log_buf_show() 48 mutex_lock(&cdev->cosm_mutex); in cosm_log_buf_show() 49 switch (cdev->state) { in cosm_log_buf_show() 62 aper_offset = (u64)cdev->log_buf_len - __START_KERNEL_map; in cosm_log_buf_show() 63 log_buf_len_va = cdev->hw_ops->aper(cdev)->va + aper_offset; in cosm_log_buf_show() 64 aper_offset = (u64)cdev->log_buf_addr - __START_KERNEL_map; in cosm_log_buf_show() 65 log_buf_va = cdev->hw_ops->aper(cdev)->va + aper_offset; in cosm_log_buf_show() 76 mutex_unlock(&cdev->cosm_mutex); in cosm_log_buf_show() 102 struct cosm_device *cdev = s->private; in cosm_force_reset_show() local [all …]
|
D | cosm_main.h | 58 void cosm_sysfs_init(struct cosm_device *cdev); 59 int cosm_start(struct cosm_device *cdev); 60 void cosm_stop(struct cosm_device *cdev, bool force); 61 int cosm_reset(struct cosm_device *cdev); 62 int cosm_shutdown(struct cosm_device *cdev); 63 void cosm_set_state(struct cosm_device *cdev, u8 state); 64 void cosm_set_shutdown_status(struct cosm_device *cdev, u8 status); 67 void cosm_create_debug_dir(struct cosm_device *cdev); 68 void cosm_delete_debug_dir(struct cosm_device *cdev);
|
/linux-4.19.296/drivers/misc/ |
D | enclosure.c | 184 device_unregister(&edev->component[i].cdev); in enclosure_unregister() 195 static void enclosure_link_name(struct enclosure_component *cdev, char *name) in enclosure_link_name() argument 198 strcat(name, dev_name(&cdev->cdev)); in enclosure_link_name() 201 static void enclosure_remove_links(struct enclosure_component *cdev) in enclosure_remove_links() argument 205 enclosure_link_name(cdev, name); in enclosure_remove_links() 211 if (cdev->dev->kobj.sd) in enclosure_remove_links() 212 sysfs_remove_link(&cdev->dev->kobj, name); in enclosure_remove_links() 214 if (cdev->cdev.kobj.sd) in enclosure_remove_links() 215 sysfs_remove_link(&cdev->cdev.kobj, "device"); in enclosure_remove_links() 218 static int enclosure_add_links(struct enclosure_component *cdev) in enclosure_add_links() argument [all …]
|
/linux-4.19.296/include/linux/qed/ |
D | qed_eth_if.h | 231 int (*ieee_getpfc)(struct qed_dev *cdev, struct ieee_pfc *pfc); 232 int (*ieee_setpfc)(struct qed_dev *cdev, struct ieee_pfc *pfc); 233 int (*ieee_getets)(struct qed_dev *cdev, struct ieee_ets *ets); 234 int (*ieee_setets)(struct qed_dev *cdev, struct ieee_ets *ets); 235 int (*ieee_peer_getets)(struct qed_dev *cdev, struct ieee_ets *ets); 236 int (*ieee_peer_getpfc)(struct qed_dev *cdev, struct ieee_pfc *pfc); 237 int (*ieee_getapp)(struct qed_dev *cdev, struct dcb_app *app); 238 int (*ieee_setapp)(struct qed_dev *cdev, struct dcb_app *app); 241 u8 (*getstate)(struct qed_dev *cdev); 242 u8 (*setstate)(struct qed_dev *cdev, u8 state); [all …]
|
/linux-4.19.296/drivers/s390/scsi/ |
D | zfcp_ccw.c | 21 struct zfcp_adapter *zfcp_ccw_adapter_by_cdev(struct ccw_device *cdev) in zfcp_ccw_adapter_by_cdev() argument 27 adapter = dev_get_drvdata(&cdev->dev); in zfcp_ccw_adapter_by_cdev() 49 static int zfcp_ccw_activate(struct ccw_device *cdev, int clear, char *tag) in zfcp_ccw_activate() argument 51 struct zfcp_adapter *adapter = zfcp_ccw_adapter_by_cdev(cdev); in zfcp_ccw_activate() 98 static int zfcp_ccw_probe(struct ccw_device *cdev) in zfcp_ccw_probe() argument 112 static void zfcp_ccw_remove(struct ccw_device *cdev) in zfcp_ccw_remove() argument 120 ccw_device_set_offline(cdev); in zfcp_ccw_remove() 122 adapter = zfcp_ccw_adapter_by_cdev(cdev); in zfcp_ccw_remove() 159 static int zfcp_ccw_set_online(struct ccw_device *cdev) in zfcp_ccw_set_online() argument 161 struct zfcp_adapter *adapter = zfcp_ccw_adapter_by_cdev(cdev); in zfcp_ccw_set_online() [all …]
|
/linux-4.19.296/drivers/s390/block/ |
D | dasd_3990_erp.c | 80 spin_lock_irqsave(get_ccwdev_lock(device->cdev), flags); in dasd_3990_erp_block_queue() 82 spin_unlock_irqrestore(get_ccwdev_lock(device->cdev), flags); in dasd_3990_erp_block_queue() 119 dev_err(&device->cdev->dev, in dasd_3990_erp_int_req() 152 spin_lock_irqsave(get_ccwdev_lock(device->cdev), flags); in dasd_3990_erp_alternate_path() 153 opm = ccw_device_get_path_mask(device->cdev); in dasd_3990_erp_alternate_path() 154 spin_unlock_irqrestore(get_ccwdev_lock(device->cdev), flags); in dasd_3990_erp_alternate_path() 171 dev_err(&device->cdev->dev, in dasd_3990_erp_alternate_path() 208 dev_err(&device->cdev->dev, in dasd_3990_erp_DCTL() 412 dev_warn(&device->cdev->dev, in dasd_3990_handle_env_data() 416 dev_warn(&device->cdev->dev, in dasd_3990_handle_env_data() [all …]
|
/linux-4.19.296/drivers/misc/mic/bus/ |
D | cosm_bus.c | 66 struct cosm_device *cdev = dev_to_cosm(d); in cosm_release_dev() local 68 kfree(cdev); in cosm_release_dev() 74 struct cosm_device *cdev; in cosm_register_device() local 77 cdev = kzalloc(sizeof(*cdev), GFP_KERNEL); in cosm_register_device() 78 if (!cdev) in cosm_register_device() 81 cdev->dev.parent = pdev; in cosm_register_device() 82 cdev->dev.release = cosm_release_dev; in cosm_register_device() 83 cdev->hw_ops = hw_ops; in cosm_register_device() 84 dev_set_drvdata(&cdev->dev, cdev); in cosm_register_device() 85 cdev->dev.bus = &cosm_bus; in cosm_register_device() [all …]
|
/linux-4.19.296/drivers/isdn/capi/ |
D | capi.c | 108 struct capidev *cdev; member 295 static void capincci_alloc_minor(struct capidev *cdev, struct capincci *np) in capincci_alloc_minor() argument 297 if (cdev->userflags & CAPIFLAG_HIGHJACKING) in capincci_alloc_minor() 298 np->minorp = capiminor_alloc(&cdev->ap, np->ncci); in capincci_alloc_minor() 336 capincci_alloc_minor(struct capidev *cdev, struct capincci *np) { } in capincci_alloc_minor() argument 341 static struct capincci *capincci_alloc(struct capidev *cdev, u32 ncci) in capincci_alloc() argument 349 np->cdev = cdev; in capincci_alloc() 351 capincci_alloc_minor(cdev, np); in capincci_alloc() 353 list_add_tail(&np->list, &cdev->nccis); in capincci_alloc() 358 static void capincci_free(struct capidev *cdev, u32 ncci) in capincci_free() argument [all …]
|
/linux-4.19.296/fs/ |
D | char_dev.c | 40 struct cdev *cdev; /* will die */ member 282 struct cdev *cdev; in __register_chrdev() local 289 cdev = cdev_alloc(); in __register_chrdev() 290 if (!cdev) in __register_chrdev() 293 cdev->owner = fops->owner; in __register_chrdev() 294 cdev->ops = fops; in __register_chrdev() 295 kobject_set_name(&cdev->kobj, "%s", name); in __register_chrdev() 297 err = cdev_add(cdev, MKDEV(cd->major, baseminor), count); in __register_chrdev() 301 cd->cdev = cdev; in __register_chrdev() 305 kobject_put(&cdev->kobj); in __register_chrdev() [all …]
|
/linux-4.19.296/include/linux/ |
D | cdev.h | 14 struct cdev { struct 23 void cdev_init(struct cdev *, const struct file_operations *); argument 25 struct cdev *cdev_alloc(void); 27 void cdev_put(struct cdev *p); 29 int cdev_add(struct cdev *, dev_t, unsigned); 31 void cdev_set_parent(struct cdev *p, struct kobject *kobj); 32 int cdev_device_add(struct cdev *cdev, struct device *dev); 33 void cdev_device_del(struct cdev *cdev, struct device *dev); 35 void cdev_del(struct cdev *);
|
/linux-4.19.296/drivers/char/agp/ |
D | isoch.c | 84 unsigned int cdev = 0; in agp_3_5_isochronous_node_enable() local 145 master[cdev].maxbw = (mnistat >> 16) & 0xff; in agp_3_5_isochronous_node_enable() 146 master[cdev].n = (mnistat >> 8) & 0xff; in agp_3_5_isochronous_node_enable() 147 master[cdev].y = (mnistat >> 6) & 0x3; in agp_3_5_isochronous_node_enable() 148 master[cdev].dev = cur; in agp_3_5_isochronous_node_enable() 150 tot_bw += master[cdev].maxbw; in agp_3_5_isochronous_node_enable() 151 y_max = max(y_max, master[cdev].y); in agp_3_5_isochronous_node_enable() 153 cdev++; in agp_3_5_isochronous_node_enable() 183 for (cdev=0; cdev<ndevs; cdev++) { in agp_3_5_isochronous_node_enable() 184 master[cdev].y = target.y; in agp_3_5_isochronous_node_enable() [all …]
|
/linux-4.19.296/drivers/s390/char/ |
D | vmur.c | 61 static int ur_probe(struct ccw_device *cdev); 62 static void ur_remove(struct ccw_device *cdev); 63 static int ur_set_online(struct ccw_device *cdev); 64 static int ur_set_offline(struct ccw_device *cdev); 65 static int ur_pm_suspend(struct ccw_device *cdev); 102 static struct urdev *urdev_alloc(struct ccw_device *cdev) in urdev_alloc() argument 109 urd->reclen = cdev->id.driver_info; in urdev_alloc() 110 ccw_device_get_id(cdev, &urd->dev_id); in urdev_alloc() 115 urd->cdev = cdev; in urdev_alloc() 116 get_device(&cdev->dev); in urdev_alloc() [all …]
|