/linux-4.4.14/drivers/s390/cio/ |
D | device_fsm.c | 36 static void ccw_timeout_log(struct ccw_device *cdev) in ccw_timeout_log() argument 44 sch = to_subchannel(cdev->dev.parent); in ccw_timeout_log() 55 dev_name(&cdev->dev)); in ccw_timeout_log() 70 (void *)(addr_t)orb->cmd.cpa == cdev->private->iccws) in ccw_timeout_log() 81 cdev->private->state); in ccw_timeout_log() 88 &cdev->private->flags, sizeof(cdev->private->flags), 0); in ccw_timeout_log() 97 struct ccw_device *cdev; in ccw_device_timeout() local 99 cdev = (struct ccw_device *) data; in ccw_device_timeout() 100 spin_lock_irq(cdev->ccwlock); in ccw_device_timeout() 102 ccw_timeout_log(cdev); in ccw_device_timeout() [all …]
|
D | device.c | 60 struct ccw_device *cdev = to_ccwdev(dev); in ccw_bus_match() local 67 found = ccw_device_id_match(ids, &cdev->id); in ccw_bus_match() 71 cdev->id.driver_info = found->driver_info; in ccw_bus_match() 103 struct ccw_device *cdev = to_ccwdev(dev); in ccw_uevent() local 104 struct ccw_device_id *id = &(cdev->id); in ccw_uevent() 152 struct ccw_device *cdev; in io_subchannel_prepare() local 157 cdev = sch_get_cdev(sch); in io_subchannel_prepare() 158 if (cdev && !device_is_registered(&cdev->dev)) in io_subchannel_prepare() 250 struct ccw_device *cdev = to_ccwdev(dev); in devtype_show() local 251 struct ccw_device_id *id = &(cdev->id); in devtype_show() [all …]
|
D | device_pgid.c | 27 static void verify_start(struct ccw_device *cdev); 32 static void verify_done(struct ccw_device *cdev, int rc) in verify_done() argument 34 struct subchannel *sch = to_subchannel(cdev->dev.parent); in verify_done() 35 struct ccw_dev_id *id = &cdev->private->dev_id; in verify_done() 36 int mpath = cdev->private->flags.mpath; in verify_done() 37 int pgroup = cdev->private->flags.pgroup; in verify_done() 50 ccw_device_verify_done(cdev, rc); in verify_done() 56 static void nop_build_cp(struct ccw_device *cdev) in nop_build_cp() argument 58 struct ccw_request *req = &cdev->private->req; in nop_build_cp() 59 struct ccw1 *cp = cdev->private->iccws; in nop_build_cp() [all …]
|
D | device_ops.c | 38 int ccw_device_set_options_mask(struct ccw_device *cdev, unsigned long flags) in ccw_device_set_options_mask() argument 46 cdev->private->options.fast = (flags & CCWDEV_EARLY_NOTIFICATION) != 0; in ccw_device_set_options_mask() 47 cdev->private->options.repall = (flags & CCWDEV_REPORT_ALL) != 0; in ccw_device_set_options_mask() 48 cdev->private->options.pgroup = (flags & CCWDEV_DO_PATHGROUP) != 0; in ccw_device_set_options_mask() 49 cdev->private->options.force = (flags & CCWDEV_ALLOW_FORCE) != 0; in ccw_device_set_options_mask() 50 cdev->private->options.mpath = (flags & CCWDEV_DO_MULTIPATH) != 0; in ccw_device_set_options_mask() 63 int ccw_device_set_options(struct ccw_device *cdev, unsigned long flags) in ccw_device_set_options() argument 71 cdev->private->options.repall) || in ccw_device_set_options() 73 cdev->private->options.fast)) in ccw_device_set_options() 75 cdev->private->options.fast |= (flags & CCWDEV_EARLY_NOTIFICATION) != 0; in ccw_device_set_options() [all …]
|
D | ccwreq.c | 40 static u16 ccwreq_next_path(struct ccw_device *cdev) in ccwreq_next_path() argument 42 struct ccw_request *req = &cdev->private->req; in ccwreq_next_path() 57 static void ccwreq_stop(struct ccw_device *cdev, int rc) in ccwreq_stop() argument 59 struct ccw_request *req = &cdev->private->req; in ccwreq_stop() 64 ccw_device_set_timeout(cdev, 0); in ccwreq_stop() 65 memset(&cdev->private->irb, 0, sizeof(struct irb)); in ccwreq_stop() 68 req->callback(cdev, req->data, rc); in ccwreq_stop() 74 static void ccwreq_do(struct ccw_device *cdev) in ccwreq_do() argument 76 struct ccw_request *req = &cdev->private->req; in ccwreq_do() 77 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccwreq_do() [all …]
|
D | cmf.c | 184 static int set_schib(struct ccw_device *cdev, u32 mme, int mbfc, in set_schib() argument 187 struct subchannel *sch = to_subchannel(cdev->dev.parent); in set_schib() 228 static int set_schib_wait(struct ccw_device *cdev, u32 mme, in set_schib_wait() argument 234 spin_lock_irq(cdev->ccwlock); in set_schib_wait() 235 if (!cdev->private->cmb) { in set_schib_wait() 250 ret = set_schib(cdev, mme, mbfc, address); in set_schib_wait() 254 if (cdev->private->state != DEV_STATE_ONLINE) { in set_schib_wait() 260 cdev->private->state = DEV_STATE_CMFCHANGE; in set_schib_wait() 262 cdev->private->cmb_wait = set_data; in set_schib_wait() 264 spin_unlock_irq(cdev->ccwlock); in set_schib_wait() [all …]
|
D | device_id.c | 98 static int diag210_get_dev_info(struct ccw_device *cdev) in diag210_get_dev_info() argument 100 struct ccw_dev_id *dev_id = &cdev->private->dev_id; in diag210_get_dev_info() 101 struct senseid *senseid = &cdev->private->senseid; in diag210_get_dev_info() 133 static void snsid_init(struct ccw_device *cdev) in snsid_init() argument 135 cdev->private->flags.esid = 0; in snsid_init() 136 memset(&cdev->private->senseid, 0, sizeof(cdev->private->senseid)); in snsid_init() 137 cdev->private->senseid.cu_type = 0xffff; in snsid_init() 143 static int snsid_check(struct ccw_device *cdev, void *data) in snsid_check() argument 145 struct cmd_scsw *scsw = &cdev->private->irb.scsw.cmd; in snsid_check() 151 if (cdev->private->senseid.cu_type == 0xffff) in snsid_check() [all …]
|
D | device.h | 58 dev_fsm_event(struct ccw_device *cdev, enum dev_event dev_event) in dev_fsm_event() argument 60 int state = cdev->private->state; in dev_fsm_event() 64 inc_irq_stat(cdev->private->int_class); in dev_fsm_event() 69 dev_jumptable[state][dev_event](cdev, dev_event); in dev_fsm_event() 76 dev_fsm_final_state(struct ccw_device *cdev) in dev_fsm_final_state() argument 78 return (cdev->private->state == DEV_STATE_NOT_OPER || in dev_fsm_final_state() 79 cdev->private->state == DEV_STATE_OFFLINE || in dev_fsm_final_state() 80 cdev->private->state == DEV_STATE_ONLINE || in dev_fsm_final_state() 81 cdev->private->state == DEV_STATE_BOXED); in dev_fsm_final_state() 86 void io_subchannel_recog_done(struct ccw_device *cdev); [all …]
|
D | device_status.c | 27 ccw_device_msg_control_check(struct ccw_device *cdev, struct irb *irb) in ccw_device_msg_control_check() argument 39 cdev->private->dev_id.devno, cdev->private->schid.ssid, in ccw_device_msg_control_check() 40 cdev->private->schid.sch_no, in ccw_device_msg_control_check() 42 sprintf(dbf_text, "chk%x", cdev->private->schid.sch_no); in ccw_device_msg_control_check() 51 ccw_device_path_notoper(struct ccw_device *cdev) in ccw_device_path_notoper() argument 55 sch = to_subchannel(cdev->dev.parent); in ccw_device_path_notoper() 66 cdev->private->flags.doverify = 1; in ccw_device_path_notoper() 73 ccw_device_accumulate_ecw(struct ccw_device *cdev, struct irb *irb) in ccw_device_accumulate_ecw() argument 80 cdev->private->irb.scsw.cmd.ectl = 0; in ccw_device_accumulate_ecw() 83 cdev->private->irb.scsw.cmd.ectl = irb->scsw.cmd.ectl; in ccw_device_accumulate_ecw() [all …]
|
D | ccwgroup.c | 43 sysfs_remove_link(&gdev->cdev[i]->dev.kobj, "group_device"); in __ccwgroup_remove_symlinks() 53 struct ccw_device *cdev; in __ccwgroup_remove_cdev_refs() local 57 cdev = gdev->cdev[i]; in __ccwgroup_remove_cdev_refs() 58 if (!cdev) in __ccwgroup_remove_cdev_refs() 60 spin_lock_irq(cdev->ccwlock); in __ccwgroup_remove_cdev_refs() 61 dev_set_drvdata(&cdev->dev, NULL); in __ccwgroup_remove_cdev_refs() 62 spin_unlock_irq(cdev->ccwlock); in __ccwgroup_remove_cdev_refs() 63 gdev->cdev[i] = NULL; in __ccwgroup_remove_cdev_refs() 64 put_device(&cdev->dev); in __ccwgroup_remove_cdev_refs() 245 rc = sysfs_create_link(&gdev->cdev[i]->dev.kobj, in __ccwgroup_create_symlinks() [all …]
|
D | qdio_main.c | 164 q->handler(q->irq_ptr->cdev, QDIO_ERROR_GET_BUF_STATE, in qdio_do_eqbs() 210 q->handler(q->irq_ptr->cdev, QDIO_ERROR_SET_BUF_STATE, in qdio_do_sqbs() 681 q->handler(q->irq_ptr->cdev, q->qdio_error, q->nr, start, count, in qdio_kick_handler() 991 q->u.in.queue_start_poll(q->irq_ptr->cdev, q->nr, in qdio_int_handler_pci() 1010 static void qdio_handle_activate_check(struct ccw_device *cdev, in qdio_handle_activate_check() argument 1013 struct qdio_irq *irq_ptr = cdev->private->qdio_data; in qdio_handle_activate_check() 1031 q->handler(q->irq_ptr->cdev, QDIO_ERROR_ACTIVATE, in qdio_handle_activate_check() 1042 static void qdio_establish_handle_irq(struct ccw_device *cdev, int cstat, in qdio_establish_handle_irq() argument 1045 struct qdio_irq *irq_ptr = cdev->private->qdio_data; in qdio_establish_handle_irq() 1065 void qdio_int_handler(struct ccw_device *cdev, unsigned long intparm, in qdio_int_handler() argument [all …]
|
D | io_sch.h | 14 struct ccw_device *cdev;/* pointer to the child ccw device */ member 29 return priv ? priv->cdev : NULL; in sch_get_cdev() 33 struct ccw_device *cdev) in sch_set_cdev() argument 37 priv->cdev = cdev; in sch_set_cdev() 118 struct ccw_device *cdev; member
|
D | qdio_setup.c | 458 struct qdio_irq *irq_ptr = init_data->cdev->private->qdio_data; in qdio_setup_irq() 476 irq_ptr->cdev = init_data->cdev; in qdio_setup_irq() 477 ccw_device_get_schid(irq_ptr->cdev, &irq_ptr->schid); in qdio_setup_irq() 493 ciw = ccw_device_get_ciw(init_data->cdev, CIW_TYPE_EQUEUE); in qdio_setup_irq() 501 ciw = ccw_device_get_ciw(init_data->cdev, CIW_TYPE_AQUEUE); in qdio_setup_irq() 510 irq_ptr->orig_handler = init_data->cdev->handler; in qdio_setup_irq() 511 init_data->cdev->handler = qdio_int_handler; in qdio_setup_irq() 519 struct ccw_device *cdev) in qdio_print_subchannel_info() argument 525 dev_name(&cdev->dev), in qdio_print_subchannel_info()
|
/linux-4.4.14/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 | 105 static void cosm_update_mic_status(struct cosm_device *cdev) in cosm_update_mic_status() argument 107 if (cdev->shutdown_status_int != MIC_NOP) { in cosm_update_mic_status() 108 cosm_set_shutdown_status(cdev, cdev->shutdown_status_int); in cosm_update_mic_status() 109 cdev->shutdown_status_int = MIC_NOP; in cosm_update_mic_status() 114 static void cosm_shutdown_status_int(struct cosm_device *cdev, in cosm_shutdown_status_int() argument 124 dev_err(&cdev->dev, "%s %d Unexpected shutdown_status %d\n", in cosm_shutdown_status_int() 128 cdev->shutdown_status_int = shutdown_status; in cosm_shutdown_status_int() 129 cdev->heartbeat_watchdog_enable = false; in cosm_shutdown_status_int() 131 if (cdev->state != MIC_SHUTTING_DOWN) in cosm_shutdown_status_int() 132 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 | 55 void cosm_sysfs_init(struct cosm_device *cdev); 56 int cosm_start(struct cosm_device *cdev); 57 void cosm_stop(struct cosm_device *cdev, bool force); 58 int cosm_reset(struct cosm_device *cdev); 59 int cosm_shutdown(struct cosm_device *cdev); 60 void cosm_set_state(struct cosm_device *cdev, u8 state); 61 void cosm_set_shutdown_status(struct cosm_device *cdev, u8 status); 64 void cosm_create_debug_dir(struct cosm_device *cdev); 65 void cosm_delete_debug_dir(struct cosm_device *cdev);
|
/linux-4.4.14/sound/usb/caiaq/ |
D | audio.c | 43 #define MAKE_CHECKBYTE(cdev,stream,i) \ argument 44 (stream << 1) | (~(i / (cdev->n_streams * BYTES_PER_SAMPLE_USB)) & 1) 64 activate_substream(struct snd_usb_caiaqdev *cdev, in activate_substream() argument 67 spin_lock(&cdev->spinlock); in activate_substream() 70 cdev->sub_playback[sub->number] = sub; in activate_substream() 72 cdev->sub_capture[sub->number] = sub; in activate_substream() 74 spin_unlock(&cdev->spinlock); in activate_substream() 78 deactivate_substream(struct snd_usb_caiaqdev *cdev, in deactivate_substream() argument 82 spin_lock_irqsave(&cdev->spinlock, flags); in deactivate_substream() 85 cdev->sub_playback[sub->number] = NULL; in deactivate_substream() [all …]
|
D | device.c | 162 struct snd_usb_caiaqdev *cdev = urb->context; in usb_ep1_command_reply_dispatch() local 165 if (urb->status || !cdev) { in usb_ep1_command_reply_dispatch() 172 memcpy(&cdev->spec, buf+1, sizeof(struct caiaq_device_spec)); in usb_ep1_command_reply_dispatch() 173 cdev->spec.fw_version = le16_to_cpu(cdev->spec.fw_version); in usb_ep1_command_reply_dispatch() 176 cdev->spec.fw_version, in usb_ep1_command_reply_dispatch() 177 cdev->spec.num_analog_audio_in, in usb_ep1_command_reply_dispatch() 178 cdev->spec.num_analog_audio_out, in usb_ep1_command_reply_dispatch() 179 cdev->spec.num_midi_in, in usb_ep1_command_reply_dispatch() 180 cdev->spec.num_midi_out, in usb_ep1_command_reply_dispatch() 181 cdev->spec.data_alignment); in usb_ep1_command_reply_dispatch() [all …]
|
D | input.c | 203 static inline void snd_caiaq_input_report_abs(struct snd_usb_caiaqdev *cdev, in snd_caiaq_input_report_abs() argument 207 input_report_abs(cdev->input_dev, axis, in snd_caiaq_input_report_abs() 211 static void snd_caiaq_input_read_analog(struct snd_usb_caiaqdev *cdev, in snd_caiaq_input_read_analog() argument 215 struct input_dev *input_dev = cdev->input_dev; in snd_caiaq_input_read_analog() 217 switch (cdev->chip.usb_id) { in snd_caiaq_input_read_analog() 219 snd_caiaq_input_report_abs(cdev, ABS_X, buf, 2); in snd_caiaq_input_read_analog() 220 snd_caiaq_input_report_abs(cdev, ABS_Y, buf, 0); in snd_caiaq_input_read_analog() 221 snd_caiaq_input_report_abs(cdev, ABS_Z, buf, 1); in snd_caiaq_input_read_analog() 226 snd_caiaq_input_report_abs(cdev, ABS_X, buf, 0); in snd_caiaq_input_read_analog() 227 snd_caiaq_input_report_abs(cdev, ABS_Y, buf, 1); in snd_caiaq_input_read_analog() [all …]
|
D | midi.c | 41 struct snd_usb_caiaqdev *cdev = substream->rmidi->private_data; in snd_usb_caiaq_midi_input_trigger() local 43 if (!cdev) in snd_usb_caiaq_midi_input_trigger() 46 cdev->midi_receive_substream = up ? substream : NULL; in snd_usb_caiaq_midi_input_trigger() 57 struct snd_usb_caiaqdev *cdev = substream->rmidi->private_data; in snd_usb_caiaq_midi_output_close() local 58 if (cdev->midi_out_active) { in snd_usb_caiaq_midi_output_close() 59 usb_kill_urb(&cdev->midi_out_urb); in snd_usb_caiaq_midi_output_close() 60 cdev->midi_out_active = 0; in snd_usb_caiaq_midi_output_close() 65 static void snd_usb_caiaq_midi_send(struct snd_usb_caiaqdev *cdev, in snd_usb_caiaq_midi_send() argument 69 struct device *dev = caiaqdev_to_dev(cdev); in snd_usb_caiaq_midi_send() 71 cdev->midi_out_buf[0] = EP1_CMD_MIDI_WRITE; in snd_usb_caiaq_midi_send() [all …]
|
D | control.c | 37 struct snd_usb_caiaqdev *cdev = caiaqdev(chip->card); in control_info() local 45 switch (cdev->chip.usb_id) { in control_info() 83 struct snd_usb_caiaqdev *cdev = caiaqdev(chip->card); in control_get() local 88 = cdev->control_state[pos & ~CNT_INTVAL]; in control_get() 91 = !!(cdev->control_state[pos / 8] & (1 << pos % 8)); in control_get() 100 struct snd_usb_caiaqdev *cdev = caiaqdev(chip->card); in control_put() local 105 switch (cdev->chip.usb_id) { in control_put() 120 cdev->control_state[i] = v; in control_put() 122 if (cdev->chip.usb_id == in control_put() 126 cdev->ep8_out_buf[0] = i; in control_put() [all …]
|
D | input.h | 4 void snd_usb_caiaq_input_dispatch(struct snd_usb_caiaqdev *cdev, char *buf, unsigned int len); 5 int snd_usb_caiaq_input_init(struct snd_usb_caiaqdev *cdev); 6 void snd_usb_caiaq_input_free(struct snd_usb_caiaqdev *cdev);
|
D | device.h | 118 struct snd_usb_caiaqdev *cdev; member 125 int snd_usb_caiaq_set_audio_params (struct snd_usb_caiaqdev *cdev, int rate, int depth, int bbp); 126 int snd_usb_caiaq_set_auto_msg (struct snd_usb_caiaqdev *cdev, int digital, int analog, int erp); 127 int snd_usb_caiaq_send_command(struct snd_usb_caiaqdev *cdev, 131 int snd_usb_caiaq_send_command_bank(struct snd_usb_caiaqdev *cdev,
|
D | audio.h | 4 int snd_usb_caiaq_audio_init(struct snd_usb_caiaqdev *cdev); 5 void snd_usb_caiaq_audio_free(struct snd_usb_caiaqdev *cdev);
|
D | midi.h | 4 int snd_usb_caiaq_midi_init(struct snd_usb_caiaqdev *cdev); 5 void snd_usb_caiaq_midi_handle_input(struct snd_usb_caiaqdev *cdev,
|
/linux-4.4.14/drivers/net/ethernet/qlogic/qed/ |
D | qed_main.c | 68 static int qed_set_coherency_mask(struct qed_dev *cdev) in qed_set_coherency_mask() argument 70 struct device *dev = &cdev->pdev->dev; in qed_set_coherency_mask() 74 DP_NOTICE(cdev, in qed_set_coherency_mask() 79 DP_NOTICE(cdev, "Can't request 64b/32b DMA addresses\n"); in qed_set_coherency_mask() 86 static void qed_free_pci(struct qed_dev *cdev) in qed_free_pci() argument 88 struct pci_dev *pdev = cdev->pdev; in qed_free_pci() 90 if (cdev->doorbells) in qed_free_pci() 91 iounmap(cdev->doorbells); in qed_free_pci() 92 if (cdev->regview) in qed_free_pci() 93 iounmap(cdev->regview); in qed_free_pci() [all …]
|
D | qed_dev_api.h | 26 void qed_init_dp(struct qed_dev *cdev, 36 void qed_init_struct(struct qed_dev *cdev); 43 void qed_resc_free(struct qed_dev *cdev); 52 int qed_resc_alloc(struct qed_dev *cdev); 59 void qed_resc_setup(struct qed_dev *cdev); 74 int qed_hw_init(struct qed_dev *cdev, 87 int qed_hw_stop(struct qed_dev *cdev); 97 void qed_hw_stop_fastpath(struct qed_dev *cdev); 115 int qed_hw_reset(struct qed_dev *cdev); 125 int qed_hw_prepare(struct qed_dev *cdev, [all …]
|
D | qed_dev.c | 35 void qed_init_dp(struct qed_dev *cdev, in qed_init_dp() argument 40 cdev->dp_level = dp_level; in qed_init_dp() 41 cdev->dp_module = dp_module; in qed_init_dp() 43 struct qed_hwfn *p_hwfn = &cdev->hwfns[i]; in qed_init_dp() 50 void qed_init_struct(struct qed_dev *cdev) in qed_init_struct() argument 55 struct qed_hwfn *p_hwfn = &cdev->hwfns[i]; in qed_init_struct() 57 p_hwfn->cdev = cdev; in qed_init_struct() 65 cdev->hwfns[0].b_active = true; in qed_init_struct() 68 cdev->cache_shift = 7; in qed_init_struct() 83 void qed_resc_free(struct qed_dev *cdev) in qed_resc_free() argument [all …]
|
D | qed.h | 54 ((sizeof(type_name) + (u32)(1 << (p_hwfn->cdev->cache_shift)) - 1) & \ 55 ~((1 << (p_hwfn->cdev->cache_shift)) - 1)) 57 #define for_each_hwfn(cdev, i) for (i = 0; i < cdev->num_hwfns; i++) argument 241 struct qed_dev *cdev; member 379 #define IS_MF(_p_hwfn) (((_p_hwfn)->cdev)->mf_mode != SF) 380 #define IS_MF_SI(_p_hwfn) (((_p_hwfn)->cdev)->mf_mode == MF_NPAR) 381 #define IS_MF_SD(_p_hwfn) (((_p_hwfn)->cdev)->mf_mode == MF_OVLAN) 409 #define IRO (p_hwfn->cdev->iro_arr) 432 #define IS_QED_ETH_IF(cdev) ((cdev)->protocol == QED_PROTOCOL_ETH) argument 460 static inline u8 qed_concrete_to_sw_fid(struct qed_dev *cdev, in qed_concrete_to_sw_fid() argument [all …]
|
D | qed_l2.c | 184 p_ramrod->sw_fid = qed_concrete_to_sw_fid(p_hwfn->cdev, in qed_sp_vport_start() 444 static int qed_filter_accept_cmd(struct qed_dev *cdev, in qed_filter_accept_cmd() argument 458 for_each_hwfn(cdev, i) { in qed_filter_accept_cmd() 459 struct qed_hwfn *p_hwfn = &cdev->hwfns[i]; in qed_filter_accept_cmd() 466 DP_ERR(cdev, "Update rx_mode failed %d\n", rc); in qed_filter_accept_cmd() 1173 qed_filter_mcast_cmd(struct qed_dev *cdev, in qed_filter_mcast_cmd() argument 1187 for_each_hwfn(cdev, i) { in qed_filter_mcast_cmd() 1188 struct qed_hwfn *p_hwfn = &cdev->hwfns[i]; in qed_filter_mcast_cmd() 1206 static int qed_filter_ucast_cmd(struct qed_dev *cdev, in qed_filter_ucast_cmd() argument 1214 for_each_hwfn(cdev, i) { in qed_filter_ucast_cmd() [all …]
|
D | qed_int.c | 255 DP_ERR(p_hwfn->cdev, "DPC called - no p_sp_sb\n"); in qed_int_sp_dpc() 262 DP_ERR(p_hwfn->cdev, in qed_int_sp_dpc() 268 DP_ERR(p_hwfn->cdev, "DPC called - no p_sb_attn"); in qed_int_sp_dpc() 284 p_hwfn->cdev, in qed_int_sp_dpc() 290 DP_VERBOSE(p_hwfn->cdev, NETIF_MSG_INTR, in qed_int_sp_dpc() 297 p_hwfn->cdev, in qed_int_sp_dpc() 303 DP_VERBOSE(p_hwfn->cdev, NETIF_MSG_INTR, in qed_int_sp_dpc() 316 DP_NOTICE(p_hwfn->cdev, "Failed to allocate PTT\n"); in qed_int_sp_dpc() 346 struct qed_dev *cdev = p_hwfn->cdev; in qed_int_sb_attn_free() local 351 dma_free_coherent(&cdev->pdev->dev, in qed_int_sb_attn_free() [all …]
|
D | qed_init_ops.c | 47 void qed_init_iro_array(struct qed_dev *cdev) in qed_init_iro_array() argument 49 cdev->iro_arr = iro_arr; in qed_init_iro_array() 189 struct qed_dev *cdev = p_hwfn->cdev; in qed_init_cmd_array() local 195 array_data = cdev->fw_data->arr_data; in qed_init_cmd_array() 377 struct qed_dev *cdev = p_hwfn->cdev; in qed_init_cmd_mode_match() local 381 modes_tree_buf = cdev->fw_data->modes_tree_buf; in qed_init_cmd_mode_match() 435 struct qed_dev *cdev = p_hwfn->cdev; in qed_init_run() local 441 num_init_ops = cdev->fw_data->init_ops_size; in qed_init_run() 442 init_ops = cdev->fw_data->init_ops; in qed_init_run() 505 int qed_init_fw_data(struct qed_dev *cdev, in qed_init_fw_data() argument [all …]
|
D | qed_mcp.h | 149 int qed_mcp_get_mfw_ver(struct qed_dev *cdev, 162 int qed_mcp_get_media_type(struct qed_dev *cdev, 233 #define MCP_PF_ID_BY_REL(p_hwfn, rel_pfid) (QED_IS_BB((p_hwfn)->cdev) ? \ 243 ((_p_hwfn)->cdev->num_ports_in_engines * 2))
|
/linux-4.4.14/drivers/usb/gadget/ |
D | composite.c | 107 struct usb_composite_dev *cdev = get_gadget_data(g); in config_ep_by_speed() local 175 ERROR(cdev, "ep0 bMaxBurst must be 0\n"); in config_ep_by_speed() 203 DBG(config->cdev, "adding '%s'/%p to config '%s'/%p\n", in usb_add_function() 243 DBG(config->cdev, "adding '%s'/%p --> %d\n", in usb_add_function() 282 struct usb_composite_dev *cdev = function->config->cdev; in usb_function_deactivate() local 286 spin_lock_irqsave(&cdev->lock, flags); in usb_function_deactivate() 288 if (cdev->deactivations == 0) in usb_function_deactivate() 289 status = usb_gadget_deactivate(cdev->gadget); in usb_function_deactivate() 291 cdev->deactivations++; in usb_function_deactivate() 293 spin_unlock_irqrestore(&cdev->lock, flags); in usb_function_deactivate() [all …]
|
D | configfs.c | 61 struct usb_composite_dev cdev; member 136 to_gadget_info(item)->cdev.desc.__name); \ 144 le16_to_cpup(&to_gadget_info(item)->cdev.desc.__name)); \ 157 to_gadget_info(item)->cdev.desc._name = val; \ 170 to_gadget_info(item)->cdev.desc._name = cpu_to_le16p(&val); \ 213 to_gadget_info(item)->cdev.desc.bcdDevice = cpu_to_le16(bcdDevice); in gadget_dev_desc_bcdDevice_store() 230 to_gadget_info(item)->cdev.desc.bcdUSB = cpu_to_le16(bcdUSB); in gadget_dev_desc_bcdUSB_store() 338 WARN_ON(!list_empty(&gi->cdev.configs)); in gadget_info_attr_release() 364 struct usb_composite_dev *cdev = cfg->c.cdev; in config_usb_cfg_link() local 365 struct gadget_info *gi = container_of(cdev, struct gadget_info, cdev); in config_usb_cfg_link() [all …]
|
/linux-4.4.14/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.4.14/drivers/gpu/drm/cirrus/ |
D | cirrus_main.c | 52 struct cirrus_device *cdev = dev->dev_private; in cirrus_user_framebuffer_create() local 60 if (!cirrus_check_framebuffer(cdev, mode_cmd->width, mode_cmd->height, in cirrus_user_framebuffer_create() 88 static void cirrus_vram_fini(struct cirrus_device *cdev) in cirrus_vram_fini() argument 90 iounmap(cdev->rmmio); in cirrus_vram_fini() 91 cdev->rmmio = NULL; in cirrus_vram_fini() 92 if (cdev->mc.vram_base) in cirrus_vram_fini() 93 release_mem_region(cdev->mc.vram_base, cdev->mc.vram_size); in cirrus_vram_fini() 97 static int cirrus_vram_init(struct cirrus_device *cdev) in cirrus_vram_init() argument 100 cdev->mc.vram_base = pci_resource_start(cdev->dev->pdev, 0); in cirrus_vram_init() 101 cdev->mc.vram_size = pci_resource_len(cdev->dev->pdev, 0); in cirrus_vram_init() [all …]
|
D | cirrus_mode.c | 38 struct cirrus_device *cdev = dev->dev_private; in cirrus_crtc_load_lut() local 61 struct cirrus_device *cdev = dev->dev_private; in cirrus_crtc_dpms() local 108 struct cirrus_device *cdev = crtc->dev->dev_private; in cirrus_set_start_address() local 134 struct cirrus_device *cdev = crtc->dev->dev_private; in cirrus_crtc_do_set_base() local 167 if (&cdev->mode_info.gfbdev->gfb == cirrus_fb) { in cirrus_crtc_do_set_base() 199 struct cirrus_device *cdev = dev->dev_private; in cirrus_crtc_mode_set() local 386 struct cirrus_device *cdev = dev->dev_private; in cirrus_crtc_init() local 400 cdev->mode_info.crtc = cirrus_crtc; in cirrus_crtc_init() 569 int cirrus_modeset_init(struct cirrus_device *cdev) in cirrus_modeset_init() argument 575 drm_mode_config_init(cdev->dev); in cirrus_modeset_init() [all …]
|
D | cirrus_fbdev.c | 142 struct cirrus_device *cdev = dev->dev_private; in cirrusfb_create_object() local 150 if (!cirrus_check_framebuffer(cdev, mode_cmd->width, mode_cmd->height, in cirrusfb_create_object() 168 struct cirrus_device *cdev = gfbdev->helper.dev->dev_private; in cirrusfb_create() local 202 ret = cirrus_framebuffer_init(cdev->dev, &gfbdev->gfb, &mode_cmd, gobj); in cirrusfb_create() 228 info->apertures->ranges[0].base = cdev->dev->mode_config.fb_base; in cirrusfb_create() 229 info->apertures->ranges[0].size = cdev->mc.vram_size; in cirrusfb_create() 231 info->fix.smem_start = cdev->dev->mode_config.fb_base; in cirrusfb_create() 232 info->fix.smem_len = cdev->mc.vram_size; in cirrusfb_create() 276 int cirrus_fbdev_init(struct cirrus_device *cdev) in cirrus_fbdev_init() argument 287 cdev->mode_info.gfbdev = gfbdev; in cirrus_fbdev_init() [all …]
|
D | cirrus_drv.h | 38 #define RREG8(reg) ioread8(((void __iomem *)cdev->rmmio) + (reg)) 39 #define WREG8(reg, v) iowrite8(v, ((void __iomem *)cdev->rmmio) + (reg)) 40 #define RREG32(reg) ioread32(((void __iomem *)cdev->rmmio) + (reg)) 41 #define WREG32(reg, v) iowrite32(v, ((void __iomem *)cdev->rmmio) + (reg)) 191 int cirrus_device_init(struct cirrus_device *cdev, 195 void cirrus_device_fini(struct cirrus_device *cdev); 213 bool cirrus_check_framebuffer(struct cirrus_device *cdev, int width, int height, 217 int cirrus_modeset_init(struct cirrus_device *cdev); 218 void cirrus_modeset_fini(struct cirrus_device *cdev); 221 int cirrus_fbdev_init(struct cirrus_device *cdev); [all …]
|
D | cirrus_drv.c | 89 struct cirrus_device *cdev = drm_dev->dev_private; in cirrus_pm_suspend() local 93 if (cdev->mode_info.gfbdev) { in cirrus_pm_suspend() 95 drm_fb_helper_set_suspend(&cdev->mode_info.gfbdev->helper, 1); in cirrus_pm_suspend() 106 struct cirrus_device *cdev = drm_dev->dev_private; in cirrus_pm_resume() local 110 if (cdev->mode_info.gfbdev) { in cirrus_pm_resume() 112 drm_fb_helper_set_suspend(&cdev->mode_info.gfbdev->helper, 0); in cirrus_pm_resume()
|
/linux-4.4.14/drivers/s390/scsi/ |
D | zfcp_ccw.c | 20 struct zfcp_adapter *zfcp_ccw_adapter_by_cdev(struct ccw_device *cdev) in zfcp_ccw_adapter_by_cdev() argument 26 adapter = dev_get_drvdata(&cdev->dev); in zfcp_ccw_adapter_by_cdev() 48 static int zfcp_ccw_activate(struct ccw_device *cdev, int clear, char *tag) in zfcp_ccw_activate() argument 50 struct zfcp_adapter *adapter = zfcp_ccw_adapter_by_cdev(cdev); in zfcp_ccw_activate() 97 static int zfcp_ccw_probe(struct ccw_device *cdev) in zfcp_ccw_probe() argument 111 static void zfcp_ccw_remove(struct ccw_device *cdev) in zfcp_ccw_remove() argument 119 ccw_device_set_offline(cdev); in zfcp_ccw_remove() 121 adapter = zfcp_ccw_adapter_by_cdev(cdev); in zfcp_ccw_remove() 158 static int zfcp_ccw_set_online(struct ccw_device *cdev) in zfcp_ccw_set_online() argument 160 struct zfcp_adapter *adapter = zfcp_ccw_adapter_by_cdev(cdev); in zfcp_ccw_set_online() [all …]
|
D | zfcp_qdio.c | 61 static void zfcp_qdio_int_req(struct ccw_device *cdev, unsigned int qdio_err, in zfcp_qdio_int_req() argument 82 static void zfcp_qdio_int_resp(struct ccw_device *cdev, unsigned int qdio_err, in zfcp_qdio_int_resp() argument 129 if (do_QDIO(cdev, QDIO_FLAG_SYNC_INPUT, 0, idx, count)) in zfcp_qdio_int_resp() 285 id->cdev = qdio->adapter->ccw_device; in zfcp_qdio_setup_init_data() 287 memcpy(id->adapter_name, dev_name(&id->cdev->dev), 8); in zfcp_qdio_setup_init_data() 380 struct ccw_device *cdev = adapter->ccw_device; in zfcp_qdio_open() local 395 if (qdio_get_ssqd_desc(init_data.cdev, &ssqd)) in zfcp_qdio_open() 413 if (qdio_activate(cdev)) in zfcp_qdio_open() 424 if (do_QDIO(cdev, QDIO_FLAG_SYNC_INPUT, 0, 0, QDIO_MAX_BUFFERS_PER_Q)) in zfcp_qdio_open() 440 qdio_shutdown(cdev, QDIO_FLAG_CLEANUP_USING_CLEAR); in zfcp_qdio_open() [all …]
|
D | zfcp_aux.c | 58 struct ccw_device *cdev; in zfcp_init_device_configure() local 62 cdev = get_ccwdev_by_busid(&zfcp_ccw_driver, busid); in zfcp_init_device_configure() 63 if (!cdev) in zfcp_init_device_configure() 66 if (ccw_device_set_online(cdev)) in zfcp_init_device_configure() 69 adapter = zfcp_ccw_adapter_by_cdev(cdev); in zfcp_init_device_configure() 84 put_device(&cdev->dev); in zfcp_init_device_configure() 423 struct ccw_device *cdev = adapter->ccw_device; in zfcp_adapter_unregister() local 432 sysfs_remove_group(&cdev->dev.kobj, &zfcp_sysfs_adapter_attrs); in zfcp_adapter_unregister() 450 struct ccw_device *cdev = adapter->ccw_device; in zfcp_adapter_release() local 459 put_device(&cdev->dev); in zfcp_adapter_release()
|
/linux-4.4.14/drivers/s390/block/ |
D | dasd_3990_erp.c | 79 spin_lock_irqsave(get_ccwdev_lock(device->cdev), flags); in dasd_3990_erp_block_queue() 81 spin_unlock_irqrestore(get_ccwdev_lock(device->cdev), flags); in dasd_3990_erp_block_queue() 118 dev_err(&device->cdev->dev, in dasd_3990_erp_int_req() 151 spin_lock_irqsave(get_ccwdev_lock(device->cdev), flags); in dasd_3990_erp_alternate_path() 152 opm = ccw_device_get_path_mask(device->cdev); in dasd_3990_erp_alternate_path() 153 spin_unlock_irqrestore(get_ccwdev_lock(device->cdev), flags); in dasd_3990_erp_alternate_path() 170 dev_err(&device->cdev->dev, in dasd_3990_erp_alternate_path() 207 dev_err(&device->cdev->dev, in dasd_3990_erp_DCTL() 411 dev_warn(&device->cdev->dev, in dasd_3990_handle_env_data() 415 dev_warn(&device->cdev->dev, in dasd_3990_handle_env_data() [all …]
|
D | dasd_ioctl.c | 113 "state\n", dev_name(&base->cdev->dev)); in dasd_ioctl_quiesce() 114 spin_lock_irqsave(get_ccwdev_lock(base->cdev), flags); in dasd_ioctl_quiesce() 116 spin_unlock_irqrestore(get_ccwdev_lock(base->cdev), flags); in dasd_ioctl_quiesce() 134 "on the DASD\n", dev_name(&base->cdev->dev)); in dasd_ioctl_resume() 135 spin_lock_irqsave(get_ccwdev_lock(base->cdev), flags); in dasd_ioctl_resume() 137 spin_unlock_irqrestore(get_ccwdev_lock(base->cdev), flags); in dasd_ioctl_resume() 216 dev_name(&base->cdev->dev)); in dasd_format() 291 dev_name(&base->cdev->dev)); in dasd_ioctl_format() 378 struct ccw_device *cdev; in dasd_ioctl_information() local 396 cdev = base->cdev; in dasd_ioctl_information() [all …]
|
D | dasd.c | 267 dasd_debugfs_setup(dev_name(&device->cdev->dev), in dasd_state_known_to_basic() 272 device->debug_area = debug_register(dev_name(&device->cdev->dev), 4, 1, in dasd_state_known_to_basic() 558 kobject_uevent(&device->cdev->dev.kobj, KOBJ_CHANGE); in dasd_change_state() 618 device->cdev->drv->restore(device->cdev); in do_restore_device() 1310 rc = ccw_device_clear(device->cdev, (long) cqr); in dasd_term_IO() 1350 dev_err(&device->cdev->dev, "An error occurred in the " in dasd_term_IO() 1392 dev_err(&device->cdev->dev, "An error occurred in the DASD " in dasd_start_IO() 1406 rc = ccw_device_tm_start(device->cdev, cqr->cpaddr, in dasd_start_IO() 1409 rc = ccw_device_start(device->cdev, cqr->cpaddr, in dasd_start_IO() 1450 ccw_device_get_path_mask(device->cdev); in dasd_start_IO() [all …]
|
D | dasd_devmap.c | 524 dasd_devmap_from_cdev(struct ccw_device *cdev) in dasd_devmap_from_cdev() argument 528 devmap = dasd_find_busid(dev_name(&cdev->dev)); in dasd_devmap_from_cdev() 530 devmap = dasd_add_busid(dev_name(&cdev->dev), in dasd_devmap_from_cdev() 539 dasd_create_device(struct ccw_device *cdev) in dasd_create_device() argument 546 devmap = dasd_devmap_from_cdev(cdev); in dasd_create_device() 560 get_device(&cdev->dev); in dasd_create_device() 561 device->cdev = cdev; in dasd_create_device() 573 spin_lock_irqsave(get_ccwdev_lock(cdev), flags); in dasd_create_device() 574 dev_set_drvdata(&cdev->dev, device); in dasd_create_device() 575 spin_unlock_irqrestore(get_ccwdev_lock(cdev), flags); in dasd_create_device() [all …]
|
D | dasd_fba.c | 57 dasd_fba_probe(struct ccw_device *cdev) in dasd_fba_probe() argument 59 return dasd_generic_probe(cdev, &dasd_fba_discipline); in dasd_fba_probe() 63 dasd_fba_set_online(struct ccw_device *cdev) in dasd_fba_set_online() argument 65 return dasd_generic_set_online(cdev, &dasd_fba_discipline); in dasd_fba_set_online() 130 struct ccw_device *cdev = device->cdev; in dasd_fba_check_characteristics() local 138 dev_warn(&device->cdev->dev, in dasd_fba_check_characteristics() 149 DBF_EVENT_DEVID(DBF_WARNING, cdev, "%s", "could not allocate " in dasd_fba_check_characteristics() 162 DBF_EVENT_DEVID(DBF_WARNING, cdev, "Read device " in dasd_fba_check_characteristics() 179 dev_info(&device->cdev->dev, in dasd_fba_check_characteristics() 182 cdev->id.dev_type, in dasd_fba_check_characteristics() [all …]
|
D | dasd_alias.c | 328 spin_lock_irqsave_nested(get_ccwdev_lock(device->cdev), flags, in _add_device_to_lcu() 336 spin_unlock_irqrestore(get_ccwdev_lock(device->cdev), flags); in _add_device_to_lcu() 509 spin_lock_irqsave_nested(get_ccwdev_lock(refdev->cdev), flags, in _lcu_update() 531 spin_unlock_irqrestore(get_ccwdev_lock(refdev->cdev), flags); in _lcu_update() 621 spin_lock_irqsave(get_ccwdev_lock(device->cdev), flags); in dasd_alias_add_device() 633 spin_unlock_irqrestore(get_ccwdev_lock(device->cdev), flags); in dasd_alias_add_device() 762 spin_lock_irqsave(get_ccwdev_lock(device->cdev), flags); in _restart_all_base_devices_on_lcu() 764 spin_unlock_irqrestore(get_ccwdev_lock(device->cdev), in _restart_all_base_devices_on_lcu() 768 spin_unlock_irqrestore(get_ccwdev_lock(device->cdev), flags); in _restart_all_base_devices_on_lcu() 774 spin_lock_irqsave(get_ccwdev_lock(device->cdev), flags); in _restart_all_base_devices_on_lcu() [all …]
|
D | dasd_eckd.c | 126 dasd_eckd_probe (struct ccw_device *cdev) in dasd_eckd_probe() argument 131 ret = ccw_device_set_options(cdev, CCWDEV_ALLOW_FORCE | in dasd_eckd_probe() 134 DBF_EVENT_DEVID(DBF_WARNING, cdev, "%s", in dasd_eckd_probe() 139 ret = dasd_generic_probe(cdev, &dasd_eckd_discipline); in dasd_eckd_probe() 144 dasd_eckd_set_online(struct ccw_device *cdev) in dasd_eckd_set_online() argument 146 return dasd_generic_set_online(cdev, &dasd_eckd_discipline); in dasd_eckd_set_online() 288 dev_err(&device->cdev->dev, in define_extent() 811 spin_lock_irqsave(get_ccwdev_lock(device->cdev), flags); in dasd_eckd_generate_uid() 813 spin_unlock_irqrestore(get_ccwdev_lock(device->cdev), flags); in dasd_eckd_generate_uid() 824 spin_lock_irqsave(get_ccwdev_lock(device->cdev), flags); in dasd_eckd_get_uid() [all …]
|
D | dasd_diag.c | 158 dev_name(&device->cdev->dev)); in dasd_diag_erp() 163 "rc=%d\n", dev_name(&device->cdev->dev), rc); in dasd_diag_erp() 275 spin_lock_irqsave(get_ccwdev_lock(device->cdev), flags); in dasd_ext_handler() 282 spin_unlock_irqrestore(get_ccwdev_lock(device->cdev), flags); in dasd_ext_handler() 315 spin_unlock_irqrestore(get_ccwdev_lock(device->cdev), flags); in dasd_ext_handler() 341 ccw_device_get_id(device->cdev, &private->dev_id); in dasd_diag_check_device() 381 "in DIAG mode\n", dev_name(&device->cdev->dev), in dasd_diag_check_device() 424 dev_name(&device->cdev->dev)); in dasd_diag_check_device() 435 dev_name(&device->cdev->dev), rc); in dasd_diag_check_device() 454 dev_name(&device->cdev->dev), rc); in dasd_diag_check_device() [all …]
|
/linux-4.4.14/net/atm/ |
D | atm_sysfs.c | 13 static ssize_t show_type(struct device *cdev, in show_type() argument 16 struct atm_dev *adev = to_atm_dev(cdev); in show_type() 21 static ssize_t show_address(struct device *cdev, in show_address() argument 24 struct atm_dev *adev = to_atm_dev(cdev); in show_address() 29 static ssize_t show_atmaddress(struct device *cdev, in show_atmaddress() argument 33 struct atm_dev *adev = to_atm_dev(cdev); in show_atmaddress() 58 static ssize_t show_atmindex(struct device *cdev, in show_atmindex() argument 61 struct atm_dev *adev = to_atm_dev(cdev); in show_atmindex() 66 static ssize_t show_carrier(struct device *cdev, in show_carrier() argument 69 struct atm_dev *adev = to_atm_dev(cdev); in show_carrier() [all …]
|
/linux-4.4.14/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 …]
|
D | cosm_bus.h | 107 void (*reset)(struct cosm_device *cdev); 108 void (*force_reset)(struct cosm_device *cdev); 109 void (*post_reset)(struct cosm_device *cdev, enum mic_states state); 110 bool (*ready)(struct cosm_device *cdev); 111 int (*start)(struct cosm_device *cdev, int id); 112 void (*stop)(struct cosm_device *cdev, bool force); 113 ssize_t (*family)(struct cosm_device *cdev, char *buf); 114 ssize_t (*stepping)(struct cosm_device *cdev, char *buf); 115 struct mic_mw *(*aper)(struct cosm_device *cdev);
|
/linux-4.4.14/drivers/isdn/capi/ |
D | capi.c | 107 struct capidev *cdev; member 294 static void capincci_alloc_minor(struct capidev *cdev, struct capincci *np) in capincci_alloc_minor() argument 296 if (cdev->userflags & CAPIFLAG_HIGHJACKING) in capincci_alloc_minor() 297 np->minorp = capiminor_alloc(&cdev->ap, np->ncci); in capincci_alloc_minor() 335 capincci_alloc_minor(struct capidev *cdev, struct capincci *np) { } in capincci_alloc_minor() argument 340 static struct capincci *capincci_alloc(struct capidev *cdev, u32 ncci) in capincci_alloc() argument 348 np->cdev = cdev; in capincci_alloc() 350 capincci_alloc_minor(cdev, np); in capincci_alloc() 352 list_add_tail(&np->list, &cdev->nccis); in capincci_alloc() 357 static void capincci_free(struct capidev *cdev, u32 ncci) in capincci_free() argument [all …]
|
/linux-4.4.14/arch/arm/mach-ebsa110/ |
D | leds.c | 19 static void ebsa110_led_set(struct led_classdev *cdev, in ebsa110_led_set() argument 32 static enum led_brightness ebsa110_led_get(struct led_classdev *cdev) in ebsa110_led_get() argument 42 struct led_classdev *cdev; in ebsa110_leds_init() local 48 cdev = kzalloc(sizeof(*cdev), GFP_KERNEL); in ebsa110_leds_init() 49 if (!cdev) in ebsa110_leds_init() 52 cdev->name = "ebsa110:0"; in ebsa110_leds_init() 53 cdev->brightness_set = ebsa110_led_set; in ebsa110_leds_init() 54 cdev->brightness_get = ebsa110_led_get; in ebsa110_leds_init() 55 cdev->default_trigger = "heartbeat"; in ebsa110_leds_init() 57 ret = led_classdev_register(NULL, cdev); in ebsa110_leds_init() [all …]
|
/linux-4.4.14/fs/ |
D | char_dev.c | 37 struct cdev *cdev; /* will die */ member 247 struct cdev *cdev; in __register_chrdev() local 254 cdev = cdev_alloc(); in __register_chrdev() 255 if (!cdev) in __register_chrdev() 258 cdev->owner = fops->owner; in __register_chrdev() 259 cdev->ops = fops; in __register_chrdev() 260 kobject_set_name(&cdev->kobj, "%s", name); in __register_chrdev() 262 err = cdev_add(cdev, MKDEV(cd->major, baseminor), count); in __register_chrdev() 266 cd->cdev = cdev; in __register_chrdev() 270 kobject_put(&cdev->kobj); in __register_chrdev() [all …]
|
/linux-4.4.14/drivers/char/agp/ |
D | isoch.c | 83 unsigned int cdev = 0; in agp_3_5_isochronous_node_enable() local 143 master[cdev].maxbw = (mnistat >> 16) & 0xff; in agp_3_5_isochronous_node_enable() 144 master[cdev].n = (mnistat >> 8) & 0xff; in agp_3_5_isochronous_node_enable() 145 master[cdev].y = (mnistat >> 6) & 0x3; in agp_3_5_isochronous_node_enable() 146 master[cdev].dev = cur; in agp_3_5_isochronous_node_enable() 148 tot_bw += master[cdev].maxbw; in agp_3_5_isochronous_node_enable() 149 y_max = max(y_max, master[cdev].y); in agp_3_5_isochronous_node_enable() 151 cdev++; in agp_3_5_isochronous_node_enable() 181 for (cdev=0; cdev<ndevs; cdev++) { in agp_3_5_isochronous_node_enable() 182 master[cdev].y = target.y; in agp_3_5_isochronous_node_enable() [all …]
|
/linux-4.4.14/include/linux/qed/ |
D | qed_if.h | 67 struct qed_dev *cdev; member 160 void (*remove)(struct qed_dev *cdev); 162 int (*set_power_state)(struct qed_dev *cdev, 165 void (*set_id)(struct qed_dev *cdev, 173 void (*update_pf_params)(struct qed_dev *cdev, 175 int (*slowpath_start)(struct qed_dev *cdev, 178 int (*slowpath_stop)(struct qed_dev *cdev); 183 int (*set_fp_int)(struct qed_dev *cdev, 187 int (*get_fp_int)(struct qed_dev *cdev, 190 u32 (*sb_init)(struct qed_dev *cdev, [all …]
|
D | qed_eth_if.h | 111 int (*fill_dev_info)(struct qed_dev *cdev, 114 void (*register_ops)(struct qed_dev *cdev, 118 int (*vport_start)(struct qed_dev *cdev, 123 int (*vport_stop)(struct qed_dev *cdev, 126 int (*vport_update)(struct qed_dev *cdev, 129 int (*q_rx_start)(struct qed_dev *cdev, 137 int (*q_rx_stop)(struct qed_dev *cdev, 140 int (*q_tx_start)(struct qed_dev *cdev, 146 int (*q_tx_stop)(struct qed_dev *cdev, 149 int (*filter_config)(struct qed_dev *cdev, [all …]
|
/linux-4.4.14/drivers/scsi/cxgbi/ |
D | libcxgbi.c | 67 int cxgbi_device_portmap_create(struct cxgbi_device *cdev, unsigned int base, in cxgbi_device_portmap_create() argument 70 struct cxgbi_ports_map *pmap = &cdev->pmap; in cxgbi_device_portmap_create() 76 pr_warn("cdev 0x%p, portmap OOM %u.\n", cdev, max_conn); in cxgbi_device_portmap_create() 87 void cxgbi_device_portmap_cleanup(struct cxgbi_device *cdev) in cxgbi_device_portmap_cleanup() argument 89 struct cxgbi_ports_map *pmap = &cdev->pmap; in cxgbi_device_portmap_cleanup() 99 csk, cdev); in cxgbi_device_portmap_cleanup() 110 static inline void cxgbi_device_destroy(struct cxgbi_device *cdev) in cxgbi_device_destroy() argument 113 "cdev 0x%p, p# %u.\n", cdev, cdev->nports); in cxgbi_device_destroy() 114 cxgbi_hbas_remove(cdev); in cxgbi_device_destroy() 115 cxgbi_device_portmap_cleanup(cdev); in cxgbi_device_destroy() [all …]
|
/linux-4.4.14/drivers/s390/char/ |
D | vmur.c | 60 static int ur_probe(struct ccw_device *cdev); 61 static void ur_remove(struct ccw_device *cdev); 62 static int ur_set_online(struct ccw_device *cdev); 63 static int ur_set_offline(struct ccw_device *cdev); 64 static int ur_pm_suspend(struct ccw_device *cdev); 101 static struct urdev *urdev_alloc(struct ccw_device *cdev) in urdev_alloc() argument 108 urd->reclen = cdev->id.driver_info; in urdev_alloc() 109 ccw_device_get_id(cdev, &urd->dev_id); in urdev_alloc() 114 urd->cdev = cdev; in urdev_alloc() 115 get_device(&cdev->dev); in urdev_alloc() [all …]
|
D | raw3270.c | 36 struct ccw_device *cdev; member 245 rc = ccw_device_halt(rp->cdev, (long) rq); in __raw3270_halt_io() 247 rc = ccw_device_clear(rp->cdev, (long) rq); in __raw3270_halt_io() 267 rq->rc = ccw_device_start(rp->cdev, &rq->ccw, in __raw3270_start() 294 spin_lock_irqsave(get_ccwdev_lock(view->dev->cdev), flags); in raw3270_start() 303 spin_unlock_irqrestore(get_ccwdev_lock(view->dev->cdev), flags); in raw3270_start() 340 raw3270_irq (struct ccw_device *cdev, unsigned long intparm, struct irb *irb) in raw3270_irq() argument 347 rp = dev_get_drvdata(&cdev->dev); in raw3270_irq() 388 rq->rc = ccw_device_start(rp->cdev, &rq->ccw, in raw3270_irq() 417 rq->rc = ccw_device_start(rp->cdev, &rq->ccw, in raw3270_irq() [all …]
|
D | con3215.c | 78 struct ccw_device *cdev; /* device for tty driver */ member 257 res = ccw_device_start(raw->cdev, req->ccws, in raw3215_start_io() 271 res = ccw_device_start(raw->cdev, req->ccws, in raw3215_start_io() 290 spin_lock_irqsave(get_ccwdev_lock(raw->cdev), flags); in raw3215_timeout() 303 spin_unlock_irqrestore(get_ccwdev_lock(raw->cdev), flags); in raw3215_timeout() 364 static void raw3215_irq(struct ccw_device *cdev, unsigned long intparm, in raw3215_irq() argument 373 raw = dev_get_drvdata(&cdev->dev); in raw3215_irq() 507 ccw_device_wait_idle(raw->cdev); in raw3215_make_room() 513 spin_unlock(get_ccwdev_lock(raw->cdev)); in raw3215_make_room() 515 spin_lock(get_ccwdev_lock(raw->cdev)); in raw3215_make_room() [all …]
|
D | tape_core.c | 139 spin_lock_irq(get_ccwdev_lock(tdev->cdev)); in tape_operation_show() 149 spin_unlock_irq(get_ccwdev_lock(tdev->cdev)); in tape_operation_show() 230 "unloaded\n", dev_name(&device->cdev->dev)); in tape_med_state_work_handler() 232 kobject_uevent_env(&device->cdev->dev.kobj, KOBJ_CHANGE, envp); in tape_med_state_work_handler() 236 dev_name(&device->cdev->dev)); in tape_med_state_work_handler() 238 kobject_uevent_env(&device->cdev->dev.kobj, KOBJ_CHANGE, envp); in tape_med_state_work_handler() 302 rc = ccw_device_clear(device->cdev, (long) request); in __tape_cancel_io() 443 int tape_generic_pm_suspend(struct ccw_device *cdev) in tape_generic_pm_suspend() argument 447 device = dev_get_drvdata(&cdev->dev); in tape_generic_pm_suspend() 457 "refusing to suspend\n", dev_name(&cdev->dev)); in tape_generic_pm_suspend() [all …]
|
D | tape_34xx.c | 265 dev_err(&device->cdev->dev, "An unexpected condition %d " in tape_34xx_erp_bug() 281 dev_warn (&device->cdev->dev, "A data overrun occurred between" in tape_34xx_erp_overrun() 299 dev_warn (&device->cdev->dev, "The block ID sequence on the " in tape_34xx_erp_sequence() 424 dev_warn (&device->cdev->dev, "A read error occurred " in tape_34xx_unit_check() 438 dev_warn (&device->cdev->dev, "A write error on the " in tape_34xx_unit_check() 446 dev_warn (&device->cdev->dev, "Writing the ID-mark " in tape_34xx_unit_check() 451 dev_warn (&device->cdev->dev, "Reading the tape beyond" in tape_34xx_unit_check() 456 dev_warn (&device->cdev->dev, "The tape contains an " in tape_34xx_unit_check() 463 if (device->cdev->id.driver_info == tape_3480) in tape_34xx_unit_check() 492 dev_warn (&device->cdev->dev, "A path equipment check occurred" in tape_34xx_unit_check() [all …]
|
D | tape_proc.c | 53 spin_lock_irq(get_ccwdev_lock(device->cdev)); in tape_proc_show() 55 seq_printf(m, "%-10.10s ", dev_name(&device->cdev->dev)); in tape_proc_show() 56 seq_printf(m, "%04X/", device->cdev->id.cu_type); in tape_proc_show() 57 seq_printf(m, "%02X\t", device->cdev->id.cu_model); in tape_proc_show() 58 seq_printf(m, "%04X/", device->cdev->id.dev_type); in tape_proc_show() 59 seq_printf(m, "%02X\t\t", device->cdev->id.dev_model); in tape_proc_show() 78 spin_unlock_irq(get_ccwdev_lock(device->cdev)); in tape_proc_show()
|
/linux-4.4.14/drivers/input/ |
D | input-leds.c | 42 struct led_classdev cdev; member 53 static enum led_brightness input_leds_brightness_get(struct led_classdev *cdev) in input_leds_brightness_get() argument 55 struct input_led *led = container_of(cdev, struct input_led, cdev); in input_leds_brightness_get() 58 return test_bit(led->code, input->led) ? cdev->max_brightness : 0; in input_leds_brightness_get() 61 static void input_leds_brightness_set(struct led_classdev *cdev, in input_leds_brightness_set() argument 64 struct input_led *led = container_of(cdev, struct input_led, cdev); in input_leds_brightness_set() 130 led->cdev.name = kasprintf(GFP_KERNEL, "%s::%s", in input_leds_connect() 133 if (!led->cdev.name) { in input_leds_connect() 138 led->cdev.max_brightness = 1; in input_leds_connect() 139 led->cdev.brightness_get = input_leds_brightness_get; in input_leds_connect() [all …]
|
/linux-4.4.14/drivers/thermal/ |
D | thermal_core.c | 252 struct thermal_cooling_device *cdev, int trip) in get_thermal_instance() argument 258 mutex_lock(&cdev->lock); in get_thermal_instance() 261 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in get_thermal_instance() 267 mutex_unlock(&cdev->lock); in get_thermal_instance() 275 struct thermal_cooling_device *cdev, int ret) in print_bind_err_msg() argument 278 tz->type, cdev->type, ret); in print_bind_err_msg() 282 struct thermal_cooling_device *cdev, in __bind() argument 298 ret = thermal_zone_bind_cooling_device(tz, i, cdev, in __bind() 302 print_bind_err_msg(tz, cdev, ret); in __bind() 308 struct thermal_cooling_device *cdev) in __unbind() argument [all …]
|
D | clock_cooling.c | 58 struct thermal_cooling_device *cdev; member 214 unsigned long clock_cooling_get_level(struct thermal_cooling_device *cdev, in clock_cooling_get_level() argument 217 struct clock_cooling_device *ccdev = cdev->devdata; in clock_cooling_get_level() 342 static int clock_cooling_get_max_state(struct thermal_cooling_device *cdev, in clock_cooling_get_max_state() argument 345 struct clock_cooling_device *ccdev = cdev->devdata; in clock_cooling_get_max_state() 366 static int clock_cooling_get_cur_state(struct thermal_cooling_device *cdev, in clock_cooling_get_cur_state() argument 369 struct clock_cooling_device *ccdev = cdev->devdata; in clock_cooling_get_cur_state() 386 static int clock_cooling_set_cur_state(struct thermal_cooling_device *cdev, in clock_cooling_set_cur_state() argument 389 struct clock_cooling_device *clock_device = cdev->devdata; in clock_cooling_set_cur_state() 420 struct thermal_cooling_device *cdev; in clock_cooling_register() local [all …]
|
D | devfreq_cooling.c | 51 struct thermal_cooling_device *cdev; member 137 static int devfreq_cooling_get_max_state(struct thermal_cooling_device *cdev, in devfreq_cooling_get_max_state() argument 140 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_get_max_state() 147 static int devfreq_cooling_get_cur_state(struct thermal_cooling_device *cdev, in devfreq_cooling_get_cur_state() argument 150 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_get_cur_state() 157 static int devfreq_cooling_set_cur_state(struct thermal_cooling_device *cdev, in devfreq_cooling_set_cur_state() argument 160 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_set_cur_state() 274 static int devfreq_cooling_get_requested_power(struct thermal_cooling_device *cdev, in devfreq_cooling_get_requested_power() argument 278 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_get_requested_power() 298 trace_thermal_power_devfreq_get_power(cdev, status, freq, dyn_power, in devfreq_cooling_get_requested_power() [all …]
|
D | db8500_cpufreq_cooling.c | 29 struct thermal_cooling_device *cdev; in db8500_cpufreq_cooling_probe() local 31 cdev = cpufreq_cooling_register(cpu_present_mask); in db8500_cpufreq_cooling_probe() 32 if (IS_ERR(cdev)) { in db8500_cpufreq_cooling_probe() 33 int ret = PTR_ERR(cdev); in db8500_cpufreq_cooling_probe() 43 platform_set_drvdata(pdev, cdev); in db8500_cpufreq_cooling_probe() 45 dev_info(&pdev->dev, "Cooling device registered: %s\n", cdev->type); in db8500_cpufreq_cooling_probe() 52 struct thermal_cooling_device *cdev = platform_get_drvdata(pdev); in db8500_cpufreq_cooling_remove() local 54 cpufreq_cooling_unregister(cdev); in db8500_cpufreq_cooling_remove()
|
D | fair_share.c | 62 struct thermal_cooling_device *cdev, int percentage, int level) in get_target_state() argument 66 cdev->ops->get_max_state(cdev, &max_state); in get_target_state() 106 struct thermal_cooling_device *cdev = instance->cdev; in fair_share_throttle() local 116 instance->target = get_target_state(tz, cdev, percentage, in fair_share_throttle() 119 instance->cdev->updated = false; in fair_share_throttle() 120 thermal_cdev_update(cdev); in fair_share_throttle()
|
D | step_wise.c | 53 struct thermal_cooling_device *cdev = instance->cdev; in get_target_state() local 62 cdev->ops->get_cur_state(cdev, &cur_state); in get_target_state() 64 dev_dbg(&cdev->device, "cur_state=%ld\n", cur_state); in get_target_state() 162 dev_dbg(&instance->cdev->device, "old_target=%d, target=%d\n", in thermal_zone_trip_update() 178 instance->cdev->updated = false; /* cdev needs update */ in thermal_zone_trip_update() 208 thermal_cdev_update(instance->cdev); in step_wise_throttle()
|
D | power_allocator.c | 100 struct thermal_cooling_device *cdev = instance->cdev; in estimate_sustainable_power() local 106 if (power_actor_get_min_power(cdev, tz, &min_power)) in estimate_sustainable_power() 350 cdev_is_power_actor(instance->cdev)) { in allocate_power() 390 struct thermal_cooling_device *cdev = instance->cdev; in allocate_power() local 395 if (!cdev_is_power_actor(cdev)) in allocate_power() 398 if (cdev->ops->get_requested_power(cdev, tz, &req_power[i])) in allocate_power() 408 if (power_actor_get_max_power(cdev, tz, &max_power[i])) in allocate_power() 430 if (!cdev_is_power_actor(instance->cdev)) in allocate_power() 433 power_actor_set_power(instance->cdev, instance, in allocate_power() 528 (!cdev_is_power_actor(instance->cdev))) in allow_maximum_power() [all …]
|
D | db8500_thermal.c | 45 static int db8500_thermal_match_cdev(struct thermal_cooling_device *cdev, in db8500_thermal_match_cdev() argument 50 if (!strlen(cdev->type)) in db8500_thermal_match_cdev() 54 if (!strcmp(trip_point->cdev_name[i], cdev->type)) in db8500_thermal_match_cdev() 63 struct thermal_cooling_device *cdev) in db8500_cdev_bind() argument 70 cdev->ops->get_max_state(cdev, &max_state); in db8500_cdev_bind() 73 if (db8500_thermal_match_cdev(cdev, &ptrips->trip_points[i])) in db8500_cdev_bind() 78 ret = thermal_zone_bind_cooling_device(thermal, i, cdev, in db8500_cdev_bind() 81 dev_info(&cdev->device, "%s bind to %d: %d-%s\n", cdev->type, in db8500_cdev_bind() 90 struct thermal_cooling_device *cdev) in db8500_cdev_unbind() argument 97 if (db8500_thermal_match_cdev(cdev, &ptrips->trip_points[i])) in db8500_cdev_unbind() [all …]
|
D | cpu_cooling.c | 484 static int cpufreq_get_max_state(struct thermal_cooling_device *cdev, in cpufreq_get_max_state() argument 487 struct cpufreq_cooling_device *cpufreq_device = cdev->devdata; in cpufreq_get_max_state() 503 static int cpufreq_get_cur_state(struct thermal_cooling_device *cdev, in cpufreq_get_cur_state() argument 506 struct cpufreq_cooling_device *cpufreq_device = cdev->devdata; in cpufreq_get_cur_state() 523 static int cpufreq_set_cur_state(struct thermal_cooling_device *cdev, in cpufreq_set_cur_state() argument 526 struct cpufreq_cooling_device *cpufreq_device = cdev->devdata; in cpufreq_set_cur_state() 570 static int cpufreq_get_requested_power(struct thermal_cooling_device *cdev, in cpufreq_get_requested_power() argument 577 struct cpufreq_cooling_device *cpufreq_device = cdev->devdata; in cpufreq_get_requested_power() 650 static int cpufreq_state2power(struct thermal_cooling_device *cdev, in cpufreq_state2power() argument 658 struct cpufreq_cooling_device *cpufreq_device = cdev->devdata; in cpufreq_state2power() [all …]
|
D | imx_thermal.c | 92 struct thermal_cooling_device *cdev; member 301 struct thermal_cooling_device *cdev) in imx_bind() argument 305 ret = thermal_zone_bind_cooling_device(tz, IMX_TRIP_PASSIVE, cdev, in imx_bind() 312 tz->type, cdev->type, ret); in imx_bind() 320 struct thermal_cooling_device *cdev) in imx_unbind() argument 324 ret = thermal_zone_unbind_cooling_device(tz, IMX_TRIP_PASSIVE, cdev); in imx_unbind() 328 tz->type, cdev->type, ret); in imx_unbind() 526 data->cdev = cpufreq_cooling_register(cpu_present_mask); in imx_thermal_probe() 527 if (IS_ERR(data->cdev)) { in imx_thermal_probe() 528 ret = PTR_ERR(data->cdev); in imx_thermal_probe() [all …]
|
D | gov_bang_bang.c | 65 dev_dbg(&instance->cdev->device, "target=%d\n", in thermal_zone_trip_update() 68 instance->cdev->updated = false; /* cdev needs update */ in thermal_zone_trip_update() 110 thermal_cdev_update(instance->cdev); in bang_bang_control()
|
/linux-4.4.14/arch/arm/mach-footbridge/ |
D | ebsa285.c | 27 struct led_classdev cdev; member 47 static void ebsa285_led_set(struct led_classdev *cdev, in ebsa285_led_set() argument 50 struct ebsa285_led *led = container_of(cdev, in ebsa285_led_set() 51 struct ebsa285_led, cdev); in ebsa285_led_set() 60 static enum led_brightness ebsa285_led_get(struct led_classdev *cdev) in ebsa285_led_get() argument 62 struct ebsa285_led *led = container_of(cdev, in ebsa285_led_get() 63 struct ebsa285_led, cdev); in ebsa285_led_get() 90 led->cdev.name = ebsa285_leds[i].name; in ebsa285_leds_init() 91 led->cdev.brightness_set = ebsa285_led_set; in ebsa285_leds_init() 92 led->cdev.brightness_get = ebsa285_led_get; in ebsa285_leds_init() [all …]
|
D | netwinder-hw.c | 666 struct led_classdev cdev; member 687 static void netwinder_led_set(struct led_classdev *cdev, in netwinder_led_set() argument 690 struct netwinder_led *led = container_of(cdev, in netwinder_led_set() 691 struct netwinder_led, cdev); in netwinder_led_set() 705 static enum led_brightness netwinder_led_get(struct led_classdev *cdev) in netwinder_led_get() argument 707 struct netwinder_led *led = container_of(cdev, in netwinder_led_get() 708 struct netwinder_led, cdev); in netwinder_led_get() 733 led->cdev.name = netwinder_leds[i].name; in netwinder_leds_init() 734 led->cdev.brightness_set = netwinder_led_set; in netwinder_leds_init() 735 led->cdev.brightness_get = netwinder_led_get; in netwinder_leds_init() [all …]
|
/linux-4.4.14/drivers/leds/ |
D | leds-versatile.c | 18 struct led_classdev cdev; member 40 static void versatile_led_set(struct led_classdev *cdev, in versatile_led_set() argument 43 struct versatile_led *led = container_of(cdev, in versatile_led_set() 44 struct versatile_led, cdev); in versatile_led_set() 54 static enum led_brightness versatile_led_get(struct led_classdev *cdev) in versatile_led_get() argument 56 struct versatile_led *led = container_of(cdev, in versatile_led_get() 57 struct versatile_led, cdev); in versatile_led_get() 84 led->cdev.name = versatile_leds[i].name; in versatile_leds_probe() 85 led->cdev.brightness_set = versatile_led_set; in versatile_leds_probe() 86 led->cdev.brightness_get = versatile_led_get; in versatile_leds_probe() [all …]
|
D | leds-regulator.c | 24 container_of(led_cdev, struct regulator_led, cdev) 27 struct led_classdev cdev; member 74 dev_err(led->cdev.dev, "Failed to enable vcc: %d\n", ret); in regulator_led_enable() 90 dev_err(led->cdev.dev, "Failed to disable vcc: %d\n", ret); in regulator_led_disable() 109 if (led->cdev.max_brightness > 1) { in regulator_led_set_value() 111 dev_dbg(led->cdev.dev, "brightness: %d voltage: %d\n", in regulator_led_set_value() 116 dev_err(led->cdev.dev, "Failed to set voltage %d: %d\n", in regulator_led_set_value() 166 led->cdev.max_brightness = led_regulator_get_max_brightness(vcc); in regulator_led_probe() 167 if (pdata->brightness > led->cdev.max_brightness) { in regulator_led_probe() 174 led->cdev.brightness_set = regulator_led_brightness_set; in regulator_led_probe() [all …]
|
D | leds-max8997.c | 45 struct led_classdev cdev; member 64 led->cdev.max_brightness = MAX8997_LED_FLASH_MAX_BRIGHTNESS; in max8997_led_set_mode() 70 led->cdev.max_brightness = MAX8997_LED_MOVIE_MAX_BRIGHTNESS; in max8997_led_set_mode() 77 led->cdev.max_brightness = MAX8997_LED_FLASH_MAX_BRIGHTNESS; in max8997_led_set_mode() 84 led->cdev.max_brightness = MAX8997_LED_MOVIE_MAX_BRIGHTNESS; in max8997_led_set_mode() 87 led->cdev.max_brightness = MAX8997_LED_NONE_MAX_BRIGHTNESS; in max8997_led_set_mode() 157 container_of(led_cdev, struct max8997_led, cdev); in max8997_led_brightness_set() 173 container_of(led_cdev, struct max8997_led, cdev); in max8997_led_show_mode() 207 container_of(led_cdev, struct max8997_led, cdev); in max8997_led_store_mode() 258 led->cdev.name = name; in max8997_led_probe() [all …]
|
D | leds-asic3.c | 39 static void brightness_set(struct led_classdev *cdev, in brightness_set() argument 42 struct platform_device *pdev = to_platform_device(cdev->dev->parent); in brightness_set() 57 static int blink_set(struct led_classdev *cdev, in blink_set() argument 61 struct platform_device *pdev = to_platform_device(cdev->dev->parent); in blink_set() 103 led->cdev = devm_kzalloc(&pdev->dev, sizeof(struct led_classdev), in asic3_led_probe() 105 if (!led->cdev) { in asic3_led_probe() 110 led->cdev->name = led->name; in asic3_led_probe() 111 led->cdev->flags = LED_CORE_SUSPENDRESUME; in asic3_led_probe() 112 led->cdev->brightness_set = brightness_set; in asic3_led_probe() 113 led->cdev->blink_set = blink_set; in asic3_led_probe() [all …]
|
D | leds-bcm6358.c | 43 struct led_classdev cdev; member 90 container_of(led_cdev, struct bcm6358_led, cdev); in bcm6358_led_set() 117 led->cdev.name = of_get_property(nc, "label", NULL) ? : nc->name; in bcm6358_led() 118 led->cdev.default_trigger = of_get_property(nc, in bcm6358_led() 125 led->cdev.brightness = LED_FULL; in bcm6358_led() 135 led->cdev.brightness = LED_FULL; in bcm6358_led() 137 led->cdev.brightness = LED_OFF; in bcm6358_led() 139 led->cdev.brightness = LED_OFF; in bcm6358_led() 142 led->cdev.brightness = LED_OFF; in bcm6358_led() 144 bcm6358_led_mode(led, led->cdev.brightness); in bcm6358_led() [all …]
|
D | leds-wm8350.c | 90 container_of(led_cdev, struct wm8350_led, cdev) 101 dev_err(led->cdev.dev, "Failed to enable ISINK: %d\n", ret); in wm8350_led_enable() 107 dev_err(led->cdev.dev, "Failed to enable DCDC: %d\n", ret); in wm8350_led_enable() 124 dev_err(led->cdev.dev, "Failed to disable DCDC: %d\n", ret); in wm8350_led_disable() 130 dev_err(led->cdev.dev, "Failed to disable ISINK: %d\n", ret); in wm8350_led_disable() 133 dev_err(led->cdev.dev, "Failed to reenable DCDC: %d\n", in wm8350_led_disable() 170 dev_err(led->cdev.dev, "Failed to set %duA: %d\n", in led_work() 235 led->cdev.brightness_set = wm8350_led_set; in wm8350_led_probe() 236 led->cdev.default_trigger = pdata->default_trigger; in wm8350_led_probe() 237 led->cdev.name = pdata->name; in wm8350_led_probe() [all …]
|
D | leds-powernv.c | 55 struct led_classdev cdev; member 87 struct device *dev = powernv_led->cdev.dev; in powernv_led_set() 139 struct device *dev = powernv_led->cdev.dev; in powernv_led_get() 161 __func__, powernv_led->cdev.name); in powernv_led_get() 180 container_of(led_cdev, struct powernv_led_data, cdev); in powernv_brightness_set() 196 container_of(led_cdev, struct powernv_led_data, cdev); in powernv_brightness_get() 220 powernv_led->cdev.name = devm_kasprintf(dev, GFP_KERNEL, "%s:%s", in powernv_led_create() 223 if (!powernv_led->cdev.name) { in powernv_led_create() 230 powernv_led->cdev.brightness_set = powernv_brightness_set; in powernv_led_create() 231 powernv_led->cdev.brightness_get = powernv_brightness_get; in powernv_led_create() [all …]
|
D | leds-s3c24xx.c | 28 struct led_classdev cdev; member 39 return container_of(led_cdev, struct s3c24xx_gpio_led, cdev); in to_gpio() 66 led_classdev_unregister(&led->cdev); in s3c24xx_led_remove() 84 led->cdev.brightness_set = s3c24xx_led_set; in s3c24xx_led_probe() 85 led->cdev.default_trigger = pdata->def_trigger; in s3c24xx_led_probe() 86 led->cdev.name = pdata->name; in s3c24xx_led_probe() 87 led->cdev.flags |= LED_CORE_SUSPENDRESUME; in s3c24xx_led_probe() 107 ret = led_classdev_register(&dev->dev, &led->cdev); in s3c24xx_led_probe()
|
D | leds-lm3533.c | 51 struct led_classdev cdev; member 62 static inline struct lm3533_led *to_lm3533_led(struct led_classdev *cdev) in to_lm3533_led() argument 64 return container_of(cdev, struct lm3533_led, cdev); in to_lm3533_led() 96 dev_dbg(led->cdev.dev, "%s - %d\n", __func__, enable); in lm3533_led_pattern_enable() 114 dev_err(led->cdev.dev, "failed to enable pattern %d (%d)\n", in lm3533_led_pattern_enable() 130 dev_dbg(led->cdev.dev, "%s - %u\n", __func__, led->new_brightness); in lm3533_led_work() 138 static void lm3533_led_set(struct led_classdev *cdev, in lm3533_led_set() argument 141 struct lm3533_led *led = to_lm3533_led(cdev); in lm3533_led_set() 143 dev_dbg(led->cdev.dev, "%s - %d\n", __func__, value); in lm3533_led_set() 149 static enum led_brightness lm3533_led_get(struct led_classdev *cdev) in lm3533_led_get() argument [all …]
|
D | leds-syscon.c | 42 struct led_classdev cdev; member 53 container_of(led_cdev, struct syscon_led, cdev); in syscon_led_set() 67 dev_err(sled->cdev.dev, "error updating LED status\n"); in syscon_led_set() 101 sled->cdev.name = in syscon_led_probe() 103 sled->cdev.default_trigger = in syscon_led_probe() 130 sled->cdev.brightness_set = syscon_led_set; in syscon_led_probe() 132 ret = led_classdev_register(dev, &sled->cdev); in syscon_led_probe() 137 dev_info(dev, "registered LED %s\n", sled->cdev.name); in syscon_led_probe() 146 led_classdev_unregister(&sled->cdev); in syscon_led_remove()
|
D | leds-lt3593.c | 29 struct led_classdev cdev; member 78 container_of(led_cdev, struct lt3593_led_data, cdev); in lt3593_led_set() 96 led_dat->cdev.name = template->name; in create_lt3593_led() 97 led_dat->cdev.default_trigger = template->default_trigger; in create_lt3593_led() 100 led_dat->cdev.brightness_set = lt3593_led_set; in create_lt3593_led() 103 led_dat->cdev.brightness = state ? LED_FULL : LED_OFF; in create_lt3593_led() 106 led_dat->cdev.flags |= LED_CORE_SUSPENDRESUME; in create_lt3593_led() 116 ret = led_classdev_register(parent, &led_dat->cdev); in create_lt3593_led() 131 led_classdev_unregister(&led->cdev); in delete_lt3593_led()
|
D | leds-pwm.c | 28 struct led_classdev cdev; member 66 container_of(led_cdev, struct led_pwm_data, cdev); in led_pwm_set() 67 unsigned int max = led_dat->cdev.max_brightness; in led_pwm_set() 93 led_classdev_unregister(&priv->leds[priv->num_leds].cdev); in led_pwm_cleanup() 106 led_data->cdev.name = led->name; in led_pwm_add() 107 led_data->cdev.default_trigger = led->default_trigger; in led_pwm_add() 108 led_data->cdev.brightness_set = led_pwm_set; in led_pwm_add() 109 led_data->cdev.brightness = LED_OFF; in led_pwm_add() 110 led_data->cdev.max_brightness = led->max_brightness; in led_pwm_add() 111 led_data->cdev.flags = LED_CORE_SUSPENDRESUME; in led_pwm_add() [all …]
|
D | leds-da903x.c | 35 struct led_classdev cdev; member 88 led = container_of(led_cdev, struct da903x_led, cdev); in da903x_led_set() 114 led->cdev.name = pdata->name; in da903x_led_probe() 115 led->cdev.default_trigger = pdata->default_trigger; in da903x_led_probe() 116 led->cdev.brightness_set = da903x_led_set; in da903x_led_probe() 117 led->cdev.brightness = LED_OFF; in da903x_led_probe() 126 ret = led_classdev_register(led->master, &led->cdev); in da903x_led_probe() 140 led_classdev_unregister(&led->cdev); in da903x_led_remove()
|
D | leds-bcm6328.c | 68 struct led_classdev cdev; member 122 container_of(led_cdev, struct bcm6328_led, cdev); in bcm6328_led_set() 139 container_of(led_cdev, struct bcm6328_led, cdev); in bcm6328_blink_set() 284 led->cdev.name = of_get_property(nc, "label", NULL) ? : nc->name; in bcm6328_led() 285 led->cdev.default_trigger = of_get_property(nc, in bcm6328_led() 292 led->cdev.brightness = LED_FULL; in bcm6328_led() 308 led->cdev.brightness = LED_FULL; in bcm6328_led() 310 led->cdev.brightness = LED_OFF; in bcm6328_led() 312 led->cdev.brightness = LED_OFF; in bcm6328_led() 315 led->cdev.brightness = LED_OFF; in bcm6328_led() [all …]
|
D | leds-gpio.c | 26 struct led_classdev cdev; member 53 container_of(led_cdev, struct gpio_led_data, cdev); in gpio_led_set() 82 container_of(led_cdev, struct gpio_led_data, cdev); in gpio_blink_set() 125 led_dat->cdev.name = template->name; in create_gpio_led() 126 led_dat->cdev.default_trigger = template->default_trigger; in create_gpio_led() 131 led_dat->cdev.blink_set = gpio_blink_set; in create_gpio_led() 133 led_dat->cdev.brightness_set = gpio_led_set; in create_gpio_led() 138 led_dat->cdev.brightness = state ? LED_FULL : LED_OFF; in create_gpio_led() 140 led_dat->cdev.flags |= LED_CORE_SUSPENDRESUME; in create_gpio_led() 148 return led_classdev_register(parent, &led_dat->cdev); in create_gpio_led() [all …]
|
D | leds-adp5520.c | 25 struct led_classdev cdev; member 45 led = container_of(led_cdev, struct adp5520_led, cdev); in adp5520_led_set() 136 led_dat->cdev.name = cur_led->name; in adp5520_led_probe() 137 led_dat->cdev.default_trigger = cur_led->default_trigger; in adp5520_led_probe() 138 led_dat->cdev.brightness_set = adp5520_led_set; in adp5520_led_probe() 139 led_dat->cdev.brightness = LED_OFF; in adp5520_led_probe() 153 ret = led_classdev_register(led_dat->master, &led_dat->cdev); in adp5520_led_probe() 174 led_classdev_unregister(&led[i].cdev); in adp5520_led_probe() 194 led_classdev_unregister(&led[i].cdev); in adp5520_led_remove()
|
D | leds-da9052.c | 34 struct led_classdev cdev; member 73 led = container_of(led_cdev, struct da9052_led, cdev); in da9052_led_set() 135 led[i].cdev.name = pled->leds[i].name; in da9052_led_probe() 136 led[i].cdev.brightness_set = da9052_led_set; in da9052_led_probe() 137 led[i].cdev.brightness = LED_OFF; in da9052_led_probe() 138 led[i].cdev.max_brightness = DA9052_MAX_BRIGHTNESS; in da9052_led_probe() 144 error = led_classdev_register(pdev->dev.parent, &led[i].cdev); in da9052_led_probe() 170 led_classdev_unregister(&led[i].cdev); in da9052_led_probe() 192 led_classdev_unregister(&led[i].cdev); in da9052_led_remove()
|
D | leds-ns2.c | 44 struct led_classdev cdev; member 126 container_of(led_cdev, struct ns2_led_data, cdev); in ns2_led_set() 145 container_of(led_cdev, struct ns2_led_data, cdev); in ns2_led_sata_store() 177 container_of(led_cdev, struct ns2_led_data, cdev); in ns2_led_sata_show() 219 led_dat->cdev.name = template->name; in create_ns2_led() 220 led_dat->cdev.default_trigger = template->default_trigger; in create_ns2_led() 221 led_dat->cdev.blink_set = NULL; in create_ns2_led() 222 led_dat->cdev.brightness_set = ns2_led_set; in create_ns2_led() 223 led_dat->cdev.flags |= LED_CORE_SUSPENDRESUME; in create_ns2_led() 224 led_dat->cdev.groups = ns2_led_groups; in create_ns2_led() [all …]
|
D | leds-88pm860x.c | 34 struct led_classdev cdev; member 117 static void pm860x_led_set(struct led_classdev *cdev, in pm860x_led_set() argument 120 struct pm860x_led *data = container_of(cdev, struct pm860x_led, cdev); in pm860x_led_set() 215 data->cdev.name = data->name; in pm860x_led_probe() 216 data->cdev.brightness_set = pm860x_led_set; in pm860x_led_probe() 220 ret = led_classdev_register(chip->dev, &data->cdev); in pm860x_led_probe() 225 pm860x_led_set(&data->cdev, 0); in pm860x_led_probe() 233 led_classdev_unregister(&data->cdev); in pm860x_led_remove()
|
D | leds-menf21bmc.c | 29 struct led_classdev cdev; member 61 struct menf21bmc_led, cdev); in menf21bmc_led_set() 87 leds[i].cdev.name = leds[i].name; in menf21bmc_led_probe() 88 leds[i].cdev.brightness_set = menf21bmc_led_set; in menf21bmc_led_probe() 90 ret = devm_led_classdev_register(&pdev->dev, &leds[i].cdev); in menf21bmc_led_probe()
|
D | leds-ot200.c | 19 struct led_classdev cdev; member 95 struct ot200_led *led = container_of(led_cdev, struct ot200_led, cdev); in ot200_led_brightness_set() 124 leds[i].cdev.name = leds[i].name; in ot200_led_probe() 125 leds[i].cdev.brightness_set = ot200_led_brightness_set; in ot200_led_probe() 127 ret = devm_led_classdev_register(&pdev->dev, &leds[i].cdev); in ot200_led_probe()
|
D | leds-wm831x-status.c | 24 struct led_classdev cdev; member 41 container_of(led_cdev, struct wm831x_status, cdev) 288 drvdata->cdev.name = pdata.name; in wm831x_status_probe() 289 drvdata->cdev.default_trigger = pdata.default_trigger; in wm831x_status_probe() 290 drvdata->cdev.brightness_set = wm831x_status_set; in wm831x_status_probe() 291 drvdata->cdev.blink_set = wm831x_status_blink_set; in wm831x_status_probe() 292 drvdata->cdev.groups = wm831x_status_groups; in wm831x_status_probe() 294 ret = led_classdev_register(wm831x->dev, &drvdata->cdev); in wm831x_status_probe() 307 led_classdev_unregister(&drvdata->cdev); in wm831x_status_remove()
|
D | leds-mc13783.c | 34 struct led_classdev cdev; member 117 container_of(led_cdev, struct mc13xxx_led, cdev); in mc13xxx_led_set() 257 leds->led[i].cdev.name = name; in mc13xxx_led_probe() 258 leds->led[i].cdev.default_trigger = trig; in mc13xxx_led_probe() 259 leds->led[i].cdev.flags = LED_CORE_SUSPENDRESUME; in mc13xxx_led_probe() 260 leds->led[i].cdev.brightness_set = mc13xxx_led_set; in mc13xxx_led_probe() 261 leds->led[i].cdev.max_brightness = mc13xxx_max_brightness(id); in mc13xxx_led_probe() 265 ret = led_classdev_register(dev->parent, &leds->led[i].cdev); in mc13xxx_led_probe() 274 led_classdev_unregister(&leds->led[i].cdev); in mc13xxx_led_probe() 287 led_classdev_unregister(&leds->led[i].cdev); in mc13xxx_led_remove()
|
D | leds-netxbig.c | 115 struct led_classdev cdev; member 149 container_of(led_cdev, struct netxbig_led_data, cdev); in netxbig_led_blink_set() 178 container_of(led_cdev, struct netxbig_led_data, cdev); in netxbig_led_set() 219 container_of(led_cdev, struct netxbig_led_data, cdev); in netxbig_led_sata_store() 269 container_of(led_cdev, struct netxbig_led_data, cdev); in netxbig_led_sata_show() 289 led_dat->cdev.name = template->name; in create_netxbig_led() 290 led_dat->cdev.default_trigger = template->default_trigger; in create_netxbig_led() 291 led_dat->cdev.blink_set = netxbig_led_blink_set; in create_netxbig_led() 292 led_dat->cdev.brightness_set = netxbig_led_set; in create_netxbig_led() 304 led_dat->cdev.brightness = LED_OFF; in create_netxbig_led() [all …]
|
D | leds-lp55xx-common.c | 31 static struct lp55xx_led *cdev_to_lp55xx_led(struct led_classdev *cdev) in cdev_to_lp55xx_led() argument 33 return container_of(cdev, struct lp55xx_led, cdev); in cdev_to_lp55xx_led() 137 static void lp55xx_set_brightness(struct led_classdev *cdev, in lp55xx_set_brightness() argument 140 struct lp55xx_led *led = cdev_to_lp55xx_led(cdev); in lp55xx_set_brightness() 167 led->cdev.default_trigger = pdata->led_config[chan].default_trigger; in lp55xx_init_led() 175 led->cdev.brightness_set = lp55xx_set_brightness; in lp55xx_init_led() 176 led->cdev.groups = lp55xx_led_groups; in lp55xx_init_led() 179 led->cdev.name = pdata->led_config[chan].name; in lp55xx_init_led() 183 led->cdev.name = name; in lp55xx_init_led() 186 ret = led_classdev_register(dev, &led->cdev); in lp55xx_init_led() [all …]
|
/linux-4.4.14/drivers/usb/gadget/legacy/ |
D | zero.c | 158 struct usb_composite_dev *cdev = (void *)_c; in zero_autoresume() local 159 struct usb_gadget *g = cdev->gadget; in zero_autoresume() 162 if (!cdev->config) in zero_autoresume() 171 INFO(cdev, "%s --> %d\n", __func__, status); in zero_autoresume() 175 static void zero_suspend(struct usb_composite_dev *cdev) in zero_suspend() argument 177 if (cdev->gadget->speed == USB_SPEED_UNKNOWN) in zero_suspend() 187 DBG(cdev, "suspend, wakeup in %d milliseconds\n", in zero_suspend() 192 DBG(cdev, "%s\n", __func__); in zero_suspend() 195 static void zero_resume(struct usb_composite_dev *cdev) in zero_resume() argument 197 DBG(cdev, "%s\n", __func__); in zero_resume() [all …]
|
D | serial.c | 115 static int serial_register_ports(struct usb_composite_dev *cdev, in serial_register_ports() argument 121 ret = usb_add_config_only(cdev, c); in serial_register_ports() 163 static int gs_bind(struct usb_composite_dev *cdev) in gs_bind() argument 171 status = usb_string_ids_tab(cdev, strings_dev); in gs_bind() 179 if (gadget_is_otg(cdev->gadget)) { in gs_bind() 183 usb_desc = usb_otg_descriptor_alloc(cdev->gadget); in gs_bind() 188 usb_otg_descriptor_init(cdev->gadget, usb_desc); in gs_bind() 198 status = serial_register_ports(cdev, &serial_config_driver, in gs_bind() 200 usb_ep_autoconfig_reset(cdev->gadget); in gs_bind() 202 status = serial_register_ports(cdev, &serial_config_driver, in gs_bind() [all …]
|
D | multi.c | 142 if (gadget_is_otg(c->cdev->gadget)) { in rndis_do_config() 189 static __ref int rndis_config_register(struct usb_composite_dev *cdev) in rndis_config_register() argument 199 return usb_add_config(cdev, &config, rndis_do_config); in rndis_config_register() 204 static __ref int rndis_config_register(struct usb_composite_dev *cdev) in rndis_config_register() argument 224 if (gadget_is_otg(c->cdev->gadget)) { in cdc_do_config() 272 static __ref int cdc_config_register(struct usb_composite_dev *cdev) in cdc_config_register() argument 282 return usb_add_config(cdev, &config, cdc_do_config); in cdc_config_register() 287 static __ref int cdc_config_register(struct usb_composite_dev *cdev) in cdc_config_register() argument 298 static int __ref multi_bind(struct usb_composite_dev *cdev) in multi_bind() argument 300 struct usb_gadget *gadget = cdev->gadget; in multi_bind() [all …]
|
D | mass_storage.c | 124 if (gadget_is_otg(c->cdev->gadget)) { in msg_do_config() 155 static int msg_bind(struct usb_composite_dev *cdev) in msg_bind() argument 178 status = fsg_common_set_cdev(opts->common, cdev, config.can_stall); in msg_bind() 190 status = usb_string_ids_tab(cdev, strings_dev); in msg_bind() 195 if (gadget_is_otg(cdev->gadget) && !otg_desc[0]) { in msg_bind() 198 usb_desc = usb_otg_descriptor_alloc(cdev->gadget); in msg_bind() 201 usb_otg_descriptor_init(cdev->gadget, usb_desc); in msg_bind() 206 status = usb_add_config(cdev, &msg_config_driver, msg_do_config); in msg_bind() 210 usb_composite_overwrite_options(cdev, &coverwrite); in msg_bind() 211 dev_info(&cdev->gadget->dev, in msg_bind() [all …]
|
D | printer.c | 120 struct usb_gadget *gadget = c->cdev->gadget; in printer_do_config() 143 static int printer_bind(struct usb_composite_dev *cdev) in printer_bind() argument 164 ret = usb_string_ids_tab(cdev, strings); in printer_bind() 172 if (gadget_is_otg(cdev->gadget) && !otg_desc[0]) { in printer_bind() 175 usb_desc = usb_otg_descriptor_alloc(cdev->gadget); in printer_bind() 180 usb_otg_descriptor_init(cdev->gadget, usb_desc); in printer_bind() 185 ret = usb_add_config(cdev, &printer_cfg_driver, printer_do_config); in printer_bind() 189 usb_composite_overwrite_options(cdev, &coverwrite); in printer_bind() 200 static int printer_unbind(struct usb_composite_dev *cdev) in printer_unbind() argument
|
D | ether.c | 218 if (gadget_is_otg(c->cdev->gadget)) { in rndis_do_config() 260 if (gadget_is_otg(c->cdev->gadget)) { in eth_do_config() 275 } else if (can_support_ecm(c->cdev->gadget)) { in eth_do_config() 308 static int eth_bind(struct usb_composite_dev *cdev) in eth_bind() argument 310 struct usb_gadget *gadget = cdev->gadget; in eth_bind() 371 gether_set_gadget(net, cdev->gadget); in eth_bind() 400 status = usb_string_ids_tab(cdev, strings_dev); in eth_bind() 419 status = usb_add_config(cdev, &rndis_config_driver, in eth_bind() 425 status = usb_add_config(cdev, ð_config_driver, eth_do_config); in eth_bind() 429 usb_composite_overwrite_options(cdev, &coverwrite); in eth_bind() [all …]
|
D | g_ffs.c | 147 static int gfs_bind(struct usb_composite_dev *cdev); 148 static int gfs_unbind(struct usb_composite_dev *cdev); 316 static int gfs_bind(struct usb_composite_dev *cdev) in gfs_bind() argument 328 if (can_support_ecm(cdev->gadget)) { in gfs_bind() 374 gether_set_gadget(net, cdev->gadget); in gfs_bind() 379 if (can_support_ecm(cdev->gadget)) { in gfs_bind() 396 ret = usb_string_ids_tab(cdev, gfs_strings); in gfs_bind() 401 if (gadget_is_otg(cdev->gadget) && !gfs_otg_desc[0]) { in gfs_bind() 404 usb_desc = usb_otg_descriptor_alloc(cdev->gadget); in gfs_bind() 407 usb_otg_descriptor_init(cdev->gadget, usb_desc); in gfs_bind() [all …]
|
D | ncm.c | 103 if (gadget_is_otg(c->cdev->gadget)) { in ncm_do_config() 133 static int gncm_bind(struct usb_composite_dev *cdev) in gncm_bind() argument 135 struct usb_gadget *gadget = cdev->gadget; in gncm_bind() 155 status = usb_string_ids_tab(cdev, strings_dev); in gncm_bind() 172 status = usb_add_config(cdev, &ncm_config_driver, in gncm_bind() 177 usb_composite_overwrite_options(cdev, &coverwrite); in gncm_bind() 190 static int gncm_unbind(struct usb_composite_dev *cdev) in gncm_unbind() argument
|
D | audio.c | 162 if (gadget_is_otg(c->cdev->gadget)) { in audio_do_config() 205 static int audio_bind(struct usb_composite_dev *cdev) in audio_bind() argument 242 status = usb_string_ids_tab(cdev, strings_dev); in audio_bind() 248 if (gadget_is_otg(cdev->gadget) && !otg_desc[0]) { in audio_bind() 251 usb_desc = usb_otg_descriptor_alloc(cdev->gadget); in audio_bind() 254 usb_otg_descriptor_init(cdev->gadget, usb_desc); in audio_bind() 259 status = usb_add_config(cdev, &audio_config_driver, audio_do_config); in audio_bind() 262 usb_composite_overwrite_options(cdev, &coverwrite); in audio_bind() 264 INFO(cdev, "%s, version: %s\n", DRIVER_DESC, DRIVER_VERSION); in audio_bind() 279 static int audio_unbind(struct usb_composite_dev *cdev) in audio_unbind() argument
|
D | cdc2.c | 97 if (gadget_is_otg(c->cdev->gadget)) { in cdc_do_config() 142 static int cdc_bind(struct usb_composite_dev *cdev) in cdc_bind() argument 144 struct usb_gadget *gadget = cdev->gadget; in cdc_bind() 148 if (!can_support_ecm(cdev->gadget)) { in cdc_bind() 176 status = usb_string_ids_tab(cdev, strings_dev); in cdc_bind() 194 status = usb_add_config(cdev, &cdc_config_driver, cdc_do_config); in cdc_bind() 198 usb_composite_overwrite_options(cdev, &coverwrite); in cdc_bind() 214 static int cdc_unbind(struct usb_composite_dev *cdev) in cdc_unbind() argument
|
D | acm_ms.c | 115 if (gadget_is_otg(c->cdev->gadget)) { in acm_ms_do_config() 159 static int acm_ms_bind(struct usb_composite_dev *cdev) in acm_ms_bind() argument 161 struct usb_gadget *gadget = cdev->gadget; in acm_ms_bind() 185 status = fsg_common_set_cdev(opts->common, cdev, config.can_stall); in acm_ms_bind() 200 status = usb_string_ids_tab(cdev, strings_dev); in acm_ms_bind() 218 status = usb_add_config(cdev, &acm_ms_config_driver, acm_ms_do_config); in acm_ms_bind() 222 usb_composite_overwrite_options(cdev, &coverwrite); in acm_ms_bind() 242 static int acm_ms_unbind(struct usb_composite_dev *cdev) in acm_ms_unbind() argument
|
D | hid.c | 99 if (gadget_is_otg(c->cdev->gadget)) { in do_config() 135 static int hid_bind(struct usb_composite_dev *cdev) in hid_bind() argument 137 struct usb_gadget *gadget = cdev->gadget; in hid_bind() 168 status = usb_string_ids_tab(cdev, strings_dev); in hid_bind() 186 status = usb_add_config(cdev, &config_driver, do_config); in hid_bind() 190 usb_composite_overwrite_options(cdev, &coverwrite); in hid_bind() 207 static int hid_unbind(struct usb_composite_dev *cdev) in hid_unbind() argument
|
D | nokia.c | 271 static int nokia_bind(struct usb_composite_dev *cdev) in nokia_bind() argument 273 struct usb_gadget *gadget = cdev->gadget; in nokia_bind() 278 status = usb_string_ids_tab(cdev, strings_dev); in nokia_bind() 334 status = fsg_common_set_cdev(fsg_opts->common, cdev, fsg_config.can_stall); in nokia_bind() 348 status = usb_add_config(cdev, &nokia_config_500ma_driver, in nokia_bind() 353 status = usb_add_config(cdev, &nokia_config_100ma_driver, in nokia_bind() 358 usb_composite_overwrite_options(cdev, &coverwrite); in nokia_bind() 393 static int nokia_unbind(struct usb_composite_dev *cdev) in nokia_unbind() argument
|
D | gmidi.c | 151 static int midi_bind(struct usb_composite_dev *cdev) in midi_bind() argument 168 status = usb_string_ids_tab(cdev, strings_dev); in midi_bind() 175 status = usb_add_config(cdev, &midi_config, midi_bind_config); in midi_bind() 178 usb_composite_overwrite_options(cdev, &coverwrite); in midi_bind()
|
D | webcam.c | 362 webcam_unbind(struct usb_composite_dev *cdev) in webcam_unbind() argument 372 webcam_bind(struct usb_composite_dev *cdev) in webcam_bind() argument 397 ret = usb_string_ids_tab(cdev, webcam_strings); in webcam_bind() 408 if ((ret = usb_add_config(cdev, &webcam_config_driver, in webcam_bind() 412 usb_composite_overwrite_options(cdev, &coverwrite); in webcam_bind() 413 INFO(cdev, "Webcam Video Gadget\n"); in webcam_bind()
|
/linux-4.4.14/drivers/scsi/cxgbi/cxgb3i/ |
D | cxgb3i.c | 184 l2t_send(csk->cdev->lldev, skb, csk->l2t); in send_act_open_req() 265 l2t_send(csk->cdev->lldev, skb, csk->l2t); in send_abort_req() 288 cxgb3_ofld_send(csk->cdev->lldev, skb); in send_abort_rpl() 317 cxgb3_ofld_send(csk->cdev->lldev, skb); in send_rx_credits() 454 l2t_send(csk->cdev->lldev, skb, csk->l2t); in push_tx_frames() 468 cxgb3_free_atid(csk->cdev->lldev, csk->atid); in free_atid() 489 cxgb3_insert_tid(csk->cdev->lldev, &t3_client, csk, tid); in do_act_establish() 605 static int do_peer_close(struct t3cdev *cdev, struct sk_buff *skb, void *ctx) in do_peer_close() argument 622 static int do_close_con_rpl(struct t3cdev *cdev, struct sk_buff *skb, in do_close_con_rpl() argument 660 static int do_abort_req(struct t3cdev *cdev, struct sk_buff *skb, void *ctx) in do_abort_req() argument [all …]
|
/linux-4.4.14/drivers/usb/gadget/function/ |
D | f_ecm.c | 382 struct usb_composite_dev *cdev = ecm->port.func.config->cdev; in ecm_do_notify() local 404 DBG(cdev, "notify connect %s\n", in ecm_do_notify() 417 data[0] = cpu_to_le32(ecm_bitrate(cdev->gadget)); in ecm_do_notify() 420 DBG(cdev, "notify speed %d\n", ecm_bitrate(cdev->gadget)); in ecm_do_notify() 431 DBG(cdev, "notify --> %d\n", status); in ecm_do_notify() 449 struct usb_composite_dev *cdev = ecm->port.func.config->cdev; in ecm_notify_complete() local 461 DBG(cdev, "event %02x --> %d\n", in ecm_notify_complete() 472 struct usb_composite_dev *cdev = f->config->cdev; in ecm_setup() local 473 struct usb_request *req = cdev->req; in ecm_setup() 490 DBG(cdev, "packet filter %02x\n", w_value); in ecm_setup() [all …]
|
D | f_eem.c | 172 struct usb_composite_dev *cdev = f->config->cdev; in eem_setup() local 178 DBG(cdev, "invalid control req%02x.%02x v%04x i%04x l%d\n", in eem_setup() 190 struct usb_composite_dev *cdev = f->config->cdev; in eem_set_alt() local 198 DBG(cdev, "reset eem\n"); in eem_set_alt() 202 DBG(cdev, "init eem\n"); in eem_set_alt() 203 if (config_ep_by_speed(cdev->gadget, f, in eem_set_alt() 205 config_ep_by_speed(cdev->gadget, f, in eem_set_alt() 218 DBG(cdev, "activate eem\n"); in eem_set_alt() 233 struct usb_composite_dev *cdev = f->config->cdev; in eem_disable() local 235 DBG(cdev, "eem deactivated\n"); in eem_disable() [all …]
|
D | f_obex.c | 196 struct usb_composite_dev *cdev = f->config->cdev; in obex_set_alt() local 202 dev_dbg(&cdev->gadget->dev, in obex_set_alt() 210 dev_dbg(&cdev->gadget->dev, in obex_set_alt() 216 dev_dbg(&cdev->gadget->dev, in obex_set_alt() 218 if (config_ep_by_speed(cdev->gadget, f, in obex_set_alt() 220 config_ep_by_speed(cdev->gadget, f, in obex_set_alt() 229 dev_dbg(&cdev->gadget->dev, in obex_set_alt() 255 struct usb_composite_dev *cdev = f->config->cdev; in obex_disable() local 257 dev_dbg(&cdev->gadget->dev, "obex ttyGS%d disable\n", obex->port_num); in obex_disable() 266 struct usb_composite_dev *cdev = g->func.config->cdev; in obex_connect() local [all …]
|
D | f_rndis.c | 388 struct usb_composite_dev *cdev = rndis->port.func.config->cdev; in rndis_response_available() local 406 DBG(cdev, "notify/0 --> %d\n", status); in rndis_response_available() 413 struct usb_composite_dev *cdev = rndis->port.func.config->cdev; in rndis_response_complete() local 427 DBG(cdev, "RNDIS %s response error %d, %d/%d\n", in rndis_response_complete() 443 DBG(cdev, "notify/1 --> %d\n", status); in rndis_response_complete() 467 struct usb_composite_dev *cdev = f->config->cdev; in rndis_setup() local 468 struct usb_request *req = cdev->req; in rndis_setup() 516 VDBG(cdev, "invalid control req%02x.%02x v%04x i%04x l%d\n", in rndis_setup() 523 DBG(cdev, "rndis req%02x.%02x v%04x i%04x l%d\n", in rndis_setup() 528 value = usb_ep_queue(cdev->gadget->ep0, req, GFP_ATOMIC); in rndis_setup() [all …]
|
D | f_loopback.c | 172 struct usb_composite_dev *cdev = c->cdev; in loopback_bind() local 183 id = usb_string_id(cdev); in loopback_bind() 191 loop->in_ep = usb_ep_autoconfig(cdev->gadget, &fs_loop_source_desc); in loopback_bind() 194 ERROR(cdev, "%s: can't autoconfigure on %s\n", in loopback_bind() 195 f->name, cdev->gadget->name); in loopback_bind() 199 loop->out_ep = usb_ep_autoconfig(cdev->gadget, &fs_loop_sink_desc); in loopback_bind() 218 DBG(cdev, "%s speed %s: IN/%s, OUT/%s\n", in loopback_bind() 219 (gadget_is_superspeed(c->cdev->gadget) ? "super" : in loopback_bind() 220 (gadget_is_dualspeed(c->cdev->gadget) ? "dual" : "full")), in loopback_bind() 242 struct usb_composite_dev *cdev = loop->function.config->cdev; in loopback_complete() local [all …]
|
D | f_ncm.c | 478 struct usb_composite_dev *cdev = ncm->port.func.config->cdev; in ncm_do_notify() local 500 DBG(cdev, "notify connect %s\n", in ncm_do_notify() 513 data[0] = cpu_to_le32(ncm_bitrate(cdev->gadget)); in ncm_do_notify() 516 DBG(cdev, "notify speed %d\n", ncm_bitrate(cdev->gadget)); in ncm_do_notify() 534 DBG(cdev, "notify --> %d\n", status); in ncm_do_notify() 560 struct usb_composite_dev *cdev = ncm->port.func.config->cdev; in ncm_notify_complete() local 566 VDBG(cdev, "Notification %02x sent\n", in ncm_notify_complete() 574 DBG(cdev, "event %02x --> %d\n", in ncm_notify_complete() 589 struct usb_composite_dev *cdev = f->config->cdev; in ncm_ep0out_complete() local 593 DBG(cdev, "Bad control-OUT transfer\n"); in ncm_ep0out_complete() [all …]
|
D | f_uvc.c | 242 INFO(f->config->cdev, "invalid request type\n"); in uvc_function_setup() 266 struct usb_composite_dev *cdev = uvc->func.config->cdev; in uvc_function_setup_continue() local 268 usb_composite_setup_continue(cdev); in uvc_function_setup_continue() 276 INFO(f->config->cdev, "uvc_function_get_alt(%u)\n", interface); in uvc_function_get_alt() 290 struct usb_composite_dev *cdev = f->config->cdev; in uvc_function_set_alt() local 295 INFO(cdev, "uvc_function_set_alt(%u, %u)\n", interface, alt); in uvc_function_set_alt() 301 INFO(cdev, "reset UVC Control\n"); in uvc_function_set_alt() 305 if (config_ep_by_speed(cdev->gadget, f, uvc->control_ep)) in uvc_function_set_alt() 313 uvc_event->speed = cdev->gadget->speed; in uvc_function_set_alt() 352 INFO(cdev, "reset UVC\n"); in uvc_function_set_alt() [all …]
|
D | f_acm.c | 312 struct usb_composite_dev *cdev = acm->port.func.config->cdev; in acm_complete_set_line_coding() local 315 dev_dbg(&cdev->gadget->dev, "acm ttyGS%d completion, err %d\n", in acm_complete_set_line_coding() 322 dev_dbg(&cdev->gadget->dev, "acm ttyGS%d short resp, len %d\n", in acm_complete_set_line_coding() 342 struct usb_composite_dev *cdev = f->config->cdev; in acm_setup() local 343 struct usb_request *req = cdev->req; in acm_setup() 367 cdev->gadget->ep0->driver_data = acm; in acm_setup() 399 dev_vdbg(&cdev->gadget->dev, in acm_setup() 407 dev_dbg(&cdev->gadget->dev, in acm_setup() 413 value = usb_ep_queue(cdev->gadget->ep0, req, GFP_ATOMIC); in acm_setup() 415 ERROR(cdev, "acm response on ttyGS%d, err %d\n", in acm_setup() [all …]
|
D | f_serial.c | 152 struct usb_composite_dev *cdev = f->config->cdev; in gser_set_alt() local 157 dev_dbg(&cdev->gadget->dev, in gser_set_alt() 162 dev_dbg(&cdev->gadget->dev, in gser_set_alt() 164 if (config_ep_by_speed(cdev->gadget, f, gser->port.in) || in gser_set_alt() 165 config_ep_by_speed(cdev->gadget, f, gser->port.out)) { in gser_set_alt() 178 struct usb_composite_dev *cdev = f->config->cdev; in gser_disable() local 180 dev_dbg(&cdev->gadget->dev, in gser_disable() 191 struct usb_composite_dev *cdev = c->cdev; in gser_bind() local 202 status = usb_string_id(c->cdev); in gser_bind() 218 ep = usb_ep_autoconfig(cdev->gadget, &gser_fs_in_desc); in gser_bind() [all …]
|
D | f_sourcesink.c | 312 static void disable_ep(struct usb_composite_dev *cdev, struct usb_ep *ep) in disable_ep() argument 318 DBG(cdev, "disable %s --> %d\n", ep->name, value); in disable_ep() 321 void disable_endpoints(struct usb_composite_dev *cdev, in disable_endpoints() argument 325 disable_ep(cdev, in); in disable_endpoints() 326 disable_ep(cdev, out); in disable_endpoints() 328 disable_ep(cdev, iso_in); in disable_endpoints() 330 disable_ep(cdev, iso_out); in disable_endpoints() 336 struct usb_composite_dev *cdev = c->cdev; in sourcesink_bind() local 349 ss->in_ep = usb_ep_autoconfig(cdev->gadget, &fs_source_desc); in sourcesink_bind() 352 ERROR(cdev, "%s: can't autoconfigure on %s\n", in sourcesink_bind() [all …]
|
D | f_subset.c | 260 struct usb_composite_dev *cdev = f->config->cdev; in geth_set_alt() local 266 DBG(cdev, "reset cdc subset\n"); in geth_set_alt() 270 DBG(cdev, "init + activate cdc subset\n"); in geth_set_alt() 271 if (config_ep_by_speed(cdev->gadget, f, geth->port.in_ep) || in geth_set_alt() 272 config_ep_by_speed(cdev->gadget, f, geth->port.out_ep)) { in geth_set_alt() 285 struct usb_composite_dev *cdev = f->config->cdev; in geth_disable() local 287 DBG(cdev, "net deactivated\n"); in geth_disable() 298 struct usb_composite_dev *cdev = c->cdev; in geth_bind() local 317 gether_set_gadget(gether_opts->net, cdev->gadget); in geth_bind() 325 us = usb_gstrings_attach(cdev, geth_strings, in geth_bind() [all …]
|
D | f_hid.c | 64 struct cdev cdev; member 260 ERROR(hidg->func.config->cdev, in f_hidg_req_complete() 298 ERROR(hidg->func.config->cdev, in f_hidg_write() 313 ERROR(hidg->func.config->cdev, in f_hidg_write() 355 container_of(inode->i_cdev, struct f_hidg, cdev); in f_hidg_open() 394 struct usb_composite_dev *cdev = f->config->cdev; in hidg_setup() local 395 struct usb_request *req = cdev->req; in hidg_setup() 402 VDBG(cdev, in hidg_setup() 409 VDBG(cdev, "get_report\n"); in hidg_setup() 420 VDBG(cdev, "get_protocol\n"); in hidg_setup() [all …]
|
D | f_uac1.c | 324 struct usb_composite_dev *cdev = audio->card.func.config->cdev; in f_audio_out_ep_complete() local 352 ERROR(cdev, "%s queue req: %d\n", ep->name, err); in f_audio_out_ep_complete() 386 struct usb_composite_dev *cdev = f->config->cdev; in audio_set_intf_req() local 387 struct usb_request *req = cdev->req; in audio_set_intf_req() 396 DBG(cdev, "bRequest 0x%x, w_value 0x%04x, len %d, entity %d\n", in audio_set_intf_req() 422 struct usb_composite_dev *cdev = f->config->cdev; in audio_get_intf_req() local 423 struct usb_request *req = cdev->req; in audio_get_intf_req() 433 DBG(cdev, "bRequest 0x%x, w_value 0x%04x, len %d, entity %d\n", in audio_get_intf_req() 459 struct usb_composite_dev *cdev = f->config->cdev; in audio_set_endpoint_req() local 465 DBG(cdev, "bRequest 0x%x, w_value 0x%04x, len %d, endpoint %d\n", in audio_set_endpoint_req() [all …]
|
D | f_midi.c | 250 struct usb_composite_dev *cdev = midi->func.config->cdev; in f_midi_complete() local 270 VDBG(cdev, "%s gone (%d), %d/%d\n", ep->name, status, in f_midi_complete() 282 DBG(cdev, "%s complete --> %d, %d/%d\n", ep->name, in f_midi_complete() 291 ERROR(cdev, "kill %s: resubmit %d bytes --> %d\n", in f_midi_complete() 303 struct usb_composite_dev *cdev = f->config->cdev; in f_midi_start_ep() local 309 ERROR(cdev, "can't configure %s: %d\n", ep->name, err); in f_midi_start_ep() 315 ERROR(cdev, "can't start %s: %d\n", ep->name, err); in f_midi_start_ep() 327 struct usb_composite_dev *cdev = f->config->cdev; in f_midi_set_alt() local 347 ERROR(cdev, "can't configure %s: %d\n", in f_midi_set_alt() 354 ERROR(cdev, "can't start %s: %d\n", in f_midi_set_alt() [all …]
|
D | uvc_v4l2.c | 38 struct usb_composite_dev *cdev = uvc->func.config->cdev; in uvc_send_response() local 42 return usb_ep_set_halt(cdev->gadget->ep0); in uvc_send_response() 49 return usb_ep_queue(cdev->gadget->ep0, req, GFP_KERNEL); in uvc_send_response() 72 struct usb_composite_dev *cdev = uvc->func.config->cdev; in uvc_v4l2_querycap() local 75 strlcpy(cap->card, cdev->gadget->name, sizeof(cap->card)); in uvc_v4l2_querycap() 76 strlcpy(cap->bus_info, dev_name(&cdev->gadget->dev), in uvc_v4l2_querycap()
|
/linux-4.4.14/drivers/staging/nvec/ |
D | nvec_paz00.c | 22 container_of(led_cdev, struct nvec_led, cdev) 29 struct led_classdev cdev; member 43 led->cdev.brightness = value; in nvec_led_brightness_set() 57 led->cdev.max_brightness = NVEC_LED_MAX; in nvec_paz00_probe() 59 led->cdev.brightness_set = nvec_led_brightness_set; in nvec_paz00_probe() 60 led->cdev.name = "paz00-led"; in nvec_paz00_probe() 61 led->cdev.flags |= LED_CORE_SUSPENDRESUME; in nvec_paz00_probe() 66 ret = led_classdev_register(&pdev->dev, &led->cdev); in nvec_paz00_probe() 71 led->cdev.brightness = 0; in nvec_paz00_probe() 80 led_classdev_unregister(&led->cdev); in nvec_paz00_remove()
|
/linux-4.4.14/arch/arm/plat-omap/ |
D | debug-leds.c | 52 struct led_classdev cdev; member 82 static void dbg_led_set(struct led_classdev *cdev, in dbg_led_set() argument 85 struct dbg_led *led = container_of(cdev, struct dbg_led, cdev); in dbg_led_set() 96 static enum led_brightness dbg_led_get(struct led_classdev *cdev) in dbg_led_get() argument 98 struct dbg_led *led = container_of(cdev, struct dbg_led, cdev); in dbg_led_get() 124 led->cdev.name = dbg_leds[i].name; in fpga_probe() 125 led->cdev.brightness_set = dbg_led_set; in fpga_probe() 126 led->cdev.brightness_get = dbg_led_get; in fpga_probe() 127 led->cdev.default_trigger = dbg_leds[i].trigger; in fpga_probe() 130 if (led_classdev_register(NULL, &led->cdev) < 0) { in fpga_probe()
|
/linux-4.4.14/drivers/scsi/cxgbi/cxgb4i/ |
D | cxgb4i.c | 187 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(csk->cdev); in send_act_open_req() 221 csk->cdev->ports[csk->port_id], in send_act_open_req() 246 csk->cdev->ports[csk->port_id], in send_act_open_req() 267 cxgb4_l2t_send(csk->cdev->ports[csk->port_id], skb, csk->l2t); in send_act_open_req() 274 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(csk->cdev); in send_act_open_req6() 319 csk->cdev->ports[csk->port_id], in send_act_open_req6() 342 csk->cdev->ports[csk->port_id], in send_act_open_req6() 354 cxgb4_l2t_send(csk->cdev->ports[csk->port_id], skb, csk->l2t); in send_act_open_req6() 388 cxgb4_ofld_send(csk->cdev->ports[csk->port_id], skb); in abort_arp_failure() 396 if (unlikely(csk->state == CTP_ABORTING) || !skb || !csk->cdev) in send_abort_req() [all …]
|
/linux-4.4.14/drivers/net/wireless/ath/ath10k/ |
D | thermal.c | 27 ath10k_thermal_get_max_throttle_state(struct thermal_cooling_device *cdev, in ath10k_thermal_get_max_throttle_state() argument 36 ath10k_thermal_get_cur_throttle_state(struct thermal_cooling_device *cdev, in ath10k_thermal_get_cur_throttle_state() argument 39 struct ath10k *ar = cdev->devdata; in ath10k_thermal_get_cur_throttle_state() 49 ath10k_thermal_set_cur_throttle_state(struct thermal_cooling_device *cdev, in ath10k_thermal_set_cur_throttle_state() argument 52 struct ath10k *ar = cdev->devdata; in ath10k_thermal_set_cur_throttle_state() 164 struct thermal_cooling_device *cdev; in ath10k_thermal_register() local 168 cdev = thermal_cooling_device_register("ath10k_thermal", ar, in ath10k_thermal_register() 171 if (IS_ERR(cdev)) { in ath10k_thermal_register() 173 PTR_ERR(cdev)); in ath10k_thermal_register() 177 ret = sysfs_create_link(&ar->dev->kobj, &cdev->device.kobj, in ath10k_thermal_register() [all …]
|
/linux-4.4.14/drivers/media/rc/ |
D | lirc_dev.c | 59 struct cdev *cdev; member 174 struct cdev *cdev; in lirc_cdev_add() local 176 cdev = kzalloc(sizeof(*cdev), GFP_KERNEL); in lirc_cdev_add() 177 if (!cdev) in lirc_cdev_add() 181 cdev_init(cdev, d->fops); in lirc_cdev_add() 182 cdev->owner = d->owner; in lirc_cdev_add() 184 cdev_init(cdev, &lirc_dev_fops); in lirc_cdev_add() 185 cdev->owner = THIS_MODULE; in lirc_cdev_add() 187 retval = kobject_set_name(&cdev->kobj, "lirc%d", d->minor); in lirc_cdev_add() 191 retval = cdev_add(cdev, MKDEV(MAJOR(lirc_base_dev), d->minor), 1); in lirc_cdev_add() [all …]
|
/linux-4.4.14/drivers/scsi/pm8001/ |
D | pm8001_ctl.c | 54 static ssize_t pm8001_ctl_mpi_interface_rev_show(struct device *cdev, in pm8001_ctl_mpi_interface_rev_show() argument 57 struct Scsi_Host *shost = class_to_shost(cdev); in pm8001_ctl_mpi_interface_rev_show() 79 static ssize_t pm8001_ctl_fw_version_show(struct device *cdev, in pm8001_ctl_fw_version_show() argument 82 struct Scsi_Host *shost = class_to_shost(cdev); in pm8001_ctl_fw_version_show() 108 static ssize_t pm8001_ctl_max_out_io_show(struct device *cdev, in pm8001_ctl_max_out_io_show() argument 111 struct Scsi_Host *shost = class_to_shost(cdev); in pm8001_ctl_max_out_io_show() 131 static ssize_t pm8001_ctl_max_devices_show(struct device *cdev, in pm8001_ctl_max_devices_show() argument 134 struct Scsi_Host *shost = class_to_shost(cdev); in pm8001_ctl_max_devices_show() 157 static ssize_t pm8001_ctl_max_sg_list_show(struct device *cdev, in pm8001_ctl_max_sg_list_show() argument 160 struct Scsi_Host *shost = class_to_shost(cdev); in pm8001_ctl_max_sg_list_show() [all …]
|
/linux-4.4.14/drivers/staging/rdma/hfi1/ |
D | device.c | 65 struct cdev *cdev, struct device **devp, in hfi1_cdev_init() argument 72 cdev_init(cdev, fops); in hfi1_cdev_init() 73 cdev->owner = THIS_MODULE; in hfi1_cdev_init() 74 kobject_set_name(&cdev->kobj, name); in hfi1_cdev_init() 76 ret = cdev_add(cdev, dev, 1); in hfi1_cdev_init() 94 cdev_del(cdev); in hfi1_cdev_init() 100 void hfi1_cdev_cleanup(struct cdev *cdev, struct device **devp) in hfi1_cdev_cleanup() argument 108 cdev_del(cdev); in hfi1_cdev_cleanup()
|
D | device.h | 55 struct cdev *cdev, struct device **devp, 57 void hfi1_cdev_cleanup(struct cdev *cdev, struct device **devp);
|
/linux-4.4.14/include/linux/ |
D | cdev.h | 12 struct cdev { struct 21 void cdev_init(struct cdev *, const struct file_operations *); argument 23 struct cdev *cdev_alloc(void); 25 void cdev_put(struct cdev *p); 27 int cdev_add(struct cdev *, dev_t, unsigned); 29 void cdev_del(struct cdev *);
|
D | thermal.h | 237 struct thermal_cooling_device *cdev; member 267 struct thermal_cooling_device *cdev); 384 static inline bool cdev_is_power_actor(struct thermal_cooling_device *cdev) in cdev_is_power_actor() argument 386 return cdev->ops->get_requested_power && cdev->ops->state2power && in cdev_is_power_actor() 387 cdev->ops->power2state; in cdev_is_power_actor() 424 static inline bool cdev_is_power_actor(struct thermal_cooling_device *cdev) in cdev_is_power_actor() argument 426 static inline int power_actor_get_max_power(struct thermal_cooling_device *cdev, in power_actor_get_max_power() argument 429 static inline int power_actor_get_min_power(struct thermal_cooling_device *cdev, in power_actor_get_min_power() argument 433 static inline int power_actor_set_power(struct thermal_cooling_device *cdev, in power_actor_set_power() argument 447 struct thermal_cooling_device *cdev, in thermal_zone_bind_cooling_device() argument [all …]
|
D | clock_cooling.h | 43 void clock_cooling_unregister(struct thermal_cooling_device *cdev); 45 unsigned long clock_cooling_get_level(struct thermal_cooling_device *cdev, 54 void clock_cooling_unregister(struct thermal_cooling_device *cdev) in clock_cooling_unregister() argument 58 unsigned long clock_cooling_get_level(struct thermal_cooling_device *cdev, in clock_cooling_get_level() argument
|
/linux-4.4.14/arch/arm/mach-pxa/ |
D | idp.c | 203 struct led_classdev cdev; member 219 static void idp_led_set(struct led_classdev *cdev, in idp_led_set() argument 222 struct idp_led *led = container_of(cdev, in idp_led_set() 223 struct idp_led, cdev); in idp_led_set() 234 static enum led_brightness idp_led_get(struct led_classdev *cdev) in idp_led_get() argument 236 struct idp_led *led = container_of(cdev, in idp_led_get() 237 struct idp_led, cdev); in idp_led_get() 256 led->cdev.name = idp_leds[i].name; in idp_leds_init() 257 led->cdev.brightness_set = idp_led_set; in idp_leds_init() 258 led->cdev.brightness_get = idp_led_get; in idp_leds_init() [all …]
|
D | lubbock.c | 516 struct led_classdev cdev; member 538 static void lubbock_led_set(struct led_classdev *cdev, in lubbock_led_set() argument 541 struct lubbock_led *led = container_of(cdev, in lubbock_led_set() 542 struct lubbock_led, cdev); in lubbock_led_set() 553 static enum led_brightness lubbock_led_get(struct led_classdev *cdev) in lubbock_led_get() argument 555 struct lubbock_led *led = container_of(cdev, in lubbock_led_get() 556 struct lubbock_led, cdev); in lubbock_led_get() 578 led->cdev.name = lubbock_leds[i].name; in lubbock_leds_init() 579 led->cdev.brightness_set = lubbock_led_set; in lubbock_leds_init() 580 led->cdev.brightness_get = lubbock_led_get; in lubbock_leds_init() [all …]
|
D | mainstone.c | 584 struct led_classdev cdev; member 606 static void mainstone_led_set(struct led_classdev *cdev, in mainstone_led_set() argument 609 struct mainstone_led *led = container_of(cdev, in mainstone_led_set() 610 struct mainstone_led, cdev); in mainstone_led_set() 621 static enum led_brightness mainstone_led_get(struct led_classdev *cdev) in mainstone_led_get() argument 623 struct mainstone_led *led = container_of(cdev, in mainstone_led_get() 624 struct mainstone_led, cdev); in mainstone_led_get() 646 led->cdev.name = mainstone_leds[i].name; in mainstone_leds_init() 647 led->cdev.brightness_set = mainstone_led_set; in mainstone_leds_init() 648 led->cdev.brightness_get = mainstone_led_get; in mainstone_leds_init() [all …]
|
/linux-4.4.14/drivers/acpi/ |
D | container.c | 42 static int acpi_container_offline(struct container_dev *cdev) in acpi_container_offline() argument 44 struct acpi_device *adev = ACPI_COMPANION(&cdev->dev); in acpi_container_offline() 63 struct container_dev *cdev; in container_device_attach() local 70 cdev = kzalloc(sizeof(*cdev), GFP_KERNEL); in container_device_attach() 71 if (!cdev) in container_device_attach() 74 cdev->offline = acpi_container_offline; in container_device_attach() 75 dev = &cdev->dev; in container_device_attach()
|
D | fan.c | 80 struct thermal_cooling_device *cdev; member 94 static int fan_get_max_state(struct thermal_cooling_device *cdev, unsigned long in fan_get_max_state() argument 97 struct acpi_device *device = cdev->devdata; in fan_get_max_state() 163 static int fan_get_cur_state(struct thermal_cooling_device *cdev, unsigned long in fan_get_cur_state() argument 166 struct acpi_device *device = cdev->devdata; in fan_get_cur_state() 203 fan_set_cur_state(struct thermal_cooling_device *cdev, unsigned long state) in fan_set_cur_state() argument 205 struct acpi_device *device = cdev->devdata; in fan_set_cur_state() 322 struct thermal_cooling_device *cdev; in acpi_fan_probe() local 352 cdev = thermal_cooling_device_register(name, device, in acpi_fan_probe() 354 if (IS_ERR(cdev)) { in acpi_fan_probe() [all …]
|
D | processor_driver.c | 175 pr->cdev = thermal_cooling_device_register("Processor", device, in acpi_pss_perf_init() 177 if (IS_ERR(pr->cdev)) { in acpi_pss_perf_init() 178 result = PTR_ERR(pr->cdev); in acpi_pss_perf_init() 183 pr->cdev->id); in acpi_pss_perf_init() 186 &pr->cdev->device.kobj, in acpi_pss_perf_init() 194 result = sysfs_create_link(&pr->cdev->device.kobj, in acpi_pss_perf_init() 198 dev_err(&pr->cdev->device, in acpi_pss_perf_init() 208 thermal_cooling_device_unregister(pr->cdev); in acpi_pss_perf_init() 216 if (pr->cdev) { in acpi_pss_perf_exit() 218 sysfs_remove_link(&pr->cdev->device.kobj, "device"); in acpi_pss_perf_exit() [all …]
|
D | processor_thermal.c | 198 processor_get_max_state(struct thermal_cooling_device *cdev, in processor_get_max_state() argument 201 struct acpi_device *device = cdev->devdata; in processor_get_max_state() 216 processor_get_cur_state(struct thermal_cooling_device *cdev, in processor_get_cur_state() argument 219 struct acpi_device *device = cdev->devdata; in processor_get_cur_state() 236 processor_set_cur_state(struct thermal_cooling_device *cdev, in processor_set_cur_state() argument 239 struct acpi_device *device = cdev->devdata; in processor_set_cur_state()
|
/linux-4.4.14/drivers/hwmon/ |
D | pwm-fan.c | 38 struct thermal_cooling_device *cdev; member 118 static int pwm_fan_get_max_state(struct thermal_cooling_device *cdev, in pwm_fan_get_max_state() argument 121 struct pwm_fan_ctx *ctx = cdev->devdata; in pwm_fan_get_max_state() 131 static int pwm_fan_get_cur_state(struct thermal_cooling_device *cdev, in pwm_fan_get_cur_state() argument 134 struct pwm_fan_ctx *ctx = cdev->devdata; in pwm_fan_get_cur_state() 145 pwm_fan_set_cur_state(struct thermal_cooling_device *cdev, unsigned long state) in pwm_fan_set_cur_state() argument 147 struct pwm_fan_ctx *ctx = cdev->devdata; in pwm_fan_set_cur_state() 158 dev_err(&cdev->device, "Cannot set pwm!\n"); in pwm_fan_set_cur_state() 216 struct thermal_cooling_device *cdev; in pwm_fan_probe() local 267 cdev = thermal_of_cooling_device_register(pdev->dev.of_node, in pwm_fan_probe() [all …]
|
D | gpio-fan.c | 43 struct thermal_cooling_device *cdev; member 393 static int gpio_fan_get_max_state(struct thermal_cooling_device *cdev, in gpio_fan_get_max_state() argument 396 struct gpio_fan_data *fan_data = cdev->devdata; in gpio_fan_get_max_state() 405 static int gpio_fan_get_cur_state(struct thermal_cooling_device *cdev, in gpio_fan_get_cur_state() argument 408 struct gpio_fan_data *fan_data = cdev->devdata; in gpio_fan_get_cur_state() 417 static int gpio_fan_set_cur_state(struct thermal_cooling_device *cdev, in gpio_fan_set_cur_state() argument 420 struct gpio_fan_data *fan_data = cdev->devdata; in gpio_fan_set_cur_state() 597 fan_data->cdev = thermal_of_cooling_device_register(pdev->dev.of_node, in gpio_fan_probe() 603 fan_data->cdev = thermal_cooling_device_register("gpio-fan", fan_data, in gpio_fan_probe() 616 if (!IS_ERR(fan_data->cdev)) in gpio_fan_remove() [all …]
|
/linux-4.4.14/drivers/s390/virtio/ |
D | virtio_ccw.c | 56 struct ccw_device *cdev; member 294 spin_lock_irqsave(get_ccwdev_lock(vcdev->cdev), flags); in doing_io() 299 spin_unlock_irqrestore(get_ccwdev_lock(vcdev->cdev), flags); in doing_io() 311 spin_lock_irqsave(get_ccwdev_lock(vcdev->cdev), flags); in ccw_io_helper() 312 ret = ccw_device_start(vcdev->cdev, ccw, intparm, 0, 0); in ccw_io_helper() 318 spin_unlock_irqrestore(get_ccwdev_lock(vcdev->cdev), flags); in ccw_io_helper() 362 dev_info(&vcdev->cdev->dev, in virtio_ccw_drop_indicator() 402 ccw_device_get_schid(vcdev->cdev, &schid); in virtio_ccw_kvm_notify() 507 dev_warn(&vcdev->cdev->dev, "no info\n"); in virtio_ccw_setup_vq() 514 dev_warn(&vcdev->cdev->dev, "no info block\n"); in virtio_ccw_setup_vq() [all …]
|
/linux-4.4.14/drivers/clk/ |
D | clk-vt8500.c | 86 struct clk_device *cdev = to_clk_device(hw); in vt8500_dclk_enable() local 90 spin_lock_irqsave(cdev->lock, flags); in vt8500_dclk_enable() 92 en_val = readl(cdev->en_reg); in vt8500_dclk_enable() 93 en_val |= BIT(cdev->en_bit); in vt8500_dclk_enable() 94 writel(en_val, cdev->en_reg); in vt8500_dclk_enable() 96 spin_unlock_irqrestore(cdev->lock, flags); in vt8500_dclk_enable() 102 struct clk_device *cdev = to_clk_device(hw); in vt8500_dclk_disable() local 106 spin_lock_irqsave(cdev->lock, flags); in vt8500_dclk_disable() 108 en_val = readl(cdev->en_reg); in vt8500_dclk_disable() 109 en_val &= ~BIT(cdev->en_bit); in vt8500_dclk_disable() [all …]
|
/linux-4.4.14/arch/s390/include/asm/ |
D | cmb.h | 7 extern int enable_cmf(struct ccw_device *cdev); 8 extern int disable_cmf(struct ccw_device *cdev); 9 extern int __disable_cmf(struct ccw_device *cdev); 10 extern u64 cmf_read(struct ccw_device *cdev, int index); 11 extern int cmf_readall(struct ccw_device *cdev, struct cmbdata *data);
|
D | ccwdev.h | 167 int ccw_device_is_pathgroup(struct ccw_device *cdev); 168 int ccw_device_is_multipath(struct ccw_device *cdev); 195 int ccw_device_tm_start_key(struct ccw_device *cdev, struct tcw *tcw, 205 int ccw_device_tm_intrg(struct ccw_device *cdev); 207 int ccw_device_get_mdc(struct ccw_device *cdev, u8 mask); 209 extern int ccw_device_set_online(struct ccw_device *cdev); 210 extern int ccw_device_set_offline(struct ccw_device *cdev);
|
D | ccwgroup.h | 28 struct ccw_device *cdev[0]; member 68 extern int ccwgroup_probe_ccwdev(struct ccw_device *cdev); 69 extern void ccwgroup_remove_ccwdev(struct ccw_device *cdev);
|
/linux-4.4.14/include/trace/events/ |
D | thermal.h | 38 TP_PROTO(struct thermal_cooling_device *cdev, unsigned long target), 40 TP_ARGS(cdev, target), 43 __string(type, cdev->type) 48 __assign_str(type, cdev->type); 140 TP_PROTO(struct thermal_cooling_device *cdev, 144 TP_ARGS(cdev, status, freq, dynamic_power, static_power), 147 __string(type, cdev->type ) 155 __assign_str(type, cdev->type); 168 TP_PROTO(struct thermal_cooling_device *cdev, unsigned long freq, 171 TP_ARGS(cdev, freq, cdev_state, power), [all …]
|
/linux-4.4.14/drivers/platform/x86/ |
D | intel_menlow.c | 63 static int memory_get_max_bandwidth(struct thermal_cooling_device *cdev, in memory_get_max_bandwidth() argument 66 struct acpi_device *device = cdev->devdata; in memory_get_max_bandwidth() 89 static int memory_get_cur_bandwidth(struct thermal_cooling_device *cdev, in memory_get_cur_bandwidth() argument 92 struct acpi_device *device = cdev->devdata; in memory_get_cur_bandwidth() 112 static int memory_set_cur_bandwidth(struct thermal_cooling_device *cdev, in memory_set_cur_bandwidth() argument 115 struct acpi_device *device = cdev->devdata; in memory_set_cur_bandwidth() 123 if (memory_get_max_bandwidth(cdev, &max_state)) in memory_set_cur_bandwidth() 157 struct thermal_cooling_device *cdev; in intel_menlow_memory_add() local 168 cdev = thermal_cooling_device_register("Memory controller", device, in intel_menlow_memory_add() 170 if (IS_ERR(cdev)) { in intel_menlow_memory_add() [all …]
|
D | acerhdf.c | 367 struct thermal_cooling_device *cdev) in acerhdf_bind() argument 370 if (cdev != cl_dev) in acerhdf_bind() 373 if (thermal_zone_bind_cooling_device(thermal, 0, cdev, in acerhdf_bind() 383 struct thermal_cooling_device *cdev) in acerhdf_unbind() argument 385 if (cdev != cl_dev) in acerhdf_unbind() 388 if (thermal_zone_unbind_cooling_device(thermal, 0, cdev)) { in acerhdf_unbind() 503 static int acerhdf_get_max_state(struct thermal_cooling_device *cdev, in acerhdf_get_max_state() argument 511 static int acerhdf_get_cur_state(struct thermal_cooling_device *cdev, in acerhdf_get_cur_state() argument 525 static int acerhdf_set_cur_state(struct thermal_cooling_device *cdev, in acerhdf_set_cur_state() argument
|
/linux-4.4.14/drivers/hid/ |
D | hid-corsair.c | 28 struct led_classdev cdev; member 146 struct k90_led *led = container_of(led_cdev, struct k90_led, cdev); in k90_backlight_get() 147 struct device *dev = led->cdev.dev->parent; in k90_backlight_get() 175 struct k90_led *led = container_of(led_cdev, struct k90_led, cdev); in k90_record_led_get() 183 struct k90_led *led = container_of(led_cdev, struct k90_led, cdev); in k90_brightness_set() 200 dev = led->cdev.dev->parent; in k90_backlight_work() 226 dev = led->cdev.dev->parent; in k90_record_led_work() 414 drvdata->backlight->cdev.name = name; in k90_init_backlight() 415 drvdata->backlight->cdev.max_brightness = 3; in k90_init_backlight() 416 drvdata->backlight->cdev.brightness_set = k90_brightness_set; in k90_init_backlight() [all …]
|
/linux-4.4.14/drivers/thermal/int340x_thermal/ |
D | int3403_thermal.c | 47 struct thermal_cooling_device *cdev; member 123 static int int3403_get_max_state(struct thermal_cooling_device *cdev, in int3403_get_max_state() argument 126 struct int3403_priv *priv = cdev->devdata; in int3403_get_max_state() 133 static int int3403_get_cur_state(struct thermal_cooling_device *cdev, in int3403_get_cur_state() argument 136 struct int3403_priv *priv = cdev->devdata; in int3403_get_cur_state() 149 int3403_set_cur_state(struct thermal_cooling_device *cdev, unsigned long state) in int3403_set_cur_state() argument 151 struct int3403_priv *priv = cdev->devdata; in int3403_set_cur_state() 191 obj->cdev = in int3403_cdev_add() 194 if (IS_ERR(obj->cdev)) in int3403_cdev_add() 195 result = PTR_ERR(obj->cdev); in int3403_cdev_add() [all …]
|
/linux-4.4.14/Documentation/devicetree/bindings/thermal/ |
D | db8500-thermal.txt | 14 - tripN-cdev-num : number of the cooling devices which can be bound to trip 17 - tripN-cdev-nameM : name of the No. M cooling device of trip point N; 32 trip0-cdev-num = <1>; 33 trip0-cdev-name0 = "thermal-cpufreq-0"; 37 trip1-cdev-num = <2>; 38 trip1-cdev-name0 = "thermal-cpufreq-0"; 39 trip1-cdev-name1 = "thermal-fan"; 43 trip2-cdev-num = <0>;
|
/linux-4.4.14/drivers/base/ |
D | container.c | 25 struct container_dev *cdev = to_container_dev(dev); in container_offline() local 27 return cdev->offline ? cdev->offline(cdev) : 0; in container_offline()
|
/linux-4.4.14/drivers/bus/ |
D | mips_cdmm.c | 62 struct mips_cdmm_device *cdev = to_mips_cdmm_device(dev); in mips_cdmm_match() local 65 return mips_cdmm_lookup(cdrv->id_table, cdev) != NULL; in mips_cdmm_match() 70 struct mips_cdmm_device *cdev = to_mips_cdmm_device(dev); in mips_cdmm_uevent() local 73 retval = add_uevent_var(env, "CDMM_CPU=%u", cdev->cpu); in mips_cdmm_uevent() 77 retval = add_uevent_var(env, "CDMM_TYPE=0x%02x", cdev->type); in mips_cdmm_uevent() 81 retval = add_uevent_var(env, "CDMM_REV=%u", cdev->rev); in mips_cdmm_uevent() 85 retval = add_uevent_var(env, "MODALIAS=mipscdmm:t%02X", cdev->type); in mips_cdmm_uevent() 193 struct mips_cdmm_device *cdev = to_mips_cdmm_device(dev); \ 197 .dev = cdev, \ 200 _BUILD_RET_##_ret work_on_cpu(cdev->cpu, \ [all …]
|
/linux-4.4.14/drivers/misc/mic/host/ |
D | mic_boot.c | 287 static inline struct mic_device *cosmdev_to_mdev(struct cosm_device *cdev) in cosmdev_to_mdev() argument 289 return dev_get_drvdata(cdev->dev.parent); in cosmdev_to_mdev() 292 static void _mic_reset(struct cosm_device *cdev) in _mic_reset() argument 294 struct mic_device *mdev = cosmdev_to_mdev(cdev); in _mic_reset() 300 static bool _mic_ready(struct cosm_device *cdev) in _mic_ready() argument 302 struct mic_device *mdev = cosmdev_to_mdev(cdev); in _mic_ready() 362 static int _mic_start(struct cosm_device *cdev, int id) in _mic_start() argument 364 struct mic_device *mdev = cosmdev_to_mdev(cdev); in _mic_start() 417 static void _mic_stop(struct cosm_device *cdev, bool force) in _mic_stop() argument 419 struct mic_device *mdev = cosmdev_to_mdev(cdev); in _mic_stop() [all …]
|
/linux-4.4.14/drivers/connector/ |
D | connector.c | 41 static struct cn_dev cdev; variable 81 struct cn_dev *dev = &cdev; in cn_netlink_send_mult() 147 struct cn_dev *dev = &cdev; in cn_call_callback() 213 struct cn_dev *dev = &cdev; in cn_add_callback() 236 struct cn_dev *dev = &cdev; in cn_del_callback() 244 struct cn_queue_dev *dev = cdev.cbdev; in cn_proc_show() 276 static struct cn_dev cdev = { variable 282 struct cn_dev *dev = &cdev; in cn_init() 307 struct cn_dev *dev = &cdev; in cn_fini()
|
/linux-4.4.14/fs/fuse/ |
D | cuse.c | 59 struct cdev *cdev; /* associated character device */ member 314 struct cdev *cdev; in cuse_process_init_reply() local 375 cdev = cdev_alloc(); in cuse_process_init_reply() 376 if (!cdev) in cuse_process_init_reply() 379 cdev->owner = THIS_MODULE; in cuse_process_init_reply() 380 cdev->ops = &cuse_frontend_fops; in cuse_process_init_reply() 382 rc = cdev_add(cdev, devt, 1); in cuse_process_init_reply() 387 cc->cdev = cdev; in cuse_process_init_reply() 402 cdev_del(cdev); in cuse_process_init_reply() 548 if (cc->cdev) { in cuse_channel_release() [all …]
|
/linux-4.4.14/include/linux/usb/ |
D | composite.h | 310 struct usb_composite_dev *cdev; member 381 int (*bind)(struct usb_composite_dev *cdev); 409 extern void usb_composite_setup_continue(struct usb_composite_dev *cdev); 411 struct usb_composite_dev *cdev); 412 extern int composite_os_desc_req_prepare(struct usb_composite_dev *cdev, 414 void composite_dev_cleanup(struct usb_composite_dev *cdev); 506 extern struct usb_string *usb_gstrings_attach(struct usb_composite_dev *cdev, 553 void usb_composite_overwrite_options(struct usb_composite_dev *cdev, 589 struct usb_configuration *usb_get_config(struct usb_composite_dev *cdev, 591 int usb_add_config_only(struct usb_composite_dev *cdev,
|
/linux-4.4.14/drivers/s390/net/ |
D | ctcm_main.c | 276 static long ctcm_check_irb_error(struct ccw_device *cdev, struct irb *irb) in ctcm_check_irb_error() argument 283 PTR_ERR(irb), dev_name(&cdev->dev)); in ctcm_check_irb_error() 287 dev_err(&cdev->dev, in ctcm_check_irb_error() 291 dev_err(&cdev->dev, in ctcm_check_irb_error() 295 dev_err(&cdev->dev, in ctcm_check_irb_error() 569 spin_lock_irqsave(get_ccwdev_lock(ch->cdev), saveflags); in ctcm_transmit_skb() 571 rc = ccw_device_start(ch->cdev, &ch->ccw[ccw_idx], in ctcm_transmit_skb() 573 spin_unlock_irqrestore(get_ccwdev_lock(ch->cdev), saveflags); in ctcm_transmit_skb() 833 spin_lock_irqsave(get_ccwdev_lock(ch->cdev), saveflags); in ctcmpc_transmit_skb() 835 rc = ccw_device_start(ch->cdev, &ch->ccw[ccw_idx], in ctcmpc_transmit_skb() [all …]
|
/linux-4.4.14/drivers/net/ethernet/qlogic/qede/ |
D | qede_main.c | 129 edev->ops->common->set_id(edev->cdev, edev->ndev->name, in qede_netdev_event() 871 edev->cdev, fp->rss_id, in qede_rx_int() 1056 return edev->ops->filter_config(edev->cdev, &filter_cmd); in qede_set_ucast_rx_mac() 1063 edev->ops->get_vport_stats(edev->cdev, &stats); in qede_fill_by_demand_stats() 1187 static struct qede_dev *qede_alloc_etherdev(struct qed_dev *cdev, in qede_alloc_etherdev() argument 1206 edev->cdev = cdev; in qede_alloc_etherdev() 1360 static void qede_update_pf_params(struct qed_dev *cdev) in qede_update_pf_params() argument 1367 qed_ops->common->update_pf_params(cdev, &pf_params); in qede_update_pf_params() 1380 struct qed_dev *cdev; in __qede_probe() local 1386 cdev = qed_ops->common->probe(pdev, QED_PROTOCOL_ETH, in __qede_probe() [all …]
|
/linux-4.4.14/arch/arm/mach-sa1100/ |
D | assabet.c | 670 struct led_classdev cdev; member 691 static void assabet_led_set(struct led_classdev *cdev, in assabet_led_set() argument 694 struct assabet_led *led = container_of(cdev, in assabet_led_set() 695 struct assabet_led, cdev); in assabet_led_set() 703 static enum led_brightness assabet_led_get(struct led_classdev *cdev) in assabet_led_get() argument 705 struct assabet_led *led = container_of(cdev, in assabet_led_get() 706 struct assabet_led, cdev); in assabet_led_get() 725 led->cdev.name = assabet_leds[i].name; in assabet_leds_init() 726 led->cdev.brightness_set = assabet_led_set; in assabet_leds_init() 727 led->cdev.brightness_get = assabet_led_get; in assabet_leds_init() [all …]
|
/linux-4.4.14/arch/arm/mach-davinci/ |
D | board-dm365-evm.c | 557 struct led_classdev cdev; member 575 static void cpld_led_set(struct led_classdev *cdev, enum led_brightness b) in cpld_led_set() argument 577 struct cpld_led *led = container_of(cdev, struct cpld_led, cdev); in cpld_led_set() 587 static enum led_brightness cpld_led_get(struct led_classdev *cdev) in cpld_led_get() argument 589 struct cpld_led *led = container_of(cdev, struct cpld_led, cdev); in cpld_led_get() 611 led->cdev.name = cpld_leds[i].name; in cpld_leds_init() 612 led->cdev.brightness_set = cpld_led_set; in cpld_leds_init() 613 led->cdev.brightness_get = cpld_led_get; in cpld_leds_init() 614 led->cdev.default_trigger = cpld_leds[i].trigger; in cpld_leds_init() 617 if (led_classdev_register(NULL, &led->cdev) < 0) { in cpld_leds_init()
|
/linux-4.4.14/drivers/scsi/mpt3sas/ |
D | mpt3sas_ctl.c | 2413 _ctl_version_fw_show(struct device *cdev, struct device_attribute *attr, in _ctl_version_fw_show() argument 2416 struct Scsi_Host *shost = class_to_shost(cdev); in _ctl_version_fw_show() 2435 _ctl_version_bios_show(struct device *cdev, struct device_attribute *attr, in _ctl_version_bios_show() argument 2438 struct Scsi_Host *shost = class_to_shost(cdev); in _ctl_version_bios_show() 2459 _ctl_version_mpi_show(struct device *cdev, struct device_attribute *attr, in _ctl_version_mpi_show() argument 2462 struct Scsi_Host *shost = class_to_shost(cdev); in _ctl_version_mpi_show() 2478 _ctl_version_product_show(struct device *cdev, struct device_attribute *attr, in _ctl_version_product_show() argument 2481 struct Scsi_Host *shost = class_to_shost(cdev); in _ctl_version_product_show() 2496 _ctl_version_nvdata_persistent_show(struct device *cdev, in _ctl_version_nvdata_persistent_show() argument 2499 struct Scsi_Host *shost = class_to_shost(cdev); in _ctl_version_nvdata_persistent_show() [all …]
|
/linux-4.4.14/drivers/input/keyboard/ |
D | cap11xx.c | 77 struct led_classdev cdev; member 250 static void cap11xx_led_set(struct led_classdev *cdev, in cap11xx_led_set() argument 253 struct cap11xx_led *led = container_of(cdev, struct cap11xx_led, cdev); in cap11xx_led_set() 297 led->cdev.name = in cap11xx_init_leds() 299 led->cdev.default_trigger = in cap11xx_init_leds() 301 led->cdev.flags = 0; in cap11xx_init_leds() 302 led->cdev.brightness_set = cap11xx_led_set; in cap11xx_init_leds() 303 led->cdev.max_brightness = 1; in cap11xx_init_leds() 304 led->cdev.brightness = LED_OFF; in cap11xx_init_leds() 315 error = devm_led_classdev_register(dev, &led->cdev); in cap11xx_init_leds()
|
D | qt2160.c | 60 struct led_classdev cdev; member 119 static void qt2160_led_set(struct led_classdev *cdev, in qt2160_led_set() argument 122 struct qt2160_led *led = container_of(cdev, struct qt2160_led, cdev); in qt2160_led_set() 302 led->cdev.name = led->name; in qt2160_register_leds() 303 led->cdev.brightness_set = qt2160_led_set; in qt2160_register_leds() 304 led->cdev.brightness = LED_OFF; in qt2160_register_leds() 310 ret = led_classdev_register(&client->dev, &led->cdev); in qt2160_register_leds() 328 led_classdev_unregister(&qt2160->leds[i].cdev); in qt2160_unregister_leds()
|
/linux-4.4.14/drivers/scsi/ |
D | raid_class.c | 81 struct device *cdev) in raid_setup() argument 85 BUG_ON(dev_get_drvdata(cdev)); in raid_setup() 92 dev_set_drvdata(cdev, rd); in raid_setup() 98 struct device *cdev) in raid_remove() argument 100 struct raid_data *rd = dev_get_drvdata(cdev); in raid_remove() 103 dev_set_drvdata(cdev, NULL); in raid_remove() 226 struct device *cdev = in raid_component_add() local 230 struct raid_data *rd = dev_get_drvdata(cdev); in raid_component_add()
|
D | scsi_transport_spi.c | 183 struct device *cdev) in spi_host_setup() argument 194 struct device *cdev); 220 struct device *cdev); 224 struct device *cdev) in spi_device_configure() argument 251 struct device *cdev) in spi_setup_transport_attrs() argument 507 store_spi_transport_period(struct device *cdev, struct device_attribute *attr, in store_spi_transport_period() argument 510 struct scsi_target *starget = transport_class_to_starget(cdev); in store_spi_transport_period() 520 retval = store_spi_transport_period_helper(cdev, buf, count, &period); in store_spi_transport_period() 535 show_spi_transport_min_period(struct device *cdev, in show_spi_transport_min_period() argument 538 struct scsi_target *starget = transport_class_to_starget(cdev); in show_spi_transport_min_period() [all …]
|
/linux-4.4.14/drivers/char/tpm/ |
D | tpm-chip.c | 135 cdev_init(&chip->cdev, &tpm_fops); in tpmm_chip_alloc() 136 chip->cdev.owner = chip->pdev->driver->owner; in tpmm_chip_alloc() 137 chip->cdev.kobj.parent = &chip->dev.kobj; in tpmm_chip_alloc() 149 rc = cdev_add(&chip->cdev, chip->dev.devt, 1); in tpm_add_char_device() 166 cdev_del(&chip->cdev); in tpm_add_char_device() 175 cdev_del(&chip->cdev); in tpm_del_char_device()
|
/linux-4.4.14/drivers/platform/chrome/ |
D | cros_ec_dev.c | 94 struct cros_ec_dev, cdev); in ec_device_open() 236 cdev_init(&ec->cdev, &fops); in ec_device_probe() 243 ec->cdev.kobj.parent = &ec->class_dev.kobj; in ec_device_probe() 244 retval = cdev_add(&ec->cdev, devno, 1); in ec_device_probe() 255 ec->class_dev.devt = ec->cdev.dev; in ec_device_probe() 277 cdev_del(&ec->cdev); in ec_device_probe() 286 cdev_del(&ec->cdev); in ec_device_remove()
|
/linux-4.4.14/drivers/scsi/osd/ |
D | osd_uld.c | 86 struct cdev cdev; member 143 struct osd_uld_device, cdev); in osd_uld_open() 402 if (oud->cdev.owner) in __remove() 403 cdev_del(&oud->cdev); in __remove() 477 cdev_init(&oud->cdev, &osd_fops); in osd_probe() 478 oud->cdev.owner = THIS_MODULE; in osd_probe() 479 error = cdev_add(&oud->cdev, in osd_probe() 487 oud->class_dev.devt = oud->cdev.dev; in osd_probe() 509 cdev_del(&oud->cdev); in osd_probe()
|
/linux-4.4.14/drivers/staging/most/aim-cdev/ |
D | cdev.c | 35 struct cdev cdev; member 50 #define to_channel(d) container_of(d, struct aim_channel, cdev) 127 cdev_del(&channel->cdev); in aim_close() 337 cdev_del(&channel->cdev); in aim_disconnect_channel() 446 cdev_init(&channel->cdev, &channel_fops); in aim_probe() 447 channel->cdev.owner = THIS_MODULE; in aim_probe() 448 cdev_add(&channel->cdev, channel->devno, 1); in aim_probe() 483 cdev_del(&channel->cdev); in aim_probe() 537 cdev_del(&channel->cdev); in mod_exit()
|
/linux-4.4.14/arch/mips/sni/ |
D | setup.c | 62 char *cdev; in sni_console_setup() local 67 cdev = prom_getenv("console_dev"); in sni_console_setup() 68 if (strncmp(cdev, "tty", 3) == 0) { in sni_console_setup() 83 if (strncmp(cdev, "tty552", 6) == 0) in sni_console_setup()
|
/linux-4.4.14/drivers/cpufreq/ |
D | cpufreq-dt.c | 35 struct thermal_cooling_device *cdev; member 121 static int allocate_resources(int cpu, struct device **cdev, in allocate_resources() argument 183 *cdev = cpu_dev; in allocate_resources() 386 cpufreq_cooling_unregister(priv->cdev); in cpufreq_exit() 410 priv->cdev = of_cpufreq_cooling_register(np, in cpufreq_ready() 412 if (IS_ERR(priv->cdev)) { in cpufreq_ready() 415 PTR_ERR(priv->cdev)); in cpufreq_ready() 417 priv->cdev = NULL; in cpufreq_ready()
|
D | arm_big_little.c | 325 struct device *cdev = get_cpu_device(i); in put_cluster_clk_and_freq_table() local 326 if (!cdev) { in put_cluster_clk_and_freq_table() 331 _put_cluster_clk_and_freq_table(cdev); in put_cluster_clk_and_freq_table() 402 struct device *cdev = get_cpu_device(i); in get_cluster_clk_and_freq_table() local 403 if (!cdev) { in get_cluster_clk_and_freq_table() 408 ret = _get_cluster_clk_and_freq_table(cdev); in get_cluster_clk_and_freq_table() 428 struct device *cdev = get_cpu_device(i); in get_cluster_clk_and_freq_table() local 429 if (!cdev) { in get_cluster_clk_and_freq_table() 434 _put_cluster_clk_and_freq_table(cdev); in get_cluster_clk_and_freq_table()
|
/linux-4.4.14/drivers/media/ |
D | media-devnode.c | 67 cdev_del(&mdev->cdev); in media_devnode_release() 167 mdev = container_of(inode->i_cdev, struct media_devnode, cdev); in media_open() 255 cdev_init(&mdev->cdev, &media_devnode_fops); in media_devnode_register() 256 mdev->cdev.owner = owner; in media_devnode_register() 258 ret = cdev_add(&mdev->cdev, MKDEV(MAJOR(media_dev_t), mdev->minor), 1); in media_devnode_register() 283 cdev_del(&mdev->cdev); in media_devnode_register()
|
/linux-4.4.14/drivers/pps/ |
D | pps.c | 248 struct pps_device, cdev); in pps_cdev_open() 257 struct pps_device, cdev); in pps_cdev_release() 280 cdev_del(&pps->cdev); in pps_device_destruct() 316 cdev_init(&pps->cdev, &pps_cdev_fops); in pps_register_cdev() 317 pps->cdev.owner = pps->info.owner; in pps_register_cdev() 319 err = cdev_add(&pps->cdev, devt, 1); in pps_register_cdev() 341 cdev_del(&pps->cdev); in pps_register_cdev()
|
/linux-4.4.14/drivers/gpio/ |
D | gpiolib-sysfs.c | 573 if (!chip || !chip->cdev) { in gpiod_export() 651 struct device *cdev; in gpiod_export_link() local 659 cdev = class_find_device(&gpio_class, NULL, desc, match_export); in gpiod_export_link() 660 if (!cdev) in gpiod_export_link() 663 ret = sysfs_create_link(&dev->kobj, &cdev->kobj, name); in gpiod_export_link() 664 put_device(cdev); in gpiod_export_link() 740 chip->cdev = dev; in gpiochip_sysfs_register() 751 if (!chip->cdev) in gpiochip_sysfs_unregister() 754 device_unregister(chip->cdev); in gpiochip_sysfs_unregister() 758 chip->cdev = NULL; in gpiochip_sysfs_unregister() [all …]
|
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb3/ |
D | l2t.h | 103 #define L2DATA(cdev) (rcu_dereference((cdev)->l2opt)) argument 112 struct l2t_entry *t3_l2t_get(struct t3cdev *cdev, struct dst_entry *dst,
|
/linux-4.4.14/drivers/thermal/ti-soc-thermal/ |
D | ti-thermal-common.c | 131 struct thermal_cooling_device *cdev) in ti_thermal_bind() argument 140 if (data->cool_dev != cdev) in ti_thermal_bind() 146 return thermal_zone_bind_cooling_device(thermal, 0, cdev, in ti_thermal_bind() 155 struct thermal_cooling_device *cdev) in ti_thermal_unbind() argument 163 if (data->cool_dev != cdev) in ti_thermal_unbind() 167 return thermal_zone_unbind_cooling_device(thermal, 0, cdev); in ti_thermal_unbind()
|
/linux-4.4.14/arch/mips/txx9/rbtx4939/ |
D | setup.c | 192 struct led_classdev cdev; member 202 container_of(led_cdev, struct rbtx4939_led_data, cdev); in rbtx4939_led_brightness_set() 231 led_dat->cdev.brightness_set = rbtx4939_led_brightness_set; in rbtx4939_led_probe() 233 led_dat->cdev.name = led_dat->name; in rbtx4939_led_probe() 235 led_dat->cdev.default_trigger = default_triggers[i]; in rbtx4939_led_probe() 236 rc = led_classdev_register(&pdev->dev, &led_dat->cdev); in rbtx4939_led_probe() 239 led_dat->cdev.brightness_set(&led_dat->cdev, 0); in rbtx4939_led_probe()
|
/linux-4.4.14/drivers/mtd/ubi/ |
D | vmt.c | 269 cdev_init(&vol->cdev, &ubi_vol_cdev_operations); in ubi_create_volume() 270 vol->cdev.owner = THIS_MODULE; in ubi_create_volume() 271 dev = MKDEV(MAJOR(ubi->cdev.dev), vol_id + 1); in ubi_create_volume() 272 err = cdev_add(&vol->cdev, dev, 1); in ubi_create_volume() 329 cdev_del(&vol->cdev); in ubi_create_volume() 394 cdev_del(&vol->cdev); in ubi_remove_volume() 595 cdev_init(&vol->cdev, &ubi_vol_cdev_operations); in ubi_add_volume() 596 vol->cdev.owner = THIS_MODULE; in ubi_add_volume() 597 dev = MKDEV(MAJOR(ubi->cdev.dev), vol->vol_id + 1); in ubi_add_volume() 598 err = cdev_add(&vol->cdev, dev, 1); in ubi_add_volume() [all …]
|