/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt76x0/ |
H A D | eeprom.c | 20 mt76x0_efuse_physical_size_check(struct mt76x02_dev *dev) in mt76x0_efuse_physical_size_check() argument 26 ret = mt76x02_get_efuse_data(dev, MT_EE_USAGE_MAP_START, data, in mt76x0_efuse_physical_size_check() 40 dev_err(dev->mt76.dev, in mt76x0_efuse_physical_size_check() 48 static void mt76x0_set_chip_cap(struct mt76x02_dev *dev) in mt76x0_set_chip_cap() argument 50 u16 nic_conf0 = mt76x02_eeprom_get(dev, MT_EE_NIC_CONF_0); in mt76x0_set_chip_cap() 51 u16 nic_conf1 = mt76x02_eeprom_get(dev, MT_EE_NIC_CONF_1); in mt76x0_set_chip_cap() 53 mt76x02_eeprom_parse_hw_cap(dev); in mt76x0_set_chip_cap() 54 dev_dbg(dev->mt76.dev, "2GHz %d 5GHz %d\n", in mt76x0_set_chip_cap() 55 dev->mphy.cap.has_2ghz, dev->mphy.cap.has_5ghz); in mt76x0_set_chip_cap() 57 if (dev->no_2ghz) { in mt76x0_set_chip_cap() [all …]
|
/openbmc/u-boot/drivers/net/ |
H A D | natsemi.c | 227 static void write_eeprom(struct eth_device *dev, long addr, int location, 230 static int read_eeprom(struct eth_device *dev, long addr, int location); 231 static int mdio_read(struct eth_device *dev, int phy_id, int location); 232 static int natsemi_init(struct eth_device *dev, bd_t * bis); 233 static void natsemi_reset(struct eth_device *dev); 234 static void natsemi_init_rxfilter(struct eth_device *dev); 235 static void natsemi_init_txd(struct eth_device *dev); 236 static void natsemi_init_rxd(struct eth_device *dev); 237 static void natsemi_set_rx_mode(struct eth_device *dev); 238 static void natsemi_check_duplex(struct eth_device *dev); [all …]
|
H A D | ns8382x.c | 250 static int mdio_read(struct eth_device *dev, int phy_id, int addr); 251 static void mdio_write(struct eth_device *dev, int phy_id, int addr, int value); 252 static void mdio_sync(struct eth_device *dev, u32 offset); 253 static int ns8382x_init(struct eth_device *dev, bd_t * bis); 254 static void ns8382x_reset(struct eth_device *dev); 255 static void ns8382x_init_rxfilter(struct eth_device *dev); 256 static void ns8382x_init_txd(struct eth_device *dev); 257 static void ns8382x_init_rxd(struct eth_device *dev); 258 static void ns8382x_set_rx_mode(struct eth_device *dev); 259 static void ns8382x_check_duplex(struct eth_device *dev); [all …]
|
/openbmc/linux/drivers/w1/masters/ |
H A D | matrox_w1.c | 66 static inline u8 matrox_w1_read_reg(struct matrox_device *dev, u8 reg) in matrox_w1_read_reg() argument 70 writeb(reg, dev->port_index); in matrox_w1_read_reg() 71 ret = readb(dev->port_data); in matrox_w1_read_reg() 77 static inline void matrox_w1_write_reg(struct matrox_device *dev, u8 reg, u8 val) in matrox_w1_write_reg() argument 79 writeb(reg, dev->port_index); in matrox_w1_write_reg() 80 writeb(val, dev->port_data); in matrox_w1_write_reg() 87 struct matrox_device *dev = data; in matrox_w1_write_ddc_bit() local 92 bit = dev->data_mask; in matrox_w1_write_ddc_bit() 94 ret = matrox_w1_read_reg(dev, MATROX_GET_CONTROL); in matrox_w1_write_ddc_bit() 95 matrox_w1_write_reg(dev, MATROX_GET_CONTROL, ((ret & ~dev->data_mask) | bit)); in matrox_w1_write_ddc_bit() [all …]
|
/openbmc/linux/drivers/media/rc/ |
H A D | rc-ir-raw.c | 26 struct rc_dev *dev = raw->dev; in ir_raw_event_thread() local 33 dev_warn_once(&dev->dev, "nonsensical timing event of duration 0"); in ir_raw_event_thread() 36 dev_warn_once(&dev->dev, "two consecutive events of type %s", in ir_raw_event_thread() 40 if (dev->enabled_protocols & in ir_raw_event_thread() 42 handler->decode(dev, ev); in ir_raw_event_thread() 43 lirc_raw_event(dev, ev); in ir_raw_event_thread() 72 int ir_raw_event_store(struct rc_dev *dev, struct ir_raw_event *ev) in ir_raw_event_store() argument 74 if (!dev->raw) in ir_raw_event_store() 77 dev_dbg(&dev->dev, "sample: (%05dus %s)\n", in ir_raw_event_store() 80 if (!kfifo_put(&dev->raw->kfifo, *ev)) { in ir_raw_event_store() [all …]
|
H A D | lirc_dev.c | 38 void lirc_raw_event(struct rc_dev *dev, struct ir_raw_event ev) in lirc_raw_event() argument 53 dev_dbg(&dev->dev, "delivering overflow to lirc_dev\n"); in lirc_raw_event() 58 dev_dbg(&dev->dev, "carrier report (freq: %d)\n", sample); in lirc_raw_event() 62 dev->gap_start = ktime_get(); in lirc_raw_event() 65 dev_dbg(&dev->dev, "timeout report (duration: %d)\n", sample); in lirc_raw_event() 69 if (dev->gap_start) { in lirc_raw_event() 71 dev->gap_start); in lirc_raw_event() 76 spin_lock_irqsave(&dev->lirc_fh_lock, flags); in lirc_raw_event() 77 list_for_each_entry(fh, &dev->lirc_fh, list) in lirc_raw_event() 79 spin_unlock_irqrestore(&dev->lirc_fh_lock, flags); in lirc_raw_event() [all …]
|
/openbmc/linux/drivers/media/usb/em28xx/ |
H A D | em28xx-camera.c | 31 static int em28xx_initialize_mt9m111(struct em28xx *dev) in em28xx_initialize_mt9m111() argument 42 i2c_master_send(&dev->i2c_client[dev->def_i2c_bus], in em28xx_initialize_mt9m111() 51 static int em28xx_initialize_mt9m001(struct em28xx *dev) in em28xx_initialize_mt9m001() argument 71 i2c_master_send(&dev->i2c_client[dev->def_i2c_bus], in em28xx_initialize_mt9m001() 82 static int em28xx_probe_sensor_micron(struct em28xx *dev) in em28xx_probe_sensor_micron() argument 88 struct i2c_client *client = &dev->i2c_client[dev->def_i2c_bus]; in em28xx_probe_sensor_micron() 90 dev->em28xx_sensor = EM28XX_NOSENSOR; in em28xx_probe_sensor_micron() 97 dev_err(&dev->intf->dev, in em28xx_probe_sensor_micron() 106 dev_err(&dev->intf->dev, in em28xx_probe_sensor_micron() 127 dev->em28xx_sensor = EM28XX_MT9M111; in em28xx_probe_sensor_micron() [all …]
|
H A D | em28xx-dvb.c | 76 dev_printk(KERN_DEBUG, &dev->intf->dev, \ 105 static inline void print_err_status(struct em28xx *dev, in print_err_status() argument 144 static inline int em28xx_dvb_urb_data_copy(struct em28xx *dev, struct urb *urb) in em28xx_dvb_urb_data_copy() argument 148 if (!dev) in em28xx_dvb_urb_data_copy() 151 if (dev->disconnected) in em28xx_dvb_urb_data_copy() 155 print_err_status(dev, -1, urb->status); in em28xx_dvb_urb_data_copy() 167 print_err_status(dev, i, urb->status); in em28xx_dvb_urb_data_copy() 173 dvb_dmx_swfilter(&dev->dvb->demux, urb->transfer_buffer, in em28xx_dvb_urb_data_copy() 177 print_err_status(dev, i, in em28xx_dvb_urb_data_copy() 184 dvb_dmx_swfilter(&dev->dvb->demux, in em28xx_dvb_urb_data_copy() [all …]
|
/openbmc/linux/drivers/media/platform/sunxi/sun8i-di/ |
H A D | sun8i-di.c | 33 static inline u32 deinterlace_read(struct deinterlace_dev *dev, u32 reg) in deinterlace_read() argument 35 return readl(dev->base + reg); in deinterlace_read() 38 static inline void deinterlace_write(struct deinterlace_dev *dev, in deinterlace_write() argument 41 writel(value, dev->base + reg); in deinterlace_write() 44 static inline void deinterlace_set_bits(struct deinterlace_dev *dev, in deinterlace_set_bits() argument 47 writel(readl(dev->base + reg) | bits, dev->base + reg); in deinterlace_set_bits() 50 static inline void deinterlace_clr_set_bits(struct deinterlace_dev *dev, in deinterlace_clr_set_bits() argument 53 u32 val = readl(dev->base + reg); in deinterlace_clr_set_bits() 58 writel(val, dev->base + reg); in deinterlace_clr_set_bits() 64 struct deinterlace_dev *dev = ctx->dev; in deinterlace_device_run() local [all …]
|
/openbmc/linux/sound/aoa/soundbus/i2sbus/ |
H A D | core.c | 49 r->space = dma_alloc_coherent(&macio_get_pci_dev(i2sdev->macio)->dev, in alloc_dbdma_descriptor_ring() 66 dma_free_coherent(&macio_get_pci_dev(i2sdev->macio)->dev, in free_dbdma_descriptor_ring() 70 static void i2sbus_release_dev(struct device *dev) in i2sbus_release_dev() argument 75 i2sdev = container_of(dev, struct i2sbus_dev, sound.ofdev.dev); in i2sbus_release_dev() 92 struct i2sbus_dev *dev = devid; in i2sbus_bus_intr() local 95 spin_lock(&dev->low_lock); in i2sbus_bus_intr() 96 intreg = in_le32(&dev->intfregs->intr_ctl); in i2sbus_bus_intr() 99 out_le32(&dev->intfregs->intr_ctl, intreg); in i2sbus_bus_intr() 101 spin_unlock(&dev->low_lock); in i2sbus_bus_intr() 156 struct i2sbus_dev *dev; in i2sbus_add_dev() local [all …]
|
/openbmc/linux/sound/soc/bcm/ |
H A D | bcm2835-i2s.c | 113 struct device *dev; member 128 static void bcm2835_i2s_start_clock(struct bcm2835_i2s_dev *dev) in bcm2835_i2s_start_clock() argument 130 unsigned int provider = dev->fmt & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK; in bcm2835_i2s_start_clock() 132 if (dev->clk_prepared) in bcm2835_i2s_start_clock() 138 clk_prepare_enable(dev->clk); in bcm2835_i2s_start_clock() 139 dev->clk_prepared = true; in bcm2835_i2s_start_clock() 146 static void bcm2835_i2s_stop_clock(struct bcm2835_i2s_dev *dev) in bcm2835_i2s_stop_clock() argument 148 if (dev->clk_prepared) in bcm2835_i2s_stop_clock() 149 clk_disable_unprepare(dev->clk); in bcm2835_i2s_stop_clock() 150 dev->clk_prepared = false; in bcm2835_i2s_stop_clock() [all …]
|
/openbmc/linux/drivers/net/appletalk/ |
H A D | cops.c | 183 static int cops_probe1 (struct net_device *dev, int ioaddr); 186 static int cops_open (struct net_device *dev); 187 static int cops_jumpstart (struct net_device *dev); 188 static void cops_reset (struct net_device *dev, int sleep); 189 static void cops_load (struct net_device *dev); 190 static int cops_nodeid (struct net_device *dev, int nodeid); 194 static void cops_timeout(struct net_device *dev, unsigned int txqueue); 195 static void cops_rx (struct net_device *dev); 197 struct net_device *dev); 198 static void set_multicast_list (struct net_device *dev); [all …]
|
/openbmc/u-boot/drivers/video/ |
H A D | logicore_dp_tx.c | 220 static u32 get_reg(struct udevice *dev, u32 reg) in get_reg() argument 222 struct dp_tx *dp_tx = dev_get_priv(dev); in get_reg() 227 res = axi_read(dev->parent, dp_tx->base + reg, &value, AXI_SIZE_32); in get_reg() 240 static void set_reg(struct udevice *dev, u32 reg, u32 value) in set_reg() argument 242 struct dp_tx *dp_tx = dev_get_priv(dev); in set_reg() 244 axi_write(dev->parent, dp_tx->base + reg, &value, AXI_SIZE_32); in set_reg() 256 static bool is_connected(struct udevice *dev) in is_connected() argument 261 int status = get_reg(dev, REG_INTERRUPT_SIG_STATE) & in is_connected() 280 static int wait_phy_ready(struct udevice *dev, u32 mask) in wait_phy_ready() argument 287 phy_status = get_reg(dev, REG_PHY_STATUS) & mask; in wait_phy_ready() [all …]
|
/openbmc/qemu/tests/docker/dockerfiles/ |
H A D | debian.docker | 34 libaio-dev \ 36 libasound2-dev \ 37 libattr1-dev \ 38 libbpf-dev \ 39 libbrlapi-dev \ 40 libbz2-dev \ 41 libc6-dev \ 42 libcacard-dev \ 43 libcap-ng-dev \ 44 libcapstone-dev \ [all …]
|
/openbmc/linux/drivers/mcb/ |
H A D | mcb-core.c | 18 struct mcb_device *dev) in mcb_match_id() argument 22 if (ids->device == dev->id) in mcb_match_id() 31 static int mcb_match(struct device *dev, struct device_driver *drv) in mcb_match() argument 34 struct mcb_device *mdev = to_mcb_device(dev); in mcb_match() 44 static int mcb_uevent(const struct device *dev, struct kobj_uevent_env *env) in mcb_uevent() argument 46 const struct mcb_device *mdev = to_mcb_device(dev); in mcb_uevent() 56 static int mcb_probe(struct device *dev) in mcb_probe() argument 58 struct mcb_driver *mdrv = to_mcb_driver(dev->driver); in mcb_probe() 59 struct mcb_device *mdev = to_mcb_device(dev); in mcb_probe() 68 carrier_mod = mdev->dev.parent->driver->owner; in mcb_probe() [all …]
|
/openbmc/linux/drivers/net/dsa/microchip/ |
H A D | ksz8795.c | 29 static void ksz_cfg(struct ksz_device *dev, u32 addr, u8 bits, bool set) in ksz_cfg() argument 31 regmap_update_bits(ksz_regmap_8(dev), addr, bits, set ? bits : 0); in ksz_cfg() 34 static void ksz_port_cfg(struct ksz_device *dev, int port, int offset, u8 bits, in ksz_port_cfg() argument 37 regmap_update_bits(ksz_regmap_8(dev), PORT_CTRL_ADDR(port, offset), in ksz_port_cfg() 41 static int ksz8_ind_write8(struct ksz_device *dev, u8 table, u16 addr, u8 data) in ksz8_ind_write8() argument 47 regs = dev->info->regs; in ksz8_ind_write8() 49 mutex_lock(&dev->alu_mutex); in ksz8_ind_write8() 52 ret = ksz_write16(dev, regs[REG_IND_CTRL_0], ctrl_addr); in ksz8_ind_write8() 54 ret = ksz_write8(dev, regs[REG_IND_BYTE], data); in ksz8_ind_write8() 56 mutex_unlock(&dev->alu_mutex); in ksz8_ind_write8() [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt7601u/ |
H A D | dma.c | 11 static int mt7601u_submit_rx_buf(struct mt7601u_dev *dev, 28 mt7601u_rx_skb_from_seg(struct mt7601u_dev *dev, struct mt7601u_rxwi *rxwi, in mt7601u_rx_skb_from_seg() argument 38 true_len = mt76_mac_process_rx(dev, skb, data, rxwi); in mt7601u_rx_skb_from_seg() 70 dev_err_ratelimited(dev->dev, "Error: incorrect frame len:%u hdr:%u\n", in mt7601u_rx_skb_from_seg() 76 static void mt7601u_rx_process_seg(struct mt7601u_dev *dev, u8 *data, in mt7601u_rx_process_seg() argument 98 dev_err_once(dev->dev, "Error: RXWI zero fields are set\n"); in mt7601u_rx_process_seg() 100 dev_err_once(dev->dev, "Error: RX path seen a non-pkt urb\n"); in mt7601u_rx_process_seg() 102 trace_mt_rx(dev, rxwi, fce_info); in mt7601u_rx_process_seg() 104 skb = mt7601u_rx_skb_from_seg(dev, rxwi, data, seg_len, truesize, p); in mt7601u_rx_process_seg() 111 ieee80211_rx_list(dev->hw, NULL, skb, list); in mt7601u_rx_process_seg() [all …]
|
/openbmc/linux/drivers/net/ethernet/8390/ |
H A D | wd.c | 50 static int wd_probe1(struct net_device *dev, int ioaddr); 52 static int wd_open(struct net_device *dev); 53 static void wd_reset_8390(struct net_device *dev); 54 static void wd_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, 56 static void wd_block_input(struct net_device *dev, int count, 58 static void wd_block_output(struct net_device *dev, int count, 60 static int wd_close(struct net_device *dev); 86 static int __init do_wd_probe(struct net_device *dev) in do_wd_probe() argument 90 int base_addr = dev->base_addr; in do_wd_probe() 91 int irq = dev->irq; in do_wd_probe() [all …]
|
/openbmc/linux/drivers/usb/host/ |
H A D | ohci-platform.c | 44 static int ohci_platform_power_on(struct platform_device *dev) in ohci_platform_power_on() argument 46 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_platform_power_on() 65 static void ohci_platform_power_off(struct platform_device *dev) in ohci_platform_power_off() argument 67 struct usb_hcd *hcd = platform_get_drvdata(dev); in ohci_platform_power_off() 89 static int ohci_platform_probe(struct platform_device *dev) in ohci_platform_probe() argument 93 struct usb_ohci_pdata *pdata = dev_get_platdata(&dev->dev); in ohci_platform_probe() 108 err = dma_coerce_mask_and_coherent(&dev->dev, DMA_BIT_MASK(32)); in ohci_platform_probe() 112 irq = platform_get_irq(dev, 0); in ohci_platform_probe() 116 hcd = usb_create_hcd(&ohci_platform_hc_driver, &dev->dev, in ohci_platform_probe() 117 dev_name(&dev->dev)); in ohci_platform_probe() [all …]
|
/openbmc/linux/drivers/media/pci/tw68/ |
H A D | tw68-core.c | 84 static int tw68_hw_init1(struct tw68_dev *dev) in tw68_hw_init1() argument 178 mutex_init(&dev->lock); in tw68_hw_init1() 179 spin_lock_init(&dev->slock); in tw68_hw_init1() 182 tw68_video_init1(dev); in tw68_hw_init1() 188 struct tw68_dev *dev = dev_id; in tw68_irq() local 192 status = orig = tw_readl(TW68_INTSTAT) & dev->pci_irqmask; in tw68_irq() 197 if (status & dev->board_virqmask) /* video interrupt */ in tw68_irq() 198 tw68_irq_video_done(dev, status); in tw68_irq() 199 status = tw_readl(TW68_INTSTAT) & dev->pci_irqmask; in tw68_irq() 203 dev_dbg(&dev->pci->dev, "%s: **** INTERRUPT NOT HANDLED - clearing mask (orig 0x%08x, cur 0x%08x)", in tw68_irq() [all …]
|
/openbmc/linux/drivers/cxl/core/ |
H A D | pmem.c | 26 static void cxl_nvdimm_bridge_release(struct device *dev) in cxl_nvdimm_bridge_release() argument 28 struct cxl_nvdimm_bridge *cxl_nvb = to_cxl_nvdimm_bridge(dev); in cxl_nvdimm_bridge_release() 45 struct cxl_nvdimm_bridge *to_cxl_nvdimm_bridge(struct device *dev) in to_cxl_nvdimm_bridge() argument 47 if (dev_WARN_ONCE(dev, dev->type != &cxl_nvdimm_bridge_type, in to_cxl_nvdimm_bridge() 50 return container_of(dev, struct cxl_nvdimm_bridge, dev); in to_cxl_nvdimm_bridge() 54 bool is_cxl_nvdimm_bridge(struct device *dev) in is_cxl_nvdimm_bridge() argument 56 return dev->type == &cxl_nvdimm_bridge_type; in is_cxl_nvdimm_bridge() 60 static int match_nvdimm_bridge(struct device *dev, void *data) in match_nvdimm_bridge() argument 62 return is_cxl_nvdimm_bridge(dev); in match_nvdimm_bridge() 68 struct device *dev; in cxl_find_nvdimm_bridge() local [all …]
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_context.c | 60 void drm_legacy_ctxbitmap_free(struct drm_device * dev, int ctx_handle) in drm_legacy_ctxbitmap_free() argument 62 if (!drm_core_check_feature(dev, DRIVER_LEGACY)) in drm_legacy_ctxbitmap_free() 65 mutex_lock(&dev->struct_mutex); in drm_legacy_ctxbitmap_free() 66 idr_remove(&dev->ctx_idr, ctx_handle); in drm_legacy_ctxbitmap_free() 67 mutex_unlock(&dev->struct_mutex); in drm_legacy_ctxbitmap_free() 79 static int drm_legacy_ctxbitmap_next(struct drm_device * dev) in drm_legacy_ctxbitmap_next() argument 83 mutex_lock(&dev->struct_mutex); in drm_legacy_ctxbitmap_next() 84 ret = idr_alloc(&dev->ctx_idr, NULL, DRM_RESERVED_CONTEXTS, 0, in drm_legacy_ctxbitmap_next() 86 mutex_unlock(&dev->struct_mutex); in drm_legacy_ctxbitmap_next() 97 void drm_legacy_ctxbitmap_init(struct drm_device * dev) in drm_legacy_ctxbitmap_init() argument [all …]
|
/openbmc/u-boot/fs/yaffs2/ |
H A D | yaffs_summary.c | 55 static void yaffs_summary_clear(struct yaffs_dev *dev) in yaffs_summary_clear() argument 57 if (!dev->sum_tags) in yaffs_summary_clear() 59 memset(dev->sum_tags, 0, dev->chunks_per_summary * in yaffs_summary_clear() 64 void yaffs_summary_deinit(struct yaffs_dev *dev) in yaffs_summary_deinit() argument 66 kfree(dev->sum_tags); in yaffs_summary_deinit() 67 dev->sum_tags = NULL; in yaffs_summary_deinit() 68 kfree(dev->gc_sum_tags); in yaffs_summary_deinit() 69 dev->gc_sum_tags = NULL; in yaffs_summary_deinit() 70 dev->chunks_per_summary = 0; in yaffs_summary_deinit() 73 int yaffs_summary_init(struct yaffs_dev *dev) in yaffs_summary_init() argument [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ath6kl/ |
H A D | hif.c | 117 static int ath6kl_hif_proc_dbg_intr(struct ath6kl_device *dev) in ath6kl_hif_proc_dbg_intr() argument 128 ret = hif_read_write_sync(dev->ar, COUNT_DEC_ADDRESS, in ath6kl_hif_proc_dbg_intr() 133 ath6kl_hif_dump_fw_crash(dev->ar); in ath6kl_hif_proc_dbg_intr() 134 ath6kl_read_fwlogs(dev->ar); in ath6kl_hif_proc_dbg_intr() 135 ath6kl_recovery_err_notify(dev->ar, ATH6KL_FW_ASSERT); in ath6kl_hif_proc_dbg_intr() 141 int ath6kl_hif_poll_mboxmsg_rx(struct ath6kl_device *dev, u32 *lk_ahd, in ath6kl_hif_poll_mboxmsg_rx() argument 150 status = hif_read_write_sync(dev->ar, HOST_INT_STATUS_ADDRESS, in ath6kl_hif_poll_mboxmsg_rx() 151 (u8 *) &dev->irq_proc_reg, in ath6kl_hif_poll_mboxmsg_rx() 152 sizeof(dev->irq_proc_reg), in ath6kl_hif_poll_mboxmsg_rx() 161 if (dev->irq_proc_reg.host_int_status & htc_mbox) { in ath6kl_hif_poll_mboxmsg_rx() [all …]
|
/openbmc/linux/drivers/net/can/usb/peak_usb/ |
H A D | pcan_usb_core.c | 58 static ssize_t can_channel_id_show(struct device *dev, struct device_attribute *attr, char *buf) in can_channel_id_show() argument 60 struct net_device *netdev = to_net_dev(dev); in can_channel_id_show() 235 struct peak_usb_device *dev = urb->context; in peak_usb_read_bulk_callback() local 239 netdev = dev->netdev; in peak_usb_read_bulk_callback() 264 if ((urb->actual_length > 0) && (dev->adapter->dev_decode_buf)) { in peak_usb_read_bulk_callback() 266 if (dev->state & PCAN_USB_STATE_STARTED) { in peak_usb_read_bulk_callback() 267 err = dev->adapter->dev_decode_buf(dev, urb); in peak_usb_read_bulk_callback() 276 usb_fill_bulk_urb(urb, dev->udev, in peak_usb_read_bulk_callback() 277 usb_rcvbulkpipe(dev->udev, dev->ep_msg_in), in peak_usb_read_bulk_callback() 278 urb->transfer_buffer, dev->adapter->rx_buffer_size, in peak_usb_read_bulk_callback() [all …]
|