Searched refs:cdev (Results 226 - 250 of 675) sorted by relevance

1234567891011>>

/linux-master/drivers/net/wireless/ath/ath10k/
H A Dthermal.h16 struct thermal_cooling_device *cdev; member in struct:ath10k_thermal
/linux-master/drivers/dma/idxd/
H A DMakefile7 idxd-y := init.o irq.o device.o sysfs.o submit.o dma.o cdev.o debugfs.o defaults.o
/linux-master/drivers/net/wireless/ath/ath11k/
H A Dthermal.h18 struct thermal_cooling_device *cdev; member in struct:ath11k_thermal
/linux-master/drivers/thermal/
H A Dthermal_of.c294 struct thermal_zone_device *tz, struct thermal_cooling_device *cdev)
314 if (cooling_spec.np != cdev->np)
317 ret = thermal_zone_unbind_cooling_device(tz, trip_id, cdev);
319 pr_err("Failed to unbind '%s' with '%s': %d\n", tz->type, cdev->type, ret);
325 struct thermal_zone_device *tz, struct thermal_cooling_device *cdev)
347 if (cooling_spec.np != cdev->np)
350 ret = thermal_zone_bind_cooling_device(tz, trip_id, cdev, cooling_spec.args[1],
354 pr_err("Failed to bind '%s' with '%s': %d\n", tz->type, cdev->type, ret);
360 struct thermal_zone_device *tz, struct thermal_cooling_device *cdev,
387 action(map_np, i, trip_id, tz, cdev);
293 __thermal_of_unbind(struct device_node *map_np, int index, int trip_id, struct thermal_zone_device *tz, struct thermal_cooling_device *cdev) argument
324 __thermal_of_bind(struct device_node *map_np, int index, int trip_id, struct thermal_zone_device *tz, struct thermal_cooling_device *cdev) argument
359 thermal_of_for_each_cooling_device(struct device_node *tz_np, struct device_node *map_np, struct thermal_zone_device *tz, struct thermal_cooling_device *cdev, int (*action)(struct device_node *, int, int, struct thermal_zone_device *, struct thermal_cooling_device *)) argument
392 thermal_of_for_each_cooling_maps(struct thermal_zone_device *tz, struct thermal_cooling_device *cdev, int (*action)(struct device_node *, int, int, struct thermal_zone_device *, struct thermal_cooling_device *)) argument
425 thermal_of_bind(struct thermal_zone_device *tz, struct thermal_cooling_device *cdev) argument
431 thermal_of_unbind(struct thermal_zone_device *tz, struct thermal_cooling_device *cdev) argument
[all...]
H A Dthermal_trace.h53 TP_PROTO(struct thermal_cooling_device *cdev, unsigned long target),
55 TP_ARGS(cdev, target),
58 __string(type, cdev->type)
144 TP_PROTO(struct thermal_cooling_device *cdev,
148 TP_ARGS(cdev, status, freq, power),
151 __string(type, cdev->type )
174 TP_PROTO(struct thermal_cooling_device *cdev, unsigned long freq,
177 TP_ARGS(cdev, freq, cdev_state, power),
180 __string(type, cdev->type)
/linux-master/drivers/tee/
H A Dtee_private.h8 #include <linux/cdev.h>
/linux-master/block/
H A Dbsg.c9 #include <linux/cdev.h>
26 struct cdev cdev; member in struct:bsg_device
35 return container_of(inode->i_cdev, struct bsg_device, cdev);
184 cdev_device_del(&bd->cdev, &bd->device);
217 cdev_init(&bd->cdev, &bsg_fops);
218 bd->cdev.owner = THIS_MODULE;
219 ret = cdev_device_add(&bd->cdev, &bd->device);
233 cdev_device_del(&bd->cdev, &bd->device);
/linux-master/drivers/leds/
H A Dleds-88pm860x.c29 struct led_classdev cdev; member in struct:pm860x_led
66 static int pm860x_led_set(struct led_classdev *cdev, argument
69 struct pm860x_led *led = container_of(cdev, struct pm860x_led, cdev);
202 data->cdev.name = data->name;
203 data->cdev.brightness_set_blocking = pm860x_led_set;
206 ret = led_classdev_register(chip->dev, &data->cdev);
211 pm860x_led_set(&data->cdev, 0);
222 led_classdev_unregister(&data->cdev);
H A Dleds-wm831x-status.c20 struct led_classdev cdev; member in struct:wm831x_status
36 container_of(led_cdev, struct wm831x_status, cdev)
266 drvdata->cdev.name = pdata.name;
267 drvdata->cdev.default_trigger = pdata.default_trigger;
268 drvdata->cdev.brightness_set_blocking = wm831x_status_brightness_set;
269 drvdata->cdev.blink_set = wm831x_status_blink_set;
270 drvdata->cdev.groups = wm831x_status_groups;
272 ret = led_classdev_register(wm831x->dev, &drvdata->cdev);
287 led_classdev_unregister(&drvdata->cdev);
/linux-master/arch/s390/include/asm/
H A Dqdio.h334 void (*irq_poll)(struct ccw_device *cdev, unsigned long data);
344 extern int qdio_allocate(struct ccw_device *cdev, unsigned int no_input_qs,
346 extern int qdio_establish(struct ccw_device *cdev,
349 extern int qdio_start_irq(struct ccw_device *cdev);
350 extern int qdio_stop_irq(struct ccw_device *cdev);
351 extern int qdio_inspect_input_queue(struct ccw_device *cdev, unsigned int nr,
353 extern int qdio_inspect_output_queue(struct ccw_device *cdev, unsigned int nr,
355 extern int qdio_add_bufs_to_input_queue(struct ccw_device *cdev,
358 extern int qdio_add_bufs_to_output_queue(struct ccw_device *cdev,
/linux-master/drivers/net/ethernet/qlogic/qed/
H A Dqed_sriov.c140 DP_NOTICE(p_hwfn->cdev, "No iov info\n");
144 if ((rel_vf_id >= p_hwfn->cdev->p_iov_info->total_vfs) ||
166 DP_NOTICE(p_hwfn->cdev, "No iov info\n");
340 static int qed_iov_pci_cfg_info(struct qed_dev *cdev) argument
342 struct qed_hw_sriov_info *iov = cdev->p_iov_info;
345 DP_VERBOSE(cdev, QED_MSG_IOV, "sriov ext pos %d\n", pos);
346 pci_read_config_word(cdev->pdev, pos + PCI_SRIOV_CTRL, &iov->ctrl);
348 pci_read_config_word(cdev->pdev,
350 pci_read_config_word(cdev->pdev,
353 pci_read_config_word(cdev
576 qed_iov_free_hw_info(struct qed_dev *cdev) argument
584 struct qed_dev *cdev = p_hwfn->cdev; local
677 qed_iov_set_vf_to_disable(struct qed_dev *cdev, u16 rel_vf_id, u8 to_disable) argument
694 qed_iov_set_vfs_to_disable(struct qed_dev *cdev, u8 to_disable) argument
4390 qed_iov_configure_min_tx_rate(struct qed_dev *cdev, int vfid, u32 rate) argument
4448 qed_vf_start_iov_wq(struct qed_dev *cdev) argument
4457 qed_sriov_disable(struct qed_dev *cdev, bool pci_enabled) argument
4542 qed_sriov_enable(struct qed_dev *cdev, int num) argument
4616 qed_sriov_configure(struct qed_dev *cdev, int num_vfs_param) argument
4629 qed_sriov_pf_set_mac(struct qed_dev *cdev, u8 *mac, int vfid) argument
4665 qed_sriov_pf_set_vlan(struct qed_dev *cdev, u16 vid, int vfid) argument
4697 qed_get_vf_config(struct qed_dev *cdev, int vf_id, struct ifla_vf_info *ivi) argument
4816 qed_set_vf_link_state(struct qed_dev *cdev, int vf_id, int link_state) argument
4850 qed_spoof_configure(struct qed_dev *cdev, int vfid, bool val) argument
4865 qed_configure_max_vf_rate(struct qed_dev *cdev, int vfid, int rate) argument
4889 qed_set_vf_rate(struct qed_dev *cdev, int vfid, u32 min_rate, u32 max_rate) argument
4906 qed_set_vf_trust(struct qed_dev *cdev, int vfid, bool trust) argument
5245 qed_iov_wq_stop(struct qed_dev *cdev, bool schedule_first) argument
5263 qed_iov_wq_start(struct qed_dev *cdev) argument
[all...]
H A Dqed_dcbx.c181 if (test_bit(QED_MF_DONT_ADD_VLAN0_TAG, &p_hwfn->cdev->mf_bits))
189 if (test_bit(QED_MF_UFP_SPECIFIC, &p_hwfn->cdev->mf_bits) &&
300 if (test_bit(QED_MF_UFP_SPECIFIC, &p_hwfn->cdev->mf_bits) && !eth_tlv)
853 struct qed_common_cb_ops *op = hwfn->cdev->protocol_ops.common;
854 void *cookie = hwfn->cdev->ops_cookie;
1000 if (IS_VF(p_hwfn->cdev))
1305 static u8 qed_dcbnl_getstate(struct qed_dev *cdev) argument
1307 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev);
1322 static u8 qed_dcbnl_setstate(struct qed_dev *cdev, u8 state) argument
1324 struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev);
1349 qed_dcbnl_getpgtccfgtx(struct qed_dev *cdev, int tc, u8 *prio_type, u8 *pgid, u8 *bw_pct, u8 *up_map) argument
1370 qed_dcbnl_getpgbwgcfgtx(struct qed_dev *cdev, int pgid, u8 *bw_pct) argument
1391 qed_dcbnl_getpgtccfgrx(struct qed_dev *cdev, int tc, u8 *prio, u8 *bwg_id, u8 *bw_pct, u8 *up_map) argument
1398 qed_dcbnl_getpgbwgcfgrx(struct qed_dev *cdev, int bwg_id, u8 *bw_pct) argument
1405 qed_dcbnl_getpfccfg(struct qed_dev *cdev, int priority, u8 *setting) argument
1426 qed_dcbnl_setpfccfg(struct qed_dev *cdev, int priority, u8 setting) argument
1457 qed_dcbnl_getcap(struct qed_dev *cdev, int capid, u8 *cap) argument
1494 qed_dcbnl_getnumtcs(struct qed_dev *cdev, int tcid, u8 *num) argument
1522 qed_dcbnl_getpfcstate(struct qed_dev *cdev) argument
1539 qed_dcbnl_getdcbx(struct qed_dev *cdev) argument
1562 qed_dcbnl_setpgtccfgtx(struct qed_dev *cdev, int tc, u8 pri_type, u8 pgid, u8 bw_pct, u8 up_map) argument
1597 qed_dcbnl_setpgtccfgrx(struct qed_dev *cdev, int prio, u8 pri_type, u8 pgid, u8 bw_pct, u8 up_map) argument
1603 qed_dcbnl_setpgbwgcfgtx(struct qed_dev *cdev, int pgid, u8 bw_pct) argument
1633 qed_dcbnl_setpgbwgcfgrx(struct qed_dev *cdev, int pgid, u8 bw_pct) argument
1638 qed_dcbnl_setall(struct qed_dev *cdev) argument
1661 qed_dcbnl_setnumtcs(struct qed_dev *cdev, int tcid, u8 num) argument
1699 qed_dcbnl_setpfcstate(struct qed_dev *cdev, u8 state) argument
1725 qed_dcbnl_getapp(struct qed_dev *cdev, u8 idtype, u16 idval) argument
1758 qed_dcbnl_setapp(struct qed_dev *cdev, u8 idtype, u16 idval, u8 pri_map) argument
1806 qed_dcbnl_setdcbx(struct qed_dev *cdev, u8 mode) argument
1853 qed_dcbnl_getfeatcfg(struct qed_dev *cdev, int featid, u8 *flags) argument
1895 qed_dcbnl_setfeatcfg(struct qed_dev *cdev, int featid, u8 flags) argument
1943 qed_dcbnl_peer_getappinfo(struct qed_dev *cdev, struct dcb_peer_app_info *info, u16 *app_count) argument
1962 qed_dcbnl_peer_getapptable(struct qed_dev *cdev, struct dcb_app *table) argument
1988 qed_dcbnl_cee_peer_getpfc(struct qed_dev *cdev, struct cee_pfc *pfc) argument
2010 qed_dcbnl_cee_peer_getpg(struct qed_dev *cdev, struct cee_pg *pg) argument
2032 qed_dcbnl_get_ieee_pfc(struct qed_dev *cdev, struct ieee_pfc *pfc, bool remote) argument
2075 qed_dcbnl_ieee_getpfc(struct qed_dev *cdev, struct ieee_pfc *pfc) argument
2080 qed_dcbnl_ieee_setpfc(struct qed_dev *cdev, struct ieee_pfc *pfc) argument
2122 qed_dcbnl_get_ieee_ets(struct qed_dev *cdev, struct ieee_ets *ets, bool remote) argument
2165 qed_dcbnl_ieee_getets(struct qed_dev *cdev, struct ieee_ets *ets) argument
2170 qed_dcbnl_ieee_setets(struct qed_dev *cdev, struct ieee_ets *ets) argument
2218 qed_dcbnl_ieee_peer_getets(struct qed_dev *cdev, struct ieee_ets *ets) argument
2224 qed_dcbnl_ieee_peer_getpfc(struct qed_dev *cdev, struct ieee_pfc *pfc) argument
2251 qed_dcbnl_ieee_getapp(struct qed_dev *cdev, struct dcb_app *app) argument
2302 qed_dcbnl_ieee_setapp(struct qed_dev *cdev, struct dcb_app *app) argument
[all...]
/linux-master/drivers/usb/gadget/function/
H A Df_acm.c299 struct usb_composite_dev *cdev = acm->port.func.config->cdev; local
302 dev_dbg(&cdev->gadget->dev, "acm ttyGS%d completion, err %d\n",
309 dev_dbg(&cdev->gadget->dev, "acm ttyGS%d short resp, len %d\n",
331 struct usb_composite_dev *cdev = f->config->cdev; local
332 struct usb_request *req = cdev->req;
356 cdev->gadget->ep0->driver_data = acm;
396 dev_vdbg(&cdev->gadget->dev,
404 dev_dbg(&cdev
423 struct usb_composite_dev *cdev = f->config->cdev; local
469 struct usb_composite_dev *cdev = f->config->cdev; local
535 struct usb_composite_dev *cdev = acm->port.func.config->cdev; local
610 struct usb_composite_dev *cdev = c->cdev; local
[all...]
/linux-master/drivers/net/ethernet/qlogic/qede/
H A Dqede_main.c134 return edev->ops->iov->set_vlan(edev->cdev, vlan, vf);
148 return edev->ops->iov->set_mac(edev->cdev, mac, vfidx);
163 rc = edev->ops->iov->configure(edev->cdev, num_vfs_param);
171 edev->ops->vport_update(edev->cdev, vport_params);
245 edev->ops->common->set_name(edev->cdev, edev->ndev->name);
318 edev->ops->get_vport_stats(edev->cdev, &stats);
465 return edev->ops->iov->get_config(edev->cdev, vfidx, ivi);
473 return edev->ops->iov->set_rate(edev->cdev, vfidx, min_tx_rate,
484 return edev->ops->iov->set_spoof(edev->cdev, vfidx, val);
495 return edev->ops->iov->set_link_state(edev->cdev, vfid
788 qede_alloc_etherdev(struct qed_dev *cdev, struct pci_dev *pdev, struct qed_dev_eth_info *info, u32 dp_module, u8 dp_level) argument
1160 qede_update_pf_params(struct qed_dev *cdev) argument
1231 struct qed_dev *cdev; local
1389 struct qed_dev *cdev; local
1578 struct qed_dev *cdev = edev->cdev; local
2103 struct qed_dev *cdev = edev->cdev; local
2244 struct qed_dev *cdev = edev->cdev; local
2717 struct qed_dev *cdev = edev->cdev; local
[all...]
/linux-master/drivers/hwmon/
H A Daspeed-pwm-tacho.c196 struct aspeed_cooling_device *cdev[8]; member in struct:aspeed_pwm_tacho_data
775 struct aspeed_cooling_device *cdev = tcdev->devdata; local
777 *state = cdev->max_state;
786 struct aspeed_cooling_device *cdev = tcdev->devdata; local
788 *state = cdev->cur_state;
797 struct aspeed_cooling_device *cdev = tcdev->devdata; local
799 if (state > cdev->max_state)
802 cdev->cur_state = state;
803 cdev->priv->pwm_port_fan_ctrl[cdev
823 struct aspeed_cooling_device *cdev; local
[all...]
/linux-master/drivers/bus/
H A Dmips_cdmm.c64 struct mips_cdmm_device *cdev = to_mips_cdmm_device(dev); local
67 return mips_cdmm_lookup(cdrv->id_table, cdev) != NULL;
72 const struct mips_cdmm_device *cdev = to_mips_cdmm_device(dev); local
75 retval = add_uevent_var(env, "CDMM_CPU=%u", cdev->cpu);
79 retval = add_uevent_var(env, "CDMM_TYPE=0x%02x", cdev->type);
83 retval = add_uevent_var(env, "CDMM_REV=%u", cdev->rev);
87 retval = add_uevent_var(env, "MODALIAS=mipscdmm:t%02X", cdev->type);
195 struct mips_cdmm_device *cdev = to_mips_cdmm_device(dev); \
199 .dev = cdev, \
202 _BUILD_RET_##_ret work_on_cpu(cdev
504 struct mips_cdmm_device *cdev = to_mips_cdmm_device(dev); local
[all...]
/linux-master/drivers/s390/cio/
H A Dqdio_setup.c346 memcpy(irq_ptr->qib.ebcnam, dev_name(&irq_ptr->cdev->dev), 8);
356 struct ccw_device *cdev = irq_ptr->cdev; local
370 ccw_device_get_schid(cdev, &irq_ptr->schid);
384 spin_lock_irq(get_ccwdev_lock(cdev));
385 irq_ptr->orig_handler = cdev->handler;
386 cdev->handler = qdio_int_handler;
387 spin_unlock_irq(get_ccwdev_lock(cdev));
392 struct ccw_device *cdev = irq->cdev; local
[all...]
/linux-master/drivers/staging/greybus/
H A Draw.c12 #include <linux/cdev.h>
25 struct cdev cdev; member in struct:gb_raw
191 cdev_init(&raw->cdev, &raw_fops);
197 retval = cdev_add(&raw->cdev, raw->dev, 1);
211 cdev_del(&raw->cdev);
236 cdev_del(&raw->cdev);
262 struct cdev *cdev = inode->i_cdev; local
263 struct gb_raw *raw = container_of(cdev, struc
[all...]
H A Dauthentication.c10 #include <linux/cdev.h>
34 struct cdev cdev; member in struct:gb_cap
66 static struct gb_cap *get_cap(struct cdev *cdev) argument
73 if (&cap->cdev == cdev) {
335 cdev_init(&cap->cdev, &cap_fops);
337 ret = cdev_add(&cap->cdev, cap->dev_num, 1);
352 cdev_del(&cap->cdev);
[all...]
H A Dlight.c83 static struct gb_channel *get_channel_from_cdev(struct led_classdev *cdev) argument
85 struct led_classdev_flash *fled_cdev = lcdev_to_flcdev(cdev);
158 static void led_lock(struct led_classdev *cdev) argument
160 mutex_lock(&cdev->led_access);
163 static void led_unlock(struct led_classdev *cdev) argument
165 mutex_unlock(&cdev->led_access);
173 struct led_classdev *cdev = dev_get_drvdata(dev); \
174 struct gb_channel *channel = get_channel_from_cdev(cdev); \
183 struct led_classdev *cdev = dev_get_drvdata(dev); \
184 struct gb_channel *channel = get_channel_from_cdev(cdev); \
220 struct led_classdev *cdev = dev_get_drvdata(dev); local
229 struct led_classdev *cdev = dev_get_drvdata(dev); local
257 channel_attr_groups_set(struct gb_channel *channel, struct led_classdev *cdev) argument
413 gb_brightness_set(struct led_classdev *cdev, enum led_brightness value) argument
423 gb_brightness_get(struct led_classdev *cdev) argument
431 gb_blink_set(struct led_classdev *cdev, unsigned long *delay_on, unsigned long *delay_off) argument
488 gb_lights_led_operations_set(struct gb_channel *channel, struct led_classdev *cdev) argument
874 struct led_classdev *cdev = get_channel_cdev(channel); local
903 struct led_classdev *cdev = get_channel_cdev(channel); local
934 struct led_classdev *cdev = get_channel_cdev(channel); local
[all...]
/linux-master/include/linux/
H A Dif_tap.h81 int tap_create_cdev(struct cdev *tap_cdev, dev_t *tap_major,
83 void tap_destroy_cdev(dev_t major, struct cdev *tap_cdev);
/linux-master/drivers/s390/char/
H A Dvmur.h67 struct ccw_device *cdev; /* Backpointer to ccw device */ member in struct:urdev
71 struct cdev *char_device;
/linux-master/drivers/connector/
H A Dconnector.c29 static struct cn_dev cdev; variable in typeref:struct:cn_dev
70 struct cn_dev *dev = &cdev;
138 struct cn_dev *dev = &cdev;
228 struct cn_dev *dev = &cdev;
247 struct cn_dev *dev = &cdev;
255 struct cn_queue_dev *dev = cdev.cbdev;
276 struct cn_dev *dev = &cdev;
304 struct cn_dev *dev = &cdev;
/linux-master/drivers/mtd/ubi/
H A DMakefile4 ubi-y += vtbl.o vmt.o upd.o build.o cdev.o kapi.o eba.o io.o wl.o attach.o
/linux-master/drivers/rpmsg/
H A Drpmsg_ctrl.c16 #include <linux/cdev.h>
39 #define cdev_to_ctrldev(i_cdev) container_of(i_cdev, struct rpmsg_ctrldev, cdev)
44 * @cdev: cdev for the ctrl device
50 struct cdev cdev; member in struct:rpmsg_ctrldev
156 cdev_init(&ctrldev->cdev, &rpmsg_ctrldev_fops);
157 ctrldev->cdev.owner = THIS_MODULE;
170 ret = cdev_device_add(&ctrldev->cdev, &ctrldev->dev);
204 cdev_device_del(&ctrldev->cdev,
[all...]

Completed in 727 milliseconds

1234567891011>>