Home
last modified time | relevance | path

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

/Linux-v4.19/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-v4.19/drivers/soundwire/
Dcadence_master.c678 struct sdw_cdns_pdi *pdi; in cdns_allocate_pdi() local
684 pdi = devm_kcalloc(cdns->dev, num, sizeof(*pdi), GFP_KERNEL); in cdns_allocate_pdi()
685 if (!pdi) in cdns_allocate_pdi()
689 pdi[i].num = i + pdi_offset; in cdns_allocate_pdi()
690 pdi[i].assigned = false; in cdns_allocate_pdi()
693 *stream = pdi; in cdns_allocate_pdi()
1029 unsigned int num, struct sdw_cdns_pdi *pdi) in cdns_find_pdi() argument
1034 if (pdi[i].assigned == true) in cdns_find_pdi()
1036 pdi[i].assigned = true; in cdns_find_pdi()
1037 return &pdi[i]; in cdns_find_pdi()
[all …]
Dintel.c298 struct sdw_cdns_pdi *pdi, in intel_pdi_get_ch_update() argument
305 pdi->ch_count = intel_pdi_get_ch_cap(sdw, pdi->num, pcm); in intel_pdi_get_ch_update()
306 ch_count += pdi->ch_count; in intel_pdi_get_ch_update()
307 pdi++; in intel_pdi_get_ch_update()
339 intel_pdi_shim_configure(struct sdw_intel *sdw, struct sdw_cdns_pdi *pdi) in intel_pdi_shim_configure() argument
345 pdi->intel_alh_id = (link_id * 16) + pdi->num + 5; in intel_pdi_shim_configure()
351 if (pdi->type != SDW_STREAM_PCM) in intel_pdi_shim_configure()
354 if (pdi->dir == SDW_DATA_DIR_RX) in intel_pdi_shim_configure()
359 pdi_conf |= (pdi->intel_alh_id << in intel_pdi_shim_configure()
361 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
173 u32 ch, u32 dir, struct sdw_cdns_pdi *pdi);
/Linux-v4.19/drivers/scsi/
Dgdth_proc.c155 gdth_diskinfo_str *pdi; in gdth_show_info() local
262 pdi = (gdth_diskinfo_str *)buf; in gdth_show_info()
272 strncpy(hrec,pdi->vendor,8); in gdth_show_info()
273 strncpy(hrec+8,pdi->product,16); in gdth_show_info()
274 strncpy(hrec+24,pdi->revision,4); in gdth_show_info()
278 'A'+i,pdi->target_id,pdi->lun,hrec); in gdth_show_info()
280 pdi->no_ldrive &= 0xffff; in gdth_show_info()
281 if (pdi->no_ldrive == 0xffff) in gdth_show_info()
284 sprintf(hrec,"%d",pdi->no_ldrive); in gdth_show_info()
287 pdi->blkcnt/(1024*1024/pdi->blksize), in gdth_show_info()
[all …]
/Linux-v4.19/drivers/media/usb/pvrusb2/
Dpvrusb2-v4l2.c51 struct pvr2_v4l2_dev *pdi; member
131 switch (fh->pdi->devbase.vfl_type) { in pvr2_querycap()
492 struct pvr2_v4l2_dev *pdi = fh->pdi; in pvr2_streamon() local
495 if (!fh->pdi->stream) { in pvr2_streamon()
501 ret = pvr2_hdw_set_stream_type(hdw, pdi->config); in pvr2_streamon()
512 if (!fh->pdi->stream) { in pvr2_streamoff()
928 struct pvr2_v4l2 *vp = fhp->pdi->v4lp; in pvr2_v4l2_release()
993 fhp->pdi = dip; in pvr2_v4l2_open()
1065 if (!fh->pdi->stream) { in pvr2_v4l2_iosetup()
1074 fh->pdi->stream)) != 0) { in pvr2_v4l2_iosetup()
[all …]