/drivers/net/can/ |
D | janz-ican3.c | 269 static inline void ican3_set_page(struct ican3_dev *mod, unsigned int page) in ican3_set_page() argument 272 iowrite8(page, &mod->dpmctrl->window_address); in ican3_set_page() 286 static int ican3_old_recv_msg(struct ican3_dev *mod, struct ican3_msg *msg) in ican3_old_recv_msg() argument 292 ican3_set_page(mod, QUEUE_OLD_CONTROL); in ican3_old_recv_msg() 293 peer = ioread8(mod->dpm + MSYNC_PEER); in ican3_old_recv_msg() 294 locl = ioread8(mod->dpm + MSYNC_LOCL); in ican3_old_recv_msg() 298 dev_dbg(mod->dev, "no mbox for reading\n"); in ican3_old_recv_msg() 310 ican3_set_page(mod, mbox_page); in ican3_old_recv_msg() 311 memcpy_fromio(msg, mod->dpm, sizeof(*msg)); in ican3_old_recv_msg() 319 ican3_set_page(mod, QUEUE_OLD_CONTROL); in ican3_old_recv_msg() [all …]
|
/drivers/gpio/ |
D | gpio-janz-ttl.c | 62 struct ttl_module *mod = dev_get_drvdata(gpio->dev); in ttl_get_value() local 67 shadow = &mod->porta_shadow; in ttl_get_value() 69 shadow = &mod->portb_shadow; in ttl_get_value() 72 shadow = &mod->portc_shadow; in ttl_get_value() 76 spin_lock(&mod->lock); in ttl_get_value() 78 spin_unlock(&mod->lock); in ttl_get_value() 84 struct ttl_module *mod = dev_get_drvdata(gpio->dev); in ttl_set_value() local 89 port = &mod->regs->porta; in ttl_set_value() 90 shadow = &mod->porta_shadow; in ttl_set_value() 92 port = &mod->regs->portb; in ttl_set_value() [all …]
|
/drivers/usb/renesas_usbhs/ |
D | mod.c | 75 void usbhs_mod_register(struct usbhs_priv *priv, struct usbhs_mod *mod, int id) in usbhs_mod_register() argument 79 info->mod[id] = mod; in usbhs_mod_register() 80 mod->priv = priv; in usbhs_mod_register() 91 ret = info->mod[id]; in usbhs_mod_get() 100 struct usbhs_mod *mod = usbhs_mod_get_current(priv); in usbhs_mod_is_host() local 103 if (!mod) in usbhs_mod_is_host() 106 return info->mod[USBHS_HOST] == mod; in usbhs_mod_is_host() 119 struct usbhs_mod *mod = NULL; in usbhs_mod_change() local 126 mod = info->mod[id]; in usbhs_mod_change() 131 info->curt = mod; in usbhs_mod_change() [all …]
|
D | mod.h | 90 struct usbhs_mod *mod[USBHS_MAX]; member 129 void usbhs_irq_callback_update(struct usbhs_priv *priv, struct usbhs_mod *mod); 134 struct usbhs_mod *mod; \ 135 mod = usbhs_mod_get_current(priv); \ 136 !mod ? -ENODEV : \ 137 !mod->func ? 0 : \ 138 mod->func(param); \
|
D | mod_host.c | 94 struct usbhs_mod mod; member 111 container_of(usbhs_mod_get(priv, USBHS_HOST), struct usbhsh_hpriv, mod) 127 #define usbhsh_hpriv_to_priv(h) ((h)->mod.priv) 206 return (hpriv->mod.irq_attch == NULL); in usbhsh_is_running() 1345 hpriv->mod.irq_attch = NULL; in usbhsh_irq_attch() 1346 usbhs_irq_callback_update(priv, &hpriv->mod); in usbhsh_irq_attch() 1371 hpriv->mod.irq_attch = usbhsh_irq_attch; in usbhsh_irq_dtch() 1372 usbhs_irq_callback_update(priv, &hpriv->mod); in usbhsh_irq_dtch() 1464 struct usbhs_mod *mod = usbhs_mod_get_current(priv); in usbhsh_start() local 1492 mod->irq_attch = usbhsh_irq_attch; in usbhsh_start() [all …]
|
D | mod_gadget.c | 47 struct usbhs_mod mod; member 77 struct usbhsg_gpriv, mod) 97 #define usbhsg_gpriv_to_dev(gp) usbhs_priv_to_dev((gp)->mod.priv) 98 #define usbhsg_gpriv_to_priv(gp) ((gp)->mod.priv) 730 struct usbhs_mod *mod = usbhs_mod_get_current(priv); in usbhsg_try_start() local 777 mod->irq_dev_state = usbhsg_irq_dev_state; in usbhsg_try_start() 778 mod->irq_ctrl_stage = usbhsg_irq_ctrl_stage; in usbhsg_try_start() 779 usbhs_irq_callback_update(priv, mod); in usbhsg_try_start() 787 struct usbhs_mod *mod = usbhs_mod_get_current(priv); in usbhsg_try_stop() local 813 mod->irq_dev_state = NULL; in usbhsg_try_stop() [all …]
|
D | fifo.c | 199 struct usbhs_mod *mod = usbhs_mod_get_current(priv); \ 201 if (!mod) \ 204 mod->status |= status; \ 206 mod->status &= ~status; \ 207 usbhs_irq_callback_update(priv, mod); \ 1116 struct usbhs_mod *mod = usbhs_mod_get_current(priv); in usbhs_fifo_init() local 1121 mod->irq_empty = usbhsf_irq_empty; in usbhs_fifo_init() 1122 mod->irq_ready = usbhsf_irq_ready; in usbhs_fifo_init() 1123 mod->irq_bempsts = 0; in usbhs_fifo_init() 1124 mod->irq_brdysts = 0; in usbhs_fifo_init() [all …]
|
D | common.c | 335 struct usbhs_mod *mod = usbhs_mod_get_current(priv); in usbhsc_hotplug() local 350 if (enable && !mod) { in usbhsc_hotplug() 368 } else if (!enable && mod) { in usbhsc_hotplug() 585 struct usbhs_mod *mod = usbhs_mod_get_current(priv); in usbhsc_suspend() local 587 if (mod) { in usbhsc_suspend() 592 if (mod || !usbhsc_flags_has(priv, USBHSF_RUNTIME_PWCTRL)) in usbhsc_suspend()
|
/drivers/gpu/drm/tilcdc/ |
D | tilcdc_tfp410.c | 53 struct tfp410_module *mod; member 75 gpio_direction_output(tfp410_encoder->mod->gpio, 1); in tfp410_encoder_dpms() 78 gpio_direction_output(tfp410_encoder->mod->gpio, 0); in tfp410_encoder_dpms() 123 struct tfp410_module *mod) in tfp410_encoder_create() argument 136 tfp410_encoder->mod = mod; in tfp410_encoder_create() 163 struct tfp410_module *mod; member 181 if (drm_probe_ddc(tfp410_connector->mod->i2c)) in tfp410_connector_detect() 193 edid = drm_get_edid(connector, tfp410_connector->mod->i2c); in tfp410_connector_get_modes() 234 struct tfp410_module *mod, struct drm_encoder *encoder) in tfp410_connector_create() argument 247 tfp410_connector->mod = mod; in tfp410_connector_create() [all …]
|
D | tilcdc_panel.c | 42 struct panel_module *mod; member 57 struct backlight_device *backlight = panel_encoder->mod->backlight; in panel_encoder_dpms() 79 tilcdc_crtc_set_panel_info(encoder->crtc, panel_encoder->mod->info); in panel_encoder_prepare() 107 struct panel_module *mod) in panel_encoder_create() argument 119 panel_encoder->mod = mod; in panel_encoder_create() 146 struct panel_module *mod; member 169 struct display_timings *timings = panel_connector->mod->timings; in panel_connector_get_modes() 222 struct panel_module *mod, struct drm_encoder *encoder) in panel_connector_create() argument 235 panel_connector->mod = mod; in panel_connector_create() 263 static int panel_modeset_init(struct tilcdc_module *mod, struct drm_device *dev) in panel_modeset_init() argument [all …]
|
D | tilcdc_slave.c | 51 struct slave_module *mod; member 95 struct slave_module *mod) in slave_encoder_create() argument 107 slave_encoder->mod = mod; in slave_encoder_create() 119 ret = drm_i2c_encoder_init(dev, to_encoder_slave(encoder), mod->i2c, &info); in slave_encoder_create() 138 struct slave_module *mod; member 207 struct slave_module *mod, struct drm_encoder *encoder) in slave_connector_create() argument 220 slave_connector->mod = mod; in slave_connector_create() 253 static int slave_modeset_init(struct tilcdc_module *mod, struct drm_device *dev) in slave_modeset_init() argument 255 struct slave_module *slave_mod = to_slave_module(mod); in slave_modeset_init() 274 static void slave_destroy(struct tilcdc_module *mod) in slave_destroy() argument [all …]
|
D | tilcdc_drv.c | 30 void tilcdc_module_init(struct tilcdc_module *mod, const char *name, in tilcdc_module_init() argument 33 mod->name = name; in tilcdc_module_init() 34 mod->funcs = funcs; in tilcdc_module_init() 35 INIT_LIST_HEAD(&mod->list); in tilcdc_module_init() 36 list_add(&mod->list, &module_list); in tilcdc_module_init() 39 void tilcdc_module_cleanup(struct tilcdc_module *mod) in tilcdc_module_cleanup() argument 41 list_del(&mod->list); in tilcdc_module_cleanup() 67 struct tilcdc_module *mod; in modeset_init() local 73 list_for_each_entry(mod, &module_list, list) { in modeset_init() 74 DBG("loading module: %s", mod->name); in modeset_init() [all …]
|
D | tilcdc_drv.h | 78 int (*modeset_init)(struct tilcdc_module *mod, struct drm_device *dev); 79 void (*destroy)(struct tilcdc_module *mod); 82 int (*debugfs_init)(struct tilcdc_module *mod, struct drm_minor *minor); 84 void (*debugfs_cleanup)(struct tilcdc_module *mod, struct drm_minor *minor); 94 void tilcdc_module_init(struct tilcdc_module *mod, const char *name, 96 void tilcdc_module_cleanup(struct tilcdc_module *mod);
|
/drivers/scsi/bfa/ |
D | bfa_svc.c | 444 claim_fcxps_mem(struct bfa_fcxp_mod_s *mod) in claim_fcxps_mem() argument 449 fcxp = (struct bfa_fcxp_s *) bfa_mem_kva_curp(mod); in claim_fcxps_mem() 450 memset(fcxp, 0, sizeof(struct bfa_fcxp_s) * mod->num_fcxps); in claim_fcxps_mem() 452 INIT_LIST_HEAD(&mod->fcxp_req_free_q); in claim_fcxps_mem() 453 INIT_LIST_HEAD(&mod->fcxp_rsp_free_q); in claim_fcxps_mem() 454 INIT_LIST_HEAD(&mod->fcxp_active_q); in claim_fcxps_mem() 455 INIT_LIST_HEAD(&mod->fcxp_req_unused_q); in claim_fcxps_mem() 456 INIT_LIST_HEAD(&mod->fcxp_rsp_unused_q); in claim_fcxps_mem() 458 mod->fcxp_list = fcxp; in claim_fcxps_mem() 460 for (i = 0; i < mod->num_fcxps; i++) { in claim_fcxps_mem() [all …]
|
D | bfa_fcs.c | 74 struct bfa_fcs_mod_s *mod; in bfa_fcs_attach() local 85 mod = &fcs_modules[i]; in bfa_fcs_attach() 86 if (mod->attach) in bfa_fcs_attach() 87 mod->attach(fcs); in bfa_fcs_attach() 98 struct bfa_fcs_mod_s *mod; in bfa_fcs_init() local 101 mod = &fcs_modules[i]; in bfa_fcs_init() 102 if (mod->modinit) in bfa_fcs_init() 103 mod->modinit(fcs); in bfa_fcs_init() 182 struct bfa_fcs_mod_s *mod; in bfa_fcs_exit() local 191 mod = &fcs_modules[i]; in bfa_fcs_exit() [all …]
|
/drivers/usb/gadget/ |
D | functions.c | 23 if (!try_module_get(fd->mod)) { in try_get_usb_function_instance() 29 module_put(fd->mod); in try_get_usb_function_instance() 70 struct module *mod; in usb_put_function_instance() local 75 mod = fi->fd->mod; in usb_put_function_instance() 77 module_put(mod); in usb_put_function_instance()
|
/drivers/staging/iio/Documentation/ |
D | iio_event_monitor.c | 82 enum iio_modifier mod = IIO_EVENT_CODE_EXTRACT_MODIFIER(event->id); in event_is_known() local 108 switch (mod) { in event_is_known() 152 enum iio_modifier mod = IIO_EVENT_CODE_EXTRACT_MODIFIER(event->id); in print_event() local 167 if (mod != IIO_NO_MOD) { in print_event() 170 iio_modifier_names[mod]); in print_event()
|
/drivers/iio/imu/ |
D | adis16400_core.c | 506 #define ADIS16400_GYRO_CHAN(mod, addr, bits) { \ argument 509 .channel2 = IIO_MOD_ ## mod, \ 515 .scan_index = ADIS16400_SCAN_GYRO_ ## mod, \ 525 #define ADIS16400_ACCEL_CHAN(mod, addr, bits) { \ argument 528 .channel2 = IIO_MOD_ ## mod, \ 534 .scan_index = ADIS16400_SCAN_ACC_ ## mod, \ 544 #define ADIS16400_MAGN_CHAN(mod, addr, bits) { \ argument 547 .channel2 = IIO_MOD_ ## mod, \ 552 .scan_index = ADIS16400_SCAN_MAGN_ ## mod, \ 566 #define ADIS16400_MOD_TEMP_CHAN(mod, addr, bits) { \ argument [all …]
|
/drivers/md/ |
D | Makefile | 5 dm-mod-y += dm.o dm-table.o dm-target.o dm-linear.o dm-stripe.o \ 18 md-mod-y += md.o bitmap.o 34 obj-$(CONFIG_BLK_DEV_MD) += md-mod.o 35 obj-$(CONFIG_BLK_DEV_DM) += dm-mod.o 58 dm-mod-objs += dm-uevent.o
|
/drivers/media/radio/wl128x/ |
D | fmdrv_v4l2.c | 429 struct v4l2_modulator *mod) in fm_v4l2_vidioc_g_modulator() argument 433 if (mod->index != 0) in fm_v4l2_vidioc_g_modulator() 439 mod->txsubchans = ((fmdev->tx_data.aud_mode == FM_STEREO_MODE) ? in fm_v4l2_vidioc_g_modulator() 444 mod->capability = V4L2_TUNER_CAP_STEREO | V4L2_TUNER_CAP_RDS | in fm_v4l2_vidioc_g_modulator() 452 const struct v4l2_modulator *mod) in fm_v4l2_vidioc_s_modulator() argument 459 if (mod->index != 0) in fm_v4l2_vidioc_s_modulator() 470 aud_mode = (mod->txsubchans & V4L2_TUNER_SUB_STEREO) ? in fm_v4l2_vidioc_s_modulator() 472 rds_mode = (mod->txsubchans & V4L2_TUNER_SUB_RDS) ? in fm_v4l2_vidioc_s_modulator()
|
/drivers/base/ |
D | module.c | 33 void module_add_driver(struct module *mod, struct device_driver *drv) in module_add_driver() argument 42 if (mod) in module_add_driver() 43 mk = &mod->mkobj; in module_add_driver()
|
/drivers/gpu/drm/nouveau/core/engine/graph/ |
D | ctx.h | 76 _cp_bra(struct nouveau_grctx *ctx, u32 mod, int flag, int state, int name) in _cp_bra() argument 80 if (mod != 2) { in _cp_bra() 86 cp_out(ctx, CP_BRA | (mod << 18) | ip | flag | in _cp_bra()
|
/drivers/usb/host/ |
D | ehci-sched.c | 1230 u32 mod, in itd_slot_ok() argument 1245 } while (uframe < mod); in itd_slot_ok() 1252 u32 mod, in sitd_slot_ok() argument 1322 } while (uframe < mod); in sitd_slot_ok() 1350 unsigned mod = ehci->periodic_size << 3; in iso_stream_schedule() local 1360 now = ehci_read_frame_index(ehci) & (mod - 1); in iso_stream_schedule() 1380 next = (next - base) & (mod - 1); in iso_stream_schedule() 1381 start = (stream->next_uframe - base) & (mod - 1); in iso_stream_schedule() 1387 period, mod); in iso_stream_schedule() 1438 if (itd_slot_ok(ehci, mod, start, in iso_stream_schedule() [all …]
|
/drivers/net/ethernet/brocade/bna/ |
D | bfa_ioc.c | 1614 struct bfa_ioc_mbox_mod *mod = &ioc->mbox_mod; in bfa_ioc_mbox_attach() local 1617 INIT_LIST_HEAD(&mod->cmd_q); in bfa_ioc_mbox_attach() 1619 mod->mbhdlr[mc].cbfn = NULL; in bfa_ioc_mbox_attach() 1620 mod->mbhdlr[mc].cbarg = ioc->bfa; in bfa_ioc_mbox_attach() 1628 struct bfa_ioc_mbox_mod *mod = &ioc->mbox_mod; in bfa_ioc_mbox_poll() local 1637 if (list_empty(&mod->cmd_q)) in bfa_ioc_mbox_poll() 1650 bfa_q_deq(&mod->cmd_q, &cmd); in bfa_ioc_mbox_poll() 1668 struct bfa_ioc_mbox_mod *mod = &ioc->mbox_mod; in bfa_ioc_mbox_flush() local 1671 while (!list_empty(&mod->cmd_q)) in bfa_ioc_mbox_flush() 1672 bfa_q_deq(&mod->cmd_q, &cmd); in bfa_ioc_mbox_flush() [all …]
|
/drivers/s390/crypto/ |
D | zcrypt_msgtype50.c | 186 unsigned char *mod, *exp, *inp; in ICAMEX_msg_to_type50MEX_msg() local 198 mod = meb1->modulus + sizeof(meb1->modulus) - mod_len; in ICAMEX_msg_to_type50MEX_msg() 208 mod = meb2->modulus + sizeof(meb2->modulus) - mod_len; in ICAMEX_msg_to_type50MEX_msg() 219 mod = meb3->modulus + sizeof(meb3->modulus) - mod_len; in ICAMEX_msg_to_type50MEX_msg() 224 if (copy_from_user(mod, mex->n_modulus, mod_len) || in ICAMEX_msg_to_type50MEX_msg()
|