Searched refs:cap (Results 1 - 25 of 252) sorted by relevance

1234567891011

/drivers/media/video/m5mols/
H A Dm5mols_capture.c61 struct m5mols_exif *exif = &info->cap.exif;
97 ret = m5mols_read_u32(sd, CAPC_IMAGE_SIZE, &info->cap.main);
99 ret = m5mols_read_u32(sd, CAPC_THUMB_SIZE, &info->cap.thumb);
101 info->cap.total = info->cap.main + info->cap.thumb;
152 size = captured ? info->cap.main : 0;
154 __func__, size, info->cap.thumb);
/drivers/pci/
H A Dpci.c165 u8 pos, int cap, int *ttl)
178 if (id == cap)
186 u8 pos, int cap)
190 return __pci_find_next_cap_ttl(bus, devfn, pos, cap, &ttl);
193 int pci_find_next_capability(struct pci_dev *dev, u8 pos, int cap) argument
196 pos + PCI_CAP_LIST_NEXT, cap);
225 * @cap: capability code
230 * support it. Possible values for @cap:
241 int pci_find_capability(struct pci_dev *dev, int cap) argument
247 pos = __pci_find_next_cap(dev->bus, dev->devfn, pos, cap);
164 __pci_find_next_cap_ttl(struct pci_bus *bus, unsigned int devfn, u8 pos, int cap, int *ttl) argument
185 __pci_find_next_cap(struct pci_bus *bus, unsigned int devfn, u8 pos, int cap) argument
265 pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap) argument
293 pci_find_ext_capability(struct pci_dev *dev, int cap) argument
344 pci_bus_find_ext_capability(struct pci_bus *bus, unsigned int devfn, int cap) argument
377 u8 cap, mask; local
831 pci_find_saved_cap( struct pci_dev *pci_dev, char cap) argument
848 u16 *cap; local
886 u16 *cap; local
939 u16 *cap; local
1041 struct pci_cap_saved_data cap[0]; member in struct:pci_saved_state
1055 struct pci_cap_saved_data *cap; local
1093 struct pci_cap_saved_data *cap; local
1927 pci_add_cap_save_buffer( struct pci_dev *dev, char cap, unsigned int size) argument
1984 u32 cap; local
2094 u32 cap; local
2174 u32 cap; local
2330 u16 cap; local
3020 u32 cap; local
3061 u8 cap; local
3318 int cap; local
3341 int cap; local
3366 int cap; local
3412 int ret, cap; local
3437 int cap, err = -EINVAL; local
3487 int ret, cap; local
3511 int cap, err = -EINVAL; local
[all...]
H A Daccess.c202 u8 cap; local
225 ret = pci_user_read_config_word(dev, vpd->cap + PCI_VPD_ADDR,
272 ret = pci_user_write_config_word(dev, vpd->cap + PCI_VPD_ADDR,
282 ret = pci_user_read_config_dword(dev, vpd->cap + PCI_VPD_DATA, &val);
328 ret = pci_user_write_config_dword(dev, vpd->cap + PCI_VPD_DATA, val);
331 ret = pci_user_write_config_word(dev, vpd->cap + PCI_VPD_ADDR,
363 u8 cap; local
365 cap = pci_find_capability(dev, PCI_CAP_ID_VPD);
366 if (!cap)
375 vpd->cap
[all...]
H A Dats.c23 u16 cap; local
36 pci_read_config_word(dev, pos + PCI_ATS_CAP, &cap);
37 ats->qdep = PCI_ATS_CAP_QDEP(cap) ? PCI_ATS_CAP_QDEP(cap) :
163 u16 cap; local
175 pci_read_config_word(dev, pos + PCI_ATS_CAP, &cap);
177 return PCI_ATS_CAP_QDEP(cap) ? PCI_ATS_CAP_QDEP(cap) :
/drivers/net/arcnet/
H A Dcapmode.c2 * Linux ARCnet driver - "cap mode" packet encapsulation.
38 #define VERSION "arcnet: cap mode (`c') encapsulation support loaded.\n"
50 BUGMSG(D_DURING, "it's a raw(cap) packet (length=%d)\n", length);
70 /* squeeze in an int for the cap encapsulation */
76 memcpy(pktbuf, pkthdrbuf, ARC_HDR_SIZE+sizeof(pkt->soft.cap.proto));
77 memcpy(pktbuf+ARC_HDR_SIZE+sizeof(pkt->soft.cap.proto)+sizeof(int),
78 pkthdrbuf+ARC_HDR_SIZE+sizeof(pkt->soft.cap.proto),
79 sizeof(struct archdr)-ARC_HDR_SIZE-sizeof(pkt->soft.cap.proto));
95 * Create the ARCnet hard/soft headers for cap mode.
96 * There aren't any soft headers in cap mod
[all...]
/drivers/xen/xen-pciback/
H A Dconf_space_capability.c33 static inline void register_capability(struct xen_pcibk_config_capability *cap) argument
35 list_add_tail(&cap->cap_list, &capabilities);
41 struct xen_pcibk_config_capability *cap; local
44 list_for_each_entry(cap, &capabilities, cap_list) {
45 cap_offset = pci_find_capability(dev, cap->capability);
48 cap->capability, cap_offset);
56 cap->fields,
/drivers/net/ethernet/sfc/
H A Dmcdi_phy.c184 static u32 mcdi_to_ethtool_cap(u32 media, u32 cap) argument
191 if (cap & (1 << MC_CMD_PHY_CAP_1000FDX_LBN))
193 if (cap & (1 << MC_CMD_PHY_CAP_10000FDX_LBN))
204 if (cap & (1 << MC_CMD_PHY_CAP_10HDX_LBN))
206 if (cap & (1 << MC_CMD_PHY_CAP_10FDX_LBN))
208 if (cap & (1 << MC_CMD_PHY_CAP_100HDX_LBN))
210 if (cap & (1 << MC_CMD_PHY_CAP_100FDX_LBN))
212 if (cap & (1 << MC_CMD_PHY_CAP_1000HDX_LBN))
214 if (cap & (1 << MC_CMD_PHY_CAP_1000FDX_LBN))
216 if (cap
231 ethtool_to_mcdi_cap(u32 cap) argument
[all...]
/drivers/media/video/zoran/
H A Dzr36016.c315 struct vfe_settings *cap,
322 cap->x, cap->y, cap->width, cap->height,
323 cap->decimation);
328 ptr->width = cap->width;
329 ptr->height = cap->height;
336 ptr->xoff = (norm->HStart ? norm->HStart : 1) + cap->x;
341 ptr->yoff = norm->VStart + cap
313 zr36016_set_video(struct videocodec *codec, struct tvnorm *norm, struct vfe_settings *cap, struct vfe_polarity *pol) argument
[all...]
/drivers/acpi/
H A Dvideo_detect.c53 long *cap = context; local
60 *cap |= ACPI_VIDEO_BACKLIGHT;
114 long *cap = context; local
130 *cap |= acpi_is_video_device(acpi_dev);
H A Dvideo.c154 struct acpi_video_bus_cap cap; member in struct:acpi_video_bus
200 struct acpi_video_device_cap cap; member in struct:acpi_video_device
446 if (device->cap._BQC || device->cap._BCQ) {
447 char *buf = device->cap._BQC ? "_BQC" : "_BCQ";
473 device->cap._BQC = device->cap._BCQ = 0;
484 device->cap._BQC = device->cap._BCQ = 0;
561 if (!video->cap
[all...]
/drivers/usb/gadget/
H A Duvc_v4l2.c178 struct v4l2_capability *cap = arg; local
180 memset(cap, 0, sizeof *cap);
181 strncpy(cap->driver, "g_uvc", sizeof(cap->driver));
182 strncpy(cap->card, cdev->gadget->name, sizeof(cap->card));
183 strncpy(cap->bus_info, dev_name(&cdev->gadget->dev),
184 sizeof cap->bus_info);
185 cap
[all...]
/drivers/char/tpm/
H A Dtpm.c492 ssize_t tpm_getcap(struct device *dev, __be32 subcap_id, cap_t *cap, argument
501 tpm_cmd.params.getcap_in.cap = subcap_id;
508 tpm_cmd.params.getcap_in.cap = TPM_CAP_FLAG;
510 tpm_cmd.params.getcap_in.cap = TPM_CAP_PROP;
516 *cap = tpm_cmd.params.getcap_out.cap;
526 tpm_cmd.params.getcap_in.cap = TPM_CAP_PROP;
545 tpm_cmd.params.getcap_in.cap = TPM_CAP_PROP;
559 timeout_cap = &tpm_cmd.params.getcap_out.cap.timeout;
581 tpm_cmd.params.getcap_in.cap
649 cap_t cap; local
665 cap_t cap; local
681 cap_t cap; local
697 cap_t cap; local
886 cap_t cap; local
981 cap_t cap; local
1007 cap_t cap; local
[all...]
/drivers/char/
H A Defirtc.c153 efi_time_cap_t cap; local
176 status = efi.get_time(&eft, &cap);
303 efi_time_cap_t cap; local
310 memset(&cap, 0, sizeof(cap));
314 efi.get_time(&eft, &cap);
359 cap.resolution, cap.accuracy, cap.sets_to_zero);
/drivers/infiniband/hw/ipath/
H A Dipath_qp.c635 attr->cap.max_send_wr = qp->s_size - 1;
636 attr->cap.max_recv_wr = qp->ibqp.srq ? 0 : qp->r_rq.size - 1;
637 attr->cap.max_send_sge = qp->s_max_sge;
638 attr->cap.max_recv_sge = qp->r_rq.max_sge;
639 attr->cap.max_inline_data = 0;
661 init_attr->cap = attr->cap;
758 if (init_attr->cap.max_send_sge > ib_ipath_max_sges ||
759 init_attr->cap.max_send_wr > ib_ipath_max_qp_wrs) {
766 if (init_attr->cap
[all...]
/drivers/platform/x86/
H A Dacer-wmi.c548 static bool has_cap(u32 cap) argument
550 if ((interface->capability & cap) != 0)
587 static acpi_status AMW0_get_u32(u32 *value, u32 cap) argument
592 switch (cap) {
657 static acpi_status AMW0_set_u32(u32 value, u32 cap) argument
665 switch (cap) {
878 static acpi_status WMID_get_u32(u32 *value, u32 cap) argument
884 switch (cap) {
914 static acpi_status WMID_set_u32(u32 value, u32 cap) argument
919 switch (cap) {
1005 wmid_v2_get_u32(u32 *value, u32 cap) argument
1112 wmid_v2_set_u32(u32 value, u32 cap) argument
1207 get_u32(u32 *value, u32 cap) argument
1236 set_u32(u32 value, u32 cap) argument
1415 u32 cap = (unsigned long)data; local
1430 acer_rfkill_register(struct device *dev, enum rfkill_type type, char *name, u32 cap) argument
[all...]
/drivers/media/dvb/ttpci/
H A Dav7110_ca.c265 ca_caps_t cap; local
267 cap.slot_num = 2;
268 cap.slot_type = (FW_CI_LL_SUPPORT(av7110->arm_app) ?
270 cap.descr_num = 16;
271 cap.descr_type = CA_ECD;
272 memcpy(parg, &cap, sizeof(cap));
/drivers/ata/
H A Dlibahci.c228 return sprintf(buf, "%x\n", hpriv->cap);
399 u32 cap, cap2, vers, port_map; local
408 hpriv->saved_cap = cap = readl(mmio + HOST_CAP);
420 if ((cap & HOST_CAP_64) && (hpriv->flags & AHCI_HFLAG_32BIT_ONLY)) {
422 cap &= ~HOST_CAP_64;
425 if ((cap & HOST_CAP_NCQ) && (hpriv->flags & AHCI_HFLAG_NO_NCQ)) {
427 cap &= ~HOST_CAP_NCQ;
430 if (!(cap & HOST_CAP_NCQ) && (hpriv->flags & AHCI_HFLAG_YES_NCQ)) {
432 cap |= HOST_CAP_NCQ;
435 if ((cap
2128 u32 vers, cap, cap2, impl, speed; local
[all...]
/drivers/media/video/saa7134/
H A Dsaa7134-video.c1304 q = &fh->cap;
1364 videobuf_queue_sg_init(&fh->cap, &video_qops,
1426 mutex_lock(&fh->cap.vb_lock);
1427 if (!list_empty(&fh->cap.stream))
1428 buf = list_entry(fh->cap.stream.next, struct videobuf_buffer, stream);
1430 mutex_lock(&fh->cap.vb_lock);
1431 if (UNSET == fh->cap.read_off) {
1435 if (0 != fh->cap.ops->buf_prepare(&fh->cap,fh->cap
1803 saa7134_querycap(struct file *file, void *priv, struct v4l2_capability *cap) argument
1920 saa7134_cropcap(struct file *file, void *priv, struct v4l2_cropcap *cap) argument
2302 radio_querycap(struct file *file, void *priv, struct v4l2_capability *cap) argument
[all...]
/drivers/usb/host/
H A Dpci-quirks.c554 u32 cap, u8 offset)
565 if (try_handoff && (cap & EHCI_USBLEGSUP_BIOS)) {
592 while ((cap & EHCI_USBLEGSUP_BIOS) && (msec > 0)) {
596 pci_read_config_dword(pdev, offset, &cap);
600 if (cap & EHCI_USBLEGSUP_BIOS) {
606 " (BIOS bug?) %08x\n", cap);
623 u32 hcc_params, cap, val; local
644 pci_read_config_dword(pdev, offset, &cap);
646 switch (cap & 0xff) {
648 ehci_bios_handoff(pdev, op_reg_base, cap, offse
552 ehci_bios_handoff(struct pci_dev *pdev, void __iomem *op_reg_base, u32 cap, u8 offset) argument
[all...]
/drivers/infiniband/core/
H A Duverbs_marshall.c68 dst->max_send_wr = src->cap.max_send_wr;
69 dst->max_recv_wr = src->cap.max_recv_wr;
70 dst->max_send_sge = src->cap.max_send_sge;
71 dst->max_recv_sge = src->cap.max_recv_sge;
72 dst->max_inline_data = src->cap.max_inline_data;
/drivers/media/dvb/firewire/
H A Dfiredtv-ci.c50 struct ca_caps *cap = arg; local
52 cap->slot_num = 1;
53 cap->slot_type = CA_CI;
54 cap->descr_num = 1;
55 cap->descr_type = CA_ECD;
/drivers/usb/early/
H A Dehci-dbgp.c368 static u32 __init find_cap(u32 num, u32 slot, u32 func, int cap) argument
385 if (id == cap)
412 unsigned cap; local
414 cap = __find_dbgp(bus, slot, func);
416 if (!cap)
423 return cap;
723 u32 cap; local
729 cap = read_pci_config(ehci_dev.bus, ehci_dev.slot,
731 dbgp_printk("dbgp: ehci BIOS state %08x\n", cap);
733 if ((cap
838 u32 bus, slot, func, cap; local
[all...]
/drivers/char/agp/
H A Dparisc-agp.c287 lba_find_capability(int cap) argument
303 if (id == cap)
314 int cap; local
319 cap = readl(lba_hpa + info->lba_cap_offset) & 0xff;
320 if (cap != PCI_CAP_ID_AGP) {
322 cap, info->lba_cap_offset);
/drivers/infiniband/hw/qib/
H A Dqib_qp.c864 attr->cap.max_send_wr = qp->s_size - 1;
865 attr->cap.max_recv_wr = qp->ibqp.srq ? 0 : qp->r_rq.size - 1;
866 attr->cap.max_send_sge = qp->s_max_sge;
867 attr->cap.max_recv_sge = qp->r_rq.max_sge;
868 attr->cap.max_inline_data = 0;
890 init_attr->cap = attr->cap;
983 if (init_attr->cap.max_send_sge > ib_qib_max_sges ||
984 init_attr->cap.max_send_wr > ib_qib_max_qp_wrs) {
991 if (init_attr->cap
[all...]
/drivers/video/mb862xx/
H A Dmb862xxfbdrv.c333 outreg(cap, GC_CAP_CSC,
341 outreg(cap, GC_CAP_CSC,
344 outreg(cap, GC_CAP_CMSS,
346 outreg(cap, GC_CAP_CMDS,
353 outreg(cap, GC_CAP_CBM,
354 inreg(cap, GC_CAP_CBM) | GC_CBM_HRV);
357 outreg(cap, GC_CAP_CBM,
358 inreg(cap, GC_CAP_CBM) & ~GC_CBM_HRV);
367 outreg(cap, GC_CAP_IMG_START,
369 outreg(cap, GC_CAP_IMG_EN
[all...]

Completed in 825 milliseconds

1234567891011