nsim_trap_data 410 drivers/net/netdevsim/dev.c struct nsim_trap_data *nsim_trap_data; nsim_trap_data 413 drivers/net/netdevsim/dev.c nsim_trap_data = nsim_dev->trap_data; nsim_trap_data 415 drivers/net/netdevsim/dev.c spin_lock(&nsim_trap_data->trap_lock); nsim_trap_data 420 drivers/net/netdevsim/dev.c nsim_trap_item = &nsim_trap_data->trap_items_arr[i]; nsim_trap_data 440 drivers/net/netdevsim/dev.c spin_unlock(&nsim_trap_data->trap_lock); nsim_trap_data 447 drivers/net/netdevsim/dev.c struct nsim_trap_data *nsim_trap_data; nsim_trap_data 451 drivers/net/netdevsim/dev.c nsim_trap_data = container_of(work, struct nsim_trap_data, nsim_trap_data 453 drivers/net/netdevsim/dev.c nsim_dev = nsim_trap_data->nsim_dev; nsim_trap_data 474 drivers/net/netdevsim/dev.c struct nsim_trap_data *nsim_trap_data; nsim_trap_data 477 drivers/net/netdevsim/dev.c nsim_trap_data = kzalloc(sizeof(*nsim_trap_data), GFP_KERNEL); nsim_trap_data 478 drivers/net/netdevsim/dev.c if (!nsim_trap_data) nsim_trap_data 481 drivers/net/netdevsim/dev.c nsim_trap_data->trap_items_arr = kcalloc(ARRAY_SIZE(nsim_traps_arr), nsim_trap_data 484 drivers/net/netdevsim/dev.c if (!nsim_trap_data->trap_items_arr) { nsim_trap_data 493 drivers/net/netdevsim/dev.c spin_lock_init(&nsim_trap_data->trap_lock); nsim_trap_data 494 drivers/net/netdevsim/dev.c nsim_trap_data->nsim_dev = nsim_dev; nsim_trap_data 495 drivers/net/netdevsim/dev.c nsim_dev->trap_data = nsim_trap_data; nsim_trap_data 510 drivers/net/netdevsim/dev.c kfree(nsim_trap_data->trap_items_arr); nsim_trap_data 512 drivers/net/netdevsim/dev.c kfree(nsim_trap_data); nsim_trap_data 602 drivers/net/netdevsim/dev.c struct nsim_trap_data *nsim_trap_data = nsim_dev->trap_data; nsim_trap_data 607 drivers/net/netdevsim/dev.c return &nsim_trap_data->trap_items_arr[i]; nsim_trap_data 148 drivers/net/netdevsim/netdevsim.h struct nsim_trap_data *trap_data;