Lines Matching refs:cap_ptr
276 u8 cap_ptr = 0; in bcma_find_pci_capability() local
284 return cap_ptr; in bcma_find_pci_capability()
290 return cap_ptr; in bcma_find_pci_capability()
293 bcma_extpci_read_config(pc, dev, func, PCI_CAPABILITY_LIST, &cap_ptr, in bcma_find_pci_capability()
295 if (cap_ptr == 0x00) in bcma_find_pci_capability()
296 return cap_ptr; in bcma_find_pci_capability()
300 bcma_extpci_read_config(pc, dev, func, cap_ptr, &cap_id, sizeof(u8)); in bcma_find_pci_capability()
302 bcma_extpci_read_config(pc, dev, func, cap_ptr + 1, &cap_ptr, in bcma_find_pci_capability()
304 if (cap_ptr == 0x00) in bcma_find_pci_capability()
305 return cap_ptr; in bcma_find_pci_capability()
306 bcma_extpci_read_config(pc, dev, func, cap_ptr, &cap_id, in bcma_find_pci_capability()
316 return cap_ptr; in bcma_find_pci_capability()
321 cap_data = cap_ptr + 2; in bcma_find_pci_capability()
333 return cap_ptr; in bcma_find_pci_capability()
343 u8 cap_ptr, root_ctrl, root_cap, dev; in bcma_core_pci_enable_crs() local
347 cap_ptr = bcma_find_pci_capability(pc, 0, 0, PCI_CAP_ID_EXP, NULL, in bcma_core_pci_enable_crs()
349 root_cap = cap_ptr + PCI_EXP_RTCAP; in bcma_core_pci_enable_crs()
353 root_ctrl = cap_ptr + PCI_EXP_RTCTL; in bcma_core_pci_enable_crs()