/drivers/dca/ |
H A D | dca-sysfs.c | 38 struct device *cd; local 41 cd = device_create(dca_class, dca->cd, MKDEV(0, slot + 1), NULL, 43 if (IS_ERR(cd)) 44 return PTR_ERR(cd); 55 struct device *cd; local 70 cd = device_create(dca_class, dev, MKDEV(0, 0), NULL, "dca%d", dca->id); 71 if (IS_ERR(cd)) { 75 return PTR_ERR(cd); 77 dca->cd [all...] |
/drivers/zorro/ |
H A D | zorro-sysfs.c | 70 struct ConfigDev cd; local 73 memset(&cd, 0, sizeof(cd)); 74 cd.cd_Rom = z->rom; 75 cd.cd_SlotAddr = cpu_to_be16(z->slotaddr); 76 cd.cd_SlotSize = cpu_to_be16(z->slotsize); 77 cd.cd_BoardAddr = cpu_to_be32(zorro_resource_start(z)); 78 cd.cd_BoardSize = cpu_to_be32(zorro_resource_len(z)); 80 return memory_read_from_buffer(buf, count, &off, &cd, sizeof(cd)); [all...] |
H A D | proc.c | 33 struct ConfigDev cd; local 44 memset(&cd, 0, sizeof(cd)); 45 cd.cd_Rom = z->rom; 46 cd.cd_SlotAddr = cpu_to_be16(z->slotaddr); 47 cd.cd_SlotSize = cpu_to_be16(z->slotsize); 48 cd.cd_BoardAddr = cpu_to_be32(zorro_resource_start(z)); 49 cd.cd_BoardSize = cpu_to_be32(zorro_resource_len(z)); 51 if (copy_to_user(buf, (void *)&cd + pos, nbytes))
|
/drivers/scsi/ |
H A D | sr_vendor.c | 66 void sr_vendor_init(Scsi_CD *cd) argument 69 cd->vendor = VENDOR_SCSI3; 71 const char *vendor = cd->device->vendor; 72 const char *model = cd->device->model; 75 cd->vendor = VENDOR_SCSI3; 76 if (cd->readcd_known) 80 if (cd->device->type == TYPE_WORM) { 81 cd->vendor = VENDOR_WRITER; 84 cd->vendor = VENDOR_NEC; 96 cd 109 sr_set_blocklength(Scsi_CD *cd, int blocklength) argument 160 Scsi_CD *cd = cdi->handle; local [all...] |
H A D | sr_ioctl.c | 37 #define SR_GFP_DMA(cd) (((cd)->device->host->unchecked_isa_dma) ? GFP_DMA : 0) 42 struct scsi_cd *cd = cdi->handle; local 47 buffer = kmalloc(32, GFP_KERNEL | SR_GFP_DMA(cd)); 60 result = sr_do_ioctl(cd, &cgc); 72 struct scsi_cd *cd = cdi->handle; local 77 buffer = kmalloc(32, GFP_KERNEL | SR_GFP_DMA(cd)); 91 result = sr_do_ioctl(cd, &cgc); 161 struct scsi_cd *cd = cdi->handle; local 174 result = sr_do_ioctl(cd, 185 sr_do_ioctl(Scsi_CD *cd, struct packet_command *cgc) argument 286 Scsi_CD *cd = cdi->handle; local 299 Scsi_CD *cd = cdi->handle; local 307 struct scsi_cd *cd = cdi->handle; local 364 Scsi_CD *cd = cdi->handle; local 396 Scsi_CD *cd = cdi->handle; local 406 Scsi_CD *cd = cdi->handle; local 439 Scsi_CD *cd = cdi->handle; local 493 sr_read_cd(Scsi_CD *cd, unsigned char *dest, int lba, int format, int blksize) argument 535 sr_read_sector(Scsi_CD *cd, int lba, int blksize, unsigned char *dest) argument 581 sr_is_xa(Scsi_CD *cd) argument [all...] |
H A D | sr.c | 145 struct scsi_cd *cd = dev_get_drvdata(dev); local 147 if (cd->media_present) 159 struct scsi_cd *cd = NULL; local 164 cd = scsi_cd(disk); 165 kref_get(&cd->kref); 166 if (scsi_device_get(cd->device)) { 167 kref_put(&cd->kref, sr_kref_release); 168 cd = NULL; 172 return cd; 175 static void scsi_cd_put(struct scsi_cd *cd) argument 229 struct scsi_cd *cd = cdi->handle; local 322 struct scsi_cd *cd = scsi_cd(SCpnt->request->rq_disk); local 386 struct scsi_cd *cd; local 519 struct scsi_cd *cd; local 535 struct scsi_cd *cd = scsi_cd(disk); local 545 struct scsi_cd *cd = scsi_cd(bdev->bd_disk); local 587 struct scsi_cd *cd = scsi_cd(disk); local 597 struct scsi_cd *cd = scsi_cd(disk); local 626 struct scsi_cd *cd = cdi->handle; local 646 struct scsi_cd *cd = cdi->handle; local 657 struct scsi_cd *cd; local 753 get_sectorsize(struct scsi_cd *cd) argument 834 get_capabilities(struct scsi_cd *cd) argument 945 struct scsi_cd *cd = cdi->handle; local 970 struct scsi_cd *cd = container_of(kref, struct scsi_cd, kref); local 988 struct scsi_cd *cd = dev_get_drvdata(dev); local [all...] |
/drivers/media/ |
H A D | media-devnode.c | 60 static void media_devnode_release(struct device *cd) argument 62 struct media_devnode *mdev = to_media_devnode(cd);
|
H A D | media-device.c | 344 static ssize_t show_model(struct device *cd, argument 347 struct media_device *mdev = to_media_device(to_media_devnode(cd));
|
/drivers/misc/genwqe/ |
H A D | card_sysfs.c | 51 struct genwqe_dev *cd = dev_get_drvdata(dev); local 54 return sprintf(buf, "%s\n", cs[cd->card_state]); 62 struct genwqe_dev *cd = dev_get_drvdata(dev); local 64 genwqe_read_app_id(cd, app_name, sizeof(app_name)); 73 struct genwqe_dev *cd = dev_get_drvdata(dev); local 75 slu_id = __genwqe_readq(cd, IO_SLU_UNITCFG); 76 app_id = __genwqe_readq(cd, IO_APP_UNITCFG); 86 struct genwqe_dev *cd = dev_get_drvdata(dev); local 88 card_type = genwqe_card_type(cd); 98 struct genwqe_dev *cd local 110 struct genwqe_dev *cd = dev_get_drvdata(dev); local 122 struct genwqe_dev *cd = dev_get_drvdata(dev); local 134 struct genwqe_dev *cd = dev_get_drvdata(dev); local 161 struct genwqe_dev *cd = dev_get_drvdata(dev); local 177 struct genwqe_dev *cd = dev_get_drvdata(dev); local 198 struct genwqe_dev *cd = dev_get_drvdata(dev); local 224 struct genwqe_dev *cd = dev_get_drvdata(dev); local 283 struct genwqe_dev *cd = dev_get_drvdata(dev); local [all...] |
H A D | card_debugfs.c | 66 struct genwqe_dev *cd = s->private; local 70 entries = genwqe_ffdc_buff_size(cd, uid); 81 genwqe_stop_traps(cd); /* halt the traps while dumping data */ 82 genwqe_ffdc_buff_read(cd, uid, regs, entries); 83 genwqe_start_traps(cd); 113 struct genwqe_dev *cd = s->private; local 115 dbg_uidn_show(s, cd->ffdc[uid].regs, cd->ffdc[uid].entries); 142 struct genwqe_dev *cd = s->private; local 150 genwqe_stop_traps(cd); 171 struct genwqe_dev *cd = s->private; local 195 struct genwqe_dev *cd = s->private; local 216 struct genwqe_dev *cd = s->private; local 234 struct genwqe_dev *cd = s->private; local 307 struct genwqe_dev *cd = s->private; local 344 genwqe_init_debugfs(struct genwqe_dev *cd) argument 505 genqwe_exit_debugfs(struct genwqe_dev *cd) argument [all...] |
H A D | card_base.c | 125 struct genwqe_dev *cd; local 134 cd = kzalloc(sizeof(struct genwqe_dev), GFP_KERNEL); 135 if (!cd) 138 cd->card_idx = i; 139 cd->class_genwqe = class_genwqe; 140 cd->debugfs_genwqe = debugfs_genwqe; 146 cd->use_platform_recovery = CONFIG_GENWQE_PLATFORM_ERROR_RECOVERY; 148 init_waitqueue_head(&cd->queue_waitq); 150 spin_lock_init(&cd->file_lock); 151 INIT_LIST_HEAD(&cd 166 genwqe_dev_free(struct genwqe_dev *cd) argument 183 genwqe_bus_reset(struct genwqe_dev *cd) argument 249 genwqe_need_err_masking(struct genwqe_dev *cd) argument 254 genwqe_tweak_hardware(struct genwqe_dev *cd) argument 281 genwqe_recovery_on_fatal_gfir_required(struct genwqe_dev *cd) argument 286 genwqe_flash_readback_fails(struct genwqe_dev *cd) argument 302 genwqe_T_psec(struct genwqe_dev *cd) argument 323 genwqe_setup_pf_jtimer(struct genwqe_dev *cd) argument 343 genwqe_setup_vf_jtimer(struct genwqe_dev *cd) argument 369 genwqe_ffdc_buffs_alloc(struct genwqe_dev *cd) argument 402 genwqe_ffdc_buffs_free(struct genwqe_dev *cd) argument 412 genwqe_read_ids(struct genwqe_dev *cd) argument 460 genwqe_start(struct genwqe_dev *cd) argument 566 genwqe_stop(struct genwqe_dev *cd) argument 590 genwqe_recover_card(struct genwqe_dev *cd, int fatal_err) argument 622 genwqe_health_check_cond(struct genwqe_dev *cd, u64 *gfir) argument 638 genwqe_fir_checking(struct genwqe_dev *cd) argument 805 genwqe_platform_recovery(struct genwqe_dev *cd) argument 847 genwqe_reload_bistream(struct genwqe_dev *cd) argument 913 struct genwqe_dev *cd = data; local 1028 genwqe_health_check_start(struct genwqe_dev *cd) argument 1049 genwqe_health_thread_running(struct genwqe_dev *cd) argument 1054 genwqe_health_check_stop(struct genwqe_dev *cd) argument 1069 genwqe_pci_setup(struct genwqe_dev *cd) argument 1155 genwqe_pci_remove(struct genwqe_dev *cd) argument 1180 struct genwqe_dev *cd; local 1235 struct genwqe_dev *cd = dev_get_drvdata(&pci_dev->dev); local 1258 struct genwqe_dev *cd; local 1286 struct genwqe_dev *cd = dev_get_drvdata(&pci_dev->dev); local 1306 struct genwqe_dev *cd = dev_get_drvdata(&pci_dev->dev); local 1324 struct genwqe_dev *cd = dev_get_drvdata(&dev->dev); local [all...] |
H A D | card_dev.c | 40 static int genwqe_open_files(struct genwqe_dev *cd) argument 45 spin_lock_irqsave(&cd->file_lock, flags); 46 rc = list_empty(&cd->file_list); 47 spin_unlock_irqrestore(&cd->file_lock, flags); 51 static void genwqe_add_file(struct genwqe_dev *cd, struct genwqe_file *cfile) argument 56 spin_lock_irqsave(&cd->file_lock, flags); 57 list_add(&cfile->list, &cd->file_list); 58 spin_unlock_irqrestore(&cd->file_lock, flags); 61 static int genwqe_del_file(struct genwqe_dev *cd, struct genwqe_file *cfile) argument 65 spin_lock_irqsave(&cd 200 struct genwqe_dev *cd = cfile->cd; local 238 struct genwqe_dev *cd = cfile->cd; local 262 genwqe_kill_fasync(struct genwqe_dev *cd, int sig) argument 278 genwqe_force_sig(struct genwqe_dev *cd, int sig) argument 305 struct genwqe_dev *cd; local 366 struct genwqe_dev *cd = cfile->cd; local 400 struct genwqe_dev *cd = container_of(inode->i_cdev, struct genwqe_dev, local 443 struct genwqe_dev *cd = cfile->cd; local 518 struct genwqe_dev *cd = cfile->cd; local 653 struct genwqe_dev *cd = cfile->cd; local 776 struct genwqe_dev *cd = cfile->cd; local 807 struct genwqe_dev *cd = cfile->cd; local 837 struct genwqe_dev *cd = cfile->cd; local 864 struct genwqe_dev *cd = cfile->cd; local 992 struct genwqe_dev *cd = cfile->cd; local 1011 struct genwqe_dev *cd = cfile->cd; local 1055 struct genwqe_dev *cd = cfile->cd; local 1258 genwqe_device_initialized(struct genwqe_dev *cd) argument 1271 genwqe_device_create(struct genwqe_dev *cd) argument 1330 genwqe_inform_and_stop_processes(struct genwqe_dev *cd) argument 1383 genwqe_device_remove(struct genwqe_dev *cd) argument [all...] |
H A D | card_ddcb.c | 172 static void print_ddcb_info(struct genwqe_dev *cd, struct ddcb_queue *queue) argument 177 struct pci_dev *pci_dev = cd->pci_dev; 179 spin_lock_irqsave(&cd->print_lock, flags); 183 cd->card_idx, queue->ddcb_act, queue->ddcb_next); 199 spin_unlock_irqrestore(&cd->print_lock, flags); 238 * @cd: pointer to genwqe device descriptor 250 static int ddcb_requ_finished(struct genwqe_dev *cd, struct ddcb_requ *req) argument 253 (cd->card_state != GENWQE_CARD_USED); 258 * @cd: pointer to genwqe device descriptor 274 static int enqueue_ddcb(struct genwqe_dev *cd, struc argument 371 genwqe_check_ddcb_queue(struct genwqe_dev *cd, struct ddcb_queue *queue) argument 483 __genwqe_wait_ddcb(struct genwqe_dev *cd, struct ddcb_requ *req) argument 571 get_next_ddcb(struct genwqe_dev *cd, struct ddcb_queue *queue, int *num) argument 624 __genwqe_purge_ddcb(struct genwqe_dev *cd, struct ddcb_requ *req) argument 729 genwqe_init_debug_data(struct genwqe_dev *cd, struct genwqe_debug_data *d) argument 758 __genwqe_enqueue_ddcb(struct genwqe_dev *cd, struct ddcb_requ *req, unsigned int f_flags) argument 915 __genwqe_execute_raw_ddcb(struct genwqe_dev *cd, struct genwqe_ddcb_cmd *cmd, unsigned int f_flags) argument 980 genwqe_next_ddcb_ready(struct genwqe_dev *cd) argument 1010 genwqe_ddcbs_in_flight(struct genwqe_dev *cd) argument 1023 setup_ddcb_queue(struct genwqe_dev *cd, struct ddcb_queue *queue) argument 1106 free_ddcb_queue(struct genwqe_dev *cd, struct ddcb_queue *queue) argument 1126 struct genwqe_dev *cd = (struct genwqe_dev *)dev_id; local 1174 struct genwqe_dev *cd = (struct genwqe_dev *)dev_id; local 1193 struct genwqe_dev *cd = (struct genwqe_dev *)data; local 1230 genwqe_setup_service_layer(struct genwqe_dev *cd) argument 1317 queue_wake_up_all(struct genwqe_dev *cd) argument 1342 genwqe_finish_queue(struct genwqe_dev *cd) argument 1394 genwqe_release_service_layer(struct genwqe_dev *cd) argument [all...] |
/drivers/s390/cio/ |
H A D | itcw.c | 280 * @cd: address of control data for this dcw or NULL if none is required 285 * by @cmd, @flags, @cd, @cd_count and @count to the tca of the tccb. Return 292 struct dcw *itcw_add_dcw(struct itcw *itcw, u8 cmd, u8 flags, void *cd, argument 296 flags, cd, cd_count, count);
|
H A D | fcx.c | 282 * @cd: pointer to control data for this dcw or NULL if none is required 287 * by @cmd, @flags, @cd, @cd_count and @count to the tca of the tccb. Return 295 void *cd, u8 cd_count, u32 count) 314 if (cd) 315 memcpy(&dcw->cd[0], cd, cd_count); 294 tccb_add_dcw(struct tccb *tccb, size_t tccb_size, u8 cmd, u8 flags, void *cd, u8 cd_count, u32 count) argument
|
/drivers/ide/ |
H A D | ide-cd_ioctl.c | 2 * cdrom.c IOCTLs handling for ide-cd driver. 15 #include "ide-cd.h" 38 * status. this should be supported by newer cd-r/w and all DVD etc 83 * ide-cd always generates media changed event if media is missing, which 110 struct cdrom_info *cd = drive->driver_data; local 111 struct cdrom_device_info *cdi = &cd->devinfo; 214 struct cdrom_info *cd = drive->driver_data; local 242 cdi->speed = cd->current_speed; 301 struct cdrom_info *cd = drive->driver_data; local 309 ret = blk_execute_rq(drive->queue, cd 386 struct cdrom_info *cd = drive->driver_data; local [all...] |
/drivers/infiniband/hw/qib/ |
H A D | qib_qsfp.c | 498 struct qib_qsfp_cache cd; local 505 ret = qib_refresh_qsfp_cache(ppd, &cd); 511 if (QSFP_IS_CU(cd.tech)) 512 sprintf(lenstr, "%dM ", cd.len); 515 (QSFP_PWR(cd.pwr) * 4)); 518 qib_qsfp_devtech[cd.tech >> 4]); 521 QSFP_VEND_LEN, cd.vendor); 524 QSFP_OUI(cd.oui)); 527 QSFP_PN_LEN, cd.partnum); 529 QSFP_REV_LEN, cd [all...] |
/drivers/net/wireless/ath/ |
H A D | dfs_pattern_detector.c | 158 struct channel_detector *cd) 161 if (cd == NULL) 164 cd->detectors[i]->reset(cd->detectors[i], dpd->last_pulse_ts); 169 struct channel_detector *cd) 172 if (cd == NULL) 174 list_del(&cd->head); 176 struct pri_detector *de = cd->detectors[i]; 180 kfree(cd->detectors); 181 kfree(cd); 157 channel_detector_reset(struct dfs_pattern_detector *dpd, struct channel_detector *cd) argument 168 channel_detector_exit(struct dfs_pattern_detector *dpd, struct channel_detector *cd) argument 188 struct channel_detector *cd; local 230 struct channel_detector *cd; local 245 struct channel_detector *cd; local 253 struct channel_detector *cd, *cd0; local 264 struct channel_detector *cd; local 309 struct channel_detector *cd, *cd0; local [all...] |
/drivers/staging/lustre/lustre/obdclass/ |
H A D | llog_cat.c | 558 struct llog_process_cat_data cd; local 560 cd.lpcd_first_idx = d->lpd_startidx; 561 cd.lpcd_last_idx = 0; 563 &cd, false); 592 struct llog_process_cat_data cd; local 597 cd.lpcd_first_idx = llh->llh_cat_idx; 598 cd.lpcd_last_idx = 0; 600 &d, &cd, fork); 604 cd.lpcd_first_idx = 0; 605 cd 660 struct llog_process_cat_data cd; local [all...] |
H A D | llog.c | 276 struct llog_process_cat_data *cd = lpi->lpi_catdata; local 292 if (cd != NULL) { 293 last_called_index = cd->lpcd_first_idx; 294 index = cd->lpcd_first_idx + 1; 296 if (cd != NULL && cd->lpcd_last_idx) 297 last_index = cd->lpcd_last_idx; 400 if (cd != NULL) 401 cd->lpcd_last_idx = last_called_index; 483 struct llog_process_cat_data *cd local [all...] |
/drivers/tty/hvc/ |
H A D | hvsi_lib.c | 46 static void hvsi_cd_change(struct hvsi_priv *pv, int cd) argument 48 if (cd)
|
/drivers/media/i2c/ |
H A D | msp3400-kthreads.c | 508 struct msp3400c_carrier_detect *cd; local 549 cd = msp3400c_carrier_detect_main; 560 msp3400c_set_carrier(client, cd[i].cdo, cd[i].cdo); 569 "carrier1 val: %5d / %s\n", val, cd[i].name); 575 cd = msp3400c_carrier_detect_55; 579 cd = msp3400c_carrier_detect_65; 585 cd = NULL; 592 cd = NULL; 597 msp3400c_set_carrier(client, cd[ [all...] |
/drivers/media/usb/gspca/ |
H A D | se401.c | 221 u8 *cd = gspca_dev->usb_buf; local 240 if (cd[1] != 0x41) { 245 if (!(cd[2] & SE401_FORMAT_BAYER)) { 250 if (cd[3]) 251 pr_info("ExtraFeatures: %d\n", cd[3]); 253 n = cd[4] | (cd[5] << 8); 260 widths[i] = cd[6 + i * 4 + 0] | (cd[6 + i * 4 + 1] << 8); 261 heights[i] = cd[ [all...] |
/drivers/media/v4l2-core/ |
H A D | v4l2-dev.c | 41 static ssize_t index_show(struct device *cd, argument 44 struct video_device *vdev = to_video_device(cd); 50 static ssize_t debug_show(struct device *cd, argument 53 struct video_device *vdev = to_video_device(cd); 58 static ssize_t debug_store(struct device *cd, struct device_attribute *attr, argument 61 struct video_device *vdev = to_video_device(cd); 74 static ssize_t name_show(struct device *cd, argument 77 struct video_device *vdev = to_video_device(cd); 170 static void v4l2_device_release(struct device *cd) argument 172 struct video_device *vdev = to_video_device(cd); [all...] |
/drivers/net/ethernet/8390/ |
H A D | etherh.c | 522 struct in_chunk_dir cd; local 525 if (!ecard_readchunk(&cd, ec, 0xf5, 0)) { 531 s = strchr(cd.d.string, '('); 546 dev_name(&ec->dev), cd.d.string);
|