Lines Matching defs:ctx

64 static zx_status_t pci_op_enable_bus_master(void* ctx, bool enable) {
65 kpci_device_t* dev = ctx;
75 static zx_status_t pci_op_reset_device(void* ctx) {
76 kpci_device_t* dev = ctx;
86 static zx_status_t pci_op_config_read(void* ctx, uint16_t offset, size_t width, uint32_t* val) {
87 kpci_device_t* dev = ctx;
110 static zx_status_t pci_op_config_write(void* ctx, uint16_t offset, size_t width, uint32_t val) {
111 kpci_device_t* dev = ctx;
127 static uint8_t pci_op_get_next_capability(void* ctx, uint8_t offset, uint8_t type) {
129 pci_op_config_read(ctx, offset + 1, sizeof(uint8_t), &cap_offset);
138 if ((st = pci_op_config_read(ctx, cap_offset, sizeof(uint8_t), &type_id)) != ZX_OK) {
154 if ((st = pci_op_config_read(ctx, cap_offset + 1, sizeof(uint8_t), &cap_offset)) != ZX_OK) {
165 static zx_status_t pci_op_get_bar(void* ctx, uint32_t bar_id, zx_pci_bar_t* out_bar) {
166 kpci_device_t* dev = ctx;
199 static zx_status_t pci_op_map_bar(void* ctx,
210 zx_status_t status = pci_op_get_bar(ctx, bar_id, &bar);
245 static zx_status_t pci_op_map_interrupt(void* ctx, int which_irq, zx_handle_t* out_handle) {
250 kpci_device_t* dev = ctx;
263 static zx_status_t pci_op_get_bti(void* ctx, uint32_t index, zx_handle_t* out_handle) {
268 kpci_device_t* dev = ctx;
279 static zx_status_t pci_op_query_irq_mode(void* ctx,
282 kpci_device_t* dev = ctx;
294 static zx_status_t pci_op_set_irq_mode(void* ctx, zx_pci_irq_mode_t mode,
296 kpci_device_t* dev = ctx;
307 static zx_status_t pci_op_get_device_info(void* ctx, zx_pcie_device_info_t* out_info) {
308 kpci_device_t* dev = ctx;
318 static zx_status_t pci_op_get_auxdata(void* ctx, const char* args, void* data,
320 kpci_device_t* dev = ctx;
368 static zx_status_t pci_proxy_create(void* ctx, zx_device_t* parent,
398 .ctx = device,