Home
last modified time | relevance | path

Searched refs:devdata (Results 1 – 52 of 52) sorted by relevance

/linux-4.4.14/drivers/staging/unisys/visornic/
Dvisornic_main.c322 visornic_serverdown_complete(struct visornic_devdata *devdata) in visornic_serverdown_complete() argument
326 netdev = devdata->netdev; in visornic_serverdown_complete()
329 del_timer_sync(&devdata->irq_poll_timer); in visornic_serverdown_complete()
335 atomic_set(&devdata->num_rcvbuf_in_iovm, 0); in visornic_serverdown_complete()
336 devdata->chstat.sent_xmit = 0; in visornic_serverdown_complete()
337 devdata->chstat.got_xmit_done = 0; in visornic_serverdown_complete()
339 if (devdata->server_down_complete_func) in visornic_serverdown_complete()
340 (*devdata->server_down_complete_func)(devdata->dev, 0); in visornic_serverdown_complete()
342 devdata->server_down = true; in visornic_serverdown_complete()
343 devdata->server_change_state = false; in visornic_serverdown_complete()
[all …]
/linux-4.4.14/drivers/staging/unisys/visorhba/
Dvisorhba_main.c143 struct visorhba_devdata *devdata; member
192 static int add_scsipending_entry(struct visorhba_devdata *devdata, in add_scsipending_entry() argument
199 spin_lock_irqsave(&devdata->privlock, flags); in add_scsipending_entry()
200 insert_location = devdata->nextinsert; in add_scsipending_entry()
201 while (devdata->pending[insert_location].sent) { in add_scsipending_entry()
203 if (insert_location == (int)devdata->nextinsert) { in add_scsipending_entry()
204 spin_unlock_irqrestore(&devdata->privlock, flags); in add_scsipending_entry()
209 entry = &devdata->pending[insert_location]; in add_scsipending_entry()
216 devdata->nextinsert = (insert_location + 1) % MAX_PENDING_REQUESTS; in add_scsipending_entry()
217 spin_unlock_irqrestore(&devdata->privlock, flags); in add_scsipending_entry()
[all …]
/linux-4.4.14/drivers/staging/unisys/visorinput/
Dvisorinput.c222 struct visorinput_devdata *devdata = input_get_drvdata(visorinput_dev); in visorinput_open() local
224 if (!devdata) { in visorinput_open()
230 visorbus_enable_channel_interrupts(devdata->dev); in visorinput_open()
236 struct visorinput_devdata *devdata = input_get_drvdata(visorinput_dev); in visorinput_close() local
238 if (!devdata) { in visorinput_close()
244 visorbus_disable_channel_interrupts(devdata->dev); in visorinput_close()
253 register_client_keyboard(void *devdata, /* opaque on purpose */ in register_client_keyboard() argument
289 input_set_drvdata(visorinput_dev, devdata); /* pre input_register! */ in register_client_keyboard()
300 register_client_mouse(void *devdata /* opaque on purpose */) in register_client_mouse() argument
336 input_set_drvdata(visorinput_dev, devdata); /* pre input_register! */ in register_client_mouse()
[all …]
/linux-4.4.14/drivers/power/
Dwm831x_backup.c119 struct wm831x_backup *devdata = dev_get_drvdata(psy->dev.parent); in wm831x_backup_get_prop() local
120 struct wm831x *wm831x = devdata->wm831x; in wm831x_backup_get_prop()
169 struct wm831x_backup *devdata; in wm831x_backup_probe() local
171 devdata = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_backup), in wm831x_backup_probe()
173 if (devdata == NULL) in wm831x_backup_probe()
176 devdata->wm831x = wm831x; in wm831x_backup_probe()
177 platform_set_drvdata(pdev, devdata); in wm831x_backup_probe()
186 snprintf(devdata->name, sizeof(devdata->name), in wm831x_backup_probe()
189 snprintf(devdata->name, sizeof(devdata->name), in wm831x_backup_probe()
192 devdata->backup_desc.name = devdata->name; in wm831x_backup_probe()
[all …]
Dpower_supply_core.c567 psy = tzd->devdata; in power_supply_read_temp()
614 psy = tcd->devdata; in ps_get_max_charge_cntl_limit()
630 psy = tcd->devdata; in ps_get_cur_chrage_cntl_limit()
646 psy = tcd->devdata; in ps_set_cur_charge_cntl_limit()
/linux-4.4.14/drivers/pinctrl/mediatek/
Dpinctrl-mtk-common.c61 if (pin >= pctl->devdata->type1_start && pin < pctl->devdata->type1_end) in mtk_get_regmap()
69 return ((pin >> 4) & pctl->devdata->port_mask) in mtk_get_port()
70 << pctl->devdata->port_shf; in mtk_get_port()
81 reg_addr = mtk_get_port(pctl, offset) + pctl->devdata->dir_offset; in mtk_pmx_gpio_set_direction()
100 reg_addr = mtk_get_port(pctl, offset) + pctl->devdata->dout_offset; in mtk_gpio_set()
121 if (!pctl->devdata->spec_ies_smt_set && in mtk_pconf_set_ies_smt()
122 pctl->devdata->ies_offset == MTK_PINCTRL_NOT_SUPPORT && in mtk_pconf_set_ies_smt()
126 if (!pctl->devdata->spec_ies_smt_set && in mtk_pconf_set_ies_smt()
127 pctl->devdata->smt_offset == MTK_PINCTRL_NOT_SUPPORT && in mtk_pconf_set_ies_smt()
135 if (pctl->devdata->spec_ies_smt_set) { in mtk_pconf_set_ies_smt()
[all …]
Dpinctrl-mtk-common.h67 #define SET_ADDR(x, y) (x + (y->devdata->port_align))
68 #define CLR_ADDR(x, y) (x + (y->devdata->port_align << 1))
266 const struct mtk_pinctrl_devdata *devdata; member
/linux-4.4.14/drivers/crypto/nx/
Dnx-842-pseries.c121 } __rcu *devdata; variable
317 local_devdata = rcu_dereference(devdata); in nx842_pseries_compress()
449 local_devdata = rcu_dereference(devdata); in nx842_pseries_decompress()
537 static int nx842_OF_set_defaults(struct nx842_devdata *devdata) in nx842_OF_set_defaults() argument
539 if (devdata) { in nx842_OF_set_defaults()
540 devdata->max_sync_size = 0; in nx842_OF_set_defaults()
541 devdata->max_sync_sg = 0; in nx842_OF_set_defaults()
542 devdata->max_sg_len = 0; in nx842_OF_set_defaults()
570 dev_info(devdata->dev, "%s: unknown status '%s'\n", __func__, status); in nx842_OF_upd_status()
596 static int nx842_OF_upd_maxsglen(struct nx842_devdata *devdata, in nx842_OF_upd_maxsglen() argument
[all …]
/linux-4.4.14/drivers/spi/
Dspi-orion.c85 const struct orion_spi_dev *devdata; member
122 const struct orion_spi_dev *devdata; in orion_spi_baudrate_set() local
125 devdata = orion_spi->devdata; in orion_spi_baudrate_set()
129 if (devdata->typ == ARMADA_SPI) { in orion_spi_baudrate_set()
181 reg = ((reg & ~devdata->prescale_mask) | prescale); in orion_spi_baudrate_set()
260 if (orion_spi->devdata->is_errata_50mhz_ac) in orion_spi_setup_transfer()
501 const struct orion_spi_dev *devdata; in orion_spi_probe() local
539 devdata = (of_id) ? of_id->data : &orion_spi_dev_data; in orion_spi_probe()
540 spi->devdata = devdata; in orion_spi_probe()
563 master->max_speed_hz = min(devdata->max_hz, in orion_spi_probe()
[all …]
/linux-4.4.14/drivers/thermal/
Dof-thermal.c96 struct __thermal_zone *data = tz->devdata; in of_thermal_get_temp()
116 struct __thermal_zone *data = tz->devdata; in of_thermal_get_ntrips()
137 struct __thermal_zone *data = tz->devdata; in of_thermal_is_trip_valid()
159 struct __thermal_zone *data = tz->devdata; in of_thermal_get_trip_points()
182 struct __thermal_zone *data = tz->devdata; in of_thermal_set_emul_temp()
193 struct __thermal_zone *data = tz->devdata; in of_thermal_get_trend()
218 struct __thermal_zone *data = thermal->devdata; in of_thermal_bind()
247 struct __thermal_zone *data = thermal->devdata; in of_thermal_unbind()
273 struct __thermal_zone *data = tz->devdata; in of_thermal_get_mode()
283 struct __thermal_zone *data = tz->devdata; in of_thermal_set_mode()
[all …]
Ddb8500_thermal.c65 struct db8500_thermal_zone *pzone = thermal->devdata; in db8500_cdev_bind()
92 struct db8500_thermal_zone *pzone = thermal->devdata; in db8500_cdev_unbind()
112 struct db8500_thermal_zone *pzone = thermal->devdata; in db8500_sys_get_temp()
128 struct db8500_thermal_zone *pzone = thermal->devdata; in db8500_sys_get_trend()
139 struct db8500_thermal_zone *pzone = thermal->devdata; in db8500_sys_get_mode()
152 struct db8500_thermal_zone *pzone = thermal->devdata; in db8500_sys_set_mode()
169 struct db8500_thermal_zone *pzone = thermal->devdata; in db8500_sys_get_trip_type()
184 struct db8500_thermal_zone *pzone = thermal->devdata; in db8500_sys_get_trip_temp()
199 struct db8500_thermal_zone *pzone = thermal->devdata; in db8500_sys_get_crit_temp()
Dspear_thermal.c43 struct spear_thermal_dev *stdev = thermal->devdata; in thermal_get_temp()
62 struct spear_thermal_dev *stdev = spear_thermal->devdata; in spear_thermal_suspend()
79 struct spear_thermal_dev *stdev = spear_thermal->devdata; in spear_thermal_resume()
165 struct spear_thermal_dev *stdev = spear_thermal->devdata; in spear_thermal_exit()
Ddevfreq_cooling.c140 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_get_max_state()
150 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_get_cur_state()
160 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_set_cur_state()
278 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_get_requested_power()
311 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_state2power()
329 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_power2state()
564 dfc = cdev->devdata; in devfreq_cooling_unregister()
Dclock_cooling.c217 struct clock_cooling_device *ccdev = cdev->devdata; in clock_cooling_get_level()
345 struct clock_cooling_device *ccdev = cdev->devdata; in clock_cooling_get_max_state()
369 struct clock_cooling_device *ccdev = cdev->devdata; in clock_cooling_get_cur_state()
389 struct clock_cooling_device *clock_device = cdev->devdata; in clock_cooling_set_cur_state()
477 ccdev = cdev->devdata; in clock_cooling_unregister()
Dintel_quark_dts_thermal.c125 struct soc_sensor_entry *aux_entry = tzd->devdata; in soc_dts_enable()
158 struct soc_sensor_entry *aux_entry = tzd->devdata; in soc_dts_disable()
276 return update_trip_temp(tzd->devdata, trip, temp); in sys_set_trip_temp()
318 struct soc_sensor_entry *aux_entry = tzd->devdata; in sys_get_mode()
Dcpu_cooling.c487 struct cpufreq_cooling_device *cpufreq_device = cdev->devdata; in cpufreq_get_max_state()
506 struct cpufreq_cooling_device *cpufreq_device = cdev->devdata; in cpufreq_get_cur_state()
526 struct cpufreq_cooling_device *cpufreq_device = cdev->devdata; in cpufreq_set_cur_state()
577 struct cpufreq_cooling_device *cpufreq_device = cdev->devdata; in cpufreq_get_requested_power()
658 struct cpufreq_cooling_device *cpufreq_device = cdev->devdata; in cpufreq_state2power()
710 struct cpufreq_cooling_device *cpufreq_device = cdev->devdata; in cpufreq_power2state()
1035 cpufreq_dev = cdev->devdata; in cpufreq_cooling_unregister()
Dintel_soc_dts_iosf.c90 dts = tzd->devdata; in sys_get_trip_temp()
201 struct intel_soc_dts_sensor_entry *dts = tzd->devdata; in sys_set_trip_temp()
209 status = update_trip_temp(tzd->devdata, trip, temp, in sys_set_trip_temp()
221 dts = tzd->devdata; in sys_get_trip_type()
236 dts = tzd->devdata; in sys_get_curr_temp()
Dintel_pch_thermal.c146 struct pch_thermal_device *ptd = tzd->devdata; in pch_thermal_get_temp()
154 struct pch_thermal_device *ptd = tzd->devdata; in pch_get_trip_type()
168 struct pch_thermal_device *ptd = tzd->devdata; in pch_get_trip_temp()
Dimx_thermal.c135 struct imx_thermal_data *data = tz->devdata; in imx_get_temp()
211 struct imx_thermal_data *data = tz->devdata; in imx_get_mode()
221 struct imx_thermal_data *data = tz->devdata; in imx_set_mode()
264 struct imx_thermal_data *data = tz->devdata; in imx_get_crit_temp()
273 struct imx_thermal_data *data = tz->devdata; in imx_get_trip_temp()
283 struct imx_thermal_data *data = tz->devdata; in imx_set_trip_temp()
Dkirkwood_thermal.c39 struct kirkwood_thermal_priv *priv = thermal->devdata; in kirkwood_get_temp()
Dx86_pkg_temp_thermal.c172 phy_dev_entry = tzd->devdata; in sys_get_curr_temp()
197 phy_dev_entry = tzd->devdata; in sys_get_trip_temp()
230 phy_dev_entry = tzd->devdata; in sys_set_trip_temp()
Dthermal_core.c1454 char *type, void *devdata, in __thermal_cooling_device_register() argument
1486 cdev->devdata = devdata; in __thermal_cooling_device_register()
1526 thermal_cooling_device_register(char *type, void *devdata, in thermal_cooling_device_register() argument
1529 return __thermal_cooling_device_register(NULL, type, devdata, ops); in thermal_cooling_device_register()
1550 char *type, void *devdata, in thermal_of_cooling_device_register() argument
1553 return __thermal_cooling_device_register(np, type, devdata, ops); in thermal_of_cooling_device_register()
1796 int trips, int mask, void *devdata, in thermal_zone_device_register() argument
1838 tz->devdata = devdata; in thermal_zone_device_register()
Ddove_thermal.c99 struct dove_thermal_priv *priv = thermal->devdata; in dove_get_temp()
Darmada_thermal.c160 struct armada_thermal_priv *priv = thermal->devdata; in armada_get_temp()
Drcar_thermal.c73 #define rcar_zone_to_priv(zone) ((zone)->devdata)
/linux-4.4.14/drivers/mtd/nand/gpmi-nand/
Dgpmi-nand.h140 const struct gpmi_devdata *devdata; member
305 #define GPMI_IS_MX23(x) ((x)->devdata->type == IS_MX23)
306 #define GPMI_IS_MX28(x) ((x)->devdata->type == IS_MX28)
307 #define GPMI_IS_MX6Q(x) ((x)->devdata->type == IS_MX6Q)
308 #define GPMI_IS_MX6SX(x) ((x)->devdata->type == IS_MX6SX)
Dgpmi-nand.c130 return geo->ecc_strength <= this->devdata->bch_max_ecc_strength; in gpmi_check_ecc()
290 this->devdata->bch_max_ecc_strength); in legacy_set_geometry()
1997 this->devdata = of_id->data; in gpmi_nand_probe()
Dgpmi-lib.c864 int dll_threshold = this->devdata->max_chain_delay; in gpmi_compute_edo_timing()
/linux-4.4.14/drivers/thermal/ti-soc-thermal/
Dti-thermal-common.c79 static inline int __ti_thermal_get_temp(void *devdata, int *temp) in __ti_thermal_get_temp() argument
82 struct ti_thermal_data *data = devdata; in __ti_thermal_get_temp()
124 struct ti_thermal_data *data = thermal->devdata; in ti_thermal_get_temp()
133 struct ti_thermal_data *data = thermal->devdata; in ti_thermal_bind()
157 struct ti_thermal_data *data = thermal->devdata; in ti_thermal_unbind()
174 struct ti_thermal_data *data = thermal->devdata; in ti_thermal_get_mode()
186 struct ti_thermal_data *data = thermal->devdata; in ti_thermal_set_mode()
267 ret = __ti_thermal_get_trend(thermal->devdata, &tr); in ti_thermal_get_trend()
/linux-4.4.14/drivers/video/fbdev/
Dmxsfb.c182 const struct mxsfb_devdata *devdata; member
187 #define mxsfb_is_v3(host) (host->devdata->ipversion == 3)
188 #define mxsfb_is_v4(host) (host->devdata->ipversion == 4)
216 return (val & host->devdata->hs_wdth_mask) << in set_hsync_pulse_width()
217 host->devdata->hs_wdth_shift; in set_hsync_pulse_width()
222 return (val >> host->devdata->hs_wdth_shift) & in get_hsync_pulse_width()
223 host->devdata->hs_wdth_mask; in get_hsync_pulse_width()
478 host->base + host->devdata->transfer_count); in mxsfb_set_par()
520 host->base + host->devdata->next_buf); in mxsfb_set_par()
606 host->base + host->devdata->next_buf); in mxsfb_pan_display()
[all …]
/linux-4.4.14/drivers/thermal/int340x_thermal/
Dint340x_thermal_zone.c25 struct int34x_thermal_zone *d = zone->devdata; in int340x_thermal_get_zone_temp()
54 struct int34x_thermal_zone *d = zone->devdata; in int340x_thermal_get_trip_temp()
87 struct int34x_thermal_zone *d = zone->devdata; in int340x_thermal_get_trip_type()
119 struct int34x_thermal_zone *d = zone->devdata; in int340x_thermal_set_trip_temp()
141 struct int34x_thermal_zone *d = zone->devdata; in int340x_thermal_get_trip_hyst()
Dint3403_thermal.c126 struct int3403_priv *priv = cdev->devdata; in int3403_get_max_state()
136 struct int3403_priv *priv = cdev->devdata; in int3403_get_cur_state()
151 struct int3403_priv *priv = cdev->devdata; in int3403_set_cur_state()
Dint3400_thermal.c198 struct int3400_thermal_priv *priv = thermal->devdata; in int3400_thermal_get_mode()
211 struct int3400_thermal_priv *priv = thermal->devdata; in int3400_thermal_set_mode()
/linux-4.4.14/include/linux/
Dthermal.h136 void *devdata; member
193 void *devdata; member
437 const char *type, int trips, int mask, void *devdata, in thermal_zone_device_register() argument
458 thermal_cooling_device_register(char *type, void *devdata, in thermal_cooling_device_register() argument
463 char *type, void *devdata, const struct thermal_cooling_device_ops *ops) in thermal_of_cooling_device_register() argument
Dlcd.h114 struct device *parent, void *devdata, struct lcd_ops *ops);
117 void *devdata, struct lcd_ops *ops);
Dbacklight.h133 struct device *dev, void *devdata, const struct backlight_ops *ops,
137 void *devdata, const struct backlight_ops *ops,
Dc2port.h65 struct c2port_ops *ops, void *devdata);
/linux-4.4.14/drivers/acpi/
Dprocessor_thermal.c201 struct acpi_device *device = cdev->devdata; in processor_get_max_state()
219 struct acpi_device *device = cdev->devdata; in processor_get_cur_state()
239 struct acpi_device *device = cdev->devdata; in processor_set_cur_state()
Dthermal.c530 struct acpi_thermal *tz = thermal->devdata; in thermal_get_temp()
548 struct acpi_thermal *tz = thermal->devdata; in thermal_get_mode()
562 struct acpi_thermal *tz = thermal->devdata; in thermal_set_mode()
592 struct acpi_thermal *tz = thermal->devdata; in thermal_get_trip_type()
637 struct acpi_thermal *tz = thermal->devdata; in thermal_get_trip_temp()
690 struct acpi_thermal *tz = thermal->devdata; in thermal_get_crit_temp()
704 struct acpi_thermal *tz = thermal->devdata; in thermal_get_trend()
749 struct acpi_thermal *tz = thermal->devdata; in thermal_notify()
771 struct acpi_device *device = cdev->devdata; in acpi_thermal_cooling_device_cb()
772 struct acpi_thermal *tz = thermal->devdata; in acpi_thermal_cooling_device_cb()
Dfan.c97 struct acpi_device *device = cdev->devdata; in fan_get_max_state()
166 struct acpi_device *device = cdev->devdata; in fan_get_cur_state()
205 struct acpi_device *device = cdev->devdata; in fan_set_cur_state()
Dacpi_video.c274 struct acpi_device *device = cooling_dev->devdata; in video_get_max_state()
284 struct acpi_device *device = cooling_dev->devdata; in video_get_cur_state()
303 struct acpi_device *device = cooling_dev->devdata; in video_set_cur_state()
/linux-4.4.14/drivers/video/backlight/
Dlcd.c209 void *devdata, struct lcd_ops *ops) in lcd_device_register() argument
227 dev_set_drvdata(&new_ld->dev, devdata); in lcd_device_register()
297 void *devdata, struct lcd_ops *ops) in devm_lcd_device_register() argument
305 lcd = lcd_device_register(name, parent, devdata, ops); in devm_lcd_device_register()
Dbacklight.c318 struct device *parent, void *devdata, const struct backlight_ops *ops, in backlight_device_register() argument
337 dev_set_drvdata(&new_bd->dev, devdata); in backlight_device_register()
496 const char *name, struct device *parent, void *devdata, in devm_backlight_device_register() argument
507 backlight = backlight_device_register(name, parent, devdata, ops, in devm_backlight_device_register()
/linux-4.4.14/drivers/thermal/st/
Dst_thermal.c116 struct st_thermal_sensor *sensor = th->devdata; in st_thermal_get_temp()
145 struct st_thermal_sensor *sensor = th->devdata; in st_thermal_get_trip_type()
163 struct st_thermal_sensor *sensor = th->devdata; in st_thermal_get_trip_temp()
/linux-4.4.14/drivers/hwmon/
Dpwm-fan.c121 struct pwm_fan_ctx *ctx = cdev->devdata; in pwm_fan_get_max_state()
134 struct pwm_fan_ctx *ctx = cdev->devdata; in pwm_fan_get_cur_state()
147 struct pwm_fan_ctx *ctx = cdev->devdata; in pwm_fan_set_cur_state()
Dgpio-fan.c396 struct gpio_fan_data *fan_data = cdev->devdata; in gpio_fan_get_max_state()
408 struct gpio_fan_data *fan_data = cdev->devdata; in gpio_fan_get_cur_state()
420 struct gpio_fan_data *fan_data = cdev->devdata; in gpio_fan_set_cur_state()
/linux-4.4.14/drivers/platform/x86/
Dintel_mid_thermal.c179 struct thermal_device_info *td_info = tzd->devdata; in mid_read_temp()
518 kfree(pinfo->tzd[i]->devdata); in mid_thermal_probe()
538 kfree(pinfo->tzd[i]->devdata); in mid_thermal_remove()
Dintel_menlow.c66 struct acpi_device *device = cdev->devdata; in memory_get_max_bandwidth()
92 struct acpi_device *device = cdev->devdata; in memory_get_cur_bandwidth()
115 struct acpi_device *device = cdev->devdata; in memory_set_cur_bandwidth()
/linux-4.4.14/drivers/net/wireless/ath/ath10k/
Dthermal.c39 struct ath10k *ar = cdev->devdata; in ath10k_thermal_get_cur_throttle_state()
52 struct ath10k *ar = cdev->devdata; in ath10k_thermal_set_cur_throttle_state()
/linux-4.4.14/drivers/tty/serial/
Dimx.c207 const struct imx_uart_data *devdata; member
271 return sport->devdata->uts_reg; in uts_reg()
276 return sport->devdata->devtype == IMX1_UART; in is_imx1_uart()
281 return sport->devdata->devtype == IMX21_UART; in is_imx21_uart()
286 return sport->devdata->devtype == IMX6Q_UART; in is_imx6q_uart()
1881 sport->devdata = of_id->data; in serial_imx_probe_dt()
1899 sport->devdata = (struct imx_uart_data *) pdev->id_entry->driver_data; in serial_imx_probe_pdata()
/linux-4.4.14/Documentation/thermal/
Dsysfs-api.txt35 int trips, int mask, void *devdata,
47 devdata: device private data
77 void *devdata, struct thermal_cooling_device_ops *)
83 devdata: device private data.
/linux-4.4.14/drivers/misc/c2port/
Dcore.c900 struct c2port_ops *ops, void *devdata) in c2port_device_register() argument