Home
last modified time | relevance | path

Searched refs:dev (Results 176 – 200 of 23327) sorted by relevance

12345678910>>...934

/openbmc/linux/drivers/infiniband/hw/ocrdma/
H A Docrdma_main.c75 struct ocrdma_dev *dev; in ocrdma_port_immutable() local
78 dev = get_ocrdma_dev(ibdev); in ocrdma_port_immutable()
80 if (ocrdma_is_udp_encap_supported(dev)) in ocrdma_port_immutable()
96 struct ocrdma_dev *dev = get_ocrdma_dev(device); in get_dev_fw_str() local
98 snprintf(str, IB_FW_VERSION_NAME_MAX, "%s", &dev->attr.fw_ver[0]); in get_dev_fw_str()
105 struct ocrdma_dev *dev = in hw_rev_show() local
108 return sysfs_emit(buf, "0x%x\n", dev->nic_info.pdev->vendor); in hw_rev_show()
115 struct ocrdma_dev *dev = in hca_type_show() local
118 return sysfs_emit(buf, "%s\n", &dev->model_number[0]); in hca_type_show()
188 static int ocrdma_register_device(struct ocrdma_dev *dev) in ocrdma_register_device() argument
[all …]
/openbmc/linux/drivers/net/wireless/broadcom/b43/
H A Dtables_nphy.c3310 u32 b43_ntab_read(struct b43_wldev *dev, u32 offset) in b43_ntab_read() argument
3320 b43_phy_write(dev, B43_NPHY_TABLE_ADDR, offset); in b43_ntab_read()
3321 value = b43_phy_read(dev, B43_NPHY_TABLE_DATALO) & 0xFF; in b43_ntab_read()
3324 b43_phy_write(dev, B43_NPHY_TABLE_ADDR, offset); in b43_ntab_read()
3325 value = b43_phy_read(dev, B43_NPHY_TABLE_DATALO); in b43_ntab_read()
3328 b43_phy_write(dev, B43_NPHY_TABLE_ADDR, offset); in b43_ntab_read()
3329 value = b43_phy_read(dev, B43_NPHY_TABLE_DATALO); in b43_ntab_read()
3330 value |= b43_phy_read(dev, B43_NPHY_TABLE_DATAHI) << 16; in b43_ntab_read()
3340 void b43_ntab_read_bulk(struct b43_wldev *dev, u32 offset, in b43_ntab_read_bulk() argument
3351 b43_phy_write(dev, B43_NPHY_TABLE_ADDR, offset); in b43_ntab_read_bulk()
[all …]
/openbmc/linux/drivers/base/power/
H A Dsysfs.c101 static ssize_t control_show(struct device *dev, struct device_attribute *attr, in control_show() argument
105 dev->power.runtime_auto ? ctrl_auto : ctrl_on); in control_show()
108 static ssize_t control_store(struct device * dev, struct device_attribute *attr, in control_store() argument
111 device_lock(dev); in control_store()
113 pm_runtime_allow(dev); in control_store()
115 pm_runtime_forbid(dev); in control_store()
118 device_unlock(dev); in control_store()
124 static ssize_t runtime_active_time_show(struct device *dev, in runtime_active_time_show() argument
128 u64 tmp = pm_runtime_active_time(dev); in runtime_active_time_show()
137 static ssize_t runtime_suspended_time_show(struct device *dev, in runtime_suspended_time_show() argument
[all …]
/openbmc/linux/drivers/media/test-drivers/vivid/
H A Dvivid-osd.c48 void vivid_clear_fb(struct vivid_dev *dev) in vivid_clear_fb() argument
50 void *p = dev->video_vbase; in vivid_clear_fb()
54 if (dev->fb_defined.green.length == 6) in vivid_clear_fb()
57 for (y = 0; y < dev->display_height; y++) { in vivid_clear_fb()
60 for (x = 0; x < dev->display_width; x++) in vivid_clear_fb()
62 p += dev->display_byte_stride; in vivid_clear_fb()
70 struct vivid_dev *dev = (struct vivid_dev *)info->par; in vivid_fb_ioctl() local
88 dprintk(dev, 1, "Unknown ioctl %08x\n", cmd); in vivid_fb_ioctl()
96 static int vivid_fb_set_var(struct vivid_dev *dev, struct fb_var_screeninfo *var) in vivid_fb_set_var() argument
98 dprintk(dev, 1, "vivid_fb_set_var\n"); in vivid_fb_set_var()
[all …]
/openbmc/linux/drivers/nfc/pn533/
H A Dpn533.c277 static bool pn533_std_rx_frame_is_valid(void *_frame, struct pn533 *dev) in pn533_std_rx_frame_is_valid() argument
287 dev->ops->rx_header_len = PN533_STD_FRAME_HEADER_LEN; in pn533_std_rx_frame_is_valid()
300 dev->ops->rx_header_len = PN533_EXT_FRAME_HEADER_LEN; in pn533_std_rx_frame_is_valid()
357 bool pn533_rx_frame_is_cmd_response(struct pn533 *dev, void *frame) in pn533_rx_frame_is_cmd_response() argument
359 return (dev->ops->get_cmd_code(frame) == in pn533_rx_frame_is_cmd_response()
360 PN533_CMD_RESPONSE(dev->cmd->code)); in pn533_rx_frame_is_cmd_response()
381 static void pn533_build_cmd_frame(struct pn533 *dev, u8 cmd_code, in pn533_build_cmd_frame() argument
386 struct pn533_frame_ops *ops = dev->ops; in pn533_build_cmd_frame()
397 static int pn533_send_async_complete(struct pn533 *dev) in pn533_send_async_complete() argument
399 struct pn533_cmd *cmd = dev->cmd; in pn533_send_async_complete()
[all …]
/openbmc/linux/drivers/gpu/drm/v3d/
H A Dv3d_trace.h16 TP_PROTO(struct drm_device *dev, u32 ct1qba, u32 ct1qea),
17 TP_ARGS(dev, ct1qba, ct1qea),
20 __field(u32, dev)
26 __entry->dev = dev->primary->index;
32 __entry->dev,
38 TP_PROTO(struct drm_device *dev, bool is_render,
41 TP_ARGS(dev, is_render, seqno, ctnqba, ctnqea),
44 __field(u32, dev)
52 __entry->dev = dev->primary->index;
60 __entry->dev,
[all …]
/openbmc/linux/drivers/usb/gadget/legacy/
H A Dinode.c139 struct usb_device_descriptor *dev; member
168 struct dev_data *dev; in dev_new() local
170 dev = kzalloc(sizeof(*dev), GFP_KERNEL); in dev_new()
171 if (!dev) in dev_new()
173 dev->state = STATE_DEV_DISABLED; in dev_new()
174 refcount_set (&dev->count, 1); in dev_new()
175 spin_lock_init (&dev->lock); in dev_new()
176 INIT_LIST_HEAD (&dev->epfiles); in dev_new()
177 init_waitqueue_head (&dev->wait); in dev_new()
178 return dev; in dev_new()
[all …]
/openbmc/linux/drivers/ipack/
H A Dipack.c15 #define to_ipack_dev(device) container_of(device, struct ipack_device, dev)
20 static void ipack_device_release(struct device *dev) in ipack_device_release() argument
22 struct ipack_device *device = to_ipack_dev(dev); in ipack_device_release()
52 static int ipack_bus_match(struct device *dev, struct device_driver *drv) in ipack_bus_match() argument
54 struct ipack_device *idev = to_ipack_dev(dev); in ipack_bus_match()
64 struct ipack_device *dev = to_ipack_dev(device); in ipack_bus_probe() local
67 return drv->ops->probe(dev); in ipack_bus_probe()
72 struct ipack_device *dev = to_ipack_dev(device); in ipack_bus_remove() local
76 drv->ops->remove(dev); in ipack_bus_remove()
79 static int ipack_uevent(const struct device *dev, struct kobj_uevent_env *env) in ipack_uevent() argument
[all …]
/openbmc/linux/drivers/scsi/
H A Dppa.c31 struct pardevice *dev; /* Parport device entry */ member
65 static void got_it(ppa_struct *dev) in got_it() argument
67 dev->base = dev->dev->port->base; in got_it()
68 if (dev->cur_cmd) in got_it()
69 ppa_scsi_pointer(dev->cur_cmd)->phase = 1; in got_it()
71 wake_up(dev->waiting); in got_it()
76 ppa_struct *dev = (ppa_struct *) ref; in ppa_wakeup() local
80 if (dev->wanted) { in ppa_wakeup()
81 parport_claim(dev->dev); in ppa_wakeup()
82 got_it(dev); in ppa_wakeup()
[all …]
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7615/
H A Ddebugfs.c8 struct mt7615_dev *dev = data; in mt7615_reg_set() local
10 mt7615_mutex_acquire(dev); in mt7615_reg_set()
11 mt76_wr(dev, dev->mt76.debugfs_reg, val); in mt7615_reg_set()
12 mt7615_mutex_release(dev); in mt7615_reg_set()
20 struct mt7615_dev *dev = data; in mt7615_reg_get() local
22 mt7615_mutex_acquire(dev); in mt7615_reg_get()
23 *val = mt76_rr(dev, dev->mt76.debugfs_reg); in mt7615_reg_get()
24 mt7615_mutex_release(dev); in mt7615_reg_get()
35 struct mt7615_dev *dev = data; in mt7615_radar_pattern_set() local
38 if (!mt7615_wait_for_mcu_init(dev)) in mt7615_radar_pattern_set()
[all …]
/openbmc/u-boot/common/
H A Dusb.c59 struct usb_device *dev; in usb_init() local
96 ret = usb_alloc_new_device(ctrl, &dev); in usb_init()
104 ret = usb_new_device(dev); in usb_init()
106 usb_free_device(dev->controller); in usb_init()
197 int usb_submit_int_msg(struct usb_device *dev, unsigned long pipe, in usb_submit_int_msg() argument
200 return submit_int_msg(dev, pipe, buffer, transfer_len, interval); in usb_submit_int_msg()
212 int usb_control_msg(struct usb_device *dev, unsigned int pipe, in usb_control_msg() argument
234 dev->status = USB_ST_NOT_PROC; /*not yet processed */ in usb_control_msg()
236 err = submit_control_msg(dev, pipe, data, size, setup_packet); in usb_control_msg()
248 if (!((volatile unsigned long)dev->status & USB_ST_NOT_PROC)) in usb_control_msg()
[all …]
/openbmc/linux/drivers/usb/c67x00/
H A Dc67x00-ll-hpi.c70 static inline u16 hpi_read_reg(struct c67x00_device *dev, int reg) in hpi_read_reg() argument
73 return __raw_readw(dev->hpi.base + reg * dev->hpi.regstep); in hpi_read_reg()
76 static inline void hpi_write_reg(struct c67x00_device *dev, int reg, u16 value) in hpi_write_reg() argument
79 __raw_writew(value, dev->hpi.base + reg * dev->hpi.regstep); in hpi_write_reg()
82 static inline u16 hpi_read_word_nolock(struct c67x00_device *dev, u16 reg) in hpi_read_word_nolock() argument
84 hpi_write_reg(dev, HPI_ADDR, reg); in hpi_read_word_nolock()
85 return hpi_read_reg(dev, HPI_DATA); in hpi_read_word_nolock()
88 static u16 hpi_read_word(struct c67x00_device *dev, u16 reg) in hpi_read_word() argument
93 spin_lock_irqsave(&dev->hpi.lock, flags); in hpi_read_word()
94 value = hpi_read_word_nolock(dev, reg); in hpi_read_word()
[all …]
/openbmc/linux/drivers/bluetooth/
H A Dhci_bcm.c117 struct device *dev; member
159 struct bcm_device *dev; member
185 if (speed > 3000000 && !bcm->dev->no_uart_clock_set) { in bcm_set_baudrate()
240 struct bcm_device *dev = list_entry(p, struct bcm_device, list); in bcm_device_exists() local
242 if (device == dev) in bcm_device_exists()
249 static int bcm_gpio_set_power(struct bcm_device *dev, bool powered) in bcm_gpio_set_power() argument
253 if (powered && !dev->res_enabled) { in bcm_gpio_set_power()
257 if (dev->supplies[0].supply) { in bcm_gpio_set_power()
259 dev->supplies); in bcm_gpio_set_power()
265 err = clk_set_rate(dev->lpo_clk, 32768); in bcm_gpio_set_power()
[all …]
/openbmc/linux/drivers/pci/
H A Dpci.h28 bool pcie_cap_has_lnkctl(const struct pci_dev *dev);
29 bool pcie_cap_has_lnkctl2(const struct pci_dev *dev);
30 bool pcie_cap_has_rtctl(const struct pci_dev *dev);
36 void pci_cleanup_rom(struct pci_dev *dev);
48 bool pci_reset_supported(struct pci_dev *dev);
49 void pci_init_reset_methods(struct pci_dev *dev);
50 int pci_bridge_secondary_bus_reset(struct pci_dev *dev);
51 int pci_bus_error_reset(struct pci_dev *dev);
66 void pci_allocate_cap_save_buffers(struct pci_dev *dev);
67 void pci_free_cap_save_buffers(struct pci_dev *dev);
[all …]
H A Dprobe.c75 struct device *dev; in no_pci_devices() local
78 dev = bus_find_next_device(&pci_bus_type, NULL); in no_pci_devices()
79 no_devices = (dev == NULL); in no_pci_devices()
80 put_device(dev); in no_pci_devices()
88 static void release_pcibus_dev(struct device *dev) in release_pcibus_dev() argument
90 struct pci_bus *pci_bus = to_pci_bus(dev); in release_pcibus_dev()
132 static inline unsigned long decode_bar(struct pci_dev *dev, u32 bar) in decode_bar() argument
176 int __pci_read_base(struct pci_dev *dev, enum pci_bar_type type, in __pci_read_base() argument
187 if (!dev->mmio_always_on) { in __pci_read_base()
188 pci_read_config_word(dev, PCI_COMMAND, &orig_cmd); in __pci_read_base()
[all …]
/openbmc/qemu/hw/pci/
H A Dpcie.c40 #define PCIE_DEV_PRINTF(dev, fmt, ...) \ argument
41 PCIE_DPRINTF("%s:%x "fmt, (dev)->name, (dev)->devfn, ## __VA_ARGS__)
71 pcie_cap_v1_fill(PCIDevice *dev, uint8_t port, uint8_t type, uint8_t version) in pcie_cap_v1_fill() argument
73 uint8_t *exp_cap = dev->config + dev->exp.exp_cap; in pcie_cap_v1_fill()
74 uint8_t *cmask = dev->cmask + dev->exp.exp_cap; in pcie_cap_v1_fill()
91 if (dev->cap_present & QEMU_PCIE_EXT_TAG) { in pcie_cap_v1_fill()
163 void pcie_cap_fill_link_ep_usp(PCIDevice *dev, PCIExpLinkWidth width, in pcie_cap_fill_link_ep_usp() argument
166 uint8_t *exp_cap = dev->config + dev->exp.exp_cap; in pcie_cap_fill_link_ep_usp()
181 static void pcie_cap_fill_slot_lnk(PCIDevice *dev) in pcie_cap_fill_slot_lnk() argument
183 PCIESlot *s = (PCIESlot *)object_dynamic_cast(OBJECT(dev), TYPE_PCIE_SLOT); in pcie_cap_fill_slot_lnk()
[all …]
/openbmc/linux/include/linux/
H A Ddevice.h68 int (*add_dev)(struct device *dev, struct subsys_interface *sif);
69 void (*remove_dev)(struct device *dev, struct subsys_interface *sif);
92 int (*uevent)(const struct device *dev, struct kobj_uevent_env *env);
93 char *(*devnode)(const struct device *dev, umode_t *mode,
95 void (*release)(struct device *dev);
108 ssize_t (*show)(struct device *dev, struct device_attribute *attr,
110 ssize_t (*store)(struct device *dev, struct device_attribute *attr,
124 ssize_t device_show_ulong(struct device *dev, struct device_attribute *attr,
126 ssize_t device_store_ulong(struct device *dev, struct device_attribute *attr,
128 ssize_t device_show_int(struct device *dev, struct device_attribute *attr,
[all …]
/openbmc/linux/drivers/net/dsa/b53/
H A Db53_common.c231 static int b53_do_vlan_op(struct b53_device *dev, u8 op) in b53_do_vlan_op() argument
235 b53_write8(dev, B53_ARLIO_PAGE, dev->vta_regs[0], VTA_START_CMD | op); in b53_do_vlan_op()
240 b53_read8(dev, B53_ARLIO_PAGE, dev->vta_regs[0], &vta); in b53_do_vlan_op()
250 static void b53_set_vlan_entry(struct b53_device *dev, u16 vid, in b53_set_vlan_entry() argument
253 if (is5325(dev)) { in b53_set_vlan_entry()
259 if (dev->core_rev >= 3) in b53_set_vlan_entry()
265 b53_write32(dev, B53_VLAN_PAGE, B53_VLAN_WRITE_25, entry); in b53_set_vlan_entry()
266 b53_write16(dev, B53_VLAN_PAGE, B53_VLAN_TABLE_ACCESS_25, vid | in b53_set_vlan_entry()
268 } else if (is5365(dev)) { in b53_set_vlan_entry()
275 b53_write16(dev, B53_VLAN_PAGE, B53_VLAN_WRITE_65, entry); in b53_set_vlan_entry()
[all …]
/openbmc/linux/drivers/ssb/
H A Ddriver_gige.c32 static inline u8 gige_read8(struct ssb_gige *dev, u16 offset) in gige_read8() argument
34 return ssb_read8(dev->dev, offset); in gige_read8()
37 static inline u16 gige_read16(struct ssb_gige *dev, u16 offset) in gige_read16() argument
39 return ssb_read16(dev->dev, offset); in gige_read16()
42 static inline u32 gige_read32(struct ssb_gige *dev, u16 offset) in gige_read32() argument
44 return ssb_read32(dev->dev, offset); in gige_read32()
47 static inline void gige_write8(struct ssb_gige *dev, in gige_write8() argument
50 ssb_write8(dev->dev, offset, value); in gige_write8()
53 static inline void gige_write16(struct ssb_gige *dev, in gige_write16() argument
56 ssb_write16(dev->dev, offset, value); in gige_write16()
[all …]
/openbmc/u-boot/drivers/core/
H A Dread.c14 int dev_read_u32(struct udevice *dev, const char *propname, u32 *outp) in dev_read_u32() argument
16 return ofnode_read_u32(dev_ofnode(dev), propname, outp); in dev_read_u32()
19 int dev_read_u32_default(struct udevice *dev, const char *propname, int def) in dev_read_u32_default() argument
21 return ofnode_read_u32_default(dev_ofnode(dev), propname, def); in dev_read_u32_default()
24 int dev_read_s32(struct udevice *dev, const char *propname, s32 *outp) in dev_read_s32() argument
26 return ofnode_read_u32(dev_ofnode(dev), propname, (u32 *)outp); in dev_read_s32()
29 int dev_read_s32_default(struct udevice *dev, const char *propname, int def) in dev_read_s32_default() argument
31 return ofnode_read_u32_default(dev_ofnode(dev), propname, def); in dev_read_s32_default()
34 int dev_read_u32u(struct udevice *dev, const char *propname, uint *outp) in dev_read_u32u() argument
39 ret = ofnode_read_u32(dev_ofnode(dev), propname, &val); in dev_read_u32u()
[all …]
/openbmc/linux/drivers/pnp/
H A Dmanager.c22 static struct resource *pnp_find_resource(struct pnp_dev *dev, in pnp_find_resource() argument
27 struct resource *res = pnp_get_resource(dev, type, bar); in pnp_find_resource()
38 static int pnp_assign_port(struct pnp_dev *dev, struct pnp_port *rule, int idx) in pnp_assign_port() argument
42 res = pnp_find_resource(dev, rule->flags, IORESOURCE_IO, idx); in pnp_assign_port()
44 pnp_dbg(&dev->dev, " io %d already set to %#llx-%#llx " in pnp_assign_port()
57 pnp_dbg(&dev->dev, " io %d disabled\n", idx); in pnp_assign_port()
64 while (!pnp_check_port(dev, res)) { in pnp_assign_port()
68 pnp_dbg(&dev->dev, " couldn't assign io %d " in pnp_assign_port()
77 pnp_add_io_resource(dev, res->start, res->end, res->flags); in pnp_assign_port()
81 static int pnp_assign_mem(struct pnp_dev *dev, struct pnp_mem *rule, int idx) in pnp_assign_mem() argument
[all …]
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt76x0/
H A Dinit.c17 mt76x0_set_wlan_state(struct mt76x02_dev *dev, u32 val, bool enable) in mt76x0_set_wlan_state() argument
33 mt76_wr(dev, MT_WLAN_FUN_CTRL, val); in mt76x0_set_wlan_state()
40 if (enable && !mt76_poll(dev, MT_CMB_CTRL, mask, mask, 2000)) in mt76x0_set_wlan_state()
41 dev_err(dev->mt76.dev, "PLL and XTAL check failed\n"); in mt76x0_set_wlan_state()
44 void mt76x0_chip_onoff(struct mt76x02_dev *dev, bool enable, bool reset) in mt76x0_chip_onoff() argument
48 val = mt76_rr(dev, MT_WLAN_FUN_CTRL); in mt76x0_chip_onoff()
57 mt76_wr(dev, MT_WLAN_FUN_CTRL, val); in mt76x0_chip_onoff()
65 mt76_wr(dev, MT_WLAN_FUN_CTRL, val); in mt76x0_chip_onoff()
68 mt76x0_set_wlan_state(dev, val, enable); in mt76x0_chip_onoff()
72 static void mt76x0_reset_csr_bbp(struct mt76x02_dev *dev) in mt76x0_reset_csr_bbp() argument
[all …]
/openbmc/linux/drivers/misc/mei/
H A Dinterrupt.c29 void mei_irq_compl_handler(struct mei_device *dev, struct list_head *cmpl_list) in mei_irq_compl_handler() argument
38 dev_dbg(dev->dev, "completing call back.\n"); in mei_irq_compl_handler()
66 static void mei_irq_discard_msg(struct mei_device *dev, struct mei_msg_hdr *hdr, in mei_irq_discard_msg() argument
70 mei_dma_ring_read(dev, NULL, in mei_irq_discard_msg()
71 hdr->extension[dev->rd_msg_hdr_count - 2]); in mei_irq_discard_msg()
78 mei_read_slots(dev, dev->rd_msg_buf, discard_len); in mei_irq_discard_msg()
79 dev_dbg(dev->dev, "discarding message " MEI_HDR_FMT "\n", in mei_irq_discard_msg()
98 struct mei_device *dev = cl->dev; in mei_cl_irq_read_msg() local
118 cl_err(dev, cl, "pending read cb not found\n"); in mei_cl_irq_read_msg()
145 cl_err(dev, cl, "unknown extended header\n"); in mei_cl_irq_read_msg()
[all …]
/openbmc/linux/drivers/net/ethernet/i825xx/
H A Dether1.c63 static int ether1_open(struct net_device *dev);
65 struct net_device *dev);
67 static int ether1_close(struct net_device *dev);
68 static void ether1_setmulticastlist(struct net_device *dev);
69 static void ether1_timeout(struct net_device *dev, unsigned int txqueue);
83 #define ether1_readw(dev, addr, type, offset, svflgs) ether1_inw_p (dev, addr + (int)(&((type *)0)-… argument
84 #define ether1_writew(dev, val, addr, type, offset, svflgs) ether1_outw_p (dev, val, addr + (int)(&… argument
87 ether1_inw_p (struct net_device *dev, int addr, int svflgs) in ether1_inw_p() argument
103 ether1_outw_p (struct net_device *dev, unsigned short val, int addr, int svflgs) in ether1_outw_p() argument
126 ether1_writebuffer (struct net_device *dev, void *data, unsigned int start, unsigned int length) in ether1_writebuffer() argument
[all …]
/openbmc/linux/drivers/pci/msi/
H A Dapi.c30 int pci_enable_msi(struct pci_dev *dev) in pci_enable_msi() argument
32 int rc = __pci_enable_msi_range(dev, 1, 1, NULL); in pci_enable_msi()
51 void pci_disable_msi(struct pci_dev *dev) in pci_disable_msi() argument
53 if (!pci_msi_enabled() || !dev || !dev->msi_enabled) in pci_disable_msi()
56 msi_lock_descs(&dev->dev); in pci_disable_msi()
57 pci_msi_shutdown(dev); in pci_disable_msi()
58 pci_free_msi_irqs(dev); in pci_disable_msi()
59 msi_unlock_descs(&dev->dev); in pci_disable_msi()
71 int pci_msix_vec_count(struct pci_dev *dev) in pci_msix_vec_count() argument
75 if (!dev->msix_cap) in pci_msix_vec_count()
[all …]

12345678910>>...934