Home
last modified time | relevance | path

Searched refs:pdi (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.4/drivers/net/wireless/intersil/orinoco/
Dhermes_dld.c87 struct pdi { struct
130 pdi_id(const struct pdi *pdi) in pdi_id() argument
132 return le16_to_cpu(pdi->id); in pdi_id()
137 pdi_len(const struct pdi *pdi) in pdi_len() argument
139 return 2 * (le16_to_cpu(pdi->len) - 1); in pdi_len()
175 static const struct pdi *
176 hermes_find_pdi(const struct pdi *first_pdi, u32 record_id, const void *end) in hermes_find_pdi()
178 const struct pdi *pdi = first_pdi; in hermes_find_pdi() local
180 end -= sizeof(struct pdi); in hermes_find_pdi()
182 while (((void *) pdi <= end) && in hermes_find_pdi()
[all …]
/Linux-v5.4/drivers/soundwire/
Dcadence_master.c812 struct sdw_cdns_pdi *pdi; in cdns_allocate_pdi() local
818 pdi = devm_kcalloc(cdns->dev, num, sizeof(*pdi), GFP_KERNEL); in cdns_allocate_pdi()
819 if (!pdi) in cdns_allocate_pdi()
823 pdi[i].num = i + pdi_offset; in cdns_allocate_pdi()
824 pdi[i].assigned = false; in cdns_allocate_pdi()
827 *stream = pdi; in cdns_allocate_pdi()
1192 struct sdw_cdns_pdi *pdi) in cdns_find_pdi() argument
1197 if (pdi[i].assigned) in cdns_find_pdi()
1199 pdi[i].assigned = true; in cdns_find_pdi()
1200 return &pdi[i]; in cdns_find_pdi()
[all …]
Dintel.c435 struct sdw_cdns_pdi *pdi, in intel_pdi_get_ch_update() argument
442 pdi->ch_count = intel_pdi_get_ch_cap(sdw, pdi->num, pcm); in intel_pdi_get_ch_update()
443 ch_count += pdi->ch_count; in intel_pdi_get_ch_update()
444 pdi++; in intel_pdi_get_ch_update()
476 intel_pdi_shim_configure(struct sdw_intel *sdw, struct sdw_cdns_pdi *pdi) in intel_pdi_shim_configure() argument
482 pdi->intel_alh_id = (link_id * 16) + pdi->num + 5; in intel_pdi_shim_configure()
488 if (pdi->type != SDW_STREAM_PCM) in intel_pdi_shim_configure()
491 if (pdi->dir == SDW_DATA_DIR_RX) in intel_pdi_shim_configure()
496 pdi_conf |= (pdi->intel_alh_id << in intel_pdi_shim_configure()
498 pdi_conf |= (pdi->l_ch_num << SDW_REG_SHIFT(SDW_SHIM_PCMSYCM_LCHN)); in intel_pdi_shim_configure()
[all …]
Dcadence_master.h45 struct sdw_cdns_pdi *pdi; member
177 u32 ch, u32 dir, struct sdw_cdns_pdi *pdi);
/Linux-v5.4/drivers/scsi/
Dgdth_proc.c167 gdth_diskinfo_str *pdi; in gdth_show_info() local
268 pdi = (gdth_diskinfo_str *)buf; in gdth_show_info()
278 strncpy(hrec,pdi->vendor,8); in gdth_show_info()
279 strncpy(hrec+8,pdi->product,16); in gdth_show_info()
280 strncpy(hrec+24,pdi->revision,4); in gdth_show_info()
284 'A'+i,pdi->target_id,pdi->lun,hrec); in gdth_show_info()
286 pdi->no_ldrive &= 0xffff; in gdth_show_info()
287 if (pdi->no_ldrive == 0xffff) in gdth_show_info()
290 sprintf(hrec,"%d",pdi->no_ldrive); in gdth_show_info()
293 pdi->blkcnt/(1024*1024/pdi->blksize), in gdth_show_info()
[all …]
/Linux-v5.4/drivers/media/usb/pvrusb2/
Dpvrusb2-v4l2.c41 struct pvr2_v4l2_dev *pdi; member
471 struct pvr2_v4l2_dev *pdi = fh->pdi; in pvr2_streamon() local
474 if (!fh->pdi->stream) { in pvr2_streamon()
480 ret = pvr2_hdw_set_stream_type(hdw, pdi->config); in pvr2_streamon()
491 if (!fh->pdi->stream) { in pvr2_streamoff()
910 struct pvr2_v4l2 *vp = fhp->pdi->v4lp; in pvr2_v4l2_release()
975 fhp->pdi = dip; in pvr2_v4l2_open()
1047 if (!fh->pdi->stream) { in pvr2_v4l2_iosetup()
1056 fh->pdi->stream)) != 0) { in pvr2_v4l2_iosetup()
1061 fh->rhp = pvr2_channel_create_mpeg_stream(fh->pdi->stream); in pvr2_v4l2_iosetup()
[all …]